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
486 in the appearing context menu.
487 The program can be set for every image format in the file format settings
488 in LyX's preferences.
491 \begin_layout Description
496 Alternatively to the usage of scaling units it is possible to set image
497 coordinates to adjust the height and width of the image in the output.
498 The coordinates can also be calculated automatically by pressing the button
528 will only print the image region within the given coordinates.
529 Normally you don't need to take care about image coordinates and can ignore
533 \begin_layout Description
550 In this tab you can modify the appearance of the image within LyX and LaTeX
551 experts can specify additional LaTeX options.
552 \begin_inset Newline newline
563 makes the image appear in the output only as a frame with the size of the
565 \begin_inset Newline newline
584 option only affects zipped EPS-graphics, e.
585 \begin_inset space \thinspace{}
589 \begin_inset space \space{}
597 When the option is used the images will not be unzipped on export, since
598 LaTeX can handle them as they are.
599 \begin_inset Newline newline
602 Zipped EPS-graphics are useful to save disk space when you choose PostScript
603 as output format, see appendix
608 \begin_inset CommandInset ref
610 reference "sec:PostScript"
615 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
617 \begin_inset Newline newline
625 \begin_inset Newline newline
630 zgrep %%Bounding x.eps.gz > x.eps.bb
633 \begin_inset Newline newline
636 The second command creates the bounding box file
637 \begin_inset Quotes eld
641 \begin_inset Quotes erd
644 that is needed by LaTeX for zipped graphics.
645 \begin_inset Newline newline
660 allows you define or join an image settings group.
664 \begin_layout Plain Layout
665 Figures ! Settings grouping
670 Images within such a group share their settings, so adjusting one image
671 of the group automatically also adjusts all other images of the group in
673 So you can for example change the size for a bunch of images without the
674 need to manually change each of them.
675 Joining an existing group can also be done using the context menu of the
676 image by checking the name of the desired group.
679 \begin_layout Standard
680 \begin_inset VSpace bigskip
686 \begin_layout Standard
687 This is an example image in EPS format
691 \begin_layout Plain Layout
692 Image formats are explained in section
697 \begin_inset CommandInset ref
699 reference "sec:Image-Formats"
708 within a separate, horizontally centered paragraph:
711 \begin_layout Standard
713 \begin_inset Graphics
714 filename clipart/mobius.eps
724 \begin_layout Standard
725 This is the same image like the one above but in draft mode:
728 \begin_layout Standard
730 \begin_inset Graphics
731 filename clipart/mobius.eps
742 \begin_layout Standard
743 \begin_inset Newpage newpage
749 \begin_layout Section
751 \begin_inset CommandInset label
753 name "sec:Figure-Floats"
761 \begin_layout Plain Layout
771 \begin_layout Plain Layout
780 \begin_layout Standard
781 For general explanations about floats, have a look at section
786 \begin_inset CommandInset ref
788 reference "sec:FloatIntroduction"
795 \begin_layout Standard
797 \begin_inset Graphics
798 filename ../images/float-insert_figure.png
806 Insert\SpecialChar \menuseparator
807 Float\SpecialChar \menuseparator
810 inserts a float with a caption that has the label
811 \begin_inset Quotes eld
819 \begin_inset Quotes erd
822 (# is the actual number).
823 You can insert the image above the caption, like in Figure
828 \begin_inset CommandInset ref
830 reference "fig:kill-plat"
834 or below the caption, like in Figure
839 \begin_inset CommandInset ref
841 reference "fig:escher"
846 More about the caption placement is described in section
851 \begin_inset CommandInset ref
853 reference "sec:Caption-Placement"
860 \begin_layout Standard
861 \begin_inset Float figure
866 \begin_layout Plain Layout
868 \begin_inset Graphics
869 filename clipart/platypus.eps
879 \begin_layout Plain Layout
882 \begin_layout Plain Layout
883 \begin_inset CommandInset label
889 A severely distorted platypus in a float.
902 \begin_layout Standard
903 \begin_inset Float figure
908 \begin_layout Plain Layout
911 \begin_layout Plain Layout
912 \begin_inset CommandInset label
927 \begin_layout Plain Layout
929 \begin_inset Graphics
930 filename clipart/escher-lsd.eps
945 \begin_layout Standard
949 \begin_layout Plain Layout
950 References ! to Figures
960 \begin_inset CommandInset ref
962 reference "fig:kill-plat"
967 \begin_inset CommandInset ref
969 reference "fig:escher"
973 are examples of referenced figures.
974 Figures can be referenced in the text by referencing their label.
975 To do this insert a label in the caption using the menu
977 Insert\SpecialChar \menuseparator
980 or the toolbar button
981 \begin_inset Graphics
982 filename ../images/label-insert.png
989 You can now refer to the label using the menu
991 Insert\SpecialChar \menuseparator
998 or the toolbar button
999 \begin_inset Graphics
1000 filename ../images/dialog-show-new-inset_ref.png
1007 It is important to use references to floats, rather than using vague references
1009 \begin_inset Quotes eld
1013 \begin_inset Quotes erd
1016 , because as LaTeX will reposition the floats in the final document, it
1018 \begin_inset Quotes eld
1022 \begin_inset Quotes erd
1026 \begin_inset Newline newline
1029 Referencing is explained in detail in section
1030 \begin_inset space ~
1034 \begin_inset CommandInset ref
1036 reference "sec:Referencing-Floats"
1043 \begin_layout Standard
1044 Normally only one image is inserted to a figure float, but sometimes you
1045 might want to use two images with separate subcaptions.
1046 This can be done by inserting image floats into existing image floats.
1047 Note that only the main caption of the float is added to the List of Figures.
1049 \begin_inset space ~
1053 \begin_inset CommandInset ref
1055 reference "fig:Two-distorted-images"
1059 is an example of a figure float with two images set side by side.
1060 You can also set the images one below the other.
1062 \begin_inset space ~
1066 \begin_inset CommandInset ref
1068 reference "fig:Undefinable-structure"
1073 \begin_inset CommandInset ref
1075 reference "fig:A-Platypus"
1082 \begin_layout Standard
1083 \begin_inset Float figure
1088 \begin_layout Plain Layout
1089 \begin_inset space \hfill{}
1093 \begin_inset Float figure
1098 \begin_layout Plain Layout
1099 \begin_inset Caption
1101 \begin_layout Plain Layout
1102 \begin_inset CommandInset label
1104 name "fig:Undefinable-structure"
1108 Undefinable structure.
1116 \begin_layout Plain Layout
1117 \begin_inset Graphics
1118 filename clipart/escher-lsd.eps
1131 \begin_inset space \hfill{}
1135 \begin_inset Float figure
1140 \begin_layout Plain Layout
1141 \begin_inset Caption
1143 \begin_layout Plain Layout
1144 \begin_inset CommandInset label
1146 name "fig:A-Platypus"
1158 \begin_layout Plain Layout
1159 \begin_inset Graphics
1160 filename clipart/platypus.eps
1173 \begin_inset space \hfill{}
1179 \begin_layout Plain Layout
1180 \begin_inset Caption
1182 \begin_layout Plain Layout
1183 \begin_inset CommandInset label
1185 name "fig:Two-distorted-images"
1189 Two distorted images.
1190 Both images are in the image settings group named
1191 \begin_inset Quotes eld
1195 \begin_inset Quotes erd
1211 \begin_layout Standard
1212 \begin_inset Newpage newpage
1218 \begin_layout Section
1220 \begin_inset CommandInset label
1222 name "sec:Image-Formats"
1230 \begin_layout Plain Layout
1240 \begin_layout Plain Layout
1241 Figures ! Image Formats
1249 \begin_layout Standard
1250 You can insert images in any known file format.
1251 But as explained in appendix
1252 \begin_inset space ~
1256 \begin_inset CommandInset ref
1258 reference "cha:Output-File-Formats"
1262 , every output document format allows only a few image formats.
1263 LyX uses therefore the program
1267 in the background to convert the images to the right format.
1268 To increase your work flow by avoiding these conversions in the background,
1269 you can use only the image formats that can directly be embedded in the
1271 The output file formats are explained in appendix
1272 \begin_inset space ~
1276 \begin_inset CommandInset ref
1278 reference "cha:Output-File-Formats"
1285 \begin_layout Standard
1286 Similar to fonts there are two types of image formats:
1289 \begin_layout Description
1291 \begin_inset space ~
1294 images consist of pixel values, often in a compressed form.
1295 They are therefore not fully scalable and look pixeled in large zooms.
1296 Well-known bitmap image formats are
1297 \begin_inset Quotes eld
1300 Graphics Interchange Format
1301 \begin_inset Quotes erd
1304 (GIF, file extension
1305 \begin_inset Quotes eld
1313 \begin_inset Quotes erd
1320 \begin_layout Plain Layout
1325 \begin_layout Plain Layout
1336 \begin_layout Plain Layout
1349 \begin_inset Quotes eld
1352 Portable Network Graphics
1353 \begin_inset Quotes erd
1356 (PNG, file extension
1357 \begin_inset Quotes eld
1365 \begin_inset Quotes erd
1372 \begin_layout Plain Layout
1377 \begin_layout Plain Layout
1388 \begin_layout Plain Layout
1401 \begin_inset Quotes eld
1404 Joint Photographic Experts Group
1405 \begin_inset Quotes erd
1408 (JPG, file extension
1409 \begin_inset Quotes eld
1417 \begin_inset Quotes erd
1421 \begin_inset Quotes eld
1429 \begin_inset Quotes erd
1436 \begin_layout Plain Layout
1441 \begin_layout Plain Layout
1452 \begin_layout Plain Layout
1467 \begin_layout Description
1469 \begin_inset space ~
1472 images consist of vectors and can therefore be scaled to any size without
1474 The scaling ability is necessary if you want to create presentations, because
1475 presentations are always scaled by the video projector.
1476 Scaling is also useful for online documents to let the user zoom into diagrams.
1477 \begin_inset Newline newline
1480 Well-known scalable image formats are
1481 \begin_inset Quotes eld
1484 Scalable Vector Graphics
1485 \begin_inset Quotes erd
1488 (SVG, file extension
1489 \begin_inset Quotes eld
1497 \begin_inset Quotes erd
1504 \begin_layout Plain Layout
1509 \begin_layout Plain Layout
1520 \begin_layout Plain Layout
1533 \begin_inset Quotes eld
1536 Encapsulated PostScript
1537 \begin_inset Quotes erd
1540 (EPS, file extension
1541 \begin_inset Quotes eld
1549 \begin_inset Quotes erd
1556 \begin_layout Plain Layout
1561 \begin_layout Plain Layout
1572 \begin_layout Plain Layout
1585 \begin_inset Quotes eld
1588 Portable Document Format
1589 \begin_inset Quotes erd
1592 (PDF, file extension
1593 \begin_inset Quotes eld
1601 \begin_inset Quotes erd
1608 \begin_layout Plain Layout
1615 \begin_inset Quotes eld
1619 \begin_inset Quotes erd
1622 (WMF, file extension
1623 \begin_inset Quotes eld
1631 \begin_inset Quotes erd
1638 \begin_layout Plain Layout
1643 \begin_layout Plain Layout
1654 \begin_layout Plain Layout
1668 \begin_inset Quotes eld
1672 \begin_inset Quotes erd
1675 , because you can convert any bitmap image to a PDF or EPS-image and the
1676 result will still be a bitmap image.
1677 In this cases only a header with the image properties is added to the original
1682 \begin_layout Plain Layout
1683 In the case of PDF, the original image is additionally compressed.
1689 The PDF-files generated by
1693 are for example bitmap images.
1696 \begin_layout Standard
1697 Normally it is not possible to convert a bitmap image into a scalable one,
1699 Only the image formats PDF and EPS can directly be embedded to PDF and
1700 PostScript output files, respectively.
1701 SVG and WMF-images are recalculated to bitmaps when the output file is
1702 generated because there is currently no adequate WMF/SVG
1703 \begin_inset Formula $\to$
1706 PDF/EPS converter available.
1709 \begin_layout Chapter
1714 \begin_layout Plain Layout
1723 \begin_layout Section
1728 \begin_layout Plain Layout
1729 Table ! Introduction
1737 \begin_layout Standard
1738 You can insert a table using either the toolbar button
1739 \begin_inset Graphics
1740 filename ../images/tabular-insert.png
1748 Insert\SpecialChar \menuseparator
1752 The toolbar button offers you a graphical selection: Move the mouse to
1753 set the column/row number of the table that should be created and then
1754 press a mouse button.
1755 When you use the menu to create a table, a dialog will appear, asking you
1756 for the number of rows and columns.
1757 \begin_inset Newline newline
1760 The default table has lines around any cell and the first row appears separated
1761 from the rest of the table.
1762 This separation occurs due to a double line: The cells of the first row
1763 have a line below them and the cells of the second row have a line above
1765 Here is an example table:
1768 \begin_layout Standard
1770 \begin_inset Tabular
1771 <lyxtabular version="3" rows="4" columns="4">
1773 <column alignment="center" valignment="top" width="0">
1774 <column alignment="center" valignment="top" width="0">
1775 <column alignment="center" valignment="top" width="0">
1776 <column alignment="center" valignment="top" width="0">
1778 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1781 \begin_layout Plain Layout
1787 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1790 \begin_layout Plain Layout
1805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1808 \begin_layout Plain Layout
1814 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1817 \begin_layout Plain Layout
1825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1828 \begin_layout Plain Layout
1843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1846 \begin_layout Plain Layout
1852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1855 \begin_layout Plain Layout
1861 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1864 \begin_layout Plain Layout
1872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1875 \begin_layout Plain Layout
1890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1893 \begin_layout Plain Layout
1899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1902 \begin_layout Plain Layout
1908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1911 \begin_layout Plain Layout
1919 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1922 \begin_layout Plain Layout
1937 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1940 \begin_layout Plain Layout
1946 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1949 \begin_layout Plain Layout
1955 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1958 \begin_layout Plain Layout
1972 \begin_layout Section
1977 \begin_layout Plain Layout
1986 \begin_layout Standard
1987 You can alter a table by clicking on it with the right mouse button, which
1988 brings up the table dialog.
1989 Here you can adjust the settings of that cell and row/column respectively
1990 where the cursor is currently placed.
1991 Most of the dialog options also work on selections.
1992 This means if you select more cells, columns or rows, the action is done
1993 for the whole selection.
1994 Note that there is a difference between selecting the
1998 of the cell, and the cell itself.
1999 You can alter tables with the following tabs of the table dialog:
2002 \begin_layout Description
2006 \begin_inset space ~
2011 Here you can set the horizontal alignment and the width of the current
2013 When you have set a width you can also adjust the vertical alignment of
2015 A given width will allow the cell to have line breaks and multiple paragraphs
2016 of text, see section
2017 \begin_inset space ~
2021 \begin_inset CommandInset ref
2023 reference "sub:Multiple-Lines-in"
2028 If you set no width, the column is as wide as their widest cell content
2030 \begin_inset Newline newline
2033 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2035 \begin_inset space ~
2039 \begin_inset CommandInset ref
2041 reference "sub:Multicolumns"
2046 \begin_inset Newline newline
2049 The rotate check boxes rotates the current cell, a selection, or the whole
2050 table counter-clockwise by 90°.
2051 The rotation is not shown within LyX, only in the output.
2052 \begin_inset Newline newline
2056 \begin_inset Note Greyedout
2059 \begin_layout Plain Layout
2064 Not all DVI-viewers are able to display rotations.
2070 \begin_inset Newline newline
2073 It is also possible to enter a LaTeX-argument which is needed for special
2074 table formattings, see section
2075 \begin_inset space ~
2079 \begin_inset CommandInset ref
2081 reference "sub:Multicolumn-Calculations"
2086 \begin_inset CommandInset ref
2088 reference "sec:Colored-Tables"
2095 \begin_layout Description
2100 In this tab you can add and delete border lines for the current row/column.
2101 \begin_inset Newline newline
2104 Using the style option
2108 will convert the table to a formal table as described in section
2109 \begin_inset space ~
2113 \begin_inset CommandInset ref
2115 reference "sec:Formal-Tables"
2120 \begin_inset Newline newline
2123 You can also add here space to table rows as decribed in section
2124 \begin_inset space ~
2128 \begin_inset CommandInset ref
2130 reference "sub:Row-Spacing"
2137 \begin_layout Description
2142 This tab is to make a table a so called
2143 \begin_inset Quotes eld
2151 \begin_inset Quotes erd
2154 that can run over several pages.
2156 \begin_inset space ~
2160 \begin_inset CommandInset ref
2162 reference "sec:Longtables"
2167 \begin_inset CommandInset ref
2169 reference "sec:Special-Longtable-Issues"
2173 describe the longtable features in detail.
2176 \begin_layout Standard
2177 When the table 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 this also affects the current row and column
2309 \begin_layout Labeling
2310 \labelwidthstring 00.00.0000
2311 \begin_inset Graphics
2312 filename ../images/tabular-feature_unset-all-lines.png
2317 deletes all lines of the current or selected cells - if the current cell
2318 no multicolumn this also affects the current row and column
2321 \begin_layout Labeling
2322 \labelwidthstring 00.00.0000
2323 \begin_inset Graphics
2324 filename ../images/tabular-feature_m-align-left.png
2329 left-aligns the content of the current cell / column
2332 \begin_layout Labeling
2333 \labelwidthstring 00.00.0000
2334 \begin_inset Graphics
2335 filename ../images/tabular-feature_m-align-center.png
2340 centers the content of the current cell / column horizontally
2343 \begin_layout Labeling
2344 \labelwidthstring 00.00.0000
2345 \begin_inset Graphics
2346 filename ../images/tabular-feature_m-align-right.png
2351 right-aligns the content of the current cell / column
2354 \begin_layout Labeling
2355 \labelwidthstring 00.00.0000
2356 \begin_inset Graphics
2357 filename ../images/tabular-feature_m-valign-top.png
2362 aligns the content of the current cell vertically to the top
2365 \begin_layout Labeling
2366 \labelwidthstring 00.00.0000
2367 \begin_inset Graphics
2368 filename ../images/tabular-feature_m-valign-middle.png
2373 centers the content of the current cell vertically
2376 \begin_layout Labeling
2377 \labelwidthstring 00.00.0000
2378 \begin_inset Graphics
2379 filename ../images/tabular-feature_m-valign-bottom.png
2384 aligns the content of the current cell vertically to the bottom
2387 \begin_layout Labeling
2388 \labelwidthstring 00.00.0000
2389 \begin_inset Graphics
2390 filename ../images/tabular-feature_set-rotate-cell.png
2395 rotates the current cell or selection counter-clockwise by 90°
2398 \begin_layout Labeling
2399 \labelwidthstring 00.00.0000
2400 \begin_inset Graphics
2401 filename ../images/tabular-feature_set-rotate-tabular.png
2406 rotates the whole table counter-clockwise by 90°
2409 \begin_layout Labeling
2410 \labelwidthstring 00.00.0000
2411 \begin_inset Graphics
2412 filename ../images/tabular-feature_multicolumn.png
2417 sets the current cell or selection as a multicolumn
2420 \begin_layout Standard
2421 \begin_inset Note Greyedout
2424 \begin_layout Plain Layout
2429 For the output the vertical alignment of the first cell in a row is used
2430 for all following cells in the row.
2438 \begin_layout Section
2443 \begin_layout Plain Layout
2452 \begin_layout Standard
2453 Additionally to the table dialog and toolbar, the menu
2455 Edit\SpecialChar \menuseparator
2458 allows you to add and delete border lines for the current row/column and
2459 to set the current selection as multicolumn.
2460 The menu is only available when the cursor is inside a table.
2463 \begin_layout Section
2465 \begin_inset CommandInset label
2467 name "sec:Table-Floats"
2475 \begin_layout Plain Layout
2485 \begin_layout Plain Layout
2494 \begin_layout Standard
2495 For general explanations about floats, have a look at section
2496 \begin_inset space ~
2500 \begin_inset CommandInset ref
2502 reference "sec:FloatIntroduction"
2509 \begin_layout Standard
2510 \begin_inset Float table
2516 \begin_layout Plain Layout
2517 \begin_inset Caption
2519 \begin_layout Plain Layout
2520 \begin_inset CommandInset label
2522 name "tab:a table float"
2534 \begin_layout Plain Layout
2536 \begin_inset Tabular
2537 <lyxtabular version="3" rows="3" columns="3">
2539 <column alignment="center" valignment="top" width="0pt">
2540 <column alignment="center" valignment="top" width="0pt">
2541 <column alignment="center" valignment="top" width="0pt">
2543 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2546 \begin_layout Plain Layout
2561 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2564 \begin_layout Plain Layout
2579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2582 \begin_layout Plain Layout
2599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2602 \begin_layout Plain Layout
2617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2620 \begin_layout Plain Layout
2635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2638 \begin_layout Plain Layout
2655 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2658 \begin_layout Plain Layout
2668 \begin_inset Formula $\int x^{2}dx$
2676 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2679 \begin_layout Plain Layout
2689 \begin_inset Formula $\left[\begin{array}{cc}
2691 c & d\end{array}\right]$
2699 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2702 \begin_layout Plain Layout
2712 \begin_inset Formula $1+1=2$
2733 \begin_layout Standard
2734 Table floats can be inserted using the menu
2736 Insert\SpecialChar \menuseparator
2737 Float\SpecialChar \menuseparator
2740 or the toolbar button
2741 \begin_inset Graphics
2742 filename ../images/float-insert_table.png
2751 \begin_layout Standard
2752 The float appears as a collapsible box with a caption that has the label
2754 \begin_inset Quotes eld
2758 \begin_inset space ~
2762 \begin_inset Quotes erd
2765 (# is the actual table number).
2766 You can insert tables to the float above or below the caption.
2769 \begin_layout Standard
2771 \begin_inset space ~
2775 \begin_inset CommandInset ref
2777 reference "tab:a table float"
2781 is an example table within a table float.
2784 \begin_layout Standard
2785 Having the caption above the table is the common rule that is unfortunately
2786 not supported in LaTeX's standard classes.
2787 That means if you are using the document classes
2803 there will be no space between the caption and the table.
2804 To insert the needed space, add the following option to the load command
2805 of the LaTeX-package
2813 \begin_layout Plain Layout
2814 LaTeX-packages ! caption
2819 in your document preamble
2823 \begin_layout Plain Layout
2824 For more information have a look at section
2825 \begin_inset space ~
2829 \begin_inset CommandInset ref
2831 reference "sec:Caption-Placement"
2843 \begin_layout Standard
2849 \begin_layout Standard
2854 , which is described in section
2855 \begin_inset space ~
2859 \begin_inset CommandInset ref
2861 reference "sec:Caption-Formatting"
2865 , is used to adjust the caption format.
2868 \begin_layout Standard
2872 \begin_layout Plain Layout
2873 References ! to Tables
2878 Tables can be cross-referenced in the text by referencing their label.
2879 To do this insert a label in the caption using the menu
2881 Insert\SpecialChar \menuseparator
2884 or the toolbar button
2885 \begin_inset Graphics
2886 filename ../images/label-insert.png
2893 You can now refer to the label using the menu
2895 Insert\SpecialChar \menuseparator
2897 \begin_inset space ~
2902 or the toolbar button
2903 \begin_inset Graphics
2904 filename ../images/dialog-show-new-inset_ref.png
2911 \begin_inset Newline newline
2914 Referencing is explained in detail in section
2915 \begin_inset space ~
2919 \begin_inset CommandInset ref
2921 reference "sec:Referencing-Floats"
2928 \begin_layout Section
2930 \begin_inset CommandInset label
2932 name "sec:Longtables"
2940 \begin_layout Plain Layout
2950 \begin_layout Plain Layout
2959 \begin_layout Standard
2960 If the table is too long to fit on one page, you can use the option
2963 \begin_inset space ~
2967 \begin_inset space ~
2976 of the table dialog to split the table automatically over more pages.
2977 Doing this enables the following options:
2980 \begin_layout Description
2981 Header: The current row is defined to be a header row that appears on all
2982 pages of the longtable; except for the first page, if
2985 \begin_inset space ~
2991 This therefore called the main header.
2994 \begin_layout Description
2996 \begin_inset space ~
2999 header: The current row is defined to be a header row that appears on the
3000 first page of the longtable.
3003 \begin_layout Description
3004 Footer: The current row is defined to be a footer row that appears on all
3005 pages of the longtable; except for the last page, if
3008 \begin_inset space ~
3016 \begin_layout Description
3018 \begin_inset space ~
3021 footer: The current row is defined to be a footer row that appear on the
3022 last page of the longtable.
3025 \begin_layout Description
3026 Caption: The current row contains the table caption.
3027 The row is reset as single column and a caption is inserted.
3028 More about longtable captions is explained in sec.
3029 \begin_inset space \thinspace{}
3033 \begin_inset CommandInset ref
3035 reference "sub:Longtable-Captions"
3042 \begin_layout Standard
3043 You can also specify a row where the table is split.
3044 See the following longtable to see how it works:
3047 \begin_layout Standard
3049 \begin_inset Tabular
3050 <lyxtabular version="3" rows="69" columns="3">
3051 <features islongtable="true">
3052 <column alignment="left" valignment="top" width="0cm">
3053 <column alignment="left" valignment="top" width="0pt">
3054 <column alignment="center" valignment="top" width="0pt">
3055 <row endfirsthead="true">
3056 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3059 \begin_layout Plain Layout
3062 Example Phone List (ignore the names)
3067 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3070 \begin_layout Plain Layout
3076 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3079 \begin_layout Plain Layout
3086 <row endfirsthead="true">
3087 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3090 \begin_layout Plain Layout
3098 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3101 \begin_layout Plain Layout
3107 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3110 \begin_layout Plain Layout
3119 <row endhead="true">
3120 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3123 \begin_layout Plain Layout
3131 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3134 \begin_layout Plain Layout
3140 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3143 \begin_layout Plain Layout
3150 <row endhead="true">
3151 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3154 \begin_layout Plain Layout
3162 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3165 \begin_layout Plain Layout
3171 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3174 \begin_layout Plain Layout
3183 <row endfoot="true">
3184 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3187 \begin_layout Plain Layout
3188 continued on next page
3193 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3196 \begin_layout Plain Layout
3202 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3205 \begin_layout Plain Layout
3213 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3216 \begin_layout Plain Layout
3224 <cell alignment="center" valignment="top" usebox="none">
3227 \begin_layout Plain Layout
3233 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3236 \begin_layout Plain Layout
3244 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3247 \begin_layout Plain Layout
3255 <cell alignment="center" valignment="top" usebox="none">
3258 \begin_layout Plain Layout
3264 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3267 \begin_layout Plain Layout
3275 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3278 \begin_layout Plain Layout
3286 <cell alignment="center" valignment="top" usebox="none">
3289 \begin_layout Plain Layout
3295 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3298 \begin_layout Plain Layout
3306 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3309 \begin_layout Plain Layout
3317 <cell alignment="center" valignment="top" usebox="none">
3320 \begin_layout Plain Layout
3326 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3329 \begin_layout Plain Layout
3337 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3340 \begin_layout Plain Layout
3348 <cell alignment="center" valignment="top" usebox="none">
3351 \begin_layout Plain Layout
3357 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3360 \begin_layout Plain Layout
3368 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3371 \begin_layout Plain Layout
3379 <cell alignment="center" valignment="top" usebox="none">
3382 \begin_layout Plain Layout
3388 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3391 \begin_layout Plain Layout
3399 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3402 \begin_layout Plain Layout
3410 <cell alignment="center" valignment="top" usebox="none">
3413 \begin_layout Plain Layout
3419 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3422 \begin_layout Plain Layout
3430 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3433 \begin_layout Plain Layout
3441 <cell alignment="center" valignment="top" usebox="none">
3444 \begin_layout Plain Layout
3450 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3453 \begin_layout Plain Layout
3461 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3464 \begin_layout Plain Layout
3472 <cell alignment="center" valignment="top" usebox="none">
3475 \begin_layout Plain Layout
3481 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3484 \begin_layout Plain Layout
3492 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3495 \begin_layout Plain Layout
3503 <cell alignment="center" valignment="top" usebox="none">
3506 \begin_layout Plain Layout
3512 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3515 \begin_layout Plain Layout
3523 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3526 \begin_layout Plain Layout
3534 <cell alignment="center" valignment="top" usebox="none">
3537 \begin_layout Plain Layout
3543 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3546 \begin_layout Plain Layout
3554 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3557 \begin_layout Plain Layout
3565 <cell alignment="center" valignment="top" usebox="none">
3568 \begin_layout Plain Layout
3574 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3577 \begin_layout Plain Layout
3585 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3588 \begin_layout Plain Layout
3596 <cell alignment="center" valignment="top" usebox="none">
3599 \begin_layout Plain Layout
3605 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3608 \begin_layout Plain Layout
3616 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3619 \begin_layout Plain Layout
3627 <cell alignment="center" valignment="top" usebox="none">
3630 \begin_layout Plain Layout
3636 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3639 \begin_layout Plain Layout
3647 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3650 \begin_layout Plain Layout
3658 <cell alignment="center" valignment="top" usebox="none">
3661 \begin_layout Plain Layout
3667 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3670 \begin_layout Plain Layout
3678 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3681 \begin_layout Plain Layout
3689 <cell alignment="center" valignment="top" usebox="none">
3692 \begin_layout Plain Layout
3698 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3701 \begin_layout Plain Layout
3709 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3712 \begin_layout Plain Layout
3720 <cell alignment="center" valignment="top" usebox="none">
3723 \begin_layout Plain Layout
3729 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3732 \begin_layout Plain Layout
3740 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3743 \begin_layout Plain Layout
3751 <cell alignment="center" valignment="top" usebox="none">
3754 \begin_layout Plain Layout
3760 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3763 \begin_layout Plain Layout
3771 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3774 \begin_layout Plain Layout
3782 <cell alignment="center" valignment="top" usebox="none">
3785 \begin_layout Plain Layout
3791 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3794 \begin_layout Plain Layout
3802 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3805 \begin_layout Plain Layout
3813 <cell alignment="center" valignment="top" usebox="none">
3816 \begin_layout Plain Layout
3822 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3825 \begin_layout Plain Layout
3833 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3836 \begin_layout Plain Layout
3844 <cell alignment="center" valignment="top" usebox="none">
3847 \begin_layout Plain Layout
3853 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3856 \begin_layout Plain Layout
3864 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3867 \begin_layout Plain Layout
3875 <cell alignment="center" valignment="top" usebox="none">
3878 \begin_layout Plain Layout
3884 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3887 \begin_layout Plain Layout
3895 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3898 \begin_layout Plain Layout
3906 <cell alignment="center" valignment="top" usebox="none">
3909 \begin_layout Plain Layout
3915 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3918 \begin_layout Plain Layout
3926 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3929 \begin_layout Plain Layout
3937 <cell alignment="center" valignment="top" usebox="none">
3940 \begin_layout Plain Layout
3946 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3949 \begin_layout Plain Layout
3957 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3960 \begin_layout Plain Layout
3968 <cell alignment="center" valignment="top" usebox="none">
3971 \begin_layout Plain Layout
3977 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3980 \begin_layout Plain Layout
3988 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3991 \begin_layout Plain Layout
3999 <cell alignment="center" valignment="top" usebox="none">
4002 \begin_layout Plain Layout
4008 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4011 \begin_layout Plain Layout
4019 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4022 \begin_layout Plain Layout
4030 <cell alignment="center" valignment="top" usebox="none">
4033 \begin_layout Plain Layout
4039 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4042 \begin_layout Plain Layout
4050 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4053 \begin_layout Plain Layout
4061 <cell alignment="center" valignment="top" usebox="none">
4064 \begin_layout Plain Layout
4070 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4073 \begin_layout Plain Layout
4081 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4084 \begin_layout Plain Layout
4092 <cell alignment="center" valignment="top" usebox="none">
4095 \begin_layout Plain Layout
4101 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4104 \begin_layout Plain Layout
4112 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4115 \begin_layout Plain Layout
4123 <cell alignment="center" valignment="top" usebox="none">
4126 \begin_layout Plain Layout
4132 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4135 \begin_layout Plain Layout
4143 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4146 \begin_layout Plain Layout
4154 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4157 \begin_layout Plain Layout
4163 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4166 \begin_layout Plain Layout
4174 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4177 \begin_layout Plain Layout
4183 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4186 \begin_layout Plain Layout
4192 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4195 \begin_layout Plain Layout
4203 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4206 \begin_layout Plain Layout
4214 <cell alignment="center" valignment="top" usebox="none">
4217 \begin_layout Plain Layout
4223 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4226 \begin_layout Plain Layout
4234 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4237 \begin_layout Plain Layout
4245 <cell alignment="center" valignment="top" usebox="none">
4248 \begin_layout Plain Layout
4254 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4257 \begin_layout Plain Layout
4265 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4268 \begin_layout Plain Layout
4276 <cell alignment="center" valignment="top" usebox="none">
4279 \begin_layout Plain Layout
4285 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4288 \begin_layout Plain Layout
4296 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4299 \begin_layout Plain Layout
4307 <cell alignment="center" valignment="top" usebox="none">
4310 \begin_layout Plain Layout
4316 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4319 \begin_layout Plain Layout
4327 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4330 \begin_layout Plain Layout
4338 <cell alignment="center" valignment="top" usebox="none">
4341 \begin_layout Plain Layout
4347 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4350 \begin_layout Plain Layout
4358 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4361 \begin_layout Plain Layout
4369 <cell alignment="center" valignment="top" usebox="none">
4372 \begin_layout Plain Layout
4378 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4381 \begin_layout Plain Layout
4389 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4392 \begin_layout Plain Layout
4400 <cell alignment="center" valignment="top" usebox="none">
4403 \begin_layout Plain Layout
4409 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4412 \begin_layout Plain Layout
4420 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4423 \begin_layout Plain Layout
4431 <cell alignment="center" valignment="top" usebox="none">
4434 \begin_layout Plain Layout
4440 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4443 \begin_layout Plain Layout
4451 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4454 \begin_layout Plain Layout
4462 <cell alignment="center" valignment="top" usebox="none">
4465 \begin_layout Plain Layout
4471 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4474 \begin_layout Plain Layout
4482 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4485 \begin_layout Plain Layout
4493 <cell alignment="center" valignment="top" usebox="none">
4496 \begin_layout Plain Layout
4502 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4505 \begin_layout Plain Layout
4513 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4516 \begin_layout Plain Layout
4524 <cell alignment="center" valignment="top" usebox="none">
4527 \begin_layout Plain Layout
4533 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4536 \begin_layout Plain Layout
4544 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4547 \begin_layout Plain Layout
4555 <cell alignment="center" valignment="top" usebox="none">
4558 \begin_layout Plain Layout
4564 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4567 \begin_layout Plain Layout
4575 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4578 \begin_layout Plain Layout
4586 <cell alignment="center" valignment="top" usebox="none">
4589 \begin_layout Plain Layout
4595 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4598 \begin_layout Plain Layout
4606 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4609 \begin_layout Plain Layout
4617 <cell alignment="center" valignment="top" usebox="none">
4620 \begin_layout Plain Layout
4626 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4629 \begin_layout Plain Layout
4637 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4640 \begin_layout Plain Layout
4648 <cell alignment="center" valignment="top" usebox="none">
4651 \begin_layout Plain Layout
4657 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4660 \begin_layout Plain Layout
4668 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4671 \begin_layout Plain Layout
4679 <cell alignment="center" valignment="top" usebox="none">
4682 \begin_layout Plain Layout
4688 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4691 \begin_layout Plain Layout
4699 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4702 \begin_layout Plain Layout
4710 <cell alignment="center" valignment="top" usebox="none">
4713 \begin_layout Plain Layout
4719 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4722 \begin_layout Plain Layout
4730 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4733 \begin_layout Plain Layout
4741 <cell alignment="center" valignment="top" usebox="none">
4744 \begin_layout Plain Layout
4750 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4753 \begin_layout Plain Layout
4761 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4764 \begin_layout Plain Layout
4772 <cell alignment="center" valignment="top" usebox="none">
4775 \begin_layout Plain Layout
4781 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4784 \begin_layout Plain Layout
4792 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4795 \begin_layout Plain Layout
4803 <cell alignment="center" valignment="top" usebox="none">
4806 \begin_layout Plain Layout
4812 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4815 \begin_layout Plain Layout
4823 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4826 \begin_layout Plain Layout
4834 <cell alignment="center" valignment="top" usebox="none">
4837 \begin_layout Plain Layout
4843 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4846 \begin_layout Plain Layout
4854 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4857 \begin_layout Plain Layout
4865 <cell alignment="center" valignment="top" usebox="none">
4868 \begin_layout Plain Layout
4874 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4877 \begin_layout Plain Layout
4885 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4888 \begin_layout Plain Layout
4896 <cell alignment="center" valignment="top" usebox="none">
4899 \begin_layout Plain Layout
4905 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4908 \begin_layout Plain Layout
4916 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4919 \begin_layout Plain Layout
4927 <cell alignment="center" valignment="top" usebox="none">
4930 \begin_layout Plain Layout
4936 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4939 \begin_layout Plain Layout
4947 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4950 \begin_layout Plain Layout
4958 <cell alignment="center" valignment="top" usebox="none">
4961 \begin_layout Plain Layout
4967 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4970 \begin_layout Plain Layout
4978 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4981 \begin_layout Plain Layout
4989 <cell alignment="center" valignment="top" usebox="none">
4992 \begin_layout Plain Layout
4998 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5001 \begin_layout Plain Layout
5009 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5012 \begin_layout Plain Layout
5020 <cell alignment="center" valignment="top" usebox="none">
5023 \begin_layout Plain Layout
5029 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5032 \begin_layout Plain Layout
5040 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5043 \begin_layout Plain Layout
5051 <cell alignment="center" valignment="top" usebox="none">
5054 \begin_layout Plain Layout
5060 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5063 \begin_layout Plain Layout
5071 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5074 \begin_layout Plain Layout
5082 <cell alignment="center" valignment="top" usebox="none">
5085 \begin_layout Plain Layout
5091 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5094 \begin_layout Plain Layout
5102 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5105 \begin_layout Plain Layout
5113 <cell alignment="center" valignment="top" usebox="none">
5116 \begin_layout Plain Layout
5122 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5125 \begin_layout Plain Layout
5133 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5136 \begin_layout Plain Layout
5144 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5147 \begin_layout Plain Layout
5153 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5156 \begin_layout Plain Layout
5163 <row endlastfoot="true">
5164 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5167 \begin_layout Plain Layout
5173 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5176 \begin_layout Plain Layout
5182 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5185 \begin_layout Plain Layout
5200 \begin_layout Plain Layout
5204 addtocounter{table}{-1}
5210 \begin_inset Note Note
5213 \begin_layout Plain Layout
5214 See the first greyed-out note in section
5215 \begin_inset space ~
5219 \begin_inset CommandInset ref
5221 reference "sub:Longtable-Captions"
5225 for an explanation of this command.
5233 \begin_layout Subsection
5234 Footnotes in Longtables
5235 \begin_inset CommandInset label
5237 name "sub:Footnotes-in-Longtables"
5245 \begin_layout Plain Layout
5246 Longtables ! Footnotes
5254 \begin_layout Standard
5255 Footnotes can be inserted to every longtable cell.
5256 They appear at the bottom of the page where the table cell with the footnote
5259 \begin_inset space ~
5263 \begin_inset CommandInset ref
5265 reference "tab:DiffCaptions"
5269 has for example a footnote.
5272 \begin_layout Subsection
5277 \begin_layout Plain Layout
5278 Longtables ! Alignment
5286 \begin_layout Standard
5287 Longtables are by default centered.
5288 In contrary to the alignment of the table columns and row, the table alignment
5289 can currently not be changed in the table dialog.
5290 To change the alignment of longtables you have to change the value of the
5303 by inserting this line as TeX-Code before the corresponding longtable:
5306 \begin_layout Standard
5316 \begin_layout Standard
5317 Where the value can have any of the units listed in Table
5318 \begin_inset space ~
5322 \begin_inset CommandInset ref
5324 reference "tab:Units"
5335 controls the horizontal distance from the left page border to the longtable,
5342 the distance from the right side.
5343 The default value for both lengths is
5349 , which is in this case the same as an horizontal fill in LyX.
5352 \begin_layout Standard
5353 The following longtable was left-aligned by setting
5360 \begin_inset space \thinspace{}
5367 \begin_layout Plain Layout
5381 \begin_layout Standard
5382 \begin_inset Tabular
5383 <lyxtabular version="3" rows="5" columns="5">
5384 <features islongtable="true">
5385 <column alignment="center" valignment="top" width="0">
5386 <column alignment="center" valignment="top" width="0">
5387 <column alignment="center" valignment="top" width="0">
5388 <column alignment="center" valignment="top" width="0">
5389 <column alignment="center" valignment="top" width="0">
5391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5394 \begin_layout Plain Layout
5400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5403 \begin_layout Plain Layout
5409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5412 \begin_layout Plain Layout
5418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5421 \begin_layout Plain Layout
5427 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5430 \begin_layout Plain Layout
5438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5441 \begin_layout Plain Layout
5447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5450 \begin_layout Plain Layout
5456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5459 \begin_layout Plain Layout
5465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5468 \begin_layout Plain Layout
5474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5477 \begin_layout Plain Layout
5485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5488 \begin_layout Plain Layout
5494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5497 \begin_layout Plain Layout
5503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5506 \begin_layout Plain Layout
5512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5515 \begin_layout Plain Layout
5521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5524 \begin_layout Plain Layout
5532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5535 \begin_layout Plain Layout
5541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5544 \begin_layout Plain Layout
5550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5553 \begin_layout Plain Layout
5559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5562 \begin_layout Plain Layout
5568 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5571 \begin_layout Plain Layout
5579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5582 \begin_layout Plain Layout
5588 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5591 \begin_layout Plain Layout
5597 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5600 \begin_layout Plain Layout
5606 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5609 \begin_layout Plain Layout
5615 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5618 \begin_layout Plain Layout
5633 \begin_layout Plain Layout
5650 \begin_layout Plain Layout
5654 addtocounter{table}{-1}
5660 \begin_inset Note Note
5663 \begin_layout Plain Layout
5664 See the first greyed-out note in section
5665 \begin_inset space ~
5669 \begin_inset CommandInset ref
5671 reference "sub:Longtable-Captions"
5675 for an explanation of this command.
5683 \begin_layout Subsection
5688 \begin_layout Plain Layout
5689 Longtables ! Captions
5695 \begin_inset CommandInset label
5697 name "sub:Longtable-Captions"
5704 \begin_layout Standard
5705 A longtable cannot be put into a table float because floats can only be
5707 But the caption environment of floats can also be used for longtables when
5708 you use for a table row the longtable option
5712 as described in sec.
5713 \begin_inset space \thinspace{}
5717 \begin_inset CommandInset ref
5719 reference "sec:Longtables"
5724 Only one table row can contain the caption.
5727 \begin_layout Standard
5728 Here is a short longtable to see how it works:
5731 \begin_layout Standard
5732 \begin_inset Tabular
5733 <lyxtabular version="3" rows="6" columns="5">
5734 <features islongtable="true">
5735 <column alignment="center" valignment="top" width="0">
5736 <column alignment="center" valignment="top" width="0">
5737 <column alignment="center" valignment="top" width="0">
5738 <column alignment="center" valignment="top" width="0">
5739 <column alignment="center" valignment="top" width="0">
5740 <row caption="true">
5741 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5744 \begin_layout Plain Layout
5745 \begin_inset Caption
5747 \begin_layout Plain Layout
5748 Longtable with caption
5752 \begin_layout Plain Layout
5768 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5771 \begin_layout Plain Layout
5777 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5780 \begin_layout Plain Layout
5786 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5789 \begin_layout Plain Layout
5795 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5798 \begin_layout Plain Layout
5806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5809 \begin_layout Plain Layout
5815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5818 \begin_layout Plain Layout
5824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5827 \begin_layout Plain Layout
5833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5836 \begin_layout Plain Layout
5842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5845 \begin_layout Plain Layout
5853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5856 \begin_layout Plain Layout
5862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5865 \begin_layout Plain Layout
5871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5874 \begin_layout Plain Layout
5880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5883 \begin_layout Plain Layout
5889 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5892 \begin_layout Plain Layout
5900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5903 \begin_layout Plain Layout
5909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5912 \begin_layout Plain Layout
5918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5921 \begin_layout Plain Layout
5927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5930 \begin_layout Plain Layout
5936 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5939 \begin_layout Plain Layout
5947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5950 \begin_layout Plain Layout
5956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5959 \begin_layout Plain Layout
5965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5968 \begin_layout Plain Layout
5974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5977 \begin_layout Plain Layout
5983 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5986 \begin_layout Plain Layout
5994 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5997 \begin_layout Plain Layout
6003 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6006 \begin_layout Plain Layout
6012 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6015 \begin_layout Plain Layout
6021 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6024 \begin_layout Plain Layout
6030 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6033 \begin_layout Plain Layout
6047 \begin_layout Standard
6048 \begin_inset VSpace medskip
6052 \begin_inset Note Greyedout
6055 \begin_layout Plain Layout
6059 \begin_inset space ~
6064 The table number is increased for every longtable, also if you didn't set
6066 For this reason you could have the case that e.
6067 \begin_inset space \thinspace{}
6071 \begin_inset space \space{}
6075 \begin_inset space ~
6078 2.4 follows on Table
6079 \begin_inset space ~
6082 2.1 in the list of tables if there are two longtables without captions.
6083 To avoid this you can add the following command in TeX-Code behind every
6084 longtable without a caption:
6087 \begin_layout Plain Layout
6092 addtocounter{table}{-1}
6095 \begin_layout Plain Layout
6096 This is not needed when none of your longtables have a caption and you add
6097 the following code to the document preamble:
6100 \begin_layout Plain Layout
6110 \begin_inset Newline newline
6121 addtocounter{table}{-1}}
6129 \begin_layout Standard
6130 \begin_inset Note Greyedout
6133 \begin_layout Plain Layout
6137 \begin_inset space ~
6150 \begin_layout Plain Layout
6151 LaTeX-packages ! hyperref
6164 dialog to link cross-references, the link to a longtable caption will always
6165 point to the beginning of the document.
6173 \begin_layout Subsubsection
6174 References to Longtables
6178 \begin_layout Plain Layout
6179 Longtables ! References
6187 \begin_layout Standard
6188 \begin_inset Tabular
6189 <lyxtabular version="3" rows="6" columns="5">
6190 <features islongtable="true">
6191 <column alignment="center" valignment="top" width="0">
6192 <column alignment="center" valignment="top" width="0">
6193 <column alignment="center" valignment="top" width="0">
6194 <column alignment="center" valignment="top" width="0">
6195 <column alignment="center" valignment="top" width="0">
6196 <row caption="true">
6197 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6200 \begin_layout Plain Layout
6201 \begin_inset Caption
6203 \begin_layout Plain Layout
6204 Referenced longtable
6205 \begin_inset CommandInset label
6207 name "tab:RefExample"
6221 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6224 \begin_layout Plain Layout
6230 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6233 \begin_layout Plain Layout
6239 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6242 \begin_layout Plain Layout
6248 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6251 \begin_layout Plain Layout
6259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6262 \begin_layout Plain Layout
6268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6271 \begin_layout Plain Layout
6277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6280 \begin_layout Plain Layout
6286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6289 \begin_layout Plain Layout
6295 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6298 \begin_layout Plain Layout
6306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6309 \begin_layout Plain Layout
6315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6318 \begin_layout Plain Layout
6324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6327 \begin_layout Plain Layout
6333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6336 \begin_layout Plain Layout
6342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6345 \begin_layout Plain Layout
6353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6356 \begin_layout Plain Layout
6362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6365 \begin_layout Plain Layout
6371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6374 \begin_layout Plain Layout
6380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6383 \begin_layout Plain Layout
6389 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6392 \begin_layout Plain Layout
6400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6403 \begin_layout Plain Layout
6409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6412 \begin_layout Plain Layout
6418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6421 \begin_layout Plain Layout
6427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6430 \begin_layout Plain Layout
6436 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6439 \begin_layout Plain Layout
6447 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6450 \begin_layout Plain Layout
6456 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6459 \begin_layout Plain Layout
6465 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6468 \begin_layout Plain Layout
6474 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6477 \begin_layout Plain Layout
6483 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6486 \begin_layout Plain Layout
6500 \begin_layout Standard
6501 To reference a longtable, insert a label into the caption.
6504 \begin_layout Standard
6505 This is a reference to Table
6506 \begin_inset space ~
6510 \begin_inset CommandInset ref
6512 reference "tab:RefExample"
6519 \begin_layout Standard
6520 The caption layout can be set together with all other captions of your document
6521 using the LaTeX-package
6529 \begin_layout Plain Layout
6530 LaTeX-packages ! caption
6536 \begin_inset space ~
6540 \begin_inset CommandInset ref
6542 reference "sec:Caption-Formatting"
6549 \begin_layout Subsubsection
6554 \begin_layout Plain Layout
6555 Longtables ! Caption Width
6563 \begin_layout Standard
6564 The maximal width of of caption lines is defined by the length
6571 Its default value is 4
6572 \begin_inset space \thinspace{}
6576 To change it add the following command to your document preamble or as
6577 TeX-Code into your document before the longtable that should be affected
6580 \begin_layout Standard
6590 \begin_layout Standard
6591 where the width could have one of the units listed in appendix
6592 \begin_inset space ~
6596 \begin_inset CommandInset ref
6598 reference "cha:Units-available-in"
6605 \begin_layout Standard
6606 The following tables show the difference:
6609 \begin_layout Standard
6610 \begin_inset Tabular
6611 <lyxtabular version="3" rows="6" columns="5">
6612 <features islongtable="true">
6613 <column alignment="center" valignment="top" width="0">
6614 <column alignment="center" valignment="top" width="0">
6615 <column alignment="center" valignment="top" width="0">
6616 <column alignment="center" valignment="top" width="0">
6617 <column alignment="center" valignment="top" width="0">
6618 <row caption="true">
6619 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6622 \begin_layout Plain Layout
6623 \begin_inset Caption
6625 \begin_layout Plain Layout
6626 long full title with default width long full title with default width long
6627 full title with default width
6631 \begin_layout Plain Layout
6632 caption with default width
6647 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6650 \begin_layout Plain Layout
6656 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6659 \begin_layout Plain Layout
6665 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6668 \begin_layout Plain Layout
6674 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6677 \begin_layout Plain Layout
6685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6688 \begin_layout Plain Layout
6694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6697 \begin_layout Plain Layout
6703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6706 \begin_layout Plain Layout
6712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6715 \begin_layout Plain Layout
6721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6724 \begin_layout Plain Layout
6732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6735 \begin_layout Plain Layout
6741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6744 \begin_layout Plain Layout
6750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6753 \begin_layout Plain Layout
6759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6762 \begin_layout Plain Layout
6768 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6771 \begin_layout Plain Layout
6779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6782 \begin_layout Plain Layout
6788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6791 \begin_layout Plain Layout
6797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6800 \begin_layout Plain Layout
6806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6809 \begin_layout Plain Layout
6815 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6818 \begin_layout Plain Layout
6826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6829 \begin_layout Plain Layout
6835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6838 \begin_layout Plain Layout
6844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6847 \begin_layout Plain Layout
6853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6856 \begin_layout Plain Layout
6862 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6865 \begin_layout Plain Layout
6873 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6876 \begin_layout Plain Layout
6882 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6885 \begin_layout Plain Layout
6891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6894 \begin_layout Plain Layout
6900 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6903 \begin_layout Plain Layout
6909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6912 \begin_layout Plain Layout
6926 \begin_layout Standard
6930 \begin_layout Plain Layout
6942 \begin_inset Tabular
6943 <lyxtabular version="3" rows="6" columns="5">
6944 <features islongtable="true">
6945 <column alignment="center" valignment="top" width="0">
6946 <column alignment="center" valignment="top" width="0">
6947 <column alignment="center" valignment="top" width="0">
6948 <column alignment="center" valignment="top" width="0">
6949 <column alignment="center" valignment="top" width="0">
6950 <row caption="true">
6951 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6954 \begin_layout Plain Layout
6955 \begin_inset Caption
6957 \begin_layout Plain Layout
6958 long full title with width set to 5
6959 \begin_inset space \thinspace{}
6962 cm long full title with width set to 5
6963 \begin_inset space \thinspace{}
6966 cm long full title with width set to 5
6967 \begin_inset space \thinspace{}
6974 \begin_layout Plain Layout
6976 \begin_inset space \thinspace{}
6980 \begin_inset space \thinspace{}
6984 \begin_inset space \thinspace{}
7002 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7005 \begin_layout Plain Layout
7011 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7014 \begin_layout Plain Layout
7020 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7023 \begin_layout Plain Layout
7029 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7032 \begin_layout Plain Layout
7040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7043 \begin_layout Plain Layout
7049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7052 \begin_layout Plain Layout
7058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7061 \begin_layout Plain Layout
7067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7070 \begin_layout Plain Layout
7076 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7079 \begin_layout Plain Layout
7087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7090 \begin_layout Plain Layout
7096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7099 \begin_layout Plain Layout
7105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7108 \begin_layout Plain Layout
7114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7117 \begin_layout Plain Layout
7123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7126 \begin_layout Plain Layout
7134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7137 \begin_layout Plain Layout
7143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7146 \begin_layout Plain Layout
7152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7155 \begin_layout Plain Layout
7161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7164 \begin_layout Plain Layout
7170 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7173 \begin_layout Plain Layout
7181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7184 \begin_layout Plain Layout
7190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7193 \begin_layout Plain Layout
7199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7202 \begin_layout Plain Layout
7208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7211 \begin_layout Plain Layout
7217 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7220 \begin_layout Plain Layout
7228 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7231 \begin_layout Plain Layout
7237 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7240 \begin_layout Plain Layout
7246 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7249 \begin_layout Plain Layout
7255 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7258 \begin_layout Plain Layout
7264 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7267 \begin_layout Plain Layout
7281 \begin_layout Standard
7285 \begin_layout Plain Layout
7299 \begin_layout Standard
7300 \begin_inset Note Greyedout
7303 \begin_layout Plain Layout
7308 When the LaTeX-package
7316 \begin_layout Plain Layout
7317 LaTeX-packages ! caption
7322 is used, as in this document, the full page width is used for the caption
7323 when you use the default value of 4
7324 \begin_inset space \thinspace{}
7334 To get in this case exactly a 4
7335 \begin_inset space \thinspace{}
7338 in wide caption, you can either use a value slightly different from 4.0
7339 \begin_inset space \thinspace{}
7343 \begin_inset space \thinspace{}
7347 \begin_inset space \space{}
7351 \begin_inset space \thinspace{}
7354 in, or the LaTeX-command
7358 captionsetup{width=value}
7360 that is provided by the
7372 \begin_layout Subsubsection
7373 Different Captions for Table Pages
7377 \begin_layout Plain Layout
7378 Longtables ! Different Captions for Pages
7386 \begin_layout Standard
7387 When the table captions for the following pages should differ from the one
7388 of the first table page, insert a caption with the TeX code command
7391 \begin_layout Standard
7396 caption*{caption text}
7403 \begin_layout Standard
7404 in a dummy caption row that is marked as header.
7406 \begin_inset space ~
7410 \begin_inset CommandInset ref
7412 reference "tab:DiffCaptions"
7416 is an example for a longtable with different heading where the second caption
7417 doesn't include the table number.
7420 \begin_layout Standard
7422 \begin_inset Tabular
7423 <lyxtabular version="3" rows="59" columns="3">
7424 <features islongtable="true" lastFootEmpty="true">
7425 <column alignment="left" valignment="top" width="0cm">
7426 <column alignment="left" valignment="top" width="0pt">
7427 <column alignment="center" valignment="top" width="0pt">
7428 <row caption="true">
7429 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7432 \begin_layout Plain Layout
7433 \begin_inset Caption
7435 \begin_layout Plain Layout
7437 \begin_inset CommandInset label
7439 name "tab:DiffCaptions"
7447 \begin_layout Plain Layout
7463 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7466 \begin_layout Plain Layout
7472 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7475 \begin_layout Plain Layout
7482 <row endfirsthead="true">
7483 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7486 \begin_layout Plain Layout
7489 Example Phone List (ignore the names)
7494 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7497 \begin_layout Plain Layout
7503 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7506 \begin_layout Plain Layout
7513 <row endfirsthead="true">
7514 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7517 \begin_layout Plain Layout
7525 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7528 \begin_layout Plain Layout
7534 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7537 \begin_layout Plain Layout
7546 <row endhead="true">
7547 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7550 \begin_layout Plain Layout
7554 \begin_layout Plain Layout
7558 caption*{Continued Example Phone List}
7572 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7575 \begin_layout Plain Layout
7581 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7584 \begin_layout Plain Layout
7591 <row endhead="true">
7592 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7595 \begin_layout Plain Layout
7603 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7606 \begin_layout Plain Layout
7612 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7615 \begin_layout Plain Layout
7622 <row endhead="true">
7623 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7626 \begin_layout Plain Layout
7634 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7637 \begin_layout Plain Layout
7643 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7646 \begin_layout Plain Layout
7655 <row endfoot="true">
7656 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7659 \begin_layout Plain Layout
7660 continued on next page
7665 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7668 \begin_layout Plain Layout
7674 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7677 \begin_layout Plain Layout
7685 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7688 \begin_layout Plain Layout
7696 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7699 \begin_layout Plain Layout
7705 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7708 \begin_layout Plain Layout
7716 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7719 \begin_layout Plain Layout
7727 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7730 \begin_layout Plain Layout
7736 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7739 \begin_layout Plain Layout
7747 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7750 \begin_layout Plain Layout
7758 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7761 \begin_layout Plain Layout
7767 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7770 \begin_layout Plain Layout
7778 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7781 \begin_layout Plain Layout
7789 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7792 \begin_layout Plain Layout
7798 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7801 \begin_layout Plain Layout
7809 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7812 \begin_layout Plain Layout
7820 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7823 \begin_layout Plain Layout
7829 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7832 \begin_layout Plain Layout
7840 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7843 \begin_layout Plain Layout
7851 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7854 \begin_layout Plain Layout
7860 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7863 \begin_layout Plain Layout
7871 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7874 \begin_layout Plain Layout
7882 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7885 \begin_layout Plain Layout
7891 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7894 \begin_layout Plain Layout
7902 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7905 \begin_layout Plain Layout
7913 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7916 \begin_layout Plain Layout
7922 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7925 \begin_layout Plain Layout
7933 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7936 \begin_layout Plain Layout
7944 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7947 \begin_layout Plain Layout
7953 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7956 \begin_layout Plain Layout
7964 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7967 \begin_layout Plain Layout
7975 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7978 \begin_layout Plain Layout
7984 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7987 \begin_layout Plain Layout
7995 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7998 \begin_layout Plain Layout
8006 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8009 \begin_layout Plain Layout
8015 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8018 \begin_layout Plain Layout
8026 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8029 \begin_layout Plain Layout
8037 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8040 \begin_layout Plain Layout
8046 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8049 \begin_layout Plain Layout
8057 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8060 \begin_layout Plain Layout
8068 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8071 \begin_layout Plain Layout
8077 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8080 \begin_layout Plain Layout
8088 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8091 \begin_layout Plain Layout
8099 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8102 \begin_layout Plain Layout
8108 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8111 \begin_layout Plain Layout
8119 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8122 \begin_layout Plain Layout
8131 \begin_layout Plain Layout
8142 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8145 \begin_layout Plain Layout
8151 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8154 \begin_layout Plain Layout
8162 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8165 \begin_layout Plain Layout
8173 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8176 \begin_layout Plain Layout
8182 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8185 \begin_layout Plain Layout
8193 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8196 \begin_layout Plain Layout
8204 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8207 \begin_layout Plain Layout
8213 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8216 \begin_layout Plain Layout
8224 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8227 \begin_layout Plain Layout
8235 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8238 \begin_layout Plain Layout
8244 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8247 \begin_layout Plain Layout
8255 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8258 \begin_layout Plain Layout
8266 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8269 \begin_layout Plain Layout
8275 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8278 \begin_layout Plain Layout
8286 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8289 \begin_layout Plain Layout
8297 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8300 \begin_layout Plain Layout
8306 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8309 \begin_layout Plain Layout
8317 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8320 \begin_layout Plain Layout
8328 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8331 \begin_layout Plain Layout
8337 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8340 \begin_layout Plain Layout
8348 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8351 \begin_layout Plain Layout
8359 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8362 \begin_layout Plain Layout
8368 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8371 \begin_layout Plain Layout
8379 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8382 \begin_layout Plain Layout
8390 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8393 \begin_layout Plain Layout
8399 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8402 \begin_layout Plain Layout
8410 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8413 \begin_layout Plain Layout
8421 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8424 \begin_layout Plain Layout
8430 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8433 \begin_layout Plain Layout
8441 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8444 \begin_layout Plain Layout
8452 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8455 \begin_layout Plain Layout
8461 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8464 \begin_layout Plain Layout
8472 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8475 \begin_layout Plain Layout
8483 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8486 \begin_layout Plain Layout
8492 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8495 \begin_layout Plain Layout
8503 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8506 \begin_layout Plain Layout
8514 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8517 \begin_layout Plain Layout
8523 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8526 \begin_layout Plain Layout
8534 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8537 \begin_layout Plain Layout
8545 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8548 \begin_layout Plain Layout
8554 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8557 \begin_layout Plain Layout
8565 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8568 \begin_layout Plain Layout
8576 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8579 \begin_layout Plain Layout
8585 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8588 \begin_layout Plain Layout
8596 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8599 \begin_layout Plain Layout
8607 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8610 \begin_layout Plain Layout
8616 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8619 \begin_layout Plain Layout
8627 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8630 \begin_layout Plain Layout
8638 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8641 \begin_layout Plain Layout
8647 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8650 \begin_layout Plain Layout
8658 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8661 \begin_layout Plain Layout
8667 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8670 \begin_layout Plain Layout
8676 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8679 \begin_layout Plain Layout
8687 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8690 \begin_layout Plain Layout
8698 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8701 \begin_layout Plain Layout
8707 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8710 \begin_layout Plain Layout
8718 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8721 \begin_layout Plain Layout
8729 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8732 \begin_layout Plain Layout
8738 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8741 \begin_layout Plain Layout
8749 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8752 \begin_layout Plain Layout
8760 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8763 \begin_layout Plain Layout
8769 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8772 \begin_layout Plain Layout
8780 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8783 \begin_layout Plain Layout
8791 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8794 \begin_layout Plain Layout
8800 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8803 \begin_layout Plain Layout
8811 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8814 \begin_layout Plain Layout
8822 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8825 \begin_layout Plain Layout
8831 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8834 \begin_layout Plain Layout
8842 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8845 \begin_layout Plain Layout
8853 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8856 \begin_layout Plain Layout
8862 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8865 \begin_layout Plain Layout
8873 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8876 \begin_layout Plain Layout
8884 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8887 \begin_layout Plain Layout
8893 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8896 \begin_layout Plain Layout
8904 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8907 \begin_layout Plain Layout
8915 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8918 \begin_layout Plain Layout
8924 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8927 \begin_layout Plain Layout
8935 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8938 \begin_layout Plain Layout
8946 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8949 \begin_layout Plain Layout
8955 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8958 \begin_layout Plain Layout
8966 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8969 \begin_layout Plain Layout
8977 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8980 \begin_layout Plain Layout
8986 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8989 \begin_layout Plain Layout
8997 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9000 \begin_layout Plain Layout
9008 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9011 \begin_layout Plain Layout
9017 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9020 \begin_layout Plain Layout
9028 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9031 \begin_layout Plain Layout
9039 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9042 \begin_layout Plain Layout
9048 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9051 \begin_layout Plain Layout
9059 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9062 \begin_layout Plain Layout
9070 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9073 \begin_layout Plain Layout
9079 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9082 \begin_layout Plain Layout
9090 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9093 \begin_layout Plain Layout
9101 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9104 \begin_layout Plain Layout
9110 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9113 \begin_layout Plain Layout
9121 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9124 \begin_layout Plain Layout
9132 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9135 \begin_layout Plain Layout
9141 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9144 \begin_layout Plain Layout
9152 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9155 \begin_layout Plain Layout
9163 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9166 \begin_layout Plain Layout
9172 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9175 \begin_layout Plain Layout
9183 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9186 \begin_layout Plain Layout
9194 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9197 \begin_layout Plain Layout
9203 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9206 \begin_layout Plain Layout
9214 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9217 \begin_layout Plain Layout
9225 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9228 \begin_layout Plain Layout
9234 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9237 \begin_layout Plain Layout
9245 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9248 \begin_layout Plain Layout
9256 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9259 \begin_layout Plain Layout
9265 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9268 \begin_layout Plain Layout
9276 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9279 \begin_layout Plain Layout
9287 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9290 \begin_layout Plain Layout
9296 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9299 \begin_layout Plain Layout
9313 \begin_layout Section
9314 Special Longtable Issues
9315 \begin_inset CommandInset label
9317 name "sec:Special-Longtable-Issues"
9324 \begin_layout Subsection
9325 Longtable Calculation
9329 \begin_layout Plain Layout
9330 Longtables ! Calculation
9338 \begin_layout Standard
9339 LaTeX calculates the height of table pages and their page breaks using so
9341 Chunks are pieces of the tables that are at once in LaTeX's memory.
9342 The default value is historically set to only 20 table rows.
9343 If you are using longtables with many pages this may slow down the creation
9345 You can safely increase the chunk size to values of 100-1000 by adding
9346 this command line to your document preamble:
9349 \begin_layout Standard
9354 setcounter{LTchunksize}{100}
9357 \begin_layout Subsection
9358 Floats and Longtables
9362 \begin_layout Plain Layout
9371 \begin_layout Standard
9372 There might be problems when a float appears on the same page where a longtable
9374 To avoid such situation, add the command
9380 as TeX-Code before your longtable.
9383 \begin_layout Subsection
9388 \begin_layout Plain Layout
9389 Longtables ! Forced Page Breaks
9397 \begin_layout Standard
9398 By default tables are only broken between rows.
9399 If you have a cell with multiples lines and want to have a page break within
9400 the cell, insert the new line command
9401 \begin_inset Quotes eld
9413 \begin_inset Quotes erd
9416 as TeX-Code at this point of the cell where it can be broken.
9425 command you have to insert in TeX-Code so many
9426 \begin_inset Quotes eld
9434 \begin_inset Quotes erd
9437 characters like the number of the following table columns.
9442 is the character to separate table cells.
9443 Write in TeX-Code after each
9447 the content of the corresponding following cell and delete the content
9449 \begin_inset Newline newline
9460 command, insert so many
9464 characters like the number of table columns before the current column.
9466 \begin_inset space ~
9470 \begin_inset CommandInset ref
9472 reference "tab:ForcedPagebreak"
9476 the cell that should be broken is in the second column followed by another
9478 Therefore the following command was inserted in the cell as TeX-Code behind
9480 \begin_inset Quotes eld
9488 \begin_inset Quotes erd
9494 \begin_layout Standard
9504 \begin_inset Newline newline
9510 \begin_layout Standard
9512 \begin_inset Quotes eld
9516 \begin_inset Quotes erd
9519 in the third columns of the row was deleted.
9526 is only needed when a page break should definitively occur at this position,
9527 otherwise it is only a possibility to break.
9528 If your footer row of the longtable has for a certain reason no upper line
9529 but you would have a horizontal line where the cell is broken, use this
9533 \begin_layout Standard
9541 \begin_inset Newline newline
9549 \begin_layout Standard
9550 When the cell to be broken is in the last column, the command
9553 \begin_layout Standard
9563 \begin_layout Standard
9564 must be inserted as TeX-Code at the beginning of the cell.
9565 This assures that the part of the cell that will be displayed on the new
9566 page appears with the full width.
9569 \begin_layout Standard
9571 \begin_inset Tabular
9572 <lyxtabular version="3" rows="38" columns="3">
9573 <features islongtable="true" lastFootEmpty="true">
9574 <column alignment="left" valignment="top" width="0cm">
9575 <column alignment="left" valignment="top" width="3cm">
9576 <column alignment="center" valignment="top" width="0pt">
9577 <row caption="true">
9578 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9581 \begin_layout Plain Layout
9582 \begin_inset Caption
9584 \begin_layout Plain Layout
9585 Table with forced page break in table cell
9586 \begin_inset CommandInset label
9588 name "tab:ForcedPagebreak"
9596 \begin_layout Plain Layout
9597 Table with forced page break in table cell
9612 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9615 \begin_layout Plain Layout
9621 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9624 \begin_layout Plain Layout
9631 <row endfirsthead="true">
9632 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9635 \begin_layout Plain Layout
9638 Example Phone List (ignore the names)
9643 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9646 \begin_layout Plain Layout
9652 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9655 \begin_layout Plain Layout
9662 <row endfirsthead="true">
9663 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9666 \begin_layout Plain Layout
9674 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9677 \begin_layout Plain Layout
9683 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9686 \begin_layout Plain Layout
9695 <row endhead="true">
9696 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9699 \begin_layout Plain Layout
9703 \begin_layout Plain Layout
9707 caption*{Continued Example Phone List}
9721 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9724 \begin_layout Plain Layout
9730 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9733 \begin_layout Plain Layout
9740 <row endhead="true">
9741 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9744 \begin_layout Plain Layout
9752 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9755 \begin_layout Plain Layout
9761 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9764 \begin_layout Plain Layout
9771 <row endhead="true">
9772 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9775 \begin_layout Plain Layout
9783 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9786 \begin_layout Plain Layout
9792 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9795 \begin_layout Plain Layout
9804 <row endfoot="true">
9805 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9808 \begin_layout Plain Layout
9809 continued on next page
9814 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9817 \begin_layout Plain Layout
9823 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9826 \begin_layout Plain Layout
9834 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9837 \begin_layout Plain Layout
9845 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9848 \begin_layout Plain Layout
9854 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9857 \begin_layout Plain Layout
9865 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9868 \begin_layout Plain Layout
9876 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9879 \begin_layout Plain Layout
9885 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9888 \begin_layout Plain Layout
9896 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9899 \begin_layout Plain Layout
9907 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9910 \begin_layout Plain Layout
9916 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9919 \begin_layout Plain Layout
9927 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9930 \begin_layout Plain Layout
9938 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9941 \begin_layout Plain Layout
9947 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9950 \begin_layout Plain Layout
9958 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9961 \begin_layout Plain Layout
9969 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9972 \begin_layout Plain Layout
9978 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9981 \begin_layout Plain Layout
9989 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9992 \begin_layout Plain Layout
10000 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10003 \begin_layout Plain Layout
10009 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10012 \begin_layout Plain Layout
10020 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10023 \begin_layout Plain Layout
10031 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10034 \begin_layout Plain Layout
10040 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10043 \begin_layout Plain Layout
10051 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10054 \begin_layout Plain Layout
10062 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10065 \begin_layout Plain Layout
10071 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10074 \begin_layout Plain Layout
10082 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10085 \begin_layout Plain Layout
10093 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10096 \begin_layout Plain Layout
10102 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10105 \begin_layout Plain Layout
10113 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10116 \begin_layout Plain Layout
10124 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10127 \begin_layout Plain Layout
10133 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10136 \begin_layout Plain Layout
10144 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10147 \begin_layout Plain Layout
10155 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10158 \begin_layout Plain Layout
10164 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10167 \begin_layout Plain Layout
10175 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10178 \begin_layout Plain Layout
10186 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10189 \begin_layout Plain Layout
10195 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10198 \begin_layout Plain Layout
10206 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10209 \begin_layout Plain Layout
10217 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10220 \begin_layout Plain Layout
10226 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10229 \begin_layout Plain Layout
10237 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10240 \begin_layout Plain Layout
10248 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10251 \begin_layout Plain Layout
10257 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10260 \begin_layout Plain Layout
10268 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10271 \begin_layout Plain Layout
10279 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10282 \begin_layout Plain Layout
10288 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10291 \begin_layout Plain Layout
10299 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10302 \begin_layout Plain Layout
10310 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10313 \begin_layout Plain Layout
10319 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10322 \begin_layout Plain Layout
10330 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10333 \begin_layout Plain Layout
10341 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10344 \begin_layout Plain Layout
10350 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10353 \begin_layout Plain Layout
10361 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10364 \begin_layout Plain Layout
10372 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10375 \begin_layout Plain Layout
10381 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10384 \begin_layout Plain Layout
10392 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10395 \begin_layout Plain Layout
10403 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10406 \begin_layout Plain Layout
10412 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10415 \begin_layout Plain Layout
10423 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10426 \begin_layout Plain Layout
10434 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10437 \begin_layout Plain Layout
10443 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10446 \begin_layout Plain Layout
10454 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10457 \begin_layout Plain Layout
10465 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10468 \begin_layout Plain Layout
10474 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10477 \begin_layout Plain Layout
10485 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10488 \begin_layout Plain Layout
10496 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10499 \begin_layout Plain Layout
10505 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10508 \begin_layout Plain Layout
10516 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10519 \begin_layout Plain Layout
10527 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10530 \begin_layout Plain Layout
10532 Fürst von Montecompatri, 11.
10533 Fürst von Sulmona und Vivaro, 10.
10534 Fürst von Rossano, 5.
10535 Herzog von Canemorte, 11.
10536 Herzog von Palombara, 5.
10537 Herzog von Castelchiodato,
10541 \begin_layout Plain Layout
10552 \begin_layout Plain Layout
10560 Herzog von Poggionativo, 11.
10561 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10562 Graf von Valinfreda, 11.
10563 Baron von Cropalati, 11.
10564 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10569 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10572 \begin_layout Plain Layout
10580 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10583 \begin_layout Plain Layout
10591 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10594 \begin_layout Plain Layout
10600 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10603 \begin_layout Plain Layout
10611 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10614 \begin_layout Plain Layout
10622 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10625 \begin_layout Plain Layout
10631 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10634 \begin_layout Plain Layout
10642 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10645 \begin_layout Plain Layout
10653 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10656 \begin_layout Plain Layout
10662 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10665 \begin_layout Plain Layout
10673 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10676 \begin_layout Plain Layout
10684 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10687 \begin_layout Plain Layout
10693 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10696 \begin_layout Plain Layout
10704 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10707 \begin_layout Plain Layout
10715 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10718 \begin_layout Plain Layout
10724 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10727 \begin_layout Plain Layout
10735 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10738 \begin_layout Plain Layout
10746 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10749 \begin_layout Plain Layout
10755 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10758 \begin_layout Plain Layout
10766 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10769 \begin_layout Plain Layout
10777 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10780 \begin_layout Plain Layout
10786 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10789 \begin_layout Plain Layout
10797 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10800 \begin_layout Plain Layout
10808 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10811 \begin_layout Plain Layout
10817 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10820 \begin_layout Plain Layout
10834 \begin_layout Section
10835 Multiple Lines Columns and Rows
10838 \begin_layout Subsection
10839 Multiple Lines in Table Cells
10840 \begin_inset CommandInset label
10842 name "sub:Multiple-Lines-in"
10850 \begin_layout Plain Layout
10851 Multiple Lines in Table Cells
10860 \begin_layout Plain Layout
10869 \begin_layout Standard
10871 \begin_inset Float table
10877 \begin_layout Plain Layout
10878 \begin_inset Caption
10880 \begin_layout Plain Layout
10881 \begin_inset CommandInset label
10883 name "tab:Table-with-multiple"
10887 Table with multiple lines in cells
10895 \begin_layout Plain Layout
10897 \begin_inset Tabular
10898 <lyxtabular version="3" rows="3" columns="3">
10900 <column alignment="center" valignment="middle" width="2.5cm">
10901 <column alignment="center" valignment="middle" width="0">
10902 <column alignment="center" valignment="middle" width="0">
10904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10907 \begin_layout Plain Layout
10909 \begin_inset Newline linebreak
10917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10920 \begin_layout Plain Layout
10926 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10929 \begin_layout Plain Layout
10937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10940 \begin_layout Plain Layout
10946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10949 \begin_layout Plain Layout
10955 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10958 \begin_layout Plain Layout
10966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10969 \begin_layout Plain Layout
10975 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10978 \begin_layout Plain Layout
10984 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10987 \begin_layout Plain Layout
11006 \begin_layout Standard
11007 Adjusting a fixed width for a column, enables to enter text as a paragraph
11008 with multiple lines and hyphenations.
11011 \begin_layout Standard
11013 \begin_inset space ~
11017 \begin_inset CommandInset ref
11019 reference "tab:Table-with-multiple"
11023 , create a 3×3 table, mark the first cell and right-click on it.
11024 In the appearing table dialog we set a cell width of 2.5
11025 \begin_inset space \thinspace{}
11028 cm and choose centered for the vertical and horizontal alignment.
11029 The vertical alignment is used for all cells of the row.
11030 As our text is smaller than than 2.5
11031 \begin_inset space \thinspace{}
11034 cm, only one line will appear.
11035 To get two lines, a justified line break (shortcut
11038 arg "newline-insert linebreak"
11042 If the text is wider than the set cell width, it will automatically be
11043 broken to several lines.
11046 \begin_layout Standard
11047 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11048 by LaTeX if it is the first entry.
11049 Therefore you need to insert something, to make the word not being the
11051 So add a horizontal space of 0
11052 \begin_inset space \thinspace{}
11055 pt before the word.
11056 As the space is zero, it doesn't change the output.
11058 \begin_inset space ~
11062 \begin_inset CommandInset ref
11064 reference "tab:Table-with-and"
11071 \begin_layout Standard
11072 \begin_inset Float table
11078 \begin_layout Plain Layout
11079 \begin_inset Caption
11081 \begin_layout Plain Layout
11082 \begin_inset CommandInset label
11084 name "tab:Table-with-and"
11088 Table with and without hyphenation
11096 \begin_layout Plain Layout
11097 \begin_inset space \hfill{}
11101 \begin_inset Tabular
11102 <lyxtabular version="3" rows="3" columns="3">
11104 <column alignment="center" valignment="middle" width="2.5cm">
11105 <column alignment="center" valignment="middle" width="0">
11106 <column alignment="center" valignment="middle" width="0">
11108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11111 \begin_layout Plain Layout
11112 verylongtablecellword
11117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11120 \begin_layout Plain Layout
11126 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11129 \begin_layout Plain Layout
11137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11140 \begin_layout Plain Layout
11146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11149 \begin_layout Plain Layout
11155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11158 \begin_layout Plain Layout
11166 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11169 \begin_layout Plain Layout
11175 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11178 \begin_layout Plain Layout
11184 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11187 \begin_layout Plain Layout
11199 \begin_inset space \hfill{}
11203 \begin_inset Tabular
11204 <lyxtabular version="3" rows="3" columns="3">
11206 <column alignment="center" valignment="middle" width="2.5cm">
11207 <column alignment="center" valignment="middle" width="0">
11208 <column alignment="center" valignment="middle" width="0">
11210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11213 \begin_layout Plain Layout
11214 \begin_inset space \hspace{}
11218 verylongtablecellword
11223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11226 \begin_layout Plain Layout
11232 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11235 \begin_layout Plain Layout
11243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11246 \begin_layout Plain Layout
11252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11255 \begin_layout Plain Layout
11261 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11264 \begin_layout Plain Layout
11272 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11275 \begin_layout Plain Layout
11281 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11284 \begin_layout Plain Layout
11290 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11293 \begin_layout Plain Layout
11305 \begin_inset space \hfill{}
11316 \begin_layout Subsection
11318 \begin_inset CommandInset label
11320 name "sub:Multicolumns"
11328 \begin_layout Plain Layout
11338 \begin_layout Plain Layout
11339 Table ! Multicolumns
11347 \begin_layout Subsubsection
11351 \begin_layout Standard
11352 To span a cell over multiple columns, mark as much cells within a line that
11353 should be one spanned cell and use either the table-toolbar button
11354 \begin_inset Graphics
11355 filename ../images/tabular-feature_multicolumn.png
11357 scaleBeforeRotation
11363 Edit\SpecialChar \menuseparator
11364 Table\SpecialChar \menuseparator
11367 , or right click on the marked cells and choose multicolumn in the appearing
11368 table dialog under the tab
11375 \begin_layout Standard
11376 Multicolumns have there own cell settings.
11377 That means changing cell borders, cell alignment, and the width only affects
11379 Here is an example table with a multicolumn cell in the first row and one
11380 in the last row without the upper border:
11383 \begin_layout Standard
11385 \begin_inset Tabular
11386 <lyxtabular version="3" rows="3" columns="4">
11387 <features firstHeadTopDL="true" firstHeadBottomDL="true">
11388 <column alignment="center" valignment="top" width="0pt">
11389 <column alignment="center" valignment="middle" width="0">
11390 <column alignment="center" valignment="top" width="0in">
11391 <column alignment="center" valignment="top" width="0pt">
11393 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11396 \begin_layout Plain Layout
11402 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11405 \begin_layout Plain Layout
11411 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11414 \begin_layout Plain Layout
11420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11423 \begin_layout Plain Layout
11431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11434 \begin_layout Plain Layout
11449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11452 \begin_layout Plain Layout
11458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11461 \begin_layout Plain Layout
11467 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11470 \begin_layout Plain Layout
11478 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11481 \begin_layout Plain Layout
11487 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11490 \begin_layout Plain Layout
11496 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11499 \begin_layout Plain Layout
11505 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11508 \begin_layout Plain Layout
11522 \begin_layout Subsubsection
11523 Multicolumn Calculations
11524 \begin_inset CommandInset label
11526 name "sub:Multicolumn-Calculations"
11534 \begin_layout Plain Layout
11535 Multicolumns ! Calculations
11543 \begin_layout Standard
11544 LyX supports multicolumns directly, but we have to take notice of the cell
11545 width of the columns spanned by the multicolumn cell.
11548 \begin_layout Standard
11549 \begin_inset Float table
11555 \begin_layout Plain Layout
11556 \begin_inset Caption
11558 \begin_layout Plain Layout
11559 \begin_inset CommandInset label
11561 name "tab:Table-with-centered"
11565 Table with centered multicolumn text above two columns that have exactly
11566 half the width of the multicolumn cell
11567 \begin_inset OptArg
11570 \begin_layout Plain Layout
11571 Perfect multicolumn table
11584 \begin_layout Plain Layout
11586 \begin_inset Tabular
11587 <lyxtabular version="3" rows="3" columns="3">
11589 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11590 <column alignment="center" valignment="middle" width="0">
11591 <column alignment="center" valignment="top" width="0">
11593 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11596 \begin_layout Plain Layout
11597 multiple lines multicolumn
11602 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11605 \begin_layout Plain Layout
11611 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11614 \begin_layout Plain Layout
11622 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11625 \begin_layout Plain Layout
11631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11634 \begin_layout Plain Layout
11640 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11643 \begin_layout Plain Layout
11651 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11654 \begin_layout Plain Layout
11660 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11663 \begin_layout Plain Layout
11669 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11672 \begin_layout Plain Layout
11691 \begin_layout Standard
11692 To create for example Table
11693 \begin_inset space ~
11697 \begin_inset CommandInset ref
11699 reference "tab:Table-with-centered"
11703 , mark the first two cells in the first row of a 3×3 table and right-click
11705 Now choose for this cell
11714 \begin_inset space \thinspace{}
11717 cm in the table dialog.
11718 The spanned columns should have exactly half the width of the multicolumn
11719 cell, so that you would adjust a width of 1.25
11720 \begin_inset space \thinspace{}
11723 cm for the first column.
11724 The second column has then automatically a width of 1.25
11725 \begin_inset space \thinspace{}
11728 cm (multicolumn width - width of first column).
11729 This was done for Table
11730 \begin_inset space ~
11734 \begin_inset CommandInset ref
11736 reference "tab:Table-without-half"
11743 \begin_layout Standard
11744 \begin_inset Float table
11749 \begin_layout Plain Layout
11750 \begin_inset Caption
11752 \begin_layout Plain Layout
11753 \begin_inset CommandInset label
11755 name "tab:Table-without-half"
11759 Table where the spanned table columns have not exactly half the width of
11760 the multicolumn cell
11761 \begin_inset OptArg
11764 \begin_layout Plain Layout
11765 Imperfect multicolumn table
11778 \begin_layout Plain Layout
11780 \begin_inset Tabular
11781 <lyxtabular version="3" rows="3" columns="3">
11783 <column alignment="center" valignment="top" width="1.25cm">
11784 <column alignment="center" valignment="top" width="0">
11785 <column alignment="center" valignment="top" width="0">
11787 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11790 \begin_layout Plain Layout
11791 multiple lines multicolumn
11796 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11799 \begin_layout Plain Layout
11805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11808 \begin_layout Plain Layout
11816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11819 \begin_layout Plain Layout
11825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11828 \begin_layout Plain Layout
11834 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11837 \begin_layout Plain Layout
11845 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11848 \begin_layout Plain Layout
11854 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11857 \begin_layout Plain Layout
11863 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11866 \begin_layout Plain Layout
11885 \begin_layout Standard
11886 You can see that the first column has not the half width of the multicolumn
11887 cell, it is a bit bigger.
11888 The reason is that the given width of a cell
11889 \begin_inset Formula $W_{g}$
11892 is not its total width
11893 \begin_inset Formula $W_{\mathrm{tot}}$
11896 because a cell is always a bit larger than its given width.
11898 \begin_inset space ~
11902 \begin_inset CommandInset ref
11904 reference "cha:Explanation-of-Equation"
11908 explains it in detail.
11911 \begin_layout Standard
11912 The needed given width
11913 \begin_inset Formula $W_{g\, n}$
11920 columns are spanned can be calculated, so that each column has a total
11922 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11926 \begin_inset Formula \begin{equation}
11927 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11934 \begin_layout Standard
11935 In our case we have
11936 \begin_inset Formula $n=2$
11940 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11943 cm and the default values for the lengths, so that equation
11944 \begin_inset CommandInset ref
11951 \begin_inset Formula \begin{equation}
11952 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11959 \begin_layout Standard
11960 To enable calculations in LaTeX, the LaTeX-package
11964 must be loaded with the document preamble line
11968 \begin_layout Plain Layout
11969 LaTeX-packages ! calc
11977 \begin_layout Standard
11985 \begin_layout Standard
11986 LyX does not allow to calculate lengths in the width-field of the table
11988 Therefore you have to format the column by inserting a LaTeX-argument in
11990 Here is an overview about the arguments:
11993 \begin_layout Itemize
11998 creates cell with a fixed width, its text is vertically top-aligned
12001 \begin_layout Itemize
12006 creates cell with a fixed width, its text is vertically centered
12009 \begin_layout Itemize
12014 creates cell with a fixed width, its text is vertically bottom-aligned
12017 \begin_layout Standard
12018 By entering a LaTeX-argument, all cell settings set in the table dialog
12022 \begin_layout Standard
12023 \begin_inset Note Greyedout
12026 \begin_layout Plain Layout
12031 Due to a bug, LyX shows the overwritten settings anyway.
12039 \begin_layout Standard
12040 As the text should be horizontally centered, the command
12047 You can now enter the following LaTeX-argument for the first spanned column:
12050 \begin_layout Standard
12055 centering}m{1.25cm-6.2pt}
12058 \begin_layout Standard
12063 means, that the commands inside the braces are applied before the cell
12067 \begin_layout Standard
12068 Although we have chosen centered alignment for the text of the multicolumn
12069 cell, it is still left aligned.
12070 This is because LyX only applies the alignment to single columns.
12071 So we have to use for the multicolumn the LaTeX-argument
12074 \begin_layout Standard
12082 \begin_layout Subsection
12087 \begin_layout Plain Layout
12097 \begin_layout Plain Layout
12106 \begin_layout Standard
12107 In contrary to multicolumns multirows are not yet supported by LyX so a
12108 bit of TeX-Code needs to be used.
12109 To use multirows load the LaTeX-package
12117 \begin_layout Plain Layout
12118 LaTeX-packages ! multirow
12123 in your document preamble with the command
12126 \begin_layout Standard
12131 usepackage{multirow}
12134 \begin_layout Standard
12135 Multirows are created with the command
12138 \begin_layout Standard
12143 multirow{number of rows}{cell width}{cell entry}
12146 \begin_layout Standard
12147 To create the following table:
12150 \begin_layout Standard
12155 \begin_layout Plain Layout
12169 \begin_inset Tabular
12170 <lyxtabular version="3" rows="3" columns="3">
12172 <column alignment="center" valignment="top" width="0">
12173 <column alignment="center" valignment="top" width="0">
12174 <column alignment="center" valignment="top" width="0">
12176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12179 \begin_layout Plain Layout
12185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12188 \begin_layout Plain Layout
12194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12197 \begin_layout Plain Layout
12205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12208 \begin_layout Plain Layout
12212 \begin_layout Plain Layout
12216 multirow{2}{2.5cm}{
12225 \begin_layout Plain Layout
12237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12240 \begin_layout Plain Layout
12246 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12249 \begin_layout Plain Layout
12257 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12260 \begin_layout Plain Layout
12266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12269 \begin_layout Plain Layout
12275 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12278 \begin_layout Plain Layout
12293 \begin_layout Plain Layout
12309 \begin_layout Standard
12310 create a 3×3 table.
12311 To get rid of the line above the last cell in the first column, the cell
12312 is marked as multicolumn and the upper border is unset.
12313 The multirow is now created in the second row of the first column by inserting
12317 \begin_layout Standard
12322 multirow{2}{2.5cm}{
12325 \begin_layout Standard
12327 According to the command parameters the multirow spans now two rows and
12329 \begin_inset space \thinspace{}
12333 The content of the multirow cell follows outside the TeX-Code box and the
12334 command is finished with a right brace
12338 in another TeX-Code-box behind the text.
12341 \begin_layout Standard
12348 left-aligns its content by default.
12349 To override the default, renew the command
12358 \begin_layout Standard
12370 \begin_layout Standard
12371 in TeX-Code in the document preamble.
12372 Then all entries of multirow cells in the document are centered.
12373 If centering is only needed for several tables, you can renew the command
12374 in an TeX-Code box just before the table instead of the preamble.
12375 If the text should be right-aligned, replace
12388 To return to left-alignment
12397 \begin_layout Section
12399 \begin_inset CommandInset label
12401 name "sec:Formal-Tables"
12409 \begin_layout Plain Layout
12418 \begin_layout Standard
12419 Tables are often typeset in books similar to Table
12420 \begin_inset space ~
12424 \begin_inset CommandInset ref
12426 reference "tab:Example-booktabs-table"
12431 This kind of tables is called
12432 \begin_inset Quotes eld
12440 \begin_inset Quotes erd
12444 To make a table a formal table use the option
12452 tab of the table dialog.
12455 \begin_layout Standard
12456 \begin_inset Float table
12462 \begin_layout Plain Layout
12463 \begin_inset Caption
12465 \begin_layout Plain Layout
12466 \begin_inset CommandInset label
12468 name "tab:Example-booktabs-table"
12472 Example booktabs-table
12480 \begin_layout Plain Layout
12482 \begin_inset Tabular
12483 <lyxtabular version="3" rows="8" columns="4">
12484 <features booktabs="true">
12485 <column alignment="center" valignment="top" width="0">
12486 <column alignment="center" valignment="top" width="0">
12487 <column alignment="center" valignment="top" width="0">
12488 <column alignment="center" valignment="top" width="0">
12490 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12493 \begin_layout Plain Layout
12499 <cell alignment="center" valignment="top" topline="true" usebox="none">
12502 \begin_layout Plain Layout
12504 \begin_inset space \thinspace{}
12512 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
12515 \begin_layout Plain Layout
12517 \begin_inset space \thinspace{}
12525 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12528 \begin_layout Plain Layout
12536 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12539 \begin_layout Plain Layout
12543 \begin_layout Plain Layout
12556 \begin_layout Plain Layout
12565 Detector thickness [µm]
12570 <cell alignment="center" valignment="top" usebox="none">
12573 \begin_layout Plain Layout
12579 <cell alignment="center" valignment="top" usebox="none">
12582 \begin_layout Plain Layout
12588 <cell alignment="center" valignment="top" usebox="none">
12591 \begin_layout Plain Layout
12599 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12602 \begin_layout Plain Layout
12608 <cell alignment="center" valignment="top" topline="true" usebox="none">
12611 \begin_layout Plain Layout
12617 <cell alignment="center" valignment="top" topline="true" usebox="none">
12620 \begin_layout Plain Layout
12626 <cell alignment="center" valignment="top" topline="true" usebox="none">
12629 \begin_layout Plain Layout
12636 <row topspace="default">
12637 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12640 \begin_layout Plain Layout
12641 Spatial resolution [µm]
12646 <cell alignment="center" valignment="top" usebox="none">
12649 \begin_layout Plain Layout
12655 <cell alignment="center" valignment="top" usebox="none">
12658 \begin_layout Plain Layout
12664 <cell alignment="center" valignment="top" usebox="none">
12667 \begin_layout Plain Layout
12674 <row topspace="default">
12675 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12678 \begin_layout Plain Layout
12680 \begin_inset Formula $f_{\mathrm{max}}$
12688 <cell alignment="center" valignment="top" usebox="none">
12691 \begin_layout Plain Layout
12697 <cell alignment="center" valignment="top" usebox="none">
12700 \begin_layout Plain Layout
12706 <cell alignment="center" valignment="top" usebox="none">
12709 \begin_layout Plain Layout
12716 <row topspace="default">
12717 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12720 \begin_layout Plain Layout
12724 \begin_layout Plain Layout
12728 cmidrule(l{10pt}){1-1}
12733 LSF-spatial resolution
12738 <cell alignment="center" valignment="top" usebox="none">
12741 \begin_layout Plain Layout
12747 <cell alignment="center" valignment="top" usebox="none">
12750 \begin_layout Plain Layout
12756 <cell alignment="center" valignment="top" usebox="none">
12759 \begin_layout Plain Layout
12767 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12770 \begin_layout Plain Layout
12776 <cell alignment="center" valignment="top" usebox="none">
12779 \begin_layout Plain Layout
12785 <cell alignment="center" valignment="top" usebox="none">
12788 \begin_layout Plain Layout
12794 <cell alignment="center" valignment="top" usebox="none">
12797 \begin_layout Plain Layout
12805 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12808 \begin_layout Plain Layout
12814 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12817 \begin_layout Plain Layout
12823 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12826 \begin_layout Plain Layout
12832 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12835 \begin_layout Plain Layout
12854 \begin_layout Standard
12855 Spaces to table rows can be added using the
12859 tab of the table dialog as described in section
12860 \begin_inset space ~
12864 \begin_inset CommandInset ref
12866 reference "sub:Row-Spacing"
12873 \begin_layout Standard
12874 In contrary to normal tables, formal tables have no vertical table lines.
12875 The horizontal table lines can be set like for normal tables but they appear
12876 with different width in the output:
12877 \begin_inset Newline newline
12880 The first and the last table line have a default width of 0.08
12881 \begin_inset space \thinspace{}
12884 em while the other lines have a default width of 0.05
12885 \begin_inset space \thinspace{}
12891 \begin_layout Standard
12892 The default widths can be changed with the following preamble lines
12895 \begin_layout Standard
12905 \begin_inset Newline newline
12917 \begin_layout Standard
12918 This example is for the first line, the so called
12923 If you want to change the width for the last line, replace
12932 To change the width for the other lines replace
12941 You can use all units listed in appendix
12942 \begin_inset space ~
12946 \begin_inset CommandInset ref
12948 reference "cha:Units-available-in"
12955 \begin_layout Standard
12956 Lines that don't span over all table columns can be created by setting a
12957 table line for multicolumn cells.
12958 LyX will then internally use the command
12964 to create this line.
12968 \begin_layout Standard
12973 cmidrule[width](trim){startcol-endcol}
12976 \begin_layout Standard
12983 are are currently not supported by LyX so you have to use TeX-Code to be
12991 s can manually be created by inserting the command as TeX-Code as first
12992 cell entry of the first cell of a row.
12993 The line is then drawn in the output above the current row.
12996 \begin_layout Standard
12997 The default for the width is 0.03
12998 \begin_inset space \thinspace{}
13002 Startcol is the number of the column where the line starts and endcol the
13003 column number where the line ends.
13004 The endcol always needs to be specified, also when the line should span
13006 The optional parameter trim could be either
13014 where the trimwidth is also optional.
13015 Using for example the parameter
13019 means that the line is trimmed from its left end by 2
13020 \begin_inset space \thinspace{}
13024 If you don't specify the trimwidth the lines are trimmed by the default
13026 \begin_inset space \thinspace{}
13032 \begin_layout Standard
13033 \begin_inset VSpace bigskip
13037 \begin_inset space ~
13041 \begin_inset CommandInset ref
13043 reference "tab:Example-booktabs-table"
13047 was created using the commands
13050 \begin_layout Standard
13060 \begin_layout Standard
13061 at the beginning of the in the second row and
13064 \begin_layout Standard
13069 cmidrule(l{10pt}){1-1}
13072 \begin_layout Standard
13076 \begin_layout Standard
13077 \begin_inset VSpace bigskip
13083 \begin_layout Standard
13084 You might want to have overlapping
13091 \begin_inset space ~
13095 \begin_inset CommandInset ref
13097 reference "tab:Special-booktabs-table"
13102 This can be achieved with the TeX-Code command
13105 \begin_layout Standard
13113 \begin_layout Standard
13114 The command that was used for the second row of Table
13115 \begin_inset space ~
13119 \begin_inset CommandInset ref
13121 reference "tab:Special-booktabs-table"
13128 \begin_layout Standard
13142 \begin_layout Standard
13143 The command for the sixth row is
13146 \begin_layout Standard
13158 \begin_layout Standard
13159 \begin_inset VSpace bigskip
13165 \begin_layout Standard
13166 If you are anyway not satisfied with the border line spacing, you can use
13167 the following command to produce lines that span over all table columns
13172 \begin_layout Standard
13177 specialrule{width}{space above}{space below}
13180 \begin_layout Standard
13181 For more information about these specialties, we refer to the manual of
13187 \begin_inset CommandInset citation
13197 \begin_layout Plain Layout
13198 LaTeX-packages ! booktabs
13206 \begin_layout Standard
13207 \begin_inset Float table
13213 \begin_layout Plain Layout
13214 \begin_inset Caption
13216 \begin_layout Plain Layout
13217 \begin_inset CommandInset label
13219 name "tab:Special-booktabs-table"
13223 Special booktabs-table
13231 \begin_layout Plain Layout
13233 \begin_inset Tabular
13234 <lyxtabular version="3" rows="8" columns="4">
13235 <features booktabs="true">
13236 <column alignment="center" valignment="top" width="0">
13237 <column alignment="center" valignment="top" width="0">
13238 <column alignment="center" valignment="top" width="0">
13239 <column alignment="center" valignment="top" width="0">
13241 <cell alignment="center" valignment="top" topline="true" usebox="none">
13244 \begin_layout Plain Layout
13250 <cell alignment="center" valignment="top" topline="true" usebox="none">
13253 \begin_layout Plain Layout
13255 \begin_inset space \thinspace{}
13263 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
13266 \begin_layout Plain Layout
13268 \begin_inset space \thinspace{}
13276 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13279 \begin_layout Plain Layout
13287 <cell alignment="center" valignment="top" usebox="none">
13290 \begin_layout Plain Layout
13294 \begin_layout Plain Layout
13307 \begin_layout Plain Layout
13320 \begin_layout Plain Layout
13333 \begin_layout Plain Layout
13342 Detector thickness [µm]
13347 <cell alignment="center" valignment="top" usebox="none">
13350 \begin_layout Plain Layout
13356 <cell alignment="center" valignment="top" usebox="none">
13359 \begin_layout Plain Layout
13365 <cell alignment="center" valignment="top" usebox="none">
13368 \begin_layout Plain Layout
13376 <cell alignment="center" valignment="top" topline="true" usebox="none">
13379 \begin_layout Plain Layout
13385 <cell alignment="center" valignment="top" topline="true" usebox="none">
13388 \begin_layout Plain Layout
13394 <cell alignment="center" valignment="top" topline="true" usebox="none">
13397 \begin_layout Plain Layout
13403 <cell alignment="center" valignment="top" topline="true" usebox="none">
13406 \begin_layout Plain Layout
13413 <row topspace="default">
13414 <cell alignment="center" valignment="top" usebox="none">
13417 \begin_layout Plain Layout
13418 Spatial resolution [µm]
13423 <cell alignment="center" valignment="top" usebox="none">
13426 \begin_layout Plain Layout
13432 <cell alignment="center" valignment="top" usebox="none">
13435 \begin_layout Plain Layout
13441 <cell alignment="center" valignment="top" usebox="none">
13444 \begin_layout Plain Layout
13451 <row topspace="default">
13452 <cell alignment="center" valignment="top" usebox="none">
13455 \begin_layout Plain Layout
13457 \begin_inset Formula $f_{\mathrm{max}}$
13465 <cell alignment="center" valignment="top" usebox="none">
13468 \begin_layout Plain Layout
13474 <cell alignment="center" valignment="top" usebox="none">
13477 \begin_layout Plain Layout
13483 <cell alignment="center" valignment="top" usebox="none">
13486 \begin_layout Plain Layout
13494 <cell alignment="center" valignment="top" topline="true" usebox="none">
13497 \begin_layout Plain Layout
13501 \begin_layout Plain Layout
13514 \begin_layout Plain Layout
13523 LSF-spatial resolution
13528 <cell alignment="center" valignment="top" topline="true" usebox="none">
13531 \begin_layout Plain Layout
13537 <cell alignment="center" valignment="top" topline="true" usebox="none">
13540 \begin_layout Plain Layout
13546 <cell alignment="center" valignment="top" topline="true" usebox="none">
13549 \begin_layout Plain Layout
13557 <cell alignment="center" valignment="top" usebox="none">
13560 \begin_layout Plain Layout
13566 <cell alignment="center" valignment="top" usebox="none">
13569 \begin_layout Plain Layout
13575 <cell alignment="center" valignment="top" usebox="none">
13578 \begin_layout Plain Layout
13584 <cell alignment="center" valignment="top" usebox="none">
13587 \begin_layout Plain Layout
13595 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13598 \begin_layout Plain Layout
13604 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13607 \begin_layout Plain Layout
13613 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13616 \begin_layout Plain Layout
13622 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13625 \begin_layout Plain Layout
13644 \begin_layout Section
13645 Vertical Table Alignment
13649 \begin_layout Plain Layout
13658 \begin_layout Standard
13659 To align tables vertically in a text line the table must be inside a box.
13660 The box can then be vertically aligned as described in section
13661 \begin_inset space ~
13665 \begin_inset CommandInset ref
13667 reference "sec:Box-Dialog"
13674 \begin_layout Standard
13675 In the following example the tables are inside a minipage
13679 \begin_layout Plain Layout
13680 Minipages are described in section
13681 \begin_inset space ~
13685 \begin_inset CommandInset ref
13687 reference "sec:Minipages"
13696 box that has a width of 15
13697 \begin_inset space \thinspace{}
13703 \begin_layout Itemize
13705 \begin_inset Box Frameless
13714 height_special "totalheight"
13717 \begin_layout Plain Layout
13718 \begin_inset Tabular
13719 <lyxtabular version="3" rows="3" columns="3">
13721 <column alignment="center" valignment="top" width="0">
13722 <column alignment="center" valignment="top" width="0">
13723 <column alignment="center" valignment="top" width="0">
13725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13728 \begin_layout Plain Layout
13734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13737 \begin_layout Plain Layout
13743 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13746 \begin_layout Plain Layout
13754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13757 \begin_layout Plain Layout
13763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13766 \begin_layout Plain Layout
13772 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13775 \begin_layout Plain Layout
13783 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13786 \begin_layout Plain Layout
13792 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13795 \begin_layout Plain Layout
13801 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13804 \begin_layout Plain Layout
13824 \begin_layout Plain Layout
13836 \begin_inset Box Frameless
13845 height_special "totalheight"
13848 \begin_layout Plain Layout
13849 \begin_inset Tabular
13850 <lyxtabular version="3" rows="3" columns="3">
13852 <column alignment="center" valignment="top" width="0">
13853 <column alignment="center" valignment="top" width="0">
13854 <column alignment="center" valignment="top" width="0">
13856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13859 \begin_layout Plain Layout
13865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13868 \begin_layout Plain Layout
13874 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13877 \begin_layout Plain Layout
13885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13888 \begin_layout Plain Layout
13894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13897 \begin_layout Plain Layout
13903 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13906 \begin_layout Plain Layout
13914 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13917 \begin_layout Plain Layout
13923 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13926 \begin_layout Plain Layout
13932 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13935 \begin_layout Plain Layout
13955 \begin_layout Plain Layout
13965 \begin_layout Itemize
13967 \begin_inset Box Frameless
13976 height_special "totalheight"
13979 \begin_layout Plain Layout
13980 \begin_inset Tabular
13981 <lyxtabular version="3" rows="3" columns="3">
13983 <column alignment="center" valignment="top" width="0">
13984 <column alignment="center" valignment="top" width="0">
13985 <column alignment="center" valignment="top" width="0">
13987 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13990 \begin_layout Plain Layout
13996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13999 \begin_layout Plain Layout
14005 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14008 \begin_layout Plain Layout
14016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14019 \begin_layout Plain Layout
14025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14028 \begin_layout Plain Layout
14034 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14037 \begin_layout Plain Layout
14045 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14048 \begin_layout Plain Layout
14054 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14057 \begin_layout Plain Layout
14063 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14066 \begin_layout Plain Layout
14085 \begin_layout Itemize
14087 \begin_inset Box Frameless
14096 height_special "totalheight"
14099 \begin_layout Plain Layout
14100 \begin_inset Tabular
14101 <lyxtabular version="3" rows="3" columns="3">
14103 <column alignment="center" valignment="top" width="0">
14104 <column alignment="center" valignment="top" width="0">
14105 <column alignment="center" valignment="top" width="0">
14107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14110 \begin_layout Plain Layout
14116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14119 \begin_layout Plain Layout
14125 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14128 \begin_layout Plain Layout
14136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14139 \begin_layout Plain Layout
14145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14148 \begin_layout Plain Layout
14154 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14157 \begin_layout Plain Layout
14165 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14168 \begin_layout Plain Layout
14174 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14177 \begin_layout Plain Layout
14183 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14186 \begin_layout Plain Layout
14206 \begin_layout Plain Layout
14218 \begin_inset Box Frameless
14227 height_special "totalheight"
14230 \begin_layout Plain Layout
14231 \begin_inset Tabular
14232 <lyxtabular version="3" rows="3" columns="3">
14234 <column alignment="center" valignment="top" width="0">
14235 <column alignment="center" valignment="top" width="0">
14236 <column alignment="center" valignment="top" width="0">
14238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14241 \begin_layout Plain Layout
14247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14250 \begin_layout Plain Layout
14256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14259 \begin_layout Plain Layout
14267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14270 \begin_layout Plain Layout
14276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14279 \begin_layout Plain Layout
14285 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14288 \begin_layout Plain Layout
14296 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14299 \begin_layout Plain Layout
14305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14308 \begin_layout Plain Layout
14314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14317 \begin_layout Plain Layout
14337 \begin_layout Plain Layout
14347 \begin_layout Standard
14348 As you can see, the content of the first and last table row is not correctly
14349 aligned with the text line where the table is in.
14350 To get this alignment, the minipage box must be set into a raisebox
14354 \begin_layout Plain Layout
14355 Raiseboxes are described in section
14356 \begin_inset space ~
14360 \begin_inset CommandInset ref
14362 reference "sub:Vertical-Alignment"
14372 In the example above the second table in the first item is aligned using
14373 the TeX-Code-command
14376 \begin_layout Standard
14386 \begin_layout Standard
14388 Behind the box the closing brace
14392 is inserted as TeX-Code.
14393 For the second table in the last item the command
14396 \begin_layout Standard
14406 \begin_layout Standard
14410 \begin_layout Standard
14411 \begin_inset Note Greyedout
14414 \begin_layout Plain Layout
14419 The alignment of the table row content to the surrounding text line is
14421 The needed factor of the
14427 command for this alignment depends on the document font, the font size,
14428 and the table line thickness.
14436 \begin_layout Section
14438 \begin_inset CommandInset label
14440 name "sec:Colored-Tables"
14448 \begin_layout Plain Layout
14457 \begin_layout Subsection
14462 \begin_layout Plain Layout
14463 Table Color ! for Cells
14472 \begin_layout Plain Layout
14473 Color ! for Table Cells
14481 \begin_layout Standard
14482 \begin_inset Float table
14488 \begin_layout Plain Layout
14489 \begin_inset Caption
14491 \begin_layout Plain Layout
14492 \begin_inset CommandInset label
14494 name "tab:Table-colored-without"
14498 Table colored without using the package
14503 \begin_inset OptArg
14506 \begin_layout Plain Layout
14507 Table without colortbl
14520 \begin_layout Plain Layout
14522 \begin_inset Tabular
14523 <lyxtabular version="3" rows="3" columns="3">
14525 <column alignment="center" valignment="top" width="0">
14526 <column alignment="center" valignment="top" width="0">
14527 <column alignment="center" valignment="top" width="0">
14529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14532 \begin_layout Plain Layout
14540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14543 \begin_layout Plain Layout
14551 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14554 \begin_layout Plain Layout
14564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14567 \begin_layout Plain Layout
14575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14578 \begin_layout Plain Layout
14586 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14589 \begin_layout Plain Layout
14599 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14602 \begin_layout Plain Layout
14610 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14613 \begin_layout Plain Layout
14621 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14624 \begin_layout Plain Layout
14645 \begin_layout Standard
14646 If you only need colored text, mark the cells and choose a color in the
14649 Edit\SpecialChar \menuseparator
14651 \begin_inset space ~
14657 This was used to create Table
14658 \begin_inset space ~
14662 \begin_inset CommandInset ref
14664 reference "tab:Table-colored-without"
14669 In any other case you have to use the LaTeX-package
14677 \begin_layout Plain Layout
14678 LaTeX-packages ! colortbl
14686 \begin_layout Standard
14690 \begin_layout Plain Layout
14700 \begin_inset Note Note
14703 \begin_layout Plain Layout
14704 The following section part will only be displayed when the LaTeX-package
14717 \begin_layout Standard
14718 To create colored tables,
14722 must be loaded in the preamble with the line
14725 \begin_layout Standard
14730 usepackage{colortbl}
14733 \begin_layout Standard
14734 The color of a column is adjusted with the command
14737 \begin_layout Standard
14742 columncolor{name of color}
14745 \begin_layout Standard
14751 More about the command
14755 is described in section
14756 \begin_inset space ~
14760 \begin_inset CommandInset ref
14762 reference "sub:Multicolumn-Calculations"
14769 \begin_layout Standard
14770 The following color names are predefined:
14773 \begin_layout Standard
14807 \begin_layout Standard
14808 \begin_inset VSpace medskip
14814 \begin_layout Standard
14815 You can also define your own color with the command
14818 \begin_layout Standard
14823 definecolor{color name}{color model}{color values}
14826 \begin_layout Standard
14827 The color model can be
14830 \begin_layout Labeling
14831 \labelwidthstring 00.00.0000
14832 cmyk: cyan, magenta, yellow, black
14835 \begin_layout Labeling
14836 \labelwidthstring 00.00.0000
14837 rgb: red, green blue
14840 \begin_layout Labeling
14841 \labelwidthstring 00.00.0000
14845 \begin_layout Standard
14846 and the color values are comma separated numbers between 0 and 1 describing
14847 the factor for the corresponding color of the color model.
14850 \begin_layout Standard
14852 \begin_inset space \thinspace{}
14856 \begin_inset space \space{}
14863 " in the preamble with
14866 \begin_layout Standard
14871 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14874 \begin_layout Standard
14882 \begin_layout Standard
14887 definecolor{lightgray}{gray}{0.8}
14890 \begin_layout Standard
14891 \begin_inset VSpace medskip
14897 \begin_layout Standard
14898 Lines are colored with the command
14901 \begin_layout Standard
14906 rowcolor{name of color}
14909 \begin_layout Standard
14910 and cells are colored with the command
14913 \begin_layout Standard
14918 cellcolor{name of color}
14921 \begin_layout Standard
14922 Both commands are inserted at the beginning of a cell as TeX-Code.
14925 \begin_layout Standard
14926 To color characters in the table, mark the cells and use the LyX menu
14928 Edit\SpecialChar \menuseparator
14930 \begin_inset space ~
14936 If a cell contains TeX-Code mark only the characters, otherwise the colored
14937 TeX-Code will cause LaTeX-errors.
14940 \begin_layout Standard
14941 \begin_inset Note Greyedout
14944 \begin_layout Plain Layout
14949 Not all DVI-viewers are able to display self-defined colors.
14957 \begin_layout Standard
14958 \begin_inset VSpace bigskip
14964 \begin_layout Standard
14966 \begin_inset space ~
14970 \begin_inset CommandInset ref
14972 reference "tab:Table-colored-using"
14976 do the following: The color of the first column should be
14984 \begin_layout Standard
14989 columncolor{darkgreen}
14994 \begin_layout Standard
14995 as LaTeX-argument for this column.
14996 The first row should be blue, therefore the TeX-Code command
14999 \begin_layout Standard
15007 \begin_layout Standard
15008 is inserted to the first cell of this row.
15009 Note that this overwrites the column color for the first cell.
15010 The last cell of the last row is colored magenta by inserting the TeX-Code
15014 \begin_layout Standard
15022 \begin_layout Standard
15023 The characters could now be colored using the menu
15025 Edit\SpecialChar \menuseparator
15027 \begin_inset space ~
15035 \begin_layout Standard
15036 \begin_inset Float table
15042 \begin_layout Plain Layout
15043 \begin_inset Caption
15045 \begin_layout Plain Layout
15046 \begin_inset CommandInset label
15048 name "tab:Table-colored-using"
15052 Table colored using the package
15057 \begin_inset OptArg
15060 \begin_layout Plain Layout
15061 Table with colortbl
15074 \begin_layout Plain Layout
15076 \begin_inset Tabular
15077 <lyxtabular version="3" rows="3" columns="3">
15079 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15080 <column alignment="center" valignment="top" width="0">
15081 <column alignment="center" valignment="top" width="0">
15083 <cell alignment="center" valignment="top" usebox="none">
15086 \begin_layout Plain Layout
15090 \begin_layout Plain Layout
15106 <cell alignment="center" valignment="top" usebox="none">
15109 \begin_layout Plain Layout
15117 <cell alignment="center" valignment="top" usebox="none">
15120 \begin_layout Plain Layout
15130 <cell alignment="center" valignment="top" usebox="none">
15133 \begin_layout Plain Layout
15141 <cell alignment="center" valignment="top" usebox="none">
15144 \begin_layout Plain Layout
15152 <cell alignment="center" valignment="top" usebox="none">
15155 \begin_layout Plain Layout
15165 <cell alignment="center" valignment="top" usebox="none">
15168 \begin_layout Plain Layout
15176 <cell alignment="center" valignment="top" usebox="none">
15179 \begin_layout Plain Layout
15187 <cell alignment="center" valignment="top" usebox="none">
15190 \begin_layout Plain Layout
15194 \begin_layout Plain Layout
15223 \begin_layout Standard
15227 \begin_layout Plain Layout
15237 \begin_inset Note Note
15240 \begin_layout Plain Layout
15241 The following will be displayed when the LaTeX-package
15253 \begin_layout Standard
15254 You need to install the package
15258 to see the content of this section in the output.
15261 \begin_layout Standard
15265 \begin_layout Plain Layout
15277 \begin_layout Subsection
15282 \begin_layout Plain Layout
15283 Table Color ! for Lines
15292 \begin_layout Plain Layout
15293 Color ! for Table Lines
15301 \begin_layout Standard
15302 As described in section
15303 \begin_inset space ~
15307 \begin_inset CommandInset ref
15309 reference "sub:Line-Thickness"
15313 , the line thickness for all lines in a table can be adjusted with the length
15322 \begin_inset space \thinspace{}
15325 pt for all tables of this section.
15329 \begin_layout Plain Layout
15335 arrayrulewidth}{1.5pt}
15343 \begin_layout Standard
15344 To color vertical lines for example with green, create the following column
15345 format in the document preamble, according to the description in section
15346 \begin_inset space ~
15350 \begin_inset CommandInset ref
15352 reference "sub:Customized-Format"
15359 \begin_layout Standard
15364 newcolumntype{W}{!{
15371 \begin_layout Standard
15373 \begin_inset space ~
15377 \begin_inset CommandInset ref
15379 reference "tab:Table-with-vertical-colored"
15387 was used for the last column and
15391 for the other columns.
15394 \begin_layout Standard
15395 If you want to have several colors, define more column formats.
15398 \begin_layout Standard
15399 \begin_inset Float table
15405 \begin_layout Plain Layout
15406 \begin_inset Caption
15408 \begin_layout Plain Layout
15409 \begin_inset CommandInset label
15411 name "tab:Table-with-vertical-colored"
15415 Table with colored vertical lines
15423 \begin_layout Plain Layout
15425 \begin_inset Tabular
15426 <lyxtabular version="3" rows="3" columns="3">
15428 <column alignment="center" valignment="top" width="0" special="Wc">
15429 <column alignment="center" valignment="top" width="0" special="Wc">
15430 <column alignment="center" valignment="top" width="0" special="WcW">
15432 <cell alignment="center" valignment="top" topline="true" usebox="none">
15435 \begin_layout Plain Layout
15441 <cell alignment="center" valignment="top" topline="true" usebox="none">
15444 \begin_layout Plain Layout
15450 <cell alignment="center" valignment="top" topline="true" usebox="none">
15453 \begin_layout Plain Layout
15461 <cell alignment="center" valignment="top" topline="true" usebox="none">
15464 \begin_layout Plain Layout
15470 <cell alignment="center" valignment="top" topline="true" usebox="none">
15473 \begin_layout Plain Layout
15479 <cell alignment="center" valignment="top" topline="true" usebox="none">
15482 \begin_layout Plain Layout
15490 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15493 \begin_layout Plain Layout
15499 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15502 \begin_layout Plain Layout
15508 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15511 \begin_layout Plain Layout
15530 \begin_layout Standard
15531 \begin_inset VSpace bigskip
15534 To color horizontal lines for example with red, like in Table
15535 \begin_inset space ~
15539 \begin_inset CommandInset ref
15541 reference "tab:Table-with-horizontal-colored"
15545 , insert these commands in TeX-Code before the table or table float:
15548 \begin_layout Standard
15558 \begin_inset Newline newline
15566 \begin_inset Newline newline
15573 \begin_layout Plain Layout
15584 arrayrulecolor{red}
15588 arrayrulecolor{black}}
15591 \begin_layout Standard
15595 \begin_layout Plain Layout
15606 \begin_layout Plain Layout
15615 \begin_layout Plain Layout
15619 arrayrulecolor{red}
15623 arrayrulecolor{black}}
15629 \begin_inset Float table
15635 \begin_layout Plain Layout
15636 \begin_inset Caption
15638 \begin_layout Plain Layout
15639 \begin_inset CommandInset label
15641 name "tab:Table-with-horizontal-colored"
15645 Table with colored horizontal lines
15653 \begin_layout Plain Layout
15655 \begin_inset Tabular
15656 <lyxtabular version="3" rows="3" columns="3">
15658 <column alignment="center" valignment="top" width="0">
15659 <column alignment="center" valignment="top" width="0">
15660 <column alignment="center" valignment="top" width="0">
15662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15665 \begin_layout Plain Layout
15671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15674 \begin_layout Plain Layout
15680 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15683 \begin_layout Plain Layout
15691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15694 \begin_layout Plain Layout
15700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15703 \begin_layout Plain Layout
15709 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15712 \begin_layout Plain Layout
15720 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15723 \begin_layout Plain Layout
15729 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15732 \begin_layout Plain Layout
15738 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15741 \begin_layout Plain Layout
15760 \begin_layout Standard
15761 To return to the default line color black, insert this command in TeX-Code
15762 behind the table or table float:
15765 \begin_layout Standard
15777 \begin_layout Standard
15779 \begin_inset space ~
15783 \begin_inset CommandInset ref
15785 reference "tab:Table-with-colored"
15789 is an example with colored vertical and horizontal lines.
15792 \begin_layout Standard
15793 \begin_inset Float table
15799 \begin_layout Plain Layout
15800 \begin_inset Caption
15802 \begin_layout Plain Layout
15803 \begin_inset CommandInset label
15805 name "tab:Table-with-colored"
15809 Table with colored lines
15817 \begin_layout Plain Layout
15819 \begin_inset Tabular
15820 <lyxtabular version="3" rows="3" columns="3">
15822 <column alignment="center" valignment="top" width="0" special="Wc">
15823 <column alignment="center" valignment="top" width="0" special="Wc">
15824 <column alignment="center" valignment="top" width="0" special="WcW">
15826 <cell alignment="center" valignment="top" topline="true" usebox="none">
15829 \begin_layout Plain Layout
15835 <cell alignment="center" valignment="top" topline="true" usebox="none">
15838 \begin_layout Plain Layout
15844 <cell alignment="center" valignment="top" topline="true" usebox="none">
15847 \begin_layout Plain Layout
15855 <cell alignment="center" valignment="top" topline="true" usebox="none">
15858 \begin_layout Plain Layout
15864 <cell alignment="center" valignment="top" topline="true" usebox="none">
15867 \begin_layout Plain Layout
15873 <cell alignment="center" valignment="top" topline="true" usebox="none">
15876 \begin_layout Plain Layout
15883 <row topspace="default">
15884 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15887 \begin_layout Plain Layout
15893 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15896 \begin_layout Plain Layout
15902 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15905 \begin_layout Plain Layout
15924 \begin_layout Standard
15928 \begin_layout Plain Layout
15944 \begin_layout Standard
15948 \begin_layout Plain Layout
15954 arrayrulewidth}{0.4pt}
15962 \begin_layout Section
15963 Table Customization
15967 \begin_layout Plain Layout
15968 Table Customization
15977 \begin_layout Plain Layout
15978 Table ! Customization
15986 \begin_layout Subsection
15988 \begin_inset CommandInset label
15990 name "sub:Row-Spacing"
15998 \begin_layout Plain Layout
15999 Table Customization ! Row Spacing
16007 \begin_layout Standard
16008 You can add vertical space to table rows in the
16012 tab of the table dialog.
16013 You find there three possibilities:
16016 \begin_layout Description
16018 \begin_inset space ~
16022 \begin_inset space ~
16025 row will add space above the characters of the table row.
16026 If the table is a formal table
16030 \begin_layout Plain Layout
16031 Formal tables are explained in section
16032 \begin_inset space ~
16036 \begin_inset CommandInset ref
16038 reference "sec:Formal-Tables"
16047 LyX will insert as default 0.5
16048 \begin_inset space \thinspace{}
16052 For normal tables the inserted space will unfortunately destroy the vertical
16053 table lines as in the following table:
16054 \begin_inset VSpace medskip
16058 \begin_inset Newline newline
16062 \begin_inset space \hspace*{}
16067 \begin_inset space \hfill{}
16071 \begin_inset Tabular
16072 <lyxtabular version="3" rows="3" columns="1">
16074 <column alignment="center" valignment="top" width="0">
16076 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16079 \begin_layout Plain Layout
16086 <row topspace="3mm">
16087 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16090 \begin_layout Plain Layout
16092 \begin_inset space \thinspace{}
16095 mm space top of row
16102 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16105 \begin_layout Plain Layout
16117 \begin_inset space \hfill{}
16121 \begin_inset space \hspace*{}
16126 \begin_inset VSpace medskip
16130 \begin_inset Newline newline
16133 So inserting space to the top of row for normal tables is only useful when
16134 you don't have vertical lines.
16137 \begin_layout Description
16139 \begin_inset space ~
16143 \begin_inset space ~
16146 row will add space below the characters of the table row.
16147 If the table is a formal table LyX will insert as default 0.5
16148 \begin_inset space \thinspace{}
16151 em space, for normal tables the default size is 2
16152 \begin_inset space \thinspace{}
16158 \begin_layout Description
16160 \begin_inset space ~
16163 rows adds space between the current and the following row.
16164 If the table is a formal table LyX will insert as default 0.5
16165 \begin_inset space \thinspace{}
16169 For normal tables the inserted space will unfortunately destroy the vertical
16170 table lines as in the following table:
16171 \begin_inset VSpace medskip
16175 \begin_inset Newline newline
16179 \begin_inset space \hspace*{}
16184 \begin_inset space \hfill{}
16188 \begin_inset Tabular
16189 <lyxtabular version="3" rows="3" columns="1">
16191 <column alignment="center" valignment="top" width="0">
16193 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16196 \begin_layout Plain Layout
16203 <row interlinespace="3mm">
16204 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16207 \begin_layout Plain Layout
16208 \begin_inset Formula $\downarrow$
16212 \begin_inset space \thinspace{}
16215 mm space between row
16216 \begin_inset Formula $\downarrow$
16226 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16229 \begin_layout Plain Layout
16230 \begin_inset Formula $\uparrow$
16234 \begin_inset space \thinspace{}
16237 mm space between row
16238 \begin_inset Formula $\uparrow$
16252 \begin_inset space \hfill{}
16256 \begin_inset space \hspace*{}
16261 \begin_inset VSpace medskip
16265 \begin_inset Newline newline
16268 So inserting space between rows for normal tables is only useful when you
16269 don't have vertical lines.
16272 \begin_layout Standard
16273 \begin_inset VSpace bigskip
16276 When you want to add extra height to all cells of all tables, you can do
16277 this with the following preamble lines:
16280 \begin_layout Standard
16285 @ifundefined{extrarowheight}
16286 \begin_inset Newline newline
16293 \begin_layout Plain Layout
16304 usepackage{array}}{}
16305 \begin_inset Newline newline
16312 extrarowheight}{height}
16315 \begin_layout Standard
16316 But this has the disadvantage that the cell texts are no longer exactly
16317 vertically centered.
16322 will be loaded automatically by LyX when you use self defined table formats.
16323 To avoid that it is loaded twice the command
16329 is used in the above command.)
16332 \begin_layout Standard
16333 In case you are using font sizes larger than the normal size, the table
16334 borders are often too close to the letters.
16335 This can be corrected by inserting the command
16341 in TeX code at the beginning of a table row.
16343 \begin_inset space ~
16347 \begin_inset CommandInset ref
16349 reference "tab:Vertical-alignment-of"
16353 visualizes the effect.
16356 \begin_layout Standard
16358 \begin_inset Float table
16364 \begin_layout Plain Layout
16365 \begin_inset Caption
16367 \begin_layout Plain Layout
16368 \begin_inset CommandInset label
16370 name "tab:Vertical-alignment-of"
16374 Vertical alignment of text with large font sizes.
16382 \begin_layout Plain Layout
16383 \begin_inset space \hfill{}
16387 \begin_inset Float table
16392 \begin_layout Plain Layout
16393 \begin_inset Caption
16395 \begin_layout Plain Layout
16404 \begin_layout Plain Layout
16407 \begin_inset Tabular
16408 <lyxtabular version="3" rows="6" columns="1">
16410 <column alignment="left" valignment="top" width="0">
16412 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16415 \begin_layout Plain Layout
16423 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16426 \begin_layout Plain Layout
16436 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16439 \begin_layout Plain Layout
16449 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16452 \begin_layout Plain Layout
16462 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16465 \begin_layout Plain Layout
16475 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16478 \begin_layout Plain Layout
16497 \begin_inset space \hfill{}
16501 \begin_inset Float table
16506 \begin_layout Plain Layout
16507 \begin_inset Caption
16509 \begin_layout Plain Layout
16510 Table using the command
16524 \begin_layout Plain Layout
16527 \begin_inset Tabular
16528 <lyxtabular version="3" rows="6" columns="1">
16530 <column alignment="left" valignment="top" width="0">
16532 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16535 \begin_layout Plain Layout
16543 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16546 \begin_layout Plain Layout
16552 \begin_layout Plain Layout
16568 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16571 \begin_layout Plain Layout
16577 \begin_layout Plain Layout
16593 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16596 \begin_layout Plain Layout
16602 \begin_layout Plain Layout
16618 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16621 \begin_layout Plain Layout
16627 \begin_layout Plain Layout
16643 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16646 \begin_layout Plain Layout
16652 \begin_layout Plain Layout
16679 \begin_inset space \hfill{}
16690 \begin_layout Subsection
16691 Special Cell Alignment
16695 \begin_layout Plain Layout
16696 Table Customization ! Special Cell Alignment
16704 \begin_layout Standard
16705 Sometimes it looks better when the cell entries of a column are aligned
16706 with a special character, e.
16707 \begin_inset space \thinspace{}
16711 \begin_inset space \space{}
16714 with the decimal separator as in Table
16715 \begin_inset space ~
16719 \begin_inset CommandInset ref
16721 reference "tab:Table-cells-of"
16728 \begin_layout Standard
16729 \begin_inset Float table
16735 \begin_layout Plain Layout
16736 \begin_inset Caption
16738 \begin_layout Plain Layout
16739 \begin_inset CommandInset label
16741 name "tab:Table-cells-of"
16745 Table cells of a column aligned with the decimal separator.
16753 \begin_layout Plain Layout
16755 \begin_inset Tabular
16756 <lyxtabular version="3" rows="4" columns="2">
16758 <column alignment="right" valignment="top" width="0">
16759 <column alignment="left" valignment="top" width="0" special="@{}l">
16761 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16764 \begin_layout Plain Layout
16770 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16773 \begin_layout Plain Layout
16781 <cell alignment="center" valignment="top" usebox="none">
16784 \begin_layout Plain Layout
16790 <cell alignment="center" valignment="top" usebox="none">
16793 \begin_layout Plain Layout
16801 <cell alignment="center" valignment="top" usebox="none">
16804 \begin_layout Plain Layout
16810 <cell alignment="center" valignment="top" usebox="none">
16813 \begin_layout Plain Layout
16821 <cell alignment="center" valignment="top" usebox="none">
16824 \begin_layout Plain Layout
16830 <cell alignment="center" valignment="top" usebox="none">
16833 \begin_layout Plain Layout
16852 \begin_layout Standard
16853 This table was created with a 4×2 table.
16854 The heading is a centered multicolumn.
16855 The first column is right-aligned and contains the digits before the decimal
16856 point and the decimal point.
16857 The second column is left aligned and contains the digits after the decimal
16859 To omit the space that is normally between two table columns, use the following
16860 LaTeX-argument for the second column:
16863 \begin_layout Standard
16869 \begin_layout Standard
16871 \begin_inset space ~
16875 \begin_inset CommandInset ref
16877 reference "tab:Several-table-cell"
16881 shows some example alignments.
16882 For the alignment with the relation sign, you must add the second smallest
16883 math-space at the beginning of the last column to get the correct space
16884 surrounding the relation sign.
16887 \begin_layout Standard
16888 \begin_inset Float table
16894 \begin_layout Plain Layout
16895 \begin_inset Caption
16897 \begin_layout Plain Layout
16898 \begin_inset CommandInset label
16900 name "tab:Several-table-cell"
16904 Several table cell alignments.
16912 \begin_layout Plain Layout
16914 \begin_inset Tabular
16915 <lyxtabular version="3" rows="4" columns="6">
16917 <column alignment="right" valignment="top" width="0">
16918 <column alignment="left" valignment="top" width="0" special="@{}l">
16919 <column alignment="right" valignment="top" width="0">
16920 <column alignment="left" valignment="top" width="0" special="@{}l">
16921 <column alignment="right" valignment="top" width="0">
16922 <column alignment="left" valignment="top" width="0" special="@{}l">
16924 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16927 \begin_layout Plain Layout
16933 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16936 \begin_layout Plain Layout
16942 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16945 \begin_layout Plain Layout
16951 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16954 \begin_layout Plain Layout
16960 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16963 \begin_layout Plain Layout
16969 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16972 \begin_layout Plain Layout
16980 <cell alignment="center" valignment="top" usebox="none">
16983 \begin_layout Plain Layout
16989 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16992 \begin_layout Plain Layout
16994 \begin_inset space \thinspace{}
17002 <cell alignment="center" valignment="top" usebox="none">
17005 \begin_layout Plain Layout
17006 \begin_inset Formula $10\cdot$
17014 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17017 \begin_layout Plain Layout
17018 \begin_inset Formula $10^{\mbox{-}17}$
17026 <cell alignment="center" valignment="top" usebox="none">
17029 \begin_layout Plain Layout
17030 \begin_inset Formula $\Gamma(t)\propto$
17038 <cell alignment="center" valignment="top" usebox="none">
17041 \begin_layout Plain Layout
17042 \begin_inset Formula $\:\Upsilon(t)$
17052 <cell alignment="center" valignment="top" usebox="none">
17055 \begin_layout Plain Layout
17061 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17064 \begin_layout Plain Layout
17066 \begin_inset space \thinspace{}
17074 <cell alignment="center" valignment="top" usebox="none">
17077 \begin_layout Plain Layout
17078 \begin_inset Formula $5.78\cdot$
17086 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17089 \begin_layout Plain Layout
17090 \begin_inset Formula $10^{7}$
17098 <cell alignment="center" valignment="top" usebox="none">
17101 \begin_layout Plain Layout
17102 \begin_inset Formula $A\ne$
17110 <cell alignment="center" valignment="top" usebox="none">
17113 \begin_layout Plain Layout
17114 \begin_inset Formula $\: B_{\mathrm{red}}$
17124 <cell alignment="center" valignment="top" usebox="none">
17127 \begin_layout Plain Layout
17133 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17136 \begin_layout Plain Layout
17138 \begin_inset space \thinspace{}
17146 <cell alignment="center" valignment="top" usebox="none">
17149 \begin_layout Plain Layout
17151 \begin_inset Formula $33.5\cdot$
17159 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17162 \begin_layout Plain Layout
17163 \begin_inset Formula $10^{4}$
17171 <cell alignment="center" valignment="top" usebox="none">
17174 \begin_layout Plain Layout
17175 \begin_inset Formula $\sin(\alpha)\ge$
17183 <cell alignment="center" valignment="top" usebox="none">
17186 \begin_layout Plain Layout
17187 \begin_inset Formula $\:\sin(\beta)$
17208 \begin_layout Standard
17209 \begin_inset VSpace bigskip
17212 There is also the LaTeX-package
17220 \begin_layout Plain Layout
17221 LaTeX-packages ! dcolumn
17226 that provides table cell alignments.
17227 But this unfortunately treats the cell entries as math and does not allow
17228 formulas in table cells: The first column of Table
17229 \begin_inset space ~
17233 \begin_inset CommandInset ref
17235 reference "tab:Several-table-cell"
17243 like the first column in Table
17244 \begin_inset space ~
17248 \begin_inset CommandInset ref
17250 reference "tab:Alignments-when"
17254 and only with some tricks like the expected.
17255 The alignment of the second and third column of Table
17256 \begin_inset space ~
17260 \begin_inset CommandInset ref
17262 reference "tab:Several-table-cell"
17266 is not possible with
17273 \begin_layout Standard
17274 \begin_inset Newpage newpage
17280 \begin_layout Standard
17281 \begin_inset Float table
17287 \begin_layout Plain Layout
17288 \begin_inset Caption
17290 \begin_layout Plain Layout
17291 \begin_inset CommandInset label
17293 name "tab:Alignments-when"
17297 Alignments when LaTeX-package dcolumn is used.
17298 For all column alignments tricks have to be used to get the output.
17306 \begin_layout Plain Layout
17308 \begin_inset Tabular
17309 <lyxtabular version="3" rows="4" columns="3">
17311 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
17312 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
17313 <column alignment="center" valignment="top" width="0" special="D{+}{\,}{9.7}">
17315 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17318 \begin_layout Plain Layout
17324 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17327 \begin_layout Plain Layout
17333 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17336 \begin_layout Plain Layout
17344 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17347 \begin_layout Plain Layout
17349 \begin_inset space \thinspace{}
17357 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17360 \begin_layout Plain Layout
17362 \begin_inset space \thinspace{}
17366 \begin_inset Formula $\mbox{bottles}$
17374 <cell alignment="center" valignment="top" usebox="none">
17377 \begin_layout Plain Layout
17382 \begin_layout Plain Layout
17392 \begin_inset Formula $\mbox{bottles}$
17402 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17405 \begin_layout Plain Layout
17407 \begin_inset space \thinspace{}
17415 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17418 \begin_layout Plain Layout
17420 \begin_inset space \thinspace{}
17424 \begin_inset Formula $\mbox{Pixels}$
17432 <cell alignment="center" valignment="top" usebox="none">
17435 \begin_layout Plain Layout
17440 \begin_layout Plain Layout
17450 \begin_inset Formula $\mbox{Pixels}$
17460 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17463 \begin_layout Plain Layout
17465 \begin_inset space \thinspace{}
17473 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17476 \begin_layout Plain Layout
17478 \begin_inset space \thinspace{}
17482 \begin_inset Formula $\mbox{cm}$
17490 <cell alignment="center" valignment="top" usebox="none">
17493 \begin_layout Plain Layout
17498 \begin_layout Plain Layout
17508 \begin_inset Formula $\mbox{cm}$
17529 \begin_layout Subsection
17530 Customized Cell/Column Format
17531 \begin_inset CommandInset label
17533 name "sub:Customized-Format"
17541 \begin_layout Plain Layout
17542 Table Customization ! Cell/Column Format
17550 \begin_layout Standard
17551 Calculating the needed width for spanned columns like in section
17552 \begin_inset space ~
17556 \begin_inset CommandInset ref
17558 reference "sub:Multicolumn-Calculations"
17562 is very annoying if you have several tables with multicolumn cells.
17563 To make life easier, you can define a cell/column format in the preamble,
17564 so that it can be used in all tables of the document.
17565 The format is defined with the command
17568 \begin_layout Standard
17573 newcolumntype{name of format}[number of arguments]{commands}
17576 \begin_layout Standard
17577 The format name may only consist of one letter.
17602 are predefined and cannot be used.
17603 But all letters are allowed as capitals.
17606 \begin_layout Standard
17607 \begin_inset VSpace medskip
17613 \begin_layout Standard
17614 For vertically and horizontally centered multicolumn cells with a fixed
17615 width you can define the cell format
17618 \begin_layout Standard
17623 newcolumntype{M}[1]{>{
17630 \begin_layout Standard
17637 avoids the problem of hyphenating the first word, as described in section
17638 \begin_inset space ~
17642 \begin_inset CommandInset ref
17644 reference "sub:Multiple-Lines-in"
17649 Now you can simply enter
17652 \begin_layout Standard
17658 \begin_layout Standard
17659 as LaTeX-argument in the table dialog to create a multicolumn.
17662 \begin_layout Standard
17663 \begin_inset VSpace bigskip
17669 \begin_layout Standard
17670 For cells spanned by a multicolumn cell, you can define the format
17673 \begin_layout Standard
17678 newcolumntype{S}[2]{>{
17683 \begin_inset Newline newline
17690 \begin_layout Plain Layout
17705 \begin_layout Plain Layout
17716 arrayrulewidth)*(1-#2))/#2}}
17719 \begin_layout Standard
17720 This format uses equation
17721 \begin_inset CommandInset ref
17727 to calculate the needed width so that each spanned cell has the same width.
17730 \begin_layout Standard
17734 \begin_layout Standard
17737 S{width of multicolumn cell}{number of spanned columns}
17740 \begin_layout Standard
17741 as LaTeX-argument of the column.
17744 \begin_layout Standard
17745 \begin_inset VSpace bigskip
17751 \begin_layout Standard
17752 For colored columns, you can define
17755 \begin_layout Standard
17760 newcolumntype{K}[1]{>{
17767 \begin_layout Standard
17769 \begin_inset Quotes eld
17773 \begin_inset Quotes erd
17776 at the end creates a column with a flexible width whose text is horizontally
17781 \begin_layout Standard
17787 \begin_layout Standard
17791 \begin_layout Standard
17792 \begin_inset VSpace bigskip
17798 \begin_layout Standard
17800 \begin_inset space ~
17804 \begin_inset CommandInset ref
17806 reference "tab:Table-using-user-defined"
17810 use the LaTeX-arguments
17813 \begin_layout Standard
17819 \begin_layout Standard
17820 for the first column and the multicolumn,
17823 \begin_layout Standard
17829 \begin_layout Standard
17830 for the the last column, and
17833 \begin_layout Standard
17839 \begin_layout Standard
17840 for the cells in the second column.
17843 \begin_layout Standard
17844 \begin_inset Float table
17850 \begin_layout Plain Layout
17851 \begin_inset Caption
17853 \begin_layout Plain Layout
17854 \begin_inset CommandInset label
17856 name "tab:Table-using-user-defined"
17860 Table using user-defined table formats
17868 \begin_layout Plain Layout
17870 \begin_inset Tabular
17871 <lyxtabular version="3" rows="3" columns="4">
17873 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17874 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17875 <column alignment="center" valignment="middle" width="0">
17876 <column alignment="center" valignment="middle" width="0" special="K{red}">
17878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17881 \begin_layout Plain Layout
17882 verylongtablecellword
17887 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17890 \begin_layout Plain Layout
17891 multiple lines multicolumn
17896 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17899 \begin_layout Plain Layout
17905 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17908 \begin_layout Plain Layout
17916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17919 \begin_layout Plain Layout
17925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17928 \begin_layout Plain Layout
17934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17937 \begin_layout Plain Layout
17943 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17946 \begin_layout Plain Layout
17954 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17957 \begin_layout Plain Layout
17963 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17966 \begin_layout Plain Layout
17972 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17975 \begin_layout Plain Layout
17981 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17984 \begin_layout Plain Layout
18003 \begin_layout Subsection
18005 \begin_inset CommandInset label
18007 name "sub:Line-Thickness"
18015 \begin_layout Plain Layout
18016 Table Customization ! Line Thickness
18024 \begin_layout Standard
18025 The line thickness for all lines in a table can be adjusted with the length
18033 To set for example a line thickness of 1.5
18034 \begin_inset space \thinspace{}
18038 \begin_inset space ~
18042 \begin_inset CommandInset ref
18044 reference "tab:Table-with-1.5"
18048 , insert the command
18051 \begin_layout Standard
18058 arrayrulewidth}{1.5pt}
18061 \begin_layout Standard
18062 in TeX-Code before the table or table float.
18063 The changed thickness is valid for all following tables.
18064 To use the default value again, set
18071 \begin_inset space \thinspace{}
18074 pt in TeX-Code behind the table or table float.
18077 \begin_layout Standard
18081 \begin_layout Plain Layout
18087 arrayrulewidth}{1.5pt}
18093 \begin_inset Float table
18098 \begin_layout Plain Layout
18099 \begin_inset Caption
18101 \begin_layout Plain Layout
18102 \begin_inset CommandInset label
18104 name "tab:Table-with-1.5"
18109 \begin_inset space \thinspace{}
18120 \begin_layout Plain Layout
18122 \begin_inset Tabular
18123 <lyxtabular version="3" rows="3" columns="3">
18125 <column alignment="center" valignment="top" width="0">
18126 <column alignment="center" valignment="top" width="0">
18127 <column alignment="center" valignment="top" width="0">
18129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18132 \begin_layout Plain Layout
18138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18141 \begin_layout Plain Layout
18147 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18150 \begin_layout Plain Layout
18158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18161 \begin_layout Plain Layout
18167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18170 \begin_layout Plain Layout
18176 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18179 \begin_layout Plain Layout
18187 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18190 \begin_layout Plain Layout
18196 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18199 \begin_layout Plain Layout
18205 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18208 \begin_layout Plain Layout
18228 \begin_layout Plain Layout
18234 arrayrulewidth}{0.4pt}
18242 \begin_layout Standard
18243 \begin_inset VSpace bigskip
18246 To set the line thickness to 1.5
18247 \begin_inset space \thinspace{}
18250 pt only for horizontal lines, like in Table
18251 \begin_inset space ~
18255 \begin_inset CommandInset ref
18257 reference "tab:Table-with-horizontal"
18261 , insert these commands in TeX-Code before the table or table float:
18264 \begin_layout Standard
18274 \begin_inset Newline newline
18282 \begin_inset Newline newline
18291 arrayrulewidth 1.5pt}
18292 \begin_inset Newline newline
18303 arrayrulewidth 0.4pt}}
18306 \begin_layout Standard
18307 To return to the default line thickness, insert this command in TeX-Code
18308 behind the table or table float:
18311 \begin_layout Standard
18323 \begin_layout Standard
18327 \begin_layout Plain Layout
18338 \begin_layout Plain Layout
18347 \begin_layout Plain Layout
18355 arrayrulewidth 1.5pt}
18358 \begin_layout Plain Layout
18368 arrayrulewidth 0.4pt}}
18374 \begin_inset Float table
18379 \begin_layout Plain Layout
18380 \begin_inset Caption
18382 \begin_layout Plain Layout
18383 \begin_inset CommandInset label
18385 name "tab:Table-with-horizontal"
18390 \begin_inset space \thinspace{}
18393 pt thick horizontal lines
18401 \begin_layout Plain Layout
18403 \begin_inset Tabular
18404 <lyxtabular version="3" rows="3" columns="3">
18406 <column alignment="center" valignment="top" width="0">
18407 <column alignment="center" valignment="top" width="0">
18408 <column alignment="center" valignment="top" width="0">
18410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18413 \begin_layout Plain Layout
18419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18422 \begin_layout Plain Layout
18428 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18431 \begin_layout Plain Layout
18439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18442 \begin_layout Plain Layout
18448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18451 \begin_layout Plain Layout
18457 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18460 \begin_layout Plain Layout
18468 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18471 \begin_layout Plain Layout
18477 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18480 \begin_layout Plain Layout
18486 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18489 \begin_layout Plain Layout
18509 \begin_layout Plain Layout
18525 \begin_layout Standard
18526 \begin_inset VSpace bigskip
18529 To set the line thickness to 1.5
18530 \begin_inset space \thinspace{}
18533 pt only for vertical lines, create the following column format in the document
18534 preamble, according to the description in section
18535 \begin_inset space ~
18539 \begin_inset CommandInset ref
18541 reference "sub:Customized-Format"
18548 \begin_layout Standard
18553 newcolumntype{V}{!{
18555 vrule width 1.5pt}}
18558 \begin_layout Standard
18560 \begin_inset space ~
18564 \begin_inset CommandInset ref
18566 reference "tab:Table-with-vertical"
18573 \begin_layout Standard
18579 \begin_layout Standard
18580 was used for the last column and
18583 \begin_layout Standard
18589 \begin_layout Standard
18590 for the other columns.
18593 \begin_layout Standard
18594 \begin_inset Float table
18599 \begin_layout Plain Layout
18600 \begin_inset Caption
18602 \begin_layout Plain Layout
18603 \begin_inset CommandInset label
18605 name "tab:Table-with-vertical"
18610 \begin_inset space \thinspace{}
18613 pt thick vertical lines
18621 \begin_layout Plain Layout
18623 \begin_inset Tabular
18624 <lyxtabular version="3" rows="3" columns="3">
18626 <column alignment="center" valignment="top" width="0" special="Vc">
18627 <column alignment="center" valignment="top" width="0" special="Vc">
18628 <column alignment="center" valignment="top" width="0" special="VcV">
18630 <cell alignment="center" valignment="top" topline="true" usebox="none">
18633 \begin_layout Plain Layout
18639 <cell alignment="center" valignment="top" topline="true" usebox="none">
18642 \begin_layout Plain Layout
18648 <cell alignment="center" valignment="top" topline="true" usebox="none">
18651 \begin_layout Plain Layout
18659 <cell alignment="center" valignment="top" topline="true" usebox="none">
18662 \begin_layout Plain Layout
18668 <cell alignment="center" valignment="top" topline="true" usebox="none">
18671 \begin_layout Plain Layout
18677 <cell alignment="center" valignment="top" topline="true" usebox="none">
18680 \begin_layout Plain Layout
18688 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18691 \begin_layout Plain Layout
18697 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18700 \begin_layout Plain Layout
18706 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18709 \begin_layout Plain Layout
18728 \begin_layout Subsection
18733 \begin_layout Plain Layout
18734 Table Customization ! Dashed Lines
18742 \begin_layout Standard
18746 \begin_layout Plain Layout
18756 \begin_inset Note Note
18759 \begin_layout Plain Layout
18760 The following section will only be displayed when the LaTeX-package
18772 \begin_layout Standard
18773 \begin_inset Float table
18779 \begin_layout Plain Layout
18780 \begin_inset Caption
18782 \begin_layout Plain Layout
18783 \begin_inset CommandInset label
18785 name "tab:Table-with-dashed"
18789 Table with dashed lines
18797 \begin_layout Plain Layout
18799 \begin_inset Tabular
18800 <lyxtabular version="3" rows="5" columns="5">
18802 <column alignment="center" valignment="top" width="0">
18803 <column alignment="center" valignment="top" width="0">
18804 <column alignment="center" valignment="top" width="0" special=":c">
18805 <column alignment="center" valignment="top" width="0">
18806 <column alignment="center" valignment="top" width="0">
18808 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18811 \begin_layout Plain Layout
18817 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18820 \begin_layout Plain Layout
18826 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18829 \begin_layout Plain Layout
18835 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18838 \begin_layout Plain Layout
18844 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18847 \begin_layout Plain Layout
18855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18858 \begin_layout Plain Layout
18864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18867 \begin_layout Plain Layout
18873 <cell alignment="center" valignment="top" topline="true" usebox="none">
18876 \begin_layout Plain Layout
18882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18885 \begin_layout Plain Layout
18891 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18894 \begin_layout Plain Layout
18902 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18905 \begin_layout Plain Layout
18909 \begin_layout Plain Layout
18923 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18926 \begin_layout Plain Layout
18932 <cell alignment="center" valignment="top" usebox="none">
18935 \begin_layout Plain Layout
18941 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18944 \begin_layout Plain Layout
18950 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18953 \begin_layout Plain Layout
18961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18964 \begin_layout Plain Layout
18968 \begin_layout Plain Layout
18982 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18985 \begin_layout Plain Layout
18991 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
18994 \begin_layout Plain Layout
19000 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19003 \begin_layout Plain Layout
19009 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19012 \begin_layout Plain Layout
19020 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19023 \begin_layout Plain Layout
19029 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19032 \begin_layout Plain Layout
19038 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19041 \begin_layout Plain Layout
19047 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19050 \begin_layout Plain Layout
19056 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19059 \begin_layout Plain Layout
19078 \begin_layout Standard
19079 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
19080 As prerequisite the LaTeX-package
19088 \begin_layout Plain Layout
19089 LaTeX-packages ! arydshln
19094 must be loaded in the document preamble with the command
19097 \begin_layout Standard
19102 usepackage{arydshln}
19105 \begin_layout Standard
19106 To make a vertical line dashed, enter the colon
19107 \begin_inset Quotes eld
19111 \begin_inset Quotes erd
19114 together with the character for the horizontal alignment as LaTeX-argument
19115 in the table cell dialog.
19118 \begin_layout Standard
19119 For a horizontal dashed line add the command
19122 \begin_layout Standard
19130 \begin_layout Standard
19131 in TeX-Code as first element of the first cell in the table row.
19134 \begin_layout Standard
19135 For dashed multicolumn lines use the command
19138 \begin_layout Standard
19143 cdashline{line number
19148 \begin_layout Standard
19149 in TeX-Code as first element of the first cell in the table row.
19150 If you have for example a multicolumn spanning over columns 2 to 4 and
19151 you want to have a dashed line above, add the command
19154 \begin_layout Standard
19162 \begin_layout Standard
19163 as first element of the first cell in the row of the multicolumn.
19166 \begin_layout Standard
19167 \begin_inset VSpace bigskip
19173 \begin_layout Standard
19175 \begin_inset space ~
19179 \begin_inset CommandInset ref
19181 reference "tab:Table-with-dashed"
19186 \begin_inset Quotes eld
19194 \begin_inset Quotes erd
19197 as LaTeX-argument of the third column.
19198 The TeX-Code command
19204 was inserted to the first cell of the third row and the the TeX-Code command
19205 \begin_inset Newline newline
19214 was inserted to the first cell of the fourth row.
19217 \begin_layout Standard
19218 \begin_inset Note Greyedout
19221 \begin_layout Plain Layout
19226 The used LaTeX-package
19230 is apparently not compatible with the LaTeX-package
19238 \begin_layout Plain Layout
19239 LaTeX-packages ! colortbl
19244 that is used for colored tables in section
19245 \begin_inset space ~
19249 \begin_inset CommandInset ref
19251 reference "sec:Colored-Tables"
19256 That means colored tables cannot have dashed lines.
19264 \begin_layout Standard
19268 \begin_layout Plain Layout
19278 \begin_inset Note Note
19281 \begin_layout Plain Layout
19282 The following will be displayed when the LaTeX-package
19294 \begin_layout Standard
19295 You need to install the package
19299 to see the content of this section in the output.
19302 \begin_layout Standard
19306 \begin_layout Plain Layout
19318 \begin_layout Chapter
19323 \begin_layout Plain Layout
19332 \begin_layout Section
19334 \begin_inset CommandInset label
19336 name "sec:FloatIntroduction"
19344 \begin_layout Plain Layout
19345 Floats ! Introduction
19353 \begin_layout Standard
19354 A float is a block of text associated with some sort of label, which doesn't
19355 have a fixed location.
19357 \begin_inset Quotes eld
19361 \begin_inset Quotes erd
19364 forward or backward a page or two, to wherever it fits best.
19372 \begin_inset space ~
19377 are also floats, because they can float to the next page when there are
19378 too many notes at the page.
19381 \begin_layout Standard
19382 Floats allow a high quality layout.
19383 Images and tables can evenly be spread to the pages to avoid white space
19384 and pages without text.
19385 As the floating often destroys the context between the text and the image/table
19386 , every float can be referenced in the text.
19387 Floats are therefore numbered.
19388 Referencing is described in section
19389 \begin_inset space ~
19393 \begin_inset CommandInset ref
19395 reference "sec:Referencing-Floats"
19402 \begin_layout Standard
19403 To insert a float, use the menu
19405 Insert\SpecialChar \menuseparator
19413 inset, a box with a label.
19414 The label will automatically be translated to the document language in
19416 Behind the label you can insert the caption text.
19417 The image or table is inserted above or below the caption in a separate
19418 paragraph within the float.
19419 More about the caption placement is described in section
19420 \begin_inset space ~
19424 \begin_inset CommandInset ref
19426 reference "sec:Caption-Placement"
19431 To keep your LyX-document readable, you can open and close the float box
19432 by left-clicking on the box label.
19433 A closed float box looks like this:
19434 \begin_inset Graphics
19435 filename clipart/floatQt4.png
19437 scaleBeforeRotation
19441 – a gray button with a red label.
19444 \begin_layout Standard
19445 It is recommended to insert floats as a separate paragraph to avoid possible
19446 LaTeX-errors that can occur when the surrounding text is specially formatted.
19449 \begin_layout Standard
19450 Existing figures or tables can be put into a float by marking them and then
19451 pressing the corresponding toolbar button for a new float.
19454 \begin_layout Section
19458 \begin_layout Standard
19459 Besides figure and table floats that are described in section
19460 \begin_inset space ~
19464 \begin_inset CommandInset ref
19466 reference "sec:Figure-Floats"
19471 \begin_inset CommandInset ref
19473 reference "sec:Table-Floats"
19477 , respectively, LyX offers the float types
19488 \begin_layout Subsection
19493 \begin_layout Plain Layout
19494 Floats ! Algorithms
19502 \begin_layout Standard
19503 \begin_inset Float algorithm
19509 \begin_layout Plain Layout
19510 \begin_inset Caption
19512 \begin_layout Plain Layout
19513 \begin_inset CommandInset label
19515 name "alg:Example-Algorithm-float"
19519 Example Algorithm float
19527 \begin_layout LyX-Code
19529 \begin_inset Newline newline
19532 Sum:= Sum + A(I); /*comment*/
19533 \begin_inset Newline newline
19537 \begin_inset VSpace -4mm
19548 \begin_layout Standard
19549 This float type is inserted with the menu
19551 Insert\SpecialChar \menuseparator
19552 Floats\SpecialChar \menuseparator
19556 It is used for program codes and descriptions of algorithms and can be
19557 seen as an alternative to program code listings that are explained in chapter
19558 \begin_inset space ~
19562 \begin_inset CommandInset ref
19564 reference "cha:Program-Code-Listings"
19569 A possible environment for algorithms is the
19573 , described in LyX's
19579 \begin_inset space ~
19583 \begin_inset CommandInset ref
19585 reference "alg:Example-Algorithm-float"
19589 is an example of an algorithm float where -4
19590 \begin_inset space \thinspace{}
19593 mm vertical space was added at the end of the float to have the bottom rule
19594 exactly below the last text line.
19597 \begin_layout Standard
19598 The float label is not automatically translated into the document language.
19599 If your document is not in English, you have to do this manually by adding
19600 the following line to the document preamble
19605 \begin_layout Standard
19610 floatname{algorithm}{your
19611 \begin_inset space ~
19617 \begin_layout Standard
19621 \begin_inset space ~
19627 \begin_inset Quotes eld
19635 \begin_inset Quotes erd
19641 \begin_layout Standard
19642 To insert the list of algorithms you can use the menu
19644 Insert\SpecialChar \menuseparator
19646 \begin_inset space \thinspace{}
19650 \begin_inset space \thinspace{}
19653 TOC\SpecialChar \menuseparator
19656 when your document has the same language as LyX's menu names.
19657 In other cases use this command in TeX-Code instead:
19660 \begin_layout Standard
19665 listof{algorithm}{your
19666 \begin_inset space ~
19672 \begin_layout Standard
19676 \begin_inset space ~
19682 \begin_inset Quotes eld
19690 \begin_inset Quotes erd
19696 \begin_layout Standard
19697 Algorithm floats are not by default numbered in the scheme
19698 \begin_inset Quotes eld
19702 \begin_inset Quotes erd
19705 like it is the case for table and figure floats in many document-classes.
19706 To number algorithm floats in the same scheme, add this command to your
19710 \begin_layout Standard
19715 numberwithin{algorithm}{chapter}
19718 \begin_layout Standard
19719 To be able to use the command
19728 \begin_inset space ~
19733 in the document settings the option
19736 \begin_inset space ~
19740 \begin_inset space ~
19744 \begin_inset space ~
19752 \begin_layout Subsection
19757 \begin_layout Plain Layout
19758 Floats ! Wrap Floats
19766 \begin_layout Standard
19767 \begin_inset Wrap figure
19774 \begin_layout Plain Layout
19775 \begin_inset Graphics
19776 filename clipart/mobius.eps
19778 scaleBeforeRotation
19779 rotateOrigin center
19786 \begin_layout Plain Layout
19787 \begin_inset Caption
19789 \begin_layout Plain Layout
19790 \begin_inset CommandInset label
19792 name "fig:This-is-a"
19796 This is a figure wrap float.
19806 This float type is used if you want to wrap text around a figure or table
19807 so that it only occupies some fraction of the column width.
19808 It can be inserted using the menu
19810 Insert\SpecialChar \menuseparator
19811 Floats\SpecialChar \menuseparator
19813 \begin_inset space ~
19817 \begin_inset space ~
19825 \begin_inset space ~
19829 \begin_inset space ~
19834 if the LaTeX-package
19842 \begin_layout Plain Layout
19843 LaTeX-packages ! wrapfig
19847 \begin_layout Plain Layout
19865 \begin_layout Plain Layout
19866 Installing a LaTeX-package is explained it in the
19869 \begin_inset space ~
19879 The settings of the float can be modified by right-clicking on the float
19881 The mandatory settings are the float
19894 that specifies how much the float is set into the paragraph
19895 \begin_inset space \thinspace{}
19899 \begin_inset space \thinspace{}
19902 page margin, and the
19905 \begin_inset space ~
19910 that specifies how many text lines the float will approximately need.
19911 The line span is often hard to be approximated, so better only use it when
19912 you encounter float placement problems.
19913 You can furthermore decide if LaTeX is allowed to let the float float within
19914 the paragraph or to surrounding paragraphs.
19916 \begin_inset space ~
19920 \begin_inset CommandInset ref
19922 reference "fig:This-is-a"
19926 is an example text wrap float with a width of 40
19927 \begin_inset space \thinspace{}
19931 \begin_inset space \thinspace{}
19934 cm overhang, set to the left.
19938 \begin_layout Plain Layout
19939 Available units are explained in appendix
19940 \begin_inset space ~
19944 \begin_inset CommandInset ref
19946 reference "cha:Units-available-in"
19958 \begin_layout Standard
19959 \begin_inset Note Greyedout
19962 \begin_layout Plain Layout
19968 \begin_inset space ~
19971 wrap float floats are fragile! E.
19972 \begin_inset space \thinspace{}
19976 \begin_inset space \space{}
19979 having a figure too close to the bottom of the page can mess things up in
19980 the way that the float doesn't appear in the output or that it is placed
19981 over some other text.
19989 \begin_layout Standard
19993 \begin_layout Itemize
19994 Wrap floats should not be placed in paragraphs that run over a page break.
19995 That means that wrap floats should better be inserted to the exact place
19996 when the document is nearly finished and you are able to estimate where
19997 page breaks will appear.
20000 \begin_layout Itemize
20001 Wrap floats should either be placed in an own paragraph before the paragraph
20002 where they should wrap into or within a paragraph.
20005 \begin_layout Itemize
20006 Wrap floats in consecutive paragraphs may cause troubles, so assure that
20007 there is a text paragraph between them as separator.
20010 \begin_layout Itemize
20011 Wrap floats are not allowed in section headings or tables.
20014 \begin_layout Section
20019 \begin_layout Plain Layout
20028 \begin_layout Standard
20029 Floats are usually numbered either independent from the sections the floats
20030 are in, or in the scheme
20031 \begin_inset Quotes eld
20035 \begin_inset Quotes erd
20039 \begin_inset Quotes eld
20043 \begin_inset Quotes erd
20047 This depends on the used document class.
20050 \begin_layout Standard
20051 To change the section independent numbering, you can use this command in
20052 the document preamble:
20055 \begin_layout Standard
20067 \begin_layout Standard
20074 is the command that prints the table number, for figure floats, the command
20088 prints in the command above the table number as small roman number.
20091 \begin_layout Standard
20092 To change the numbering scheme for example to
20093 \begin_inset Quotes eld
20097 \begin_inset Quotes erd
20100 , use this command in the preamble:
20103 \begin_layout Standard
20108 numberwithin{table}{subsection}
20111 \begin_layout Standard
20112 To be able to use the command
20121 \begin_inset space ~
20126 in the document settings the option
20129 \begin_inset space ~
20133 \begin_inset space ~
20137 \begin_inset space ~
20145 \begin_layout Standard
20146 Please also have a look at section
20147 \begin_inset space ~
20151 \begin_inset CommandInset ref
20153 reference "sub:Footnote-Numbering"
20157 for the details and important notes about the numbering commands.
20160 \begin_layout Section
20162 \begin_inset CommandInset label
20164 name "sec:Referencing-Floats"
20172 \begin_layout Plain Layout
20173 Floats ! References
20182 \begin_layout Plain Layout
20183 References ! to Floats
20191 \begin_layout Standard
20192 To reference a float, insert a label into its caption using the menu
20194 Insert\SpecialChar \menuseparator
20197 or the toolbar button
20198 \begin_inset Graphics
20199 filename ../images/label-insert.png
20201 scaleBeforeRotation
20206 A grey label box like this one:
20207 \begin_inset Graphics
20208 filename clipart/labelQt4.png
20210 scaleBeforeRotation
20214 will be inserted and the label window pops up asking for the label text.
20215 LyX offers as text the first words of the caption with a prefix.
20216 The prefix depends on the float type, e.
20217 \begin_inset space \thinspace{}
20221 \begin_inset space \space{}
20224 for figure floats the prefix will be "
20231 \begin_layout Standard
20232 The label is used as anchor and name for the reference.
20233 You can refer to the label using the menu
20235 Insert\SpecialChar \menuseparator
20238 or the toolbar button
20239 \begin_inset Graphics
20240 filename ../images/dialog-show-new-inset_ref.png
20242 scaleBeforeRotation
20247 A grey cross-reference box like this one:
20248 \begin_inset Graphics
20249 filename clipart/referenceQt4.png
20251 scaleBeforeRotation
20255 will be inserted and the cross-reference window appear showing all labels
20257 If you have multiple LyX-documents opened, choose the one you are working
20258 on from the drop-list at the top of the dialog.
20259 You can now sort the labels alphabetically and then choose one.
20260 At the position of the cross-reference box the float number will appear
20264 \begin_layout Standard
20265 It is recommended to use a protected space between the cross-reference name
20266 and its number to avoid line breaks between them.
20267 If a cross-reference refers to a non-existing label, you will see two question
20268 marks in the output instead of the reference.
20271 \begin_layout Standard
20272 You can change labels at any time by clicking on the label box.
20273 References to the changed label will automatically change its link to the
20274 new label text, so that you don't need to take care about this.
20277 \begin_layout Standard
20281 \begin_inset space ~
20285 \begin_inset space ~
20290 in the cross-reference window sets the cursor before the referred label.
20291 The button text changes then to Go
20292 \begin_inset space ~
20295 Back and you can use it to set the cursor back to the cross-reference.
20296 Right-clicking on a cross-reference box also sets the cursor before the
20297 referenced label but without a possibility to go back.
20300 \begin_layout Subsection
20301 Cross-Reference Formats
20302 \begin_inset CommandInset label
20304 name "sub:Cross-Reference-Formats"
20312 \begin_layout Plain Layout
20313 References ! Formats
20321 \begin_layout Standard
20322 There are six varieties of cross-references:
20325 \begin_layout Description
20326 <reference>: prints the float number, this is the default:
20327 \begin_inset CommandInset ref
20329 reference "fig:Two-distorted-images"
20336 \begin_layout Description
20337 (<reference>): prints the float number within two parentheses, this is the
20338 style normally used to reference formulas, especially when the reference
20340 \begin_inset Quotes eld
20344 \begin_inset Quotes erd
20348 \begin_inset CommandInset ref
20357 \begin_layout Description
20358 <page>: prints the page number: Page
20359 \begin_inset space ~
20363 \begin_inset CommandInset ref
20364 LatexCommand pageref
20365 reference "fig:Two-distorted-images"
20372 \begin_layout Description
20374 \begin_inset space ~
20378 \begin_inset space ~
20381 <page>: prints the text "on page" and the page number:
20382 \begin_inset CommandInset ref
20383 LatexCommand vpageref
20384 reference "fig:Two-distorted-images"
20391 \begin_layout Description
20393 \begin_inset space ~
20397 \begin_inset space ~
20401 \begin_inset space ~
20404 <page>: prints the float number, the text "on page", and the page number:
20406 \begin_inset CommandInset ref
20408 reference "fig:Two-distorted-images"
20415 \begin_layout Description
20417 \begin_inset space ~
20420 reference: prints a self defined cross-reference format.
20422 \begin_inset Note Greyedout
20425 \begin_layout Plain Layout
20430 This feature is only available when you have the LaTeX-package
20442 \begin_layout Standard
20443 Note that the style <page> won't print the page number if the label is on
20444 the previous, the same, or the next page.
20446 \begin_inset space \thinspace{}
20450 \begin_inset space \space{}
20454 \begin_inset Quotes eld
20462 \begin_inset Quotes erd
20468 \begin_layout Standard
20469 The number and current page of the referred document part in the output,
20470 is automatically calculated by LaTeX.
20471 The varieties are adjusted in the field
20475 of the cross-reference window, that appear when you click on the cross-referenc
20479 \begin_layout Subsection
20480 Automatic Reference Naming
20484 \begin_layout Plain Layout
20485 References ! Automatic Reference Naming
20493 \begin_layout Standard
20502 \begin_layout Plain Layout
20503 LaTeX-packages ! hyperref
20508 , that is enabled in the
20516 dialog, provides a very useful feature that cross-references automatically
20517 include the name of the referenced floats (or text parts like
20522 So you will save to write e.
20523 \begin_inset space \thinspace{}
20527 \begin_inset space \space{}
20531 \begin_inset Quotes eld
20535 \begin_inset Quotes erd
20538 before every reference to a figure.
20539 To use this feature, enable
20543 and insert this line to the LaTeX preamble:
20546 \begin_layout Standard
20562 \begin_layout Standard
20563 When you prefer other reference names than the default ones, for example
20564 you want instead of
20565 \begin_inset Quotes eld
20569 \begin_inset Quotes erd
20573 \begin_inset Quotes eld
20577 \begin_inset space \thinspace{}
20581 \begin_inset Quotes eld
20584 , you can redefine the name by inserting this to the preamble:
20587 \begin_layout Standard
20598 sectionautorefname}
20599 \begin_inset Newline newline
20606 \begin_layout Plain Layout
20620 \begin_layout Standard
20621 When you are using another document language than English, replace
20622 \begin_inset Newline newline
20637 , where *** is the name of the used language.
20640 \begin_layout Standard
20641 To get automatic names, but not for certain reference types, for example
20642 not for equations, use this preamble code:
20645 \begin_layout Standard
20653 \begin_inset Newline newline
20663 \begin_inset Newline newline
20674 equationautorefname}
20675 \begin_inset Newline newline
20682 \begin_layout Plain Layout
20698 \begin_layout Standard
20699 More about this topic can be found in
20704 \begin_inset CommandInset citation
20713 \begin_layout Standard
20714 \begin_inset Note Greyedout
20717 \begin_layout Plain Layout
20722 Automatic reference naming cannot be used when you use cross-references
20726 \begin_inset space ~
20731 style, as described in section
20732 \begin_inset space ~
20736 \begin_inset CommandInset ref
20738 reference "sub:Cross-Reference-Formats"
20750 \begin_layout Standard
20755 manual is an example where automatic reference naming is used.
20758 \begin_layout Subsection
20760 \begin_inset CommandInset label
20762 name "sub:Reference-Position"
20770 \begin_layout Plain Layout
20771 References ! Reference Position
20779 \begin_layout Standard
20788 \begin_layout Plain Layout
20789 LaTeX-packages ! hyperref
20802 dialog to link cross-references in the output, you will see that clicking
20803 on an image float reference jumps to the image label.
20804 The caption will be the first text part on the screen, so that you cannot
20805 see the image without scrolling.
20806 This is because the reference link anchor is placed at the position of
20808 With the use of the package
20816 \begin_layout Plain Layout
20817 LaTeX-packages ! hypcap
20822 , which is part of the LaTeX-package
20830 \begin_layout Plain Layout
20831 LaTeX-packages ! oberdiek
20836 , the link anchor is placed at the beginning of a float.
20837 To use this feature for figure floats, load
20841 in the document preamble with the line
20844 \begin_layout Standard
20849 usepackage[figure]{hypcap}
20852 \begin_layout Standard
20857 for all float types but this is not recommended for stability reasons.
20858 For more information, have a look at
20863 \begin_inset CommandInset citation
20872 \begin_layout Standard
20873 \begin_inset Note Greyedout
20876 \begin_layout Plain Layout
20885 has no effect for references to subfigures.
20893 \begin_layout Section
20895 \begin_inset CommandInset label
20897 name "sec:Float-Placement"
20905 \begin_layout Plain Layout
20914 \begin_layout Standard
20915 Right-clicking on a float-box opens a dialog where you can alter the placement
20916 options that LaTeX uses for positioning the float.
20917 \begin_inset Newline newline
20923 \begin_inset space ~
20928 is only useful for two-column documents: If you select it, the float will
20929 span across both columns on the page instead of being confined to just
20931 \begin_inset Newline newline
20937 \begin_inset space ~
20942 is used to rotate floats, see section
20943 \begin_inset CommandInset ref
20945 reference "sec:Rotated-Floats"
20952 \begin_layout Standard
20953 You can use one ore more of the following options in the float dialog to
20954 set the placement for a particular float when you uncheck the option
20957 \begin_inset space ~
20961 \begin_inset space ~
20969 \begin_layout Description
20971 \begin_inset space ~
20975 \begin_inset space ~
20978 possible try to place the float on the position where it is inserted
20981 \begin_layout Description
20983 \begin_inset space ~
20987 \begin_inset space ~
20990 page try to place the float on the top of the current page
20993 \begin_layout Description
20995 \begin_inset space ~
20999 \begin_inset space ~
21002 page try to place the float on the bottom of the current page
21005 \begin_layout Description
21007 \begin_inset space ~
21011 \begin_inset space ~
21014 floats try to place the float on an own page
21017 \begin_layout Standard
21018 The order of the above option is
21023 That means, if you use the default placement, LaTeX will first try out
21027 \begin_inset space ~
21031 \begin_inset space ~
21039 \begin_inset space ~
21043 \begin_inset space ~
21048 , and then the others.
21049 If you don't use the default, LaTeX will try only the checked options but
21051 If none of the 4 placements are possible the procedure is internally repeated
21052 but it is tried to put the float on the following page.
21055 \begin_layout Standard
21056 By default, each option has its own rules:
21059 \begin_layout Labeling
21060 \labelwidthstring 00.00.0000
21064 \begin_inset space ~
21068 \begin_inset space ~
21073 only floats occupying less than 70
21074 \begin_inset space \thinspace{}
21077 % of the page can be placed at the top of a page (
21086 \begin_layout Labeling
21087 \labelwidthstring 00.00.0000
21091 \begin_inset space ~
21095 \begin_inset space ~
21100 : only floats occupying less than 30
21101 \begin_inset space \thinspace{}
21104 % of the page can be placed at the bottom of a page.
21114 \begin_layout Labeling
21115 \labelwidthstring 00.00.0000
21119 \begin_inset space ~
21123 \begin_inset space ~
21128 : only if more than 50
21129 \begin_inset space \thinspace{}
21132 % of the page are occupied by floats, several floats can be set together
21143 \begin_layout Standard
21144 If you don't like these rules, you can ignore them by using the additional
21148 \begin_inset space ~
21152 \begin_inset space ~
21158 \begin_inset Newline newline
21161 You can also redefine the rules with LaTeX-commands that are given in parenthese
21162 s behind the rules description above.
21163 To increase for example the often too small default of the bottom-rule
21165 \begin_inset space \thinspace{}
21168 % of the page, add this line to your document preamble:
21171 \begin_layout Standard
21178 bottomfraction}{0.5}
21181 \begin_layout Standard
21182 Sometimes you might need, under all circumstances, a float to be placed
21183 exactly at the position where it is inserted.
21184 For this case you can use the option
21187 \begin_inset space ~
21193 Use this option very rarely and only if the document is nearly ready to
21195 Because the float is then no longer able to
21196 \begin_inset Quotes eld
21200 \begin_inset Quotes erd
21203 when you change your document and this will often destroy the page layout.
21206 \begin_layout Standard
21207 There are no placement options for text wrap floats, because they are always
21208 surrounded by the text of a certain paragraph.
21209 \begin_inset VSpace bigskip
21215 \begin_layout Standard
21216 Sometimes you have the problem that a float is placed at the top of a page
21217 while its corresponding section starts at the middle of the page, so that
21218 the reader could think the float is part of the previous section.
21219 To avoid this the LaTeX-command
21226 It suppresses a given float placement for the page where it is inserted
21227 and can therefore be used to avoid that floats could be set before a section
21229 To get this, add these commands to your document preamble:
21232 \begin_layout Standard
21242 \begin_inset Newline newline
21256 \begin_layout Standard
21257 You can define the same for all section headings, like chapters and subsections.
21258 This definition is not recommended to be used for small text parts like
21259 subsubsections because LaTeX may then have problems to find a suitable
21263 \begin_layout Standard
21264 \begin_inset VSpace bigskip
21267 In some cases it is required to have all figures/tables at the end of the
21269 For this purpose the LaTeX-package
21277 \begin_layout Plain Layout
21278 LaTeX-packages ! endfloat
21284 It puts all figure and table floats at the end of the document into own
21286 At the original float position a text hint like
21287 \begin_inset Quotes eld
21293 \begin_inset space ~
21299 \begin_inset Quotes erd
21303 The endfloat-package is loaded in the preamble with the line
21306 \begin_layout Standard
21311 usepackage[options]{endfloat}
21314 \begin_layout Standard
21315 There are various package options to format the created figure/table sections.
21316 For more information we refer to the
21321 \begin_inset CommandInset citation
21328 \begin_inset Newline newline
21332 \begin_inset Note Greyedout
21335 \begin_layout Plain Layout
21340 doesn't provide an automatic translation for the text hint, you have to
21341 do this manually, see section
21342 \begin_inset space ~
21346 \begin_inset CommandInset citation
21358 \begin_inset Newline newline
21362 \begin_inset Note Greyedout
21365 \begin_layout Plain Layout
21370 There is currently a bug in
21374 when the caption contains a German
21375 \begin_inset Quotes eld
21379 \begin_inset Quotes erd
21383 Use in this case the command
21384 \begin_inset Quotes eld
21394 \begin_inset Quotes erd
21397 in TeX-Code instead of
21398 \begin_inset Quotes eld
21402 \begin_inset Quotes erd
21413 \begin_layout Standard
21414 \begin_inset VSpace bigskip
21417 For more details about float placements, have a look at LaTeX books,
21418 \begin_inset CommandInset citation
21420 key "latexcompanion,latexguide,latexbook"
21427 \begin_layout Section
21429 \begin_inset CommandInset label
21431 name "sec:Rotated-Floats"
21439 \begin_layout Plain Layout
21448 \begin_layout Standard
21449 Especially for wide tables you might have floats rotated.
21450 To rotate a whole float including the caption, right-click on the float-box
21454 \begin_inset space ~
21462 \begin_layout Standard
21463 Rotated floats are always placed on its own page (or column, in case you
21464 have a multi-column document).
21465 You can let them span several columns using the float settings option
21468 \begin_inset space ~
21474 Floats are rotated so that you can read them from the outside margin.
21475 To force a certain rotation direction for all pages, you can add either
21484 to the document class options.
21487 \begin_layout Standard
21488 Referencing rotated floats is the same like for normal floats, the caption
21489 format is also the same: Table
21490 \begin_inset space ~
21494 \begin_inset CommandInset ref
21496 reference "tab:Rotated-table"
21500 is an example of a rotated table float.
21503 \begin_layout Standard
21504 \begin_inset Note Greyedout
21507 \begin_layout Plain Layout
21512 Not all DVI-viewers are able to display rotated floats.
21520 \begin_layout Standard
21521 \begin_inset Float table
21526 \begin_layout Plain Layout
21527 \begin_inset Caption
21529 \begin_layout Plain Layout
21530 \begin_inset CommandInset label
21532 name "tab:Rotated-table"
21544 \begin_layout Plain Layout
21546 \begin_inset Tabular
21547 <lyxtabular version="3" rows="1" columns="5">
21549 <column alignment="center" valignment="top" width="0">
21550 <column alignment="center" valignment="top" width="0">
21551 <column alignment="center" valignment="top" width="0">
21552 <column alignment="center" valignment="top" width="0">
21553 <column alignment="center" valignment="top" width="0">
21555 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21558 \begin_layout Plain Layout
21564 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21567 \begin_layout Plain Layout
21573 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21576 \begin_layout Plain Layout
21582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21585 \begin_layout Plain Layout
21591 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21594 \begin_layout Plain Layout
21613 \begin_layout Section
21618 \begin_layout Plain Layout
21627 \begin_layout Standard
21628 Subfloats are for example used when a figure consists of several images.
21629 They are created by inserting a float to an existing float.
21630 The placement of the subfloats can be controlled like for paragraphs as
21632 \begin_inset space ~
21636 \begin_inset CommandInset ref
21638 reference "tab:Two-subtables-side"
21643 \begin_inset CommandInset ref
21645 reference "tab:Two-subtables-upon"
21652 \begin_layout Standard
21653 Referencing subfloats works as for normal floats: Table
21654 \begin_inset space ~
21658 \begin_inset CommandInset ref
21660 reference "tab:This-is-subtable-a"
21665 \begin_inset CommandInset ref
21667 reference "tab:This-is-subtable-b"
21671 are subtables of table
21672 \begin_inset space ~
21676 \begin_inset CommandInset ref
21678 reference "tab:Two-subtables-side"
21685 \begin_layout Standard
21686 \begin_inset Float table
21691 \begin_layout Plain Layout
21692 \begin_inset Caption
21694 \begin_layout Plain Layout
21695 \begin_inset CommandInset label
21697 name "tab:Two-subtables-side"
21701 Two subtables placed side by side.
21709 \begin_layout Plain Layout
21711 \begin_inset space \hfill{}
21715 \begin_inset Float table
21720 \begin_layout Plain Layout
21721 \begin_inset Caption
21723 \begin_layout Plain Layout
21724 \begin_inset CommandInset label
21726 name "tab:This-is-subtable-a"
21730 This is subtable a.
21738 \begin_layout Plain Layout
21740 \begin_inset Tabular
21741 <lyxtabular version="3" rows="1" columns="5">
21743 <column alignment="center" valignment="top" width="0">
21744 <column alignment="center" valignment="top" width="0">
21745 <column alignment="center" valignment="top" width="0">
21746 <column alignment="center" valignment="top" width="0">
21747 <column alignment="center" valignment="top" width="0">
21749 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21752 \begin_layout Plain Layout
21758 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21761 \begin_layout Plain Layout
21767 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21770 \begin_layout Plain Layout
21776 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21779 \begin_layout Plain Layout
21785 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21788 \begin_layout Plain Layout
21805 \begin_inset space \hfill{}
21809 \begin_inset Float table
21814 \begin_layout Plain Layout
21815 \begin_inset Caption
21817 \begin_layout Plain Layout
21818 \begin_inset CommandInset label
21820 name "tab:This-is-subtable-b"
21824 This is subtable b.
21832 \begin_layout Plain Layout
21834 \begin_inset Tabular
21835 <lyxtabular version="3" rows="1" columns="5">
21837 <column alignment="center" valignment="top" width="0">
21838 <column alignment="center" valignment="top" width="0">
21839 <column alignment="center" valignment="top" width="0">
21840 <column alignment="center" valignment="top" width="0">
21841 <column alignment="center" valignment="top" width="0">
21843 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21846 \begin_layout Plain Layout
21852 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21855 \begin_layout Plain Layout
21861 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21864 \begin_layout Plain Layout
21870 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21873 \begin_layout Plain Layout
21879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21882 \begin_layout Plain Layout
21899 \begin_inset space \hfill{}
21910 \begin_layout Standard
21911 \begin_inset Float table
21916 \begin_layout Plain Layout
21917 \begin_inset Caption
21919 \begin_layout Plain Layout
21920 \begin_inset CommandInset label
21922 name "tab:Two-subtables-upon"
21926 Two subtables placed one upon the other.
21927 (a) table with 4 cells, (b) table with 5 cells.
21935 \begin_layout Plain Layout
21937 \begin_inset Float table
21942 \begin_layout Plain Layout
21943 \begin_inset Caption
21945 \begin_layout Plain Layout
21954 \begin_layout Plain Layout
21956 \begin_inset Tabular
21957 <lyxtabular version="3" rows="1" columns="4">
21959 <column alignment="center" valignment="top" width="0">
21960 <column alignment="center" valignment="top" width="0">
21961 <column alignment="center" valignment="top" width="0">
21962 <column alignment="center" valignment="top" width="0">
21964 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21967 \begin_layout Plain Layout
21973 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21976 \begin_layout Plain Layout
21982 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21985 \begin_layout Plain Layout
21991 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21994 \begin_layout Plain Layout
22013 \begin_layout Plain Layout
22015 \begin_inset Float table
22020 \begin_layout Plain Layout
22021 \begin_inset Caption
22023 \begin_layout Plain Layout
22032 \begin_layout Plain Layout
22034 \begin_inset Tabular
22035 <lyxtabular version="3" rows="1" columns="5">
22037 <column alignment="center" valignment="top" width="0">
22038 <column alignment="center" valignment="top" width="0">
22039 <column alignment="center" valignment="top" width="0">
22040 <column alignment="center" valignment="top" width="0">
22041 <column alignment="center" valignment="top" width="0">
22043 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22046 \begin_layout Plain Layout
22052 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22055 \begin_layout Plain Layout
22061 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22064 \begin_layout Plain Layout
22070 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22073 \begin_layout Plain Layout
22079 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22082 \begin_layout Plain Layout
22106 \begin_layout Section
22107 Floats Side by Side
22111 \begin_layout Plain Layout
22112 Floats ! Side by side
22120 \begin_layout Standard
22121 To place floats side by side, like for Figure
22122 \begin_inset space ~
22126 \begin_inset CommandInset ref
22128 reference "fig:Float-left"
22133 \begin_inset CommandInset ref
22135 reference "fig:Float-right"
22144 In it two minipage boxes are inserted.
22148 \begin_layout Plain Layout
22149 Minipages are explained in section
22150 \begin_inset space ~
22154 \begin_inset CommandInset ref
22156 reference "sec:Minipages"
22165 The width is set to 45
22166 \begin_inset space \thinspace{}
22170 \begin_inset space \thinspace{}
22173 column% and the box alignment to
22178 The minipage boxes contain the image and the caption in the same way as
22179 they are in a float.
22180 The only difference is that the image unit
22183 \begin_inset space ~
22187 \begin_inset space ~
22192 is now calculated according to the width of the minipage boxes.
22195 \begin_layout Standard
22196 \begin_inset Float figure
22201 \begin_layout Plain Layout
22202 \begin_inset Box Frameless
22211 height_special "totalheight"
22214 \begin_layout Plain Layout
22216 \begin_inset Graphics
22217 filename clipart/mobius.eps
22220 scaleBeforeRotation
22227 \begin_layout Plain Layout
22228 \begin_inset Caption
22230 \begin_layout Plain Layout
22231 \begin_inset CommandInset label
22233 name "fig:Float-left"
22237 Float on the left side.
22248 \begin_inset space \hfill{}
22252 \begin_inset Box Frameless
22261 height_special "totalheight"
22264 \begin_layout Plain Layout
22266 \begin_inset Graphics
22267 filename clipart/platypus.eps
22270 scaleBeforeRotation
22277 \begin_layout Plain Layout
22278 \begin_inset Caption
22280 \begin_layout Plain Layout
22281 \begin_inset CommandInset label
22283 name "fig:Float-right"
22287 Float on the right side.
22300 \begin_layout Plain Layout
22309 \begin_layout Section
22314 \begin_layout Plain Layout
22315 Caption ! Formatting
22324 \begin_layout Plain Layout
22325 Floats ! Caption Formatting
22331 \begin_inset CommandInset label
22333 name "sec:Caption-Formatting"
22340 \begin_layout Standard
22345 environment is the default paragraph environment for
22350 On the LyX screen captions appear as label, e.
22351 \begin_inset space \thinspace{}
22355 \begin_inset space \space{}
22359 \begin_inset Quotes eld
22367 \begin_inset Quotes erd
22370 followed by the caption text.
22372 \begin_inset Quotes eld
22376 \begin_inset Quotes erd
22379 is the actual reference number.
22380 By default the label and the number are in the same font as the caption
22381 text and a colon follows the number to divide the label from the text.
22382 This caption format is not suitable for all document formats.
22386 \begin_layout Standard
22387 To change the default caption format, load the LaTeX-package
22395 \begin_layout Plain Layout
22396 LaTeX-packages ! caption
22401 in the document preamble with this line:
22404 \begin_layout Standard
22409 usepackage[format definition]{caption}
22412 \begin_layout Standard
22413 To have for example the label and the number in sans-serif bold font and
22414 the table captions always above the table like in this document, use the
22418 \begin_layout Standard
22423 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22426 \begin_layout Standard
22427 You can also define different caption formats for the different float types.
22428 In this case load the
22432 package without format specific options and define the different formats
22433 with the help of the command
22436 \begin_layout Standard
22441 captionsetup[float type]{format definition}
22444 \begin_layout Standard
22445 in the document preamble.
22446 For example the caption formats of Figure
22447 \begin_inset space ~
22451 \begin_inset CommandInset ref
22453 reference "fig:This-is-an-fig"
22458 \begin_inset space ~
22462 \begin_inset CommandInset ref
22464 reference "tab:This-is-an-tab"
22468 can be created using these commands in the document preamble:
22471 \begin_layout Standard
22476 usepackage[tableposition=top]{caption}
22479 \begin_inset Newline newline
22486 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22487 \begin_inset Newline newline
22494 \begin_layout Plain Layout
22502 captionsetup[figure]
22510 \begin_inset Newline newline
22515 captionsetup[table]{labelfont={bf,sf}}
22518 \begin_layout Standard
22519 \begin_inset Note Greyedout
22522 \begin_layout Plain Layout
22531 has no effect when a
22539 \begin_layout Plain Layout
22540 LaTeX-packages ! KOMA-script
22545 document class is used.
22546 In this case the document class option
22558 \begin_layout Standard
22559 For more information about the package
22563 we refer to its documentation
22564 \begin_inset CommandInset citation
22573 \begin_layout Standard
22574 To change the label name from e.
22575 \begin_inset space \thinspace{}
22579 \begin_inset space \space{}
22583 \begin_inset Quotes eld
22587 \begin_inset Quotes erd
22591 \begin_inset Quotes eld
22595 \begin_inset Quotes erd
22598 use this preamble command:
22601 \begin_layout Standard
22608 fnum@figure}{Image~
22613 \begin_layout Standard
22620 inserts the figure number and
22623 \begin_inset Quotes eld
22629 \begin_inset Quotes erd
22632 creates a protected space.
22635 \begin_layout Standard
22636 \begin_inset VSpace bigskip
22647 \begin_layout Plain Layout
22648 LaTeX-packages ! KOMA-script
22655 article (KOMA-script)
22663 letter (KOMA-script)
22667 report (KOMA-script)
22670 \begin_inset space \thinspace{}
22673 ), you can alternatively to the
22681 's built-in command
22688 For example, to have the caption label in bold, add this command to your
22692 \begin_layout Standard
22697 setkomafont{captionlabel}{
22702 \begin_layout Standard
22703 For more information about
22714 \begin_inset CommandInset citation
22723 \begin_layout Standard
22727 \begin_layout Plain Layout
22731 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
22738 \begin_inset Note Note
22741 \begin_layout Plain Layout
22742 The caption format is changed only for this example.
22750 \begin_layout Standard
22751 \begin_inset Float figure
22757 \begin_layout Plain Layout
22759 \begin_inset Graphics
22760 filename clipart/mobius.eps
22763 scaleBeforeRotation
22770 \begin_layout Plain Layout
22771 \begin_inset Caption
22773 \begin_layout Plain Layout
22774 \begin_inset CommandInset label
22776 name "fig:This-is-an-fig"
22780 This is an example figure caption that is longer than one line to show the
22781 different caption format.
22782 Here a self-defined caption format is used.
22795 \begin_layout Standard
22799 \begin_layout Plain Layout
22803 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
22812 \begin_layout Standard
22813 \begin_inset Float table
22819 \begin_layout Plain Layout
22820 \begin_inset Caption
22822 \begin_layout Plain Layout
22823 \begin_inset CommandInset label
22825 name "tab:This-is-an-tab"
22829 This is an example table caption that is longer than one line to show the
22830 different caption format.
22831 Here the standard caption format for tables in this document is used.
22839 \begin_layout Plain Layout
22841 \begin_inset Tabular
22842 <lyxtabular version="3" rows="1" columns="5">
22844 <column alignment="center" valignment="top" width="0">
22845 <column alignment="center" valignment="top" width="0">
22846 <column alignment="center" valignment="top" width="0">
22847 <column alignment="center" valignment="top" width="0">
22848 <column alignment="center" valignment="top" width="0">
22850 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22853 \begin_layout Plain Layout
22859 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22862 \begin_layout Plain Layout
22868 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22871 \begin_layout Plain Layout
22877 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22880 \begin_layout Plain Layout
22886 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22889 \begin_layout Plain Layout
22908 \begin_layout Section
22913 \begin_layout Plain Layout
22914 Caption ! Placement
22923 \begin_layout Plain Layout
22924 Floats ! Caption Placement
22930 \begin_inset CommandInset label
22932 name "sec:Caption-Placement"
22939 \begin_layout Standard
22940 The common caption placement rule is:
22943 \begin_layout Description
22944 Figure: Caption is set below the figure
22947 \begin_layout Description
22948 Table: Caption is set above the table
22951 \begin_layout Standard
22952 Having the caption above the table is unfortunately not supported in LaTeX's
22954 That means if you are using the document classes
22970 there will be no space between the caption and the table.
22971 To insert the needed space, add the following option to the load command
22972 of the LaTeX-package
22976 in your document preamble
22980 \begin_layout Plain Layout
22982 \begin_inset space ~
22986 \begin_inset CommandInset ref
22988 reference "sec:Caption-Formatting"
22992 for more information of the package
23004 \begin_layout Standard
23010 \begin_layout Standard
23019 \begin_layout Plain Layout
23020 LaTeX-packages ! KOMA-script
23027 article (KOMA-script)
23035 letter (KOMA-script)
23039 report (KOMA-script)
23042 \begin_inset space \thinspace{}
23045 ), you can alternatively to the
23049 package set the document class option
23056 \begin_layout Standard
23057 \begin_inset VSpace bigskip
23060 It is also possible to set the caption beside a figure or table.
23061 To get this the LaTeX-package
23069 \begin_layout Plain Layout
23070 LaTeX-packages ! sidecap
23075 has to be loaded in the document preamble with the line
23078 \begin_layout Standard
23083 usepackage[option]{sidecap}
23086 \begin_layout Standard
23087 If you set no option, the caption is placed on the side of the outer page
23088 margin – to the right on odd pages, to the left on even pages.
23089 You can change the placement to inner margin with the option
23094 To force the placement always to the right or left, use the option
23105 \begin_layout Standard
23109 \begin_layout Plain Layout
23119 \begin_inset Note Note
23122 \begin_layout Plain Layout
23123 The following section will only be displayed when the LaTeX-package
23135 \begin_layout Standard
23136 To place in LyX the caption of a float on the side, it is necessary to add
23137 these commands to the document preamble:
23140 \begin_layout Standard
23146 \begin_layout Standard
23154 \begin_inset Newline newline
23161 \begin_layout Plain Layout
23177 \begin_inset Newline newline
23184 \begin_layout Plain Layout
23200 \begin_inset Newline newline
23207 \begin_layout Plain Layout
23218 renewenvironment{table}{
23225 \begin_layout Standard
23233 \begin_inset Newline newline
23240 \begin_layout Plain Layout
23256 \begin_inset Newline newline
23263 \begin_layout Plain Layout
23281 \begin_layout Standard
23289 \begin_inset Newline newline
23296 \begin_layout Plain Layout
23312 \begin_inset Newline newline
23319 \begin_layout Plain Layout
23335 \begin_inset Newline newline
23342 \begin_layout Plain Layout
23353 renewenvironment{figure}{
23360 \begin_layout Standard
23368 \begin_inset Newline newline
23375 \begin_layout Plain Layout
23391 \begin_inset Newline newline
23398 \begin_layout Plain Layout
23416 \begin_layout Standard
23422 \begin_layout Standard
23423 The commands allow you to redefine the floats so that the caption is set
23425 For figure floats use the command
23428 \begin_layout Standard
23436 \begin_layout Standard
23437 in TeX-Code before the float.
23438 Behind the float insert the command
23441 \begin_layout Standard
23449 \begin_layout Standard
23450 in TeX-Code to get back to the original float definition.
23453 \begin_layout Standard
23454 For table floats use the corresponding commands
23457 \begin_layout Standard
23471 \begin_layout Standard
23473 \begin_inset space ~
23477 \begin_inset CommandInset ref
23479 reference "fig:cap-beside-fig"
23484 \begin_inset space ~
23488 \begin_inset CommandInset ref
23490 reference "tab:cap-beside-tab"
23494 are examples where the caption is set beside.
23497 \begin_layout Standard
23498 You can see in the examples that the caption text appears at the top of
23499 the floats for table floats and at the bottom for figure floats.
23500 To change this, you can use the command
23503 \begin_layout Standard
23508 sidecaptionvpos{float type}{placement}
23511 \begin_layout Standard
23512 in the document preamble or in TeX-Code before the float.
23513 The float type is either
23521 , the placement can be
23522 \begin_inset Quotes eld
23530 \begin_inset Quotes erd
23534 \begin_inset Quotes eld
23542 \begin_inset Quotes erd
23546 \begin_inset Quotes eld
23554 \begin_inset Quotes erd
23558 To have for example the caption of figure floats vertically centered, use
23562 \begin_layout Standard
23567 sidecaptionvpos{figure}{c}
23570 \begin_layout Standard
23571 This was used for Figure
23572 \begin_inset space ~
23576 \begin_inset CommandInset ref
23578 reference "fig:cap-beside-fig-2"
23585 \begin_layout Standard
23586 \begin_inset VSpace medskip
23589 For more information about the package
23593 we refer to its documentation
23594 \begin_inset CommandInset citation
23603 \begin_layout Standard
23604 \begin_inset Note Greyedout
23607 \begin_layout Plain Layout
23620 \begin_layout Plain Layout
23621 LaTeX-packages ! hypcap
23626 , described in section
23627 \begin_inset space ~
23631 \begin_inset CommandInset ref
23633 reference "sub:Reference-Position"
23637 , has no effect on floats with the caption set beside.
23645 \begin_layout Standard
23649 \begin_layout Plain Layout
23661 \begin_layout Standard
23662 \begin_inset Float figure
23667 \begin_layout Plain Layout
23668 \begin_inset Graphics
23669 filename clipart/escher-lsd.eps
23671 scaleBeforeRotation
23678 \begin_layout Plain Layout
23679 \begin_inset Caption
23681 \begin_layout Plain Layout
23682 \begin_inset CommandInset label
23684 name "fig:cap-beside-fig"
23688 This is a caption beside a figure.
23701 \begin_layout Standard
23705 \begin_layout Plain Layout
23717 \begin_layout Standard
23718 \begin_inset Float table
23723 \begin_layout Plain Layout
23724 \begin_inset Caption
23726 \begin_layout Plain Layout
23727 \begin_inset CommandInset label
23729 name "tab:cap-beside-tab"
23733 This is a caption beside a table.
23741 \begin_layout Plain Layout
23742 \begin_inset Tabular
23743 <lyxtabular version="3" rows="4" columns="5">
23745 <column alignment="center" valignment="top" width="0">
23746 <column alignment="center" valignment="top" width="0">
23747 <column alignment="center" valignment="top" width="0">
23748 <column alignment="center" valignment="top" width="0">
23749 <column alignment="center" valignment="top" width="0">
23751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23754 \begin_layout Plain Layout
23760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23763 \begin_layout Plain Layout
23769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23772 \begin_layout Plain Layout
23778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23781 \begin_layout Plain Layout
23787 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23790 \begin_layout Plain Layout
23798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23801 \begin_layout Plain Layout
23807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23810 \begin_layout Plain Layout
23816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23819 \begin_layout Plain Layout
23825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23828 \begin_layout Plain Layout
23834 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23837 \begin_layout Plain Layout
23845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23848 \begin_layout Plain Layout
23854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23857 \begin_layout Plain Layout
23863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23866 \begin_layout Plain Layout
23872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23875 \begin_layout Plain Layout
23881 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23884 \begin_layout Plain Layout
23892 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23895 \begin_layout Plain Layout
23901 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23904 \begin_layout Plain Layout
23910 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23913 \begin_layout Plain Layout
23919 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23922 \begin_layout Plain Layout
23928 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23931 \begin_layout Plain Layout
23950 \begin_layout Standard
23954 \begin_layout Plain Layout
23966 \begin_layout Standard
23970 \begin_layout Plain Layout
23974 sidecaptionvpos{figure}{c}
23980 \begin_inset Float figure
23985 \begin_layout Plain Layout
23986 \begin_inset Graphics
23987 filename clipart/escher-lsd.eps
23989 scaleBeforeRotation
23996 \begin_layout Plain Layout
23997 \begin_inset Caption
23999 \begin_layout Plain Layout
24000 \begin_inset CommandInset label
24002 name "fig:cap-beside-fig-2"
24006 This is a vertically centered caption beside a figure.
24019 \begin_layout Standard
24023 \begin_layout Plain Layout
24035 \begin_layout Standard
24039 \begin_layout Plain Layout
24049 \begin_inset Note Note
24052 \begin_layout Plain Layout
24053 The following will be displayed when the LaTeX-package
24065 \begin_layout Standard
24066 You need to install the LaTeX-package
24070 to see the following part of this section in the output.
24073 \begin_layout Standard
24077 \begin_layout Plain Layout
24089 \begin_layout Section
24094 \begin_layout Plain Layout
24095 Floats ! Float Lists
24103 \begin_layout Standard
24104 Similar to the the table of contents where the sections of the document
24105 are listed, there are listings for all float types, like the figures of
24107 You can insert them via the
24109 Insert\SpecialChar \menuseparator
24111 \begin_inset space ~
24115 \begin_inset space ~
24123 \begin_layout Standard
24124 The list entries are the float captions or its short title, the float number,
24125 and the page number where they appear in the document.
24128 \begin_layout Standard
24129 You can find the list of figures and tables at the end of this document.
24132 \begin_layout Chapter
24136 \begin_layout Section
24141 \begin_layout Plain Layout
24150 \begin_layout Standard
24151 Notes are inserted with the toolbar button
24152 \begin_inset Graphics
24153 filename ../images/note-insert.png
24155 scaleBeforeRotation
24161 Insert\SpecialChar \menuseparator
24165 There are three types of notes:
24168 \begin_layout Description
24170 \begin_inset space ~
24173 Note This note type is for internal notes that won't appear in the output.
24174 Its note-box looks like this:
24175 \begin_inset Newline newline
24179 \begin_inset Newline newline
24183 \begin_inset Graphics
24184 filename clipart/LyXNoteImageQt4.png
24187 scaleBeforeRotation
24192 \begin_inset Note Note
24195 \begin_layout Plain Layout
24196 This is text in a note box that doesn't appear in the output.
24204 \begin_layout Description
24205 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24206 ent, when you export the document to LaTeX via the menu
24208 File\SpecialChar \menuseparator
24209 Export\SpecialChar \menuseparator
24210 LaTeX (pdflatex) / (plain)
24213 Its note-box looks like this:
24214 \begin_inset Newline newline
24218 \begin_inset Newline newline
24222 \begin_inset Graphics
24223 filename clipart/CommentNoteImageQt4.png
24226 scaleBeforeRotation
24231 \begin_inset Note Comment
24234 \begin_layout Plain Layout
24235 This is text in a note box that only appears as comment in LaTeX-files.
24243 \begin_layout Description
24245 \begin_inset space ~
24248 Out This note will appear in the output as grey text.
24249 Its note-box looks like this:
24250 \begin_inset Newline newline
24254 \begin_inset Newline newline
24258 \begin_inset Graphics
24259 filename clipart/GreyedOutNoteImageQt4.png
24262 scaleBeforeRotation
24267 \begin_inset Newline newline
24274 \begin_layout Plain Layout
24278 renewenvironment{lyxgreyedout}
24281 \begin_layout Plain Layout
24285 textcolor[gray]{0.8}
24295 \begin_inset Note Greyedout
24298 \begin_layout Plain Layout
24303 \begin_layout Plain Layout
24304 This is an example footnote within a greyed out note.
24309 of a comment that appears in the output as grey text.
24318 \begin_layout Plain Layout
24322 renewenvironment{lyxgreyedout}
24325 \begin_layout Plain Layout
24339 \begin_inset Note Note
24342 \begin_layout Plain Layout
24343 The greyed out note is here redefined to show it with the original LyX definitio
24344 n because greyed out notes are redefined in the preamble of this document,
24345 as described below, to have blue text.
24351 \begin_inset Newline newline
24355 \begin_inset Newline newline
24358 As you can see in the example, the first line of greyed out notes is a bit
24359 indented and greyed out notes can have footnotes.
24362 \begin_layout Standard
24363 \begin_inset VSpace bigskip
24366 When you use the toolbar button
24367 \begin_inset Graphics
24368 filename ../images/note-insert.png
24370 scaleBeforeRotation
24377 \begin_inset space ~
24383 You can switch between the five note types by right-clicking on the note-box.
24388 If you want to turn existing text into a note, mark it and click on the
24402 To change a note to text, press the backspace key when the cursor is in
24403 the first position of a note, or press the deletey key when the cursor
24404 is in the very last position of the note, respectively.
24407 \begin_layout Standard
24408 \begin_inset VSpace bigskip
24411 You can change the text color of the greyed out notes in the preamble with
24412 the following command:
24415 \begin_layout Standard
24420 renewenvironment{lyxgreyedout}
24421 \begin_inset Newline newline
24428 \begin_layout Plain Layout
24446 \begin_layout Standard
24447 The available colors and the method to define own colors is explained in
24449 \begin_inset space ~
24453 \begin_inset CommandInset ref
24455 reference "sec:Colored-Tables"
24462 \begin_layout Standard
24463 Notes that appear in blue in this document are set using greyed out notes
24467 \begin_layout Section
24469 \begin_inset CommandInset label
24471 name "sec:Footnotes"
24479 \begin_layout Plain Layout
24489 \begin_layout Plain Layout
24498 \begin_layout Standard
24499 Footnotes can be inserted using the toolbar button
24500 \begin_inset Graphics
24501 filename ../images/footnote-insert.png
24503 scaleBeforeRotation
24509 Insert\SpecialChar \menuseparator
24521 then the following footnote-box:
24522 \begin_inset Graphics
24523 filename clipart/footnoteQt4.png
24525 scaleBeforeRotation
24533 where you can enter the footnote text.
24534 If you want to turn existing text into a footnote, mark it and click on
24556 to text, press the Backspace key when the cursor is in the first position
24565 , or press the Delete key when the cursor is in the very last position of
24577 \begin_layout Standard
24578 Here is an example footnote:
24586 \begin_layout Plain Layout
24587 \begin_inset CommandInset label
24589 name "foot:This-is-an"
24593 This is an example footnote.
24606 \begin_layout Plain Layout
24610 newcounter{MyRepeatFoot}
24613 \begin_layout Plain Layout
24617 setcounter{MyRepeatFoot}{
24627 \begin_layout Standard
24628 The footnote will appear in the output as a superscript number at the text
24629 position where the footnote box is placed.
24630 The footnote text is placed at the bottom of the current page.
24631 The footnote number is calculated by LaTeX, the numbers are consecutive.
24632 It depends on your document-class, if the footnote number is reset for
24636 \begin_layout Standard
24637 Footnotes can be referenced like floats: Insert a label into the footnote
24638 and cross-reference this label in the text as described in section
24639 \begin_inset space ~
24643 \begin_inset CommandInset ref
24645 reference "sec:Referencing-Floats"
24650 \begin_inset Newline newline
24653 This is a cross-reference of Footnote
24654 \begin_inset space ~
24658 \begin_inset CommandInset ref
24660 reference "foot:This-is-an"
24667 \begin_layout Standard
24668 \begin_inset VSpace defskip
24671 To use footnotes within tables, you have to use minipages, see section
24672 \begin_inset space ~
24676 \begin_inset CommandInset ref
24678 reference "sec:Minipages"
24683 Footnotes within longtables are described in section
24684 \begin_inset space ~
24688 \begin_inset CommandInset ref
24690 reference "sub:Footnotes-in-Longtables"
24697 \begin_layout Standard
24698 \begin_inset VSpace defskip
24701 To create only a mark for a footnote, use the command
24705 footnotemark[number]
24708 This is used when you have the same annotation several times in a text
24709 but doesn't want to print the footnote text every time.
24710 \begin_inset Newline newline
24713 As you don't know the number of the repeating footnote while you are writing
24714 the text, you have to store its number.
24715 For the following footnote mark example, these commands were inserted in
24716 TeX-Code behind Footnote
24717 \begin_inset space ~
24721 \begin_inset CommandInset ref
24723 reference "foot:This-is-an"
24727 to store the footnote number:
24730 \begin_layout Standard
24735 newcounter{MyRepeatFoot}
24736 \begin_inset Newline newline
24741 setcounter{MyRepeatFoot}{
24746 \begin_layout Standard
24747 The footnote mark was then created with this command:
24750 \begin_layout Standard
24760 \begin_layout Standard
24761 Here is an example footnote mark:
24769 \begin_layout Plain Layout
24783 \begin_layout Subsection
24785 \begin_inset CommandInset label
24787 name "sub:Footnote-Numbering"
24795 \begin_layout Plain Layout
24796 Footnotes ! Numbering
24804 \begin_layout Standard
24805 To reset the footnote number back to 1 after each section
24807 , add this command to your document preamble:
24810 \begin_layout Standard
24815 @addtoreset{footnote}{section}
24818 \begin_layout Standard
24819 \begin_inset VSpace bigskip
24822 The following preamble command changes the footnote numbering style to small
24826 \begin_layout Standard
24838 \begin_layout Standard
24842 \begin_layout Plain Layout
24855 This is a footnote with roman numbering:
24859 \begin_layout Plain Layout
24860 This is an example footnote with roman numbering.
24868 \begin_layout Standard
24869 To change the numbering style to capital roman numerals replace in the command
24884 \begin_inset Quotes eld
24888 \begin_inset Quotes erd
24891 footnotes with capital or small Latin letters use
24905 \begin_inset Quotes eld
24909 \begin_inset Quotes erd
24912 footnotes with symbols use
24921 \begin_layout Standard
24922 \begin_inset Note Greyedout
24925 \begin_layout Plain Layout
24930 You can only number 26 footnotes with Latin letters, because this numbering
24931 is limited to single letters.
24937 \begin_inset Newline newline
24941 \begin_inset Note Greyedout
24944 \begin_layout Plain Layout
24949 You can only number 9 footnotes with symbols.
24957 \begin_layout Standard
24958 To return to the default numbering style when you changed to another one,
24971 in the command above.
24975 \begin_layout Plain Layout
24991 \begin_layout Standard
24992 \begin_inset VSpace bigskip
24998 \begin_layout Standard
24999 If you want to have footnotes numbered in the scheme
25000 \begin_inset Quotes eld
25004 \begin_inset Quotes erd
25007 , add the following command to your document preamble:
25010 \begin_layout Standard
25015 numberwithin{footnote}{chapter}
25018 \begin_layout Standard
25019 To be able to use the command
25028 \begin_inset space ~
25033 in the document settings the option
25036 \begin_inset space ~
25040 \begin_inset space ~
25044 \begin_inset space ~
25052 \begin_layout Standard
25056 \begin_layout Plain Layout
25060 numberwithin{footnote}{chapter}
25065 This is another example footnote:
25071 \begin_layout Plain Layout
25072 This is a footnote numbered in the scheme
25073 \begin_inset Quotes eld
25077 \begin_inset Quotes erd
25091 \begin_layout Plain Layout
25107 \begin_layout Standard
25108 \begin_inset Note Greyedout
25111 \begin_layout Plain Layout
25122 always prints out the footnote number as arabic number; previous redefinitions
25123 to get non-arabic numbers are overwritten.
25131 \begin_layout Standard
25132 So to get for example the scheme
25133 \begin_inset Quotes eld
25139 \begin_inset Quotes erd
25142 , use this command instead of
25151 \begin_layout Standard
25165 \begin_layout Subsection
25170 \begin_layout Plain Layout
25171 Footnotes ! Placement
25179 \begin_layout Standard
25180 If you have several footnotes in one page, they appear without vertical
25181 space between them at the bottom of the page.
25182 To make them better readable you can e.
25183 \begin_inset space \thinspace{}
25187 \begin_inset space \space{}
25191 \begin_inset space \thinspace{}
25194 mm space with the following preamble command:
25197 \begin_layout Standard
25207 \begin_inset Newline newline
25221 \begin_layout Standard
25222 \begin_inset VSpace bigskip
25225 In a two-column document the footnotes appear at the bottom of every column,
25227 \begin_inset space ~
25231 \begin_inset CommandInset ref
25233 reference "fig:Standard-footnote-placement"
25238 If the footnotes should only appear at the bottom of the right column,
25240 \begin_inset space ~
25244 \begin_inset CommandInset ref
25246 reference "fig:Footnote-placement-in"
25250 , use the LaTeX-package
25258 \begin_layout Plain Layout
25259 LaTeX-packages ! ftnright
25264 with this command in the document preamble:
25267 \begin_layout Standard
25272 usepackage{ftnright}
25275 \begin_layout Standard
25276 \begin_inset Float figure
25282 \begin_layout Plain Layout
25286 \begin_layout Plain Layout
25296 \begin_inset Graphics
25297 filename clipart/without_fntright.pdf
25299 scaleBeforeRotation
25307 \begin_layout Plain Layout
25317 \begin_layout Plain Layout
25318 \begin_inset Caption
25320 \begin_layout Plain Layout
25321 \begin_inset CommandInset label
25323 name "fig:Standard-footnote-placement"
25327 Standard footnote placement in two-column documents.
25340 \begin_layout Standard
25341 \begin_inset Float figure
25347 \begin_layout Plain Layout
25351 \begin_layout Plain Layout
25361 \begin_inset Graphics
25362 filename clipart/with_fntright.pdf
25364 scaleBeforeRotation
25372 \begin_layout Plain Layout
25382 \begin_layout Plain Layout
25383 \begin_inset Caption
25385 \begin_layout Plain Layout
25386 \begin_inset CommandInset label
25388 name "fig:Footnote-placement-in"
25392 Footnote placement in two-column documents when the LaTeX-package
25409 \begin_layout Standard
25410 \begin_inset VSpace bigskip
25413 In some scientific literature it is usual to collect the footnotes and print
25414 them in a separate paragraph at the the end of a section, like in Figure
25415 \begin_inset space ~
25419 \begin_inset CommandInset ref
25421 reference "fig:Endnotes"
25426 They are then so called
25427 \begin_inset Quotes eld
25431 \begin_inset Quotes erd
25438 \begin_layout Plain Layout
25444 To use endnotes instead of footnotes in your document, load in the menu
25447 Document\SpecialChar \menuseparator
25448 Settings\SpecialChar \menuseparator
25454 \begin_inset space ~
25458 \begin_inset space ~
25464 To insert the collected footnotes, insert the command
25467 \begin_layout Standard
25475 \begin_layout Standard
25476 in TeX-Code at the the end of a section or chapter.
25479 \begin_layout Standard
25480 \begin_inset Float figure
25485 \begin_layout Plain Layout
25490 \begin_layout Plain Layout
25500 \begin_inset Graphics
25501 filename clipart/endnotes.pdf
25502 scaleBeforeRotation
25510 \begin_layout Plain Layout
25520 \begin_layout Plain Layout
25521 \begin_inset Caption
25523 \begin_layout Plain Layout
25524 \begin_inset CommandInset label
25526 name "fig:Endnotes"
25530 Endnotes – footnotes are printed in a separate paragraph at the end of sections
25544 \begin_layout Standard
25545 \begin_inset VSpace medskip
25548 The paragraph heading for the endnotes isn't automatically translated into
25549 the document language, this must be done manually.
25550 The following preamble command translate the default English name
25551 \begin_inset Quotes eld
25555 \begin_inset Quotes erd
25558 to the German translation
25559 \begin_inset Quotes eld
25563 \begin_inset Quotes erd
25569 \begin_layout Standard
25576 notesname}{Anmerkungen}
25579 \begin_layout Standard
25580 \begin_inset VSpace medskip
25583 The numbering of endnotes can be changed like the footnote numbering as
25584 described in section
25585 \begin_inset space ~
25589 \begin_inset CommandInset ref
25591 reference "sub:Footnote-Numbering"
25595 ; just replace the command
25608 To reset the endnote number use the command
25614 as described in section
25615 \begin_inset space ~
25619 \begin_inset CommandInset ref
25621 reference "sub:Footnote-Numbering"
25625 and replace the command parameter
25636 \begin_layout Standard
25637 To create only a mark for an endnote, use the command
25641 endnotemark[number]
25643 similar to the command
25649 , described in section
25650 \begin_inset space ~
25654 \begin_inset CommandInset ref
25656 reference "sec:Footnotes"
25663 \begin_layout Standard
25664 \begin_inset VSpace bigskip
25667 Footnotes can also be placed in the page margin and the footnote text alignment
25668 can be changed, see the LaTeX-package
25676 \begin_layout Plain Layout
25677 LaTeX-packages ! footmisc
25683 \begin_inset CommandInset citation
25689 for more information about this.
25692 \begin_layout Standard
25693 For various further footnote formatting issues have a look at LaTeX-books,
25695 \begin_inset CommandInset citation
25697 key "latexcompanion,latexguide,latexbook"
25704 \begin_layout Section
25709 \begin_layout Plain Layout
25710 Notes ! Margin Notes
25718 \begin_layout Standard
25719 Margin notes look and behave in LyX like footnotes.
25720 They are inserted via the menu
25722 Insert\SpecialChar \menuseparator
25724 \begin_inset space ~
25729 or the toolbar button
25730 \begin_inset Graphics
25731 filename ../images/marginalnote-insert.png
25733 scaleBeforeRotation
25748 \begin_inset Quotes eld
25752 \begin_inset Quotes erd
25755 appears where you can enter the text of the margin note.
25758 \begin_layout Standard
25759 At the side is an example margin note.
25764 \begin_inset Marginal
25767 \begin_layout Plain Layout
25768 This is a margin note.
25776 \begin_layout Standard
25777 Margin notes appear at the right side in single-sided documents.
25778 In double-sided documents they appear in the outer margin – left on even
25779 pages, right on odd pages.
25780 The text of margin notes is aligned opposite to the outer margin – right-aligne
25781 d when the note appears in the left margin.
25782 The first line of the margin note is placed at the position of the text
25783 line where it is inserted in the document.
25786 \begin_layout Standard
25787 \begin_inset VSpace bigskip
25790 To place the margin note in the inner margin, add the command
25793 \begin_layout Standard
25801 \begin_layout Standard
25802 in TeX-Code before a margin note.
25803 The new placement is valid for all following margin notes.
25808 \begin_layout Plain Layout
25818 \begin_inset Marginal
25821 \begin_layout Plain Layout
25822 This is a margin note in the inner margin.
25830 \begin_inset Newline newline
25836 \begin_inset Note Greyedout
25839 \begin_layout Plain Layout
25844 There is often not enough space in the inner margin so that the notes are
25845 not correctly displayed in the output.
25853 \begin_layout Standard
25854 To return to the default placement insert the command
25857 \begin_layout Standard
25865 \begin_layout Standard
25870 \begin_layout Plain Layout
25880 \begin_inset Note Greyedout
25883 \begin_layout Plain Layout
25888 The command is ignored when it is within a paragraph where also the command
25903 \begin_layout Standard
25904 \begin_inset VSpace bigskip
25911 \begin_inset Marginal
25914 \begin_layout Plain Layout
25915 AVeryLongMarginParWord that isn't hyphenated.
25923 Similar to the case described in section
25924 \begin_inset space ~
25928 \begin_inset CommandInset ref
25930 reference "sub:Multiple-Lines-in"
25934 , long words cannot be hyphenated when they are the first word in a margin
25936 To avoid this, insert 0
25937 \begin_inset space \thinspace{}
25940 pt horizontal space before the word
25945 \begin_inset Marginal
25948 \begin_layout Plain Layout
25949 \begin_inset space \hspace*{}
25953 AVeryLongMarginParWord that is hyphenated.
25961 \begin_layout Standard
25962 \begin_inset VSpace bigskip
25968 \begin_layout Standard
25969 \begin_inset Note Greyedout
25972 \begin_layout Plain Layout
25977 Margin notes can normally not be used inside tables, floats, and footnotes.
25985 \begin_layout Standard
25986 \begin_inset VSpace bigskip
25992 \begin_layout Standard
25996 \begin_layout Plain Layout
26006 \begin_inset Note Note
26009 \begin_layout Plain Layout
26010 The following section will only be displayed when the LaTeX-package
26022 \begin_layout Standard
26023 This restriction can be evaded by using the LaTeX-package
26031 \begin_layout Plain Layout
26032 LaTeX-packages ! marginnote
26038 By adding these two lines to your document preamble, the command used by
26039 LyX for margin notes is redefined to use the command provided by the
26046 \begin_layout Standard
26051 usepackage{marginnote}
26052 \begin_inset Newline newline
26064 \begin_layout Standard
26065 This is also used in this document because
26069 has another useful feature: You can set a vertical offset for the note.
26070 This is often needed when too many margin notes are too close together
26071 or for a better page layout.
26072 The offset is set in LyX as TeX-Code directly behind the margin note in
26076 \begin_layout Standard
26082 \begin_layout Standard
26083 where the offset is a length with one of the units listed in Table
26084 \begin_inset space ~
26088 \begin_inset CommandInset ref
26090 reference "tab:Units"
26095 A negative value shifts the note up, a positive value shifts it down.
26099 For example the margin note beside this text line is shifted up 1.5
26100 \begin_inset space \thinspace{}
26103 cm with the TeX-Code-command
26104 \begin_inset Quotes eld
26114 \begin_inset Quotes erd
26118 \begin_inset Marginal
26121 \begin_layout Plain Layout
26122 This margin note is shifted up 1.5
26123 \begin_inset space \thinspace{}
26126 cm from its original position.
26138 \begin_layout Plain Layout
26148 \begin_layout Standard
26149 \begin_inset VSpace medskip
26156 you can also change the alignment of the text in the margin note.
26157 For example the commands
26160 \begin_layout Standard
26167 raggedleftmarginnote}{
26170 \begin_inset Newline newline
26177 raggedrightmarginnote}{
26182 \begin_layout Standard
26183 set the alignment to centered.
26188 raggedleftmarginnote
26190 denotes margin notes that appear at the left side.
26197 \begin_layout Plain Layout
26203 raggedleftmarginnote}{
26208 \begin_layout Plain Layout
26214 raggedrightmarginnote}{
26222 \begin_inset Marginal
26225 \begin_layout Plain Layout
26226 The text of this margin note is centered.
26237 \begin_layout Standard
26244 raggedleftmarginnote}{
26247 \begin_inset Newline newline
26254 raggedrightmarginnote}{
26263 \begin_layout Plain Layout
26269 raggedleftmarginnote}{
26274 \begin_layout Plain Layout
26280 raggedrightmarginnote}{
26290 \begin_layout Standard
26291 \begin_inset VSpace medskip
26294 For the other features of
26298 we refer to its documentation
26299 \begin_inset CommandInset citation
26308 \begin_layout Standard
26309 \begin_inset VSpace bigskip
26312 You can adjust the layout of margin notes by changing its definition.
26313 To create for example a header for all margin notes with the underlined,
26314 sans-serif, and bold header text
26315 \begin_inset Quotes eld
26327 \begin_inset Quotes erd
26330 , add this to your document preamble:
26333 \begin_layout Standard
26343 \begin_inset Newline newline
26353 \begin_inset Newline newline
26360 \begin_layout Plain Layout
26377 underbar{Attention!}}}%
26378 \begin_inset Newline newline
26385 \begin_layout Plain Layout
26403 \begin_layout Standard
26410 \begin_layout Plain Layout
26421 \begin_layout Plain Layout
26432 \begin_layout Plain Layout
26440 underbar{Attention!}}}%
26443 \begin_layout Plain Layout
26457 \begin_inset Marginal
26460 \begin_layout Plain Layout
26461 This is a margin note with a defined heading.
26473 \begin_layout Plain Layout
26487 \begin_layout Plain Layout
26504 \begin_inset Note Note
26507 \begin_layout Plain Layout
26508 The margin note format is changed only for this example.
26516 \begin_layout Standard
26520 \begin_layout Plain Layout
26530 \begin_inset Note Note
26533 \begin_layout Plain Layout
26534 The following will be displayed when the LaTeX-package
26546 \begin_layout Standard
26547 You need to install the LaTeX-package
26551 to see the following part of this section in the output.
26554 \begin_layout Standard
26558 \begin_layout Plain Layout
26570 \begin_layout Chapter
26574 \begin_layout Section
26579 \begin_layout Plain Layout
26580 Boxes ! Introduction
26588 \begin_layout Standard
26589 Boxes are used to format a block of text.
26590 Boxes can be used to write documents with multiple languages, see section
26591 \begin_inset space ~
26595 \begin_inset CommandInset ref
26597 reference "sec:Minipages"
26601 , to frame texts, see section
26602 \begin_inset space ~
26606 \begin_inset CommandInset ref
26608 reference "sec:Decoration"
26612 , to prevent words to be hyphenated, see section
26613 \begin_inset space ~
26617 \begin_inset CommandInset ref
26619 reference "sec:Prevent-Hyphenation"
26623 , to align text, see section
26624 \begin_inset space ~
26628 \begin_inset CommandInset ref
26630 reference "sub:Vertical-Alignment"
26634 , or to set the background color of texts, see section
26635 \begin_inset space ~
26639 \begin_inset CommandInset ref
26641 reference "sec:Colored-Boxes"
26648 \begin_layout Standard
26649 Boxes can be inserted with the menu
26651 Insert\SpecialChar \menuseparator
26654 or the toolbar button
26655 \begin_inset Graphics
26656 filename ../images/box-insert.png
26658 scaleBeforeRotation
26663 A grey box with the label
26668 \begin_inset Graphics
26669 filename clipart/BoxInsetDefaultQt4.png
26671 scaleBeforeRotation
26676 The box type can be specified by right-clicking on the box.
26677 The appearing box dialog offers the
26680 \begin_inset space ~
26698 is the default for new boxes and is explained in section
26699 \begin_inset space ~
26703 \begin_inset CommandInset ref
26705 reference "sec:Minipages"
26713 is described in section
26714 \begin_inset space ~
26718 \begin_inset CommandInset ref
26720 reference "sec:Parboxes"
26727 \begin_layout Standard
26728 Boxes aren't numbered and can therefore not be referenced like floats or
26732 \begin_layout Standard
26733 \begin_inset Note Greyedout
26736 \begin_layout Plain Layout
26741 Boxes must not be the item in an
26757 \begin_layout Standard
26758 \begin_inset Note Greyedout
26761 \begin_layout Plain Layout
26766 For an unknown reason you can only set the
26769 \begin_inset space ~
26778 when you use a framed box.
26782 \begin_inset space ~
26787 type and without frames are explained in section
26788 \begin_inset space ~
26792 \begin_inset CommandInset ref
26794 reference "sec:Prevent-Hyphenation"
26806 \begin_layout Section
26808 \begin_inset CommandInset label
26810 name "sec:Box-Dialog"
26818 \begin_layout Plain Layout
26827 \begin_layout Subsection
26832 \begin_layout Plain Layout
26841 \begin_layout Standard
26842 In the box dialog you can adjust the box geometry in the fields
26851 The available units for the geometry are explained in Table
26852 \begin_inset space ~
26856 \begin_inset CommandInset ref
26858 reference "tab:Units"
26867 offers the following additional sizes:
26870 \begin_layout Description
26871 Depth This is the plain text
26872 \begin_inset Quotes eld
26876 \begin_inset Quotes erd
26880 It ignores the total depth when there are multiple text lines in the box:
26881 \begin_inset Newline newline
26885 \begin_inset Newline newline
26889 \begin_inset Newline newline
26893 \begin_inset Box Boxed
26902 height_special "depth"
26905 \begin_layout Plain Layout
26907 Box height set to 1
26908 \begin_inset space \thinspace{}
26917 \begin_inset Newline newline
26921 \begin_inset Newline newline
26927 \begin_layout Description
26928 Height This is the heigth of the text that is inside the box.
26930 \begin_inset space \thinspace{}
26934 \begin_inset space \space{}
26937 2 for this size will set the box heigth to 2 times the text height:
26938 \begin_inset Box Boxed
26947 height_special "height"
26950 \begin_layout Plain Layout
26952 Box height set to 2
26953 \begin_inset space \thinspace{}
26964 \begin_layout Description
26966 \begin_inset space ~
26969 Height This is the Height
26970 \begin_inset space \thinspace{}
26974 \begin_inset space \thinspace{}
26978 \begin_inset Box Boxed
26987 height_special "totalheight"
26990 \begin_layout Plain Layout
26992 Box height set to 1
26993 \begin_inset space \thinspace{}
26997 \begin_inset space ~
27008 \begin_layout Description
27009 Width This sets the width of the box as heigth:
27010 \begin_inset Box Boxed
27019 height_special "width"
27022 \begin_layout Plain Layout
27024 Box height set to 1
27025 \begin_inset space \thinspace{}
27036 \begin_layout Subsection
27041 \begin_layout Plain Layout
27050 \begin_layout Standard
27051 When you have chosen an
27054 \begin_inset space ~
27059 , the vertical box alignment can be:
27062 \begin_layout Description
27063 Top This is an example text line.
27065 \begin_inset Box Boxed
27074 height_special "totalheight"
27077 \begin_layout Plain Layout
27079 This box is top-aligned.
27084 This is an example text line.
27087 \begin_layout Description
27088 Middle This is an example text line.
27090 \begin_inset Box Boxed
27099 height_special "totalheight"
27102 \begin_layout Plain Layout
27104 This box is middle-aligned.
27109 This is an example text line.
27112 \begin_layout Description
27113 Bottom This is an example text line.
27115 \begin_inset Box Boxed
27124 height_special "totalheight"
27127 \begin_layout Plain Layout
27129 This box is bottom-aligned.
27134 This is an example text line.
27137 \begin_layout Standard
27138 \begin_inset Note Greyedout
27141 \begin_layout Plain Layout
27146 The vertical box aligment can be lost in the output when you have two boxes
27147 in a line and one has e.
27148 \begin_inset space \thinspace{}
27152 \begin_inset space \space{}
27155 a shadow and the other one not.
27163 \begin_layout Standard
27164 The horizontal box alignment can be set via LyX's paragraph dialog when
27165 you set the box into its own paragraph.
27168 \begin_layout Standard
27169 \begin_inset VSpace bigskip
27172 When you have chosen an
27175 \begin_inset space ~
27180 , the box content can be vertical aligned to:
27183 \begin_layout Description
27184 top This is an example text line.
27186 \begin_inset Box Boxed
27195 height_special "totalheight"
27198 \begin_layout Plain Layout
27200 This box text is top-aligned.
27205 This is an example text line.
27208 \begin_layout Description
27209 middle This is an example text line.
27211 \begin_inset Box Boxed
27220 height_special "totalheight"
27223 \begin_layout Plain Layout
27225 This box text is middle-aligned.
27230 This is an example text line.
27233 \begin_layout Description
27234 bottom This is an example text line.
27236 \begin_inset Box Boxed
27245 height_special "totalheight"
27248 \begin_layout Plain Layout
27250 This box text is bottom-aligned.
27255 This is an example text line.
27258 \begin_layout Description
27259 stretch This is an example text line.
27261 \begin_inset Box Boxed
27270 height_special "totalheight"
27273 \begin_layout Plain Layout
27278 \begin_layout Plain Layout
27283 \begin_layout Plain Layout
27290 This is an example text line.
27293 \begin_layout Standard
27294 To stretch the box content, it must consist of more than one paragraph.
27295 In the example above every text line is in an own paragraph.
27298 \begin_layout Standard
27299 \begin_inset VSpace bigskip
27302 To align the box content horizontally you can use LyX's paragraph dialog
27303 when you have chosen an
27306 \begin_inset space ~
27314 \begin_layout Standard
27316 \begin_inset Box Boxed
27325 height_special "totalheight"
27328 \begin_layout Plain Layout
27333 \begin_layout Plain Layout
27338 \begin_layout Plain Layout
27348 \begin_layout Standard
27349 If you haven't set an
27352 \begin_inset space ~
27357 , you can align the box content horizontally in the box dialog.
27360 \begin_layout Standard
27362 \begin_inset Box Boxed
27371 height_special "totalheight"
27374 \begin_layout Plain Layout
27376 This box text is horizontally stretched.
27384 \begin_layout Subsection
27386 \begin_inset CommandInset label
27388 name "sec:Decoration"
27396 \begin_layout Plain Layout
27405 \begin_layout Standard
27406 The type of the box can be specified in the box-dialog in the drop-down
27412 The following types are possible:
27415 \begin_layout Description
27417 \begin_inset space ~
27421 \begin_inset space ~
27424 frame This draws a rectangle frame around the box.
27425 The frame line thickness has the size of
27433 \begin_inset Box Boxed
27442 height_special "totalheight"
27445 \begin_layout Plain Layout
27455 \begin_layout Description
27457 \begin_inset space ~
27461 \begin_inset space ~
27464 break When you use the decoration
27466 simple rectangular frame
27468 and no inner box, you can allow page breaks within a box.
27469 Note that then, in contrary to other framed boxes, the frame always uses
27470 the whole column width, the box is set as its own paragraph, and
27482 has no effect on this box type.
27483 The frame line thickness has the size of
27491 \begin_inset Box Framed
27500 height_special "totalheight"
27503 \begin_layout Plain Layout
27504 Allow page break box
27512 \begin_layout Description
27514 \begin_inset space ~
27518 \begin_inset space ~
27521 thin This draws an oval frame around the box.
27522 The frame line thickness has the size 0.4
27523 \begin_inset space \thinspace{}
27528 \begin_inset Box ovalbox
27537 height_special "totalheight"
27540 \begin_layout Plain Layout
27550 \begin_layout Description
27552 \begin_inset space ~
27556 \begin_inset space ~
27559 thick This draws an oval frame around the box.
27560 The frame line thickness has the size 0.8
27561 \begin_inset space \thinspace{}
27566 \begin_inset Box Ovalbox
27575 height_special "totalheight"
27578 \begin_layout Plain Layout
27588 \begin_layout Description
27590 \begin_inset space ~
27593 shadow This draws a rectangle frame with a shadow around the box.
27594 The frame line thickness has the size of
27600 , the shadow has a width of 4
27601 \begin_inset space \thinspace{}
27606 \begin_inset Box Shadowbox
27615 height_special "totalheight"
27618 \begin_layout Plain Layout
27628 \begin_layout Description
27630 \begin_inset space ~
27633 background This draws a box with red background color.
27634 In contrary to colored boxes
27638 \begin_layout Plain Layout
27640 \begin_inset space \thinspace{}
27644 \begin_inset CommandInset ref
27646 reference "sec:Colored-Boxes"
27655 , it always uses the whole column width and the box is set as its own paragraph.
27657 \begin_inset Box Shaded
27666 height_special "totalheight"
27669 \begin_layout Plain Layout
27670 Shaded background box
27678 \begin_layout Description
27680 \begin_inset space ~
27684 \begin_inset space ~
27687 frame This draws a double-line rectangle frame around the box.
27688 The line thickness of the inner frame is 0.75
27689 \begin_inset space \thinspace{}
27698 , the thickness of the outer frame is 1.5
27699 \begin_inset space \thinspace{}
27709 The distance between the lines is 1.5
27710 \begin_inset space \thinspace{}
27720 \begin_inset space \thinspace{}
27724 \begin_inset space \thinspace{}
27728 \begin_inset space \thinspace{}
27733 \begin_inset Box Doublebox
27742 height_special "totalheight"
27745 \begin_layout Plain Layout
27747 Double rectangular box
27755 \begin_layout Standard
27756 \begin_inset VSpace bigskip
27759 LyX's box label will reflect the different frame types.
27760 To be able to use all types, the LaTeX-package
27768 \begin_layout Plain Layout
27769 LaTeX-packages ! fancybox
27777 \begin_layout Section
27782 \begin_layout Plain Layout
27783 Boxes ! Customization
27791 \begin_layout Standard
27792 The default value for the size
27799 \begin_inset space \thinspace{}
27803 It can be changed with the following command in TeX-Code to e.
27804 \begin_inset space \thinspace{}
27808 \begin_inset space \space{}
27812 \begin_inset space \thinspace{}
27818 \begin_layout Standard
27828 \begin_layout Standard
27832 \begin_layout Plain Layout
27844 \begin_inset Box Boxed
27853 height_special "totalheight"
27856 \begin_layout Plain Layout
27858 Rectangular box with
27865 \begin_inset space \thinspace{}
27869 \begin_inset space \thinspace{}
27873 \begin_inset space \thinspace{}
27885 \begin_layout Plain Layout
27899 \begin_layout Standard
27900 \begin_inset VSpace bigskip
27903 The space between the frame and the box content is for all frame styles
27905 \begin_inset space \thinspace{}
27909 You can change it by setting the length
27916 For example the command
27919 \begin_layout Standard
27929 \begin_layout Standard
27930 sets the value to 10
27931 \begin_inset space \thinspace{}
27934 pt, like for the following box:
27937 \begin_layout Standard
27941 \begin_layout Plain Layout
27953 \begin_inset Box Boxed
27962 height_special "totalheight"
27965 \begin_layout Plain Layout
27967 Rectangular box with
27974 \begin_inset space \thinspace{}
27978 \begin_inset space \thinspace{}
27982 \begin_inset space \thinspace{}
27994 \begin_layout Plain Layout
28008 \begin_layout Standard
28009 \begin_inset VSpace bigskip
28012 The diameter of the round corners of the oval boxes can be set with the
28023 \begin_layout Standard
28031 \begin_layout Standard
28032 sets the diameter to 1
28033 \begin_inset space \thinspace{}
28040 \begin_layout Standard
28048 \begin_layout Standard
28049 sets the diameter to
28052 \begin_inset space \thinspace{}
28056 \begin_inset space \thinspace{}
28059 minimum(width and heigth of box)
28071 \begin_layout Standard
28075 \begin_layout Plain Layout
28085 \begin_inset Box Ovalbox
28094 height_special "totalheight"
28097 \begin_layout Plain Layout
28106 \begin_inset space \thinspace{}
28110 \begin_inset space \thinspace{}
28114 \begin_inset space \thinspace{}
28126 \begin_layout Plain Layout
28138 \begin_layout Standard
28139 \begin_inset VSpace bigskip
28142 The size of the shadow can be adjusted by changing the length
28150 \begin_inset space \thinspace{}
28153 pt for the following box by this command:
28156 \begin_layout Standard
28166 \begin_layout Standard
28170 \begin_layout Plain Layout
28182 \begin_inset Box Shadowbox
28191 height_special "totalheight"
28194 \begin_layout Plain Layout
28203 \begin_inset space \thinspace{}
28207 \begin_inset space \thinspace{}
28211 \begin_inset space \thinspace{}
28223 \begin_layout Plain Layout
28237 \begin_layout Standard
28238 \begin_inset VSpace bigskip
28244 \begin_layout Standard
28245 The default value for the size
28252 \begin_inset space \thinspace{}
28256 The default space between the note content and the frame is 9
28257 \begin_inset space \thinspace{}
28260 pt and can be changed with the value of
28267 For example the frame appearance of the following
28271 is set with the TeX-Code commands
28274 \begin_layout Standard
28282 \begin_inset Newline newline
28292 \begin_layout Standard
28296 \begin_layout Plain Layout
28305 \begin_layout Plain Layout
28317 \begin_inset Box Framed
28326 height_special "totalheight"
28329 \begin_layout Plain Layout
28343 \begin_layout Plain Layout
28352 \begin_layout Plain Layout
28366 \begin_layout Standard
28367 \begin_inset VSpace bigskip
28373 \begin_layout Standard
28378 boxes the default space between the box content and the box border is 3
28379 \begin_inset space \thinspace{}
28382 pt and can be changed with the value of
28389 The default background color red can either be changed locally with the
28394 definecolor{shadebox}
28396 or globally with the menu
28398 Tools\SpecialChar \menuseparator
28399 Preferences\SpecialChar \menuseparator
28400 Colors\SpecialChar \menuseparator
28402 \begin_inset space ~
28414 command is explained in section
28415 \begin_inset space ~
28419 \begin_inset CommandInset ref
28421 reference "sec:Colored-Tables"
28429 \begin_layout Plain Layout
28436 requires the LaTeX-package
28440 in the preamble, see section
28441 \begin_inset space ~
28445 \begin_inset CommandInset ref
28447 reference "sec:Colored-Boxes"
28456 For example the appearance of the following shaded background note is set
28457 with the TeX-Code commands
28460 \begin_layout Standard
28470 \begin_inset Newline newline
28477 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28480 \begin_layout Standard
28484 \begin_layout Plain Layout
28493 \begin_layout Plain Layout
28497 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28503 \begin_inset Box Shaded
28512 height_special "totalheight"
28515 \begin_layout Plain Layout
28518 This is yellow text in a
28528 box with dark green background.
28537 \begin_layout Plain Layout
28546 \begin_layout Plain Layout
28550 definecolor{shadecolor}{rgb}{1,0,0}
28558 \begin_layout Standard
28559 \begin_inset VSpace bigskip
28562 Changed lengths and widths are valid for all boxes following the commands
28566 \begin_layout Section
28568 \begin_inset CommandInset label
28570 name "sec:Minipages"
28578 \begin_layout Plain Layout
28587 \begin_layout Standard
28588 Minipages are treated by LaTeX as pages within pages and can therefore for
28589 example have their own footnotes.
28592 \begin_layout Standard
28593 Minipages are useful when you write documents with different languages.
28596 \begin_layout Standard
28597 Below are two example minipages side by side.
28598 Their width is set to 45
28599 \begin_inset space \thinspace{}
28602 col% and they are separated by a horizontal fill, that was inserted via
28605 Insert\SpecialChar \menuseparator
28607 \begin_inset space ~
28610 Formatting\SpecialChar \menuseparator
28612 \begin_inset space ~
28618 \begin_inset Newpage newpage
28624 \begin_layout Standard
28625 \begin_inset Box Frameless
28634 height_special "totalheight"
28637 \begin_layout Plain Layout
28640 Dies ist ein deutscher Text.
28641 Dies ist ein deutscher Text.
28642 Dies ist ein deutscher Text.
28643 Dies ist ein deutscher Text.
28644 Dies ist ein deutscher Text.
28645 Dies ist ein deutscher Text.
28646 Dies ist ein deutscher Text.
28647 Dies ist ein deutscher Text.
28648 Dies ist ein deutscher Text.
28649 Dies ist ein deutscher Text.
28650 Dies ist ein deutscher Text.
28651 Dies ist ein deutscher Text.
28652 Dies ist ein deutscher Text
28656 \begin_layout Plain Layout
28659 Dies ist eine deutsche Fußnote.
28665 Dies ist ein deutscher Text.
28666 Dies ist ein deutscher Text.
28672 \begin_inset space \hfill{}
28676 \begin_inset Box Frameless
28685 height_special "totalheight"
28688 \begin_layout Plain Layout
28689 This is an English Text.
28690 This is an English Text.
28691 This is an English Text.
28692 This is an English Text.
28693 This is an English Text.
28694 This is an English Text.
28695 This is an English Text.
28696 This is an English Text.
28697 This is an English Text.
28698 This is an English Text.
28699 This is an English Text.
28700 This is an English Text.
28701 This is an English Text.
28702 This is an English Text.
28703 This is an English Text.
28704 This is an English Text.
28708 \begin_layout Plain Layout
28709 This is an English footnote.
28714 This is an English Text.
28723 \begin_layout Standard
28724 \begin_inset VSpace bigskip
28727 Another application for minipages are footnotes within tables.
28728 Due to a LaTeX restriction footnotes within tables doesn't appear at the
28729 bottom of the current page.
28730 But when you put the table with the footnote to a minipage, the footnote
28731 will appear at its bottom, numbered with Latin letters.
28732 The footnote number is reset to 1 in every minipage but not outside the
28736 \begin_layout Standard
28737 The footnote of this table doesn't appear:
28738 \begin_inset Tabular
28739 <lyxtabular version="3" rows="3" columns="4">
28741 <column alignment="center" valignment="top" width="0pt">
28742 <column alignment="center" valignment="top" width="0pt">
28743 <column alignment="center" valignment="top" width="0pt">
28744 <column alignment="center" valignment="top" width="0pt">
28746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28749 \begin_layout Plain Layout
28755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28758 \begin_layout Plain Layout
28764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28767 \begin_layout Plain Layout
28772 \begin_layout Plain Layout
28773 This is a footnote within a table.
28783 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28786 \begin_layout Plain Layout
28794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28797 \begin_layout Plain Layout
28803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28806 \begin_layout Plain Layout
28812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28815 \begin_layout Plain Layout
28821 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28824 \begin_layout Plain Layout
28832 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28835 \begin_layout Plain Layout
28841 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28844 \begin_layout Plain Layout
28850 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28853 \begin_layout Plain Layout
28859 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28862 \begin_layout Plain Layout
28876 \begin_layout Standard
28878 \begin_inset Box Frameless
28887 height_special "totalheight"
28890 \begin_layout Plain Layout
28892 \begin_inset Tabular
28893 <lyxtabular version="3" rows="3" columns="4">
28895 <column alignment="center" valignment="top" width="0pt">
28896 <column alignment="center" valignment="top" width="0pt">
28897 <column alignment="center" valignment="top" width="0pt">
28898 <column alignment="center" valignment="top" width="0pt">
28900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28903 \begin_layout Plain Layout
28909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28912 \begin_layout Plain Layout
28918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28921 \begin_layout Plain Layout
28926 \begin_layout Plain Layout
28927 This is a footnote within a table.
28937 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28940 \begin_layout Plain Layout
28948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28951 \begin_layout Plain Layout
28957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28960 \begin_layout Plain Layout
28966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28969 \begin_layout Plain Layout
28975 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28978 \begin_layout Plain Layout
28986 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28989 \begin_layout Plain Layout
28995 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28998 \begin_layout Plain Layout
29004 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29007 \begin_layout Plain Layout
29013 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29016 \begin_layout Plain Layout
29035 \begin_layout Standard
29036 \begin_inset VSpace bigskip
29039 The document-wide paragraph settings are ignored within minipages.
29040 That means that there will be no space between paragraphs in minipages
29041 although you set it to e.
29042 \begin_inset space \thinspace{}
29046 \begin_inset space \space{}
29053 in the document settings.
29056 \begin_layout Standard
29057 Minipages can also be used to set a background color for text parts, see
29059 \begin_inset space ~
29063 \begin_inset CommandInset ref
29065 reference "sub:Color-for-Paragraphs"
29072 \begin_layout Standard
29073 \begin_inset Note Greyedout
29076 \begin_layout Plain Layout
29081 You cannot have floats or margin notes inside minipages but minipages can
29082 be used inside tables, floats, and other boxes.
29090 \begin_layout Section
29092 \begin_inset CommandInset label
29094 name "sec:Parboxes"
29102 \begin_layout Plain Layout
29111 \begin_layout Standard
29112 Parboxes are very similar to minipages with the difference that they cannot
29114 The main difference to minipages is that minipages are in contrary to parboxes
29115 no real boxes but LaTeX-environments.
29118 \begin_layout Standard
29120 \begin_inset Box Frameless
29129 height_special "totalheight"
29132 \begin_layout Plain Layout
29133 This a text within a parbox.
29134 This a text within a parbox.
29137 \begin_layout Plain Layout
29138 This footnote won't appear:
29142 \begin_layout Plain Layout
29143 This footnote is inside a parbox and will therefore not appear.
29156 \begin_layout Section
29157 Boxes for Words and Characters
29161 \begin_layout Plain Layout
29162 Boxes ! for Characters
29170 \begin_layout Subsection
29171 Prevent Hyphenation
29172 \begin_inset CommandInset label
29174 name "sec:Prevent-Hyphenation"
29182 \begin_layout Plain Layout
29183 Boxes ! to Prevent Hyphenation
29191 \begin_layout Standard
29192 You can use a special kind of boxes to prevent words or text to be hyphenated.
29193 \begin_inset Newline newline
29196 Here is an example text:
29199 \begin_layout Standard
29200 This line is an example to show how you can prevent the hyphenation of
29201 \begin_inset Quotes eld
29205 \begin_inset Quotes erd
29211 \begin_layout Standard
29212 To prevent the hyphenation of the word
29213 \begin_inset Quotes eld
29217 \begin_inset Quotes erd
29223 \begin_layout Standard
29231 \begin_layout Standard
29232 in TeX-Code before the word.
29233 Behind the word insert a closing brace
29234 \begin_inset Quotes eld
29242 \begin_inset Quotes erd
29248 \begin_layout Standard
29249 This is the result:
29252 \begin_layout Standard
29253 This line is an example to show how you can prevent the hyphenation of
29257 \begin_layout Plain Layout
29267 \begin_inset Quotes eld
29271 \begin_inset Quotes erd
29278 \begin_layout Plain Layout
29288 \begin_layout Standard
29289 You can alternatively set the command
29290 \begin_inset Quotes eld
29300 \begin_inset Quotes grd
29303 as TeX-Code directly before the word:
29306 \begin_layout Standard
29307 This line is an example to show how you can prevent the hyphenation of
29308 \begin_inset Quotes eld
29315 \begin_layout Plain Layout
29325 \begin_inset Quotes erd
29331 \begin_layout Standard
29332 Of course the word now protrudes over the side margin.
29333 To avoid this, add via the menu
29335 Insert\SpecialChar \menuseparator
29337 \begin_inset space ~
29340 Formatting\SpecialChar \menuseparator
29342 \begin_inset space ~
29350 arg "newline-insert newline"
29353 ) a line break before the word:
29356 \begin_layout Standard
29357 This line is an example to show how you can prevent the hyphenation of
29358 \begin_inset Newline newline
29365 \begin_layout Plain Layout
29375 \begin_inset Quotes eld
29379 \begin_inset Quotes erd
29386 \begin_layout Plain Layout
29396 \begin_layout Subsection
29398 \begin_inset CommandInset label
29400 name "sub:Vertical-Alignment"
29408 \begin_layout Plain Layout
29409 Boxes ! for Vertical Alignment
29418 \begin_layout Plain Layout
29427 \begin_layout Standard
29428 With the help of the command
29434 you can align words, characters or other boxes vertically to the surrounding
29442 is used with the following scheme:
29445 \begin_layout Standard
29450 raisebox{lift}[height][depth]{box content}
29453 \begin_layout Standard
29454 The lift can be a positive value to raise the box or a negative value to
29458 \begin_layout Standard
29459 To align for example the word
29460 \begin_inset Quotes eld
29464 \begin_inset Quotes erd
29467 so that the bottom of the
29468 \begin_inset Quotes eld
29472 \begin_inset Quotes erd
29476 \begin_inset Quotes eld
29480 \begin_inset Quotes erd
29483 is at the baseline, insert the command
29486 \begin_layout Standard
29496 \begin_layout Standard
29497 in TeX-Code before the word.
29498 Behind the word insert a closing brace
29499 \begin_inset Quotes eld
29507 \begin_inset Quotes erd
29511 \begin_inset Newline newline
29514 This is the result:
29517 \begin_layout Standard
29518 This is a text line with the word
29522 \begin_layout Plain Layout
29534 \begin_inset Quotes eld
29538 \begin_inset Quotes erd
29545 \begin_layout Plain Layout
29555 \begin_layout Standard
29556 \begin_inset VSpace bigskip
29559 When you raise or lower characters in a line, the line distance will be
29563 \begin_layout Standard
29564 This is a text line with the word
29568 \begin_layout Plain Layout
29580 \begin_inset Quotes eld
29584 \begin_inset Quotes erd
29591 \begin_layout Plain Layout
29599 \begin_inset Newline newline
29602 This is a text line with the word
29606 \begin_layout Plain Layout
29616 \begin_inset Quotes eld
29620 \begin_inset Quotes erd
29627 \begin_layout Plain Layout
29637 \begin_layout Standard
29638 If you want to prevent this for a certain reason, set the box height to
29643 \begin_layout Standard
29653 \begin_layout Standard
29654 This is a text line with the word
29658 \begin_layout Plain Layout
29670 \begin_inset Quotes eld
29674 \begin_inset Quotes erd
29681 \begin_layout Plain Layout
29689 \begin_inset Newline newline
29692 This is a text line with the word
29696 \begin_layout Plain Layout
29700 raisebox{0.5cm}[0pt]{
29706 \begin_inset Quotes eld
29710 \begin_inset Quotes erd
29717 \begin_layout Plain Layout
29727 \begin_layout Section
29729 \begin_inset CommandInset label
29731 name "sec:Colored-Boxes"
29739 \begin_layout Plain Layout
29748 \begin_layout Subsection
29753 \begin_layout Plain Layout
29762 \begin_layout Standard
29763 To color the background of text the text must be put into a so called
29764 \begin_inset Quotes eld
29768 \begin_inset Quotes erd
29772 This requires that the LaTeX-package
29780 \begin_layout Plain Layout
29781 LaTeX-packages ! color
29786 is loaded in the document preamble with the command
29789 \begin_layout Standard
29794 @ifundefined{textcolor}
29795 \begin_inset Newline newline
29802 \begin_layout Plain Layout
29813 usepackage{color}}{}
29816 \begin_layout Standard
29821 will be loaded automatically by LyX when you color text
29825 \begin_layout Plain Layout
29826 To avoid that it is loaded twice the command
29840 \begin_layout Standard
29841 \begin_inset VSpace medskip
29844 Colorboxes are created with the command
29851 This will be used with the following scheme:
29854 \begin_layout Standard
29859 colorbox{color}{box content}
29862 \begin_layout Standard
29863 The box content can also be a box and colorboxes can also be within other
29867 \begin_layout Standard
29868 The following colors are predefined:
29869 \begin_inset Newline newline
29908 \begin_inset Newline newline
29911 You can also define your own color as described in section
29912 \begin_inset space ~
29916 \begin_inset CommandInset ref
29918 reference "sec:Colored-Tables"
29925 \begin_layout Standard
29927 \begin_inset space \thinspace{}
29931 \begin_inset space \space{}
29934 a red background for a word, insert the command
29937 \begin_layout Standard
29945 \begin_layout Standard
29946 before the word in TeX-Code.
29947 Behind the word insert a closing brace
29948 \begin_inset Quotes eld
29956 \begin_inset Quotes erd
29960 \begin_inset Newline newline
29963 This is the result:
29966 \begin_layout Standard
29967 This is a line where the word
29971 \begin_layout Plain Layout
29981 \begin_inset Quotes eld
29985 \begin_inset Quotes erd
29992 \begin_layout Plain Layout
29999 has a red background.
30002 \begin_layout Standard
30003 \begin_inset VSpace bigskip
30006 If you would have the box frame in a different color, you can use the command
30013 with the following scheme:
30016 \begin_layout Standard
30021 fcolorbox{frame color}{box color}{box content}
30024 \begin_layout Standard
30038 The frame thickness and the space between the frame and the box content
30039 can be adjusted with the lengths
30051 , respectively, as described in section
30052 \begin_inset space ~
30056 \begin_inset CommandInset ref
30058 reference "sec:Decoration"
30065 \begin_layout Standard
30066 For the following example the command
30069 \begin_layout Standard
30074 fcolorbox{cyan}{magenta}{
30077 \begin_layout Standard
30081 \begin_layout Standard
30082 Here is an example where the frame line thickness was set to 1
30083 \begin_inset space \thinspace{}
30087 \begin_inset Newline newline
30094 \begin_layout Plain Layout
30109 \begin_layout Plain Layout
30113 fcolorbox{cyan}{magenta}{
30118 This is text within a colored, framed box.
30122 \begin_layout Plain Layout
30132 \begin_layout Standard
30133 \begin_inset VSpace bigskip
30136 Of course you can also have colored text inside a colorbox:
30137 \begin_inset Newline newline
30144 \begin_layout Plain Layout
30148 fcolorbox{cyan}{magenta}{
30155 This is colored text within a colored, framed box.
30161 \begin_layout Plain Layout
30172 \begin_layout Plain Layout
30186 \begin_layout Standard
30189 \begin_inset VSpace medskip
30195 \begin_layout Standard
30196 \begin_inset Note Greyedout
30199 \begin_layout Plain Layout
30204 Text in colorboxes cannot have line breaks.
30205 To color multiple text lines or paragraphs, use a box inside a colorbox
30206 as described in the following.
30214 \begin_layout Subsection
30215 Color for Paragraphs
30216 \begin_inset CommandInset label
30218 name "sub:Color-for-Paragraphs"
30226 \begin_layout Plain Layout
30227 Color ! for Paragraphs
30235 \begin_layout Standard
30236 To set the background color for more than one text line, put the text into
30238 Before the minipage insert the
30247 \begin_layout Standard
30255 \begin_layout Standard
30257 Behind the minipage insert a closing brace
30258 \begin_inset Quotes eld
30266 \begin_inset Quotes erd
30272 \begin_layout Standard
30276 \begin_layout Plain Layout
30280 colorbox{lightgrey}{
30286 \begin_inset Box Frameless
30295 height_special "totalheight"
30298 \begin_layout Plain Layout
30299 This is text with background color.
30300 This is text with background color.
30303 \begin_layout Plain Layout
30304 \begin_inset VSpace defskip
30307 The text can have footnotes
30311 \begin_layout Plain Layout
30312 Another example footnote
30317 and can include tables and figures.
30320 \begin_layout Plain Layout
30322 \begin_inset Tabular
30323 <lyxtabular version="3" rows="3" columns="3">
30325 <column alignment="center" valignment="top" width="0">
30326 <column alignment="center" valignment="top" width="0">
30327 <column alignment="center" valignment="top" width="0">
30329 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30332 \begin_layout Plain Layout
30338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30341 \begin_layout Plain Layout
30347 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30350 \begin_layout Plain Layout
30358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30361 \begin_layout Plain Layout
30367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30370 \begin_layout Plain Layout
30372 \begin_inset Quotes erd
30380 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30383 \begin_layout Plain Layout
30391 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30394 \begin_layout Plain Layout
30400 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30403 \begin_layout Plain Layout
30409 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30412 \begin_layout Plain Layout
30432 \begin_layout Plain Layout
30442 \begin_layout Section
30443 Rotated and Scaled Boxes
30446 \begin_layout Standard
30447 To use the the commands described in this section, the LaTeX-package
30455 \begin_layout Plain Layout
30456 LaTeX-packages ! graphicx
30461 needs to be loaded in the document preamble with the command
30464 \begin_layout Standard
30469 @ifundefined{rotatebox}
30470 \begin_inset Newline newline
30477 \begin_layout Plain Layout
30488 usepackage{graphicx}}{}
30491 \begin_layout Standard
30492 \begin_inset Note Greyedout
30495 \begin_layout Plain Layout
30500 Some DVI-viewers can't display rotated or scaled material.
30508 \begin_layout Standard
30509 \begin_inset Note Greyedout
30512 \begin_layout Plain Layout
30517 Floats mustn't be inside a rotated or scaled box.
30525 \begin_layout Subsection
30530 \begin_layout Plain Layout
30540 \begin_layout Plain Layout
30550 \begin_layout Plain Layout
30560 \begin_layout Plain Layout
30561 Table Customization ! Rotating
30569 \begin_layout Standard
30570 To rotate material, you can put it into a rotated box.
30571 Such a box is created using the command
30577 in TeX-Code with the following scheme:
30580 \begin_layout Standard
30585 rotatebox[rotation origin]{rotation angle}{box content}
30588 \begin_layout Standard
30589 The rotation origin is specified in the form
30594 The following positions are possible:
30614 (top), and also expedient combinations of the four base positions.
30619 means, that the rotation origin is at the top left corner of the box.
30620 When no rotation origin is specified, the position
30625 The rotation angle is a number that can be negative that specifies the
30627 The rotation direction is counterclockwise.
30630 \begin_layout Standard
30631 In the following example the command
30635 rotatebox[origin=c]{60}{
30637 was inserted as TeX-Code before the text
30638 \begin_inset Quotes eld
30642 \begin_inset Quotes erd
30645 ; after the text the box was closed by a closing brace
30652 \begin_layout Standard
30657 \begin_layout Plain Layout
30661 rotatebox[origin=c]{60}{
30670 \begin_layout Plain Layout
30680 \begin_layout Standard
30681 The box content can also be another box or an inline formula:
30684 \begin_layout Standard
30689 \begin_layout Plain Layout
30693 rotatebox[origin=r]{-60}{
30699 \begin_inset Box Doublebox
30708 height_special "totalheight"
30711 \begin_layout Plain Layout
30721 \begin_layout Plain Layout
30732 \begin_layout Plain Layout
30736 rotatebox[origin=lb]{60}{
30742 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30749 \begin_layout Plain Layout
30759 \begin_layout Standard
30760 or an image or table:
30763 \begin_layout Standard
30768 \begin_layout Plain Layout
30772 rotatebox[origin=lb]{90}{
30778 \begin_inset Graphics
30779 filename clipart/platypus.eps
30789 \begin_layout Plain Layout
30796 with a rotated image
30800 \begin_layout Plain Layout
30804 rotatebox[origin=l]{-90}{
30810 \begin_inset Tabular
30811 <lyxtabular version="3" rows="2" columns="2">
30813 <column alignment="center" valignment="top" width="0">
30814 <column alignment="center" valignment="top" width="0">
30816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30819 \begin_layout Plain Layout
30825 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30828 \begin_layout Plain Layout
30836 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30839 \begin_layout Plain Layout
30845 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30848 \begin_layout Plain Layout
30863 \begin_layout Plain Layout
30873 \begin_layout Subsection
30878 \begin_layout Plain Layout
30888 \begin_layout Plain Layout
30898 \begin_layout Plain Layout
30908 \begin_layout Plain Layout
30909 Table Customization ! Scaling
30917 \begin_layout Standard
30918 To scale material the commands
30930 can be used as TeX-Code.
30933 \begin_layout Standard
30940 is used with the following scheme:
30943 \begin_layout Standard
30948 scalebox{horizontal}[vertical]{box content}
30951 \begin_layout Standard
30952 Horizontal and vertical are the corresponding scaling factors.
30953 If no vertical scaling factor is given, the horizontal factor will also
30954 be used as vertical one.
30957 \begin_layout Standard
30964 creates for example a double size
30968 \begin_layout Plain Layout
30981 \begin_layout Plain Layout
30988 , compared to the document text size.
30991 \begin_layout Standard
30996 scalebox{2}[1]{Hello}
30998 in contrary distorts the
31002 \begin_layout Plain Layout
31015 \begin_layout Plain Layout
31025 \begin_layout Standard
31026 If a the scaling factor is negative, the box content will be mirrored.
31027 Therefore the command
31031 scalebox{-1}[1]{Hello}
31033 can be used to create mirror writing:
31037 \begin_layout Plain Layout
31050 \begin_layout Plain Layout
31060 \begin_layout Standard
31065 scalebox{1}[-1]{Hello}
31071 \begin_layout Plain Layout
31084 \begin_layout Plain Layout
31094 \begin_layout Standard
31099 scalebox{-1}[1]{box content}
31101 there exists the command
31102 \begin_inset Newline newline
31109 reflectbox{box content}
31114 \begin_layout Standard
31115 \begin_inset VSpace bigskip
31124 is used to scale the box to a defined width and height.
31125 The command scheme is:
31128 \begin_layout Standard
31133 resizebox{width}{height}{box content}
31136 \begin_layout Standard
31137 Is one of the two command arguments given as exclamation mark
31141 , the size is set so that the aspect ratio of the box content is kept.
31144 \begin_layout Standard
31149 resizebox{2cm}{1cm}{Hello}
31155 \begin_layout Plain Layout
31159 resizebox{2cm}{1cm}{
31168 \begin_layout Plain Layout
31176 \begin_inset Newline newline
31183 resizebox{2cm}{!}{Hello}
31189 \begin_layout Plain Layout
31202 \begin_layout Plain Layout
31212 \begin_layout Standard
31213 \begin_inset VSpace bigskip
31217 \begin_inset Note Greyedout
31220 \begin_layout Plain Layout
31237 are set to zero, no LaTeX-errors occur when exporting the document but
31238 the exported files can not or only partly be displayed.
31246 \begin_layout Standard
31247 \begin_inset VSpace bigskip
31253 \begin_layout Standard
31254 The boxes can be combined in any order.
31256 \begin_inset space \thinspace{}
31260 \begin_inset space \space{}
31264 \begin_inset Newline newline
31271 rotatebox[origin=c]{-45}{
31275 reflectbox{Hello}}}
31276 \begin_inset Newline newline
31284 \begin_layout Standard
31289 \begin_layout Plain Layout
31293 rotatebox[origin=c]{-45}{
31306 \begin_layout Plain Layout
31316 \begin_layout Standard
31318 Images, tables, and inline formulas are allowed as box content:
31321 \begin_layout Standard
31326 \begin_layout Plain Layout
31330 rotatebox[origin=c]{-30}{
31340 \begin_inset Graphics
31341 filename clipart/platypus.eps
31351 \begin_layout Plain Layout
31362 \begin_layout Plain Layout
31366 rotatebox[origin=c]{-45}{
31376 \begin_inset Tabular
31377 <lyxtabular version="3" rows="2" columns="2">
31379 <column alignment="center" valignment="top" width="0">
31380 <column alignment="center" valignment="top" width="0">
31382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31385 \begin_layout Plain Layout
31391 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31394 \begin_layout Plain Layout
31402 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31405 \begin_layout Plain Layout
31411 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31414 \begin_layout Plain Layout
31429 \begin_layout Plain Layout
31440 \begin_layout Plain Layout
31444 rotatebox[origin=c]{-45}{
31454 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31461 \begin_layout Plain Layout
31471 \begin_layout Standard
31472 When the global formula style
31476 is used in the document
31480 \begin_layout Plain Layout
31482 \begin_inset Quotes eld
31486 \begin_inset Quotes erd
31489 is added to the document class options.
31494 , also display formulas can be scaled.
31497 \begin_layout Chapter
31498 External Document Parts
31502 \begin_layout Plain Layout
31503 External Document Parts
31511 \begin_layout Standard
31514 Insert\SpecialChar \menuseparator
31517 you can insert external material to your document.
31521 \begin_layout Description
31523 \begin_inset space ~
31526 Document Another LyX document; its content is directly inserted to your
31530 \begin_layout Description
31532 \begin_inset space ~
31535 Text A text document; every of its text lines is inserted to your document
31539 \begin_layout Description
31541 \begin_inset space ~
31545 \begin_inset space ~
31549 \begin_inset space ~
31552 Lines A text document; its text lines are inserted as they are.
31553 Empty text lines creates a new paragraph in your document.
31556 \begin_layout Description
31558 \begin_inset space ~
31561 Material Files in various formats.
31564 \begin_layout Description
31566 \begin_inset space ~
31569 Document LyX or LaTeX-documents.
31572 \begin_layout Section
31577 \begin_layout Plain Layout
31578 External Document Parts ! External Material
31586 \begin_layout Standard
31587 The external material feature allows you to insert files to your document
31588 without converting them previously to a format that can be read by the
31589 document output format because LyX takes care of needed conversions.
31590 This is similar to images that can be inserted in various image formats
31592 When you have enabled Instant Preview in LyX's preferences under
31595 \begin_inset space ~
31599 \begin_inset space ~
31602 feel\SpecialChar \menuseparator
31605 , the external material types Dia and Xfig is directly shown in LyX.
31608 \begin_layout Standard
31609 External material can be inserted via the
31613 dialog that is accessible with the menu
31615 Insert\SpecialChar \menuseparator
31616 File\SpecialChar \menuseparator
31618 \begin_inset space ~
31624 Currently the following file types (
31631 \begin_layout Description
31632 ChessDiagram This template supports chess position diagrams made with the
31636 \begin_inset CommandInset href
31639 target "http://en.wikipedia.org/wiki/XBoard"
31648 \begin_layout Description
31649 Date This inserts the date in the form
31654 This is a date inserted as external material:
31655 \begin_inset External
31662 \begin_inset space ~
31666 \begin_inset Note Note
31669 \begin_layout Plain Layout
31670 Remove the protected space when bug 4398 is fixed!
31676 \begin_inset Newline newline
31679 The date is not shown within LyX, only in the output.
31680 There are two other methods of inserting a date: Via menu
31682 Insert\SpecialChar \menuseparator
31685 and with the LaTeX command
31692 The different methods are compared in Table
31693 \begin_inset space ~
31697 \begin_inset CommandInset ref
31699 reference "tab:Comparison-of-the"
31706 \begin_layout Description
31707 Dia This template supports diagrams created with the program
31710 \begin_inset CommandInset href
31713 target "http://en.wikipedia.org/wiki/Dia_(software)"
31722 \begin_layout Description
31723 LilyPond This template is used for music notation typeset with the program
31724 \begin_inset Newline linebreak
31730 \begin_inset CommandInset href
31733 target "http://en.wikipedia.org/wiki/LilyPond"
31742 \begin_layout Description
31743 PDFPages With this template you can insert PDF documents to your document.
31744 To insert certain or all pages of a PDF, use the
31754 LaTeX and LyX options
31756 tab according to the template description in the dialog.
31761 option is given, only the first page of the PDF will be inserted.
31764 \begin_layout Description
31765 RasterImage This can be used for bitmap images.
31766 Nearly all popular image formats are supported.
31767 The image can be treated in the
31771 dialog like the images that are usually included via the
31775 dialog as described in section
31776 \begin_inset space ~
31780 \begin_inset CommandInset ref
31782 reference "sec:Graphics-Dialog"
31787 The difference is that only raster images are allowed, that means that
31788 PDF and EPS-images are not supported.
31791 \begin_layout Description
31792 XFig This template supports images created with the program
31795 \begin_inset CommandInset href
31798 target "http://en.wikipedia.org/wiki/Xfig"
31807 \begin_layout Standard
31808 \begin_inset Float table
31814 \begin_layout Plain Layout
31815 \begin_inset Caption
31817 \begin_layout Plain Layout
31818 \begin_inset CommandInset label
31820 name "tab:Comparison-of-the"
31824 Comparison of the date input methods.
31832 \begin_layout Plain Layout
31834 \begin_inset Tabular
31835 <lyxtabular version="3" rows="4" columns="4">
31837 <column alignment="center" valignment="top" width="0">
31838 <column alignment="center" valignment="top" width="0">
31839 <column alignment="center" valignment="top" width="0">
31840 <column alignment="center" valignment="top" width="0">
31842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31845 \begin_layout Plain Layout
31851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31854 \begin_layout Plain Layout
31857 External Material\SpecialChar \menuseparator
31863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31866 \begin_layout Plain Layout
31869 Insert\SpecialChar \menuseparator
31875 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31878 \begin_layout Plain Layout
31890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31893 \begin_layout Plain Layout
31899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31902 \begin_layout Plain Layout
31908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31911 \begin_layout Plain Layout
31917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31920 \begin_layout Plain Layout
31921 as TeX-Code inset box
31928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31931 \begin_layout Plain Layout
31937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31940 \begin_layout Plain Layout
31946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31949 \begin_layout Plain Layout
31955 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31958 \begin_layout Plain Layout
31966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31969 \begin_layout Plain Layout
31975 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31978 \begin_layout Plain Layout
31984 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31987 \begin_layout Plain Layout
31993 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31996 \begin_layout Plain Layout
32015 \begin_layout Standard
32016 When you use the option
32028 dialog, only the path to the inserted file is shown in the output.
32029 \begin_inset Newline newline
32032 External material is displayed in LyX either as box like this:
32033 \begin_inset Graphics
32034 filename clipart/ExternalMaterialQt4.png
32036 scaleBeforeRotation
32040 or as image, depending on the option
32046 LaTeX and LyX options
32051 \begin_layout Standard
32058 manual explains how you can define your own templates.
32061 \begin_layout Section
32063 \begin_inset CommandInset label
32065 name "sec:Child-Documents"
32073 \begin_layout Plain Layout
32074 External Document Parts ! Child Documents
32083 \begin_layout Plain Layout
32092 \begin_layout Standard
32093 Child documents are used when you have a long document consisting of several
32094 larger parts or sections.
32095 For maintenance it is often useful and sometimes even required to split
32096 the document in several files that can be revised separately.
32097 The different documents are then the so called child documents and a master
32098 document connects them to print the full document or parts of it.
32099 A child documents inherits contents of its master, for example the LaTeX
32100 preamble, the bibliography, and labels for cross-references.
32103 \begin_layout Standard
32104 To be able to work on child documents without the need to open its master,
32105 specify in the child document the master in the menu
32107 Document\SpecialChar \menuseparator
32108 Settings\SpecialChar \menuseparator
32110 \begin_inset space ~
32116 This master document will then be used in the background by LyX when you
32117 edit the child document.
32120 \begin_layout Standard
32121 Included documents are displayed in LyX as a box like this:
32122 \begin_inset Graphics
32123 filename clipart/ChildDocumentQt4.png
32125 scaleBeforeRotation
32129 To include child documents to a master document use the menu
32131 Insert\SpecialChar \menuseparator
32132 File\SpecialChar \menuseparator
32134 \begin_inset space ~
32140 A dialog pops up where you can choose between four include methods:
32143 \begin_layout Description
32144 Include You can include LyX and LaTeX-documents.
32153 dialog, the included documents will be opened in LyX in a new file tab
32154 so that you can modify it.
32155 \begin_inset Newline newline
32161 \begin_layout Standard
32162 Here is a child document inserted using
32167 \begin_inset CommandInset include
32168 LatexCommand include
32169 filename "DummyDocument1.lyx"
32176 \begin_layout Standard
32177 The section numbering includes the sections of the included files in the
32178 order they are inserted in the master document.
32179 The included example document has for example a subsection that is numbered
32180 as subsection of this section.
32181 Labels of included documents can be referenced: Subsection
32182 \begin_inset space ~
32186 \begin_inset CommandInset ref
32188 reference "sub:External-Subsection-1"
32195 \begin_layout Standard
32196 The preamble of the child document is ignored, only the preamble of the
32197 master document is used.
32198 Branches in child documents will be ignored by the master document when
32199 the master document does not have a branch with the same name.
32200 Included documents are inserted starting on a new page and end with a page
32204 \begin_layout Standard
32205 In case you are only working on a certain chapter of a large document and
32206 want to save compiling time, you can put each included file into a branch.
32210 \begin_layout Plain Layout
32211 Branches are described in section
32224 By enabling/disabling branches you can decide what included files will
32225 appear in the output.
32228 \begin_layout Standard
32229 \begin_inset Note Greyedout
32232 \begin_layout Plain Layout
32237 Due to a bug in LyX the LaTeX command
32243 can currently not be used as alternative to decide what files should be
32252 \begin_layout Standard
32253 \begin_inset Note Greyedout
32256 \begin_layout Plain Layout
32261 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
32262 w the document in case that the child document uses another document class
32263 than the master document as this will lead to unexpected outputs.
32271 \begin_layout Description
32272 Input This method is very similar to the Include method.
32273 The differences are:
32277 \begin_layout Itemize
32278 Input files don't start with a new page and don't end with a page break.
32281 \begin_layout Itemize
32282 Input files can be previewed in LyX when
32285 \begin_inset space ~
32290 is enabled in LyX's preferences under
32293 \begin_inset space ~
32297 \begin_inset space ~
32300 feel\SpecialChar \menuseparator
32306 \begin_layout Itemize
32317 \begin_layout Standard
32318 Here is a child document inserted using
32323 \begin_inset CommandInset include
32325 filename "DummyDocument2.lyx"
32332 \begin_layout Description
32333 Verbatim With this method every text file can be included.
32334 The file is shown in the output with its source code, no command used in
32335 the text is invoked.
32336 You can use the option
32338 Mark spaces in output
32340 that displays the character
32341 \begin_inset Quotes eld
32348 \begin_layout Plain Layout
32358 \begin_inset Quotes erd
32361 for every space character in the source code.
32362 The difference to the method via the menu
32364 Insert\SpecialChar \menuseparator
32365 File\SpecialChar \menuseparator
32367 \begin_inset space ~
32372 is that the document content is not shown in LyX.
32375 \begin_layout Standard
32376 Here is a child document inserted as Verbatim:
32377 \begin_inset CommandInset include
32378 LatexCommand verbatiminput
32379 filename "DummyTextDocument.txt"
32384 \begin_inset VSpace bigskip
32387 Here is a child document inserted as Verbatim using the
32389 Mark spaces in output
32392 \begin_inset CommandInset include
32393 LatexCommand verbatiminput*
32394 filename "DummyTextDocument.txt"
32401 \begin_layout Standard
32402 \begin_inset VSpace bigskip
32408 \begin_layout Standard
32409 \begin_inset Note Greyedout
32412 \begin_layout Plain Layout
32417 As you can see in the examples above, the text of the documents included
32422 is not broken at the end of the document lines.
32430 \begin_layout Description
32431 Listings This type is described in chapter
32432 \begin_inset space ~
32436 \begin_inset CommandInset ref
32438 reference "cha:Program-Code-Listings"
32445 \begin_layout Standard
32446 \begin_inset Note Greyedout
32449 \begin_layout Plain Layout
32454 Including the same document twice in a document using different methods
32455 could cause LaTeX-problems.
32463 \begin_layout Chapter
32464 Program Code Listings
32465 \begin_inset CommandInset label
32467 name "cha:Program-Code-Listings"
32475 \begin_layout Plain Layout
32485 \begin_layout Plain Layout
32495 \begin_layout Plain Layout
32504 \begin_layout Standard
32505 To include and typeset program code you can use the
32509 inset that can be inserted via the menu
32511 Insert\SpecialChar \menuseparator
32523 \begin_layout Plain Layout
32524 LaTeX-packages ! listings
32529 provides a powerful and flexible way to insert program source code to your
32533 \begin_layout Standard
32534 Right-clicking on a listings inset opens the context menu containing where
32535 you can set the listings format.
32538 \begin_layout Standard
32539 By default, a listing starts a new paragraph in the output.
32540 The placement option
32543 \begin_inset space ~
32548 prints the listing inline like this:
32549 \begin_inset listings
32550 lstparams "language={C++}"
32554 \begin_layout Plain Layout
32562 \begin_inset Newline newline
32569 creates a listings float where you can specify the placement options
32570 \begin_inset Quotes eld
32578 \begin_inset Quotes erd
32582 \begin_inset Quotes eld
32590 \begin_inset Quotes erd
32594 \begin_inset Quotes eld
32602 \begin_inset Quotes erd
32606 \begin_inset Quotes eld
32614 \begin_inset Quotes erd
32617 corresponding to the float placement options described in section
32618 \begin_inset space ~
32622 \begin_inset CommandInset ref
32624 reference "sec:Float-Placement"
32629 The placement options can be mixed and are inserted without any separation,
32631 \begin_inset space \thinspace{}
32635 \begin_inset space \space{}
32639 \begin_inset Quotes eld
32647 \begin_inset Quotes erd
32652 \begin_inset Quotes eld
32656 \begin_inset Quotes erd
32659 has sometimes no effect, but you don't need to use the
32663 option in this case as also non-float listings can have captions and be
32667 \begin_layout Standard
32668 You can add captions to listings with the menu
32670 Insert\SpecialChar \menuseparator
32674 Listings can be referenced like floats: Listing
32675 \begin_inset space ~
32679 \begin_inset CommandInset ref
32681 reference "lst:Example-Listing"
32688 \begin_layout Standard
32689 \begin_inset listings
32690 lstparams "language=Python"
32694 \begin_layout Plain Layout
32696 \begin_inset Caption
32698 \begin_layout Plain Layout
32699 \begin_inset CommandInset label
32701 name "lst:Example-Listing"
32705 Example Listing float
32710 # Example listing float
32713 \begin_layout Plain Layout
32718 \begin_layout Plain Layout
32720 'this is a python function'
32723 \begin_layout Plain Layout
32733 \begin_layout Standard
32734 When you have set a programming language in the listings dialog, the keywords
32735 of this language will be recognized and specially typeset in the output.
32736 In the example listings the Python keyword
32737 \begin_inset Quotes eld
32741 \begin_inset Quotes erd
32744 is recognized and printed bold in the output.
32747 \begin_layout Standard
32748 \begin_inset Note Greyedout
32751 \begin_layout Plain Layout
32756 If you don't get bold keywords when using typewriter fonts, your
32760 font probably doesn't provide a bold shape.
32761 In this case select a different one in the menu
32763 Document\SpecialChar \menuseparator
32764 Settings\SpecialChar \menuseparator
32776 provide bold shapes.)
32784 \begin_layout Standard
32788 \begin_inset space ~
32793 of the listings dialog you can specify the line numbering style.
32794 You can insert a number to specify which lines are numbered to the field
32801 \begin_inset space \thinspace{}
32805 \begin_inset space \space{}
32809 \begin_inset Quotes eld
32813 \begin_inset Quotes erd
32816 , only every 3rd line will be numbered.
32819 \begin_layout Standard
32820 You can furthermore specify a range of lines, only these will then appear
32824 Extended character table
32826 should be used when you use national characters like the German umlauts
32828 \begin_inset Newline newline
32831 Here is an example listing with left line numbering, step
32832 \begin_inset Quotes eld
32836 \begin_inset Quotes erd
32840 \begin_inset Quotes eld
32844 \begin_inset Quotes erd
32848 \begin_inset Quotes eld
32851 Extended character table
32852 \begin_inset Quotes erd
32856 \begin_inset Quotes eld
32860 \begin_inset space ~
32864 \begin_inset space ~
32868 \begin_inset Quotes erd
32872 \begin_inset space \thinspace{}
32876 \begin_inset space \thinspace{}
32882 \begin_layout Standard
32883 \begin_inset listings
32884 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
32888 \begin_layout Plain Layout
32893 \begin_layout Plain Layout
32895 'this is a python function'
32898 \begin_layout Plain Layout
32903 \begin_layout Plain Layout
32908 \begin_layout Plain Layout
32910 'This is a German word: Tschüß'
32913 \begin_layout Plain Layout
32918 \begin_layout Plain Layout
32923 \begin_layout Plain Layout
32925 'this is a python function'
32928 \begin_layout Plain Layout
32938 \begin_layout Standard
32939 When you have tabulators in your listing, you can specify the number of
32940 characters that are spanned by a tabulator in the field
32943 \begin_inset space ~
32951 \begin_layout Standard
32952 \begin_inset Note Greyedout
32955 \begin_layout Plain Layout
32960 Due to a bug in the
32964 package the line numbering is shifted by a line by every previous listing.
32965 That's the reason why the lines 2 and 5 are numbered in the above listing
32966 and not the lines 3 and 6.
32974 \begin_layout Standard
32975 \begin_inset VSpace bigskip
32981 \begin_layout Standard
32982 It is also possible to print lines from a file as listing.
32983 To do this, use the menu
32985 Insert\SpecialChar \menuseparator
32986 File\SpecialChar \menuseparator
32989 and choose the type
32997 \begin_layout Plain Layout
32998 The other child document types are described in section
32999 \begin_inset space ~
33003 \begin_inset CommandInset ref
33005 reference "sec:Child-Documents"
33014 In the child document dialog you can specify the listing parameters in
33016 To show a list of all available parameters, type in a question mark
33017 \begin_inset Quotes eld
33021 \begin_inset Quotes erd
33027 \begin_layout Standard
33028 To reference child document listings, write a label text into the corresponding
33029 field of the child document dialog.
33030 The label can then be referenced using the menu
33032 Insert\SpecialChar \menuseparator
33038 \begin_layout Standard
33040 \begin_inset space ~
33044 \begin_inset CommandInset ref
33046 reference "lst:file-listing"
33050 is an example for a listing of a file; there the lines 10
33051 \begin_inset space \thinspace{}
33055 \begin_inset space \thinspace{}
33058 15 of this LyX file are listed.
33061 \begin_layout Standard
33062 \begin_inset CommandInset include
33063 LatexCommand lstinputlisting
33064 filename "EmbeddedObjects.lyx"
33065 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
33072 \begin_layout Standard
33073 \begin_inset VSpace bigskip
33079 \begin_layout Standard
33080 Global listings settings can be set in the
33082 Document\SpecialChar \menuseparator
33083 Settings\SpecialChar \menuseparator
33087 To get there a list of available options, type in a question mark
33088 \begin_inset Quotes eld
33092 \begin_inset Quotes erd
33098 \begin_inset space ~
33106 \begin_layout Standard
33107 For more information about the
33111 package, we refer to its documentation
33112 \begin_inset CommandInset citation
33121 \begin_layout Standard
33122 \begin_inset Newpage newpage
33128 \begin_layout Chapter
33130 Units available in LyX
33134 \begin_layout Plain Layout
33141 \begin_inset CommandInset label
33143 name "cha:Units-available-in"
33150 \begin_layout Standard
33151 To understand the units described in this documentation, Table
33152 \begin_inset space ~
33156 \begin_inset CommandInset ref
33158 reference "tab:Units"
33162 explains all units available in LyX.
33165 \begin_layout Standard
33166 \begin_inset Float table
33172 \begin_layout Plain Layout
33173 \begin_inset Caption
33175 \begin_layout Plain Layout
33176 \begin_inset CommandInset label
33190 \begin_layout Plain Layout
33191 \begin_inset VSpace medskip
33197 \begin_layout Plain Layout
33199 \begin_inset Tabular
33200 <lyxtabular version="3" rows="20" columns="2">
33202 <column alignment="center" valignment="top" width="0">
33203 <column alignment="center" valignment="top" width="0">
33205 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33208 \begin_layout Plain Layout
33214 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33217 \begin_layout Plain Layout
33225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33228 \begin_layout Plain Layout
33234 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33237 \begin_layout Plain Layout
33245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33248 \begin_layout Plain Layout
33254 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33257 \begin_layout Plain Layout
33265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33268 \begin_layout Plain Layout
33274 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33277 \begin_layout Plain Layout
33285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33288 \begin_layout Plain Layout
33294 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33297 \begin_layout Plain Layout
33299 \begin_inset space \thinspace{}
33303 \begin_inset space \thinspace{}
33313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33316 \begin_layout Plain Layout
33322 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33325 \begin_layout Plain Layout
33327 \begin_inset space \thinspace{}
33331 \begin_inset space \thinspace{}
33341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33344 \begin_layout Plain Layout
33350 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33353 \begin_layout Plain Layout
33354 scaled point (65536
33355 \begin_inset space \thinspace{}
33359 \begin_inset space \thinspace{}
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
33383 \begin_inset space \thinspace{}
33387 \begin_inset space \thinspace{}
33397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33400 \begin_layout Plain Layout
33406 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33409 \begin_layout Plain Layout
33411 \begin_inset space \thinspace{}
33415 \begin_inset Formula $\approx$
33419 \begin_inset space \thinspace{}
33429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33432 \begin_layout Plain Layout
33438 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33441 \begin_layout Plain Layout
33443 \begin_inset space \thinspace{}
33447 \begin_inset space \thinspace{}
33457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33460 \begin_layout Plain Layout
33466 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33469 \begin_layout Plain Layout
33470 % of original image width
33477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33480 \begin_layout Plain Layout
33486 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33489 \begin_layout Plain Layout
33497 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33500 \begin_layout Plain Layout
33506 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33509 \begin_layout Plain Layout
33517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33520 \begin_layout Plain Layout
33526 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33529 \begin_layout Plain Layout
33537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33540 \begin_layout Plain Layout
33546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33549 \begin_layout Plain Layout
33557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33560 \begin_layout Plain Layout
33566 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33569 \begin_layout Plain Layout
33577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33580 \begin_layout Plain Layout
33586 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33589 \begin_layout Plain Layout
33597 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33600 \begin_layout Plain Layout
33606 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33609 \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
33645 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33648 \begin_layout Plain Layout
33654 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33657 \begin_layout Plain Layout
33659 \begin_inset space \thinspace{}
33663 \begin_inset space \thinspace{}
33684 \begin_layout Chapter
33685 Output File Formats with Graphics
33686 \begin_inset CommandInset label
33688 name "cha:Output-File-Formats"
33695 \begin_layout Section
33700 \begin_layout Plain Layout
33710 \begin_layout Plain Layout
33715 \begin_layout Plain Layout
33726 \begin_layout Plain Layout
33741 \begin_layout Standard
33742 This file type has the extension
33743 \begin_inset Quotes eld
33751 \begin_inset Quotes erd
33756 \begin_inset Quotes eld
33760 \begin_inset Quotes erd
33763 (DVI), because it is completely portable; you can move them from one machine
33764 to another without needing to do any sort of conversion.
33765 At the time when this file-format was developed, this was no matter of
33767 DVIs are used for quick previews and as pre-stage for other output formats,
33771 \begin_layout Standard
33772 \begin_inset Note Greyedout
33775 \begin_layout Plain Layout
33780 DVI-files doesn't contain images, they will only be a linked.
33785 So don't forget this, if you move your
33789 file to another computer.
33790 This property can also slow down your computer when you view the DVI.
33791 Because the DVI-viewer has to convert the image in the background to make
33792 it visible when you scroll in the DVI.
33793 So we recommend to use PDF for files with many images.
33796 \begin_layout Standard
33797 You can export your document to DVI by using the menu
33799 File\SpecialChar \menuseparator
33800 Export\SpecialChar \menuseparator
33804 You can view your document as DVI via the
33808 menu or by using the toolbar button
33809 \begin_inset Graphics
33810 filename ../images/buffer-view_dvi.png
33812 scaleBeforeRotation
33819 \begin_layout Section
33821 \begin_inset CommandInset label
33823 name "sec:PostScript"
33831 \begin_layout Plain Layout
33832 File Formats ! PostScript
33841 \begin_layout Plain Layout
33846 \begin_layout Plain Layout
33857 \begin_layout Plain Layout
33872 \begin_layout Standard
33873 This file type has the extension
33874 \begin_inset Quotes eld
33882 \begin_inset Quotes erd
33886 PostScript was developed by the company
33890 as printer language.
33891 The file contains therefore commands that the printer uses to print the
33893 PostScript can be seen as
33894 \begin_inset Quotes eld
33897 programming language
33898 \begin_inset Quotes erd
33901 ; you can calculate with it and draw diagrams and images
33905 \begin_layout Plain Layout
33906 If you are interested to learn more about this, have a look at the LaTeX-package
33912 \begin_inset CommandInset citation
33924 Due to this ability, the files are often bigger than PDFs.
33927 \begin_layout Standard
33928 PostScript can only contain images in the format
33929 \begin_inset Quotes eld
33932 Encapsulated PostScript
33933 \begin_inset Quotes erd
33936 (EPS, file extension
33937 \begin_inset Quotes eld
33945 \begin_inset Quotes erd
33949 As LyX allows you to use any known image format in your document, it has
33950 to convert images in the background to EPS.
33951 If you have e.g 50 images in your document, LyX has to do 50 conversions
33952 whenever you view or export your document.
33953 This will slow down your work flow with LyX drastically.
33954 So if you plan to use PostScript, you can insert your images directly as
33955 EPS to avoid this problem.
33958 \begin_layout Standard
33959 You can export your document to PostScript using the menu
33961 File\SpecialChar \menuseparator
33962 Export\SpecialChar \menuseparator
33966 You can view your document as PostScript via the
33970 menu or by using the toolbar button
33971 \begin_inset Graphics
33972 filename ../images/buffer-view_ps.png
33974 scaleBeforeRotation
33981 \begin_layout Section
33986 \begin_layout Plain Layout
33996 \begin_layout Plain Layout
34005 \begin_layout Standard
34006 This file type has the extension
34007 \begin_inset Quotes eld
34015 \begin_inset Quotes erd
34020 \begin_inset Quotes eld
34023 Portable Document Format
34024 \begin_inset Quotes erd
34027 (PDF) is developed by
34031 as derivative from PostScript.
34032 It is more compressed and it uses much less commands than PostScript.
34034 \begin_inset Quotes eld
34038 \begin_inset Quotes erd
34041 implies, it can be processed at any computer system and the printed output
34042 looks exactly the same.
34045 \begin_layout Standard
34046 PDF can contain images in its own PDF format, in the format
34047 \begin_inset Quotes eld
34050 Joint Photographic Experts Group
34051 \begin_inset Quotes erd
34054 (JPG, file extension
34055 \begin_inset Quotes eld
34063 \begin_inset Quotes erd
34067 \begin_inset Quotes eld
34075 \begin_inset Quotes erd
34078 ), and in the format
34079 \begin_inset Quotes eld
34082 Portable Network Graphics
34083 \begin_inset Quotes erd
34086 (PNG, file extension
34087 \begin_inset Quotes eld
34095 \begin_inset Quotes erd
34099 Nevertheless you can use any other image format, because LyX converts them
34100 in the background to one of these formats.
34101 But as described in the section about PostScript, the image conversion
34102 will slow down your work flow.
34103 So it is recommended to use images in one of the three mentioned formats.
34106 \begin_layout Standard
34107 You can export your document to PDF via the menu
34109 File\SpecialChar \menuseparator
34112 in three different ways:
34115 \begin_layout Description
34117 \begin_inset space ~
34120 (ps2pdf) This uses the program
34124 that creates a PDF from a PostScript-version of your file.
34125 The PostScript-version is produced by the program
34129 which uses a DVI-version as intermediate step.
34130 So this export variant consist of three conversions.
34133 \begin_layout Description
34135 \begin_inset space ~
34138 (dvipdfm) This uses the program
34142 that converts your file in the background to DVI and in a second step to
34146 \begin_layout Description
34148 \begin_inset space ~
34151 (pdflatex) This uses the program
34155 that converts your file directly to PDF.
34158 \begin_layout Standard
34159 It is recommended to use
34162 \begin_inset space ~
34171 supports all features of actual PDF-versions, is quick and works stable
34177 is not under development and therefore a bit outdated.
34180 \begin_layout Standard
34181 You can view your document as PDF via the
34185 menu or by using the toolbar button
34186 \begin_inset Graphics
34187 filename ../images/buffer-view_pdf2.png
34189 scaleBeforeRotation
34200 \begin_inset space ~
34208 \begin_layout Chapter
34209 Explanation of Equation
34210 \begin_inset space ~
34214 \begin_inset CommandInset ref
34221 \begin_inset CommandInset label
34223 name "cha:Explanation-of-Equation"
34230 \begin_layout Standard
34236 \begin_inset Formula $W_{\mathrm{tot\, n}}$
34239 can be calculated to
34242 \begin_layout Standard
34243 \begin_inset Formula \begin{equation}
34244 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}
34251 \begin_layout Standard
34253 \begin_inset Formula $W_{g\, n}$
34256 is the given width of all cells.
34263 is the LaTeX-length between the cell text and the cell border, its default
34265 \begin_inset space \thinspace{}
34275 is the thickness of the cell border line, the default is 0.4
34276 \begin_inset space \thinspace{}
34282 \begin_layout Standard
34284 \begin_inset space ~
34288 \begin_inset CommandInset ref
34290 reference "eq:Wtot_n"
34294 , the total width of a multicolumn
34295 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
34301 \begin_layout Standard
34302 \begin_inset Formula \begin{equation}
34303 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
34310 \begin_layout Standard
34311 By setting equation
34312 \begin_inset space ~
34316 \begin_inset CommandInset ref
34318 reference "eq:Wtot_n"
34323 \begin_inset CommandInset ref
34325 reference "eq:Wtot_mult"
34329 equal we can calculate the needed given width
34330 \begin_inset Formula $W_{g\, n}$
34337 columns are spanned, so that each column has a total width of
34338 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
34344 \begin_layout Standard
34345 \begin_inset Formula \begin{equation}
34346 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
34353 \begin_layout Bibliography
34354 \begin_inset CommandInset bibitem
34355 LatexCommand bibitem
34356 key "latexcompanion"
34360 Frank Mittelbach and Michel Goossens:
34362 The LaTeX Companion Second Edition.
34365 Addison-Wesley, 2004
34368 \begin_layout Bibliography
34369 \begin_inset CommandInset bibitem
34370 LatexCommand bibitem
34375 Helmut Kopka and Patrick W.
34378 A Guide to LaTeX Fourth Edition.
34381 Addison-Wesley, 2003
34384 \begin_layout Bibliography
34385 \begin_inset CommandInset bibitem
34386 LatexCommand bibitem
34393 LaTeX: A Document Preparation System.
34396 Addison-Wesley, second edition, 1994
34399 \begin_layout Bibliography
34400 \begin_inset CommandInset bibitem
34401 LatexCommand bibitem
34406 Documentation of the LaTeX-package
34409 \begin_inset CommandInset href
34412 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
34422 \begin_layout Plain Layout
34423 LaTeX-packages ! booktabs
34431 \begin_layout Bibliography
34432 \begin_inset CommandInset bibitem
34433 LatexCommand bibitem
34438 Documentation of the LaTeX-package
34441 \begin_inset CommandInset href
34444 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
34454 \begin_layout Plain Layout
34455 LaTeX-packages ! caption
34463 \begin_layout Bibliography
34464 \begin_inset CommandInset bibitem
34465 LatexCommand bibitem
34470 Documentation of the LaTeX-package
34473 \begin_inset CommandInset href
34476 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
34486 \begin_layout Plain Layout
34487 LaTeX-packages ! endfloat
34495 \begin_layout Bibliography
34496 \begin_inset CommandInset bibitem
34497 LatexCommand bibitem
34502 Documentation of the LaTeX-package
34505 \begin_inset CommandInset href
34508 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
34518 \begin_layout Plain Layout
34519 LaTeX-packages ! wrapfig
34523 \begin_layout Plain Layout
34540 \begin_layout Bibliography
34541 \begin_inset CommandInset bibitem
34542 LatexCommand bibitem
34547 Documentation of the LaTeX-package
34550 \begin_inset CommandInset href
34553 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
34563 \begin_layout Plain Layout
34564 LaTeX-packages ! footmisc
34572 \begin_layout Bibliography
34573 \begin_inset CommandInset bibitem
34574 LatexCommand bibitem
34579 Documentation of the LaTeX-package
34582 \begin_inset CommandInset href
34585 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
34595 \begin_layout Plain Layout
34596 LaTeX-packages ! hyperref
34604 \begin_layout Bibliography
34605 \begin_inset CommandInset bibitem
34606 LatexCommand bibitem
34611 Documentation of the LaTeX-package
34614 \begin_inset CommandInset href
34617 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
34627 \begin_layout Plain Layout
34628 LaTeX-packages ! hyperref
34636 \begin_layout Bibliography
34637 \begin_inset CommandInset bibitem
34638 LatexCommand bibitem
34643 Documentation of the LaTeX-package
34646 \begin_inset CommandInset href
34649 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
34659 \begin_layout Plain Layout
34660 LaTeX-packages ! KOMA-script
34668 \begin_layout Bibliography
34669 \begin_inset CommandInset bibitem
34670 LatexCommand bibitem
34675 Documentation of the LaTeX-package
34678 \begin_inset CommandInset href
34681 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
34691 \begin_layout Plain Layout
34692 LaTeX-packages ! listings
34700 \begin_layout Bibliography
34701 \begin_inset CommandInset bibitem
34702 LatexCommand bibitem
34707 Documentation of the LaTeX-package
34710 \begin_inset CommandInset href
34713 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
34723 \begin_layout Plain Layout
34724 LaTeX-packages ! marginnote
34732 \begin_layout Bibliography
34733 \begin_inset CommandInset bibitem
34734 LatexCommand bibitem
34739 Web page of the LaTeX-package
34742 \begin_inset CommandInset href
34745 target "http://tug.org/PSTricks/"
34755 \begin_layout Plain Layout
34756 LaTeX-packages ! PSTricks
34764 \begin_layout Bibliography
34765 \begin_inset CommandInset bibitem
34766 LatexCommand bibitem
34771 Documentation of the LaTeX-package
34774 \begin_inset CommandInset href
34777 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
34787 \begin_layout Plain Layout
34788 LaTeX-packages ! sidecap
34796 \begin_layout Bibliography
34797 \begin_inset CommandInset bibitem
34798 LatexCommand bibitem
34804 \begin_inset CommandInset href
34807 target "http://wiki.lyx.org/LyX/NewInLyX16"
34811 about new features in
34818 \begin_layout Standard
34819 \begin_inset CommandInset index_print
34820 LatexCommand printindex
34827 \begin_layout Standard
34828 \begin_inset FloatList figure
34835 \begin_layout Standard
34836 \begin_inset FloatList table
34843 \begin_layout Standard
34844 \begin_inset FloatList algorithm