1 #LyX 1.6.6svn created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
38 \newcommand{\TabBesBeg}{%
40 \let\MyEndtable\endtable
41 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
43 \newcommand{\TabBesEnd}{%
45 \let\endtable\MyEndtable}
47 \newcommand{\FigBesBeg}{%
49 \let\MyEndfigure\endfigure
50 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
52 \newcommand{\FigBesEnd}{%
54 \let\endfigure\MyEndfigure}
56 % enables calculation of values,
59 % provides special table cell alignments
62 % increase the bottom float placement fraction
63 \renewcommand{\bottomfraction}{0.5}
65 % avoids that floats are placed before their
66 % corresponding section starts
67 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
69 % speed up the longtable calculation
70 \setcounter{LTchunksize}{100}
72 % used for scaled and rotated boxes
73 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
75 % used for colored tables
76 \@ifundefined{textcolor}
77 {\usepackage{color}}{}
78 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
79 \definecolor{lightgrey}{gray}{0.8}
81 % check for package colortbl
82 % used for colored table cells
84 \IfFileExists{colortbl.sty}
85 {\usepackage{colortbl}
86 \setboolean{colortbl}{true}}
87 {\setboolean{colortbl}{false}}
91 %\renewcommand{\multirowsetup}{\centering}
93 % used for book-style tables
96 % used to have extra space in table cells
97 \@ifundefined{extrarowheight}
98 {\usepackage{array}}{}
99 \setlength{\extrarowheight}{2pt}
101 % used for customized tables
104 {>{\centering\hspace{0pt}}m{#1}}
107 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
110 {>{\columncolor{#1}\hspace{0pt}}c}
112 \newcolumntype{V}{!{\vrule width 1.5pt}}
114 \newcolumntype{W}{!{\color{green}\vline}}
117 % insert additional vertical space of
118 % 1.5 mm between footnotes
120 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
122 % number algorithm floats within chapters
123 \numberwithin{algorithm}{chapter}
125 % redefine the greyed out note
126 \renewenvironment{lyxgreyedout}
127 {\textcolor{blue}\bgroup}{\egroup}
129 % ------------------------------------
130 % used to check for needed LaTeX packages
133 % check for package arydshln
134 % used for tables with dashed lines
135 \newboolean{arydshln}
136 \IfFileExists{arydshln.sty}
137 {\usepackage{arydshln}
138 \setboolean{arydshln}{true}}
139 {\setboolean{arydshln}{false}}
141 % check for package marginnote
142 % used for margin notes
143 \newboolean{marginnote}
144 \IfFileExists{marginnote.sty}
145 {\usepackage{marginnote}
146 \let\marginpar\marginnote
147 \setboolean{marginnote}{true}}
148 {\setboolean{marginnote}{false}}
150 % check for package sidecap
151 % used for captions on the side
153 \IfFileExists{sidecap.sty}
154 {\usepackage{sidecap}
155 \setboolean{sidecap}{true}}
156 {\setboolean{sidecap}{false}}
158 % redefine the \LyX macro for PDF bookmarks
159 \def\LyX{\texorpdfstring{%
160 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
163 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
164 \use_default_options false
169 \font_typewriter default
170 \font_default_family default
180 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
181 \pdf_author "LyX Team, Uwe Stöhr"
182 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
183 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
185 \pdf_bookmarksnumbered true
186 \pdf_bookmarksopen true
187 \pdf_bookmarksopenlevel 1
188 \pdf_breaklinks false
192 \pdf_pdfusetitle false
193 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
200 \paperorientation portrait
203 \paragraph_separation skip
205 \quotes_language english
208 \paperpagestyle default
212 \tracking_changes false
213 \output_changes false
221 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
230 \begin_layout Plain Layout
232 If you have comments or error corrections, please send them to the LyX Documenta
234 \begin_inset CommandInset href
236 name "lyx-docs@lists.lyx.org"
237 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
248 \begin_inset Note Note
251 \begin_layout Plain Layout
258 \begin_inset Newline newline
262 \begin_inset Newline newline
270 \begin_layout Standard
271 \begin_inset CommandInset toc
272 LatexCommand tableofcontents
279 \begin_layout Standard
280 \begin_inset Note Note
283 \begin_layout Plain Layout
284 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
302 If they are not installed you can export the document anyway but the sections
303 where the packages are required won't appear in the output.
306 \begin_layout Plain Layout
307 The latest PDF-version of this document can be found here:
308 \begin_inset Newline newline
313 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
321 \begin_layout Chapter
326 \begin_layout Plain Layout
336 \begin_layout Plain Layout
341 \begin_layout Plain Layout
352 \begin_layout Plain Layout
367 \begin_layout Section
372 \begin_layout Plain Layout
373 Figures ! Graphics Dialog
379 \begin_inset CommandInset label
381 name "sec:Graphics-Dialog"
388 \begin_layout Standard
389 To insert an image into your document, place the cursor at the text position
390 you want and click on the toolbar icon
391 \begin_inset Graphics
392 filename ../images/dialog-show-new-inset_graphics.png
400 Insert\SpecialChar \menuseparator
404 Then a dialog will appear to choose the file to load.
405 The image will appear in the output exactly at the position where it is
409 \begin_layout Standard
410 The graphics dialog can be called at any time by clicking on an image.
411 This dialog has three tabs:
414 \begin_layout Description
419 Here you can choose an image file and adjust its appearance in the output.
420 The available units for the image size are explained in appendix
425 \begin_inset CommandInset ref
427 reference "cha:Units-available-in"
432 \begin_inset Newline newline
439 \begin_layout Plain Layout
445 You can rotate images counter-clockwise by setting a rotation angle and
447 The image will also be rotated inside LyX.
448 \begin_inset Newline newline
455 \begin_layout Plain Layout
461 Images can be scaled by using a percentage value or by setting the width
462 and height explicitly.
463 If you set only the width or only the height, the other size will be determined
465 If you set both, then the image will be transformed to the given size,
466 possibly distorting it.
467 To prevent the image from distortion, use the option
469 Maintain aspect ratio
472 The image will then be scaled so that its width and height don't exceed
473 the specified dimensions.
474 \begin_inset Newline newline
477 Images can be opened in a program of your choice by right-clicking on it
478 and choosing the entry
487 The program can be set for every image format in the file format settings
488 in LyX's preferences.
491 \begin_layout Description
496 Alternatively to the usage of scaling units it is possible to set image
497 coordinates to adjust the height and width of the image in the output.
498 The coordinates can also be calculated automatically by pressing the button
528 will only print the image region within the given coordinates.
529 Normally you don't need to take care about image coordinates and can ignore
533 \begin_layout Description
550 In this tab you can modify the appearance of the image within LyX and LaTeX
551 experts can specify additional LaTeX options.
552 \begin_inset Newline newline
563 makes the image appear in the output only as a frame with the size of the
565 \begin_inset Newline newline
584 option only affects zipped EPS-graphics, e.
585 \begin_inset space \thinspace{}
589 \begin_inset space \space{}
597 When the option is used the images will not be unzipped on export, since
598 LaTeX can handle them as they are.
599 \begin_inset Newline newline
602 Zipped EPS-graphics are useful to save disk space when you choose PostScript
603 as output format, see appendix
608 \begin_inset CommandInset ref
610 reference "sec:PostScript"
615 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
617 \begin_inset Newline newline
625 \begin_inset Newline newline
630 zgrep %%Bounding x.eps.gz > x.eps.bb
633 \begin_inset Newline newline
636 The second command creates the bounding box file
637 \begin_inset Quotes eld
641 \begin_inset Quotes erd
644 that is needed by LaTeX for zipped graphics.
645 \begin_inset Newline newline
660 allows you define or join an image settings group.
664 \begin_layout Plain Layout
665 Figures ! Settings grouping
670 Images within such a group share their settings, so adjusting one image
671 of the group automatically also adjusts all other images of the group in
673 So you can for example change the size for a bunch of images without the
674 need to manually change each of them.
675 Joining an existing group can also be done using the context menu of the
676 image by checking the name of the desired group.
679 \begin_layout Standard
680 \begin_inset VSpace bigskip
686 \begin_layout Standard
687 This is an example image in EPS format
691 \begin_layout Plain Layout
692 Image formats are explained in section
697 \begin_inset CommandInset ref
699 reference "sec:Image-Formats"
708 within a separate, horizontally centered paragraph:
711 \begin_layout Standard
713 \begin_inset Graphics
714 filename clipart/mobius.eps
724 \begin_layout Standard
725 This is the same image like the one above but in draft mode:
728 \begin_layout Standard
730 \begin_inset Graphics
731 filename clipart/mobius.eps
742 \begin_layout Standard
743 \begin_inset Newpage newpage
749 \begin_layout Section
751 \begin_inset CommandInset label
753 name "sec:Figure-Floats"
761 \begin_layout Plain Layout
771 \begin_layout Plain Layout
780 \begin_layout Standard
781 For general explanations about floats, have a look at section
786 \begin_inset CommandInset ref
788 reference "sec:FloatIntroduction"
795 \begin_layout Standard
797 \begin_inset Graphics
798 filename ../images/float-insert_figure.png
806 Insert\SpecialChar \menuseparator
807 Float\SpecialChar \menuseparator
810 inserts a float with a caption that has the label
811 \begin_inset Quotes eld
819 \begin_inset Quotes erd
822 (# is the actual number).
823 You can insert the image above the caption, like in Figure
828 \begin_inset CommandInset ref
830 reference "fig:kill-plat"
834 or below the caption, like in Figure
839 \begin_inset CommandInset ref
841 reference "fig:escher"
846 More about caption placement is described in section
851 \begin_inset CommandInset ref
853 reference "sec:Caption-Placement"
860 \begin_layout Standard
861 \begin_inset Float figure
866 \begin_layout Plain Layout
868 \begin_inset Graphics
869 filename clipart/platypus.eps
879 \begin_layout Plain Layout
882 \begin_layout Plain Layout
883 \begin_inset CommandInset label
889 A severely distorted platypus in a float.
902 \begin_layout Standard
903 \begin_inset Float figure
908 \begin_layout Plain Layout
911 \begin_layout Plain Layout
912 \begin_inset CommandInset label
927 \begin_layout Plain Layout
929 \begin_inset Graphics
930 filename clipart/escher-lsd.eps
945 \begin_layout Standard
949 \begin_layout Plain Layout
950 References ! to Figures
960 \begin_inset CommandInset ref
962 reference "fig:kill-plat"
967 \begin_inset CommandInset ref
969 reference "fig:escher"
973 are examples of referenced figures.
974 Figures can be referenced in the text by referencing their label.
975 To do this insert a label in the caption using the menu
977 Insert\SpecialChar \menuseparator
980 or the toolbar button
981 \begin_inset Graphics
982 filename ../images/label-insert.png
989 You can now refer to the label using the menu
991 Insert\SpecialChar \menuseparator
998 or the toolbar button
999 \begin_inset Graphics
1000 filename ../images/dialog-show-new-inset_ref.png
1007 It is important to use references to floats, rather than using vague references
1009 \begin_inset Quotes eld
1013 \begin_inset Quotes erd
1016 , because LaTeX will reposition the floats in the final document and it
1018 \begin_inset Quotes eld
1022 \begin_inset Quotes erd
1026 \begin_inset Newline newline
1029 Referencing is explained in detail in section
1030 \begin_inset space ~
1034 \begin_inset CommandInset ref
1036 reference "sec:Referencing-Floats"
1043 \begin_layout Standard
1044 Normally only one image is inserted to a figure float, but sometimes you
1045 might want to use two images with separate subcaptions.
1046 This can be done by inserting image floats into existing image floats.
1047 Note that only the main caption of the float is added to the List of Figures.
1049 \begin_inset space ~
1053 \begin_inset CommandInset ref
1055 reference "fig:Two-distorted-images"
1059 is an example of a figure float with two images set side by side.
1060 You can also set the images one below the other.
1062 \begin_inset space ~
1066 \begin_inset CommandInset ref
1068 reference "fig:Undefinable-structure"
1073 \begin_inset CommandInset ref
1075 reference "fig:A-Platypus"
1082 \begin_layout Standard
1083 \begin_inset Float figure
1088 \begin_layout Plain Layout
1089 \begin_inset space \hfill{}
1093 \begin_inset Float figure
1098 \begin_layout Plain Layout
1099 \begin_inset Caption
1101 \begin_layout Plain Layout
1102 \begin_inset CommandInset label
1104 name "fig:Undefinable-structure"
1108 Undefinable structure.
1116 \begin_layout Plain Layout
1117 \begin_inset Graphics
1118 filename clipart/escher-lsd.eps
1131 \begin_inset space \hfill{}
1135 \begin_inset Float figure
1140 \begin_layout Plain Layout
1141 \begin_inset Caption
1143 \begin_layout Plain Layout
1144 \begin_inset CommandInset label
1146 name "fig:A-Platypus"
1158 \begin_layout Plain Layout
1159 \begin_inset Graphics
1160 filename clipart/platypus.eps
1173 \begin_inset space \hfill{}
1179 \begin_layout Plain Layout
1180 \begin_inset Caption
1182 \begin_layout Plain Layout
1183 \begin_inset CommandInset label
1185 name "fig:Two-distorted-images"
1189 Two distorted images.
1190 Both images are in the image settings group named
1191 \begin_inset Quotes eld
1195 \begin_inset Quotes erd
1211 \begin_layout Standard
1212 \begin_inset Newpage newpage
1218 \begin_layout Section
1220 \begin_inset CommandInset label
1222 name "sec:Image-Formats"
1230 \begin_layout Plain Layout
1240 \begin_layout Plain Layout
1241 Figures ! Image Formats
1249 \begin_layout Standard
1250 You can insert images in any known file format.
1251 But as explained in appendix
1252 \begin_inset space ~
1256 \begin_inset CommandInset ref
1258 reference "cha:Output-File-Formats"
1262 , each output document format allows only a few image formats.
1263 LyX uses therefore the program
1267 in the background to convert the images to the right format.
1268 To increase your work flow by avoiding these conversions in the background,
1269 you can use only the image formats that can directly be embedded in the
1271 The output file formats are explained in appendix
1272 \begin_inset space ~
1276 \begin_inset CommandInset ref
1278 reference "cha:Output-File-Formats"
1285 \begin_layout Standard
1286 Similar to fonts there are two types of image formats:
1289 \begin_layout Description
1291 \begin_inset space ~
1294 images consist of pixel values, often in a compressed form.
1295 They are therefore not fully scalable and look pixelated in large zooms.
1296 Well-known bitmap image formats are
1297 \begin_inset Quotes eld
1300 Graphics Interchange Format
1301 \begin_inset Quotes erd
1304 (GIF, file extension
1305 \begin_inset Quotes eld
1313 \begin_inset Quotes erd
1320 \begin_layout Plain Layout
1325 \begin_layout Plain Layout
1336 \begin_layout Plain Layout
1349 \begin_inset Quotes eld
1352 Portable Network Graphics
1353 \begin_inset Quotes erd
1356 (PNG, file extension
1357 \begin_inset Quotes eld
1365 \begin_inset Quotes erd
1372 \begin_layout Plain Layout
1377 \begin_layout Plain Layout
1388 \begin_layout Plain Layout
1401 \begin_inset Quotes eld
1404 Joint Photographic Experts Group
1405 \begin_inset Quotes erd
1408 (JPG, file extension
1409 \begin_inset Quotes eld
1417 \begin_inset Quotes erd
1421 \begin_inset Quotes eld
1429 \begin_inset Quotes erd
1436 \begin_layout Plain Layout
1441 \begin_layout Plain Layout
1452 \begin_layout Plain Layout
1467 \begin_layout Description
1469 \begin_inset space ~
1472 images consist of vectors and can therefore be scaled to any size without
1474 The scaling ability is necessary if you want to create presentations, because
1475 presentations are always scaled by the video projector.
1476 Scaling is also useful for online documents to let the user zoom into diagrams.
1477 \begin_inset Newline newline
1480 Well-known scalable image formats are
1481 \begin_inset Quotes eld
1484 Scalable Vector Graphics
1485 \begin_inset Quotes erd
1488 (SVG, file extension
1489 \begin_inset Quotes eld
1497 \begin_inset Quotes erd
1504 \begin_layout Plain Layout
1509 \begin_layout Plain Layout
1520 \begin_layout Plain Layout
1533 \begin_inset Quotes eld
1536 Encapsulated PostScript
1537 \begin_inset Quotes erd
1540 (EPS, file extension
1541 \begin_inset Quotes eld
1549 \begin_inset Quotes erd
1556 \begin_layout Plain Layout
1561 \begin_layout Plain Layout
1572 \begin_layout Plain Layout
1585 \begin_inset Quotes eld
1588 Portable Document Format
1589 \begin_inset Quotes erd
1592 (PDF, file extension
1593 \begin_inset Quotes eld
1601 \begin_inset Quotes erd
1608 \begin_layout Plain Layout
1615 \begin_inset Quotes eld
1619 \begin_inset Quotes erd
1622 (WMF, file extension
1623 \begin_inset Quotes eld
1631 \begin_inset Quotes erd
1638 \begin_layout Plain Layout
1643 \begin_layout Plain Layout
1654 \begin_layout Plain Layout
1668 \begin_inset Quotes eld
1672 \begin_inset Quotes erd
1675 , because you can convert any bitmap image to a PDF or EPS-image and the
1676 result will still be a bitmap image.
1677 In such cases only a header with the image properties is added to the original
1682 \begin_layout Plain Layout
1683 In the case of PDF, the original image is additionally compressed.
1689 The PDF-files generated by
1693 are for example bitmap images.
1696 \begin_layout Standard
1697 Normally it is not possible to convert a bitmap image into a scalable one,
1699 Only the image formats PDF and EPS can directly be embedded to PDF and
1700 PostScript output files, respectively.
1701 SVG and WMF-images are recalculated to bitmaps when the output file is
1702 generated because there is currently no adequate WMF/SVG
1703 \begin_inset Formula $\to$
1706 PDF/EPS converter available.
1709 \begin_layout Chapter
1714 \begin_layout Plain Layout
1723 \begin_layout Section
1728 \begin_layout Plain Layout
1729 Table ! Introduction
1737 \begin_layout Standard
1738 You can insert a table using either the toolbar button
1739 \begin_inset Graphics
1740 filename ../images/tabular-insert.png
1748 Insert\SpecialChar \menuseparator
1752 The toolbar button offers you a graphical selection: move the mouse to
1753 set the column/row number of the table that should be created and then
1754 press a mouse button.
1755 When you use the menu to create a table, a dialog will appear, asking you
1756 for the number of rows and columns.
1757 \begin_inset Newline newline
1760 The default table has lines around any cell and the first row appears separated
1761 from the rest of the table.
1762 This separation occurs due to a double line: The cells of the first row
1763 have a line below them and the cells of the second row have a line above
1765 Here is an example table:
1768 \begin_layout Standard
1770 \begin_inset Tabular
1771 <lyxtabular version="3" rows="4" columns="4">
1773 <column alignment="center" valignment="top" width="0">
1774 <column alignment="center" valignment="top" width="0">
1775 <column alignment="center" valignment="top" width="0">
1776 <column alignment="center" valignment="top" width="0">
1778 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1781 \begin_layout Plain Layout
1787 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1790 \begin_layout Plain Layout
1805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1808 \begin_layout Plain Layout
1814 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1817 \begin_layout Plain Layout
1825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1828 \begin_layout Plain Layout
1843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1846 \begin_layout Plain Layout
1852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1855 \begin_layout Plain Layout
1861 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1864 \begin_layout Plain Layout
1872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1875 \begin_layout Plain Layout
1890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1893 \begin_layout Plain Layout
1899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1902 \begin_layout Plain Layout
1908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1911 \begin_layout Plain Layout
1919 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1922 \begin_layout Plain Layout
1937 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1940 \begin_layout Plain Layout
1946 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1949 \begin_layout Plain Layout
1955 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1958 \begin_layout Plain Layout
1972 \begin_layout Section
1977 \begin_layout Plain Layout
1986 \begin_layout Standard
1987 You can alter a table by clicking on it with the right mouse button, which
1988 brings up the table dialog.
1989 Here you can adjust the settings of that cell and row/column respectively
1990 where the cursor is currently placed.
1991 Most of the dialog options also work on selections.
1992 This means if you select more cells, columns or rows, the action is done
1993 for the whole selection.
1994 Note that there is a difference between selecting the
1998 of the cell, and the cell itself.
1999 You can alter tables with the following tabs of the table dialog:
2002 \begin_layout Description
2006 \begin_inset space ~
2011 Here you can set the horizontal alignment and the width of the current
2013 When you have set a width you can also adjust the vertical alignment of
2015 A given width will allow the cell to have line breaks and multiple paragraphs
2016 of text, see section
2017 \begin_inset space ~
2021 \begin_inset CommandInset ref
2023 reference "sub:Multiple-Lines-in"
2028 If you set no width, the column is as wide as the content of the widest
2030 \begin_inset Newline newline
2033 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2035 \begin_inset space ~
2039 \begin_inset CommandInset ref
2041 reference "sub:Multicolumns"
2046 \begin_inset Newline newline
2049 The rotate check boxes rotate the current cell, a selection, or the whole
2050 table counter-clockwise by 90°.
2051 The rotation is not shown within LyX, only in the output.
2052 \begin_inset Newline newline
2056 \begin_inset Note Greyedout
2059 \begin_layout Plain Layout
2064 Not all DVI-viewers are able to display rotations.
2070 \begin_inset Newline newline
2073 It is also possible to enter a LaTeX-argument which is needed for special
2074 table formattings, see section
2075 \begin_inset space ~
2079 \begin_inset CommandInset ref
2081 reference "sub:Multicolumn-Calculations"
2086 \begin_inset CommandInset ref
2088 reference "sec:Colored-Tables"
2095 \begin_layout Description
2100 In this tab you can add and delete border lines for the current row/column.
2101 \begin_inset Newline newline
2104 Using the style option
2108 will convert the table to a formal table as described in section
2109 \begin_inset space ~
2113 \begin_inset CommandInset ref
2115 reference "sec:Formal-Tables"
2120 \begin_inset Newline newline
2123 You can also add here space to table rows as described in section
2124 \begin_inset space ~
2128 \begin_inset CommandInset ref
2130 reference "sub:Row-Spacing"
2137 \begin_layout Description
2142 This tab is to make a table a so called
2143 \begin_inset Quotes eld
2151 \begin_inset Quotes erd
2154 that can run over several pages.
2156 \begin_inset space ~
2160 \begin_inset CommandInset ref
2162 reference "sec:Longtables"
2167 \begin_inset CommandInset ref
2169 reference "sec:Special-Longtable-Issues"
2173 describe the longtable features in detail.
2176 \begin_layout Standard
2177 When the table dialog is open, you can move the cursor with the arrow keys
2178 from cell to cell and the property of the current cell will immediately
2179 be displayed in the dialog.
2182 \begin_layout Section
2187 \begin_layout Plain Layout
2196 \begin_layout Standard
2197 The table toolbar is an alternative to the table dialog to be able to alter
2199 It should normally appear at the bottom of LyX's main window when the cursor
2201 You can alternatively switch it on to appear always, by right-clicking
2202 in LyX's main menu bar.
2205 \begin_layout Standard
2206 The toolbar has the following icons:
2209 \begin_layout Labeling
2210 \labelwidthstring 00.00.0000
2211 \begin_inset Graphics
2212 filename ../images/tabular-feature_append-row.png
2217 adds a row below the current cell or selection
2220 \begin_layout Labeling
2221 \labelwidthstring 00.00.0000
2222 \begin_inset Graphics
2223 filename ../images/tabular-feature_append-column.png
2228 adds a column right beside the current cell or selection
2231 \begin_layout Labeling
2232 \labelwidthstring 00.00.0000
2233 \begin_inset Graphics
2234 filename ../images/tabular-feature_delete-row.png
2239 deletes the current row or selection
2242 \begin_layout Labeling
2243 \labelwidthstring 00.00.0000
2244 \begin_inset Graphics
2245 filename ../images/tabular-feature_delete-column.png
2250 deletes the current column or selection
2253 \begin_layout Labeling
2254 \labelwidthstring 00.00.0000
2255 \begin_inset Graphics
2256 filename ../images/tabular-feature_toggle-line-top.png
2261 adds a line at the top of the current cell / row or of a selection
2264 \begin_layout Labeling
2265 \labelwidthstring 00.00.0000
2266 \begin_inset Graphics
2267 filename ../images/tabular-feature_toggle-line-bottom.png
2272 adds a line at the bottom of the current cell / row or of a selection
2275 \begin_layout Labeling
2276 \labelwidthstring 00.00.0000
2277 \begin_inset Graphics
2278 filename ../images/tabular-feature_toggle-line-left.png
2283 adds a line at the left side of the current cell / row or of a selection
2286 \begin_layout Labeling
2287 \labelwidthstring 00.00.0000
2288 \begin_inset Graphics
2289 filename ../images/tabular-feature_toggle-line-right.png
2294 adds a line at the right side of the current cell / row or of a selection
2297 \begin_layout Labeling
2298 \labelwidthstring 00.00.0000
2299 \begin_inset Graphics
2300 filename ../images/tabular-feature_set-all-lines.png
2305 adds lines around the current or selected cells - if the current cell no
2306 multicolumn cell this also affects the current row and column
2309 \begin_layout Labeling
2310 \labelwidthstring 00.00.0000
2311 \begin_inset Graphics
2312 filename ../images/tabular-feature_unset-all-lines.png
2317 deletes all lines of the current or selected cells - if the current cell
2318 no multicolumn cell this also affects the current row and column
2321 \begin_layout Labeling
2322 \labelwidthstring 00.00.0000
2323 \begin_inset Graphics
2324 filename ../images/tabular-feature_m-align-left.png
2329 left-aligns the content of the current cell / column
2332 \begin_layout Labeling
2333 \labelwidthstring 00.00.0000
2334 \begin_inset Graphics
2335 filename ../images/tabular-feature_m-align-center.png
2340 centers the content of the current cell / column horizontally
2343 \begin_layout Labeling
2344 \labelwidthstring 00.00.0000
2345 \begin_inset Graphics
2346 filename ../images/tabular-feature_m-align-right.png
2351 right-aligns the content of the current cell / column
2354 \begin_layout Labeling
2355 \labelwidthstring 00.00.0000
2356 \begin_inset Graphics
2357 filename ../images/tabular-feature_m-valign-top.png
2362 aligns the content of the current cell vertically to the top
2365 \begin_layout Labeling
2366 \labelwidthstring 00.00.0000
2367 \begin_inset Graphics
2368 filename ../images/tabular-feature_m-valign-middle.png
2373 centers the content of the current cell vertically
2376 \begin_layout Labeling
2377 \labelwidthstring 00.00.0000
2378 \begin_inset Graphics
2379 filename ../images/tabular-feature_m-valign-bottom.png
2384 aligns the content of the current cell vertically to the bottom
2387 \begin_layout Labeling
2388 \labelwidthstring 00.00.0000
2389 \begin_inset Graphics
2390 filename ../images/tabular-feature_set-rotate-cell.png
2395 rotates the current cell or selection counter-clockwise by 90°
2398 \begin_layout Labeling
2399 \labelwidthstring 00.00.0000
2400 \begin_inset Graphics
2401 filename ../images/tabular-feature_set-rotate-tabular.png
2406 rotates the whole table counter-clockwise by 90°
2409 \begin_layout Labeling
2410 \labelwidthstring 00.00.0000
2411 \begin_inset Graphics
2412 filename ../images/tabular-feature_multicolumn.png
2417 sets the current cell or selection as a multicolumn
2420 \begin_layout Standard
2421 \begin_inset Note Greyedout
2424 \begin_layout Plain Layout
2429 For the output the vertical alignment of the first cell in a row is used
2430 for all following cells in the row.
2438 \begin_layout Section
2443 \begin_layout Plain Layout
2452 \begin_layout Standard
2453 Additionally to the table dialog and toolbar, the menu
2455 Edit\SpecialChar \menuseparator
2458 allows you to add and delete border lines for the current row/column and
2459 to set the current selection as multicolumn.
2460 The menu is only available when the cursor is inside a table.
2463 \begin_layout Section
2465 \begin_inset CommandInset label
2467 name "sec:Table-Floats"
2475 \begin_layout Plain Layout
2485 \begin_layout Plain Layout
2494 \begin_layout Standard
2495 For general explanations about floats, have a look at section
2496 \begin_inset space ~
2500 \begin_inset CommandInset ref
2502 reference "sec:FloatIntroduction"
2509 \begin_layout Standard
2510 \begin_inset Float table
2516 \begin_layout Plain Layout
2517 \begin_inset Caption
2519 \begin_layout Plain Layout
2520 \begin_inset CommandInset label
2522 name "tab:a table float"
2534 \begin_layout Plain Layout
2536 \begin_inset Tabular
2537 <lyxtabular version="3" rows="3" columns="3">
2539 <column alignment="center" valignment="top" width="0pt">
2540 <column alignment="center" valignment="top" width="0pt">
2541 <column alignment="center" valignment="top" width="0pt">
2543 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2546 \begin_layout Plain Layout
2561 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2564 \begin_layout Plain Layout
2579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2582 \begin_layout Plain Layout
2599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2602 \begin_layout Plain Layout
2617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2620 \begin_layout Plain Layout
2635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2638 \begin_layout Plain Layout
2655 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2658 \begin_layout Plain Layout
2668 \begin_inset Formula $\int x^{2}dx$
2676 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2679 \begin_layout Plain Layout
2689 \begin_inset Formula $\left[\begin{array}{cc}
2691 c & d\end{array}\right]$
2699 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2702 \begin_layout Plain Layout
2712 \begin_inset Formula $1+1=2$
2733 \begin_layout Standard
2734 Table floats can be inserted using the menu
2736 Insert\SpecialChar \menuseparator
2737 Float\SpecialChar \menuseparator
2740 or the toolbar button
2741 \begin_inset Graphics
2742 filename ../images/float-insert_table.png
2751 \begin_layout Standard
2752 The float appears as a collapsible box with a caption that has the label
2754 \begin_inset Quotes eld
2758 \begin_inset space ~
2762 \begin_inset Quotes erd
2765 (# is the actual table number).
2766 You can insert tables in the float above or below the caption.
2769 \begin_layout Standard
2771 \begin_inset space ~
2775 \begin_inset CommandInset ref
2777 reference "tab:a table float"
2781 is an example table within a table float.
2784 \begin_layout Standard
2785 Having the caption above the table is the common rule that is unfortunately
2786 not supported in LaTeX's standard classes.
2787 This means that, if you are using the document classes
2803 , there will be no space between the caption and the table.
2804 To insert the needed space, add the following option to the load command
2805 of the LaTeX-package
2813 \begin_layout Plain Layout
2814 LaTeX-packages ! caption
2819 in your document preamble
2823 \begin_layout Plain Layout
2824 For more information have a look at section
2825 \begin_inset space ~
2829 \begin_inset CommandInset ref
2831 reference "sec:Caption-Placement"
2843 \begin_layout Standard
2849 \begin_layout Standard
2854 , which is described in section
2855 \begin_inset space ~
2859 \begin_inset CommandInset ref
2861 reference "sec:Caption-Formatting"
2865 , is used to adjust the caption format.
2868 \begin_layout Standard
2872 \begin_layout Plain Layout
2873 References ! to Tables
2878 Tables can be cross-referenced in the text by referencing their label.
2879 To do this insert a label in the caption using the menu
2881 Insert\SpecialChar \menuseparator
2884 or the toolbar button
2885 \begin_inset Graphics
2886 filename ../images/label-insert.png
2893 You can now refer to the label using the menu
2895 Insert\SpecialChar \menuseparator
2897 \begin_inset space ~
2902 or the toolbar button
2903 \begin_inset Graphics
2904 filename ../images/dialog-show-new-inset_ref.png
2911 \begin_inset Newline newline
2914 Referencing is explained in detail in section
2915 \begin_inset space ~
2919 \begin_inset CommandInset ref
2921 reference "sec:Referencing-Floats"
2928 \begin_layout Section
2930 \begin_inset CommandInset label
2932 name "sec:Longtables"
2940 \begin_layout Plain Layout
2950 \begin_layout Plain Layout
2959 \begin_layout Standard
2960 If the table is too long to fit on one page, you can use the option
2963 \begin_inset space ~
2967 \begin_inset space ~
2976 of the table dialog to split the table automatically over more pages.
2977 Doing this enables the following options:
2980 \begin_layout Description
2981 Header: The current row is defined to be a header row that appears on all
2982 pages of the longtable; except for the first page, if
2985 \begin_inset space ~
2991 This is therefore called the main header.
2994 \begin_layout Description
2996 \begin_inset space ~
2999 header: The current row is defined to be a header row that appears on the
3000 first page of the longtable.
3003 \begin_layout Description
3004 Footer: The current row is defined to be a footer row that appears on all
3005 pages of the longtable; except for the last page, if
3008 \begin_inset space ~
3016 \begin_layout Description
3018 \begin_inset space ~
3021 footer: The current row is defined to be a footer row that appears on the
3022 last page of the longtable.
3025 \begin_layout Description
3026 Caption: The current row contains the table caption.
3027 The row is reset as single column and a caption is inserted.
3028 More about longtable captions is explained in sec.
3029 \begin_inset space \thinspace{}
3033 \begin_inset CommandInset ref
3035 reference "sub:Longtable-Captions"
3042 \begin_layout Standard
3043 You can also specify a row where the table is split.
3044 See the following longtable to see how it works:
3047 \begin_layout Standard
3049 \begin_inset Tabular
3050 <lyxtabular version="3" rows="69" columns="3">
3051 <features islongtable="true">
3052 <column alignment="left" valignment="top" width="0cm">
3053 <column alignment="left" valignment="top" width="0pt">
3054 <column alignment="center" valignment="top" width="0pt">
3055 <row endfirsthead="true">
3056 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3059 \begin_layout Plain Layout
3062 Example Phone List (ignore the names)
3067 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3070 \begin_layout Plain Layout
3076 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3079 \begin_layout Plain Layout
3086 <row endfirsthead="true">
3087 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3090 \begin_layout Plain Layout
3098 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3101 \begin_layout Plain Layout
3107 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3110 \begin_layout Plain Layout
3119 <row endhead="true">
3120 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3123 \begin_layout Plain Layout
3131 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3134 \begin_layout Plain Layout
3140 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3143 \begin_layout Plain Layout
3150 <row endhead="true">
3151 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3154 \begin_layout Plain Layout
3162 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3165 \begin_layout Plain Layout
3171 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3174 \begin_layout Plain Layout
3183 <row endfoot="true">
3184 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3187 \begin_layout Plain Layout
3188 continued on next page
3193 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3196 \begin_layout Plain Layout
3202 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3205 \begin_layout Plain Layout
3213 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3216 \begin_layout Plain Layout
3224 <cell alignment="center" valignment="top" usebox="none">
3227 \begin_layout Plain Layout
3233 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3236 \begin_layout Plain Layout
3244 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3247 \begin_layout Plain Layout
3255 <cell alignment="center" valignment="top" usebox="none">
3258 \begin_layout Plain Layout
3264 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3267 \begin_layout Plain Layout
3275 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3278 \begin_layout Plain Layout
3286 <cell alignment="center" valignment="top" usebox="none">
3289 \begin_layout Plain Layout
3295 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3298 \begin_layout Plain Layout
3306 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3309 \begin_layout Plain Layout
3317 <cell alignment="center" valignment="top" usebox="none">
3320 \begin_layout Plain Layout
3326 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3329 \begin_layout Plain Layout
3337 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3340 \begin_layout Plain Layout
3348 <cell alignment="center" valignment="top" usebox="none">
3351 \begin_layout Plain Layout
3357 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3360 \begin_layout Plain Layout
3368 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3371 \begin_layout Plain Layout
3379 <cell alignment="center" valignment="top" usebox="none">
3382 \begin_layout Plain Layout
3388 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3391 \begin_layout Plain Layout
3399 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3402 \begin_layout Plain Layout
3410 <cell alignment="center" valignment="top" usebox="none">
3413 \begin_layout Plain Layout
3419 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3422 \begin_layout Plain Layout
3430 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3433 \begin_layout Plain Layout
3441 <cell alignment="center" valignment="top" usebox="none">
3444 \begin_layout Plain Layout
3450 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3453 \begin_layout Plain Layout
3461 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3464 \begin_layout Plain Layout
3472 <cell alignment="center" valignment="top" usebox="none">
3475 \begin_layout Plain Layout
3481 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3484 \begin_layout Plain Layout
3492 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3495 \begin_layout Plain Layout
3503 <cell alignment="center" valignment="top" usebox="none">
3506 \begin_layout Plain Layout
3512 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3515 \begin_layout Plain Layout
3523 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3526 \begin_layout Plain Layout
3534 <cell alignment="center" valignment="top" usebox="none">
3537 \begin_layout Plain Layout
3543 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3546 \begin_layout Plain Layout
3554 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3557 \begin_layout Plain Layout
3565 <cell alignment="center" valignment="top" usebox="none">
3568 \begin_layout Plain Layout
3574 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3577 \begin_layout Plain Layout
3585 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3588 \begin_layout Plain Layout
3596 <cell alignment="center" valignment="top" usebox="none">
3599 \begin_layout Plain Layout
3605 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3608 \begin_layout Plain Layout
3616 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3619 \begin_layout Plain Layout
3627 <cell alignment="center" valignment="top" usebox="none">
3630 \begin_layout Plain Layout
3636 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3639 \begin_layout Plain Layout
3647 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3650 \begin_layout Plain Layout
3658 <cell alignment="center" valignment="top" usebox="none">
3661 \begin_layout Plain Layout
3667 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3670 \begin_layout Plain Layout
3678 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3681 \begin_layout Plain Layout
3689 <cell alignment="center" valignment="top" usebox="none">
3692 \begin_layout Plain Layout
3698 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3701 \begin_layout Plain Layout
3709 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3712 \begin_layout Plain Layout
3720 <cell alignment="center" valignment="top" usebox="none">
3723 \begin_layout Plain Layout
3729 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3732 \begin_layout Plain Layout
3740 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3743 \begin_layout Plain Layout
3751 <cell alignment="center" valignment="top" usebox="none">
3754 \begin_layout Plain Layout
3760 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3763 \begin_layout Plain Layout
3771 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3774 \begin_layout Plain Layout
3782 <cell alignment="center" valignment="top" usebox="none">
3785 \begin_layout Plain Layout
3791 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3794 \begin_layout Plain Layout
3802 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3805 \begin_layout Plain Layout
3813 <cell alignment="center" valignment="top" usebox="none">
3816 \begin_layout Plain Layout
3822 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3825 \begin_layout Plain Layout
3833 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3836 \begin_layout Plain Layout
3844 <cell alignment="center" valignment="top" usebox="none">
3847 \begin_layout Plain Layout
3853 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3856 \begin_layout Plain Layout
3864 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3867 \begin_layout Plain Layout
3875 <cell alignment="center" valignment="top" usebox="none">
3878 \begin_layout Plain Layout
3884 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3887 \begin_layout Plain Layout
3895 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3898 \begin_layout Plain Layout
3906 <cell alignment="center" valignment="top" usebox="none">
3909 \begin_layout Plain Layout
3915 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3918 \begin_layout Plain Layout
3926 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3929 \begin_layout Plain Layout
3937 <cell alignment="center" valignment="top" usebox="none">
3940 \begin_layout Plain Layout
3946 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3949 \begin_layout Plain Layout
3957 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3960 \begin_layout Plain Layout
3968 <cell alignment="center" valignment="top" usebox="none">
3971 \begin_layout Plain Layout
3977 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3980 \begin_layout Plain Layout
3988 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3991 \begin_layout Plain Layout
3999 <cell alignment="center" valignment="top" usebox="none">
4002 \begin_layout Plain Layout
4008 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4011 \begin_layout Plain Layout
4019 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4022 \begin_layout Plain Layout
4030 <cell alignment="center" valignment="top" usebox="none">
4033 \begin_layout Plain Layout
4039 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4042 \begin_layout Plain Layout
4050 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4053 \begin_layout Plain Layout
4061 <cell alignment="center" valignment="top" usebox="none">
4064 \begin_layout Plain Layout
4070 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4073 \begin_layout Plain Layout
4081 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4084 \begin_layout Plain Layout
4092 <cell alignment="center" valignment="top" usebox="none">
4095 \begin_layout Plain Layout
4101 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4104 \begin_layout Plain Layout
4112 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4115 \begin_layout Plain Layout
4123 <cell alignment="center" valignment="top" usebox="none">
4126 \begin_layout Plain Layout
4132 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4135 \begin_layout Plain Layout
4143 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4146 \begin_layout Plain Layout
4154 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4157 \begin_layout Plain Layout
4163 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4166 \begin_layout Plain Layout
4174 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4177 \begin_layout Plain Layout
4183 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4186 \begin_layout Plain Layout
4192 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4195 \begin_layout Plain Layout
4203 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4206 \begin_layout Plain Layout
4214 <cell alignment="center" valignment="top" usebox="none">
4217 \begin_layout Plain Layout
4223 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4226 \begin_layout Plain Layout
4234 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4237 \begin_layout Plain Layout
4245 <cell alignment="center" valignment="top" usebox="none">
4248 \begin_layout Plain Layout
4254 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4257 \begin_layout Plain Layout
4265 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4268 \begin_layout Plain Layout
4276 <cell alignment="center" valignment="top" usebox="none">
4279 \begin_layout Plain Layout
4285 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4288 \begin_layout Plain Layout
4296 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4299 \begin_layout Plain Layout
4307 <cell alignment="center" valignment="top" usebox="none">
4310 \begin_layout Plain Layout
4316 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4319 \begin_layout Plain Layout
4327 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4330 \begin_layout Plain Layout
4338 <cell alignment="center" valignment="top" usebox="none">
4341 \begin_layout Plain Layout
4347 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4350 \begin_layout Plain Layout
4358 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4361 \begin_layout Plain Layout
4369 <cell alignment="center" valignment="top" usebox="none">
4372 \begin_layout Plain Layout
4378 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4381 \begin_layout Plain Layout
4389 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4392 \begin_layout Plain Layout
4400 <cell alignment="center" valignment="top" usebox="none">
4403 \begin_layout Plain Layout
4409 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4412 \begin_layout Plain Layout
4420 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4423 \begin_layout Plain Layout
4431 <cell alignment="center" valignment="top" usebox="none">
4434 \begin_layout Plain Layout
4440 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4443 \begin_layout Plain Layout
4451 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4454 \begin_layout Plain Layout
4462 <cell alignment="center" valignment="top" usebox="none">
4465 \begin_layout Plain Layout
4471 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4474 \begin_layout Plain Layout
4482 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4485 \begin_layout Plain Layout
4493 <cell alignment="center" valignment="top" usebox="none">
4496 \begin_layout Plain Layout
4502 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4505 \begin_layout Plain Layout
4513 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4516 \begin_layout Plain Layout
4524 <cell alignment="center" valignment="top" usebox="none">
4527 \begin_layout Plain Layout
4533 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4536 \begin_layout Plain Layout
4544 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4547 \begin_layout Plain Layout
4555 <cell alignment="center" valignment="top" usebox="none">
4558 \begin_layout Plain Layout
4564 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4567 \begin_layout Plain Layout
4575 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4578 \begin_layout Plain Layout
4586 <cell alignment="center" valignment="top" usebox="none">
4589 \begin_layout Plain Layout
4595 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4598 \begin_layout Plain Layout
4606 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4609 \begin_layout Plain Layout
4617 <cell alignment="center" valignment="top" usebox="none">
4620 \begin_layout Plain Layout
4626 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4629 \begin_layout Plain Layout
4637 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4640 \begin_layout Plain Layout
4648 <cell alignment="center" valignment="top" usebox="none">
4651 \begin_layout Plain Layout
4657 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4660 \begin_layout Plain Layout
4668 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4671 \begin_layout Plain Layout
4679 <cell alignment="center" valignment="top" usebox="none">
4682 \begin_layout Plain Layout
4688 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4691 \begin_layout Plain Layout
4699 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4702 \begin_layout Plain Layout
4710 <cell alignment="center" valignment="top" usebox="none">
4713 \begin_layout Plain Layout
4719 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4722 \begin_layout Plain Layout
4730 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4733 \begin_layout Plain Layout
4741 <cell alignment="center" valignment="top" usebox="none">
4744 \begin_layout Plain Layout
4750 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4753 \begin_layout Plain Layout
4761 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4764 \begin_layout Plain Layout
4772 <cell alignment="center" valignment="top" usebox="none">
4775 \begin_layout Plain Layout
4781 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4784 \begin_layout Plain Layout
4792 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4795 \begin_layout Plain Layout
4803 <cell alignment="center" valignment="top" usebox="none">
4806 \begin_layout Plain Layout
4812 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4815 \begin_layout Plain Layout
4823 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4826 \begin_layout Plain Layout
4834 <cell alignment="center" valignment="top" usebox="none">
4837 \begin_layout Plain Layout
4843 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4846 \begin_layout Plain Layout
4854 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4857 \begin_layout Plain Layout
4865 <cell alignment="center" valignment="top" usebox="none">
4868 \begin_layout Plain Layout
4874 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4877 \begin_layout Plain Layout
4885 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4888 \begin_layout Plain Layout
4896 <cell alignment="center" valignment="top" usebox="none">
4899 \begin_layout Plain Layout
4905 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4908 \begin_layout Plain Layout
4916 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4919 \begin_layout Plain Layout
4927 <cell alignment="center" valignment="top" usebox="none">
4930 \begin_layout Plain Layout
4936 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4939 \begin_layout Plain Layout
4947 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4950 \begin_layout Plain Layout
4958 <cell alignment="center" valignment="top" usebox="none">
4961 \begin_layout Plain Layout
4967 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4970 \begin_layout Plain Layout
4978 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4981 \begin_layout Plain Layout
4989 <cell alignment="center" valignment="top" usebox="none">
4992 \begin_layout Plain Layout
4998 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5001 \begin_layout Plain Layout
5009 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5012 \begin_layout Plain Layout
5020 <cell alignment="center" valignment="top" usebox="none">
5023 \begin_layout Plain Layout
5029 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5032 \begin_layout Plain Layout
5040 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5043 \begin_layout Plain Layout
5051 <cell alignment="center" valignment="top" usebox="none">
5054 \begin_layout Plain Layout
5060 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5063 \begin_layout Plain Layout
5071 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5074 \begin_layout Plain Layout
5082 <cell alignment="center" valignment="top" usebox="none">
5085 \begin_layout Plain Layout
5091 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5094 \begin_layout Plain Layout
5102 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5105 \begin_layout Plain Layout
5113 <cell alignment="center" valignment="top" usebox="none">
5116 \begin_layout Plain Layout
5122 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5125 \begin_layout Plain Layout
5133 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5136 \begin_layout Plain Layout
5144 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5147 \begin_layout Plain Layout
5153 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5156 \begin_layout Plain Layout
5163 <row endlastfoot="true">
5164 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5167 \begin_layout Plain Layout
5173 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5176 \begin_layout Plain Layout
5182 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5185 \begin_layout Plain Layout
5200 \begin_layout Plain Layout
5204 addtocounter{table}{-1}
5210 \begin_inset Note Note
5213 \begin_layout Plain Layout
5214 See the first greyed-out note in section
5215 \begin_inset space ~
5219 \begin_inset CommandInset ref
5221 reference "sub:Longtable-Captions"
5225 for an explanation of this command.
5233 \begin_layout Subsection
5234 Footnotes in Longtables
5235 \begin_inset CommandInset label
5237 name "sub:Footnotes-in-Longtables"
5245 \begin_layout Plain Layout
5246 Longtables ! Footnotes
5254 \begin_layout Standard
5255 Footnotes can be inserted to every longtable cell.
5256 They appear at the bottom of the page where the table cell with the footnote
5259 \begin_inset space ~
5263 \begin_inset CommandInset ref
5265 reference "tab:DiffCaptions"
5269 has for example a footnote.
5272 \begin_layout Subsection
5277 \begin_layout Plain Layout
5278 Longtables ! Alignment
5286 \begin_layout Standard
5287 Longtables are by default centered.
5288 Unlike the alignment of the table columns and rows, the table alignment
5289 can currently not be changed in the table dialog.
5290 To change the alignment of longtables you have to change the value of the
5303 by inserting this line as TeX-Code before the corresponding longtable:
5306 \begin_layout Standard
5316 \begin_layout Standard
5317 where the value can have any of the units listed in Table
5318 \begin_inset space ~
5322 \begin_inset CommandInset ref
5324 reference "tab:Units"
5335 controls the horizontal distance from the left page border to the longtable,
5342 the distance from the right side.
5343 The default value for both lengths is
5349 , which is in this case the same as an horizontal fill in LyX.
5352 \begin_layout Standard
5353 The following longtable was left-aligned by setting
5360 \begin_inset space \thinspace{}
5367 \begin_layout Plain Layout
5381 \begin_layout Standard
5382 \begin_inset Tabular
5383 <lyxtabular version="3" rows="5" columns="5">
5384 <features islongtable="true">
5385 <column alignment="center" valignment="top" width="0">
5386 <column alignment="center" valignment="top" width="0">
5387 <column alignment="center" valignment="top" width="0">
5388 <column alignment="center" valignment="top" width="0">
5389 <column alignment="center" valignment="top" width="0">
5391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5394 \begin_layout Plain Layout
5400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5403 \begin_layout Plain Layout
5409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5412 \begin_layout Plain Layout
5418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5421 \begin_layout Plain Layout
5427 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5430 \begin_layout Plain Layout
5438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5441 \begin_layout Plain Layout
5447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5450 \begin_layout Plain Layout
5456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5459 \begin_layout Plain Layout
5465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5468 \begin_layout Plain Layout
5474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5477 \begin_layout Plain Layout
5485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5488 \begin_layout Plain Layout
5494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5497 \begin_layout Plain Layout
5503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5506 \begin_layout Plain Layout
5512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5515 \begin_layout Plain Layout
5521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5524 \begin_layout Plain Layout
5532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5535 \begin_layout Plain Layout
5541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5544 \begin_layout Plain Layout
5550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5553 \begin_layout Plain Layout
5559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5562 \begin_layout Plain Layout
5568 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5571 \begin_layout Plain Layout
5579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5582 \begin_layout Plain Layout
5588 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5591 \begin_layout Plain Layout
5597 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5600 \begin_layout Plain Layout
5606 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5609 \begin_layout Plain Layout
5615 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5618 \begin_layout Plain Layout
5633 \begin_layout Plain Layout
5650 \begin_layout Plain Layout
5654 addtocounter{table}{-1}
5660 \begin_inset Note Note
5663 \begin_layout Plain Layout
5664 See the first greyed-out note in section
5665 \begin_inset space ~
5669 \begin_inset CommandInset ref
5671 reference "sub:Longtable-Captions"
5675 for an explanation of this command.
5683 \begin_layout Subsection
5688 \begin_layout Plain Layout
5689 Longtables ! Captions
5695 \begin_inset CommandInset label
5697 name "sub:Longtable-Captions"
5704 \begin_layout Standard
5705 A longtable cannot be put into a table float because floats can only be
5707 But the caption environment of floats can also be used for longtables when
5708 you use the longtable option
5712 as described in sec.
5713 \begin_inset space \thinspace{}
5717 \begin_inset CommandInset ref
5719 reference "sec:Longtables"
5724 Only one table row can contain the caption.
5727 \begin_layout Standard
5728 Here is a short longtable to see how it works:
5731 \begin_layout Standard
5732 \begin_inset Tabular
5733 <lyxtabular version="3" rows="6" columns="5">
5734 <features islongtable="true">
5735 <column alignment="center" valignment="top" width="0">
5736 <column alignment="center" valignment="top" width="0">
5737 <column alignment="center" valignment="top" width="0">
5738 <column alignment="center" valignment="top" width="0">
5739 <column alignment="center" valignment="top" width="0">
5740 <row caption="true">
5741 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5744 \begin_layout Plain Layout
5745 \begin_inset Caption
5747 \begin_layout Plain Layout
5748 Longtable with caption
5752 \begin_layout Plain Layout
5768 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5771 \begin_layout Plain Layout
5777 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5780 \begin_layout Plain Layout
5786 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5789 \begin_layout Plain Layout
5795 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5798 \begin_layout Plain Layout
5806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5809 \begin_layout Plain Layout
5815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5818 \begin_layout Plain Layout
5824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5827 \begin_layout Plain Layout
5833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5836 \begin_layout Plain Layout
5842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5845 \begin_layout Plain Layout
5853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5856 \begin_layout Plain Layout
5862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5865 \begin_layout Plain Layout
5871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5874 \begin_layout Plain Layout
5880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5883 \begin_layout Plain Layout
5889 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5892 \begin_layout Plain Layout
5900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5903 \begin_layout Plain Layout
5909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5912 \begin_layout Plain Layout
5918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5921 \begin_layout Plain Layout
5927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5930 \begin_layout Plain Layout
5936 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5939 \begin_layout Plain Layout
5947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5950 \begin_layout Plain Layout
5956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5959 \begin_layout Plain Layout
5965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5968 \begin_layout Plain Layout
5974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5977 \begin_layout Plain Layout
5983 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5986 \begin_layout Plain Layout
5994 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5997 \begin_layout Plain Layout
6003 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6006 \begin_layout Plain Layout
6012 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6015 \begin_layout Plain Layout
6021 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6024 \begin_layout Plain Layout
6030 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6033 \begin_layout Plain Layout
6047 \begin_layout Standard
6048 \begin_inset VSpace medskip
6052 \begin_inset Note Greyedout
6055 \begin_layout Plain Layout
6059 \begin_inset space ~
6064 The table number is increased for for every longtable, even if you did
6065 not set a caption for it.
6066 For this reason you could have the case that e.
6067 \begin_inset space \thinspace{}
6071 \begin_inset space \space{}
6075 \begin_inset space ~
6079 \begin_inset space ~
6082 2.1 in the list of tables if there are two longtables without captions.
6083 To avoid this you can add the following command in TeX-Code after every
6084 longtable without a caption:
6087 \begin_layout Plain Layout
6092 addtocounter{table}{-1}
6095 \begin_layout Plain Layout
6096 This is not needed when none of your longtables have a caption and you add
6097 the following code to the document preamble:
6100 \begin_layout Plain Layout
6110 \begin_inset Newline newline
6121 addtocounter{table}{-1}}
6129 \begin_layout Standard
6130 \begin_inset Note Greyedout
6133 \begin_layout Plain Layout
6137 \begin_inset space ~
6150 \begin_layout Plain Layout
6151 LaTeX-packages ! hyperref
6164 dialog to link cross-references, the link to a longtable caption will always
6165 point to the beginning of the document.
6173 \begin_layout Subsubsection
6174 References to Longtables
6178 \begin_layout Plain Layout
6179 Longtables ! References
6187 \begin_layout Standard
6188 \begin_inset Tabular
6189 <lyxtabular version="3" rows="6" columns="5">
6190 <features islongtable="true">
6191 <column alignment="center" valignment="top" width="0">
6192 <column alignment="center" valignment="top" width="0">
6193 <column alignment="center" valignment="top" width="0">
6194 <column alignment="center" valignment="top" width="0">
6195 <column alignment="center" valignment="top" width="0">
6196 <row caption="true">
6197 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6200 \begin_layout Plain Layout
6201 \begin_inset Caption
6203 \begin_layout Plain Layout
6204 Referenced longtable
6205 \begin_inset CommandInset label
6207 name "tab:RefExample"
6221 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6224 \begin_layout Plain Layout
6230 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6233 \begin_layout Plain Layout
6239 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6242 \begin_layout Plain Layout
6248 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6251 \begin_layout Plain Layout
6259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6262 \begin_layout Plain Layout
6268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6271 \begin_layout Plain Layout
6277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6280 \begin_layout Plain Layout
6286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6289 \begin_layout Plain Layout
6295 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6298 \begin_layout Plain Layout
6306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6309 \begin_layout Plain Layout
6315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6318 \begin_layout Plain Layout
6324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6327 \begin_layout Plain Layout
6333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6336 \begin_layout Plain Layout
6342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6345 \begin_layout Plain Layout
6353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6356 \begin_layout Plain Layout
6362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6365 \begin_layout Plain Layout
6371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6374 \begin_layout Plain Layout
6380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6383 \begin_layout Plain Layout
6389 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6392 \begin_layout Plain Layout
6400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6403 \begin_layout Plain Layout
6409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6412 \begin_layout Plain Layout
6418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6421 \begin_layout Plain Layout
6427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6430 \begin_layout Plain Layout
6436 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6439 \begin_layout Plain Layout
6447 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6450 \begin_layout Plain Layout
6456 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6459 \begin_layout Plain Layout
6465 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6468 \begin_layout Plain Layout
6474 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6477 \begin_layout Plain Layout
6483 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6486 \begin_layout Plain Layout
6500 \begin_layout Standard
6501 To reference a longtable, insert a label into the caption.
6504 \begin_layout Standard
6505 This is a reference to Table
6506 \begin_inset space ~
6510 \begin_inset CommandInset ref
6512 reference "tab:RefExample"
6519 \begin_layout Standard
6520 The caption layout can be set together with all other captions of your document
6521 using the LaTeX-package
6529 \begin_layout Plain Layout
6530 LaTeX-packages ! caption
6536 \begin_inset space ~
6540 \begin_inset CommandInset ref
6542 reference "sec:Caption-Formatting"
6549 \begin_layout Subsubsection
6554 \begin_layout Plain Layout
6555 Longtables ! Caption Width
6563 \begin_layout Standard
6564 The maximal width of of caption lines is defined by the length
6571 Its default value is 4
6572 \begin_inset space \thinspace{}
6576 To change it add the following command to your document preamble or as
6577 TeX-Code into your document before the longtable that should be affected
6580 \begin_layout Standard
6590 \begin_layout Standard
6591 where the width could have one of the units listed in appendix
6592 \begin_inset space ~
6596 \begin_inset CommandInset ref
6598 reference "cha:Units-available-in"
6605 \begin_layout Standard
6606 The following tables show the difference:
6609 \begin_layout Standard
6610 \begin_inset Tabular
6611 <lyxtabular version="3" rows="6" columns="5">
6612 <features islongtable="true">
6613 <column alignment="center" valignment="top" width="0">
6614 <column alignment="center" valignment="top" width="0">
6615 <column alignment="center" valignment="top" width="0">
6616 <column alignment="center" valignment="top" width="0">
6617 <column alignment="center" valignment="top" width="0">
6618 <row caption="true">
6619 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6622 \begin_layout Plain Layout
6623 \begin_inset Caption
6625 \begin_layout Plain Layout
6626 long full title with default width long full title with default width long
6627 full title with default width
6631 \begin_layout Plain Layout
6632 caption with default width
6647 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6650 \begin_layout Plain Layout
6656 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6659 \begin_layout Plain Layout
6665 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6668 \begin_layout Plain Layout
6674 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6677 \begin_layout Plain Layout
6685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6688 \begin_layout Plain Layout
6694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6697 \begin_layout Plain Layout
6703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6706 \begin_layout Plain Layout
6712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6715 \begin_layout Plain Layout
6721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6724 \begin_layout Plain Layout
6732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6735 \begin_layout Plain Layout
6741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6744 \begin_layout Plain Layout
6750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6753 \begin_layout Plain Layout
6759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6762 \begin_layout Plain Layout
6768 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6771 \begin_layout Plain Layout
6779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6782 \begin_layout Plain Layout
6788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6791 \begin_layout Plain Layout
6797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6800 \begin_layout Plain Layout
6806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6809 \begin_layout Plain Layout
6815 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6818 \begin_layout Plain Layout
6826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6829 \begin_layout Plain Layout
6835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6838 \begin_layout Plain Layout
6844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6847 \begin_layout Plain Layout
6853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6856 \begin_layout Plain Layout
6862 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6865 \begin_layout Plain Layout
6873 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6876 \begin_layout Plain Layout
6882 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6885 \begin_layout Plain Layout
6891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6894 \begin_layout Plain Layout
6900 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6903 \begin_layout Plain Layout
6909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6912 \begin_layout Plain Layout
6926 \begin_layout Standard
6930 \begin_layout Plain Layout
6942 \begin_inset Tabular
6943 <lyxtabular version="3" rows="6" columns="5">
6944 <features islongtable="true">
6945 <column alignment="center" valignment="top" width="0">
6946 <column alignment="center" valignment="top" width="0">
6947 <column alignment="center" valignment="top" width="0">
6948 <column alignment="center" valignment="top" width="0">
6949 <column alignment="center" valignment="top" width="0">
6950 <row caption="true">
6951 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6954 \begin_layout Plain Layout
6955 \begin_inset Caption
6957 \begin_layout Plain Layout
6958 long full title with width set to 5
6959 \begin_inset space \thinspace{}
6962 cm long full title with width set to 5
6963 \begin_inset space \thinspace{}
6966 cm long full title with width set to 5
6967 \begin_inset space \thinspace{}
6974 \begin_layout Plain Layout
6976 \begin_inset space \thinspace{}
6980 \begin_inset space \thinspace{}
6984 \begin_inset space \thinspace{}
7002 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7005 \begin_layout Plain Layout
7011 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7014 \begin_layout Plain Layout
7020 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7023 \begin_layout Plain Layout
7029 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7032 \begin_layout Plain Layout
7040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7043 \begin_layout Plain Layout
7049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7052 \begin_layout Plain Layout
7058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7061 \begin_layout Plain Layout
7067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7070 \begin_layout Plain Layout
7076 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7079 \begin_layout Plain Layout
7087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7090 \begin_layout Plain Layout
7096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7099 \begin_layout Plain Layout
7105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7108 \begin_layout Plain Layout
7114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7117 \begin_layout Plain Layout
7123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7126 \begin_layout Plain Layout
7134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7137 \begin_layout Plain Layout
7143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7146 \begin_layout Plain Layout
7152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7155 \begin_layout Plain Layout
7161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7164 \begin_layout Plain Layout
7170 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7173 \begin_layout Plain Layout
7181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7184 \begin_layout Plain Layout
7190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7193 \begin_layout Plain Layout
7199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7202 \begin_layout Plain Layout
7208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7211 \begin_layout Plain Layout
7217 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7220 \begin_layout Plain Layout
7228 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7231 \begin_layout Plain Layout
7237 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7240 \begin_layout Plain Layout
7246 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7249 \begin_layout Plain Layout
7255 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7258 \begin_layout Plain Layout
7264 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7267 \begin_layout Plain Layout
7281 \begin_layout Standard
7285 \begin_layout Plain Layout
7299 \begin_layout Standard
7300 \begin_inset Note Greyedout
7303 \begin_layout Plain Layout
7308 When the LaTeX-package
7316 \begin_layout Plain Layout
7317 LaTeX-packages ! caption
7322 is used, as in this document, the full page width is used for the caption
7323 when you use the default value of 4
7324 \begin_inset space \thinspace{}
7334 To get in this case exactly a 4
7335 \begin_inset space \thinspace{}
7338 in wide caption, you can either use a value slightly different from 4.0
7339 \begin_inset space \thinspace{}
7343 \begin_inset space \thinspace{}
7347 \begin_inset space \space{}
7351 \begin_inset space \thinspace{}
7354 in, or the LaTeX-command
7358 captionsetup{width=value}
7360 that is provided by the
7372 \begin_layout Subsubsection
7373 Different Captions for Table Pages
7377 \begin_layout Plain Layout
7378 Longtables ! Different Captions for Pages
7386 \begin_layout Standard
7387 When the table captions for the following pages should differ from the one
7388 of the first table page, insert a caption with the TeX code command
7391 \begin_layout Standard
7396 caption*{caption text}
7403 \begin_layout Standard
7404 in a dummy caption row that is marked as a header.
7406 \begin_inset space ~
7410 \begin_inset CommandInset ref
7412 reference "tab:DiffCaptions"
7416 is an example of a longtable with different heading where the second caption
7417 doesn't include the table number.
7420 \begin_layout Standard
7422 \begin_inset Tabular
7423 <lyxtabular version="3" rows="59" columns="3">
7424 <features islongtable="true" lastFootEmpty="true">
7425 <column alignment="left" valignment="top" width="0cm">
7426 <column alignment="left" valignment="top" width="0pt">
7427 <column alignment="center" valignment="top" width="0pt">
7428 <row caption="true">
7429 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7432 \begin_layout Plain Layout
7433 \begin_inset Caption
7435 \begin_layout Plain Layout
7437 \begin_inset CommandInset label
7439 name "tab:DiffCaptions"
7447 \begin_layout Plain Layout
7463 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7466 \begin_layout Plain Layout
7472 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7475 \begin_layout Plain Layout
7482 <row endfirsthead="true">
7483 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7486 \begin_layout Plain Layout
7489 Example Phone List (ignore the names)
7494 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7497 \begin_layout Plain Layout
7503 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7506 \begin_layout Plain Layout
7513 <row endfirsthead="true">
7514 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7517 \begin_layout Plain Layout
7525 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7528 \begin_layout Plain Layout
7534 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7537 \begin_layout Plain Layout
7546 <row endhead="true">
7547 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7550 \begin_layout Plain Layout
7554 \begin_layout Plain Layout
7558 caption*{Continued Example Phone List}
7572 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7575 \begin_layout Plain Layout
7581 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7584 \begin_layout Plain Layout
7591 <row endhead="true">
7592 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7595 \begin_layout Plain Layout
7603 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7606 \begin_layout Plain Layout
7612 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7615 \begin_layout Plain Layout
7622 <row endhead="true">
7623 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7626 \begin_layout Plain Layout
7634 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7637 \begin_layout Plain Layout
7643 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7646 \begin_layout Plain Layout
7655 <row endfoot="true">
7656 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7659 \begin_layout Plain Layout
7660 continued on next page
7665 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7668 \begin_layout Plain Layout
7674 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7677 \begin_layout Plain Layout
7685 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7688 \begin_layout Plain Layout
7696 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7699 \begin_layout Plain Layout
7705 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7708 \begin_layout Plain Layout
7716 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7719 \begin_layout Plain Layout
7727 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7730 \begin_layout Plain Layout
7736 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7739 \begin_layout Plain Layout
7747 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7750 \begin_layout Plain Layout
7758 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7761 \begin_layout Plain Layout
7767 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7770 \begin_layout Plain Layout
7778 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7781 \begin_layout Plain Layout
7789 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7792 \begin_layout Plain Layout
7798 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7801 \begin_layout Plain Layout
7809 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7812 \begin_layout Plain Layout
7820 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7823 \begin_layout Plain Layout
7829 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7832 \begin_layout Plain Layout
7840 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7843 \begin_layout Plain Layout
7851 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7854 \begin_layout Plain Layout
7860 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7863 \begin_layout Plain Layout
7871 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7874 \begin_layout Plain Layout
7882 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7885 \begin_layout Plain Layout
7891 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7894 \begin_layout Plain Layout
7902 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7905 \begin_layout Plain Layout
7913 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7916 \begin_layout Plain Layout
7922 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7925 \begin_layout Plain Layout
7933 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7936 \begin_layout Plain Layout
7944 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7947 \begin_layout Plain Layout
7953 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7956 \begin_layout Plain Layout
7964 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7967 \begin_layout Plain Layout
7975 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7978 \begin_layout Plain Layout
7984 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7987 \begin_layout Plain Layout
7995 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7998 \begin_layout Plain Layout
8006 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8009 \begin_layout Plain Layout
8015 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8018 \begin_layout Plain Layout
8026 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8029 \begin_layout Plain Layout
8037 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8040 \begin_layout Plain Layout
8046 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8049 \begin_layout Plain Layout
8057 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8060 \begin_layout Plain Layout
8068 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8071 \begin_layout Plain Layout
8077 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8080 \begin_layout Plain Layout
8088 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8091 \begin_layout Plain Layout
8099 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8102 \begin_layout Plain Layout
8108 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8111 \begin_layout Plain Layout
8119 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8122 \begin_layout Plain Layout
8131 \begin_layout Plain Layout
8142 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8145 \begin_layout Plain Layout
8151 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8154 \begin_layout Plain Layout
8162 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8165 \begin_layout Plain Layout
8173 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8176 \begin_layout Plain Layout
8182 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8185 \begin_layout Plain Layout
8193 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8196 \begin_layout Plain Layout
8204 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8207 \begin_layout Plain Layout
8213 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8216 \begin_layout Plain Layout
8224 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8227 \begin_layout Plain Layout
8235 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8238 \begin_layout Plain Layout
8244 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8247 \begin_layout Plain Layout
8255 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8258 \begin_layout Plain Layout
8266 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8269 \begin_layout Plain Layout
8275 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8278 \begin_layout Plain Layout
8286 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8289 \begin_layout Plain Layout
8297 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8300 \begin_layout Plain Layout
8306 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8309 \begin_layout Plain Layout
8317 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8320 \begin_layout Plain Layout
8328 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8331 \begin_layout Plain Layout
8337 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8340 \begin_layout Plain Layout
8348 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8351 \begin_layout Plain Layout
8359 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8362 \begin_layout Plain Layout
8368 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8371 \begin_layout Plain Layout
8379 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8382 \begin_layout Plain Layout
8390 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8393 \begin_layout Plain Layout
8399 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8402 \begin_layout Plain Layout
8410 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8413 \begin_layout Plain Layout
8421 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8424 \begin_layout Plain Layout
8430 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8433 \begin_layout Plain Layout
8441 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8444 \begin_layout Plain Layout
8452 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8455 \begin_layout Plain Layout
8461 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8464 \begin_layout Plain Layout
8472 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8475 \begin_layout Plain Layout
8483 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8486 \begin_layout Plain Layout
8492 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8495 \begin_layout Plain Layout
8503 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8506 \begin_layout Plain Layout
8514 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8517 \begin_layout Plain Layout
8523 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8526 \begin_layout Plain Layout
8534 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8537 \begin_layout Plain Layout
8545 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8548 \begin_layout Plain Layout
8554 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8557 \begin_layout Plain Layout
8565 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8568 \begin_layout Plain Layout
8576 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8579 \begin_layout Plain Layout
8585 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8588 \begin_layout Plain Layout
8596 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8599 \begin_layout Plain Layout
8607 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8610 \begin_layout Plain Layout
8616 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8619 \begin_layout Plain Layout
8627 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8630 \begin_layout Plain Layout
8638 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8641 \begin_layout Plain Layout
8647 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8650 \begin_layout Plain Layout
8658 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8661 \begin_layout Plain Layout
8667 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8670 \begin_layout Plain Layout
8676 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8679 \begin_layout Plain Layout
8687 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8690 \begin_layout Plain Layout
8698 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8701 \begin_layout Plain Layout
8707 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8710 \begin_layout Plain Layout
8718 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8721 \begin_layout Plain Layout
8729 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8732 \begin_layout Plain Layout
8738 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8741 \begin_layout Plain Layout
8749 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8752 \begin_layout Plain Layout
8760 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8763 \begin_layout Plain Layout
8769 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8772 \begin_layout Plain Layout
8780 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8783 \begin_layout Plain Layout
8791 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8794 \begin_layout Plain Layout
8800 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8803 \begin_layout Plain Layout
8811 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8814 \begin_layout Plain Layout
8822 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8825 \begin_layout Plain Layout
8831 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8834 \begin_layout Plain Layout
8842 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8845 \begin_layout Plain Layout
8853 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8856 \begin_layout Plain Layout
8862 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8865 \begin_layout Plain Layout
8873 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8876 \begin_layout Plain Layout
8884 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8887 \begin_layout Plain Layout
8893 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8896 \begin_layout Plain Layout
8904 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8907 \begin_layout Plain Layout
8915 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8918 \begin_layout Plain Layout
8924 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8927 \begin_layout Plain Layout
8935 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8938 \begin_layout Plain Layout
8946 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8949 \begin_layout Plain Layout
8955 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8958 \begin_layout Plain Layout
8966 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8969 \begin_layout Plain Layout
8977 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8980 \begin_layout Plain Layout
8986 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8989 \begin_layout Plain Layout
8997 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9000 \begin_layout Plain Layout
9008 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9011 \begin_layout Plain Layout
9017 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9020 \begin_layout Plain Layout
9028 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9031 \begin_layout Plain Layout
9039 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9042 \begin_layout Plain Layout
9048 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9051 \begin_layout Plain Layout
9059 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9062 \begin_layout Plain Layout
9070 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9073 \begin_layout Plain Layout
9079 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9082 \begin_layout Plain Layout
9090 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9093 \begin_layout Plain Layout
9101 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9104 \begin_layout Plain Layout
9110 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9113 \begin_layout Plain Layout
9121 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9124 \begin_layout Plain Layout
9132 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9135 \begin_layout Plain Layout
9141 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9144 \begin_layout Plain Layout
9152 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9155 \begin_layout Plain Layout
9163 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9166 \begin_layout Plain Layout
9172 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9175 \begin_layout Plain Layout
9183 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9186 \begin_layout Plain Layout
9194 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9197 \begin_layout Plain Layout
9203 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9206 \begin_layout Plain Layout
9214 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9217 \begin_layout Plain Layout
9225 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9228 \begin_layout Plain Layout
9234 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9237 \begin_layout Plain Layout
9245 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9248 \begin_layout Plain Layout
9256 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9259 \begin_layout Plain Layout
9265 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9268 \begin_layout Plain Layout
9276 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9279 \begin_layout Plain Layout
9287 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9290 \begin_layout Plain Layout
9296 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9299 \begin_layout Plain Layout
9313 \begin_layout Section
9314 Special Longtable Issues
9315 \begin_inset CommandInset label
9317 name "sec:Special-Longtable-Issues"
9324 \begin_layout Subsection
9325 Longtable Calculation
9329 \begin_layout Plain Layout
9330 Longtables ! Calculation
9338 \begin_layout Standard
9339 LaTeX calculates the height of table pages and their page breaks using so
9341 Chunks are parts of tables that held at the same time in LaTeX's memory.
9342 The default value was historically set to only 20 table rows.
9343 If you are using longtables with many pages this may slow down the creation
9345 You can safely increase the chunk size to values of 100-1000 by adding
9346 this command line to your document preamble:
9349 \begin_layout Standard
9354 setcounter{LTchunksize}{100}
9357 \begin_layout Subsection
9358 Floats and Longtables
9362 \begin_layout Plain Layout
9371 \begin_layout Standard
9372 There might be problems when a float appears on the same page where a longtable
9374 To avoid such a situation, insert a
9375 \begin_inset Quotes eld
9379 \begin_inset Quotes erd
9384 Insert\SpecialChar \menuseparator
9385 Formatting\SpecialChar \menuseparator
9387 \begin_inset space ~
9392 ) before your longtable.
9395 \begin_layout Subsection
9400 \begin_layout Plain Layout
9401 Longtables ! Forced Page Breaks
9409 \begin_layout Standard
9410 By default tables are only broken between rows.
9411 If you have a cell with multiples lines and want to have a page break within
9412 the cell, insert the new line command
9413 \begin_inset Quotes eld
9425 \begin_inset Quotes erd
9428 as TeX-Code at the point of the cell where it can be broken.
9437 command you have to insert in TeX-Code as many
9438 \begin_inset Quotes eld
9446 \begin_inset Quotes erd
9449 characters as the number of the following table columns.
9454 is the character to separate table cells.
9455 Write in TeX-Code after each
9459 the content of the corresponding following cell and delete the content
9461 \begin_inset Newline newline
9472 command, insert as many
9476 characters as the number of table columns before the current column.
9478 \begin_inset space ~
9482 \begin_inset CommandInset ref
9484 reference "tab:ForcedPagebreak"
9488 the cell that should be broken is in the second column followed by another
9490 Therefore the following command was inserted in the cell as TeX-Code after
9492 \begin_inset Quotes eld
9500 \begin_inset Quotes erd
9506 \begin_layout Standard
9516 \begin_inset Newline newline
9522 \begin_layout Standard
9524 \begin_inset Quotes eld
9528 \begin_inset Quotes erd
9531 in the third column of the row was deleted.
9538 is only needed when a page break should definitely occur at this position,
9539 otherwise it would be a conditional break.
9540 If your footer row of the longtable has for a certain reason no upper line
9541 but you would have a horizontal line where the cell is broken, use this
9545 \begin_layout Standard
9553 \begin_inset Newline newline
9561 \begin_layout Standard
9562 When the cell to be broken is in the last column, the command
9565 \begin_layout Standard
9575 \begin_layout Standard
9576 must be inserted as TeX-Code at the beginning of the cell.
9577 This ensures that the part of the cell that will be displayed on the new
9578 page appears with the full width.
9581 \begin_layout Standard
9583 \begin_inset Tabular
9584 <lyxtabular version="3" rows="38" columns="3">
9585 <features islongtable="true" lastFootEmpty="true">
9586 <column alignment="left" valignment="top" width="0cm">
9587 <column alignment="left" valignment="top" width="3cm">
9588 <column alignment="center" valignment="top" width="0pt">
9589 <row caption="true">
9590 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9593 \begin_layout Plain Layout
9594 \begin_inset Caption
9596 \begin_layout Plain Layout
9597 Table with forced page break in table cell
9598 \begin_inset CommandInset label
9600 name "tab:ForcedPagebreak"
9608 \begin_layout Plain Layout
9609 Table with forced page break in table cell
9624 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9627 \begin_layout Plain Layout
9633 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9636 \begin_layout Plain Layout
9643 <row endfirsthead="true">
9644 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9647 \begin_layout Plain Layout
9650 Example Phone List (ignore the names)
9655 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9658 \begin_layout Plain Layout
9664 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9667 \begin_layout Plain Layout
9674 <row endfirsthead="true">
9675 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9678 \begin_layout Plain Layout
9686 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9689 \begin_layout Plain Layout
9695 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9698 \begin_layout Plain Layout
9707 <row endhead="true">
9708 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9711 \begin_layout Plain Layout
9715 \begin_layout Plain Layout
9719 caption*{Continued Example Phone List}
9733 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9736 \begin_layout Plain Layout
9742 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9745 \begin_layout Plain Layout
9752 <row endhead="true">
9753 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9756 \begin_layout Plain Layout
9764 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9767 \begin_layout Plain Layout
9773 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9776 \begin_layout Plain Layout
9783 <row endhead="true">
9784 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9787 \begin_layout Plain Layout
9795 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9798 \begin_layout Plain Layout
9804 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9807 \begin_layout Plain Layout
9816 <row endfoot="true">
9817 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9820 \begin_layout Plain Layout
9821 continued on next page
9826 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9829 \begin_layout Plain Layout
9835 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9838 \begin_layout Plain Layout
9846 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9849 \begin_layout Plain Layout
9857 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9860 \begin_layout Plain Layout
9866 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9869 \begin_layout Plain Layout
9877 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9880 \begin_layout Plain Layout
9888 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9891 \begin_layout Plain Layout
9897 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9900 \begin_layout Plain Layout
9908 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9911 \begin_layout Plain Layout
9919 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9922 \begin_layout Plain Layout
9928 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9931 \begin_layout Plain Layout
9939 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9942 \begin_layout Plain Layout
9950 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9953 \begin_layout Plain Layout
9959 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9962 \begin_layout Plain Layout
9970 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9973 \begin_layout Plain Layout
9981 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9984 \begin_layout Plain Layout
9990 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9993 \begin_layout Plain Layout
10001 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10004 \begin_layout Plain Layout
10012 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10015 \begin_layout Plain Layout
10021 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10024 \begin_layout Plain Layout
10032 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10035 \begin_layout Plain Layout
10043 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10046 \begin_layout Plain Layout
10052 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10055 \begin_layout Plain Layout
10063 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10066 \begin_layout Plain Layout
10074 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10077 \begin_layout Plain Layout
10083 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10086 \begin_layout Plain Layout
10094 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10097 \begin_layout Plain Layout
10105 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10108 \begin_layout Plain Layout
10114 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10117 \begin_layout Plain Layout
10125 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10128 \begin_layout Plain Layout
10136 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10139 \begin_layout Plain Layout
10145 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10148 \begin_layout Plain Layout
10156 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10159 \begin_layout Plain Layout
10167 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10170 \begin_layout Plain Layout
10176 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10179 \begin_layout Plain Layout
10187 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10190 \begin_layout Plain Layout
10198 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10201 \begin_layout Plain Layout
10207 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10210 \begin_layout Plain Layout
10218 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10221 \begin_layout Plain Layout
10229 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10232 \begin_layout Plain Layout
10238 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10241 \begin_layout Plain Layout
10249 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10252 \begin_layout Plain Layout
10260 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10263 \begin_layout Plain Layout
10269 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10272 \begin_layout Plain Layout
10280 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10283 \begin_layout Plain Layout
10291 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10294 \begin_layout Plain Layout
10300 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10303 \begin_layout Plain Layout
10311 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10314 \begin_layout Plain Layout
10322 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10325 \begin_layout Plain Layout
10331 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10334 \begin_layout Plain Layout
10342 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10345 \begin_layout Plain Layout
10353 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10356 \begin_layout Plain Layout
10362 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10365 \begin_layout Plain Layout
10373 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10376 \begin_layout Plain Layout
10384 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10387 \begin_layout Plain Layout
10393 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10396 \begin_layout Plain Layout
10404 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10407 \begin_layout Plain Layout
10415 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10418 \begin_layout Plain Layout
10424 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10427 \begin_layout Plain Layout
10435 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10438 \begin_layout Plain Layout
10446 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10449 \begin_layout Plain Layout
10455 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10458 \begin_layout Plain Layout
10466 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10469 \begin_layout Plain Layout
10477 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10480 \begin_layout Plain Layout
10486 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10489 \begin_layout Plain Layout
10497 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10500 \begin_layout Plain Layout
10508 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10511 \begin_layout Plain Layout
10517 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10520 \begin_layout Plain Layout
10528 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10531 \begin_layout Plain Layout
10539 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10542 \begin_layout Plain Layout
10544 Fürst von Montecompatri, 11.
10545 Fürst von Sulmona und Vivaro, 10.
10546 Fürst von Rossano, 5.
10547 Herzog von Canemorte, 11.
10548 Herzog von Palombara, 5.
10549 Herzog von Castelchiodato,
10553 \begin_layout Plain Layout
10564 \begin_layout Plain Layout
10572 Herzog von Poggionativo, 11.
10573 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10574 Graf von Valinfreda, 11.
10575 Baron von Cropalati, 11.
10576 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10581 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10584 \begin_layout Plain Layout
10592 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10595 \begin_layout Plain Layout
10603 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10606 \begin_layout Plain Layout
10612 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10615 \begin_layout Plain Layout
10623 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10626 \begin_layout Plain Layout
10634 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10637 \begin_layout Plain Layout
10643 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10646 \begin_layout Plain Layout
10654 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10657 \begin_layout Plain Layout
10665 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10668 \begin_layout Plain Layout
10674 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10677 \begin_layout Plain Layout
10685 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10688 \begin_layout Plain Layout
10696 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10699 \begin_layout Plain Layout
10705 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10708 \begin_layout Plain Layout
10716 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10719 \begin_layout Plain Layout
10727 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10730 \begin_layout Plain Layout
10736 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10739 \begin_layout Plain Layout
10747 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10750 \begin_layout Plain Layout
10758 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10761 \begin_layout Plain Layout
10767 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10770 \begin_layout Plain Layout
10778 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10781 \begin_layout Plain Layout
10789 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10792 \begin_layout Plain Layout
10798 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10801 \begin_layout Plain Layout
10809 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10812 \begin_layout Plain Layout
10820 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10823 \begin_layout Plain Layout
10829 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10832 \begin_layout Plain Layout
10846 \begin_layout Section
10847 Multiple Lines Columns and Rows
10850 \begin_layout Subsection
10851 Multiple Lines in Table Cells
10852 \begin_inset CommandInset label
10854 name "sub:Multiple-Lines-in"
10862 \begin_layout Plain Layout
10863 Multiple Lines in Table Cells
10872 \begin_layout Plain Layout
10881 \begin_layout Standard
10883 \begin_inset Float table
10889 \begin_layout Plain Layout
10890 \begin_inset Caption
10892 \begin_layout Plain Layout
10893 \begin_inset CommandInset label
10895 name "tab:Table-with-multiple"
10899 Table with multiple lines in cells
10907 \begin_layout Plain Layout
10909 \begin_inset Tabular
10910 <lyxtabular version="3" rows="3" columns="3">
10912 <column alignment="center" valignment="middle" width="2.5cm">
10913 <column alignment="center" valignment="middle" width="0">
10914 <column alignment="center" valignment="middle" width="0">
10916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10919 \begin_layout Plain Layout
10921 \begin_inset Newline linebreak
10929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10932 \begin_layout Plain Layout
10938 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10941 \begin_layout Plain Layout
10949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10952 \begin_layout Plain Layout
10958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10961 \begin_layout Plain Layout
10967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10970 \begin_layout Plain Layout
10978 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10981 \begin_layout Plain Layout
10987 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10990 \begin_layout Plain Layout
10996 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10999 \begin_layout Plain Layout
11018 \begin_layout Standard
11019 Setting a fixed width for a column enables you to enter text as a paragraph
11020 with multiple lines and hyphenation.
11023 \begin_layout Standard
11025 \begin_inset space ~
11029 \begin_inset CommandInset ref
11031 reference "tab:Table-with-multiple"
11035 , create a 3×3 table, mark the first cell and right-click on it.
11036 In the appearing table dialog we set a cell width of 2.5
11037 \begin_inset space \thinspace{}
11040 cm and choose centered for the vertical and horizontal alignment.
11041 The vertical alignment is used for all cells of the row.
11042 As our text is smaller than 2.5
11043 \begin_inset space \thinspace{}
11046 cm, only one line will appear.
11047 To get two lines, a justified line break (shortcut
11050 arg "newline-insert linebreak"
11054 If the text is wider than the set cell width, it will automatically be
11055 broken to several lines.
11058 \begin_layout Standard
11059 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11060 by LaTeX if it is the first entry.
11061 Therefore you need to insert something to prevent the word not being the
11063 So add a horizontal space of 0
11064 \begin_inset space \thinspace{}
11067 pt before the word.
11068 As the space is zero, it doesn't change the output.
11070 \begin_inset space ~
11074 \begin_inset CommandInset ref
11076 reference "tab:Table-with-and"
11083 \begin_layout Standard
11084 \begin_inset Float table
11090 \begin_layout Plain Layout
11091 \begin_inset Caption
11093 \begin_layout Plain Layout
11094 \begin_inset CommandInset label
11096 name "tab:Table-with-and"
11100 Table with and without hyphenation
11108 \begin_layout Plain Layout
11109 \begin_inset space \hfill{}
11113 \begin_inset Tabular
11114 <lyxtabular version="3" rows="3" columns="3">
11116 <column alignment="center" valignment="middle" width="2.5cm">
11117 <column alignment="center" valignment="middle" width="0">
11118 <column alignment="center" valignment="middle" width="0">
11120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11123 \begin_layout Plain Layout
11124 verylongtablecellword
11129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11132 \begin_layout Plain Layout
11138 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11141 \begin_layout Plain Layout
11149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11152 \begin_layout Plain Layout
11158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11161 \begin_layout Plain Layout
11167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11170 \begin_layout Plain Layout
11178 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11181 \begin_layout Plain Layout
11187 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11190 \begin_layout Plain Layout
11196 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11199 \begin_layout Plain Layout
11211 \begin_inset space \hfill{}
11215 \begin_inset Tabular
11216 <lyxtabular version="3" rows="3" columns="3">
11218 <column alignment="center" valignment="middle" width="2.5cm">
11219 <column alignment="center" valignment="middle" width="0">
11220 <column alignment="center" valignment="middle" width="0">
11222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11225 \begin_layout Plain Layout
11226 \begin_inset space \hspace{}
11230 verylongtablecellword
11235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11238 \begin_layout Plain Layout
11244 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11247 \begin_layout Plain Layout
11255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11258 \begin_layout Plain Layout
11264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11267 \begin_layout Plain Layout
11273 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11276 \begin_layout Plain Layout
11284 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11287 \begin_layout Plain Layout
11293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11296 \begin_layout Plain Layout
11302 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11305 \begin_layout Plain Layout
11317 \begin_inset space \hfill{}
11328 \begin_layout Subsection
11330 \begin_inset CommandInset label
11332 name "sub:Multicolumns"
11340 \begin_layout Plain Layout
11350 \begin_layout Plain Layout
11351 Table ! Multicolumns
11359 \begin_layout Subsubsection
11363 \begin_layout Standard
11364 To merge cells over multiple columns, select as many cells within a row
11365 as you want to merge and use either the table-toolbar button
11366 \begin_inset Graphics
11367 filename ../images/tabular-feature_multicolumn.png
11369 scaleBeforeRotation
11375 Edit\SpecialChar \menuseparator
11376 Table\SpecialChar \menuseparator
11379 , or right click on the marked cells and choose
11383 in the appearing context menu.
11386 \begin_layout Standard
11387 Multicolumns have there own cell settings.
11388 That means changing cell borders, cell alignment, and the width only affects
11390 Here is an example table with a multicolumn cell in the first row and one
11391 in the last row without the upper border:
11394 \begin_layout Standard
11396 \begin_inset Tabular
11397 <lyxtabular version="3" rows="3" columns="4">
11398 <features firstHeadTopDL="true" firstHeadBottomDL="true">
11399 <column alignment="center" valignment="top" width="0pt">
11400 <column alignment="center" valignment="middle" width="0">
11401 <column alignment="center" valignment="top" width="0in">
11402 <column alignment="center" valignment="top" width="0pt">
11404 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11407 \begin_layout Plain Layout
11413 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11416 \begin_layout Plain Layout
11422 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11425 \begin_layout Plain Layout
11431 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11434 \begin_layout Plain Layout
11442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11445 \begin_layout Plain Layout
11460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11463 \begin_layout Plain Layout
11469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11472 \begin_layout Plain Layout
11478 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11481 \begin_layout Plain Layout
11489 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11492 \begin_layout Plain Layout
11498 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11501 \begin_layout Plain Layout
11507 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11510 \begin_layout Plain Layout
11516 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11519 \begin_layout Plain Layout
11533 \begin_layout Subsubsection
11534 Multicolumn Calculations
11535 \begin_inset CommandInset label
11537 name "sub:Multicolumn-Calculations"
11545 \begin_layout Plain Layout
11546 Multicolumns ! Calculations
11554 \begin_layout Standard
11555 LyX supports multicolumns directly, but we have to take account of the cell
11556 width of the columns spanned by the multicolumn cell.
11559 \begin_layout Standard
11560 \begin_inset Float table
11566 \begin_layout Plain Layout
11567 \begin_inset Caption
11569 \begin_layout Plain Layout
11570 \begin_inset CommandInset label
11572 name "tab:Table-with-centered"
11576 Table with centered multicolumn text above two columns that have exactly
11577 half the width of the multicolumn cell
11578 \begin_inset OptArg
11581 \begin_layout Plain Layout
11582 Perfect multicolumn table
11595 \begin_layout Plain Layout
11597 \begin_inset Tabular
11598 <lyxtabular version="3" rows="3" columns="3">
11600 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11601 <column alignment="center" valignment="middle" width="0">
11602 <column alignment="center" valignment="top" width="0">
11604 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11607 \begin_layout Plain Layout
11608 multiple lines multicolumn
11613 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11616 \begin_layout Plain Layout
11622 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11625 \begin_layout Plain Layout
11633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11636 \begin_layout Plain Layout
11642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11645 \begin_layout Plain Layout
11651 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11654 \begin_layout Plain Layout
11662 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11665 \begin_layout Plain Layout
11671 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11674 \begin_layout Plain Layout
11680 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11683 \begin_layout Plain Layout
11702 \begin_layout Standard
11703 To create for example Table
11704 \begin_inset space ~
11708 \begin_inset CommandInset ref
11710 reference "tab:Table-with-centered"
11714 , mark the first two cells in the first row of a 3×3 table and right-click
11716 Now choose for this cell
11725 \begin_inset space \thinspace{}
11728 cm in the table dialog.
11729 The merged columns should have exactly half the width of the multicolumn
11730 cell, so that you would set a width of 1.25
11731 \begin_inset space \thinspace{}
11734 cm for the first column.
11735 The second column has then automatically a width of 1.25
11736 \begin_inset space \thinspace{}
11739 cm (multicolumn width - width of first column).
11740 This was done for Table
11741 \begin_inset space ~
11745 \begin_inset CommandInset ref
11747 reference "tab:Table-without-half"
11754 \begin_layout Standard
11755 \begin_inset Float table
11760 \begin_layout Plain Layout
11761 \begin_inset Caption
11763 \begin_layout Plain Layout
11764 \begin_inset CommandInset label
11766 name "tab:Table-without-half"
11770 Table where the spanned table columns have not exactly half the width of
11771 the multicolumn cell
11772 \begin_inset OptArg
11775 \begin_layout Plain Layout
11776 Imperfect multicolumn table
11789 \begin_layout Plain Layout
11791 \begin_inset Tabular
11792 <lyxtabular version="3" rows="3" columns="3">
11794 <column alignment="center" valignment="top" width="1.25cm">
11795 <column alignment="center" valignment="top" width="0">
11796 <column alignment="center" valignment="top" width="0">
11798 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11801 \begin_layout Plain Layout
11802 multiple lines multicolumn
11807 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11810 \begin_layout Plain Layout
11816 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11819 \begin_layout Plain Layout
11827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11830 \begin_layout Plain Layout
11836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11839 \begin_layout Plain Layout
11845 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11848 \begin_layout Plain Layout
11856 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11859 \begin_layout Plain Layout
11865 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11868 \begin_layout Plain Layout
11874 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11877 \begin_layout Plain Layout
11896 \begin_layout Standard
11897 You can see that the first column has not half the width of the multicolumn
11898 cell, it is a bit bigger.
11899 The reason is that the given width of a cell
11900 \begin_inset Formula $W_{g}$
11903 is not its total width
11904 \begin_inset Formula $W_{\mathrm{tot}}$
11907 because a cell is always a bit larger than its given width.
11909 \begin_inset space ~
11913 \begin_inset CommandInset ref
11915 reference "cha:Explanation-of-Equation"
11919 explains this in detail.
11922 \begin_layout Standard
11924 \begin_inset Formula $W_{g\, n}$
11931 columns are spanned can be calculated, so that each column has a total
11933 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11937 \begin_inset Formula \begin{equation}
11938 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11945 \begin_layout Standard
11946 In our case we have
11947 \begin_inset Formula $n=2$
11951 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11954 cm and the default values for the lengths, so that equation
11955 \begin_inset CommandInset ref
11962 \begin_inset Formula \begin{equation}
11963 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11970 \begin_layout Standard
11971 To enable calculations in LaTeX, the LaTeX-package
11975 must be loaded with the document preamble line
11979 \begin_layout Plain Layout
11980 LaTeX-packages ! calc
11988 \begin_layout Standard
11996 \begin_layout Standard
11997 LyX does not allow you to calculate lengths in the
12001 field of the table dialog.
12002 Therefore you have to format the column by inserting a LaTeX-argument in
12004 Here is an overview about the arguments:
12007 \begin_layout Itemize
12012 creates cell with a fixed width, its text is vertically top-aligned
12015 \begin_layout Itemize
12020 creates cell with a fixed width, its text is vertically centered
12023 \begin_layout Itemize
12028 creates cell with a fixed width, its text is vertically bottom-aligned
12031 \begin_layout Standard
12032 By entering a LaTeX-argument, all cell settings set in the table dialog
12036 \begin_layout Standard
12037 \begin_inset Note Greyedout
12040 \begin_layout Plain Layout
12045 Due to a bug, LyX shows the overwritten settings anyway.
12053 \begin_layout Standard
12054 As the text should be horizontally centered, the command
12061 You can now enter the following LaTeX-argument for the first spanned column:
12064 \begin_layout Standard
12069 centering}m{1.25cm-6.2pt}
12072 \begin_layout Standard
12077 means, that the commands inside the braces are applied before the cell
12081 \begin_layout Standard
12082 Although we have chosen centered alignment for the text of the multicolumn
12083 cell, it is still left aligned.
12084 This is because LyX only applies the alignment to single columns.
12085 So for the multicolumn cell we have to use the LaTeX-argument
12088 \begin_layout Standard
12096 \begin_layout Subsection
12101 \begin_layout Plain Layout
12111 \begin_layout Plain Layout
12120 \begin_layout Standard
12121 Unlike multicolumns multirows are not yet supported by LyX; so a bit of
12122 TeX-Code needs to be used.
12123 To use multirows load the LaTeX-package
12131 \begin_layout Plain Layout
12132 LaTeX-packages ! multirow
12137 in your document preamble with the command
12140 \begin_layout Standard
12145 usepackage{multirow}
12148 \begin_layout Standard
12149 Multirows are created with the command
12152 \begin_layout Standard
12157 multirow{number of rows}{cell width}{cell entry}
12160 \begin_layout Standard
12161 To create the following table:
12164 \begin_layout Standard
12169 \begin_layout Plain Layout
12183 \begin_inset Tabular
12184 <lyxtabular version="3" rows="3" columns="3">
12186 <column alignment="center" valignment="top" width="0">
12187 <column alignment="center" valignment="top" width="0">
12188 <column alignment="center" valignment="top" width="0">
12190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12193 \begin_layout Plain Layout
12199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12202 \begin_layout Plain Layout
12208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12211 \begin_layout Plain Layout
12219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12222 \begin_layout Plain Layout
12226 \begin_layout Plain Layout
12230 multirow{2}{2.5cm}{
12239 \begin_layout Plain Layout
12251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12254 \begin_layout Plain Layout
12260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12263 \begin_layout Plain Layout
12271 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12274 \begin_layout Plain Layout
12280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12283 \begin_layout Plain Layout
12289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12292 \begin_layout Plain Layout
12307 \begin_layout Plain Layout
12323 \begin_layout Standard
12324 create a 3×3 table.
12325 Unset the upper border of the last cell in the first column.
12326 The multirow is now created in the second row of the first column by inserting
12330 \begin_layout Standard
12335 multirow{2}{2.5cm}{
12338 \begin_layout Standard
12340 According to the command parameters the multirow spans now two rows and
12342 \begin_inset space \thinspace{}
12346 The content of the multirow cell follows outside the TeX-Code box and the
12347 command is finished with a right brace
12351 in another TeX-Code-box after the text.
12354 \begin_layout Standard
12361 left-aligns its content by default.
12362 To override the default, renew the command
12371 \begin_layout Standard
12383 \begin_layout Standard
12384 in TeX-Code in the document preamble.
12385 Then all entries of multirow cells in the document are centered.
12386 If centering is only needed for several tables, you can renew the command
12387 in a TeX-Code box just before the table instead of the preamble.
12388 If the text should be right-aligned, replace
12401 To return to left-alignment
12410 \begin_layout Section
12412 \begin_inset CommandInset label
12414 name "sec:Formal-Tables"
12422 \begin_layout Plain Layout
12431 \begin_layout Standard
12432 Tables are often typeset in books similar to Table
12433 \begin_inset space ~
12437 \begin_inset CommandInset ref
12439 reference "tab:Example-booktabs-table"
12444 This kind of tables is called
12445 \begin_inset Quotes eld
12453 \begin_inset Quotes erd
12457 To make a table a formal table use the option
12465 tab of the table dialog.
12468 \begin_layout Standard
12469 \begin_inset Float table
12475 \begin_layout Plain Layout
12476 \begin_inset Caption
12478 \begin_layout Plain Layout
12479 \begin_inset CommandInset label
12481 name "tab:Example-booktabs-table"
12485 Example booktabs-table
12493 \begin_layout Plain Layout
12495 \begin_inset Tabular
12496 <lyxtabular version="3" rows="8" columns="4">
12497 <features booktabs="true">
12498 <column alignment="center" valignment="top" width="0">
12499 <column alignment="center" valignment="top" width="0">
12500 <column alignment="center" valignment="top" width="0">
12501 <column alignment="center" valignment="top" width="0">
12503 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12506 \begin_layout Plain Layout
12512 <cell alignment="center" valignment="top" topline="true" usebox="none">
12515 \begin_layout Plain Layout
12517 \begin_inset space \thinspace{}
12525 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
12528 \begin_layout Plain Layout
12530 \begin_inset space \thinspace{}
12538 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12541 \begin_layout Plain Layout
12549 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12552 \begin_layout Plain Layout
12556 \begin_layout Plain Layout
12569 \begin_layout Plain Layout
12578 Detector thickness [µm]
12583 <cell alignment="center" valignment="top" usebox="none">
12586 \begin_layout Plain Layout
12592 <cell alignment="center" valignment="top" usebox="none">
12595 \begin_layout Plain Layout
12601 <cell alignment="center" valignment="top" usebox="none">
12604 \begin_layout Plain Layout
12612 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12615 \begin_layout Plain Layout
12621 <cell alignment="center" valignment="top" topline="true" usebox="none">
12624 \begin_layout Plain Layout
12630 <cell alignment="center" valignment="top" topline="true" usebox="none">
12633 \begin_layout Plain Layout
12639 <cell alignment="center" valignment="top" topline="true" usebox="none">
12642 \begin_layout Plain Layout
12649 <row topspace="default">
12650 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12653 \begin_layout Plain Layout
12654 Spatial resolution [µm]
12659 <cell alignment="center" valignment="top" usebox="none">
12662 \begin_layout Plain Layout
12668 <cell alignment="center" valignment="top" usebox="none">
12671 \begin_layout Plain Layout
12677 <cell alignment="center" valignment="top" usebox="none">
12680 \begin_layout Plain Layout
12687 <row topspace="default">
12688 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12691 \begin_layout Plain Layout
12693 \begin_inset Formula $f_{\mathrm{max}}$
12701 <cell alignment="center" valignment="top" usebox="none">
12704 \begin_layout Plain Layout
12710 <cell alignment="center" valignment="top" usebox="none">
12713 \begin_layout Plain Layout
12719 <cell alignment="center" valignment="top" usebox="none">
12722 \begin_layout Plain Layout
12729 <row topspace="default">
12730 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12733 \begin_layout Plain Layout
12737 \begin_layout Plain Layout
12741 cmidrule(l{10pt}){1-1}
12746 LSF-spatial resolution
12751 <cell alignment="center" valignment="top" usebox="none">
12754 \begin_layout Plain Layout
12760 <cell alignment="center" valignment="top" usebox="none">
12763 \begin_layout Plain Layout
12769 <cell alignment="center" valignment="top" usebox="none">
12772 \begin_layout Plain Layout
12780 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12783 \begin_layout Plain Layout
12789 <cell alignment="center" valignment="top" usebox="none">
12792 \begin_layout Plain Layout
12798 <cell alignment="center" valignment="top" usebox="none">
12801 \begin_layout Plain Layout
12807 <cell alignment="center" valignment="top" usebox="none">
12810 \begin_layout Plain Layout
12818 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12821 \begin_layout Plain Layout
12827 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12830 \begin_layout Plain Layout
12836 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12839 \begin_layout Plain Layout
12845 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12848 \begin_layout Plain Layout
12867 \begin_layout Standard
12868 Spaces to table rows can be added using the
12872 tab of the table dialog as described in section
12873 \begin_inset space ~
12877 \begin_inset CommandInset ref
12879 reference "sub:Row-Spacing"
12886 \begin_layout Standard
12887 In contrary to normal tables, formal tables have no vertical table lines.
12888 The horizontal table lines can be set like for normal tables but they appear
12889 with different width in the output:
12890 \begin_inset Newline newline
12893 The first and the last table line have a default width of 0.08
12894 \begin_inset space \thinspace{}
12897 em while the other lines have a default width of 0.05
12898 \begin_inset space \thinspace{}
12904 \begin_layout Standard
12905 The default widths can be changed with the following preamble lines
12908 \begin_layout Standard
12918 \begin_inset Newline newline
12930 \begin_layout Standard
12931 This example is for the first line, the so called
12936 If you want to change the width for the last line, replace
12945 To change the width for the other lines replace
12954 You can use all units listed in appendix
12955 \begin_inset space ~
12959 \begin_inset CommandInset ref
12961 reference "cha:Units-available-in"
12968 \begin_layout Standard
12969 Lines that don't span over all table columns can be created by setting a
12970 table line for multicolumn cells.
12971 LyX will then internally use the command
12977 to create this line.
12981 \begin_layout Standard
12986 cmidrule[width](trim){startcol-endcol}
12989 \begin_layout Standard
12996 are are currently not supported by LyX so you have to use TeX-Code to be
13004 s can manually be created by inserting the command as TeX-Code as first
13005 cell entry of the first cell of a row.
13006 The line is then drawn in the output above the current row.
13009 \begin_layout Standard
13010 The default for the width is 0.03
13011 \begin_inset space \thinspace{}
13015 Startcol is the number of the column where the line starts and endcol the
13016 column number where the line ends.
13017 The endcol always needs to be specified, also when the line should span
13019 The optional parameter trim could be either
13027 where the trimwidth is also optional.
13028 Using for example the parameter
13032 means that the line is trimmed from its left end by 2
13033 \begin_inset space \thinspace{}
13037 If you don't specify the trimwidth the lines are trimmed by the default
13039 \begin_inset space \thinspace{}
13045 \begin_layout Standard
13046 \begin_inset VSpace bigskip
13050 \begin_inset space ~
13054 \begin_inset CommandInset ref
13056 reference "tab:Example-booktabs-table"
13060 was created using the commands
13063 \begin_layout Standard
13073 \begin_layout Standard
13074 at the beginning of the in the second row and
13077 \begin_layout Standard
13082 cmidrule(l{10pt}){1-1}
13085 \begin_layout Standard
13089 \begin_layout Standard
13090 \begin_inset VSpace bigskip
13096 \begin_layout Standard
13097 You might want to have overlapping
13104 \begin_inset space ~
13108 \begin_inset CommandInset ref
13110 reference "tab:Special-booktabs-table"
13115 This can be achieved with the TeX-Code command
13118 \begin_layout Standard
13126 \begin_layout Standard
13127 The command that was used for the second row of Table
13128 \begin_inset space ~
13132 \begin_inset CommandInset ref
13134 reference "tab:Special-booktabs-table"
13141 \begin_layout Standard
13155 \begin_layout Standard
13156 The command for the sixth row is
13159 \begin_layout Standard
13171 \begin_layout Standard
13172 \begin_inset VSpace bigskip
13178 \begin_layout Standard
13179 If you are anyway not satisfied with the border line spacing, you can use
13180 the following command to produce lines that span over all table columns
13185 \begin_layout Standard
13190 specialrule{width}{space above}{space below}
13193 \begin_layout Standard
13194 For more information about these specialties, we refer to the manual of
13200 \begin_inset CommandInset citation
13210 \begin_layout Plain Layout
13211 LaTeX-packages ! booktabs
13219 \begin_layout Standard
13220 \begin_inset Float table
13226 \begin_layout Plain Layout
13227 \begin_inset Caption
13229 \begin_layout Plain Layout
13230 \begin_inset CommandInset label
13232 name "tab:Special-booktabs-table"
13236 Special booktabs-table
13244 \begin_layout Plain Layout
13246 \begin_inset Tabular
13247 <lyxtabular version="3" rows="8" columns="4">
13248 <features booktabs="true">
13249 <column alignment="center" valignment="top" width="0">
13250 <column alignment="center" valignment="top" width="0">
13251 <column alignment="center" valignment="top" width="0">
13252 <column alignment="center" valignment="top" width="0">
13254 <cell alignment="center" valignment="top" topline="true" usebox="none">
13257 \begin_layout Plain Layout
13263 <cell alignment="center" valignment="top" topline="true" usebox="none">
13266 \begin_layout Plain Layout
13268 \begin_inset space \thinspace{}
13276 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
13279 \begin_layout Plain Layout
13281 \begin_inset space \thinspace{}
13289 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13292 \begin_layout Plain Layout
13300 <cell alignment="center" valignment="top" usebox="none">
13303 \begin_layout Plain Layout
13307 \begin_layout Plain Layout
13320 \begin_layout Plain Layout
13333 \begin_layout Plain Layout
13346 \begin_layout Plain Layout
13355 Detector thickness [µm]
13360 <cell alignment="center" valignment="top" usebox="none">
13363 \begin_layout Plain Layout
13369 <cell alignment="center" valignment="top" usebox="none">
13372 \begin_layout Plain Layout
13378 <cell alignment="center" valignment="top" usebox="none">
13381 \begin_layout Plain Layout
13389 <cell alignment="center" valignment="top" topline="true" usebox="none">
13392 \begin_layout Plain Layout
13398 <cell alignment="center" valignment="top" topline="true" usebox="none">
13401 \begin_layout Plain Layout
13407 <cell alignment="center" valignment="top" topline="true" usebox="none">
13410 \begin_layout Plain Layout
13416 <cell alignment="center" valignment="top" topline="true" usebox="none">
13419 \begin_layout Plain Layout
13426 <row topspace="default">
13427 <cell alignment="center" valignment="top" usebox="none">
13430 \begin_layout Plain Layout
13431 Spatial resolution [µm]
13436 <cell alignment="center" valignment="top" usebox="none">
13439 \begin_layout Plain Layout
13445 <cell alignment="center" valignment="top" usebox="none">
13448 \begin_layout Plain Layout
13454 <cell alignment="center" valignment="top" usebox="none">
13457 \begin_layout Plain Layout
13464 <row topspace="default">
13465 <cell alignment="center" valignment="top" usebox="none">
13468 \begin_layout Plain Layout
13470 \begin_inset Formula $f_{\mathrm{max}}$
13478 <cell alignment="center" valignment="top" usebox="none">
13481 \begin_layout Plain Layout
13487 <cell alignment="center" valignment="top" usebox="none">
13490 \begin_layout Plain Layout
13496 <cell alignment="center" valignment="top" usebox="none">
13499 \begin_layout Plain Layout
13507 <cell alignment="center" valignment="top" topline="true" usebox="none">
13510 \begin_layout Plain Layout
13514 \begin_layout Plain Layout
13527 \begin_layout Plain Layout
13536 LSF-spatial resolution
13541 <cell alignment="center" valignment="top" topline="true" usebox="none">
13544 \begin_layout Plain Layout
13550 <cell alignment="center" valignment="top" topline="true" usebox="none">
13553 \begin_layout Plain Layout
13559 <cell alignment="center" valignment="top" topline="true" usebox="none">
13562 \begin_layout Plain Layout
13570 <cell alignment="center" valignment="top" usebox="none">
13573 \begin_layout Plain Layout
13579 <cell alignment="center" valignment="top" usebox="none">
13582 \begin_layout Plain Layout
13588 <cell alignment="center" valignment="top" usebox="none">
13591 \begin_layout Plain Layout
13597 <cell alignment="center" valignment="top" usebox="none">
13600 \begin_layout Plain Layout
13608 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13611 \begin_layout Plain Layout
13617 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13620 \begin_layout Plain Layout
13626 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13629 \begin_layout Plain Layout
13635 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13638 \begin_layout Plain Layout
13657 \begin_layout Section
13658 Vertical Table Alignment
13662 \begin_layout Plain Layout
13671 \begin_layout Standard
13672 To align tables vertically in a text line the table must be inside a box.
13673 The box can then be vertically aligned as described in section
13674 \begin_inset space ~
13678 \begin_inset CommandInset ref
13680 reference "sec:Box-Dialog"
13687 \begin_layout Standard
13688 In the following example the tables are inside a minipage
13692 \begin_layout Plain Layout
13693 Minipages are described in section
13694 \begin_inset space ~
13698 \begin_inset CommandInset ref
13700 reference "sec:Minipages"
13709 box that has a width of 15
13710 \begin_inset space \thinspace{}
13716 \begin_layout Itemize
13718 \begin_inset Box Frameless
13727 height_special "totalheight"
13730 \begin_layout Plain Layout
13731 \begin_inset Tabular
13732 <lyxtabular version="3" rows="3" columns="3">
13734 <column alignment="center" valignment="top" width="0">
13735 <column alignment="center" valignment="top" width="0">
13736 <column alignment="center" valignment="top" width="0">
13738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13741 \begin_layout Plain Layout
13747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13750 \begin_layout Plain Layout
13756 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13759 \begin_layout Plain Layout
13767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13770 \begin_layout Plain Layout
13776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13779 \begin_layout Plain Layout
13785 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13788 \begin_layout Plain Layout
13796 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13799 \begin_layout Plain Layout
13805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13808 \begin_layout Plain Layout
13814 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13817 \begin_layout Plain Layout
13837 \begin_layout Plain Layout
13849 \begin_inset Box Frameless
13858 height_special "totalheight"
13861 \begin_layout Plain Layout
13862 \begin_inset Tabular
13863 <lyxtabular version="3" rows="3" columns="3">
13865 <column alignment="center" valignment="top" width="0">
13866 <column alignment="center" valignment="top" width="0">
13867 <column alignment="center" valignment="top" width="0">
13869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13872 \begin_layout Plain Layout
13878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13881 \begin_layout Plain Layout
13887 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13890 \begin_layout Plain Layout
13898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13901 \begin_layout Plain Layout
13907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13910 \begin_layout Plain Layout
13916 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13919 \begin_layout Plain Layout
13927 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13930 \begin_layout Plain Layout
13936 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13939 \begin_layout Plain Layout
13945 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13948 \begin_layout Plain Layout
13968 \begin_layout Plain Layout
13978 \begin_layout Itemize
13980 \begin_inset Box Frameless
13989 height_special "totalheight"
13992 \begin_layout Plain Layout
13993 \begin_inset Tabular
13994 <lyxtabular version="3" rows="3" columns="3">
13996 <column alignment="center" valignment="top" width="0">
13997 <column alignment="center" valignment="top" width="0">
13998 <column alignment="center" valignment="top" width="0">
14000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14003 \begin_layout Plain Layout
14009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14012 \begin_layout Plain Layout
14018 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14021 \begin_layout Plain Layout
14029 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14032 \begin_layout Plain Layout
14038 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14041 \begin_layout Plain Layout
14047 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14050 \begin_layout Plain Layout
14058 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14061 \begin_layout Plain Layout
14067 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14070 \begin_layout Plain Layout
14076 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14079 \begin_layout Plain Layout
14098 \begin_layout Itemize
14100 \begin_inset Box Frameless
14109 height_special "totalheight"
14112 \begin_layout Plain Layout
14113 \begin_inset Tabular
14114 <lyxtabular version="3" rows="3" columns="3">
14116 <column alignment="center" valignment="top" width="0">
14117 <column alignment="center" valignment="top" width="0">
14118 <column alignment="center" valignment="top" width="0">
14120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14123 \begin_layout Plain Layout
14129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14132 \begin_layout Plain Layout
14138 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14141 \begin_layout Plain Layout
14149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14152 \begin_layout Plain Layout
14158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14161 \begin_layout Plain Layout
14167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14170 \begin_layout Plain Layout
14178 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14181 \begin_layout Plain Layout
14187 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14190 \begin_layout Plain Layout
14196 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14199 \begin_layout Plain Layout
14219 \begin_layout Plain Layout
14231 \begin_inset Box Frameless
14240 height_special "totalheight"
14243 \begin_layout Plain Layout
14244 \begin_inset Tabular
14245 <lyxtabular version="3" rows="3" columns="3">
14247 <column alignment="center" valignment="top" width="0">
14248 <column alignment="center" valignment="top" width="0">
14249 <column alignment="center" valignment="top" width="0">
14251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14254 \begin_layout Plain Layout
14260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14263 \begin_layout Plain Layout
14269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14272 \begin_layout Plain Layout
14280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14283 \begin_layout Plain Layout
14289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14292 \begin_layout Plain Layout
14298 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14301 \begin_layout Plain Layout
14309 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14312 \begin_layout Plain Layout
14318 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14321 \begin_layout Plain Layout
14327 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14330 \begin_layout Plain Layout
14350 \begin_layout Plain Layout
14360 \begin_layout Standard
14361 As you can see, the content of the first and last table row is not correctly
14362 aligned with the text line where the table is in.
14363 To get this alignment, the minipage box must be set into a raisebox
14367 \begin_layout Plain Layout
14368 Raiseboxes are described in section
14369 \begin_inset space ~
14373 \begin_inset CommandInset ref
14375 reference "sub:Vertical-Alignment"
14385 In the example above the second table in the first item is aligned using
14386 the TeX-Code-command
14389 \begin_layout Standard
14399 \begin_layout Standard
14401 Behind the box the closing brace
14405 is inserted as TeX-Code.
14406 For the second table in the last item the command
14409 \begin_layout Standard
14419 \begin_layout Standard
14423 \begin_layout Standard
14424 \begin_inset Note Greyedout
14427 \begin_layout Plain Layout
14432 The alignment of the table row content to the surrounding text line is
14434 The needed factor of the
14440 command for this alignment depends on the document font, the font size,
14441 and the table line thickness.
14449 \begin_layout Section
14451 \begin_inset CommandInset label
14453 name "sec:Colored-Tables"
14461 \begin_layout Plain Layout
14470 \begin_layout Subsection
14475 \begin_layout Plain Layout
14476 Table Color ! for Cells
14485 \begin_layout Plain Layout
14486 Color ! for Table Cells
14494 \begin_layout Standard
14495 \begin_inset Float table
14501 \begin_layout Plain Layout
14502 \begin_inset Caption
14504 \begin_layout Plain Layout
14505 \begin_inset CommandInset label
14507 name "tab:Table-colored-without"
14511 Table colored without using the package
14516 \begin_inset OptArg
14519 \begin_layout Plain Layout
14520 Table without colortbl
14533 \begin_layout Plain Layout
14535 \begin_inset Tabular
14536 <lyxtabular version="3" rows="3" columns="3">
14538 <column alignment="center" valignment="top" width="0">
14539 <column alignment="center" valignment="top" width="0">
14540 <column alignment="center" valignment="top" width="0">
14542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14545 \begin_layout Plain Layout
14553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14556 \begin_layout Plain Layout
14564 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14567 \begin_layout Plain Layout
14577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14580 \begin_layout Plain Layout
14588 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14591 \begin_layout Plain Layout
14599 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14602 \begin_layout Plain Layout
14612 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14615 \begin_layout Plain Layout
14623 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14626 \begin_layout Plain Layout
14634 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14637 \begin_layout Plain Layout
14658 \begin_layout Standard
14659 If you only need colored text, mark the cells and choose a color in the
14662 Edit\SpecialChar \menuseparator
14664 \begin_inset space ~
14670 This was used to create Table
14671 \begin_inset space ~
14675 \begin_inset CommandInset ref
14677 reference "tab:Table-colored-without"
14682 In any other case you have to use the LaTeX-package
14690 \begin_layout Plain Layout
14691 LaTeX-packages ! colortbl
14699 \begin_layout Standard
14703 \begin_layout Plain Layout
14713 \begin_inset Note Note
14716 \begin_layout Plain Layout
14717 The following section part will only be displayed when the LaTeX-package
14730 \begin_layout Standard
14731 To create colored tables,
14735 must be loaded in the preamble with the line
14738 \begin_layout Standard
14743 usepackage{colortbl}
14746 \begin_layout Standard
14747 The color of a column is adjusted with the command
14750 \begin_layout Standard
14755 columncolor{name of color}
14758 \begin_layout Standard
14764 More about the command
14768 is described in section
14769 \begin_inset space ~
14773 \begin_inset CommandInset ref
14775 reference "sub:Multicolumn-Calculations"
14782 \begin_layout Standard
14783 The following color names are predefined:
14786 \begin_layout Standard
14820 \begin_layout Standard
14821 \begin_inset VSpace medskip
14827 \begin_layout Standard
14828 You can also define your own color with the command
14831 \begin_layout Standard
14836 definecolor{color name}{color model}{color values}
14839 \begin_layout Standard
14840 The color model can be
14843 \begin_layout Labeling
14844 \labelwidthstring 00.00.0000
14845 cmyk: cyan, magenta, yellow, black
14848 \begin_layout Labeling
14849 \labelwidthstring 00.00.0000
14850 rgb: red, green blue
14853 \begin_layout Labeling
14854 \labelwidthstring 00.00.0000
14858 \begin_layout Standard
14859 and the color values are comma separated numbers between 0 and 1 describing
14860 the factor for the corresponding color of the color model.
14863 \begin_layout Standard
14865 \begin_inset space \thinspace{}
14869 \begin_inset space \space{}
14876 " in the preamble with
14879 \begin_layout Standard
14884 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14887 \begin_layout Standard
14895 \begin_layout Standard
14900 definecolor{lightgray}{gray}{0.8}
14903 \begin_layout Standard
14904 \begin_inset VSpace medskip
14910 \begin_layout Standard
14911 Lines are colored with the command
14914 \begin_layout Standard
14919 rowcolor{name of color}
14922 \begin_layout Standard
14923 and cells are colored with the command
14926 \begin_layout Standard
14931 cellcolor{name of color}
14934 \begin_layout Standard
14935 Both commands are inserted at the beginning of a cell as TeX-Code.
14938 \begin_layout Standard
14939 To color characters in the table, mark the cells and use the LyX menu
14941 Edit\SpecialChar \menuseparator
14943 \begin_inset space ~
14949 If a cell contains TeX-Code mark only the characters, otherwise the colored
14950 TeX-Code will cause LaTeX-errors.
14953 \begin_layout Standard
14954 \begin_inset Note Greyedout
14957 \begin_layout Plain Layout
14962 Not all DVI-viewers are able to display self-defined colors.
14970 \begin_layout Standard
14971 \begin_inset VSpace bigskip
14977 \begin_layout Standard
14979 \begin_inset space ~
14983 \begin_inset CommandInset ref
14985 reference "tab:Table-colored-using"
14989 do the following: The color of the first column should be
14997 \begin_layout Standard
15002 columncolor{darkgreen}
15007 \begin_layout Standard
15008 as LaTeX-argument for this column.
15009 The first row should be blue, therefore the TeX-Code command
15012 \begin_layout Standard
15020 \begin_layout Standard
15021 is inserted to the first cell of this row.
15022 Note that this overwrites the column color for the first cell.
15023 The last cell of the last row is colored magenta by inserting the TeX-Code
15027 \begin_layout Standard
15035 \begin_layout Standard
15036 The characters could now be colored using the menu
15038 Edit\SpecialChar \menuseparator
15040 \begin_inset space ~
15048 \begin_layout Standard
15049 \begin_inset Float table
15055 \begin_layout Plain Layout
15056 \begin_inset Caption
15058 \begin_layout Plain Layout
15059 \begin_inset CommandInset label
15061 name "tab:Table-colored-using"
15065 Table colored using the package
15070 \begin_inset OptArg
15073 \begin_layout Plain Layout
15074 Table with colortbl
15087 \begin_layout Plain Layout
15089 \begin_inset Tabular
15090 <lyxtabular version="3" rows="3" columns="3">
15092 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15093 <column alignment="center" valignment="top" width="0">
15094 <column alignment="center" valignment="top" width="0">
15096 <cell alignment="center" valignment="top" usebox="none">
15099 \begin_layout Plain Layout
15103 \begin_layout Plain Layout
15119 <cell alignment="center" valignment="top" usebox="none">
15122 \begin_layout Plain Layout
15130 <cell alignment="center" valignment="top" usebox="none">
15133 \begin_layout Plain Layout
15143 <cell alignment="center" valignment="top" usebox="none">
15146 \begin_layout Plain Layout
15154 <cell alignment="center" valignment="top" usebox="none">
15157 \begin_layout Plain Layout
15165 <cell alignment="center" valignment="top" usebox="none">
15168 \begin_layout Plain Layout
15178 <cell alignment="center" valignment="top" usebox="none">
15181 \begin_layout Plain Layout
15189 <cell alignment="center" valignment="top" usebox="none">
15192 \begin_layout Plain Layout
15200 <cell alignment="center" valignment="top" usebox="none">
15203 \begin_layout Plain Layout
15207 \begin_layout Plain Layout
15236 \begin_layout Standard
15240 \begin_layout Plain Layout
15250 \begin_inset Note Note
15253 \begin_layout Plain Layout
15254 The following will be displayed when the LaTeX-package
15266 \begin_layout Standard
15267 You need to install the package
15271 to see the content of this section in the output.
15274 \begin_layout Standard
15278 \begin_layout Plain Layout
15290 \begin_layout Subsection
15295 \begin_layout Plain Layout
15296 Table Color ! for Lines
15305 \begin_layout Plain Layout
15306 Color ! for Table Lines
15314 \begin_layout Standard
15315 As described in section
15316 \begin_inset space ~
15320 \begin_inset CommandInset ref
15322 reference "sub:Line-Thickness"
15326 , the line thickness for all lines in a table can be adjusted with the length
15335 \begin_inset space \thinspace{}
15338 pt for all tables of this section.
15342 \begin_layout Plain Layout
15348 arrayrulewidth}{1.5pt}
15356 \begin_layout Standard
15357 To color vertical lines for example with green, create the following column
15358 format in the document preamble, according to the description in section
15359 \begin_inset space ~
15363 \begin_inset CommandInset ref
15365 reference "sub:Customized-Format"
15372 \begin_layout Standard
15377 newcolumntype{W}{!{
15384 \begin_layout Standard
15386 \begin_inset space ~
15390 \begin_inset CommandInset ref
15392 reference "tab:Table-with-vertical-colored"
15400 was used for the last column and
15404 for the other columns.
15407 \begin_layout Standard
15408 If you want to have several colors, define more column formats.
15411 \begin_layout Standard
15412 \begin_inset Float table
15418 \begin_layout Plain Layout
15419 \begin_inset Caption
15421 \begin_layout Plain Layout
15422 \begin_inset CommandInset label
15424 name "tab:Table-with-vertical-colored"
15428 Table with colored vertical lines
15436 \begin_layout Plain Layout
15438 \begin_inset Tabular
15439 <lyxtabular version="3" rows="3" columns="3">
15441 <column alignment="center" valignment="top" width="0" special="Wc">
15442 <column alignment="center" valignment="top" width="0" special="Wc">
15443 <column alignment="center" valignment="top" width="0" special="WcW">
15445 <cell alignment="center" valignment="top" topline="true" usebox="none">
15448 \begin_layout Plain Layout
15454 <cell alignment="center" valignment="top" topline="true" usebox="none">
15457 \begin_layout Plain Layout
15463 <cell alignment="center" valignment="top" topline="true" usebox="none">
15466 \begin_layout Plain Layout
15474 <cell alignment="center" valignment="top" topline="true" usebox="none">
15477 \begin_layout Plain Layout
15483 <cell alignment="center" valignment="top" topline="true" usebox="none">
15486 \begin_layout Plain Layout
15492 <cell alignment="center" valignment="top" topline="true" usebox="none">
15495 \begin_layout Plain Layout
15503 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15506 \begin_layout Plain Layout
15512 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15515 \begin_layout Plain Layout
15521 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15524 \begin_layout Plain Layout
15543 \begin_layout Standard
15544 \begin_inset VSpace bigskip
15547 To color horizontal lines for example with red, like in Table
15548 \begin_inset space ~
15552 \begin_inset CommandInset ref
15554 reference "tab:Table-with-horizontal-colored"
15558 , insert these commands in TeX-Code before the table or table float:
15561 \begin_layout Standard
15571 \begin_inset Newline newline
15579 \begin_inset Newline newline
15586 \begin_layout Plain Layout
15597 arrayrulecolor{red}
15601 arrayrulecolor{black}}
15604 \begin_layout Standard
15608 \begin_layout Plain Layout
15619 \begin_layout Plain Layout
15628 \begin_layout Plain Layout
15632 arrayrulecolor{red}
15636 arrayrulecolor{black}}
15642 \begin_inset Float table
15648 \begin_layout Plain Layout
15649 \begin_inset Caption
15651 \begin_layout Plain Layout
15652 \begin_inset CommandInset label
15654 name "tab:Table-with-horizontal-colored"
15658 Table with colored horizontal lines
15666 \begin_layout Plain Layout
15668 \begin_inset Tabular
15669 <lyxtabular version="3" rows="3" columns="3">
15671 <column alignment="center" valignment="top" width="0">
15672 <column alignment="center" valignment="top" width="0">
15673 <column alignment="center" valignment="top" width="0">
15675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15678 \begin_layout Plain Layout
15684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15687 \begin_layout Plain Layout
15693 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15696 \begin_layout Plain Layout
15704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15707 \begin_layout Plain Layout
15713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15716 \begin_layout Plain Layout
15722 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15725 \begin_layout Plain Layout
15733 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15736 \begin_layout Plain Layout
15742 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15745 \begin_layout Plain Layout
15751 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15754 \begin_layout Plain Layout
15773 \begin_layout Standard
15774 To return to the default line color black, insert this command in TeX-Code
15775 behind the table or table float:
15778 \begin_layout Standard
15790 \begin_layout Standard
15792 \begin_inset space ~
15796 \begin_inset CommandInset ref
15798 reference "tab:Table-with-colored"
15802 is an example with colored vertical and horizontal lines.
15805 \begin_layout Standard
15806 \begin_inset Float table
15812 \begin_layout Plain Layout
15813 \begin_inset Caption
15815 \begin_layout Plain Layout
15816 \begin_inset CommandInset label
15818 name "tab:Table-with-colored"
15822 Table with colored lines
15830 \begin_layout Plain Layout
15832 \begin_inset Tabular
15833 <lyxtabular version="3" rows="3" columns="3">
15835 <column alignment="center" valignment="top" width="0" special="Wc">
15836 <column alignment="center" valignment="top" width="0" special="Wc">
15837 <column alignment="center" valignment="top" width="0" special="WcW">
15839 <cell alignment="center" valignment="top" topline="true" usebox="none">
15842 \begin_layout Plain Layout
15848 <cell alignment="center" valignment="top" topline="true" usebox="none">
15851 \begin_layout Plain Layout
15857 <cell alignment="center" valignment="top" topline="true" usebox="none">
15860 \begin_layout Plain Layout
15868 <cell alignment="center" valignment="top" topline="true" usebox="none">
15871 \begin_layout Plain Layout
15877 <cell alignment="center" valignment="top" topline="true" usebox="none">
15880 \begin_layout Plain Layout
15886 <cell alignment="center" valignment="top" topline="true" usebox="none">
15889 \begin_layout Plain Layout
15896 <row topspace="default">
15897 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15900 \begin_layout Plain Layout
15906 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15909 \begin_layout Plain Layout
15915 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15918 \begin_layout Plain Layout
15937 \begin_layout Standard
15941 \begin_layout Plain Layout
15957 \begin_layout Standard
15961 \begin_layout Plain Layout
15967 arrayrulewidth}{0.4pt}
15975 \begin_layout Section
15976 Table Customization
15980 \begin_layout Plain Layout
15981 Table Customization
15990 \begin_layout Plain Layout
15991 Table ! Customization
15999 \begin_layout Subsection
16001 \begin_inset CommandInset label
16003 name "sub:Row-Spacing"
16011 \begin_layout Plain Layout
16012 Table Customization ! Row Spacing
16020 \begin_layout Standard
16021 You can add vertical space to table rows in the
16025 tab of the table dialog.
16026 You find there three possibilities:
16029 \begin_layout Description
16031 \begin_inset space ~
16035 \begin_inset space ~
16038 row will add space above the characters of the table row.
16039 If the table is a formal table
16043 \begin_layout Plain Layout
16044 Formal tables are explained in section
16045 \begin_inset space ~
16049 \begin_inset CommandInset ref
16051 reference "sec:Formal-Tables"
16060 LyX will insert as default 0.5
16061 \begin_inset space \thinspace{}
16065 For normal tables the inserted space will unfortunately destroy the vertical
16066 table lines as in the following table:
16067 \begin_inset VSpace medskip
16071 \begin_inset Newline newline
16075 \begin_inset space \hspace*{}
16080 \begin_inset space \hfill{}
16084 \begin_inset Tabular
16085 <lyxtabular version="3" rows="3" columns="1">
16087 <column alignment="center" valignment="top" width="0">
16089 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16092 \begin_layout Plain Layout
16099 <row topspace="3mm">
16100 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16103 \begin_layout Plain Layout
16105 \begin_inset space \thinspace{}
16108 mm space top of row
16115 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16118 \begin_layout Plain Layout
16130 \begin_inset space \hfill{}
16134 \begin_inset space \hspace*{}
16139 \begin_inset VSpace medskip
16143 \begin_inset Newline newline
16146 So inserting space to the top of row for normal tables is only useful when
16147 you don't have vertical lines.
16150 \begin_layout Description
16152 \begin_inset space ~
16156 \begin_inset space ~
16159 row will add space below the characters of the table row.
16160 If the table is a formal table LyX will insert as default 0.5
16161 \begin_inset space \thinspace{}
16164 em space, for normal tables the default size is 2
16165 \begin_inset space \thinspace{}
16171 \begin_layout Description
16173 \begin_inset space ~
16176 rows adds space between the current and the following row.
16177 If the table is a formal table LyX will insert as default 0.5
16178 \begin_inset space \thinspace{}
16182 For normal tables the inserted space will unfortunately destroy the vertical
16183 table lines as in the following table:
16184 \begin_inset VSpace medskip
16188 \begin_inset Newline newline
16192 \begin_inset space \hspace*{}
16197 \begin_inset space \hfill{}
16201 \begin_inset Tabular
16202 <lyxtabular version="3" rows="3" columns="1">
16204 <column alignment="center" valignment="top" width="0">
16206 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16209 \begin_layout Plain Layout
16216 <row interlinespace="3mm">
16217 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16220 \begin_layout Plain Layout
16221 \begin_inset Formula $\downarrow$
16225 \begin_inset space \thinspace{}
16228 mm space between row
16229 \begin_inset Formula $\downarrow$
16239 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16242 \begin_layout Plain Layout
16243 \begin_inset Formula $\uparrow$
16247 \begin_inset space \thinspace{}
16250 mm space between row
16251 \begin_inset Formula $\uparrow$
16265 \begin_inset space \hfill{}
16269 \begin_inset space \hspace*{}
16274 \begin_inset VSpace medskip
16278 \begin_inset Newline newline
16281 So inserting space between rows for normal tables is only useful when you
16282 don't have vertical lines.
16285 \begin_layout Standard
16286 \begin_inset VSpace bigskip
16289 When you want to add extra height to all cells of all tables, you can do
16290 this with the following preamble lines:
16293 \begin_layout Standard
16298 @ifundefined{extrarowheight}
16299 \begin_inset Newline newline
16306 \begin_layout Plain Layout
16317 usepackage{array}}{}
16318 \begin_inset Newline newline
16325 extrarowheight}{height}
16328 \begin_layout Standard
16329 But this has the disadvantage that the cell texts are no longer exactly
16330 vertically centered.
16335 will be loaded automatically by LyX when you use self defined table formats.
16336 To avoid that it is loaded twice the command
16342 is used in the above command.)
16345 \begin_layout Standard
16346 In case you are using font sizes larger than the normal size, the table
16347 borders are often too close to the letters.
16348 This can be corrected by inserting the command
16354 in TeX code at the beginning of a table row.
16356 \begin_inset space ~
16360 \begin_inset CommandInset ref
16362 reference "tab:Vertical-alignment-of"
16366 visualizes the effect.
16369 \begin_layout Standard
16371 \begin_inset Float table
16377 \begin_layout Plain Layout
16378 \begin_inset Caption
16380 \begin_layout Plain Layout
16381 \begin_inset CommandInset label
16383 name "tab:Vertical-alignment-of"
16387 Vertical alignment of text with large font sizes.
16395 \begin_layout Plain Layout
16396 \begin_inset space \hfill{}
16400 \begin_inset Float table
16405 \begin_layout Plain Layout
16406 \begin_inset Caption
16408 \begin_layout Plain Layout
16417 \begin_layout Plain Layout
16420 \begin_inset Tabular
16421 <lyxtabular version="3" rows="6" columns="1">
16423 <column alignment="left" valignment="top" width="0">
16425 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16428 \begin_layout Plain Layout
16436 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16439 \begin_layout Plain Layout
16449 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16452 \begin_layout Plain Layout
16462 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16465 \begin_layout Plain Layout
16475 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16478 \begin_layout Plain Layout
16488 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16491 \begin_layout Plain Layout
16510 \begin_inset space \hfill{}
16514 \begin_inset Float table
16519 \begin_layout Plain Layout
16520 \begin_inset Caption
16522 \begin_layout Plain Layout
16523 Table using the command
16537 \begin_layout Plain Layout
16540 \begin_inset Tabular
16541 <lyxtabular version="3" rows="6" columns="1">
16543 <column alignment="left" valignment="top" width="0">
16545 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16548 \begin_layout Plain Layout
16556 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16559 \begin_layout Plain Layout
16565 \begin_layout Plain Layout
16581 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16584 \begin_layout Plain Layout
16590 \begin_layout Plain Layout
16606 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16609 \begin_layout Plain Layout
16615 \begin_layout Plain Layout
16631 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16634 \begin_layout Plain Layout
16640 \begin_layout Plain Layout
16656 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16659 \begin_layout Plain Layout
16665 \begin_layout Plain Layout
16692 \begin_inset space \hfill{}
16703 \begin_layout Subsection
16704 Special Cell Alignment
16708 \begin_layout Plain Layout
16709 Table Customization ! Special Cell Alignment
16717 \begin_layout Standard
16718 Sometimes it looks better when the cell entries of a column are aligned
16719 with a special character, e.
16720 \begin_inset space \thinspace{}
16724 \begin_inset space \space{}
16727 with the decimal separator as in Table
16728 \begin_inset space ~
16732 \begin_inset CommandInset ref
16734 reference "tab:Table-cells-of"
16741 \begin_layout Standard
16742 \begin_inset Float table
16748 \begin_layout Plain Layout
16749 \begin_inset Caption
16751 \begin_layout Plain Layout
16752 \begin_inset CommandInset label
16754 name "tab:Table-cells-of"
16758 Table cells of a column aligned with the decimal separator.
16766 \begin_layout Plain Layout
16768 \begin_inset Tabular
16769 <lyxtabular version="3" rows="4" columns="2">
16771 <column alignment="right" valignment="top" width="0">
16772 <column alignment="left" valignment="top" width="0" special="@{}l">
16774 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16777 \begin_layout Plain Layout
16783 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16786 \begin_layout Plain Layout
16794 <cell alignment="center" valignment="top" usebox="none">
16797 \begin_layout Plain Layout
16803 <cell alignment="center" valignment="top" usebox="none">
16806 \begin_layout Plain Layout
16814 <cell alignment="center" valignment="top" usebox="none">
16817 \begin_layout Plain Layout
16823 <cell alignment="center" valignment="top" usebox="none">
16826 \begin_layout Plain Layout
16834 <cell alignment="center" valignment="top" usebox="none">
16837 \begin_layout Plain Layout
16843 <cell alignment="center" valignment="top" usebox="none">
16846 \begin_layout Plain Layout
16865 \begin_layout Standard
16866 This table was created with a 4×2 table.
16867 The heading is a centered multicolumn.
16868 The first column is right-aligned and contains the digits before the decimal
16869 point and the decimal point.
16870 The second column is left aligned and contains the digits after the decimal
16872 To omit the space that is normally between two table columns, use the following
16873 LaTeX-argument for the second column:
16876 \begin_layout Standard
16882 \begin_layout Standard
16884 \begin_inset space ~
16888 \begin_inset CommandInset ref
16890 reference "tab:Several-table-cell"
16894 shows some example alignments.
16895 For the alignment with the relation sign, you must add the second smallest
16896 math-space at the beginning of the last column to get the correct space
16897 surrounding the relation sign.
16900 \begin_layout Standard
16901 \begin_inset Float table
16907 \begin_layout Plain Layout
16908 \begin_inset Caption
16910 \begin_layout Plain Layout
16911 \begin_inset CommandInset label
16913 name "tab:Several-table-cell"
16917 Several table cell alignments.
16925 \begin_layout Plain Layout
16927 \begin_inset Tabular
16928 <lyxtabular version="3" rows="4" columns="6">
16930 <column alignment="right" valignment="top" width="0">
16931 <column alignment="left" valignment="top" width="0" special="@{}l">
16932 <column alignment="right" valignment="top" width="0">
16933 <column alignment="left" valignment="top" width="0" special="@{}l">
16934 <column alignment="right" valignment="top" width="0">
16935 <column alignment="left" valignment="top" width="0" special="@{}l">
16937 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16940 \begin_layout Plain Layout
16946 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16949 \begin_layout Plain Layout
16955 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16958 \begin_layout Plain Layout
16964 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16967 \begin_layout Plain Layout
16973 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16976 \begin_layout Plain Layout
16982 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16985 \begin_layout Plain Layout
16993 <cell alignment="center" valignment="top" usebox="none">
16996 \begin_layout Plain Layout
17002 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17005 \begin_layout Plain Layout
17007 \begin_inset space \thinspace{}
17015 <cell alignment="center" valignment="top" usebox="none">
17018 \begin_layout Plain Layout
17019 \begin_inset Formula $10\cdot$
17027 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17030 \begin_layout Plain Layout
17031 \begin_inset Formula $10^{\mbox{-}17}$
17039 <cell alignment="center" valignment="top" usebox="none">
17042 \begin_layout Plain Layout
17043 \begin_inset Formula $\Gamma(t)\propto$
17051 <cell alignment="center" valignment="top" usebox="none">
17054 \begin_layout Plain Layout
17055 \begin_inset Formula $\:\Upsilon(t)$
17065 <cell alignment="center" valignment="top" usebox="none">
17068 \begin_layout Plain Layout
17074 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17077 \begin_layout Plain Layout
17079 \begin_inset space \thinspace{}
17087 <cell alignment="center" valignment="top" usebox="none">
17090 \begin_layout Plain Layout
17091 \begin_inset Formula $5.78\cdot$
17099 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17102 \begin_layout Plain Layout
17103 \begin_inset Formula $10^{7}$
17111 <cell alignment="center" valignment="top" usebox="none">
17114 \begin_layout Plain Layout
17115 \begin_inset Formula $A\ne$
17123 <cell alignment="center" valignment="top" usebox="none">
17126 \begin_layout Plain Layout
17127 \begin_inset Formula $\: B_{\mathrm{red}}$
17137 <cell alignment="center" valignment="top" usebox="none">
17140 \begin_layout Plain Layout
17146 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17149 \begin_layout Plain Layout
17151 \begin_inset space \thinspace{}
17159 <cell alignment="center" valignment="top" usebox="none">
17162 \begin_layout Plain Layout
17164 \begin_inset Formula $33.5\cdot$
17172 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17175 \begin_layout Plain Layout
17176 \begin_inset Formula $10^{4}$
17184 <cell alignment="center" valignment="top" usebox="none">
17187 \begin_layout Plain Layout
17188 \begin_inset Formula $\sin(\alpha)\ge$
17196 <cell alignment="center" valignment="top" usebox="none">
17199 \begin_layout Plain Layout
17200 \begin_inset Formula $\:\sin(\beta)$
17221 \begin_layout Standard
17222 \begin_inset VSpace bigskip
17225 There is also the LaTeX-package
17233 \begin_layout Plain Layout
17234 LaTeX-packages ! dcolumn
17239 that provides table cell alignments.
17240 But this unfortunately treats the cell entries as math and does not allow
17241 formulas in table cells: The first column of Table
17242 \begin_inset space ~
17246 \begin_inset CommandInset ref
17248 reference "tab:Several-table-cell"
17256 like the first column in Table
17257 \begin_inset space ~
17261 \begin_inset CommandInset ref
17263 reference "tab:Alignments-when"
17267 and only with some tricks like the expected.
17268 The alignment of the second and third column of Table
17269 \begin_inset space ~
17273 \begin_inset CommandInset ref
17275 reference "tab:Several-table-cell"
17279 is not possible with
17286 \begin_layout Standard
17287 \begin_inset Newpage newpage
17293 \begin_layout Standard
17294 \begin_inset Float table
17300 \begin_layout Plain Layout
17301 \begin_inset Caption
17303 \begin_layout Plain Layout
17304 \begin_inset CommandInset label
17306 name "tab:Alignments-when"
17310 Alignments when LaTeX-package dcolumn is used.
17311 For all column alignments tricks have to be used to get the output.
17319 \begin_layout Plain Layout
17321 \begin_inset Tabular
17322 <lyxtabular version="3" rows="4" columns="3">
17324 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
17325 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
17326 <column alignment="center" valignment="top" width="0" special="D{+}{\,}{9.7}">
17328 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17331 \begin_layout Plain Layout
17337 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17340 \begin_layout Plain Layout
17346 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17349 \begin_layout Plain Layout
17357 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17360 \begin_layout Plain Layout
17362 \begin_inset space \thinspace{}
17370 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17373 \begin_layout Plain Layout
17375 \begin_inset space \thinspace{}
17379 \begin_inset Formula $\mbox{bottles}$
17387 <cell alignment="center" valignment="top" usebox="none">
17390 \begin_layout Plain Layout
17395 \begin_layout Plain Layout
17405 \begin_inset Formula $\mbox{bottles}$
17415 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17418 \begin_layout Plain Layout
17420 \begin_inset space \thinspace{}
17428 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17431 \begin_layout Plain Layout
17433 \begin_inset space \thinspace{}
17437 \begin_inset Formula $\mbox{Pixels}$
17445 <cell alignment="center" valignment="top" usebox="none">
17448 \begin_layout Plain Layout
17453 \begin_layout Plain Layout
17463 \begin_inset Formula $\mbox{Pixels}$
17473 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17476 \begin_layout Plain Layout
17478 \begin_inset space \thinspace{}
17486 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17489 \begin_layout Plain Layout
17491 \begin_inset space \thinspace{}
17495 \begin_inset Formula $\mbox{cm}$
17503 <cell alignment="center" valignment="top" usebox="none">
17506 \begin_layout Plain Layout
17511 \begin_layout Plain Layout
17521 \begin_inset Formula $\mbox{cm}$
17542 \begin_layout Subsection
17543 Customized Cell/Column Format
17544 \begin_inset CommandInset label
17546 name "sub:Customized-Format"
17554 \begin_layout Plain Layout
17555 Table Customization ! Cell/Column Format
17563 \begin_layout Standard
17564 Calculating the needed width for spanned columns like in section
17565 \begin_inset space ~
17569 \begin_inset CommandInset ref
17571 reference "sub:Multicolumn-Calculations"
17575 is very annoying if you have several tables with multicolumn cells.
17576 To make life easier, you can define a cell/column format in the preamble,
17577 so that it can be used in all tables of the document.
17578 The format is defined with the command
17581 \begin_layout Standard
17586 newcolumntype{name of format}[number of arguments]{commands}
17589 \begin_layout Standard
17590 The format name may only consist of one letter.
17615 are predefined and cannot be used.
17616 But all letters are allowed as capitals.
17619 \begin_layout Standard
17620 \begin_inset VSpace medskip
17626 \begin_layout Standard
17627 For vertically and horizontally centered multicolumn cells with a fixed
17628 width you can define the cell format
17631 \begin_layout Standard
17636 newcolumntype{M}[1]{>{
17643 \begin_layout Standard
17650 avoids the problem of hyphenating the first word, as described in section
17651 \begin_inset space ~
17655 \begin_inset CommandInset ref
17657 reference "sub:Multiple-Lines-in"
17662 Now you can simply enter
17665 \begin_layout Standard
17671 \begin_layout Standard
17672 as LaTeX-argument in the table dialog to create a multicolumn.
17675 \begin_layout Standard
17676 \begin_inset VSpace bigskip
17682 \begin_layout Standard
17683 For cells spanned by a multicolumn cell, you can define the format
17686 \begin_layout Standard
17691 newcolumntype{S}[2]{>{
17696 \begin_inset Newline newline
17703 \begin_layout Plain Layout
17718 \begin_layout Plain Layout
17729 arrayrulewidth)*(1-#2))/#2}}
17732 \begin_layout Standard
17733 This format uses equation
17734 \begin_inset CommandInset ref
17740 to calculate the needed width so that each spanned cell has the same width.
17743 \begin_layout Standard
17747 \begin_layout Standard
17750 S{width of multicolumn cell}{number of spanned columns}
17753 \begin_layout Standard
17754 as LaTeX-argument of the column.
17757 \begin_layout Standard
17758 \begin_inset VSpace bigskip
17764 \begin_layout Standard
17765 For colored columns, you can define
17768 \begin_layout Standard
17773 newcolumntype{K}[1]{>{
17780 \begin_layout Standard
17782 \begin_inset Quotes eld
17786 \begin_inset Quotes erd
17789 at the end creates a column with a flexible width whose text is horizontally
17794 \begin_layout Standard
17800 \begin_layout Standard
17804 \begin_layout Standard
17805 \begin_inset VSpace bigskip
17811 \begin_layout Standard
17813 \begin_inset space ~
17817 \begin_inset CommandInset ref
17819 reference "tab:Table-using-user-defined"
17823 use the LaTeX-arguments
17826 \begin_layout Standard
17832 \begin_layout Standard
17833 for the first column and the multicolumn,
17836 \begin_layout Standard
17842 \begin_layout Standard
17843 for the the last column, and
17846 \begin_layout Standard
17852 \begin_layout Standard
17853 for the cells in the second column.
17856 \begin_layout Standard
17857 \begin_inset Float table
17863 \begin_layout Plain Layout
17864 \begin_inset Caption
17866 \begin_layout Plain Layout
17867 \begin_inset CommandInset label
17869 name "tab:Table-using-user-defined"
17873 Table using user-defined table formats
17881 \begin_layout Plain Layout
17883 \begin_inset Tabular
17884 <lyxtabular version="3" rows="3" columns="4">
17886 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17887 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17888 <column alignment="center" valignment="middle" width="0">
17889 <column alignment="center" valignment="middle" width="0" special="K{red}">
17891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17894 \begin_layout Plain Layout
17895 verylongtablecellword
17900 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17903 \begin_layout Plain Layout
17904 multiple lines multicolumn
17909 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17912 \begin_layout Plain Layout
17918 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17921 \begin_layout Plain Layout
17929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17932 \begin_layout Plain Layout
17938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17941 \begin_layout Plain Layout
17947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17950 \begin_layout Plain Layout
17956 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17959 \begin_layout Plain Layout
17967 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17970 \begin_layout Plain Layout
17976 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17979 \begin_layout Plain Layout
17985 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17988 \begin_layout Plain Layout
17994 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17997 \begin_layout Plain Layout
18016 \begin_layout Subsection
18018 \begin_inset CommandInset label
18020 name "sub:Line-Thickness"
18028 \begin_layout Plain Layout
18029 Table Customization ! Line Thickness
18037 \begin_layout Standard
18038 The line thickness for all lines in a table can be adjusted with the length
18046 To set for example a line thickness of 1.5
18047 \begin_inset space \thinspace{}
18051 \begin_inset space ~
18055 \begin_inset CommandInset ref
18057 reference "tab:Table-with-1.5"
18061 , insert the command
18064 \begin_layout Standard
18071 arrayrulewidth}{1.5pt}
18074 \begin_layout Standard
18075 in TeX-Code before the table or table float.
18076 The changed thickness is valid for all following tables.
18077 To use the default value again, set
18084 \begin_inset space \thinspace{}
18087 pt in TeX-Code behind the table or table float.
18090 \begin_layout Standard
18094 \begin_layout Plain Layout
18100 arrayrulewidth}{1.5pt}
18106 \begin_inset Float table
18111 \begin_layout Plain Layout
18112 \begin_inset Caption
18114 \begin_layout Plain Layout
18115 \begin_inset CommandInset label
18117 name "tab:Table-with-1.5"
18122 \begin_inset space \thinspace{}
18133 \begin_layout Plain Layout
18135 \begin_inset Tabular
18136 <lyxtabular version="3" rows="3" columns="3">
18138 <column alignment="center" valignment="top" width="0">
18139 <column alignment="center" valignment="top" width="0">
18140 <column alignment="center" valignment="top" width="0">
18142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18145 \begin_layout Plain Layout
18151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18154 \begin_layout Plain Layout
18160 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18163 \begin_layout Plain Layout
18171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18174 \begin_layout Plain Layout
18180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18183 \begin_layout Plain Layout
18189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18192 \begin_layout Plain Layout
18200 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18203 \begin_layout Plain Layout
18209 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18212 \begin_layout Plain Layout
18218 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18221 \begin_layout Plain Layout
18241 \begin_layout Plain Layout
18247 arrayrulewidth}{0.4pt}
18255 \begin_layout Standard
18256 \begin_inset VSpace bigskip
18259 To set the line thickness to 1.5
18260 \begin_inset space \thinspace{}
18263 pt only for horizontal lines, like in Table
18264 \begin_inset space ~
18268 \begin_inset CommandInset ref
18270 reference "tab:Table-with-horizontal"
18274 , insert these commands in TeX-Code before the table or table float:
18277 \begin_layout Standard
18287 \begin_inset Newline newline
18295 \begin_inset Newline newline
18304 arrayrulewidth 1.5pt}
18305 \begin_inset Newline newline
18316 arrayrulewidth 0.4pt}}
18319 \begin_layout Standard
18320 To return to the default line thickness, insert this command in TeX-Code
18321 behind the table or table float:
18324 \begin_layout Standard
18336 \begin_layout Standard
18340 \begin_layout Plain Layout
18351 \begin_layout Plain Layout
18360 \begin_layout Plain Layout
18368 arrayrulewidth 1.5pt}
18371 \begin_layout Plain Layout
18381 arrayrulewidth 0.4pt}}
18387 \begin_inset Float table
18392 \begin_layout Plain Layout
18393 \begin_inset Caption
18395 \begin_layout Plain Layout
18396 \begin_inset CommandInset label
18398 name "tab:Table-with-horizontal"
18403 \begin_inset space \thinspace{}
18406 pt thick horizontal lines
18414 \begin_layout Plain Layout
18416 \begin_inset Tabular
18417 <lyxtabular version="3" rows="3" columns="3">
18419 <column alignment="center" valignment="top" width="0">
18420 <column alignment="center" valignment="top" width="0">
18421 <column alignment="center" valignment="top" width="0">
18423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18426 \begin_layout Plain Layout
18432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18435 \begin_layout Plain Layout
18441 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18444 \begin_layout Plain Layout
18452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18455 \begin_layout Plain Layout
18461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18464 \begin_layout Plain Layout
18470 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18473 \begin_layout Plain Layout
18481 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18484 \begin_layout Plain Layout
18490 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18493 \begin_layout Plain Layout
18499 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18502 \begin_layout Plain Layout
18522 \begin_layout Plain Layout
18538 \begin_layout Standard
18539 \begin_inset VSpace bigskip
18542 To set the line thickness to 1.5
18543 \begin_inset space \thinspace{}
18546 pt only for vertical lines, create the following column format in the document
18547 preamble, according to the description in section
18548 \begin_inset space ~
18552 \begin_inset CommandInset ref
18554 reference "sub:Customized-Format"
18561 \begin_layout Standard
18566 newcolumntype{V}{!{
18568 vrule width 1.5pt}}
18571 \begin_layout Standard
18573 \begin_inset space ~
18577 \begin_inset CommandInset ref
18579 reference "tab:Table-with-vertical"
18586 \begin_layout Standard
18592 \begin_layout Standard
18593 was used for the last column and
18596 \begin_layout Standard
18602 \begin_layout Standard
18603 for the other columns.
18606 \begin_layout Standard
18607 \begin_inset Float table
18612 \begin_layout Plain Layout
18613 \begin_inset Caption
18615 \begin_layout Plain Layout
18616 \begin_inset CommandInset label
18618 name "tab:Table-with-vertical"
18623 \begin_inset space \thinspace{}
18626 pt thick vertical lines
18634 \begin_layout Plain Layout
18636 \begin_inset Tabular
18637 <lyxtabular version="3" rows="3" columns="3">
18639 <column alignment="center" valignment="top" width="0" special="Vc">
18640 <column alignment="center" valignment="top" width="0" special="Vc">
18641 <column alignment="center" valignment="top" width="0" special="VcV">
18643 <cell alignment="center" valignment="top" topline="true" usebox="none">
18646 \begin_layout Plain Layout
18652 <cell alignment="center" valignment="top" topline="true" usebox="none">
18655 \begin_layout Plain Layout
18661 <cell alignment="center" valignment="top" topline="true" usebox="none">
18664 \begin_layout Plain Layout
18672 <cell alignment="center" valignment="top" topline="true" usebox="none">
18675 \begin_layout Plain Layout
18681 <cell alignment="center" valignment="top" topline="true" usebox="none">
18684 \begin_layout Plain Layout
18690 <cell alignment="center" valignment="top" topline="true" usebox="none">
18693 \begin_layout Plain Layout
18701 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18704 \begin_layout Plain Layout
18710 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18713 \begin_layout Plain Layout
18719 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18722 \begin_layout Plain Layout
18741 \begin_layout Subsection
18746 \begin_layout Plain Layout
18747 Table Customization ! Dashed Lines
18755 \begin_layout Standard
18759 \begin_layout Plain Layout
18769 \begin_inset Note Note
18772 \begin_layout Plain Layout
18773 The following section will only be displayed when the LaTeX-package
18785 \begin_layout Standard
18786 \begin_inset Float table
18792 \begin_layout Plain Layout
18793 \begin_inset Caption
18795 \begin_layout Plain Layout
18796 \begin_inset CommandInset label
18798 name "tab:Table-with-dashed"
18802 Table with dashed lines
18810 \begin_layout Plain Layout
18812 \begin_inset Tabular
18813 <lyxtabular version="3" rows="5" columns="5">
18815 <column alignment="center" valignment="top" width="0">
18816 <column alignment="center" valignment="top" width="0">
18817 <column alignment="center" valignment="top" width="0" special=":c">
18818 <column alignment="center" valignment="top" width="0">
18819 <column alignment="center" valignment="top" width="0">
18821 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18824 \begin_layout Plain Layout
18830 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18833 \begin_layout Plain Layout
18839 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18842 \begin_layout Plain Layout
18848 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18851 \begin_layout Plain Layout
18857 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18860 \begin_layout Plain Layout
18868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18871 \begin_layout Plain Layout
18877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18880 \begin_layout Plain Layout
18886 <cell alignment="center" valignment="top" topline="true" usebox="none">
18889 \begin_layout Plain Layout
18895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18898 \begin_layout Plain Layout
18904 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18907 \begin_layout Plain Layout
18915 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18918 \begin_layout Plain Layout
18922 \begin_layout Plain Layout
18936 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18939 \begin_layout Plain Layout
18945 <cell alignment="center" valignment="top" usebox="none">
18948 \begin_layout Plain Layout
18954 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18957 \begin_layout Plain Layout
18963 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18966 \begin_layout Plain Layout
18974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18977 \begin_layout Plain Layout
18981 \begin_layout Plain Layout
18995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18998 \begin_layout Plain Layout
19004 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
19007 \begin_layout Plain Layout
19013 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19016 \begin_layout Plain Layout
19022 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19025 \begin_layout Plain Layout
19033 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19036 \begin_layout Plain Layout
19042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19045 \begin_layout Plain Layout
19051 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19054 \begin_layout Plain Layout
19060 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19063 \begin_layout Plain Layout
19069 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19072 \begin_layout Plain Layout
19091 \begin_layout Standard
19092 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
19093 As prerequisite the LaTeX-package
19101 \begin_layout Plain Layout
19102 LaTeX-packages ! arydshln
19107 must be loaded in the document preamble with the command
19110 \begin_layout Standard
19115 usepackage{arydshln}
19118 \begin_layout Standard
19119 To make a vertical line dashed, enter the colon
19120 \begin_inset Quotes eld
19124 \begin_inset Quotes erd
19127 together with the character for the horizontal alignment as LaTeX-argument
19128 in the table cell dialog.
19131 \begin_layout Standard
19132 For a horizontal dashed line add the command
19135 \begin_layout Standard
19143 \begin_layout Standard
19144 in TeX-Code as first element of the first cell in the table row.
19147 \begin_layout Standard
19148 For dashed multicolumn lines use the command
19151 \begin_layout Standard
19156 cdashline{line number
19161 \begin_layout Standard
19162 in TeX-Code as first element of the first cell in the table row.
19163 If you have for example a multicolumn spanning over columns 2 to 4 and
19164 you want to have a dashed line above, add the command
19167 \begin_layout Standard
19175 \begin_layout Standard
19176 as first element of the first cell in the row of the multicolumn.
19179 \begin_layout Standard
19180 \begin_inset VSpace bigskip
19186 \begin_layout Standard
19188 \begin_inset space ~
19192 \begin_inset CommandInset ref
19194 reference "tab:Table-with-dashed"
19199 \begin_inset Quotes eld
19207 \begin_inset Quotes erd
19210 as LaTeX-argument of the third column.
19211 The TeX-Code command
19217 was inserted to the first cell of the third row and the the TeX-Code command
19218 \begin_inset Newline newline
19227 was inserted to the first cell of the fourth row.
19230 \begin_layout Standard
19231 \begin_inset Note Greyedout
19234 \begin_layout Plain Layout
19239 The used LaTeX-package
19243 is apparently not compatible with the LaTeX-package
19251 \begin_layout Plain Layout
19252 LaTeX-packages ! colortbl
19257 that is used for colored tables in section
19258 \begin_inset space ~
19262 \begin_inset CommandInset ref
19264 reference "sec:Colored-Tables"
19269 That means colored tables cannot have dashed lines.
19277 \begin_layout Standard
19281 \begin_layout Plain Layout
19291 \begin_inset Note Note
19294 \begin_layout Plain Layout
19295 The following will be displayed when the LaTeX-package
19307 \begin_layout Standard
19308 You need to install the package
19312 to see the content of this section in the output.
19315 \begin_layout Standard
19319 \begin_layout Plain Layout
19331 \begin_layout Chapter
19336 \begin_layout Plain Layout
19345 \begin_layout Section
19347 \begin_inset CommandInset label
19349 name "sec:FloatIntroduction"
19357 \begin_layout Plain Layout
19358 Floats ! Introduction
19366 \begin_layout Standard
19367 A float is a block of text associated with some sort of label, which doesn't
19368 have a fixed location.
19370 \begin_inset Quotes eld
19374 \begin_inset Quotes erd
19377 forward or backward a page or two, to wherever it fits best.
19385 \begin_inset space ~
19390 are also floats, because they can float to the next page when there are
19391 too many notes at the page.
19394 \begin_layout Standard
19395 Floats allow a high quality layout.
19396 Images and tables can evenly be spread to the pages to avoid white space
19397 and pages without text.
19398 As the floating often destroys the context between the text and the image/table
19399 , every float can be referenced in the text.
19400 Floats are therefore numbered.
19401 Referencing is described in section
19402 \begin_inset space ~
19406 \begin_inset CommandInset ref
19408 reference "sec:Referencing-Floats"
19415 \begin_layout Standard
19416 To insert a float, use the menu
19418 Insert\SpecialChar \menuseparator
19426 inset, a box with a label.
19427 The label will automatically be translated to the document language in
19429 Behind the label you can insert the caption text.
19430 The image or table is inserted above or below the caption in a separate
19431 paragraph within the float.
19432 More about the caption placement is described in section
19433 \begin_inset space ~
19437 \begin_inset CommandInset ref
19439 reference "sec:Caption-Placement"
19444 To keep your LyX-document readable, you can open and close the float box
19445 by left-clicking on the box label.
19446 A closed float box looks like this:
19447 \begin_inset Graphics
19448 filename clipart/floatQt4.png
19450 scaleBeforeRotation
19454 – a gray button with a red label.
19457 \begin_layout Standard
19458 It is recommended to insert floats as a separate paragraph to avoid possible
19459 LaTeX-errors that can occur when the surrounding text is specially formatted.
19462 \begin_layout Standard
19463 Existing figures or tables can be put into a float by marking them and then
19464 pressing the corresponding toolbar button for a new float.
19467 \begin_layout Section
19471 \begin_layout Standard
19472 Besides figure and table floats that are described in section
19473 \begin_inset space ~
19477 \begin_inset CommandInset ref
19479 reference "sec:Figure-Floats"
19484 \begin_inset CommandInset ref
19486 reference "sec:Table-Floats"
19490 , respectively, LyX offers the float types
19501 \begin_layout Subsection
19506 \begin_layout Plain Layout
19507 Floats ! Algorithms
19515 \begin_layout Standard
19516 \begin_inset Float algorithm
19522 \begin_layout Plain Layout
19523 \begin_inset Caption
19525 \begin_layout Plain Layout
19526 \begin_inset CommandInset label
19528 name "alg:Example-Algorithm-float"
19532 Example Algorithm float
19540 \begin_layout LyX-Code
19542 \begin_inset Newline newline
19545 Sum:= Sum + A(I); /*comment*/
19546 \begin_inset Newline newline
19550 \begin_inset VSpace -4mm
19561 \begin_layout Standard
19562 This float type is inserted with the menu
19564 Insert\SpecialChar \menuseparator
19565 Floats\SpecialChar \menuseparator
19569 It is used for program codes and descriptions of algorithms and can be
19570 seen as an alternative to program code listings that are explained in chapter
19571 \begin_inset space ~
19575 \begin_inset CommandInset ref
19577 reference "cha:Program-Code-Listings"
19582 A possible environment for algorithms is the
19586 , described in LyX's
19592 \begin_inset space ~
19596 \begin_inset CommandInset ref
19598 reference "alg:Example-Algorithm-float"
19602 is an example of an algorithm float where -4
19603 \begin_inset space \thinspace{}
19606 mm vertical space was added at the end of the float to have the bottom rule
19607 exactly below the last text line.
19610 \begin_layout Standard
19611 The float label is not automatically translated into the document language.
19612 If your document is not in English, you have to do this manually by adding
19613 the following line to the document preamble
19618 \begin_layout Standard
19623 floatname{algorithm}{your
19624 \begin_inset space ~
19630 \begin_layout Standard
19634 \begin_inset space ~
19640 \begin_inset Quotes eld
19648 \begin_inset Quotes erd
19654 \begin_layout Standard
19655 To insert the list of algorithms you can use the menu
19657 Insert\SpecialChar \menuseparator
19659 \begin_inset space \thinspace{}
19663 \begin_inset space \thinspace{}
19666 TOC\SpecialChar \menuseparator
19669 when your document has the same language as LyX's menu names.
19670 In other cases use this command in TeX-Code instead:
19673 \begin_layout Standard
19678 listof{algorithm}{your
19679 \begin_inset space ~
19685 \begin_layout Standard
19689 \begin_inset space ~
19695 \begin_inset Quotes eld
19703 \begin_inset Quotes erd
19709 \begin_layout Standard
19710 Algorithm floats are not by default numbered in the scheme
19711 \begin_inset Quotes eld
19715 \begin_inset Quotes erd
19718 like it is the case for table and figure floats in many document-classes.
19719 To number algorithm floats in the same scheme, add this command to your
19723 \begin_layout Standard
19728 numberwithin{algorithm}{chapter}
19731 \begin_layout Standard
19732 To be able to use the command
19741 \begin_inset space ~
19746 in the document settings the option
19749 \begin_inset space ~
19753 \begin_inset space ~
19757 \begin_inset space ~
19765 \begin_layout Subsection
19770 \begin_layout Plain Layout
19771 Floats ! Wrap Floats
19779 \begin_layout Standard
19780 \begin_inset Wrap figure
19787 \begin_layout Plain Layout
19788 \begin_inset Graphics
19789 filename clipart/mobius.eps
19791 scaleBeforeRotation
19792 rotateOrigin center
19799 \begin_layout Plain Layout
19800 \begin_inset Caption
19802 \begin_layout Plain Layout
19803 \begin_inset CommandInset label
19805 name "fig:This-is-a"
19809 This is a figure wrap float.
19819 This float type is used if you want to wrap text around a figure or table
19820 so that it only occupies some fraction of the column width.
19821 It can be inserted using the menu
19823 Insert\SpecialChar \menuseparator
19824 Floats\SpecialChar \menuseparator
19826 \begin_inset space ~
19830 \begin_inset space ~
19838 \begin_inset space ~
19842 \begin_inset space ~
19847 if the LaTeX-package
19855 \begin_layout Plain Layout
19856 LaTeX-packages ! wrapfig
19860 \begin_layout Plain Layout
19878 \begin_layout Plain Layout
19879 Installing a LaTeX-package is explained it in the
19882 \begin_inset space ~
19892 The settings of the float can be modified by right-clicking on the float
19894 The mandatory settings are the float
19907 that specifies how much the float is set into the paragraph
19908 \begin_inset space \thinspace{}
19912 \begin_inset space \thinspace{}
19915 page margin, and the
19918 \begin_inset space ~
19923 that specifies how many text lines the float will approximately need.
19924 The line span is often hard to be approximated, so better only use it when
19925 you encounter float placement problems.
19926 You can furthermore decide if LaTeX is allowed to let the float float within
19927 the paragraph or to surrounding paragraphs.
19929 \begin_inset space ~
19933 \begin_inset CommandInset ref
19935 reference "fig:This-is-a"
19939 is an example text wrap float with a width of 40
19940 \begin_inset space \thinspace{}
19944 \begin_inset space \thinspace{}
19947 cm overhang, set to the left.
19951 \begin_layout Plain Layout
19952 Available units are explained in appendix
19953 \begin_inset space ~
19957 \begin_inset CommandInset ref
19959 reference "cha:Units-available-in"
19971 \begin_layout Standard
19972 \begin_inset Note Greyedout
19975 \begin_layout Plain Layout
19981 \begin_inset space ~
19984 wrap float floats are fragile! E.
19985 \begin_inset space \thinspace{}
19989 \begin_inset space \space{}
19992 having a figure too close to the bottom of the page can mess things up in
19993 the way that the float doesn't appear in the output or that it is placed
19994 over some other text.
20002 \begin_layout Standard
20006 \begin_layout Itemize
20007 Wrap floats should not be placed in paragraphs that run over a page break.
20008 That means that wrap floats should better be inserted to the exact place
20009 when the document is nearly finished and you are able to estimate where
20010 page breaks will appear.
20013 \begin_layout Itemize
20014 Wrap floats should either be placed in an own paragraph before the paragraph
20015 where they should wrap into or within a paragraph.
20018 \begin_layout Itemize
20019 Wrap floats in consecutive paragraphs may cause troubles, so assure that
20020 there is a text paragraph between them as separator.
20023 \begin_layout Itemize
20024 Wrap floats are not allowed in section headings or tables.
20027 \begin_layout Section
20032 \begin_layout Plain Layout
20041 \begin_layout Standard
20042 Floats are usually numbered either independent from the sections the floats
20043 are in, or in the scheme
20044 \begin_inset Quotes eld
20048 \begin_inset Quotes erd
20052 \begin_inset Quotes eld
20056 \begin_inset Quotes erd
20060 This depends on the used document class.
20063 \begin_layout Standard
20064 To change the section independent numbering, you can use this command in
20065 the document preamble:
20068 \begin_layout Standard
20080 \begin_layout Standard
20087 is the command that prints the table number, for figure floats, the command
20101 prints in the command above the table number as small roman number.
20104 \begin_layout Standard
20105 To change the numbering scheme for example to
20106 \begin_inset Quotes eld
20110 \begin_inset Quotes erd
20113 , use this command in the preamble:
20116 \begin_layout Standard
20121 numberwithin{table}{subsection}
20124 \begin_layout Standard
20125 To be able to use the command
20134 \begin_inset space ~
20139 in the document settings the option
20142 \begin_inset space ~
20146 \begin_inset space ~
20150 \begin_inset space ~
20158 \begin_layout Standard
20159 Please also have a look at section
20160 \begin_inset space ~
20164 \begin_inset CommandInset ref
20166 reference "sub:Footnote-Numbering"
20170 for the details and important notes about the numbering commands.
20173 \begin_layout Section
20175 \begin_inset CommandInset label
20177 name "sec:Referencing-Floats"
20185 \begin_layout Plain Layout
20186 Floats ! References
20195 \begin_layout Plain Layout
20196 References ! to Floats
20204 \begin_layout Standard
20205 To reference a float, insert a label into its caption using the menu
20207 Insert\SpecialChar \menuseparator
20210 or the toolbar button
20211 \begin_inset Graphics
20212 filename ../images/label-insert.png
20214 scaleBeforeRotation
20219 A grey label box like this one:
20220 \begin_inset Graphics
20221 filename clipart/labelQt4.png
20223 scaleBeforeRotation
20227 will be inserted and the label window pops up asking for the label text.
20228 LyX offers as text the first words of the caption with a prefix.
20229 The prefix depends on the float type, e.
20230 \begin_inset space \thinspace{}
20234 \begin_inset space \space{}
20237 for figure floats the prefix will be "
20244 \begin_layout Standard
20245 The label is used as anchor and name for the reference.
20246 You can refer to the label using the menu
20248 Insert\SpecialChar \menuseparator
20251 or the toolbar button
20252 \begin_inset Graphics
20253 filename ../images/dialog-show-new-inset_ref.png
20255 scaleBeforeRotation
20260 A grey cross-reference box like this one:
20261 \begin_inset Graphics
20262 filename clipart/referenceQt4.png
20264 scaleBeforeRotation
20268 will be inserted and the cross-reference window appear showing all labels
20270 If you have multiple LyX-documents opened, choose the one you are working
20271 on from the drop-list at the top of the dialog.
20272 You can now sort the labels alphabetically and then choose one.
20273 At the position of the cross-reference box the float number will appear
20277 \begin_layout Standard
20278 It is recommended to use a protected space between the cross-reference name
20279 and its number to avoid line breaks between them.
20280 If a cross-reference refers to a non-existing label, you will see two question
20281 marks in the output instead of the reference.
20284 \begin_layout Standard
20285 You can change labels at any time by clicking on the label box.
20286 References to the changed label will automatically change its link to the
20287 new label text, so that you don't need to take care about this.
20290 \begin_layout Standard
20294 \begin_inset space ~
20298 \begin_inset space ~
20303 in the cross-reference window sets the cursor before the referred label.
20304 The button text changes then to Go
20305 \begin_inset space ~
20308 Back and you can use it to set the cursor back to the cross-reference.
20309 Right-clicking on a cross-reference box also sets the cursor before the
20310 referenced label but without a possibility to go back.
20313 \begin_layout Subsection
20314 Cross-Reference Formats
20315 \begin_inset CommandInset label
20317 name "sub:Cross-Reference-Formats"
20325 \begin_layout Plain Layout
20326 References ! Formats
20334 \begin_layout Standard
20335 There are six varieties of cross-references:
20338 \begin_layout Description
20339 <reference>: prints the float number, this is the default:
20340 \begin_inset CommandInset ref
20342 reference "fig:Two-distorted-images"
20349 \begin_layout Description
20350 (<reference>): prints the float number within two parentheses, this is the
20351 style normally used to reference formulas, especially when the reference
20353 \begin_inset Quotes eld
20357 \begin_inset Quotes erd
20361 \begin_inset CommandInset ref
20370 \begin_layout Description
20371 <page>: prints the page number: Page
20372 \begin_inset space ~
20376 \begin_inset CommandInset ref
20377 LatexCommand pageref
20378 reference "fig:Two-distorted-images"
20385 \begin_layout Description
20387 \begin_inset space ~
20391 \begin_inset space ~
20394 <page>: prints the text "on page" and the page number:
20395 \begin_inset CommandInset ref
20396 LatexCommand vpageref
20397 reference "fig:Two-distorted-images"
20404 \begin_layout Description
20406 \begin_inset space ~
20410 \begin_inset space ~
20414 \begin_inset space ~
20417 <page>: prints the float number, the text "on page", and the page number:
20419 \begin_inset CommandInset ref
20421 reference "fig:Two-distorted-images"
20428 \begin_layout Description
20430 \begin_inset space ~
20433 reference: prints a self defined cross-reference format.
20434 \begin_inset Newline newline
20438 \begin_inset Note Greyedout
20441 \begin_layout Plain Layout
20446 This feature is only available when you have the LaTeX-package
20454 \begin_layout Plain Layout
20455 LaTeX-packages ! prettyref
20468 \begin_layout Standard
20469 Note that the style <page> won't print the page number if the label is on
20470 the previous, the same, or the next page.
20472 \begin_inset space \thinspace{}
20476 \begin_inset space \space{}
20480 \begin_inset Quotes eld
20488 \begin_inset Quotes erd
20494 \begin_layout Standard
20495 The number and current page of the referred document part in the output,
20496 is automatically calculated by LaTeX.
20497 The varieties are adjusted in the field
20501 of the cross-reference window, that appear when you click on the cross-referenc
20505 \begin_layout Standard
20506 \begin_inset Note Greyedout
20509 \begin_layout Plain Layout
20522 \begin_layout Plain Layout
20523 LaTeX-packages ! prettyref
20528 does not know all of LyX's possible label shortcuts
20532 \begin_layout Plain Layout
20533 \begin_inset Quotes eld
20537 \begin_inset Quotes erd
20540 is for example LyX's shortcut for labels in figure captions.
20545 and is not internationalized.
20550 new shortcuts and translations, have a look at its documentation
20551 \begin_inset CommandInset citation
20565 \begin_layout Standard
20566 \begin_inset Note Greyedout
20569 \begin_layout Plain Layout
20574 Due to a bug in the LaTeX-package
20578 version 1.4w, some cross-reference formats will cause LaTeX errors for document
20579 languages that make the period character active (like French).
20580 For a workaround, see
20581 \begin_inset Newline newline
20585 \begin_inset CommandInset href
20587 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
20599 \begin_layout Subsection
20600 Automatic Reference Naming
20604 \begin_layout Plain Layout
20605 References ! Automatic Reference Naming
20613 \begin_layout Standard
20622 \begin_layout Plain Layout
20623 LaTeX-packages ! hyperref
20628 , that is enabled in the
20636 dialog, provides a very useful feature that cross-references automatically
20637 include the name of the referenced floats (or text parts like
20642 So you will save to write e.
20643 \begin_inset space \thinspace{}
20647 \begin_inset space \space{}
20651 \begin_inset Quotes eld
20655 \begin_inset Quotes erd
20658 before every reference to a figure.
20659 To use this feature, enable
20663 and insert this line to the LaTeX preamble:
20666 \begin_layout Standard
20682 \begin_layout Standard
20683 When you prefer other reference names than the default ones, for example
20684 you want instead of
20685 \begin_inset Quotes eld
20689 \begin_inset Quotes erd
20693 \begin_inset Quotes eld
20697 \begin_inset space \thinspace{}
20701 \begin_inset Quotes eld
20704 , you can redefine the name by inserting this to the preamble:
20707 \begin_layout Standard
20718 sectionautorefname}
20719 \begin_inset Newline newline
20726 \begin_layout Plain Layout
20740 \begin_layout Standard
20741 When you are using another document language than English, replace
20742 \begin_inset Newline newline
20757 , where *** is the name of the used language.
20760 \begin_layout Standard
20761 To get automatic names, but not for certain reference types, for example
20762 not for equations, use this preamble code:
20765 \begin_layout Standard
20773 \begin_inset Newline newline
20783 \begin_inset Newline newline
20794 equationautorefname}
20795 \begin_inset Newline newline
20802 \begin_layout Plain Layout
20818 \begin_layout Standard
20819 More about this topic can be found in
20824 \begin_inset CommandInset citation
20833 \begin_layout Standard
20834 \begin_inset Note Greyedout
20837 \begin_layout Plain Layout
20842 Automatic reference naming cannot be used when you use cross-references
20846 \begin_inset space ~
20851 style, as described in section
20852 \begin_inset space ~
20856 \begin_inset CommandInset ref
20858 reference "sub:Cross-Reference-Formats"
20870 \begin_layout Standard
20875 manual is an example where automatic reference naming is used.
20878 \begin_layout Subsection
20880 \begin_inset CommandInset label
20882 name "sub:Reference-Position"
20890 \begin_layout Plain Layout
20891 References ! Reference Position
20899 \begin_layout Standard
20908 \begin_layout Plain Layout
20909 LaTeX-packages ! hyperref
20922 dialog to link cross-references in the output, you will see that clicking
20923 on an image float reference jumps to the image label.
20924 The caption will be the first text part on the screen, so that you cannot
20925 see the image without scrolling.
20926 This is because the reference link anchor is placed at the position of
20928 With the use of the package
20936 \begin_layout Plain Layout
20937 LaTeX-packages ! hypcap
20942 , which is part of the LaTeX-package
20950 \begin_layout Plain Layout
20951 LaTeX-packages ! oberdiek
20956 , the link anchor is placed at the beginning of a float.
20957 To use this feature for figure floats, load
20961 in the document preamble with the line
20964 \begin_layout Standard
20969 usepackage[figure]{hypcap}
20972 \begin_layout Standard
20977 for all float types but this is not recommended for stability reasons.
20978 For more information, have a look at
20983 \begin_inset CommandInset citation
20992 \begin_layout Standard
20993 \begin_inset Note Greyedout
20996 \begin_layout Plain Layout
21005 has no effect for references to subfigures.
21013 \begin_layout Section
21015 \begin_inset CommandInset label
21017 name "sec:Float-Placement"
21025 \begin_layout Plain Layout
21034 \begin_layout Standard
21035 Right-clicking on a float-box opens a dialog where you can alter the placement
21036 options that LaTeX uses for positioning the float.
21037 \begin_inset Newline newline
21043 \begin_inset space ~
21048 is only useful for two-column documents: If you select it, the float will
21049 span across both columns on the page instead of being confined to just
21051 \begin_inset Newline newline
21057 \begin_inset space ~
21062 is used to rotate floats, see section
21063 \begin_inset CommandInset ref
21065 reference "sec:Rotated-Floats"
21072 \begin_layout Standard
21073 You can use one ore more of the following options in the float dialog to
21074 set the placement for a particular float when you uncheck the option
21077 \begin_inset space ~
21081 \begin_inset space ~
21089 \begin_layout Description
21091 \begin_inset space ~
21095 \begin_inset space ~
21098 possible try to place the float on the position where it is inserted
21101 \begin_layout Description
21103 \begin_inset space ~
21107 \begin_inset space ~
21110 page try to place the float on the top of the current page
21113 \begin_layout Description
21115 \begin_inset space ~
21119 \begin_inset space ~
21122 page try to place the float on the bottom of the current page
21125 \begin_layout Description
21127 \begin_inset space ~
21131 \begin_inset space ~
21134 floats try to place the float on an own page
21137 \begin_layout Standard
21138 The order of the above option is
21143 That means, if you use the default placement, LaTeX will first try out
21147 \begin_inset space ~
21151 \begin_inset space ~
21159 \begin_inset space ~
21163 \begin_inset space ~
21168 , and then the others.
21169 If you don't use the default, LaTeX will try only the checked options but
21171 If none of the 4 placements are possible the procedure is internally repeated
21172 but it is tried to put the float on the following page.
21175 \begin_layout Standard
21176 By default, each option has its own rules:
21179 \begin_layout Labeling
21180 \labelwidthstring 00.00.0000
21184 \begin_inset space ~
21188 \begin_inset space ~
21193 only floats occupying less than 70
21194 \begin_inset space \thinspace{}
21197 % of the page can be placed at the top of a page (
21206 \begin_layout Labeling
21207 \labelwidthstring 00.00.0000
21211 \begin_inset space ~
21215 \begin_inset space ~
21220 : only floats occupying less than 30
21221 \begin_inset space \thinspace{}
21224 % of the page can be placed at the bottom of a page.
21234 \begin_layout Labeling
21235 \labelwidthstring 00.00.0000
21239 \begin_inset space ~
21243 \begin_inset space ~
21248 : only if more than 50
21249 \begin_inset space \thinspace{}
21252 % of the page are occupied by floats, several floats can be set together
21263 \begin_layout Standard
21264 If you don't like these rules, you can ignore them by using the additional
21268 \begin_inset space ~
21272 \begin_inset space ~
21278 \begin_inset Newline newline
21281 You can also redefine the rules with LaTeX-commands that are given in parenthese
21282 s behind the rules description above.
21283 To increase for example the often too small default of the bottom-rule
21285 \begin_inset space \thinspace{}
21288 % of the page, add this line to your document preamble:
21291 \begin_layout Standard
21298 bottomfraction}{0.5}
21301 \begin_layout Standard
21302 Sometimes you might need, under all circumstances, a float to be placed
21303 exactly at the position where it is inserted.
21304 For this case you can use the option
21307 \begin_inset space ~
21313 Use this option very rarely and only if the document is nearly ready to
21315 Because the float is then no longer able to
21316 \begin_inset Quotes eld
21320 \begin_inset Quotes erd
21323 when you change your document and this will often destroy the page layout.
21326 \begin_layout Standard
21327 There are no placement options for text wrap floats, because they are always
21328 surrounded by the text of a certain paragraph.
21329 \begin_inset VSpace bigskip
21335 \begin_layout Standard
21336 Sometimes you have the problem that a float is placed at the top of a page
21337 while its corresponding section starts at the middle of the page, so that
21338 the reader could think the float is part of the previous section.
21339 To avoid this the LaTeX-command
21346 It suppresses a given float placement for the page where it is inserted
21347 and can therefore be used to avoid that floats could be set before a section
21349 To get this, add these commands to your document preamble:
21352 \begin_layout Standard
21362 \begin_inset Newline newline
21376 \begin_layout Standard
21377 You can define the same for all section headings, like chapters and subsections.
21378 This definition is not recommended to be used for small text parts like
21379 subsubsections because LaTeX may then have problems to find a suitable
21383 \begin_layout Standard
21384 \begin_inset VSpace bigskip
21387 In some cases it is required to have all figures/tables at the end of the
21389 For this purpose the LaTeX-package
21397 \begin_layout Plain Layout
21398 LaTeX-packages ! endfloat
21404 It puts all figure and table floats at the end of the document into own
21406 At the original float position a text hint like
21407 \begin_inset Quotes eld
21413 \begin_inset space ~
21419 \begin_inset Quotes erd
21423 The endfloat-package is loaded in the preamble with the line
21426 \begin_layout Standard
21431 usepackage[options]{endfloat}
21434 \begin_layout Standard
21435 There are various package options to format the created figure/table sections.
21436 For more information we refer to the
21441 \begin_inset CommandInset citation
21448 \begin_inset Newline newline
21452 \begin_inset Note Greyedout
21455 \begin_layout Plain Layout
21460 doesn't provide an automatic translation for the text hint, you have to
21461 do this manually, see section
21462 \begin_inset space ~
21466 \begin_inset CommandInset citation
21478 \begin_inset Newline newline
21482 \begin_inset Note Greyedout
21485 \begin_layout Plain Layout
21490 There is currently a bug in
21494 when the caption contains a German
21495 \begin_inset Quotes eld
21499 \begin_inset Quotes erd
21503 Use in this case the command
21504 \begin_inset Quotes eld
21514 \begin_inset Quotes erd
21517 in TeX-Code instead of
21518 \begin_inset Quotes eld
21522 \begin_inset Quotes erd
21533 \begin_layout Standard
21534 \begin_inset VSpace bigskip
21537 For more details about float placements, have a look at LaTeX books,
21538 \begin_inset CommandInset citation
21540 key "latexcompanion,latexguide,latexbook"
21547 \begin_layout Section
21549 \begin_inset CommandInset label
21551 name "sec:Rotated-Floats"
21559 \begin_layout Plain Layout
21568 \begin_layout Standard
21569 Especially for wide tables you might have floats rotated.
21570 To rotate a whole float including the caption, right-click on the float-box
21574 \begin_inset space ~
21582 \begin_layout Standard
21583 Rotated floats are always placed on its own page (or column, in case you
21584 have a multi-column document).
21585 You can let them span several columns using the float settings option
21588 \begin_inset space ~
21594 Floats are rotated so that you can read them from the outside margin.
21595 To force a certain rotation direction for all pages, you can add either
21604 to the document class options.
21607 \begin_layout Standard
21608 Referencing rotated floats is the same like for normal floats, the caption
21609 format is also the same: Table
21610 \begin_inset space ~
21614 \begin_inset CommandInset ref
21616 reference "tab:Rotated-table"
21620 is an example of a rotated table float.
21623 \begin_layout Standard
21624 \begin_inset Note Greyedout
21627 \begin_layout Plain Layout
21632 Not all DVI-viewers are able to display rotated floats.
21640 \begin_layout Standard
21641 \begin_inset Float table
21646 \begin_layout Plain Layout
21647 \begin_inset Caption
21649 \begin_layout Plain Layout
21650 \begin_inset CommandInset label
21652 name "tab:Rotated-table"
21664 \begin_layout Plain Layout
21666 \begin_inset Tabular
21667 <lyxtabular version="3" rows="1" columns="5">
21669 <column alignment="center" valignment="top" width="0">
21670 <column alignment="center" valignment="top" width="0">
21671 <column alignment="center" valignment="top" width="0">
21672 <column alignment="center" valignment="top" width="0">
21673 <column alignment="center" valignment="top" width="0">
21675 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21678 \begin_layout Plain Layout
21684 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21687 \begin_layout Plain Layout
21693 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21696 \begin_layout Plain Layout
21702 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21705 \begin_layout Plain Layout
21711 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21714 \begin_layout Plain Layout
21733 \begin_layout Section
21738 \begin_layout Plain Layout
21747 \begin_layout Standard
21748 Subfloats are for example used when a figure consists of several images.
21749 They are created by inserting a float to an existing float.
21750 The placement of the subfloats can be controlled like for paragraphs as
21752 \begin_inset space ~
21756 \begin_inset CommandInset ref
21758 reference "tab:Two-subtables-side"
21763 \begin_inset CommandInset ref
21765 reference "tab:Two-subtables-upon"
21772 \begin_layout Standard
21773 Referencing subfloats works as for normal floats: Table
21774 \begin_inset space ~
21778 \begin_inset CommandInset ref
21780 reference "tab:This-is-subtable-a"
21785 \begin_inset CommandInset ref
21787 reference "tab:This-is-subtable-b"
21791 are subtables of table
21792 \begin_inset space ~
21796 \begin_inset CommandInset ref
21798 reference "tab:Two-subtables-side"
21805 \begin_layout Standard
21806 \begin_inset Float table
21811 \begin_layout Plain Layout
21812 \begin_inset Caption
21814 \begin_layout Plain Layout
21815 \begin_inset CommandInset label
21817 name "tab:Two-subtables-side"
21821 Two subtables placed side by side.
21829 \begin_layout Plain Layout
21831 \begin_inset space \hfill{}
21835 \begin_inset Float table
21840 \begin_layout Plain Layout
21841 \begin_inset Caption
21843 \begin_layout Plain Layout
21844 \begin_inset CommandInset label
21846 name "tab:This-is-subtable-a"
21850 This is subtable a.
21858 \begin_layout Plain Layout
21860 \begin_inset Tabular
21861 <lyxtabular version="3" rows="1" columns="5">
21863 <column alignment="center" valignment="top" width="0">
21864 <column alignment="center" valignment="top" width="0">
21865 <column alignment="center" valignment="top" width="0">
21866 <column alignment="center" valignment="top" width="0">
21867 <column alignment="center" valignment="top" width="0">
21869 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21872 \begin_layout Plain Layout
21878 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21881 \begin_layout Plain Layout
21887 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21890 \begin_layout Plain Layout
21896 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21899 \begin_layout Plain Layout
21905 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21908 \begin_layout Plain Layout
21925 \begin_inset space \hfill{}
21929 \begin_inset Float table
21934 \begin_layout Plain Layout
21935 \begin_inset Caption
21937 \begin_layout Plain Layout
21938 \begin_inset CommandInset label
21940 name "tab:This-is-subtable-b"
21944 This is subtable b.
21952 \begin_layout Plain Layout
21954 \begin_inset Tabular
21955 <lyxtabular version="3" rows="1" columns="5">
21957 <column alignment="center" valignment="top" width="0">
21958 <column alignment="center" valignment="top" width="0">
21959 <column alignment="center" valignment="top" width="0">
21960 <column alignment="center" valignment="top" width="0">
21961 <column alignment="center" valignment="top" width="0">
21963 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21966 \begin_layout Plain Layout
21972 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21975 \begin_layout Plain Layout
21981 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21984 \begin_layout Plain Layout
21990 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21993 \begin_layout Plain Layout
21999 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22002 \begin_layout Plain Layout
22019 \begin_inset space \hfill{}
22030 \begin_layout Standard
22031 \begin_inset Float table
22036 \begin_layout Plain Layout
22037 \begin_inset Caption
22039 \begin_layout Plain Layout
22040 \begin_inset CommandInset label
22042 name "tab:Two-subtables-upon"
22046 Two subtables placed one upon the other.
22047 (a) table with 4 cells, (b) table with 5 cells.
22055 \begin_layout Plain Layout
22057 \begin_inset Float table
22062 \begin_layout Plain Layout
22063 \begin_inset Caption
22065 \begin_layout Plain Layout
22074 \begin_layout Plain Layout
22076 \begin_inset Tabular
22077 <lyxtabular version="3" rows="1" columns="4">
22079 <column alignment="center" valignment="top" width="0">
22080 <column alignment="center" valignment="top" width="0">
22081 <column alignment="center" valignment="top" width="0">
22082 <column alignment="center" valignment="top" width="0">
22084 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22087 \begin_layout Plain Layout
22093 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22096 \begin_layout Plain Layout
22102 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22105 \begin_layout Plain Layout
22111 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22114 \begin_layout Plain Layout
22133 \begin_layout Plain Layout
22135 \begin_inset Float table
22140 \begin_layout Plain Layout
22141 \begin_inset Caption
22143 \begin_layout Plain Layout
22152 \begin_layout Plain Layout
22154 \begin_inset Tabular
22155 <lyxtabular version="3" rows="1" columns="5">
22157 <column alignment="center" valignment="top" width="0">
22158 <column alignment="center" valignment="top" width="0">
22159 <column alignment="center" valignment="top" width="0">
22160 <column alignment="center" valignment="top" width="0">
22161 <column alignment="center" valignment="top" width="0">
22163 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22166 \begin_layout Plain Layout
22172 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22175 \begin_layout Plain Layout
22181 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22184 \begin_layout Plain Layout
22190 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22193 \begin_layout Plain Layout
22199 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22202 \begin_layout Plain Layout
22226 \begin_layout Section
22227 Floats Side by Side
22231 \begin_layout Plain Layout
22232 Floats ! Side by side
22240 \begin_layout Standard
22241 To place floats side by side, like for Figure
22242 \begin_inset space ~
22246 \begin_inset CommandInset ref
22248 reference "fig:Float-left"
22253 \begin_inset CommandInset ref
22255 reference "fig:Float-right"
22264 In it two minipage boxes are inserted.
22268 \begin_layout Plain Layout
22269 Minipages are explained in section
22270 \begin_inset space ~
22274 \begin_inset CommandInset ref
22276 reference "sec:Minipages"
22285 The width is set to 45
22286 \begin_inset space \thinspace{}
22290 \begin_inset space \thinspace{}
22293 column% and the box alignment to
22298 The minipage boxes contain the image and the caption in the same way as
22299 they are in a float.
22300 The only difference is that the image unit
22303 \begin_inset space ~
22307 \begin_inset space ~
22312 is now calculated according to the width of the minipage boxes.
22315 \begin_layout Standard
22316 \begin_inset Float figure
22321 \begin_layout Plain Layout
22322 \begin_inset Box Frameless
22331 height_special "totalheight"
22334 \begin_layout Plain Layout
22336 \begin_inset Graphics
22337 filename clipart/mobius.eps
22340 scaleBeforeRotation
22347 \begin_layout Plain Layout
22348 \begin_inset Caption
22350 \begin_layout Plain Layout
22351 \begin_inset CommandInset label
22353 name "fig:Float-left"
22357 Float on the left side.
22368 \begin_inset space \hfill{}
22372 \begin_inset Box Frameless
22381 height_special "totalheight"
22384 \begin_layout Plain Layout
22386 \begin_inset Graphics
22387 filename clipart/platypus.eps
22390 scaleBeforeRotation
22397 \begin_layout Plain Layout
22398 \begin_inset Caption
22400 \begin_layout Plain Layout
22401 \begin_inset CommandInset label
22403 name "fig:Float-right"
22407 Float on the right side.
22420 \begin_layout Plain Layout
22429 \begin_layout Section
22434 \begin_layout Plain Layout
22435 Caption ! Formatting
22444 \begin_layout Plain Layout
22445 Floats ! Caption Formatting
22451 \begin_inset CommandInset label
22453 name "sec:Caption-Formatting"
22460 \begin_layout Standard
22465 environment is the default paragraph environment for
22470 On the LyX screen captions appear as label, e.
22471 \begin_inset space \thinspace{}
22475 \begin_inset space \space{}
22479 \begin_inset Quotes eld
22487 \begin_inset Quotes erd
22490 followed by the caption text.
22492 \begin_inset Quotes eld
22496 \begin_inset Quotes erd
22499 is the actual reference number.
22500 By default the label and the number are in the same font as the caption
22501 text and a colon follows the number to divide the label from the text.
22502 This caption format is not suitable for all document formats.
22506 \begin_layout Standard
22507 To change the default caption format, load the LaTeX-package
22515 \begin_layout Plain Layout
22516 LaTeX-packages ! caption
22521 in the document preamble with this line:
22524 \begin_layout Standard
22529 usepackage[format definition]{caption}
22532 \begin_layout Standard
22533 To have for example the label and the number in sans-serif bold font and
22534 the table captions always above the table like in this document, use the
22538 \begin_layout Standard
22543 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22546 \begin_layout Standard
22547 You can also define different caption formats for the different float types.
22548 In this case load the
22552 package without format specific options and define the different formats
22553 with the help of the command
22556 \begin_layout Standard
22561 captionsetup[float type]{format definition}
22564 \begin_layout Standard
22565 in the document preamble.
22566 For example the caption formats of Figure
22567 \begin_inset space ~
22571 \begin_inset CommandInset ref
22573 reference "fig:This-is-an-fig"
22578 \begin_inset space ~
22582 \begin_inset CommandInset ref
22584 reference "tab:This-is-an-tab"
22588 can be created using these commands in the document preamble:
22591 \begin_layout Standard
22596 usepackage[tableposition=top]{caption}
22599 \begin_inset Newline newline
22606 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22607 \begin_inset Newline newline
22614 \begin_layout Plain Layout
22622 captionsetup[figure]
22630 \begin_inset Newline newline
22635 captionsetup[table]{labelfont={bf,sf}}
22638 \begin_layout Standard
22639 \begin_inset Note Greyedout
22642 \begin_layout Plain Layout
22651 has no effect when a
22659 \begin_layout Plain Layout
22660 LaTeX-packages ! KOMA-Script
22665 document class is used.
22666 In this case the document class option
22678 \begin_layout Standard
22679 For more information about the package
22683 we refer to its documentation
22684 \begin_inset CommandInset citation
22693 \begin_layout Standard
22694 To change the label name from e.
22695 \begin_inset space \thinspace{}
22699 \begin_inset space \space{}
22703 \begin_inset Quotes eld
22707 \begin_inset Quotes erd
22711 \begin_inset Quotes eld
22715 \begin_inset Quotes erd
22718 use this preamble command:
22721 \begin_layout Standard
22728 fnum@figure}{Image~
22733 \begin_layout Standard
22740 inserts the figure number and
22743 \begin_inset Quotes eld
22749 \begin_inset Quotes erd
22752 creates a protected space.
22755 \begin_layout Standard
22756 \begin_inset VSpace bigskip
22767 \begin_layout Plain Layout
22768 LaTeX-packages ! KOMA-Script
22775 article (KOMA-Script)
22783 letter (KOMA-Script)
22787 report (KOMA-Script)
22790 \begin_inset space \thinspace{}
22793 ), you can alternatively to the
22801 's built-in command
22808 For example, to have the caption label in bold, add this command to your
22812 \begin_layout Standard
22817 setkomafont{captionlabel}{
22822 \begin_layout Standard
22823 For more information about
22834 \begin_inset CommandInset citation
22843 \begin_layout Standard
22847 \begin_layout Plain Layout
22851 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
22858 \begin_inset Note Note
22861 \begin_layout Plain Layout
22862 The caption format is changed only for this example.
22870 \begin_layout Standard
22871 \begin_inset Float figure
22877 \begin_layout Plain Layout
22879 \begin_inset Graphics
22880 filename clipart/mobius.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:This-is-an-fig"
22900 This is an example figure caption that is longer than one line to show the
22901 different caption format.
22902 Here a self-defined caption format is used.
22915 \begin_layout Standard
22919 \begin_layout Plain Layout
22923 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
22932 \begin_layout Standard
22933 \begin_inset Float table
22939 \begin_layout Plain Layout
22940 \begin_inset Caption
22942 \begin_layout Plain Layout
22943 \begin_inset CommandInset label
22945 name "tab:This-is-an-tab"
22949 This is an example table caption that is longer than one line to show the
22950 different caption format.
22951 Here the standard caption format for tables in this document is used.
22959 \begin_layout Plain Layout
22961 \begin_inset Tabular
22962 <lyxtabular version="3" rows="1" columns="5">
22964 <column alignment="center" valignment="top" width="0">
22965 <column alignment="center" valignment="top" width="0">
22966 <column alignment="center" valignment="top" width="0">
22967 <column alignment="center" valignment="top" width="0">
22968 <column alignment="center" valignment="top" width="0">
22970 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22973 \begin_layout Plain Layout
22979 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22982 \begin_layout Plain Layout
22988 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22991 \begin_layout Plain Layout
22997 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23000 \begin_layout Plain Layout
23006 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23009 \begin_layout Plain Layout
23028 \begin_layout Section
23033 \begin_layout Plain Layout
23034 Caption ! Placement
23043 \begin_layout Plain Layout
23044 Floats ! Caption Placement
23050 \begin_inset CommandInset label
23052 name "sec:Caption-Placement"
23059 \begin_layout Standard
23060 The common caption placement rule is:
23063 \begin_layout Description
23064 Figure: Caption is set below the figure
23067 \begin_layout Description
23068 Table: Caption is set above the table
23071 \begin_layout Standard
23072 Having the caption above the table is unfortunately not supported in LaTeX's
23074 That means if you are using the document classes
23090 there will be no space between the caption and the table.
23091 To insert the needed space, add the following option to the load command
23092 of the LaTeX-package
23096 in your document preamble
23100 \begin_layout Plain Layout
23102 \begin_inset space ~
23106 \begin_inset CommandInset ref
23108 reference "sec:Caption-Formatting"
23112 for more information of the package
23124 \begin_layout Standard
23130 \begin_layout Standard
23139 \begin_layout Plain Layout
23140 LaTeX-packages ! KOMA-Script
23147 article (KOMA-Script)
23155 letter (KOMA-Script)
23159 report (KOMA-Script)
23162 \begin_inset space \thinspace{}
23165 ), you can alternatively to the
23169 package set the document class option
23176 \begin_layout Standard
23177 \begin_inset VSpace bigskip
23180 It is also possible to set the caption beside a figure or table.
23181 To get this the LaTeX-package
23189 \begin_layout Plain Layout
23190 LaTeX-packages ! sidecap
23195 has to be loaded in the document preamble with the line
23198 \begin_layout Standard
23203 usepackage[option]{sidecap}
23206 \begin_layout Standard
23207 If you set no option, the caption is placed on the side of the outer page
23208 margin – to the right on odd pages, to the left on even pages.
23209 You can change the placement to inner margin with the option
23214 To force the placement always to the right or left, use the option
23225 \begin_layout Standard
23229 \begin_layout Plain Layout
23239 \begin_inset Note Note
23242 \begin_layout Plain Layout
23243 The following section will only be displayed when the LaTeX-package
23255 \begin_layout Standard
23256 To place in LyX the caption of a float on the side, it is necessary to add
23257 these commands to the document preamble:
23260 \begin_layout Standard
23266 \begin_layout Standard
23274 \begin_inset Newline newline
23281 \begin_layout Plain Layout
23297 \begin_inset Newline newline
23304 \begin_layout Plain Layout
23320 \begin_inset Newline newline
23327 \begin_layout Plain Layout
23338 renewenvironment{table}{
23345 \begin_layout Standard
23353 \begin_inset Newline newline
23360 \begin_layout Plain Layout
23376 \begin_inset Newline newline
23383 \begin_layout Plain Layout
23401 \begin_layout Standard
23409 \begin_inset Newline newline
23416 \begin_layout Plain Layout
23432 \begin_inset Newline newline
23439 \begin_layout Plain Layout
23455 \begin_inset Newline newline
23462 \begin_layout Plain Layout
23473 renewenvironment{figure}{
23480 \begin_layout Standard
23488 \begin_inset Newline newline
23495 \begin_layout Plain Layout
23511 \begin_inset Newline newline
23518 \begin_layout Plain Layout
23536 \begin_layout Standard
23542 \begin_layout Standard
23543 The commands allow you to redefine the floats so that the caption is set
23545 For figure floats use the command
23548 \begin_layout Standard
23556 \begin_layout Standard
23557 in TeX-Code before the float.
23558 Behind the float insert the command
23561 \begin_layout Standard
23569 \begin_layout Standard
23570 in TeX-Code to get back to the original float definition.
23573 \begin_layout Standard
23574 For table floats use the corresponding commands
23577 \begin_layout Standard
23591 \begin_layout Standard
23593 \begin_inset space ~
23597 \begin_inset CommandInset ref
23599 reference "fig:cap-beside-fig"
23604 \begin_inset space ~
23608 \begin_inset CommandInset ref
23610 reference "tab:cap-beside-tab"
23614 are examples where the caption is set beside.
23617 \begin_layout Standard
23618 You can see in the examples that the caption text appears at the top of
23619 the floats for table floats and at the bottom for figure floats.
23620 To change this, you can use the command
23623 \begin_layout Standard
23628 sidecaptionvpos{float type}{placement}
23631 \begin_layout Standard
23632 in the document preamble or in TeX-Code before the float.
23633 The float type is either
23641 , the placement can be
23642 \begin_inset Quotes eld
23650 \begin_inset Quotes erd
23654 \begin_inset Quotes eld
23662 \begin_inset Quotes erd
23666 \begin_inset Quotes eld
23674 \begin_inset Quotes erd
23678 To have for example the caption of figure floats vertically centered, use
23682 \begin_layout Standard
23687 sidecaptionvpos{figure}{c}
23690 \begin_layout Standard
23691 This was used for Figure
23692 \begin_inset space ~
23696 \begin_inset CommandInset ref
23698 reference "fig:cap-beside-fig-2"
23705 \begin_layout Standard
23706 \begin_inset VSpace medskip
23709 For more information about the package
23713 we refer to its documentation
23714 \begin_inset CommandInset citation
23723 \begin_layout Standard
23724 \begin_inset Note Greyedout
23727 \begin_layout Plain Layout
23740 \begin_layout Plain Layout
23741 LaTeX-packages ! hypcap
23746 , described in section
23747 \begin_inset space ~
23751 \begin_inset CommandInset ref
23753 reference "sub:Reference-Position"
23757 , has no effect on floats with the caption set beside.
23765 \begin_layout Standard
23769 \begin_layout Plain Layout
23781 \begin_layout Standard
23782 \begin_inset Float figure
23787 \begin_layout Plain Layout
23788 \begin_inset Graphics
23789 filename clipart/escher-lsd.eps
23791 scaleBeforeRotation
23798 \begin_layout Plain Layout
23799 \begin_inset Caption
23801 \begin_layout Plain Layout
23802 \begin_inset CommandInset label
23804 name "fig:cap-beside-fig"
23808 This is a caption beside a figure.
23821 \begin_layout Standard
23825 \begin_layout Plain Layout
23837 \begin_layout Standard
23838 \begin_inset Float table
23843 \begin_layout Plain Layout
23844 \begin_inset Caption
23846 \begin_layout Plain Layout
23847 \begin_inset CommandInset label
23849 name "tab:cap-beside-tab"
23853 This is a caption beside a table.
23861 \begin_layout Plain Layout
23862 \begin_inset Tabular
23863 <lyxtabular version="3" rows="4" columns="5">
23865 <column alignment="center" valignment="top" width="0">
23866 <column alignment="center" valignment="top" width="0">
23867 <column alignment="center" valignment="top" width="0">
23868 <column alignment="center" valignment="top" width="0">
23869 <column alignment="center" valignment="top" width="0">
23871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23874 \begin_layout Plain Layout
23880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23883 \begin_layout Plain Layout
23889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23892 \begin_layout Plain Layout
23898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23901 \begin_layout Plain Layout
23907 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23910 \begin_layout Plain Layout
23918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23921 \begin_layout Plain Layout
23927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23930 \begin_layout Plain Layout
23936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23939 \begin_layout Plain Layout
23945 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23948 \begin_layout Plain Layout
23954 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23957 \begin_layout Plain Layout
23965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23968 \begin_layout Plain Layout
23974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23977 \begin_layout Plain Layout
23983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23986 \begin_layout Plain Layout
23992 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23995 \begin_layout Plain Layout
24001 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24004 \begin_layout Plain Layout
24012 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24015 \begin_layout Plain Layout
24021 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24024 \begin_layout Plain Layout
24030 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24033 \begin_layout Plain Layout
24039 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24042 \begin_layout Plain Layout
24048 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24051 \begin_layout Plain Layout
24070 \begin_layout Standard
24074 \begin_layout Plain Layout
24086 \begin_layout Standard
24090 \begin_layout Plain Layout
24094 sidecaptionvpos{figure}{c}
24100 \begin_inset Float figure
24105 \begin_layout Plain Layout
24106 \begin_inset Graphics
24107 filename clipart/escher-lsd.eps
24109 scaleBeforeRotation
24116 \begin_layout Plain Layout
24117 \begin_inset Caption
24119 \begin_layout Plain Layout
24120 \begin_inset CommandInset label
24122 name "fig:cap-beside-fig-2"
24126 This is a vertically centered caption beside a figure.
24139 \begin_layout Standard
24143 \begin_layout Plain Layout
24155 \begin_layout Standard
24159 \begin_layout Plain Layout
24169 \begin_inset Note Note
24172 \begin_layout Plain Layout
24173 The following will be displayed when the LaTeX-package
24185 \begin_layout Standard
24186 You need to install the LaTeX-package
24190 to see the following part of this section in the output.
24193 \begin_layout Standard
24197 \begin_layout Plain Layout
24209 \begin_layout Section
24214 \begin_layout Plain Layout
24215 Floats ! Float Lists
24223 \begin_layout Standard
24224 Similar to the the table of contents where the sections of the document
24225 are listed, there are listings for all float types, like the figures of
24227 You can insert them via the
24229 Insert\SpecialChar \menuseparator
24231 \begin_inset space ~
24235 \begin_inset space ~
24243 \begin_layout Standard
24244 The list entries are the float captions or its short title, the float number,
24245 and the page number where they appear in the document.
24248 \begin_layout Standard
24249 You can find the list of figures and tables at the end of this document.
24252 \begin_layout Chapter
24256 \begin_layout Section
24261 \begin_layout Plain Layout
24270 \begin_layout Standard
24271 Notes are inserted with the toolbar button
24272 \begin_inset Graphics
24273 filename ../images/note-insert.png
24275 scaleBeforeRotation
24281 Insert\SpecialChar \menuseparator
24285 There are three types of notes:
24288 \begin_layout Description
24290 \begin_inset space ~
24293 Note This note type is for internal notes that won't appear in the output.
24294 Its note-box looks like this:
24295 \begin_inset Newline newline
24299 \begin_inset Newline newline
24303 \begin_inset Graphics
24304 filename clipart/LyXNoteImageQt4.png
24307 scaleBeforeRotation
24312 \begin_inset Note Note
24315 \begin_layout Plain Layout
24316 This is text in a note box that doesn't appear in the output.
24324 \begin_layout Description
24325 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24326 ent, when you export the document to LaTeX via the menu
24328 File\SpecialChar \menuseparator
24329 Export\SpecialChar \menuseparator
24330 LaTeX (pdflatex) / (plain)
24333 Its note-box looks like this:
24334 \begin_inset Newline newline
24338 \begin_inset Newline newline
24342 \begin_inset Graphics
24343 filename clipart/CommentNoteImageQt4.png
24346 scaleBeforeRotation
24351 \begin_inset Note Comment
24354 \begin_layout Plain Layout
24355 This is text in a note box that only appears as comment in LaTeX-files.
24363 \begin_layout Description
24365 \begin_inset space ~
24368 Out This note will appear in the output as grey text.
24369 Its note-box looks like this:
24370 \begin_inset Newline newline
24374 \begin_inset Newline newline
24378 \begin_inset Graphics
24379 filename clipart/GreyedOutNoteImageQt4.png
24382 scaleBeforeRotation
24387 \begin_inset Newline newline
24394 \begin_layout Plain Layout
24398 renewenvironment{lyxgreyedout}
24401 \begin_layout Plain Layout
24405 textcolor[gray]{0.8}
24415 \begin_inset Note Greyedout
24418 \begin_layout Plain Layout
24423 \begin_layout Plain Layout
24424 This is an example footnote within a greyed out note.
24429 of a comment that appears in the output as grey text.
24438 \begin_layout Plain Layout
24442 renewenvironment{lyxgreyedout}
24445 \begin_layout Plain Layout
24459 \begin_inset Note Note
24462 \begin_layout Plain Layout
24463 The greyed out note is here redefined to show it with the original LyX definitio
24464 n because greyed out notes are redefined in the preamble of this document,
24465 as described below, to have blue text.
24471 \begin_inset Newline newline
24475 \begin_inset Newline newline
24478 As you can see in the example, the first line of greyed out notes is a bit
24479 indented and greyed out notes can have footnotes.
24482 \begin_layout Standard
24483 \begin_inset VSpace bigskip
24486 When you use the toolbar button
24487 \begin_inset Graphics
24488 filename ../images/note-insert.png
24490 scaleBeforeRotation
24497 \begin_inset space ~
24503 You can switch between the five note types by right-clicking on the note-box.
24508 If you want to turn existing text into a note, mark it and click on the
24522 To change a note to text, press the backspace key when the cursor is in
24523 the first position of a note, or press the delete key when the cursor is
24524 in the very last position of the note, respectively.
24527 \begin_layout Standard
24528 \begin_inset VSpace bigskip
24531 You can change the text color of the greyed out notes in the preamble with
24532 the following command:
24535 \begin_layout Standard
24540 renewenvironment{lyxgreyedout}
24541 \begin_inset Newline newline
24548 \begin_layout Plain Layout
24566 \begin_layout Standard
24567 The available colors and the method to define own colors is explained in
24569 \begin_inset space ~
24573 \begin_inset CommandInset ref
24575 reference "sec:Colored-Tables"
24582 \begin_layout Standard
24583 Notes that appear in blue in this document are set using greyed out notes
24587 \begin_layout Section
24589 \begin_inset CommandInset label
24591 name "sec:Footnotes"
24599 \begin_layout Plain Layout
24609 \begin_layout Plain Layout
24618 \begin_layout Standard
24619 Footnotes can be inserted using the toolbar button
24620 \begin_inset Graphics
24621 filename ../images/footnote-insert.png
24623 scaleBeforeRotation
24629 Insert\SpecialChar \menuseparator
24641 then the following footnote-box:
24642 \begin_inset Graphics
24643 filename clipart/footnoteQt4.png
24645 scaleBeforeRotation
24653 where you can enter the footnote text.
24654 If you want to turn existing text into a footnote, mark it and click on
24676 to text, press the Backspace key when the cursor is in the first position
24685 , or press the Delete key when the cursor is in the very last position of
24697 \begin_layout Standard
24698 Here is an example footnote:
24706 \begin_layout Plain Layout
24707 \begin_inset CommandInset label
24709 name "foot:This-is-an"
24713 This is an example footnote.
24726 \begin_layout Plain Layout
24730 newcounter{MyRepeatFoot}
24733 \begin_layout Plain Layout
24737 setcounter{MyRepeatFoot}{
24747 \begin_layout Standard
24748 The footnote will appear in the output as a superscript number at the text
24749 position where the footnote box is placed.
24750 The footnote text is placed at the bottom of the current page.
24751 The footnote number is calculated by LaTeX, the numbers are consecutive.
24752 It depends on your document-class, if the footnote number is reset for
24756 \begin_layout Standard
24757 Footnotes can be referenced like floats: Insert a label into the footnote
24758 and cross-reference this label in the text as described in section
24759 \begin_inset space ~
24763 \begin_inset CommandInset ref
24765 reference "sec:Referencing-Floats"
24770 \begin_inset Newline newline
24773 This is a cross-reference of Footnote
24774 \begin_inset space ~
24778 \begin_inset CommandInset ref
24780 reference "foot:This-is-an"
24787 \begin_layout Standard
24788 \begin_inset VSpace defskip
24791 To use footnotes within tables, you have to use minipages, see section
24792 \begin_inset space ~
24796 \begin_inset CommandInset ref
24798 reference "sec:Minipages"
24803 Footnotes within longtables are described in section
24804 \begin_inset space ~
24808 \begin_inset CommandInset ref
24810 reference "sub:Footnotes-in-Longtables"
24817 \begin_layout Standard
24818 \begin_inset VSpace defskip
24821 To create only a mark for a footnote, use the command
24825 footnotemark[number]
24828 This is used when you have the same annotation several times in a text
24829 but doesn't want to print the footnote text every time.
24830 \begin_inset Newline newline
24833 As you don't know the number of the repeating footnote while you are writing
24834 the text, you have to store its number.
24835 For the following footnote mark example, these commands were inserted in
24836 TeX-Code behind Footnote
24837 \begin_inset space ~
24841 \begin_inset CommandInset ref
24843 reference "foot:This-is-an"
24847 to store the footnote number:
24850 \begin_layout Standard
24855 newcounter{MyRepeatFoot}
24856 \begin_inset Newline newline
24861 setcounter{MyRepeatFoot}{
24866 \begin_layout Standard
24867 The footnote mark was then created with this command:
24870 \begin_layout Standard
24880 \begin_layout Standard
24881 Here is an example footnote mark:
24889 \begin_layout Plain Layout
24903 \begin_layout Subsection
24905 \begin_inset CommandInset label
24907 name "sub:Footnote-Numbering"
24915 \begin_layout Plain Layout
24916 Footnotes ! Numbering
24924 \begin_layout Standard
24925 To reset the footnote number back to 1 after each section
24927 , add this command to your document preamble:
24930 \begin_layout Standard
24935 @addtoreset{footnote}{section}
24938 \begin_layout Standard
24939 \begin_inset VSpace bigskip
24942 The following preamble command changes the footnote numbering style to small
24946 \begin_layout Standard
24958 \begin_layout Standard
24962 \begin_layout Plain Layout
24975 This is a footnote with roman numbering:
24979 \begin_layout Plain Layout
24980 This is an example footnote with roman numbering.
24988 \begin_layout Standard
24989 To change the numbering style to capital roman numerals replace in the command
25004 \begin_inset Quotes eld
25008 \begin_inset Quotes erd
25011 footnotes with capital or small Latin letters use
25025 \begin_inset Quotes eld
25029 \begin_inset Quotes erd
25032 footnotes with symbols use
25041 \begin_layout Standard
25042 \begin_inset Note Greyedout
25045 \begin_layout Plain Layout
25050 You can only number 26 footnotes with Latin letters, because this numbering
25051 is limited to single letters.
25057 \begin_inset Newline newline
25061 \begin_inset Note Greyedout
25064 \begin_layout Plain Layout
25069 You can only number 9 footnotes with symbols.
25077 \begin_layout Standard
25078 To return to the default numbering style when you changed to another one,
25091 in the command above.
25095 \begin_layout Plain Layout
25111 \begin_layout Standard
25112 \begin_inset VSpace bigskip
25118 \begin_layout Standard
25119 If you want to have footnotes numbered in the scheme
25120 \begin_inset Quotes eld
25124 \begin_inset Quotes erd
25127 , add the following command to your document preamble:
25130 \begin_layout Standard
25135 numberwithin{footnote}{chapter}
25138 \begin_layout Standard
25139 To be able to use the command
25148 \begin_inset space ~
25153 in the document settings the option
25156 \begin_inset space ~
25160 \begin_inset space ~
25164 \begin_inset space ~
25172 \begin_layout Standard
25176 \begin_layout Plain Layout
25180 numberwithin{footnote}{chapter}
25185 This is another example footnote:
25191 \begin_layout Plain Layout
25192 This is a footnote numbered in the scheme
25193 \begin_inset Quotes eld
25197 \begin_inset Quotes erd
25211 \begin_layout Plain Layout
25227 \begin_layout Standard
25228 \begin_inset Note Greyedout
25231 \begin_layout Plain Layout
25242 always prints out the footnote number as arabic number; previous redefinitions
25243 to get non-arabic numbers are overwritten.
25251 \begin_layout Standard
25252 So to get for example the scheme
25253 \begin_inset Quotes eld
25259 \begin_inset Quotes erd
25262 , use this command instead of
25271 \begin_layout Standard
25285 \begin_layout Subsection
25290 \begin_layout Plain Layout
25291 Footnotes ! Placement
25299 \begin_layout Standard
25300 If you have several footnotes in one page, they appear without vertical
25301 space between them at the bottom of the page.
25302 To make them better readable you can e.
25303 \begin_inset space \thinspace{}
25307 \begin_inset space \space{}
25311 \begin_inset space \thinspace{}
25314 mm space with the following preamble command:
25317 \begin_layout Standard
25327 \begin_inset Newline newline
25341 \begin_layout Standard
25342 \begin_inset VSpace bigskip
25345 In a two-column document the footnotes appear at the bottom of every column,
25347 \begin_inset space ~
25351 \begin_inset CommandInset ref
25353 reference "fig:Standard-footnote-placement"
25358 If the footnotes should only appear at the bottom of the right column,
25360 \begin_inset space ~
25364 \begin_inset CommandInset ref
25366 reference "fig:Footnote-placement-in"
25370 , use the LaTeX-package
25378 \begin_layout Plain Layout
25379 LaTeX-packages ! ftnright
25384 with this command in the document preamble:
25387 \begin_layout Standard
25392 usepackage{ftnright}
25395 \begin_layout Standard
25396 \begin_inset Float figure
25402 \begin_layout Plain Layout
25406 \begin_layout Plain Layout
25416 \begin_inset Graphics
25417 filename clipart/without_fntright.pdf
25419 scaleBeforeRotation
25427 \begin_layout Plain Layout
25437 \begin_layout Plain Layout
25438 \begin_inset Caption
25440 \begin_layout Plain Layout
25441 \begin_inset CommandInset label
25443 name "fig:Standard-footnote-placement"
25447 Standard footnote placement in two-column documents.
25460 \begin_layout Standard
25461 \begin_inset Float figure
25467 \begin_layout Plain Layout
25471 \begin_layout Plain Layout
25481 \begin_inset Graphics
25482 filename clipart/with_fntright.pdf
25484 scaleBeforeRotation
25492 \begin_layout Plain Layout
25502 \begin_layout Plain Layout
25503 \begin_inset Caption
25505 \begin_layout Plain Layout
25506 \begin_inset CommandInset label
25508 name "fig:Footnote-placement-in"
25512 Footnote placement in two-column documents when the LaTeX-package
25529 \begin_layout Standard
25530 \begin_inset VSpace bigskip
25533 In some scientific literature it is usual to collect the footnotes and print
25534 them in a separate paragraph at the the end of a section, like in Figure
25535 \begin_inset space ~
25539 \begin_inset CommandInset ref
25541 reference "fig:Endnotes"
25546 They are then so called
25547 \begin_inset Quotes eld
25551 \begin_inset Quotes erd
25558 \begin_layout Plain Layout
25564 To use endnotes instead of footnotes in your document, load in the menu
25567 Document\SpecialChar \menuseparator
25568 Settings\SpecialChar \menuseparator
25574 \begin_inset space ~
25578 \begin_inset space ~
25584 To insert the collected footnotes, insert the command
25587 \begin_layout Standard
25595 \begin_layout Standard
25596 in TeX-Code at the the end of a section or chapter.
25599 \begin_layout Standard
25600 \begin_inset Float figure
25605 \begin_layout Plain Layout
25610 \begin_layout Plain Layout
25620 \begin_inset Graphics
25621 filename clipart/endnotes.pdf
25622 scaleBeforeRotation
25630 \begin_layout Plain Layout
25640 \begin_layout Plain Layout
25641 \begin_inset Caption
25643 \begin_layout Plain Layout
25644 \begin_inset CommandInset label
25646 name "fig:Endnotes"
25650 Endnotes – footnotes are printed in a separate paragraph at the end of sections
25664 \begin_layout Standard
25665 \begin_inset VSpace medskip
25668 The paragraph heading for the endnotes isn't automatically translated into
25669 the document language, this must be done manually.
25670 The following preamble command translate the default English name
25671 \begin_inset Quotes eld
25675 \begin_inset Quotes erd
25678 to the German translation
25679 \begin_inset Quotes eld
25683 \begin_inset Quotes erd
25689 \begin_layout Standard
25696 notesname}{Anmerkungen}
25699 \begin_layout Standard
25700 \begin_inset VSpace medskip
25703 The numbering of endnotes can be changed like the footnote numbering as
25704 described in section
25705 \begin_inset space ~
25709 \begin_inset CommandInset ref
25711 reference "sub:Footnote-Numbering"
25715 ; just replace the command
25728 To reset the endnote number use the command
25734 as described in section
25735 \begin_inset space ~
25739 \begin_inset CommandInset ref
25741 reference "sub:Footnote-Numbering"
25745 and replace the command parameter
25756 \begin_layout Standard
25757 To create only a mark for an endnote, use the command
25761 endnotemark[number]
25763 similar to the command
25769 , described in section
25770 \begin_inset space ~
25774 \begin_inset CommandInset ref
25776 reference "sec:Footnotes"
25783 \begin_layout Standard
25784 \begin_inset VSpace bigskip
25787 Footnotes can also be placed in the page margin and the footnote text alignment
25788 can be changed, see the LaTeX-package
25796 \begin_layout Plain Layout
25797 LaTeX-packages ! footmisc
25803 \begin_inset CommandInset citation
25809 for more information about this.
25812 \begin_layout Standard
25813 For various further footnote formatting issues have a look at LaTeX-books,
25815 \begin_inset CommandInset citation
25817 key "latexcompanion,latexguide,latexbook"
25824 \begin_layout Section
25829 \begin_layout Plain Layout
25830 Notes ! Margin Notes
25838 \begin_layout Standard
25839 Margin notes look and behave in LyX like footnotes.
25840 They are inserted via the menu
25842 Insert\SpecialChar \menuseparator
25844 \begin_inset space ~
25849 or the toolbar button
25850 \begin_inset Graphics
25851 filename ../images/marginalnote-insert.png
25853 scaleBeforeRotation
25868 \begin_inset Quotes eld
25872 \begin_inset Quotes erd
25875 appears where you can enter the text of the margin note.
25878 \begin_layout Standard
25879 At the side is an example margin note.
25884 \begin_inset Marginal
25887 \begin_layout Plain Layout
25888 This is a margin note.
25896 \begin_layout Standard
25897 Margin notes appear at the right side in single-sided documents.
25898 In double-sided documents they appear in the outer margin – left on even
25899 pages, right on odd pages.
25900 The text of margin notes is aligned opposite to the outer margin – right-aligne
25901 d when the note appears in the left margin.
25902 The first line of the margin note is placed at the position of the text
25903 line where it is inserted in the document.
25906 \begin_layout Standard
25907 \begin_inset VSpace bigskip
25910 To place the margin note in the inner margin, add the command
25913 \begin_layout Standard
25921 \begin_layout Standard
25922 in TeX-Code before a margin note.
25923 The new placement is valid for all following margin notes.
25928 \begin_layout Plain Layout
25938 \begin_inset Marginal
25941 \begin_layout Plain Layout
25942 This is a margin note in the inner margin.
25950 \begin_inset Newline newline
25956 \begin_inset Note Greyedout
25959 \begin_layout Plain Layout
25964 There is often not enough space in the inner margin so that the notes are
25965 not correctly displayed in the output.
25973 \begin_layout Standard
25974 To return to the default placement insert the command
25977 \begin_layout Standard
25985 \begin_layout Standard
25990 \begin_layout Plain Layout
26000 \begin_inset Note Greyedout
26003 \begin_layout Plain Layout
26008 The command is ignored when it is within a paragraph where also the command
26023 \begin_layout Standard
26024 \begin_inset VSpace bigskip
26031 \begin_inset Marginal
26034 \begin_layout Plain Layout
26035 AVeryLongMarginParWord that isn't hyphenated.
26043 Similar to the case described in section
26044 \begin_inset space ~
26048 \begin_inset CommandInset ref
26050 reference "sub:Multiple-Lines-in"
26054 , long words cannot be hyphenated when they are the first word in a margin
26056 To avoid this, insert 0
26057 \begin_inset space \thinspace{}
26060 pt horizontal space before the word
26065 \begin_inset Marginal
26068 \begin_layout Plain Layout
26069 \begin_inset space \hspace*{}
26073 AVeryLongMarginParWord that is hyphenated.
26081 \begin_layout Standard
26082 \begin_inset VSpace bigskip
26088 \begin_layout Standard
26089 \begin_inset Note Greyedout
26092 \begin_layout Plain Layout
26097 Margin notes can normally not be used inside tables, floats, and footnotes.
26105 \begin_layout Standard
26106 \begin_inset VSpace bigskip
26112 \begin_layout Standard
26116 \begin_layout Plain Layout
26126 \begin_inset Note Note
26129 \begin_layout Plain Layout
26130 The following section will only be displayed when the LaTeX-package
26142 \begin_layout Standard
26143 This restriction can be evaded by using the LaTeX-package
26151 \begin_layout Plain Layout
26152 LaTeX-packages ! marginnote
26158 By adding these two lines to your document preamble, the command used by
26159 LyX for margin notes is redefined to use the command provided by the
26166 \begin_layout Standard
26171 usepackage{marginnote}
26172 \begin_inset Newline newline
26184 \begin_layout Standard
26185 This is also used in this document because
26189 has another useful feature: You can set a vertical offset for the note.
26190 This is often needed when too many margin notes are too close together
26191 or for a better page layout.
26192 The offset is set in LyX as TeX-Code directly behind the margin note in
26196 \begin_layout Standard
26202 \begin_layout Standard
26203 where the offset is a length with one of the units listed in Table
26204 \begin_inset space ~
26208 \begin_inset CommandInset ref
26210 reference "tab:Units"
26215 A negative value shifts the note up, a positive value shifts it down.
26219 For example the margin note beside this text line is shifted up 1.5
26220 \begin_inset space \thinspace{}
26223 cm with the TeX-Code-command
26224 \begin_inset Quotes eld
26234 \begin_inset Quotes erd
26238 \begin_inset Marginal
26241 \begin_layout Plain Layout
26242 This margin note is shifted up 1.5
26243 \begin_inset space \thinspace{}
26246 cm from its original position.
26258 \begin_layout Plain Layout
26268 \begin_layout Standard
26269 \begin_inset VSpace medskip
26276 you can also change the alignment of the text in the margin note.
26277 For example the commands
26280 \begin_layout Standard
26287 raggedleftmarginnote}{
26290 \begin_inset Newline newline
26297 raggedrightmarginnote}{
26302 \begin_layout Standard
26303 set the alignment to centered.
26308 raggedleftmarginnote
26310 denotes margin notes that appear at the left side.
26317 \begin_layout Plain Layout
26323 raggedleftmarginnote}{
26328 \begin_layout Plain Layout
26334 raggedrightmarginnote}{
26342 \begin_inset Marginal
26345 \begin_layout Plain Layout
26346 The text of this margin note is centered.
26357 \begin_layout Standard
26364 raggedleftmarginnote}{
26367 \begin_inset Newline newline
26374 raggedrightmarginnote}{
26383 \begin_layout Plain Layout
26389 raggedleftmarginnote}{
26394 \begin_layout Plain Layout
26400 raggedrightmarginnote}{
26410 \begin_layout Standard
26411 \begin_inset VSpace medskip
26414 For the other features of
26418 we refer to its documentation
26419 \begin_inset CommandInset citation
26428 \begin_layout Standard
26429 \begin_inset VSpace bigskip
26432 You can adjust the layout of margin notes by changing its definition.
26433 To create for example a header for all margin notes with the underlined,
26434 sans-serif, and bold header text
26435 \begin_inset Quotes eld
26447 \begin_inset Quotes erd
26450 , add this to your document preamble:
26453 \begin_layout Standard
26463 \begin_inset Newline newline
26473 \begin_inset Newline newline
26480 \begin_layout Plain Layout
26497 underbar{Attention!}}}%
26498 \begin_inset Newline newline
26505 \begin_layout Plain Layout
26523 \begin_layout Standard
26530 \begin_layout Plain Layout
26541 \begin_layout Plain Layout
26552 \begin_layout Plain Layout
26560 underbar{Attention!}}}%
26563 \begin_layout Plain Layout
26577 \begin_inset Marginal
26580 \begin_layout Plain Layout
26581 This is a margin note with a defined heading.
26593 \begin_layout Plain Layout
26607 \begin_layout Plain Layout
26624 \begin_inset Note Note
26627 \begin_layout Plain Layout
26628 The margin note format is changed only for this example.
26636 \begin_layout Standard
26640 \begin_layout Plain Layout
26650 \begin_inset Note Note
26653 \begin_layout Plain Layout
26654 The following will be displayed when the LaTeX-package
26666 \begin_layout Standard
26667 You need to install the LaTeX-package
26671 to see the following part of this section in the output.
26674 \begin_layout Standard
26678 \begin_layout Plain Layout
26690 \begin_layout Chapter
26694 \begin_layout Section
26699 \begin_layout Plain Layout
26700 Boxes ! Introduction
26708 \begin_layout Standard
26709 Boxes are used to format a block of text.
26710 Boxes can be used to write documents with multiple languages, see section
26711 \begin_inset space ~
26715 \begin_inset CommandInset ref
26717 reference "sec:Minipages"
26721 , to frame texts, see section
26722 \begin_inset space ~
26726 \begin_inset CommandInset ref
26728 reference "sec:Decoration"
26732 , to prevent words to be hyphenated, see section
26733 \begin_inset space ~
26737 \begin_inset CommandInset ref
26739 reference "sec:Prevent-Hyphenation"
26743 , to align text, see section
26744 \begin_inset space ~
26748 \begin_inset CommandInset ref
26750 reference "sub:Vertical-Alignment"
26754 , or to set the background color of texts, see section
26755 \begin_inset space ~
26759 \begin_inset CommandInset ref
26761 reference "sec:Colored-Boxes"
26768 \begin_layout Standard
26769 Boxes can be inserted with the menu
26771 Insert\SpecialChar \menuseparator
26774 or the toolbar button
26775 \begin_inset Graphics
26776 filename ../images/box-insert.png
26778 scaleBeforeRotation
26783 A grey box with the label
26788 \begin_inset Graphics
26789 filename clipart/BoxInsetDefaultQt4.png
26791 scaleBeforeRotation
26796 The box type can be specified by right-clicking on the box.
26797 The appearing box dialog offers the
26800 \begin_inset space ~
26818 is the default for new boxes and is explained in section
26819 \begin_inset space ~
26823 \begin_inset CommandInset ref
26825 reference "sec:Minipages"
26833 is described in section
26834 \begin_inset space ~
26838 \begin_inset CommandInset ref
26840 reference "sec:Parboxes"
26847 \begin_layout Standard
26848 Boxes are not numbered and can therefore not be referenced like floats or
26852 \begin_layout Standard
26853 \begin_inset Note Greyedout
26856 \begin_layout Plain Layout
26861 Boxes must not be the item in an
26877 \begin_layout Standard
26878 \begin_inset Note Greyedout
26881 \begin_layout Plain Layout
26886 For an unknown reason you can only set the
26889 \begin_inset space ~
26898 when you use a framed box.
26902 \begin_inset space ~
26907 type and without frames are explained in section
26908 \begin_inset space ~
26912 \begin_inset CommandInset ref
26914 reference "sec:Prevent-Hyphenation"
26926 \begin_layout Section
26928 \begin_inset CommandInset label
26930 name "sec:Box-Dialog"
26938 \begin_layout Plain Layout
26947 \begin_layout Subsection
26952 \begin_layout Plain Layout
26961 \begin_layout Standard
26962 In the box dialog you can adjust the box geometry in the fields
26971 The available units for the geometry are explained in Table
26972 \begin_inset space ~
26976 \begin_inset CommandInset ref
26978 reference "tab:Units"
26987 offers the following additional sizes:
26990 \begin_layout Description
26991 Depth This is the plain text
26992 \begin_inset Quotes eld
26996 \begin_inset Quotes erd
27000 It ignores the total depth when there are multiple text lines in the box:
27001 \begin_inset Newline newline
27005 \begin_inset Newline newline
27009 \begin_inset Newline newline
27013 \begin_inset Box Boxed
27022 height_special "depth"
27025 \begin_layout Plain Layout
27027 Box height set to 1
27028 \begin_inset space \thinspace{}
27037 \begin_inset Newline newline
27041 \begin_inset Newline newline
27047 \begin_layout Description
27048 Height This is the height of the text that is inside the box.
27050 \begin_inset space \thinspace{}
27054 \begin_inset space \space{}
27057 2 for this size will set the box height to 2
27058 \begin_inset space ~
27061 times the text height:
27062 \begin_inset Box Boxed
27071 height_special "height"
27074 \begin_layout Plain Layout
27076 Box height set to 2
27077 \begin_inset space \thinspace{}
27088 \begin_layout Description
27090 \begin_inset space ~
27093 Height This is the Height
27094 \begin_inset space \thinspace{}
27098 \begin_inset space \thinspace{}
27102 \begin_inset Box Boxed
27111 height_special "totalheight"
27114 \begin_layout Plain Layout
27116 Box height set to 1
27117 \begin_inset space \thinspace{}
27121 \begin_inset space ~
27132 \begin_layout Description
27133 Width This sets the width of the box as height:
27134 \begin_inset Box Boxed
27143 height_special "width"
27146 \begin_layout Plain Layout
27148 Box height set to 1
27149 \begin_inset space \thinspace{}
27160 \begin_layout Subsection
27165 \begin_layout Plain Layout
27174 \begin_layout Standard
27175 When you have chosen an
27178 \begin_inset space ~
27183 , the vertical box alignment can be:
27186 \begin_layout Description
27187 Top This is an example text line.
27189 \begin_inset Box Boxed
27198 height_special "totalheight"
27201 \begin_layout Plain Layout
27203 This box is top-aligned.
27208 This is an example text line.
27211 \begin_layout Description
27212 Middle This is an example text line.
27214 \begin_inset Box Boxed
27223 height_special "totalheight"
27226 \begin_layout Plain Layout
27228 This box is middle-aligned.
27233 This is an example text line.
27236 \begin_layout Description
27237 Bottom This is an example text line.
27239 \begin_inset Box Boxed
27248 height_special "totalheight"
27251 \begin_layout Plain Layout
27253 This box is bottom-aligned.
27258 This is an example text line.
27261 \begin_layout Standard
27262 \begin_inset Note Greyedout
27265 \begin_layout Plain Layout
27270 The vertical box alignment can be lost in the output when you have two
27271 boxes in a line and one has e.
27272 \begin_inset space \thinspace{}
27276 \begin_inset space \space{}
27279 a shadow and the other one not.
27287 \begin_layout Standard
27288 The horizontal box alignment can be set via LyX's paragraph dialog when
27289 you set the box into its own paragraph.
27292 \begin_layout Standard
27293 \begin_inset VSpace bigskip
27296 When you have chosen an
27299 \begin_inset space ~
27304 , the box content can be aligned vertically to:
27307 \begin_layout Description
27308 top This is an example text line.
27310 \begin_inset Box Boxed
27319 height_special "totalheight"
27322 \begin_layout Plain Layout
27324 This box text is top-aligned.
27329 This is an example text line.
27332 \begin_layout Description
27333 middle This is an example text line.
27335 \begin_inset Box Boxed
27344 height_special "totalheight"
27347 \begin_layout Plain Layout
27349 This box text is middle-aligned.
27354 This is an example text line.
27357 \begin_layout Description
27358 bottom This is an example text line.
27360 \begin_inset Box Boxed
27369 height_special "totalheight"
27372 \begin_layout Plain Layout
27374 This box text is bottom-aligned.
27379 This is an example text line.
27382 \begin_layout Description
27383 stretch This is an example text line.
27385 \begin_inset Box Boxed
27394 height_special "totalheight"
27397 \begin_layout Plain Layout
27402 \begin_layout Plain Layout
27407 \begin_layout Plain Layout
27414 This is an example text line.
27417 \begin_layout Standard
27418 To stretch the box content, it must consist of more than one paragraph.
27419 In the example above every text line is in an own paragraph.
27422 \begin_layout Standard
27423 \begin_inset VSpace bigskip
27426 To align the box content horizontally you can use LyX's paragraph dialog
27427 when you have chosen an
27430 \begin_inset space ~
27438 \begin_layout Standard
27440 \begin_inset Box Boxed
27449 height_special "totalheight"
27452 \begin_layout Plain Layout
27457 \begin_layout Plain Layout
27462 \begin_layout Plain Layout
27472 \begin_layout Standard
27473 If you have not set an
27476 \begin_inset space ~
27481 , you can align the box content horizontally in the box dialog.
27484 \begin_layout Standard
27486 \begin_inset Box Boxed
27495 height_special "totalheight"
27498 \begin_layout Plain Layout
27500 This box text is horizontally stretched.
27508 \begin_layout Subsection
27510 \begin_inset CommandInset label
27512 name "sec:Decoration"
27520 \begin_layout Plain Layout
27529 \begin_layout Standard
27530 The type of the box can be specified in the box dialog in the drop-down
27536 The following types are possible:
27539 \begin_layout Description
27541 \begin_inset space ~
27545 \begin_inset space ~
27548 frame This draws a rectangular frame around the box.
27549 The frame line thickness has the size of
27557 \begin_inset Box Boxed
27566 height_special "totalheight"
27569 \begin_layout Plain Layout
27579 \begin_layout Description
27581 \begin_inset space ~
27585 \begin_inset space ~
27588 break When you use the decoration
27590 simple rectangular frame
27592 and no inner box, you can allow page breaks within a box.
27593 Note that then, in contrary to other framed boxes, the frame always uses
27594 the whole column width, the box is set as its own paragraph, and
27606 have no effect on this box type.
27607 The frame line thickness has the size of
27615 \begin_inset Box Framed
27624 height_special "totalheight"
27627 \begin_layout Plain Layout
27628 Allow page break box
27636 \begin_layout Description
27638 \begin_inset space ~
27642 \begin_inset space ~
27645 thin This draws an oval frame around the box.
27646 The frame line thickness has the size 0.4
27647 \begin_inset space \thinspace{}
27652 \begin_inset Box ovalbox
27661 height_special "totalheight"
27664 \begin_layout Plain Layout
27674 \begin_layout Description
27676 \begin_inset space ~
27680 \begin_inset space ~
27683 thick This draws an oval frame around the box.
27684 The frame line thickness has the size 0.8
27685 \begin_inset space \thinspace{}
27690 \begin_inset Box Ovalbox
27699 height_special "totalheight"
27702 \begin_layout Plain Layout
27712 \begin_layout Description
27714 \begin_inset space ~
27717 shadow This draws a rectangular frame with a shadow around the box.
27718 The frame line thickness has the size of
27724 , the shadow has a width of 4
27725 \begin_inset space \thinspace{}
27730 \begin_inset Box Shadowbox
27739 height_special "totalheight"
27742 \begin_layout Plain Layout
27752 \begin_layout Description
27754 \begin_inset space ~
27757 background This draws a box with red background color.
27758 In contrary to colored boxes
27762 \begin_layout Plain Layout
27764 \begin_inset space \thinspace{}
27768 \begin_inset CommandInset ref
27770 reference "sec:Colored-Boxes"
27779 , it always uses the whole column width and the box is set as its own paragraph.
27781 \begin_inset Box Shaded
27790 height_special "totalheight"
27793 \begin_layout Plain Layout
27794 Shaded background box
27802 \begin_layout Description
27804 \begin_inset space ~
27808 \begin_inset space ~
27811 frame This draws a double-line rectangular frame around the box.
27812 The line thickness of the inner frame is 0.75
27813 \begin_inset space \thinspace{}
27822 , the thickness of the outer frame is 1.5
27823 \begin_inset space \thinspace{}
27833 The distance between the lines is 1.5
27834 \begin_inset space \thinspace{}
27844 \begin_inset space \thinspace{}
27848 \begin_inset space \thinspace{}
27852 \begin_inset space \thinspace{}
27857 \begin_inset Box Doublebox
27866 height_special "totalheight"
27869 \begin_layout Plain Layout
27871 Double rectangular box
27879 \begin_layout Standard
27880 \begin_inset VSpace bigskip
27883 LyX's box label will reflect the different frame types.
27884 To be able to use all types, the LaTeX-package
27892 \begin_layout Plain Layout
27893 LaTeX-packages ! fancybox
27901 \begin_layout Section
27906 \begin_layout Plain Layout
27907 Boxes ! Customization
27915 \begin_layout Standard
27916 The default value for the size
27923 \begin_inset space \thinspace{}
27927 It can be changed with the following command in TeX-Code to e.
27928 \begin_inset space \thinspace{}
27932 \begin_inset space \space{}
27936 \begin_inset space \thinspace{}
27942 \begin_layout Standard
27952 \begin_layout Standard
27956 \begin_layout Plain Layout
27968 \begin_inset Box Boxed
27977 height_special "totalheight"
27980 \begin_layout Plain Layout
27982 Rectangular box with
27989 \begin_inset space \thinspace{}
27993 \begin_inset space \thinspace{}
27997 \begin_inset space \thinspace{}
28009 \begin_layout Plain Layout
28023 \begin_layout Standard
28024 \begin_inset VSpace bigskip
28027 The space between the frame and the box content is for all frame styles
28029 \begin_inset space \thinspace{}
28033 You can change it by setting the length
28040 For example the command
28043 \begin_layout Standard
28053 \begin_layout Standard
28054 sets the value to 10
28055 \begin_inset space \thinspace{}
28058 pt, like for the following box:
28061 \begin_layout Standard
28065 \begin_layout Plain Layout
28077 \begin_inset Box Boxed
28086 height_special "totalheight"
28089 \begin_layout Plain Layout
28091 Rectangular box with
28098 \begin_inset space \thinspace{}
28102 \begin_inset space \thinspace{}
28106 \begin_inset space \thinspace{}
28118 \begin_layout Plain Layout
28132 \begin_layout Standard
28133 \begin_inset VSpace bigskip
28136 The diameter of the round corners of the oval boxes can be set with the
28147 \begin_layout Standard
28155 \begin_layout Standard
28156 sets the diameter to 1
28157 \begin_inset space \thinspace{}
28164 \begin_layout Standard
28172 \begin_layout Standard
28173 sets the diameter to
28176 \begin_inset space \thinspace{}
28180 \begin_inset space \thinspace{}
28183 minimum(width and heigth of box)
28195 \begin_layout Standard
28199 \begin_layout Plain Layout
28209 \begin_inset Box Ovalbox
28218 height_special "totalheight"
28221 \begin_layout Plain Layout
28230 \begin_inset space \thinspace{}
28234 \begin_inset space \thinspace{}
28238 \begin_inset space \thinspace{}
28250 \begin_layout Plain Layout
28262 \begin_layout Standard
28263 \begin_inset VSpace bigskip
28266 The size of the shadow can be adjusted by changing the length
28274 \begin_inset space \thinspace{}
28277 pt for the following box by this command:
28280 \begin_layout Standard
28290 \begin_layout Standard
28294 \begin_layout Plain Layout
28306 \begin_inset Box Shadowbox
28315 height_special "totalheight"
28318 \begin_layout Plain Layout
28327 \begin_inset space \thinspace{}
28331 \begin_inset space \thinspace{}
28335 \begin_inset space \thinspace{}
28347 \begin_layout Plain Layout
28361 \begin_layout Standard
28362 \begin_inset VSpace bigskip
28368 \begin_layout Standard
28369 The default value for the size
28376 \begin_inset space \thinspace{}
28380 The default space between the note content and the frame is 9
28381 \begin_inset space \thinspace{}
28384 pt and can be changed with the value of
28391 For example the frame appearance of the following
28395 is set with the TeX-Code commands
28398 \begin_layout Standard
28406 \begin_inset Newline newline
28416 \begin_layout Standard
28420 \begin_layout Plain Layout
28429 \begin_layout Plain Layout
28441 \begin_inset Box Framed
28450 height_special "totalheight"
28453 \begin_layout Plain Layout
28467 \begin_layout Plain Layout
28476 \begin_layout Plain Layout
28490 \begin_layout Standard
28491 \begin_inset VSpace bigskip
28497 \begin_layout Standard
28502 boxes the default space between the box content and the box border is 3
28503 \begin_inset space \thinspace{}
28506 pt and can be changed with the value of
28513 The default background color red can either be changed locally with the
28518 definecolor{shadecolor}
28520 or globally with the menu
28522 Tools\SpecialChar \menuseparator
28523 Preferences\SpecialChar \menuseparator
28524 Colors\SpecialChar \menuseparator
28526 \begin_inset space ~
28538 command is explained in section
28539 \begin_inset space ~
28543 \begin_inset CommandInset ref
28545 reference "sec:Colored-Tables"
28553 \begin_layout Plain Layout
28560 requires the LaTeX-package
28564 in the preamble, see section
28565 \begin_inset space ~
28569 \begin_inset CommandInset ref
28571 reference "sec:Colored-Boxes"
28580 For example the appearance of the following shaded background box is set
28581 with the TeX-Code commands
28584 \begin_layout Standard
28594 \begin_inset Newline newline
28601 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28604 \begin_layout Standard
28608 \begin_layout Plain Layout
28617 \begin_layout Plain Layout
28621 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28627 \begin_inset Box Shaded
28636 height_special "totalheight"
28639 \begin_layout Plain Layout
28642 This is yellow text in a
28652 box with dark green background.
28661 \begin_layout Plain Layout
28670 \begin_layout Plain Layout
28674 definecolor{shadecolor}{rgb}{1,0,0}
28682 \begin_layout Standard
28683 \begin_inset VSpace bigskip
28686 Changed lengths and widths are valid for all boxes following the commands
28690 \begin_layout Section
28692 \begin_inset CommandInset label
28694 name "sec:Minipages"
28702 \begin_layout Plain Layout
28711 \begin_layout Standard
28712 Minipages are treated by LaTeX as pages within pages and can therefore for
28713 example have their own footnotes.
28716 \begin_layout Standard
28717 Minipages are useful when you write documents with different languages.
28720 \begin_layout Standard
28721 Below are two example minipages side by side.
28722 Their width is set to 45
28723 \begin_inset space \thinspace{}
28726 col% and they are separated by a horizontal fill, that was inserted via
28729 Insert\SpecialChar \menuseparator
28731 \begin_inset space ~
28734 Formatting\SpecialChar \menuseparator
28736 \begin_inset space ~
28742 \begin_inset Newpage newpage
28748 \begin_layout Standard
28749 \begin_inset Box Frameless
28758 height_special "totalheight"
28761 \begin_layout Plain Layout
28764 Dies ist ein deutscher Text.
28765 Dies ist ein deutscher Text.
28766 Dies ist ein deutscher Text.
28767 Dies ist ein deutscher Text.
28768 Dies ist ein deutscher Text.
28769 Dies ist ein deutscher Text.
28770 Dies ist ein deutscher Text.
28771 Dies ist ein deutscher Text.
28772 Dies ist ein deutscher Text.
28773 Dies ist ein deutscher Text.
28774 Dies ist ein deutscher Text.
28775 Dies ist ein deutscher Text.
28776 Dies ist ein deutscher Text
28780 \begin_layout Plain Layout
28783 Dies ist eine deutsche Fußnote.
28789 Dies ist ein deutscher Text.
28790 Dies ist ein deutscher Text.
28796 \begin_inset space \hfill{}
28800 \begin_inset Box Frameless
28809 height_special "totalheight"
28812 \begin_layout Plain Layout
28813 This is an English Text.
28814 This is an English Text.
28815 This is an English Text.
28816 This is an English Text.
28817 This is an English Text.
28818 This is an English Text.
28819 This is an English Text.
28820 This is an English Text.
28821 This is an English Text.
28822 This is an English Text.
28823 This is an English Text.
28824 This is an English Text.
28825 This is an English Text.
28826 This is an English Text.
28827 This is an English Text.
28828 This is an English Text.
28832 \begin_layout Plain Layout
28833 This is an English footnote.
28838 This is an English Text.
28847 \begin_layout Standard
28848 \begin_inset VSpace bigskip
28851 Another application for minipages are footnotes within tables.
28852 Due to a LaTeX restriction footnotes within tables doesn't appear at the
28853 bottom of the current page.
28854 But when you put the table with the footnote to a minipage, the footnote
28855 will appear at its bottom, numbered with Latin letters.
28856 The footnote number is reset to 1 in every minipage but not outside the
28860 \begin_layout Standard
28861 The footnote of this table doesn't appear:
28862 \begin_inset Tabular
28863 <lyxtabular version="3" rows="3" columns="4">
28865 <column alignment="center" valignment="top" width="0pt">
28866 <column alignment="center" valignment="top" width="0pt">
28867 <column alignment="center" valignment="top" width="0pt">
28868 <column alignment="center" valignment="top" width="0pt">
28870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28873 \begin_layout Plain Layout
28879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28882 \begin_layout Plain Layout
28888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28891 \begin_layout Plain Layout
28896 \begin_layout Plain Layout
28897 This is a footnote within a table.
28907 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28910 \begin_layout Plain Layout
28918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28921 \begin_layout Plain Layout
28927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28930 \begin_layout Plain Layout
28936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28939 \begin_layout Plain Layout
28945 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28948 \begin_layout Plain Layout
28956 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28959 \begin_layout Plain Layout
28965 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28968 \begin_layout Plain Layout
28974 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28977 \begin_layout Plain Layout
28983 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28986 \begin_layout Plain Layout
29000 \begin_layout Standard
29002 \begin_inset Box Frameless
29011 height_special "totalheight"
29014 \begin_layout Plain Layout
29016 \begin_inset Tabular
29017 <lyxtabular version="3" rows="3" columns="4">
29019 <column alignment="center" valignment="top" width="0pt">
29020 <column alignment="center" valignment="top" width="0pt">
29021 <column alignment="center" valignment="top" width="0pt">
29022 <column alignment="center" valignment="top" width="0pt">
29024 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29027 \begin_layout Plain Layout
29033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29036 \begin_layout Plain Layout
29042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29045 \begin_layout Plain Layout
29050 \begin_layout Plain Layout
29051 This is a footnote within a table.
29061 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29064 \begin_layout Plain Layout
29072 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29075 \begin_layout Plain Layout
29081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29084 \begin_layout Plain Layout
29090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29093 \begin_layout Plain Layout
29099 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29102 \begin_layout Plain Layout
29110 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29113 \begin_layout Plain Layout
29119 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29122 \begin_layout Plain Layout
29128 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29131 \begin_layout Plain Layout
29137 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29140 \begin_layout Plain Layout
29159 \begin_layout Standard
29160 \begin_inset VSpace bigskip
29163 The document-wide paragraph settings are ignored within minipages.
29164 That means that there will be no space between paragraphs in minipages
29165 although you set it to e.
29166 \begin_inset space \thinspace{}
29170 \begin_inset space \space{}
29177 in the document settings.
29180 \begin_layout Standard
29181 Minipages can also be used to set a background color for text parts, see
29183 \begin_inset space ~
29187 \begin_inset CommandInset ref
29189 reference "sub:Color-for-Paragraphs"
29196 \begin_layout Standard
29197 \begin_inset Note Greyedout
29200 \begin_layout Plain Layout
29205 You cannot have floats or margin notes inside minipages but minipages can
29206 be used inside tables, floats, and other boxes.
29214 \begin_layout Section
29216 \begin_inset CommandInset label
29218 name "sec:Parboxes"
29226 \begin_layout Plain Layout
29235 \begin_layout Standard
29236 Parboxes are very similar to minipages with the difference that they cannot
29238 The main difference to minipages is that minipages are in contrary to parboxes
29239 no real boxes but LaTeX-environments.
29242 \begin_layout Standard
29244 \begin_inset Box Frameless
29253 height_special "totalheight"
29256 \begin_layout Plain Layout
29257 This a text within a parbox.
29258 This a text within a parbox.
29261 \begin_layout Plain Layout
29262 This footnote won't appear:
29266 \begin_layout Plain Layout
29267 This footnote is inside a parbox and will therefore not appear.
29280 \begin_layout Section
29281 Boxes for Words and Characters
29285 \begin_layout Plain Layout
29286 Boxes ! for Characters
29294 \begin_layout Subsection
29295 Prevent Hyphenation
29296 \begin_inset CommandInset label
29298 name "sec:Prevent-Hyphenation"
29306 \begin_layout Plain Layout
29307 Boxes ! to Prevent Hyphenation
29315 \begin_layout Standard
29316 You can use a special kind of boxes to prevent words or text to be hyphenated.
29317 \begin_inset Newline newline
29320 Here is an example text:
29323 \begin_layout Standard
29324 This line is an example to show how you can prevent the hyphenation of
29325 \begin_inset Quotes eld
29329 \begin_inset Quotes erd
29335 \begin_layout Standard
29336 To prevent the hyphenation of the word
29337 \begin_inset Quotes eld
29341 \begin_inset Quotes erd
29347 \begin_layout Standard
29355 \begin_layout Standard
29356 in TeX-Code before the word.
29357 Behind the word insert a closing brace
29358 \begin_inset Quotes eld
29366 \begin_inset Quotes erd
29372 \begin_layout Standard
29373 This is the result:
29376 \begin_layout Standard
29377 This line is an example to show how you can prevent the hyphenation of
29381 \begin_layout Plain Layout
29391 \begin_inset Quotes eld
29395 \begin_inset Quotes erd
29402 \begin_layout Plain Layout
29412 \begin_layout Standard
29413 You can alternatively set the command
29414 \begin_inset Quotes eld
29424 \begin_inset Quotes grd
29427 as TeX-Code directly before the word:
29430 \begin_layout Standard
29431 This line is an example to show how you can prevent the hyphenation of
29432 \begin_inset Quotes eld
29439 \begin_layout Plain Layout
29449 \begin_inset Quotes erd
29455 \begin_layout Standard
29456 Of course the word now protrudes over the side margin.
29457 To avoid this, add via the menu
29459 Insert\SpecialChar \menuseparator
29461 \begin_inset space ~
29464 Formatting\SpecialChar \menuseparator
29466 \begin_inset space ~
29474 arg "newline-insert newline"
29477 ) a line break before the word:
29480 \begin_layout Standard
29481 This line is an example to show how you can prevent the hyphenation of
29482 \begin_inset Newline newline
29489 \begin_layout Plain Layout
29499 \begin_inset Quotes eld
29503 \begin_inset Quotes erd
29510 \begin_layout Plain Layout
29520 \begin_layout Subsection
29522 \begin_inset CommandInset label
29524 name "sub:Vertical-Alignment"
29532 \begin_layout Plain Layout
29533 Boxes ! for Vertical Alignment
29542 \begin_layout Plain Layout
29551 \begin_layout Standard
29552 With the help of the command
29558 you can align words, characters or other boxes vertically to the surrounding
29566 is used with the following scheme:
29569 \begin_layout Standard
29574 raisebox{lift}[height][depth]{box content}
29577 \begin_layout Standard
29578 The lift can be a positive value to raise the box or a negative value to
29582 \begin_layout Standard
29583 To align for example the word
29584 \begin_inset Quotes eld
29588 \begin_inset Quotes erd
29591 so that the bottom of the
29592 \begin_inset Quotes eld
29596 \begin_inset Quotes erd
29600 \begin_inset Quotes eld
29604 \begin_inset Quotes erd
29607 is at the baseline, insert the command
29610 \begin_layout Standard
29620 \begin_layout Standard
29621 in TeX-Code before the word.
29622 Behind the word insert a closing brace
29623 \begin_inset Quotes eld
29631 \begin_inset Quotes erd
29635 \begin_inset Newline newline
29638 This is the result:
29641 \begin_layout Standard
29642 This is a text line with the word
29646 \begin_layout Plain Layout
29658 \begin_inset Quotes eld
29662 \begin_inset Quotes erd
29669 \begin_layout Plain Layout
29679 \begin_layout Standard
29680 \begin_inset VSpace bigskip
29683 When you raise or lower characters in a line, the line distance will be
29687 \begin_layout Standard
29688 This is a text line with the word
29692 \begin_layout Plain Layout
29704 \begin_inset Quotes eld
29708 \begin_inset Quotes erd
29715 \begin_layout Plain Layout
29723 \begin_inset Newline newline
29726 This is a text line with the word
29730 \begin_layout Plain Layout
29740 \begin_inset Quotes eld
29744 \begin_inset Quotes erd
29751 \begin_layout Plain Layout
29761 \begin_layout Standard
29762 If you want to prevent this for a certain reason, set the box height to
29767 \begin_layout Standard
29777 \begin_layout Standard
29778 This is a text line with the word
29782 \begin_layout Plain Layout
29794 \begin_inset Quotes eld
29798 \begin_inset Quotes erd
29805 \begin_layout Plain Layout
29813 \begin_inset Newline newline
29816 This is a text line with the word
29820 \begin_layout Plain Layout
29824 raisebox{0.5cm}[0pt]{
29830 \begin_inset Quotes eld
29834 \begin_inset Quotes erd
29841 \begin_layout Plain Layout
29851 \begin_layout Section
29853 \begin_inset CommandInset label
29855 name "sec:Colored-Boxes"
29863 \begin_layout Plain Layout
29872 \begin_layout Subsection
29877 \begin_layout Plain Layout
29886 \begin_layout Standard
29887 To color the background of text the text must be put into a so called
29888 \begin_inset Quotes eld
29892 \begin_inset Quotes erd
29896 This requires that the LaTeX-package
29904 \begin_layout Plain Layout
29905 LaTeX-packages ! color
29910 is loaded in the document preamble with the command
29913 \begin_layout Standard
29918 @ifundefined{textcolor}
29919 \begin_inset Newline newline
29926 \begin_layout Plain Layout
29937 usepackage{color}}{}
29940 \begin_layout Standard
29945 will be loaded automatically by LyX when you color text
29949 \begin_layout Plain Layout
29950 To avoid that it is loaded twice the command
29964 \begin_layout Standard
29965 \begin_inset VSpace medskip
29968 Colorboxes are created with the command
29975 This will be used with the following scheme:
29978 \begin_layout Standard
29983 colorbox{color}{box content}
29986 \begin_layout Standard
29987 The box content can also be a box and colorboxes can also be within other
29991 \begin_layout Standard
29992 The following colors are predefined:
29993 \begin_inset Newline newline
30032 \begin_inset Newline newline
30035 You can also define your own color as described in section
30036 \begin_inset space ~
30040 \begin_inset CommandInset ref
30042 reference "sec:Colored-Tables"
30049 \begin_layout Standard
30051 \begin_inset space \thinspace{}
30055 \begin_inset space \space{}
30058 a red background for a word, insert the command
30061 \begin_layout Standard
30069 \begin_layout Standard
30070 before the word in TeX-Code.
30071 Behind the word insert a closing brace
30072 \begin_inset Quotes eld
30080 \begin_inset Quotes erd
30084 \begin_inset Newline newline
30087 This is the result:
30090 \begin_layout Standard
30091 This is a line where the word
30095 \begin_layout Plain Layout
30105 \begin_inset Quotes eld
30109 \begin_inset Quotes erd
30116 \begin_layout Plain Layout
30123 has a red background.
30126 \begin_layout Standard
30127 \begin_inset VSpace bigskip
30130 If you would have the box frame in a different color, you can use the command
30137 with the following scheme:
30140 \begin_layout Standard
30145 fcolorbox{frame color}{box color}{box content}
30148 \begin_layout Standard
30162 The frame thickness and the space between the frame and the box content
30163 can be adjusted with the lengths
30175 , respectively, as described in section
30176 \begin_inset space ~
30180 \begin_inset CommandInset ref
30182 reference "sec:Decoration"
30189 \begin_layout Standard
30190 For the following example the command
30193 \begin_layout Standard
30198 fcolorbox{cyan}{magenta}{
30201 \begin_layout Standard
30205 \begin_layout Standard
30206 Here is an example where the frame line thickness was set to 1
30207 \begin_inset space \thinspace{}
30211 \begin_inset Newline newline
30218 \begin_layout Plain Layout
30233 \begin_layout Plain Layout
30237 fcolorbox{cyan}{magenta}{
30242 This is text within a colored, framed box.
30246 \begin_layout Plain Layout
30256 \begin_layout Standard
30257 \begin_inset VSpace bigskip
30260 Of course you can also have colored text inside a colorbox:
30261 \begin_inset Newline newline
30268 \begin_layout Plain Layout
30272 fcolorbox{cyan}{magenta}{
30279 This is colored text within a colored, framed box.
30285 \begin_layout Plain Layout
30296 \begin_layout Plain Layout
30310 \begin_layout Standard
30313 \begin_inset VSpace medskip
30319 \begin_layout Standard
30320 \begin_inset Note Greyedout
30323 \begin_layout Plain Layout
30328 Text in colorboxes cannot have line breaks.
30329 To color multiple text lines or paragraphs, use a box inside a colorbox
30330 as described in the following.
30338 \begin_layout Subsection
30339 Color for Paragraphs
30340 \begin_inset CommandInset label
30342 name "sub:Color-for-Paragraphs"
30350 \begin_layout Plain Layout
30351 Color ! for Paragraphs
30359 \begin_layout Standard
30360 To set the background color for more than one text line, put the text into
30362 Before the minipage insert the
30371 \begin_layout Standard
30379 \begin_layout Standard
30381 Behind the minipage insert a closing brace
30382 \begin_inset Quotes eld
30390 \begin_inset Quotes erd
30396 \begin_layout Standard
30400 \begin_layout Plain Layout
30404 colorbox{lightgrey}{
30410 \begin_inset Box Frameless
30419 height_special "totalheight"
30422 \begin_layout Plain Layout
30423 This is text with background color.
30424 This is text with background color.
30427 \begin_layout Plain Layout
30428 \begin_inset VSpace defskip
30431 The text can have footnotes
30435 \begin_layout Plain Layout
30436 Another example footnote
30441 and can include tables and figures.
30444 \begin_layout Plain Layout
30446 \begin_inset Tabular
30447 <lyxtabular version="3" rows="3" columns="3">
30449 <column alignment="center" valignment="top" width="0">
30450 <column alignment="center" valignment="top" width="0">
30451 <column alignment="center" valignment="top" width="0">
30453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30456 \begin_layout Plain Layout
30462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30465 \begin_layout Plain Layout
30471 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30474 \begin_layout Plain Layout
30482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30485 \begin_layout Plain Layout
30491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30494 \begin_layout Plain Layout
30496 \begin_inset Quotes erd
30504 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30507 \begin_layout Plain Layout
30515 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30518 \begin_layout Plain Layout
30524 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30527 \begin_layout Plain Layout
30533 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30536 \begin_layout Plain Layout
30556 \begin_layout Plain Layout
30566 \begin_layout Section
30567 Rotated and Scaled Boxes
30570 \begin_layout Standard
30571 To use the the commands described in this section, the LaTeX-package
30579 \begin_layout Plain Layout
30580 LaTeX-packages ! graphicx
30585 needs to be loaded in the document preamble with the command
30588 \begin_layout Standard
30593 @ifundefined{rotatebox}
30594 \begin_inset Newline newline
30601 \begin_layout Plain Layout
30612 usepackage{graphicx}}{}
30615 \begin_layout Standard
30616 \begin_inset Note Greyedout
30619 \begin_layout Plain Layout
30624 Some DVI-viewers can't display rotated or scaled material.
30632 \begin_layout Standard
30633 \begin_inset Note Greyedout
30636 \begin_layout Plain Layout
30641 Floats mustn't be inside a rotated or scaled box.
30649 \begin_layout Subsection
30654 \begin_layout Plain Layout
30664 \begin_layout Plain Layout
30674 \begin_layout Plain Layout
30684 \begin_layout Plain Layout
30685 Table Customization ! Rotating
30693 \begin_layout Standard
30694 To rotate material, you can put it into a rotated box.
30695 Such a box is created using the command
30701 in TeX-Code with the following scheme:
30704 \begin_layout Standard
30709 rotatebox[rotation origin]{rotation angle}{box content}
30712 \begin_layout Standard
30713 The rotation origin is specified in the form
30718 The following positions are possible:
30738 (top), and also expedient combinations of the four base positions.
30743 means, that the rotation origin is at the top left corner of the box.
30744 When no rotation origin is specified, the position
30749 The rotation angle is a number that can be negative that specifies the
30751 The rotation direction is counterclockwise.
30754 \begin_layout Standard
30755 In the following example the command
30759 rotatebox[origin=c]{60}{
30761 was inserted as TeX-Code before the text
30762 \begin_inset Quotes eld
30766 \begin_inset Quotes erd
30769 ; after the text the box was closed by a closing brace
30776 \begin_layout Standard
30781 \begin_layout Plain Layout
30785 rotatebox[origin=c]{60}{
30794 \begin_layout Plain Layout
30804 \begin_layout Standard
30805 The box content can also be another box or an inline formula:
30808 \begin_layout Standard
30813 \begin_layout Plain Layout
30817 rotatebox[origin=r]{-60}{
30823 \begin_inset Box Doublebox
30832 height_special "totalheight"
30835 \begin_layout Plain Layout
30845 \begin_layout Plain Layout
30856 \begin_layout Plain Layout
30860 rotatebox[origin=lb]{60}{
30866 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30873 \begin_layout Plain Layout
30883 \begin_layout Standard
30884 or an image or table:
30887 \begin_layout Standard
30892 \begin_layout Plain Layout
30896 rotatebox[origin=lb]{90}{
30902 \begin_inset Graphics
30903 filename clipart/platypus.eps
30913 \begin_layout Plain Layout
30920 with a rotated image
30924 \begin_layout Plain Layout
30928 rotatebox[origin=l]{-90}{
30934 \begin_inset Tabular
30935 <lyxtabular version="3" rows="2" columns="2">
30937 <column alignment="center" valignment="top" width="0">
30938 <column alignment="center" valignment="top" width="0">
30940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30943 \begin_layout Plain Layout
30949 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30952 \begin_layout Plain Layout
30960 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30963 \begin_layout Plain Layout
30969 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30972 \begin_layout Plain Layout
30987 \begin_layout Plain Layout
30997 \begin_layout Subsection
31002 \begin_layout Plain Layout
31012 \begin_layout Plain Layout
31022 \begin_layout Plain Layout
31032 \begin_layout Plain Layout
31033 Table Customization ! Scaling
31041 \begin_layout Standard
31042 To scale material the commands
31054 can be used as TeX-Code.
31057 \begin_layout Standard
31064 is used with the following scheme:
31067 \begin_layout Standard
31072 scalebox{horizontal}[vertical]{box content}
31075 \begin_layout Standard
31076 Horizontal and vertical are the corresponding scaling factors.
31077 If no vertical scaling factor is given, the horizontal factor will also
31078 be used as vertical one.
31081 \begin_layout Standard
31088 creates for example a double size
31092 \begin_layout Plain Layout
31105 \begin_layout Plain Layout
31112 , compared to the document text size.
31115 \begin_layout Standard
31120 scalebox{2}[1]{Hello}
31122 in contrary distorts the
31126 \begin_layout Plain Layout
31139 \begin_layout Plain Layout
31149 \begin_layout Standard
31150 If a the scaling factor is negative, the box content will be mirrored.
31151 Therefore the command
31155 scalebox{-1}[1]{Hello}
31157 can be used to create mirror writing:
31161 \begin_layout Plain Layout
31174 \begin_layout Plain Layout
31184 \begin_layout Standard
31189 scalebox{1}[-1]{Hello}
31195 \begin_layout Plain Layout
31208 \begin_layout Plain Layout
31218 \begin_layout Standard
31223 scalebox{-1}[1]{box content}
31225 there exists the command
31226 \begin_inset Newline newline
31233 reflectbox{box content}
31238 \begin_layout Standard
31239 \begin_inset VSpace bigskip
31248 is used to scale the box to a defined width and height.
31249 The command scheme is:
31252 \begin_layout Standard
31257 resizebox{width}{height}{box content}
31260 \begin_layout Standard
31261 Is one of the two command arguments given as exclamation mark
31265 , the size is set so that the aspect ratio of the box content is kept.
31268 \begin_layout Standard
31273 resizebox{2cm}{1cm}{Hello}
31279 \begin_layout Plain Layout
31283 resizebox{2cm}{1cm}{
31292 \begin_layout Plain Layout
31300 \begin_inset Newline newline
31307 resizebox{2cm}{!}{Hello}
31313 \begin_layout Plain Layout
31326 \begin_layout Plain Layout
31336 \begin_layout Standard
31337 \begin_inset VSpace bigskip
31341 \begin_inset Note Greyedout
31344 \begin_layout Plain Layout
31361 are set to zero, no LaTeX-errors occur when exporting the document but
31362 the exported files can not or only partly be displayed.
31370 \begin_layout Standard
31371 \begin_inset VSpace bigskip
31377 \begin_layout Standard
31378 The boxes can be combined in any order.
31380 \begin_inset space \thinspace{}
31384 \begin_inset space \space{}
31388 \begin_inset Newline newline
31395 rotatebox[origin=c]{-45}{
31399 reflectbox{Hello}}}
31400 \begin_inset Newline newline
31408 \begin_layout Standard
31413 \begin_layout Plain Layout
31417 rotatebox[origin=c]{-45}{
31430 \begin_layout Plain Layout
31440 \begin_layout Standard
31442 Images, tables, and inline formulas are allowed as box content:
31445 \begin_layout Standard
31450 \begin_layout Plain Layout
31454 rotatebox[origin=c]{-30}{
31464 \begin_inset Graphics
31465 filename clipart/platypus.eps
31475 \begin_layout Plain Layout
31486 \begin_layout Plain Layout
31490 rotatebox[origin=c]{-45}{
31500 \begin_inset Tabular
31501 <lyxtabular version="3" rows="2" columns="2">
31503 <column alignment="center" valignment="top" width="0">
31504 <column alignment="center" valignment="top" width="0">
31506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31509 \begin_layout Plain Layout
31515 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31518 \begin_layout Plain Layout
31526 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31529 \begin_layout Plain Layout
31535 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31538 \begin_layout Plain Layout
31553 \begin_layout Plain Layout
31564 \begin_layout Plain Layout
31568 rotatebox[origin=c]{-45}{
31578 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31585 \begin_layout Plain Layout
31595 \begin_layout Standard
31596 When the global formula style
31600 is used in the document
31604 \begin_layout Plain Layout
31606 \begin_inset Quotes eld
31610 \begin_inset Quotes erd
31613 is added to the document class options.
31618 , also display formulas can be scaled.
31621 \begin_layout Chapter
31622 External Document Parts
31626 \begin_layout Plain Layout
31627 External Document Parts
31635 \begin_layout Standard
31638 Insert\SpecialChar \menuseparator
31641 you can insert external material to your document.
31645 \begin_layout Description
31647 \begin_inset space ~
31650 Document Another LyX document; its content is directly inserted to your
31654 \begin_layout Description
31656 \begin_inset space ~
31659 Text A text document; every of its text lines is inserted to your document
31663 \begin_layout Description
31665 \begin_inset space ~
31669 \begin_inset space ~
31673 \begin_inset space ~
31676 Lines A text document; its text lines are inserted as they are.
31677 Empty text lines creates a new paragraph in your document.
31680 \begin_layout Description
31682 \begin_inset space ~
31685 Material Files in various formats.
31688 \begin_layout Description
31690 \begin_inset space ~
31693 Document LyX or LaTeX-documents.
31696 \begin_layout Section
31701 \begin_layout Plain Layout
31702 External Document Parts ! External Material
31710 \begin_layout Standard
31711 The external material feature allows you to insert files to your document
31712 without converting them previously to a format that can be read by the
31713 document output format because LyX takes care of needed conversions.
31714 This is similar to images that can be inserted in various image formats
31716 When you have enabled Instant Preview in LyX's preferences under
31719 \begin_inset space ~
31723 \begin_inset space ~
31726 feel\SpecialChar \menuseparator
31729 , the external material types Dia and Xfig is directly shown in LyX.
31732 \begin_layout Standard
31733 External material can be inserted via the
31737 dialog that is accessible with the menu
31739 Insert\SpecialChar \menuseparator
31740 File\SpecialChar \menuseparator
31742 \begin_inset space ~
31748 Currently the following file types (
31755 \begin_layout Description
31756 ChessDiagram This template supports chess position diagrams made with the
31760 \begin_inset CommandInset href
31763 target "http://en.wikipedia.org/wiki/XBoard"
31772 \begin_layout Description
31773 Date This inserts the date in the form
31778 This is a date inserted as external material:
31779 \begin_inset External
31786 \begin_inset space ~
31790 \begin_inset Note Note
31793 \begin_layout Plain Layout
31794 Remove the protected space when bug 4398 is fixed!
31800 \begin_inset Newline newline
31803 The date is not shown within LyX, only in the output.
31804 There are two other methods of inserting a date: Via menu
31806 Insert\SpecialChar \menuseparator
31809 and with the LaTeX command
31816 The different methods are compared in Table
31817 \begin_inset space ~
31821 \begin_inset CommandInset ref
31823 reference "tab:Comparison-of-the"
31830 \begin_layout Description
31831 Dia This template supports diagrams created with the program
31834 \begin_inset CommandInset href
31837 target "http://en.wikipedia.org/wiki/Dia_(software)"
31846 \begin_layout Description
31847 LilyPond This template is used for music notation typeset with the program
31848 \begin_inset Newline linebreak
31854 \begin_inset CommandInset href
31857 target "http://en.wikipedia.org/wiki/LilyPond"
31866 \begin_layout Description
31867 PDFPages With this template you can insert PDF documents to your document.
31868 To insert certain or all pages of a PDF, use the
31878 LaTeX and LyX options
31880 tab according to the template description in the dialog.
31885 option is given, only the first page of the PDF will be inserted.
31888 \begin_layout Description
31889 RasterImage This can be used for bitmap images.
31890 Nearly all popular image formats are supported.
31891 The image can be treated in the
31895 dialog like the images that are usually included via the
31899 dialog as described in section
31900 \begin_inset space ~
31904 \begin_inset CommandInset ref
31906 reference "sec:Graphics-Dialog"
31911 The difference is that only raster images are allowed, that means that
31912 PDF and EPS-images are not supported.
31915 \begin_layout Description
31916 XFig This template supports images created with the program
31919 \begin_inset CommandInset href
31922 target "http://en.wikipedia.org/wiki/Xfig"
31931 \begin_layout Standard
31932 \begin_inset Float table
31938 \begin_layout Plain Layout
31939 \begin_inset Caption
31941 \begin_layout Plain Layout
31942 \begin_inset CommandInset label
31944 name "tab:Comparison-of-the"
31948 Comparison of the date input methods.
31956 \begin_layout Plain Layout
31958 \begin_inset Tabular
31959 <lyxtabular version="3" rows="4" columns="4">
31961 <column alignment="center" valignment="top" width="0">
31962 <column alignment="center" valignment="top" width="0">
31963 <column alignment="center" valignment="top" width="0">
31964 <column alignment="center" valignment="top" width="0">
31966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31969 \begin_layout Plain Layout
31975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31978 \begin_layout Plain Layout
31981 External Material\SpecialChar \menuseparator
31987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31990 \begin_layout Plain Layout
31993 Insert\SpecialChar \menuseparator
31999 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32002 \begin_layout Plain Layout
32014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32017 \begin_layout Plain Layout
32023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32026 \begin_layout Plain Layout
32032 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32035 \begin_layout Plain Layout
32041 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32044 \begin_layout Plain Layout
32045 as TeX-Code inset box
32052 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32055 \begin_layout Plain Layout
32061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32064 \begin_layout Plain Layout
32070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32073 \begin_layout Plain Layout
32079 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32082 \begin_layout Plain Layout
32090 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32093 \begin_layout Plain Layout
32099 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32102 \begin_layout Plain Layout
32108 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32111 \begin_layout Plain Layout
32117 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32120 \begin_layout Plain Layout
32139 \begin_layout Standard
32140 When you use the option
32152 dialog, only the path to the inserted file is shown in the output.
32153 \begin_inset Newline newline
32156 External material is displayed in LyX either as box like this:
32157 \begin_inset Graphics
32158 filename clipart/ExternalMaterialQt4.png
32160 scaleBeforeRotation
32164 or as image, depending on the option
32170 LaTeX and LyX options
32175 \begin_layout Standard
32182 manual explains how you can define your own templates.
32185 \begin_layout Section
32187 \begin_inset CommandInset label
32189 name "sec:Child-Documents"
32197 \begin_layout Plain Layout
32198 External Document Parts ! Child Documents
32207 \begin_layout Plain Layout
32216 \begin_layout Standard
32217 Child documents are used when you have a long document consisting of several
32218 larger parts or sections.
32219 For maintenance it is often useful and sometimes even required to split
32220 the document in several files that can be revised separately.
32221 The different documents are then the so called child documents and a master
32222 document connects them to print the full document or parts of it.
32223 A child documents inherits contents of its master, for example the LaTeX
32224 preamble, the bibliography, and labels for cross-references.
32227 \begin_layout Standard
32228 To be able to work on child documents without the need to open its master,
32229 specify in the child document the master in the menu
32231 Document\SpecialChar \menuseparator
32232 Settings\SpecialChar \menuseparator
32234 \begin_inset space ~
32240 This master document will then be used in the background by LyX when you
32241 edit the child document.
32244 \begin_layout Standard
32245 Included documents are displayed in LyX as a box like this:
32246 \begin_inset Graphics
32247 filename clipart/ChildDocumentQt4.png
32249 scaleBeforeRotation
32253 To include child documents to a master document use the menu
32255 Insert\SpecialChar \menuseparator
32256 File\SpecialChar \menuseparator
32258 \begin_inset space ~
32264 A dialog pops up where you can choose between four include methods:
32267 \begin_layout Description
32268 Include You can include LyX and LaTeX-documents.
32277 dialog, the included documents will be opened in LyX in a new file tab
32278 so that you can modify it.
32279 \begin_inset Newline newline
32285 \begin_layout Standard
32286 Here is a child document inserted using
32291 \begin_inset CommandInset include
32292 LatexCommand include
32293 filename "DummyDocument1.lyx"
32300 \begin_layout Standard
32301 The section numbering includes the sections of the included files in the
32302 order they are inserted in the master document.
32303 The included example document has for example a subsection that is numbered
32304 as subsection of this section.
32305 Labels of included documents can be referenced: Subsection
32306 \begin_inset space ~
32310 \begin_inset CommandInset ref
32312 reference "sub:External-Subsection-1"
32319 \begin_layout Standard
32320 The preamble of the child document is ignored, only the preamble of the
32321 master document is used.
32322 Branches in child documents will be ignored by the master document when
32323 the master document does not have a branch with the same name.
32324 Included documents are inserted starting on a new page and end with a page
32328 \begin_layout Standard
32329 In case you are only working on a certain chapter of a large document and
32330 want to save compiling time, you can put each included file into a branch.
32334 \begin_layout Plain Layout
32335 Branches are described in section
32348 By enabling/disabling branches you can decide what included files will
32349 appear in the output.
32352 \begin_layout Standard
32353 \begin_inset Note Greyedout
32356 \begin_layout Plain Layout
32361 Due to a bug in LyX the LaTeX command
32367 can currently not be used as alternative to decide what files should be
32376 \begin_layout Standard
32377 \begin_inset Note Greyedout
32380 \begin_layout Plain Layout
32385 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
32386 w the document in case that the child document uses another document class
32387 than the master document as this will lead to unexpected outputs.
32395 \begin_layout Description
32396 Input This method is very similar to the Include method.
32397 The differences are:
32401 \begin_layout Itemize
32402 Input files don't start with a new page and don't end with a page break.
32405 \begin_layout Itemize
32406 Input files can be previewed in LyX when
32409 \begin_inset space ~
32414 is enabled in LyX's preferences under
32417 \begin_inset space ~
32421 \begin_inset space ~
32424 feel\SpecialChar \menuseparator
32430 \begin_layout Itemize
32441 \begin_layout Standard
32442 Here is a child document inserted using
32447 \begin_inset CommandInset include
32449 filename "DummyDocument2.lyx"
32456 \begin_layout Description
32457 Verbatim With this method every text file can be included.
32458 The file is shown in the output with its source code, no command used in
32459 the text is invoked.
32460 You can use the option
32462 Mark spaces in output
32464 that displays the character
32465 \begin_inset Quotes eld
32472 \begin_layout Plain Layout
32482 \begin_inset Quotes erd
32485 for every space character in the source code.
32486 The difference to the method via the menu
32488 Insert\SpecialChar \menuseparator
32489 File\SpecialChar \menuseparator
32491 \begin_inset space ~
32496 is that the document content is not shown in LyX.
32499 \begin_layout Standard
32500 Here is a child document inserted as Verbatim:
32501 \begin_inset CommandInset include
32502 LatexCommand verbatiminput
32503 filename "DummyTextDocument.txt"
32508 \begin_inset VSpace bigskip
32511 Here is a child document inserted as Verbatim using the
32513 Mark spaces in output
32516 \begin_inset CommandInset include
32517 LatexCommand verbatiminput*
32518 filename "DummyTextDocument.txt"
32525 \begin_layout Standard
32526 \begin_inset VSpace bigskip
32532 \begin_layout Standard
32533 \begin_inset Note Greyedout
32536 \begin_layout Plain Layout
32541 As you can see in the examples above, the text of the documents included
32546 is not broken at the end of the document lines.
32554 \begin_layout Description
32555 Listings This type is described in chapter
32556 \begin_inset space ~
32560 \begin_inset CommandInset ref
32562 reference "cha:Program-Code-Listings"
32569 \begin_layout Standard
32570 \begin_inset Note Greyedout
32573 \begin_layout Plain Layout
32578 Including the same document twice in a document using different methods
32579 could cause LaTeX-problems.
32587 \begin_layout Chapter
32588 Program Code Listings
32589 \begin_inset CommandInset label
32591 name "cha:Program-Code-Listings"
32599 \begin_layout Plain Layout
32609 \begin_layout Plain Layout
32619 \begin_layout Plain Layout
32628 \begin_layout Standard
32629 To include and typeset program code you can use the
32633 inset that can be inserted via the menu
32635 Insert\SpecialChar \menuseparator
32647 \begin_layout Plain Layout
32648 LaTeX-packages ! listings
32653 provides a powerful and flexible way to insert program source code to your
32657 \begin_layout Standard
32658 Right-clicking on a listings inset opens the context menu containing where
32659 you can set the listings format.
32662 \begin_layout Standard
32663 By default, a listing starts a new paragraph in the output.
32664 The placement option
32667 \begin_inset space ~
32672 prints the listing inline like this:
32673 \begin_inset listings
32674 lstparams "language={C++}"
32678 \begin_layout Plain Layout
32686 \begin_inset Newline newline
32693 creates a listings float where you can specify the placement options
32694 \begin_inset Quotes eld
32702 \begin_inset Quotes erd
32706 \begin_inset Quotes eld
32714 \begin_inset Quotes erd
32718 \begin_inset Quotes eld
32726 \begin_inset Quotes erd
32730 \begin_inset Quotes eld
32738 \begin_inset Quotes erd
32741 corresponding to the float placement options described in section
32742 \begin_inset space ~
32746 \begin_inset CommandInset ref
32748 reference "sec:Float-Placement"
32753 The placement options can be mixed and are inserted without any separation,
32755 \begin_inset space \thinspace{}
32759 \begin_inset space \space{}
32763 \begin_inset Quotes eld
32771 \begin_inset Quotes erd
32776 \begin_inset Quotes eld
32780 \begin_inset Quotes erd
32783 has sometimes no effect, but you don't need to use the
32787 option in this case as also non-float listings can have captions and be
32791 \begin_layout Standard
32792 You can add captions to listings with the menu
32794 Insert\SpecialChar \menuseparator
32798 Listings can be referenced like floats: Listing
32799 \begin_inset space ~
32803 \begin_inset CommandInset ref
32805 reference "lst:Example-Listing"
32812 \begin_layout Standard
32813 \begin_inset listings
32814 lstparams "language=Python"
32818 \begin_layout Plain Layout
32820 \begin_inset Caption
32822 \begin_layout Plain Layout
32823 \begin_inset CommandInset label
32825 name "lst:Example-Listing"
32829 Example Listing float
32834 # Example listing float
32837 \begin_layout Plain Layout
32842 \begin_layout Plain Layout
32844 'this is a python function'
32847 \begin_layout Plain Layout
32857 \begin_layout Standard
32858 When you have set a programming language in the listings dialog, the keywords
32859 of this language will be recognized and specially typeset in the output.
32860 In the example listings the Python keyword
32861 \begin_inset Quotes eld
32865 \begin_inset Quotes erd
32868 is recognized and printed bold in the output.
32871 \begin_layout Standard
32872 \begin_inset Note Greyedout
32875 \begin_layout Plain Layout
32880 If you don't get bold keywords when using typewriter fonts, your
32884 font probably doesn't provide a bold shape.
32885 In this case select a different one in the menu
32887 Document\SpecialChar \menuseparator
32888 Settings\SpecialChar \menuseparator
32900 provide bold shapes.)
32908 \begin_layout Standard
32912 \begin_inset space ~
32917 of the listings dialog you can specify the line numbering style.
32918 You can insert a number to specify which lines are numbered to the field
32925 \begin_inset space \thinspace{}
32929 \begin_inset space \space{}
32933 \begin_inset Quotes eld
32937 \begin_inset Quotes erd
32940 , only every 3rd line will be numbered.
32943 \begin_layout Standard
32944 You can furthermore specify a range of lines, only these will then appear
32948 Extended character table
32950 should be used when you use national characters like the German umlauts
32952 \begin_inset Newline newline
32955 Here is an example listing with left line numbering, step
32956 \begin_inset Quotes eld
32960 \begin_inset Quotes erd
32964 \begin_inset Quotes eld
32968 \begin_inset Quotes erd
32972 \begin_inset Quotes eld
32975 Extended character table
32976 \begin_inset Quotes erd
32980 \begin_inset Quotes eld
32984 \begin_inset space ~
32988 \begin_inset space ~
32992 \begin_inset Quotes erd
32996 \begin_inset space \thinspace{}
33000 \begin_inset space \thinspace{}
33006 \begin_layout Standard
33007 \begin_inset listings
33008 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
33012 \begin_layout Plain Layout
33017 \begin_layout Plain Layout
33019 'this is a python function'
33022 \begin_layout Plain Layout
33027 \begin_layout Plain Layout
33032 \begin_layout Plain Layout
33034 'This is a German word: Tschüß'
33037 \begin_layout Plain Layout
33042 \begin_layout Plain Layout
33047 \begin_layout Plain Layout
33049 'this is a python function'
33052 \begin_layout Plain Layout
33062 \begin_layout Standard
33063 When you have tabulators in your listing, you can specify the number of
33064 characters that are spanned by a tabulator in the field
33067 \begin_inset space ~
33075 \begin_layout Standard
33076 \begin_inset Note Greyedout
33079 \begin_layout Plain Layout
33084 Due to a bug in the
33088 package the line numbering is shifted by a line by every previous listing.
33089 That's the reason why the lines 2 and 5 are numbered in the above listing
33090 and not the lines 3 and 6.
33098 \begin_layout Standard
33099 \begin_inset VSpace bigskip
33105 \begin_layout Standard
33106 It is also possible to print lines from a file as listing.
33107 To do this, use the menu
33109 Insert\SpecialChar \menuseparator
33110 File\SpecialChar \menuseparator
33113 and choose the type
33121 \begin_layout Plain Layout
33122 The other child document types are described in section
33123 \begin_inset space ~
33127 \begin_inset CommandInset ref
33129 reference "sec:Child-Documents"
33138 In the child document dialog you can specify the listing parameters in
33140 To show a list of all available parameters, type in a question mark
33141 \begin_inset Quotes eld
33145 \begin_inset Quotes erd
33151 \begin_layout Standard
33152 To reference child document listings, write a label text into the corresponding
33153 field of the child document dialog.
33154 The label can then be referenced using the menu
33156 Insert\SpecialChar \menuseparator
33162 \begin_layout Standard
33164 \begin_inset space ~
33168 \begin_inset CommandInset ref
33170 reference "lst:file-listing"
33174 is an example for a listing of a file; there the lines 10
33175 \begin_inset space \thinspace{}
33179 \begin_inset space \thinspace{}
33182 15 of this LyX file are listed.
33185 \begin_layout Standard
33186 \begin_inset CommandInset include
33187 LatexCommand lstinputlisting
33188 filename "EmbeddedObjects.lyx"
33189 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
33196 \begin_layout Standard
33197 \begin_inset VSpace bigskip
33203 \begin_layout Standard
33204 Global listings settings can be set in the
33206 Document\SpecialChar \menuseparator
33207 Settings\SpecialChar \menuseparator
33211 To get there a list of available options, type in a question mark
33212 \begin_inset Quotes eld
33216 \begin_inset Quotes erd
33222 \begin_inset space ~
33230 \begin_layout Standard
33231 For more information about the
33235 package, we refer to its documentation
33236 \begin_inset CommandInset citation
33245 \begin_layout Standard
33246 \begin_inset Newpage newpage
33252 \begin_layout Chapter
33254 Units available in LyX
33258 \begin_layout Plain Layout
33265 \begin_inset CommandInset label
33267 name "cha:Units-available-in"
33274 \begin_layout Standard
33275 To understand the units described in this documentation, Table
33276 \begin_inset space ~
33280 \begin_inset CommandInset ref
33282 reference "tab:Units"
33286 explains all units available in LyX.
33289 \begin_layout Standard
33290 \begin_inset Float table
33296 \begin_layout Plain Layout
33297 \begin_inset Caption
33299 \begin_layout Plain Layout
33300 \begin_inset CommandInset label
33314 \begin_layout Plain Layout
33315 \begin_inset VSpace medskip
33321 \begin_layout Plain Layout
33323 \begin_inset Tabular
33324 <lyxtabular version="3" rows="20" columns="2">
33326 <column alignment="center" valignment="top" width="0">
33327 <column alignment="center" valignment="top" width="0">
33329 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33332 \begin_layout Plain Layout
33338 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33341 \begin_layout Plain Layout
33349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33352 \begin_layout Plain Layout
33358 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33361 \begin_layout Plain Layout
33369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33372 \begin_layout Plain Layout
33378 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33381 \begin_layout Plain Layout
33389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33392 \begin_layout Plain Layout
33398 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33401 \begin_layout Plain Layout
33409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33412 \begin_layout Plain Layout
33418 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33421 \begin_layout Plain Layout
33423 \begin_inset space \thinspace{}
33427 \begin_inset space \thinspace{}
33437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33440 \begin_layout Plain Layout
33446 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33449 \begin_layout Plain Layout
33451 \begin_inset space \thinspace{}
33455 \begin_inset space \thinspace{}
33465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33468 \begin_layout Plain Layout
33474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33477 \begin_layout Plain Layout
33478 scaled point (65536
33479 \begin_inset space \thinspace{}
33483 \begin_inset space \thinspace{}
33493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33496 \begin_layout Plain Layout
33502 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33505 \begin_layout Plain Layout
33507 \begin_inset space \thinspace{}
33511 \begin_inset space \thinspace{}
33521 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33524 \begin_layout Plain Layout
33530 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33533 \begin_layout Plain Layout
33535 \begin_inset space \thinspace{}
33539 \begin_inset Formula $\approx$
33543 \begin_inset space \thinspace{}
33553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33556 \begin_layout Plain Layout
33562 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33565 \begin_layout Plain Layout
33567 \begin_inset space \thinspace{}
33571 \begin_inset space \thinspace{}
33581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33584 \begin_layout Plain Layout
33590 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33593 \begin_layout Plain Layout
33594 % of original image width
33601 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33604 \begin_layout Plain Layout
33610 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33613 \begin_layout Plain Layout
33621 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33624 \begin_layout Plain Layout
33630 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33633 \begin_layout Plain Layout
33641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33644 \begin_layout Plain Layout
33650 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33653 \begin_layout Plain Layout
33661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33664 \begin_layout Plain Layout
33670 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33673 \begin_layout Plain Layout
33681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33684 \begin_layout Plain Layout
33690 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33693 \begin_layout Plain Layout
33701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33704 \begin_layout Plain Layout
33710 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33713 \begin_layout Plain Layout
33721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33724 \begin_layout Plain Layout
33730 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33733 \begin_layout Plain Layout
33745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33748 \begin_layout Plain Layout
33754 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33757 \begin_layout Plain Layout
33769 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33772 \begin_layout Plain Layout
33778 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33781 \begin_layout Plain Layout
33783 \begin_inset space \thinspace{}
33787 \begin_inset space \thinspace{}
33808 \begin_layout Chapter
33809 Output File Formats with Graphics
33810 \begin_inset CommandInset label
33812 name "cha:Output-File-Formats"
33819 \begin_layout Section
33824 \begin_layout Plain Layout
33834 \begin_layout Plain Layout
33839 \begin_layout Plain Layout
33850 \begin_layout Plain Layout
33865 \begin_layout Standard
33866 This file type has the extension
33867 \begin_inset Quotes eld
33875 \begin_inset Quotes erd
33880 \begin_inset Quotes eld
33884 \begin_inset Quotes erd
33887 (DVI), because it is completely portable; you can move them from one machine
33888 to another without needing to do any sort of conversion.
33889 At the time when this file-format was developed, this was no matter of
33891 DVIs are used for quick previews and as pre-stage for other output formats,
33895 \begin_layout Standard
33896 \begin_inset Note Greyedout
33899 \begin_layout Plain Layout
33904 DVI-files doesn't contain images, they will only be a linked.
33909 So don't forget this, if you move your
33913 file to another computer.
33914 This property can also slow down your computer when you view the DVI.
33915 Because the DVI-viewer has to convert the image in the background to make
33916 it visible when you scroll in the DVI.
33917 So we recommend to use PDF for files with many images.
33920 \begin_layout Standard
33921 You can export your document to DVI by using the menu
33923 File\SpecialChar \menuseparator
33924 Export\SpecialChar \menuseparator
33928 You can view your document as DVI via the
33932 menu or by using the toolbar button
33933 \begin_inset Graphics
33934 filename ../images/buffer-view_dvi.png
33936 scaleBeforeRotation
33943 \begin_layout Section
33945 \begin_inset CommandInset label
33947 name "sec:PostScript"
33955 \begin_layout Plain Layout
33956 File Formats ! PostScript
33965 \begin_layout Plain Layout
33970 \begin_layout Plain Layout
33981 \begin_layout Plain Layout
33996 \begin_layout Standard
33997 This file type has the extension
33998 \begin_inset Quotes eld
34006 \begin_inset Quotes erd
34010 PostScript was developed by the company
34014 as printer language.
34015 The file contains therefore commands that the printer uses to print the
34017 PostScript can be seen as
34018 \begin_inset Quotes eld
34021 programming language
34022 \begin_inset Quotes erd
34025 ; you can calculate with it and draw diagrams and images
34029 \begin_layout Plain Layout
34030 If you are interested to learn more about this, have a look at the LaTeX-package
34036 \begin_inset CommandInset citation
34048 Due to this ability, the files are often bigger than PDFs.
34051 \begin_layout Standard
34052 PostScript can only contain images in the format
34053 \begin_inset Quotes eld
34056 Encapsulated PostScript
34057 \begin_inset Quotes erd
34060 (EPS, file extension
34061 \begin_inset Quotes eld
34069 \begin_inset Quotes erd
34073 As LyX allows you to use any known image format in your document, it has
34074 to convert images in the background to EPS.
34075 If you have e.g 50 images in your document, LyX has to do 50 conversions
34076 whenever you view or export your document.
34077 This will slow down your work flow with LyX drastically.
34078 So if you plan to use PostScript, you can insert your images directly as
34079 EPS to avoid this problem.
34082 \begin_layout Standard
34083 You can export your document to PostScript using the menu
34085 File\SpecialChar \menuseparator
34086 Export\SpecialChar \menuseparator
34090 You can view your document as PostScript via the
34094 menu or by using the toolbar button
34095 \begin_inset Graphics
34096 filename ../images/buffer-view_ps.png
34098 scaleBeforeRotation
34105 \begin_layout Section
34110 \begin_layout Plain Layout
34120 \begin_layout Plain Layout
34129 \begin_layout Standard
34130 This file type has the extension
34131 \begin_inset Quotes eld
34139 \begin_inset Quotes erd
34144 \begin_inset Quotes eld
34147 Portable Document Format
34148 \begin_inset Quotes erd
34151 (PDF) is developed by
34155 as derivative from PostScript.
34156 It is more compressed and it uses much less commands than PostScript.
34158 \begin_inset Quotes eld
34162 \begin_inset Quotes erd
34165 implies, it can be processed at any computer system and the printed output
34166 looks exactly the same.
34169 \begin_layout Standard
34170 PDF can contain images in its own PDF format, in the format
34171 \begin_inset Quotes eld
34174 Joint Photographic Experts Group
34175 \begin_inset Quotes erd
34178 (JPG, file extension
34179 \begin_inset Quotes eld
34187 \begin_inset Quotes erd
34191 \begin_inset Quotes eld
34199 \begin_inset Quotes erd
34202 ), and in the format
34203 \begin_inset Quotes eld
34206 Portable Network Graphics
34207 \begin_inset Quotes erd
34210 (PNG, file extension
34211 \begin_inset Quotes eld
34219 \begin_inset Quotes erd
34223 Nevertheless you can use any other image format, because LyX converts them
34224 in the background to one of these formats.
34225 But as described in the section about PostScript, the image conversion
34226 will slow down your work flow.
34227 So it is recommended to use images in one of the three mentioned formats.
34230 \begin_layout Standard
34231 You can export your document to PDF via the menu
34233 File\SpecialChar \menuseparator
34236 in three different ways:
34239 \begin_layout Description
34241 \begin_inset space ~
34244 (ps2pdf) This uses the program
34248 that creates a PDF from a PostScript-version of your file.
34249 The PostScript-version is produced by the program
34253 which uses a DVI-version as intermediate step.
34254 So this export variant consist of three conversions.
34257 \begin_layout Description
34259 \begin_inset space ~
34262 (dvipdfm) This uses the program
34266 that converts your file in the background to DVI and in a second step to
34270 \begin_layout Description
34272 \begin_inset space ~
34275 (pdflatex) This uses the program
34279 that converts your file directly to PDF.
34282 \begin_layout Standard
34283 It is recommended to use
34286 \begin_inset space ~
34295 supports all features of actual PDF-versions, is quick and works stable
34301 is not under development and therefore a bit outdated.
34304 \begin_layout Standard
34305 You can view your document as PDF via the
34309 menu or by using the toolbar button
34310 \begin_inset Graphics
34311 filename ../images/buffer-view_pdf2.png
34313 scaleBeforeRotation
34324 \begin_inset space ~
34332 \begin_layout Chapter
34333 Explanation of Equation
34334 \begin_inset space ~
34338 \begin_inset CommandInset ref
34345 \begin_inset CommandInset label
34347 name "cha:Explanation-of-Equation"
34354 \begin_layout Standard
34360 \begin_inset Formula $W_{\mathrm{tot\, n}}$
34363 can be calculated to
34366 \begin_layout Standard
34367 \begin_inset Formula \begin{equation}
34368 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}
34375 \begin_layout Standard
34377 \begin_inset Formula $W_{g\, n}$
34380 is the given width of all cells.
34387 is the LaTeX-length between the cell text and the cell border, its default
34389 \begin_inset space \thinspace{}
34399 is the thickness of the cell border line, the default is 0.4
34400 \begin_inset space \thinspace{}
34406 \begin_layout Standard
34408 \begin_inset space ~
34412 \begin_inset CommandInset ref
34414 reference "eq:Wtot_n"
34418 , the total width of a multicolumn
34419 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
34425 \begin_layout Standard
34426 \begin_inset Formula \begin{equation}
34427 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
34434 \begin_layout Standard
34435 By setting equation
34436 \begin_inset space ~
34440 \begin_inset CommandInset ref
34442 reference "eq:Wtot_n"
34447 \begin_inset CommandInset ref
34449 reference "eq:Wtot_mult"
34453 equal we can calculate the needed given width
34454 \begin_inset Formula $W_{g\, n}$
34461 columns are spanned, so that each column has a total width of
34462 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
34468 \begin_layout Standard
34469 \begin_inset Formula \begin{equation}
34470 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
34477 \begin_layout Bibliography
34478 \begin_inset CommandInset bibitem
34479 LatexCommand bibitem
34480 key "latexcompanion"
34484 Frank Mittelbach and Michel Goossens:
34486 The LaTeX Companion Second Edition.
34489 Addison-Wesley, 2004
34492 \begin_layout Bibliography
34493 \begin_inset CommandInset bibitem
34494 LatexCommand bibitem
34499 Helmut Kopka and Patrick W.
34502 A Guide to LaTeX Fourth Edition.
34505 Addison-Wesley, 2003
34508 \begin_layout Bibliography
34509 \begin_inset CommandInset bibitem
34510 LatexCommand bibitem
34517 LaTeX: A Document Preparation System.
34520 Addison-Wesley, second edition, 1994
34523 \begin_layout Bibliography
34524 \begin_inset CommandInset bibitem
34525 LatexCommand bibitem
34530 Documentation of the LaTeX-package
34533 \begin_inset CommandInset href
34536 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
34546 \begin_layout Plain Layout
34547 LaTeX-packages ! booktabs
34555 \begin_layout Bibliography
34556 \begin_inset CommandInset bibitem
34557 LatexCommand bibitem
34562 Documentation of the LaTeX-package
34565 \begin_inset CommandInset href
34568 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
34578 \begin_layout Plain Layout
34579 LaTeX-packages ! caption
34587 \begin_layout Bibliography
34588 \begin_inset CommandInset bibitem
34589 LatexCommand bibitem
34594 Documentation of the LaTeX-package
34597 \begin_inset CommandInset href
34600 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
34610 \begin_layout Plain Layout
34611 LaTeX-packages ! endfloat
34619 \begin_layout Bibliography
34620 \begin_inset CommandInset bibitem
34621 LatexCommand bibitem
34626 Documentation of the LaTeX-package
34629 \begin_inset CommandInset href
34632 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
34642 \begin_layout Plain Layout
34643 LaTeX-packages ! wrapfig
34647 \begin_layout Plain Layout
34664 \begin_layout Bibliography
34665 \begin_inset CommandInset bibitem
34666 LatexCommand bibitem
34671 Documentation of the LaTeX-package
34674 \begin_inset CommandInset href
34677 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
34687 \begin_layout Plain Layout
34688 LaTeX-packages ! footmisc
34696 \begin_layout Bibliography
34697 \begin_inset CommandInset bibitem
34698 LatexCommand bibitem
34703 Documentation of the LaTeX-package
34706 \begin_inset CommandInset href
34709 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
34719 \begin_layout Plain Layout
34720 LaTeX-packages ! hyperref
34728 \begin_layout Bibliography
34729 \begin_inset CommandInset bibitem
34730 LatexCommand bibitem
34735 Documentation of the LaTeX-package
34738 \begin_inset CommandInset href
34741 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
34751 \begin_layout Plain Layout
34752 LaTeX-packages ! hyperref
34760 \begin_layout Bibliography
34761 \begin_inset CommandInset bibitem
34762 LatexCommand bibitem
34767 Documentation of the LaTeX-package
34770 \begin_inset CommandInset href
34773 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
34783 \begin_layout Plain Layout
34784 LaTeX-packages ! KOMA-Script
34792 \begin_layout Bibliography
34793 \begin_inset CommandInset bibitem
34794 LatexCommand bibitem
34799 Documentation of the LaTeX-package
34802 \begin_inset CommandInset href
34805 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
34815 \begin_layout Plain Layout
34816 LaTeX-packages ! listings
34824 \begin_layout Bibliography
34825 \begin_inset CommandInset bibitem
34826 LatexCommand bibitem
34831 Documentation of the LaTeX-package
34834 \begin_inset CommandInset href
34837 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
34847 \begin_layout Plain Layout
34848 LaTeX-packages ! marginnote
34856 \begin_layout Bibliography
34857 \begin_inset CommandInset bibitem
34858 LatexCommand bibitem
34863 Web page of the LaTeX-package
34866 \begin_inset CommandInset href
34869 target "http://tug.org/PSTricks/"
34879 \begin_layout Plain Layout
34880 LaTeX-packages ! PSTricks
34888 \begin_layout Bibliography
34889 \begin_inset CommandInset bibitem
34890 LatexCommand bibitem
34895 Documentation of the LaTeX-package
34898 \begin_inset CommandInset href
34901 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
34911 \begin_layout Plain Layout
34912 LaTeX-packages ! sidecap
34920 \begin_layout Bibliography
34921 \begin_inset CommandInset bibitem
34922 LatexCommand bibitem
34927 Documentation of the LaTeX-package
34930 \begin_inset CommandInset href
34933 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
34943 \begin_layout Plain Layout
34944 LaTeX-packages ! prettyref
34952 \begin_layout Bibliography
34953 \begin_inset CommandInset bibitem
34954 LatexCommand bibitem
34960 \begin_inset CommandInset href
34963 target "http://wiki.lyx.org/LyX/NewInLyX16"
34967 about new features in
34974 \begin_layout Standard
34975 \begin_inset CommandInset index_print
34976 LatexCommand printindex
34983 \begin_layout Standard
34984 \begin_inset FloatList figure
34991 \begin_layout Standard
34992 \begin_inset FloatList table
34999 \begin_layout Standard
35000 \begin_inset FloatList algorithm