1 #LyX 1.6.4svn created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
38 \newcommand{\TabBesBeg}{%
40 \let\MyEndtable\endtable
41 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
43 \newcommand{\TabBesEnd}{%
45 \let\endtable\MyEndtable}
47 \newcommand{\FigBesBeg}{%
49 \let\MyEndfigure\endfigure
50 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
52 \newcommand{\FigBesEnd}{%
54 \let\endfigure\MyEndfigure}
56 % enables calculation of values,
59 % provides special table cell alignments
62 % increase the bottom float placement fraction
63 \renewcommand{\bottomfraction}{0.5}
65 % avoids that floats are placed before their
66 % corresponding section starts
67 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
69 % speed up the longtable calculation
70 \setcounter{LTchunksize}{100}
72 % used for scaled and rotated boxes
73 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
75 % used for colored tables
76 \@ifundefined{textcolor}
77 {\usepackage{color}}{}
78 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
79 \definecolor{lightgrey}{gray}{0.8}
81 % check for package colortbl
82 % used for colored table cells
84 \IfFileExists{colortbl.sty}
85 {\usepackage{colortbl}
86 \setboolean{colortbl}{true}}
87 {\setboolean{colortbl}{false}}
91 %\renewcommand{\multirowsetup}{\centering}
93 % used for book-style tables
96 % used to have extra space in table cells
97 \@ifundefined{extrarowheight}
98 {\usepackage{array}}{}
99 \setlength{\extrarowheight}{2pt}
101 % used for customized tables
104 {>{\centering\hspace{0pt}}m{#1}}
107 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
110 {>{\columncolor{#1}\hspace{0pt}}c}
112 \newcolumntype{V}{!{\vrule width 1.5pt}}
114 \newcolumntype{W}{!{\color{green}\vline}}
117 % insert additional vertical space of
118 % 1.5 mm between footnotes
120 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
122 % number algorithm floats within chapters
123 \numberwithin{algorithm}{chapter}
125 % redefine the greyed out note
126 \renewenvironment{lyxgreyedout}
127 {\textcolor{blue}\bgroup}{\egroup}
129 % ------------------------------------
130 % used to check for needed LaTeX packages
133 % check for package arydshln
134 % used for tables with dashed lines
135 \newboolean{arydshln}
136 \IfFileExists{arydshln.sty}
137 {\usepackage{arydshln}
138 \setboolean{arydshln}{true}}
139 {\setboolean{arydshln}{false}}
141 % check for package marginnote
142 % used for margin notes
143 \newboolean{marginnote}
144 \IfFileExists{marginnote.sty}
145 {\usepackage{marginnote}
146 \let\marginpar\marginnote
147 \setboolean{marginnote}{true}}
148 {\setboolean{marginnote}{false}}
150 % check for package sidecap
151 % used for captions on the side
153 \IfFileExists{sidecap.sty}
154 {\usepackage{sidecap}
155 \setboolean{sidecap}{true}}
156 {\setboolean{sidecap}{false}}
158 % redefine the \LyX macro for PDF bookmarks
159 \def\LyX{\texorpdfstring{%
160 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
163 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
164 \use_default_options false
169 \font_typewriter default
170 \font_default_family default
180 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
181 \pdf_author "LyX Team, Uwe Stöhr"
182 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
183 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
185 \pdf_bookmarksnumbered true
186 \pdf_bookmarksopen true
187 \pdf_bookmarksopenlevel 1
188 \pdf_breaklinks false
192 \pdf_pdfusetitle false
193 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false, pdfpagelabels"
200 \paperorientation portrait
203 \paragraph_separation skip
205 \quotes_language english
208 \paperpagestyle default
212 \tracking_changes false
213 \output_changes false
221 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
230 \begin_layout Plain Layout
232 If you have comments or error corrections, please send them to the LyX Documenta
234 \begin_inset CommandInset href
236 name "lyx-docs@lists.lyx.org"
237 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
248 \begin_inset Note Note
251 \begin_layout Plain Layout
258 \begin_inset Newline newline
262 \begin_inset Newline newline
270 \begin_layout Standard
271 \begin_inset CommandInset toc
272 LatexCommand tableofcontents
279 \begin_layout Standard
280 \begin_inset Note Note
283 \begin_layout Plain Layout
284 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
302 If they are not installed you can export the document anyway but the sections
303 where the packages are required won't appear in the output.
306 \begin_layout Plain Layout
307 The latest PDF-version of this document can be found here:
308 \begin_inset Newline newline
313 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
321 \begin_layout Chapter
326 \begin_layout Plain Layout
336 \begin_layout Plain Layout
341 \begin_layout Plain Layout
352 \begin_layout Plain Layout
367 \begin_layout Section
372 \begin_layout Plain Layout
373 Figures ! Graphics Dialog
379 \begin_inset CommandInset label
381 name "sec:Graphics-Dialog"
388 \begin_layout Standard
389 To insert an image into your document, place the cursor at the text position
390 you want and click on the toolbar icon
391 \begin_inset Graphics
392 filename ../images/dialog-show-new-inset_graphics.png
400 Insert\SpecialChar \menuseparator
404 Then a dialog will appear to choose the file to load.
405 The image will appear in the output exactly at the position where it is
409 \begin_layout Standard
410 The graphics dialog can be called at any time by clicking on an image.
411 This dialog has three tabs:
414 \begin_layout Description
419 Here you can choose an image file and adjust its appearance in the output.
420 The available units for the image size are explained in appendix
425 \begin_inset CommandInset ref
427 reference "cha:Units-available-in"
432 \begin_inset Newline newline
439 \begin_layout Plain Layout
445 You can rotate images counter-clockwise by setting a rotation angle and
447 The image will also be rotated inside LyX.
448 \begin_inset Newline newline
455 \begin_layout Plain Layout
461 Images can be scaled by using a percentage value or by setting the width
462 and height explicitly.
463 If you set only the width or only the height, the other size will be determined
465 If you set both, then the image will be transformed to the given size,
466 possibly distorting it.
467 To prevent the image from distortion, use the option
469 Maintain aspect ratio
472 The image will then be scaled so that its width and height don't exceed
473 the specified dimensions.
474 \begin_inset Newline newline
477 Images can be opened in a program of your choice by right-clicking on it
486 in the appearing context menu.
487 The program can be set for every image format in the file format settings
488 in LyX's preferences.
491 \begin_layout Description
496 Alternatively to the usage of scaling units it is possible to set image
497 coordinates to adjust the height and width of the image in the output.
498 The coordinates can also be calculated automatically by pressing the button
528 will only print the image region within the given coordinates.
529 Normally you don't need to take care about image coordinates and can ignore
533 \begin_layout Description
550 In this tab you can modify the appearance of the image within LyX and LaTeX
551 experts can specify additional LaTeX options.
552 \begin_inset Newline newline
563 makes the image appear in the output only as a frame with the size of the
565 \begin_inset Newline newline
584 option only affects zipped EPS-graphics, e.
585 \begin_inset space \thinspace{}
589 \begin_inset space \space{}
597 When the option is used the images will not be unzipped on export, since
598 LaTeX can handle them as they are.
599 \begin_inset Newline newline
602 Zipped EPS-graphics are useful to save disk space when you choose PostScript
603 as output format, see appendix
608 \begin_inset CommandInset ref
610 reference "sec:PostScript"
615 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
617 \begin_inset Newline newline
625 \begin_inset Newline newline
630 zgrep %%Bounding x.eps.gz > x.eps.bb
633 \begin_inset Newline newline
636 The second command creates the bounding box file
637 \begin_inset Quotes eld
641 \begin_inset Quotes erd
644 that is needed by LaTeX for zipped graphics.
645 \begin_inset Newline newline
660 allows you define or join an image settings group.
664 \begin_layout Plain Layout
665 Figures ! Settings grouping
670 Images within such a group share their settings, so adjusting one image
671 of the group automatically also adjusts all other images of the group in
673 So you can for example change the size for a bunch of images without the
674 need to manually change each of them.
675 Joining an existing group can also be done using the context menu of the
676 image by checking the name of the desired group.
679 \begin_layout Standard
680 \begin_inset VSpace bigskip
686 \begin_layout Standard
687 This is an example image in EPS format
691 \begin_layout Plain Layout
692 Image formats are explained in section
697 \begin_inset CommandInset ref
699 reference "sec:Image-Formats"
708 within a separate, horizontally centered paragraph:
711 \begin_layout Standard
713 \begin_inset Graphics
714 filename clipart/mobius.eps
724 \begin_layout Standard
725 This is the same image like the one above but in draft mode:
728 \begin_layout Standard
730 \begin_inset Graphics
731 filename clipart/mobius.eps
742 \begin_layout Standard
743 \begin_inset Newpage newpage
749 \begin_layout Section
751 \begin_inset CommandInset label
753 name "sec:Figure-Floats"
761 \begin_layout Plain Layout
771 \begin_layout Plain Layout
780 \begin_layout Standard
781 For general explanations about floats, have a look at section
786 \begin_inset CommandInset ref
788 reference "sec:FloatIntroduction"
795 \begin_layout Standard
797 \begin_inset Graphics
798 filename ../images/float-insert_figure.png
806 Insert\SpecialChar \menuseparator
807 Float\SpecialChar \menuseparator
810 inserts a float with a caption that has the label
811 \begin_inset Quotes eld
819 \begin_inset Quotes erd
822 (# is the actual number).
823 You can insert the image above the caption, like in Figure
828 \begin_inset CommandInset ref
830 reference "fig:kill-plat"
834 or below the caption, like in Figure
839 \begin_inset CommandInset ref
841 reference "fig:escher"
846 More about the caption placement is described in section
851 \begin_inset CommandInset ref
853 reference "sec:Caption-Placement"
860 \begin_layout Standard
861 \begin_inset Float figure
866 \begin_layout Plain Layout
868 \begin_inset Graphics
869 filename clipart/platypus.eps
879 \begin_layout Plain Layout
882 \begin_layout Plain Layout
883 \begin_inset CommandInset label
889 A severely distorted platypus in a float.
902 \begin_layout Standard
903 \begin_inset Float figure
908 \begin_layout Plain Layout
911 \begin_layout Plain Layout
912 \begin_inset CommandInset label
927 \begin_layout Plain Layout
929 \begin_inset Graphics
930 filename clipart/escher-lsd.eps
945 \begin_layout Standard
949 \begin_layout Plain Layout
950 References ! to Figures
960 \begin_inset CommandInset ref
962 reference "fig:kill-plat"
967 \begin_inset CommandInset ref
969 reference "fig:escher"
973 are examples of referenced figures.
974 Figures can be referenced in the text by referencing their label.
975 To do this insert a label in the caption using the menu
977 Insert\SpecialChar \menuseparator
980 or the toolbar button
981 \begin_inset Graphics
982 filename ../images/label-insert.png
989 You can now refer to the label using the menu
991 Insert\SpecialChar \menuseparator
998 or the toolbar button
999 \begin_inset Graphics
1000 filename ../images/dialog-show-new-inset_ref.png
1007 It is important to use references to floats, rather than using vague references
1009 \begin_inset Quotes eld
1013 \begin_inset Quotes erd
1016 , because as LaTeX will reposition the floats in the final document, it
1018 \begin_inset Quotes eld
1022 \begin_inset Quotes erd
1026 \begin_inset Newline newline
1029 Referencing is explained in detail in section
1030 \begin_inset space ~
1034 \begin_inset CommandInset ref
1036 reference "sec:Referencing-Floats"
1043 \begin_layout Standard
1044 Normally only one image is inserted to a figure float, but sometimes you
1045 might want to use two images with separate subcaptions.
1046 This can be done by inserting image floats into existing image floats.
1047 Note that only the main caption of the float is added to the List of Figures.
1049 \begin_inset space ~
1053 \begin_inset CommandInset ref
1055 reference "fig:Two-distorted-images"
1059 is an example of a figure float with two images set side by side.
1060 You can also set the images one below the other.
1062 \begin_inset space ~
1066 \begin_inset CommandInset ref
1068 reference "fig:Undefinable-structure"
1073 \begin_inset CommandInset ref
1075 reference "fig:A-Platypus"
1082 \begin_layout Standard
1083 \begin_inset Float figure
1088 \begin_layout Plain Layout
1089 \begin_inset space \hfill{}
1093 \begin_inset Float figure
1098 \begin_layout Plain Layout
1099 \begin_inset Caption
1101 \begin_layout Plain Layout
1102 \begin_inset CommandInset label
1104 name "fig:Undefinable-structure"
1108 Undefinable structure.
1116 \begin_layout Plain Layout
1117 \begin_inset Graphics
1118 filename clipart/escher-lsd.eps
1131 \begin_inset space \hfill{}
1135 \begin_inset Float figure
1140 \begin_layout Plain Layout
1141 \begin_inset Caption
1143 \begin_layout Plain Layout
1144 \begin_inset CommandInset label
1146 name "fig:A-Platypus"
1158 \begin_layout Plain Layout
1159 \begin_inset Graphics
1160 filename clipart/platypus.eps
1173 \begin_inset space \hfill{}
1179 \begin_layout Plain Layout
1180 \begin_inset Caption
1182 \begin_layout Plain Layout
1183 \begin_inset CommandInset label
1185 name "fig:Two-distorted-images"
1189 Two distorted images.
1190 Both images are in the image settings group named
1191 \begin_inset Quotes eld
1195 \begin_inset Quotes erd
1211 \begin_layout Standard
1212 \begin_inset Newpage newpage
1218 \begin_layout Section
1220 \begin_inset CommandInset label
1222 name "sec:Image-Formats"
1230 \begin_layout Plain Layout
1240 \begin_layout Plain Layout
1241 Figures ! Image Formats
1249 \begin_layout Standard
1250 You can insert images in any known file format.
1251 But as explained in appendix
1252 \begin_inset space ~
1256 \begin_inset CommandInset ref
1258 reference "cha:Output-File-Formats"
1262 , every output document format allows only a few image formats.
1263 LyX uses therefore the program
1267 in the background to convert the images to the right format.
1268 To increase your work flow by avoiding these conversions in the background,
1269 you can use only the image formats that can directly be embedded in the
1271 The output file formats are explained in appendix
1272 \begin_inset space ~
1276 \begin_inset CommandInset ref
1278 reference "cha:Output-File-Formats"
1285 \begin_layout Standard
1286 Similar to fonts there are two types of image formats:
1289 \begin_layout Description
1291 \begin_inset space ~
1294 images consist of pixel values, often in a compressed form.
1295 They are therefore not fully scalable and look pixeled in large zooms.
1296 Well-known bitmap image formats are
1297 \begin_inset Quotes eld
1300 Graphics Interchange Format
1301 \begin_inset Quotes erd
1304 (GIF, file extension
1305 \begin_inset Quotes eld
1313 \begin_inset Quotes erd
1320 \begin_layout Plain Layout
1325 \begin_layout Plain Layout
1336 \begin_layout Plain Layout
1349 \begin_inset Quotes eld
1352 Portable Network Graphics
1353 \begin_inset Quotes erd
1356 (PNG, file extension
1357 \begin_inset Quotes eld
1365 \begin_inset Quotes erd
1372 \begin_layout Plain Layout
1377 \begin_layout Plain Layout
1388 \begin_layout Plain Layout
1401 \begin_inset Quotes eld
1404 Joint Photographic Experts Group
1405 \begin_inset Quotes erd
1408 (JPG, file extension
1409 \begin_inset Quotes eld
1417 \begin_inset Quotes erd
1421 \begin_inset Quotes eld
1429 \begin_inset Quotes erd
1436 \begin_layout Plain Layout
1441 \begin_layout Plain Layout
1452 \begin_layout Plain Layout
1467 \begin_layout Description
1469 \begin_inset space ~
1472 images consist of vectors and can therefore be scaled to any size without
1474 The scaling ability is necessary if you want to create presentations, because
1475 presentations are always scaled by the video projector.
1476 Scaling is also useful for online documents to let the user zoom into diagrams.
1477 \begin_inset Newline newline
1480 Well-known scalable image formats are
1481 \begin_inset Quotes eld
1484 Scalable Vector Graphics
1485 \begin_inset Quotes erd
1488 (SVG, file extension
1489 \begin_inset Quotes eld
1497 \begin_inset Quotes erd
1504 \begin_layout Plain Layout
1509 \begin_layout Plain Layout
1520 \begin_layout Plain Layout
1533 \begin_inset Quotes eld
1536 Encapsulated PostScript
1537 \begin_inset Quotes erd
1540 (EPS, file extension
1541 \begin_inset Quotes eld
1549 \begin_inset Quotes erd
1556 \begin_layout Plain Layout
1561 \begin_layout Plain Layout
1572 \begin_layout Plain Layout
1585 \begin_inset Quotes eld
1588 Portable Document Format
1589 \begin_inset Quotes erd
1592 (PDF, file extension
1593 \begin_inset Quotes eld
1601 \begin_inset Quotes erd
1608 \begin_layout Plain Layout
1615 \begin_inset Quotes eld
1619 \begin_inset Quotes erd
1622 (WMF, file extension
1623 \begin_inset Quotes eld
1631 \begin_inset Quotes erd
1638 \begin_layout Plain Layout
1643 \begin_layout Plain Layout
1654 \begin_layout Plain Layout
1668 \begin_inset Quotes eld
1672 \begin_inset Quotes erd
1675 , because you can convert any bitmap image to a PDF or EPS-image and the
1676 result will still be a bitmap image.
1677 In this cases only a header with the image properties is added to the original
1682 \begin_layout Plain Layout
1683 In the case of PDF, the original image is additionally compressed.
1689 The PDF-files generated by
1693 are for example bitmap images.
1696 \begin_layout Standard
1697 Normally it is not possible to convert a bitmap image into a scalable one,
1699 Only the image formats PDF and EPS can directly be embedded to PDF and
1700 PostScript output files, respectively.
1701 SVG and WMF-images are recalculated to bitmaps when the output file is
1702 generated because there is currently no adequate WMF/SVG
1703 \begin_inset Formula $\to$
1706 PDF/EPS converter available.
1709 \begin_layout Chapter
1714 \begin_layout Plain Layout
1723 \begin_layout Section
1728 \begin_layout Plain Layout
1729 Table ! Introduction
1737 \begin_layout Standard
1738 You can insert a table using either the toolbar button
1739 \begin_inset Graphics
1740 filename ../images/tabular-insert.png
1748 Insert\SpecialChar \menuseparator
1752 The toolbar button offers you a graphical selection: Move the mouse to
1753 set the column/row number of the table that should be created and then
1754 press a mouse button.
1755 When you use the menu to create a table, a dialog will appear, asking you
1756 for the number of rows and columns.
1757 \begin_inset Newline newline
1760 The default table has lines around any cell and the first row appears separated
1761 from the rest of the table.
1762 This separation occurs due to a double line: The cells of the first row
1763 have a line below them and the cells of the second row have a line above
1765 Here is an example table:
1768 \begin_layout Standard
1770 \begin_inset Tabular
1771 <lyxtabular version="3" rows="4" columns="4">
1773 <column alignment="center" valignment="top" width="0">
1774 <column alignment="center" valignment="top" width="0">
1775 <column alignment="center" valignment="top" width="0">
1776 <column alignment="center" valignment="top" width="0">
1778 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1781 \begin_layout Plain Layout
1787 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1790 \begin_layout Plain Layout
1805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1808 \begin_layout Plain Layout
1814 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1817 \begin_layout Plain Layout
1825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1828 \begin_layout Plain Layout
1843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1846 \begin_layout Plain Layout
1852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1855 \begin_layout Plain Layout
1861 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1864 \begin_layout Plain Layout
1872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1875 \begin_layout Plain Layout
1890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1893 \begin_layout Plain Layout
1899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1902 \begin_layout Plain Layout
1908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1911 \begin_layout Plain Layout
1919 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1922 \begin_layout Plain Layout
1937 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1940 \begin_layout Plain Layout
1946 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1949 \begin_layout Plain Layout
1955 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1958 \begin_layout Plain Layout
1972 \begin_layout Section
1977 \begin_layout Plain Layout
1986 \begin_layout Standard
1987 You can alter a table by clicking on it with the right mouse button, which
1988 brings up the table dialog.
1989 Here you can adjust the settings of that cell and row/column respectively
1990 where the cursor is currently placed.
1991 Most of the dialog options also work on selections.
1992 This means if you select more cells, columns or rows, the action is done
1993 for the whole selection.
1994 Note that there is a difference between selecting the
1998 of the cell, and the cell itself.
1999 You can alter tables with the following tabs of the table dialog:
2002 \begin_layout Description
2006 \begin_inset space ~
2011 Here you can set the horizontal alignment and the width of the current
2013 When you have set a width you can also adjust the vertical alignment of
2015 A given width will allow the cell to have line breaks and multiple paragraphs
2016 of text, see section
2017 \begin_inset space ~
2021 \begin_inset CommandInset ref
2023 reference "sub:Multiple-Lines-in"
2028 If you set no width, the column is as wide as their widest cell content
2030 \begin_inset Newline newline
2033 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2035 \begin_inset space ~
2039 \begin_inset CommandInset ref
2041 reference "sub:Multicolumns"
2046 \begin_inset Newline newline
2049 The rotate check boxes rotates the current cell, a selection, or the whole
2050 table counter-clockwise by 90°.
2051 The rotation is not shown within LyX, only in the output.
2052 \begin_inset Newline newline
2056 \begin_inset Note Greyedout
2059 \begin_layout Plain Layout
2064 Not all DVI-viewers are able to display rotations.
2070 \begin_inset Newline newline
2073 It is also possible to enter a LaTeX-argument which is needed for special
2074 table formattings, see section
2075 \begin_inset space ~
2079 \begin_inset CommandInset ref
2081 reference "sub:Multicolumn-Calculations"
2086 \begin_inset CommandInset ref
2088 reference "sec:Colored-Tables"
2095 \begin_layout Description
2100 In this tab you can add and delete border lines for the current row/column.
2101 \begin_inset Newline newline
2104 Using the style option
2108 will convert the table to a formal table as described in section
2109 \begin_inset space ~
2113 \begin_inset CommandInset ref
2115 reference "sec:Formal-Tables"
2120 \begin_inset Newline newline
2123 You can also add here space to table rows as decribed in section
2124 \begin_inset space ~
2128 \begin_inset CommandInset ref
2130 reference "sub:Row-Spacing"
2137 \begin_layout Description
2142 This tab is to make a table a so called
2143 \begin_inset Quotes eld
2151 \begin_inset Quotes erd
2154 that can run over several pages.
2156 \begin_inset space ~
2160 \begin_inset CommandInset ref
2162 reference "sec:Longtables"
2167 \begin_inset CommandInset ref
2169 reference "sec:Special-Longtable-Issues"
2173 describe the longtable features in detail.
2176 \begin_layout Standard
2177 When the table 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
16893 \begin_layout Plain Layout
16894 \begin_inset Caption
16896 \begin_layout Plain Layout
16897 \begin_inset CommandInset label
16899 name "tab:Several-table-cell"
16903 Several table cell alignments.
16911 \begin_layout Plain Layout
16913 \begin_inset Tabular
16914 <lyxtabular version="3" rows="4" columns="6">
16916 <column alignment="right" valignment="top" width="0">
16917 <column alignment="left" valignment="top" width="0" special="@{}l">
16918 <column alignment="right" valignment="top" width="0">
16919 <column alignment="left" valignment="top" width="0" special="@{}l">
16920 <column alignment="right" valignment="top" width="0">
16921 <column alignment="left" valignment="top" width="0" special="@{}l">
16923 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16926 \begin_layout Plain Layout
16932 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16935 \begin_layout Plain Layout
16941 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16944 \begin_layout Plain Layout
16950 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16953 \begin_layout Plain Layout
16959 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16962 \begin_layout Plain Layout
16968 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16971 \begin_layout Plain Layout
16979 <cell alignment="center" valignment="top" usebox="none">
16982 \begin_layout Plain Layout
16988 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16991 \begin_layout Plain Layout
16993 \begin_inset space \thinspace{}
17001 <cell alignment="center" valignment="top" usebox="none">
17004 \begin_layout Plain Layout
17005 \begin_inset Formula $10\cdot$
17013 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17016 \begin_layout Plain Layout
17017 \begin_inset Formula $10^{\mbox{-}17}$
17025 <cell alignment="center" valignment="top" usebox="none">
17028 \begin_layout Plain Layout
17029 \begin_inset Formula $\Gamma(t)\propto$
17037 <cell alignment="center" valignment="top" usebox="none">
17040 \begin_layout Plain Layout
17041 \begin_inset Formula $\:\Upsilon(t)$
17051 <cell alignment="center" valignment="top" usebox="none">
17054 \begin_layout Plain Layout
17060 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17063 \begin_layout Plain Layout
17065 \begin_inset space \thinspace{}
17073 <cell alignment="center" valignment="top" usebox="none">
17076 \begin_layout Plain Layout
17077 \begin_inset Formula $5.78\cdot$
17085 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17088 \begin_layout Plain Layout
17089 \begin_inset Formula $10^{7}$
17097 <cell alignment="center" valignment="top" usebox="none">
17100 \begin_layout Plain Layout
17101 \begin_inset Formula $A\ne$
17109 <cell alignment="center" valignment="top" usebox="none">
17112 \begin_layout Plain Layout
17113 \begin_inset Formula $\: B_{\mathrm{red}}$
17123 <cell alignment="center" valignment="top" usebox="none">
17126 \begin_layout Plain Layout
17132 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17135 \begin_layout Plain Layout
17137 \begin_inset space \thinspace{}
17145 <cell alignment="center" valignment="top" usebox="none">
17148 \begin_layout Plain Layout
17150 \begin_inset Formula $33.5\cdot$
17158 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17161 \begin_layout Plain Layout
17162 \begin_inset Formula $10^{4}$
17170 <cell alignment="center" valignment="top" usebox="none">
17173 \begin_layout Plain Layout
17174 \begin_inset Formula $\sin(\alpha)\ge$
17182 <cell alignment="center" valignment="top" usebox="none">
17185 \begin_layout Plain Layout
17186 \begin_inset Formula $\:\sin(\beta)$
17207 \begin_layout Standard
17208 \begin_inset VSpace bigskip
17211 There is also the LaTeX-package
17219 \begin_layout Plain Layout
17220 LaTeX-packages ! dcolumn
17225 that provides table cell alignments.
17226 But this unfortunately treats the cell entries as math and doesn't allow
17227 formulas in table cells: The first column of Table
17228 \begin_inset space ~
17232 \begin_inset CommandInset ref
17234 reference "tab:Several-table-cell"
17242 like the first column in Table
17243 \begin_inset space ~
17247 \begin_inset CommandInset ref
17249 reference "tab:Alignments-when"
17253 and only with some tricks like the expected.
17254 The alignment of the second and third column of Table
17255 \begin_inset space ~
17259 \begin_inset CommandInset ref
17261 reference "tab:Several-table-cell"
17265 is not possible with
17272 \begin_layout Standard
17273 \begin_inset Float table
17279 \begin_layout Plain Layout
17280 \begin_inset Caption
17282 \begin_layout Plain Layout
17283 \begin_inset CommandInset label
17285 name "tab:Alignments-when"
17289 Alignments when LaTeX-package dcolumn is used.
17290 For all column alignments tricks have to be used to get the output.
17298 \begin_layout Plain Layout
17300 \begin_inset Tabular
17301 <lyxtabular version="3" rows="4" columns="3">
17303 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
17304 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
17305 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
17307 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17310 \begin_layout Plain Layout
17316 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17319 \begin_layout Plain Layout
17325 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17328 \begin_layout Plain Layout
17336 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17339 \begin_layout Plain Layout
17341 \begin_inset space \thinspace{}
17349 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17352 \begin_layout Plain Layout
17354 \begin_inset space \thinspace{}
17358 \begin_inset Formula $\mbox{bottles}$
17366 <cell alignment="center" valignment="top" usebox="none">
17369 \begin_layout Plain Layout
17374 \begin_layout Plain Layout
17384 \begin_inset Formula $\mbox{bottles}$
17394 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17397 \begin_layout Plain Layout
17399 \begin_inset space \thinspace{}
17407 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17410 \begin_layout Plain Layout
17412 \begin_inset space \thinspace{}
17416 \begin_inset Formula $\mbox{Pixels}$
17424 <cell alignment="center" valignment="top" usebox="none">
17427 \begin_layout Plain Layout
17432 \begin_layout Plain Layout
17442 \begin_inset Formula $\mbox{Pixels}$
17452 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17455 \begin_layout Plain Layout
17457 \begin_inset space \thinspace{}
17465 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17468 \begin_layout Plain Layout
17470 \begin_inset space \thinspace{}
17474 \begin_inset Formula $\mbox{cm}$
17482 <cell alignment="center" valignment="top" usebox="none">
17485 \begin_layout Plain Layout
17490 \begin_layout Plain Layout
17500 \begin_inset Formula $\mbox{cm}$
17521 \begin_layout Subsection
17522 Customized Cell/Column Format
17523 \begin_inset CommandInset label
17525 name "sub:Customized-Format"
17533 \begin_layout Plain Layout
17534 Table Customization ! Cell/Column Format
17542 \begin_layout Standard
17543 Calculating the needed width for spanned columns like in section
17544 \begin_inset space ~
17548 \begin_inset CommandInset ref
17550 reference "sub:Multicolumn-Calculations"
17554 is very annoying if you have several tables with multicolumn cells.
17555 To make life easier, you can define a cell/column format in the preamble,
17556 so that it can be used in all tables of the document.
17557 The format is defined with the command
17560 \begin_layout Standard
17565 newcolumntype{name of format}[number of arguments]{commands}
17568 \begin_layout Standard
17569 The format name may only consist of one letter.
17594 are predefined and cannot be used.
17595 But all letters are allowed as capitals.
17598 \begin_layout Standard
17599 \begin_inset VSpace medskip
17605 \begin_layout Standard
17606 For vertically and horizontally centered multicolumn cells with a fixed
17607 width you can define the cell format
17610 \begin_layout Standard
17615 newcolumntype{M}[1]{>{
17622 \begin_layout Standard
17629 avoids the problem of hyphenating the first word, as described in section
17630 \begin_inset space ~
17634 \begin_inset CommandInset ref
17636 reference "sub:Multiple-Lines-in"
17641 Now you can simply enter
17644 \begin_layout Standard
17650 \begin_layout Standard
17651 as LaTeX-argument in the table dialog to create a multicolumn.
17654 \begin_layout Standard
17655 \begin_inset VSpace bigskip
17661 \begin_layout Standard
17662 For cells spanned by a multicolumn cell, you can define the format
17665 \begin_layout Standard
17670 newcolumntype{S}[2]{>{
17675 \begin_inset Newline newline
17682 \begin_layout Plain Layout
17697 \begin_layout Plain Layout
17708 arrayrulewidth)*(1-#2))/#2}}
17711 \begin_layout Standard
17712 This format uses equation
17713 \begin_inset CommandInset ref
17719 to calculate the needed width so that each spanned cell has the same width.
17722 \begin_layout Standard
17726 \begin_layout Standard
17729 S{width of multicolumn cell}{number of spanned columns}
17732 \begin_layout Standard
17733 as LaTeX-argument of the column.
17736 \begin_layout Standard
17737 \begin_inset VSpace bigskip
17743 \begin_layout Standard
17744 For colored columns, you can define
17747 \begin_layout Standard
17752 newcolumntype{K}[1]{>{
17759 \begin_layout Standard
17761 \begin_inset Quotes eld
17765 \begin_inset Quotes erd
17768 at the end creates a column with a flexible width whose text is horizontally
17773 \begin_layout Standard
17779 \begin_layout Standard
17783 \begin_layout Standard
17784 \begin_inset VSpace bigskip
17790 \begin_layout Standard
17792 \begin_inset space ~
17796 \begin_inset CommandInset ref
17798 reference "tab:Table-using-user-defined"
17802 use the LaTeX-arguments
17805 \begin_layout Standard
17811 \begin_layout Standard
17812 for the first column and the multicolumn,
17815 \begin_layout Standard
17821 \begin_layout Standard
17822 for the the last column, and
17825 \begin_layout Standard
17831 \begin_layout Standard
17832 for the cells in the second column.
17835 \begin_layout Standard
17836 \begin_inset Float table
17842 \begin_layout Plain Layout
17843 \begin_inset Caption
17845 \begin_layout Plain Layout
17846 \begin_inset CommandInset label
17848 name "tab:Table-using-user-defined"
17852 Table using user-defined table formats
17860 \begin_layout Plain Layout
17862 \begin_inset Tabular
17863 <lyxtabular version="3" rows="3" columns="4">
17865 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17866 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17867 <column alignment="center" valignment="middle" width="0">
17868 <column alignment="center" valignment="middle" width="0" special="K{red}">
17870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17873 \begin_layout Plain Layout
17874 verylongtablecellword
17879 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17882 \begin_layout Plain Layout
17883 multiple lines multicolumn
17888 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17891 \begin_layout Plain Layout
17897 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17900 \begin_layout Plain Layout
17908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17911 \begin_layout Plain Layout
17917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17920 \begin_layout Plain Layout
17926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17929 \begin_layout Plain Layout
17935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17938 \begin_layout Plain Layout
17946 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17949 \begin_layout Plain Layout
17955 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17958 \begin_layout Plain Layout
17964 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17967 \begin_layout Plain Layout
17973 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17976 \begin_layout Plain Layout
17995 \begin_layout Subsection
17997 \begin_inset CommandInset label
17999 name "sub:Line-Thickness"
18007 \begin_layout Plain Layout
18008 Table Customization ! Line Thickness
18016 \begin_layout Standard
18017 The line thickness for all lines in a table can be adjusted with the length
18025 To set for example a line thickness of 1.5
18026 \begin_inset space \thinspace{}
18030 \begin_inset space ~
18034 \begin_inset CommandInset ref
18036 reference "tab:Table-with-1.5"
18040 , insert the command
18043 \begin_layout Standard
18050 arrayrulewidth}{1.5pt}
18053 \begin_layout Standard
18054 in TeX-Code before the table or table float.
18055 The changed thickness is valid for all following tables.
18056 To use the default value again, set
18063 \begin_inset space \thinspace{}
18066 pt in TeX-Code behind the table or table float.
18069 \begin_layout Standard
18073 \begin_layout Plain Layout
18079 arrayrulewidth}{1.5pt}
18085 \begin_inset Float table
18090 \begin_layout Plain Layout
18091 \begin_inset Caption
18093 \begin_layout Plain Layout
18094 \begin_inset CommandInset label
18096 name "tab:Table-with-1.5"
18101 \begin_inset space \thinspace{}
18112 \begin_layout Plain Layout
18114 \begin_inset Tabular
18115 <lyxtabular version="3" rows="3" columns="3">
18117 <column alignment="center" valignment="top" width="0">
18118 <column alignment="center" valignment="top" width="0">
18119 <column alignment="center" valignment="top" width="0">
18121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18124 \begin_layout Plain Layout
18130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18133 \begin_layout Plain Layout
18139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18142 \begin_layout Plain Layout
18150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18153 \begin_layout Plain Layout
18159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18162 \begin_layout Plain Layout
18168 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18171 \begin_layout Plain Layout
18179 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18182 \begin_layout Plain Layout
18188 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18191 \begin_layout Plain Layout
18197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18200 \begin_layout Plain Layout
18220 \begin_layout Plain Layout
18226 arrayrulewidth}{0.4pt}
18234 \begin_layout Standard
18235 \begin_inset VSpace bigskip
18238 To set the line thickness to 1.5
18239 \begin_inset space \thinspace{}
18242 pt only for horizontal lines, like in Table
18243 \begin_inset space ~
18247 \begin_inset CommandInset ref
18249 reference "tab:Table-with-horizontal"
18253 , insert these commands in TeX-Code before the table or table float:
18256 \begin_layout Standard
18266 \begin_inset Newline newline
18274 \begin_inset Newline newline
18283 arrayrulewidth 1.5pt}
18284 \begin_inset Newline newline
18295 arrayrulewidth 0.4pt}}
18298 \begin_layout Standard
18299 To return to the default line thickness, insert this command in TeX-Code
18300 behind the table or table float:
18303 \begin_layout Standard
18315 \begin_layout Standard
18319 \begin_layout Plain Layout
18330 \begin_layout Plain Layout
18339 \begin_layout Plain Layout
18347 arrayrulewidth 1.5pt}
18350 \begin_layout Plain Layout
18360 arrayrulewidth 0.4pt}}
18366 \begin_inset Float table
18371 \begin_layout Plain Layout
18372 \begin_inset Caption
18374 \begin_layout Plain Layout
18375 \begin_inset CommandInset label
18377 name "tab:Table-with-horizontal"
18382 \begin_inset space \thinspace{}
18385 pt thick horizontal lines
18393 \begin_layout Plain Layout
18395 \begin_inset Tabular
18396 <lyxtabular version="3" rows="3" columns="3">
18398 <column alignment="center" valignment="top" width="0">
18399 <column alignment="center" valignment="top" width="0">
18400 <column alignment="center" valignment="top" width="0">
18402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18405 \begin_layout Plain Layout
18411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18414 \begin_layout Plain Layout
18420 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18423 \begin_layout Plain Layout
18431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18434 \begin_layout Plain Layout
18440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18443 \begin_layout Plain Layout
18449 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18452 \begin_layout Plain Layout
18460 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18463 \begin_layout Plain Layout
18469 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18472 \begin_layout Plain Layout
18478 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18481 \begin_layout Plain Layout
18501 \begin_layout Plain Layout
18517 \begin_layout Standard
18518 \begin_inset VSpace bigskip
18521 To set the line thickness to 1.5
18522 \begin_inset space \thinspace{}
18525 pt only for vertical lines, create the following column format in the document
18526 preamble, according to the description in section
18527 \begin_inset space ~
18531 \begin_inset CommandInset ref
18533 reference "sub:Customized-Format"
18540 \begin_layout Standard
18545 newcolumntype{V}{!{
18547 vrule width 1.5pt}}
18550 \begin_layout Standard
18552 \begin_inset space ~
18556 \begin_inset CommandInset ref
18558 reference "tab:Table-with-vertical"
18565 \begin_layout Standard
18571 \begin_layout Standard
18572 was used for the last column and
18575 \begin_layout Standard
18581 \begin_layout Standard
18582 for the other columns.
18585 \begin_layout Standard
18586 \begin_inset Float table
18591 \begin_layout Plain Layout
18592 \begin_inset Caption
18594 \begin_layout Plain Layout
18595 \begin_inset CommandInset label
18597 name "tab:Table-with-vertical"
18602 \begin_inset space \thinspace{}
18605 pt thick vertical lines
18613 \begin_layout Plain Layout
18615 \begin_inset Tabular
18616 <lyxtabular version="3" rows="3" columns="3">
18618 <column alignment="center" valignment="top" width="0" special="Vc">
18619 <column alignment="center" valignment="top" width="0" special="Vc">
18620 <column alignment="center" valignment="top" width="0" special="VcV">
18622 <cell alignment="center" valignment="top" topline="true" usebox="none">
18625 \begin_layout Plain Layout
18631 <cell alignment="center" valignment="top" topline="true" usebox="none">
18634 \begin_layout Plain Layout
18640 <cell alignment="center" valignment="top" topline="true" usebox="none">
18643 \begin_layout Plain Layout
18651 <cell alignment="center" valignment="top" topline="true" usebox="none">
18654 \begin_layout Plain Layout
18660 <cell alignment="center" valignment="top" topline="true" usebox="none">
18663 \begin_layout Plain Layout
18669 <cell alignment="center" valignment="top" topline="true" usebox="none">
18672 \begin_layout Plain Layout
18680 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18683 \begin_layout Plain Layout
18689 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18692 \begin_layout Plain Layout
18698 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18701 \begin_layout Plain Layout
18720 \begin_layout Subsection
18725 \begin_layout Plain Layout
18726 Table Customization ! Dashed Lines
18734 \begin_layout Standard
18738 \begin_layout Plain Layout
18748 \begin_inset Note Note
18751 \begin_layout Plain Layout
18752 The following section will only be displayed when the LaTeX-package
18764 \begin_layout Standard
18765 \begin_inset Float table
18771 \begin_layout Plain Layout
18772 \begin_inset Caption
18774 \begin_layout Plain Layout
18775 \begin_inset CommandInset label
18777 name "tab:Table-with-dashed"
18781 Table with dashed lines
18789 \begin_layout Plain Layout
18791 \begin_inset Tabular
18792 <lyxtabular version="3" rows="5" columns="5">
18794 <column alignment="center" valignment="top" width="0">
18795 <column alignment="center" valignment="top" width="0">
18796 <column alignment="center" valignment="top" width="0" special=":c">
18797 <column alignment="center" valignment="top" width="0">
18798 <column alignment="center" valignment="top" width="0">
18800 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18803 \begin_layout Plain Layout
18809 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18812 \begin_layout Plain Layout
18818 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18821 \begin_layout Plain Layout
18827 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18830 \begin_layout Plain Layout
18836 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18839 \begin_layout Plain Layout
18847 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18850 \begin_layout Plain Layout
18856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18859 \begin_layout Plain Layout
18865 <cell alignment="center" valignment="top" topline="true" usebox="none">
18868 \begin_layout Plain Layout
18874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18877 \begin_layout Plain Layout
18883 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18886 \begin_layout Plain Layout
18894 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18897 \begin_layout Plain Layout
18901 \begin_layout Plain Layout
18915 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18918 \begin_layout Plain Layout
18924 <cell alignment="center" valignment="top" usebox="none">
18927 \begin_layout Plain Layout
18933 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18936 \begin_layout Plain Layout
18942 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18945 \begin_layout Plain Layout
18953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18956 \begin_layout Plain Layout
18960 \begin_layout Plain Layout
18974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18977 \begin_layout Plain Layout
18983 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
18986 \begin_layout Plain Layout
18992 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
18995 \begin_layout Plain Layout
19001 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19004 \begin_layout Plain Layout
19012 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19015 \begin_layout Plain Layout
19021 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19024 \begin_layout Plain Layout
19030 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19033 \begin_layout Plain Layout
19039 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19042 \begin_layout Plain Layout
19048 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19051 \begin_layout Plain Layout
19070 \begin_layout Standard
19071 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
19072 As prerequisite the LaTeX-package
19080 \begin_layout Plain Layout
19081 LaTeX-packages ! arydshln
19086 must be loaded in the document preamble with the command
19089 \begin_layout Standard
19094 usepackage{arydshln}
19097 \begin_layout Standard
19098 To make a vertical line dashed, enter the colon
19099 \begin_inset Quotes eld
19103 \begin_inset Quotes erd
19106 together with the character for the horizontal alignment as LaTeX-argument
19107 in the table cell dialog.
19110 \begin_layout Standard
19111 For a horizontal dashed line add the command
19114 \begin_layout Standard
19122 \begin_layout Standard
19123 in TeX-Code as first element of the first cell in the table row.
19126 \begin_layout Standard
19127 For dashed multicolumn lines use the command
19130 \begin_layout Standard
19135 cdashline{line number
19140 \begin_layout Standard
19141 in TeX-Code as first element of the first cell in the table row.
19142 If you have for example a multicolumn spanning over columns 2 to 4 and
19143 you want to have a dashed line above, add the command
19146 \begin_layout Standard
19154 \begin_layout Standard
19155 as first element of the first cell in the row of the multicolumn.
19158 \begin_layout Standard
19159 \begin_inset VSpace bigskip
19165 \begin_layout Standard
19167 \begin_inset space ~
19171 \begin_inset CommandInset ref
19173 reference "tab:Table-with-dashed"
19178 \begin_inset Quotes eld
19186 \begin_inset Quotes erd
19189 as LaTeX-argument of the third column.
19190 The TeX-Code command
19196 was inserted to the first cell of the third row and the the TeX-Code command
19197 \begin_inset Newline newline
19206 was inserted to the first cell of the fourth row.
19209 \begin_layout Standard
19210 \begin_inset Note Greyedout
19213 \begin_layout Plain Layout
19218 The used LaTeX-package
19222 is apparently not compatible with the LaTeX-package
19230 \begin_layout Plain Layout
19231 LaTeX-packages ! colortbl
19236 that is used for colored tables in section
19237 \begin_inset space ~
19241 \begin_inset CommandInset ref
19243 reference "sec:Colored-Tables"
19248 That means colored tables cannot have dashed lines.
19256 \begin_layout Standard
19260 \begin_layout Plain Layout
19270 \begin_inset Note Note
19273 \begin_layout Plain Layout
19274 The following will be displayed when the LaTeX-package
19286 \begin_layout Standard
19287 You need to install the package
19291 to see the content of this section in the output.
19294 \begin_layout Standard
19298 \begin_layout Plain Layout
19310 \begin_layout Chapter
19315 \begin_layout Plain Layout
19324 \begin_layout Section
19326 \begin_inset CommandInset label
19328 name "sec:FloatIntroduction"
19336 \begin_layout Plain Layout
19337 Floats ! Introduction
19345 \begin_layout Standard
19346 A float is a block of text associated with some sort of label, which doesn't
19347 have a fixed location.
19349 \begin_inset Quotes eld
19353 \begin_inset Quotes erd
19356 forward or backward a page or two, to wherever it fits best.
19364 \begin_inset space ~
19369 are also floats, because they can float to the next page when there are
19370 too many notes at the page.
19373 \begin_layout Standard
19374 Floats allow a high quality layout.
19375 Images and tables can evenly be spread to the pages to avoid white space
19376 and pages without text.
19377 As the floating often destroys the context between the text and the image/table
19378 , every float can be referenced in the text.
19379 Floats are therefore numbered.
19380 Referencing is described in section
19381 \begin_inset space ~
19385 \begin_inset CommandInset ref
19387 reference "sec:Referencing-Floats"
19394 \begin_layout Standard
19395 To insert a float, use the menu
19397 Insert\SpecialChar \menuseparator
19405 inset, a box with a label.
19406 The label will automatically be translated to the document language in
19408 Behind the label you can insert the caption text.
19409 The image or table is inserted above or below the caption in a separate
19410 paragraph within the float.
19411 More about the caption placement is described in section
19412 \begin_inset space ~
19416 \begin_inset CommandInset ref
19418 reference "sec:Caption-Placement"
19423 To keep your LyX-document readable, you can open and close the float box
19424 by left-clicking on the box label.
19425 A closed float box looks like this:
19426 \begin_inset Graphics
19427 filename clipart/floatQt4.png
19429 scaleBeforeRotation
19433 – a gray button with a red label.
19436 \begin_layout Standard
19437 It is recommended to insert floats as a separate paragraph to avoid possible
19438 LaTeX-errors that can occur when the surrounding text is specially formatted.
19441 \begin_layout Standard
19442 Existing figures or tables can be put into a float by marking them and then
19443 pressing the corresponding toolbar button for a new float.
19446 \begin_layout Section
19450 \begin_layout Standard
19451 Besides figure and table floats that are described in section
19452 \begin_inset space ~
19456 \begin_inset CommandInset ref
19458 reference "sec:Figure-Floats"
19463 \begin_inset CommandInset ref
19465 reference "sec:Table-Floats"
19469 , respectively, LyX offers the float types
19480 \begin_layout Subsection
19485 \begin_layout Plain Layout
19486 Floats ! Algorithms
19494 \begin_layout Standard
19495 \begin_inset Float algorithm
19501 \begin_layout Plain Layout
19502 \begin_inset Caption
19504 \begin_layout Plain Layout
19505 \begin_inset CommandInset label
19507 name "alg:Example-Algorithm-float"
19511 Example Algorithm float
19519 \begin_layout LyX-Code
19521 \begin_inset Newline newline
19524 Sum:= Sum + A(I); /*comment*/
19525 \begin_inset Newline newline
19529 \begin_inset VSpace -4mm
19540 \begin_layout Standard
19541 This float type is inserted with the menu
19543 Insert\SpecialChar \menuseparator
19544 Floats\SpecialChar \menuseparator
19548 It is used for program codes and descriptions of algorithms and can be
19549 seen as an alternative to program code listings that are explained in chapter
19550 \begin_inset space ~
19554 \begin_inset CommandInset ref
19556 reference "cha:Program-Code-Listings"
19561 A possible environment for algorithms is the
19565 , described in LyX's
19571 \begin_inset space ~
19575 \begin_inset CommandInset ref
19577 reference "alg:Example-Algorithm-float"
19581 is an example of an algorithm float where -4
19582 \begin_inset space \thinspace{}
19585 mm vertical space was added at the end of the float to have the bottom rule
19586 exactly below the last text line.
19589 \begin_layout Standard
19590 The float label is not automatically translated into the document language.
19591 If your document is not in English, you have to do this manually by adding
19592 the following line to the document preamble
19597 \begin_layout Standard
19602 floatname{algorithm}{your
19603 \begin_inset space ~
19609 \begin_layout Standard
19613 \begin_inset space ~
19619 \begin_inset Quotes eld
19627 \begin_inset Quotes erd
19633 \begin_layout Standard
19634 To insert the list of algorithms you can use the menu
19636 Insert\SpecialChar \menuseparator
19638 \begin_inset space \thinspace{}
19642 \begin_inset space \thinspace{}
19645 TOC\SpecialChar \menuseparator
19648 when your document has the same language as LyX's menu names.
19649 In other cases use this command in TeX-Code instead:
19652 \begin_layout Standard
19657 listof{algorithm}{your
19658 \begin_inset space ~
19664 \begin_layout Standard
19668 \begin_inset space ~
19674 \begin_inset Quotes eld
19682 \begin_inset Quotes erd
19688 \begin_layout Standard
19689 Algorithm floats are not by default numbered in the scheme
19690 \begin_inset Quotes eld
19694 \begin_inset Quotes erd
19697 like it is the case for table and figure floats in many document-classes.
19698 To number algorithm floats in the same scheme, add this command to your
19702 \begin_layout Standard
19707 numberwithin{algorithm}{chapter}
19710 \begin_layout Standard
19711 To be able to use the command
19720 \begin_inset space ~
19725 in the document settings the option
19728 \begin_inset space ~
19732 \begin_inset space ~
19736 \begin_inset space ~
19744 \begin_layout Subsection
19749 \begin_layout Plain Layout
19750 Floats ! Wrap Floats
19758 \begin_layout Standard
19759 \begin_inset Wrap figure
19766 \begin_layout Plain Layout
19767 \begin_inset Graphics
19768 filename clipart/mobius.eps
19770 scaleBeforeRotation
19771 rotateOrigin center
19778 \begin_layout Plain Layout
19779 \begin_inset Caption
19781 \begin_layout Plain Layout
19782 \begin_inset CommandInset label
19784 name "fig:This-is-a"
19788 This is a figure wrap float.
19798 This float type is used if you want to wrap text around a figure or table
19799 so that it only occupies some fraction of the column width.
19800 It can be inserted using the menu
19802 Insert\SpecialChar \menuseparator
19803 Floats\SpecialChar \menuseparator
19805 \begin_inset space ~
19809 \begin_inset space ~
19817 \begin_inset space ~
19821 \begin_inset space ~
19826 if the LaTeX-package
19834 \begin_layout Plain Layout
19835 LaTeX-packages ! wrapfig
19839 \begin_layout Plain Layout
19857 \begin_layout Plain Layout
19858 Installing a LaTeX-package is explained it in the
19861 \begin_inset space ~
19871 The settings of the float can be modified by right-clicking on the float
19873 The mandatory settings are the float
19886 that specifies how much the float is set into the paragraph
19887 \begin_inset space \thinspace{}
19891 \begin_inset space \thinspace{}
19894 page margin, and the
19897 \begin_inset space ~
19902 that specifies how many text lines the float will approximately need.
19903 The line span is often hard to be approximated, so better only use it when
19904 you encounter float placement problems.
19905 You can furthermore decide if LaTeX is allowed to let the float float within
19906 the paragraph or to surrounding paragraphs.
19908 \begin_inset space ~
19912 \begin_inset CommandInset ref
19914 reference "fig:This-is-a"
19918 is an example text wrap float with a width of 40
19919 \begin_inset space \thinspace{}
19923 \begin_inset space \thinspace{}
19926 cm overhang, set to the left.
19930 \begin_layout Plain Layout
19931 Available units are explained in appendix
19932 \begin_inset space ~
19936 \begin_inset CommandInset ref
19938 reference "cha:Units-available-in"
19950 \begin_layout Standard
19951 \begin_inset Note Greyedout
19954 \begin_layout Plain Layout
19960 \begin_inset space ~
19963 wrap float floats are fragile! E.
19964 \begin_inset space \thinspace{}
19968 \begin_inset space \space{}
19971 having a figure too close to the bottom of the page can mess things up in
19972 the way that the float doesn't appear in the output or that it is placed
19973 over some other text.
19981 \begin_layout Standard
19985 \begin_layout Itemize
19986 Wrap floats should not be placed in paragraphs that run over a page break.
19987 That means that wrap floats should better be inserted to the exact place
19988 when the document is nearly finished and you are able to estimate where
19989 page breaks will appear.
19992 \begin_layout Itemize
19993 Wrap floats should either be placed in an own paragraph before the paragraph
19994 where they should wrap into or within a paragraph.
19997 \begin_layout Itemize
19998 Wrap floats in consecutive paragraphs may cause troubles, so assure that
19999 there is a text paragraph between them as separator.
20002 \begin_layout Itemize
20003 Wrap floats are not allowed in section headings or tables.
20006 \begin_layout Section
20011 \begin_layout Plain Layout
20020 \begin_layout Standard
20021 Floats are usually numbered either independent from the sections the floats
20022 are in, or in the scheme
20023 \begin_inset Quotes eld
20027 \begin_inset Quotes erd
20031 \begin_inset Quotes eld
20035 \begin_inset Quotes erd
20039 This depends on the used document class.
20042 \begin_layout Standard
20043 To change the section independent numbering, you can use this command in
20044 the document preamble:
20047 \begin_layout Standard
20059 \begin_layout Standard
20066 is the command that prints the table number, for figure floats, the command
20080 prints in the command above the table number as small roman number.
20083 \begin_layout Standard
20084 To change the numbering scheme for example to
20085 \begin_inset Quotes eld
20089 \begin_inset Quotes erd
20092 , use this command in the preamble:
20095 \begin_layout Standard
20100 numberwithin{table}{subsection}
20103 \begin_layout Standard
20104 To be able to use the command
20113 \begin_inset space ~
20118 in the document settings the option
20121 \begin_inset space ~
20125 \begin_inset space ~
20129 \begin_inset space ~
20137 \begin_layout Standard
20138 Please also have a look at section
20139 \begin_inset space ~
20143 \begin_inset CommandInset ref
20145 reference "sub:Footnote-Numbering"
20149 for the details and important notes about the numbering commands.
20152 \begin_layout Section
20154 \begin_inset CommandInset label
20156 name "sec:Referencing-Floats"
20164 \begin_layout Plain Layout
20165 Floats ! References
20174 \begin_layout Plain Layout
20175 References ! to Floats
20183 \begin_layout Standard
20184 To reference a float, insert a label into its caption using the menu
20186 Insert\SpecialChar \menuseparator
20189 or the toolbar button
20190 \begin_inset Graphics
20191 filename ../images/label-insert.png
20193 scaleBeforeRotation
20198 A grey label box like this one:
20199 \begin_inset Graphics
20200 filename clipart/labelQt4.png
20202 scaleBeforeRotation
20206 will be inserted and the label window pops up asking for the label text.
20207 LyX offers as text the first words of the caption with a prefix.
20208 The prefix depends on the float type, e.
20209 \begin_inset space \thinspace{}
20213 \begin_inset space \space{}
20216 for figure floats the prefix will be "
20223 \begin_layout Standard
20224 The label is used as anchor and name for the reference.
20225 You can refer to the label using the menu
20227 Insert\SpecialChar \menuseparator
20230 or the toolbar button
20231 \begin_inset Graphics
20232 filename ../images/dialog-show-new-inset_ref.png
20234 scaleBeforeRotation
20239 A grey cross-reference box like this one:
20240 \begin_inset Graphics
20241 filename clipart/referenceQt4.png
20243 scaleBeforeRotation
20247 will be inserted and the cross-reference window appear showing all labels
20249 If you have multiple LyX-documents opened, choose the one you are working
20250 on from the drop-list at the top of the dialog.
20251 You can now sort the labels alphabetically and then choose one.
20252 At the position of the cross-reference box the float number will appear
20256 \begin_layout Standard
20257 It is recommended to use a protected space between the cross-reference name
20258 and its number to avoid line breaks between them.
20259 If a cross-reference refers to a non-existing label, you will see two question
20260 marks in the output instead of the reference.
20263 \begin_layout Standard
20264 You can change labels at any time by clicking on the label box.
20265 References to the changed label will automatically change its link to the
20266 new label text, so that you don't need to take care about this.
20269 \begin_layout Standard
20273 \begin_inset space ~
20277 \begin_inset space ~
20282 in the cross-reference window sets the cursor before the referred label.
20283 The button text changes then to Go
20284 \begin_inset space ~
20287 Back and you can use it to set the cursor back to the cross-reference.
20288 Right-clicking on a cross-reference box also sets the cursor before the
20289 referenced label but without a possibility to go back.
20292 \begin_layout Subsection
20293 Cross-Reference Formats
20294 \begin_inset CommandInset label
20296 name "sub:Cross-Reference-Formats"
20304 \begin_layout Plain Layout
20305 References ! Formats
20313 \begin_layout Standard
20314 There are six varieties of cross-references:
20317 \begin_layout Description
20318 <reference>: prints the float number, this is the default:
20319 \begin_inset CommandInset ref
20321 reference "fig:Two-distorted-images"
20328 \begin_layout Description
20329 (<reference>): prints the float number within two parentheses, this is the
20330 style normally used to reference formulas, especially when the reference
20332 \begin_inset Quotes eld
20336 \begin_inset Quotes erd
20340 \begin_inset CommandInset ref
20349 \begin_layout Description
20350 <page>: prints the page number: Page
20351 \begin_inset space ~
20355 \begin_inset CommandInset ref
20356 LatexCommand pageref
20357 reference "fig:Two-distorted-images"
20364 \begin_layout Description
20366 \begin_inset space ~
20370 \begin_inset space ~
20373 <page>: prints the text "on page" and the page number:
20374 \begin_inset CommandInset ref
20375 LatexCommand vpageref
20376 reference "fig:Two-distorted-images"
20383 \begin_layout Description
20385 \begin_inset space ~
20389 \begin_inset space ~
20393 \begin_inset space ~
20396 <page>: prints the float number, the text "on page", and the page number:
20398 \begin_inset CommandInset ref
20400 reference "fig:Two-distorted-images"
20407 \begin_layout Description
20409 \begin_inset space ~
20412 reference: prints a self defined cross-reference format.
20414 \begin_inset Note Greyedout
20417 \begin_layout Plain Layout
20422 This feature is only available when you have the LaTeX-package
20434 \begin_layout Standard
20435 Note that the style <page> won't print the page number if the label is on
20436 the previous, the same, or the next page.
20438 \begin_inset space \thinspace{}
20442 \begin_inset space \space{}
20446 \begin_inset Quotes eld
20454 \begin_inset Quotes erd
20460 \begin_layout Standard
20461 The number and current page of the referred document part in the output,
20462 is automatically calculated by LaTeX.
20463 The varieties are adjusted in the field
20467 of the cross-reference window, that appear when you click on the cross-referenc
20471 \begin_layout Subsection
20472 Automatic Reference Naming
20476 \begin_layout Plain Layout
20477 References ! Automatic Reference Naming
20485 \begin_layout Standard
20494 \begin_layout Plain Layout
20495 LaTeX-packages ! hyperref
20500 , that is enabled in the
20508 dialog, provides a very useful feature that cross-references automatically
20509 include the name of the referenced floats (or text parts like
20514 So you will save to write e.
20515 \begin_inset space \thinspace{}
20519 \begin_inset space \space{}
20523 \begin_inset Quotes eld
20527 \begin_inset Quotes erd
20530 before every reference to a figure.
20531 To use this feature, enable
20535 and insert this line to the LaTeX preamble:
20538 \begin_layout Standard
20554 \begin_layout Standard
20555 When you prefer other reference names than the default ones, for example
20556 you want instead of
20557 \begin_inset Quotes eld
20561 \begin_inset Quotes erd
20565 \begin_inset Quotes eld
20569 \begin_inset space \thinspace{}
20573 \begin_inset Quotes eld
20576 , you can redefine the name by inserting this to the preamble:
20579 \begin_layout Standard
20590 sectionautorefname}
20591 \begin_inset Newline newline
20598 \begin_layout Plain Layout
20612 \begin_layout Standard
20613 When you are using another document language than English, replace
20614 \begin_inset Newline newline
20629 , where *** is the name of the used language.
20632 \begin_layout Standard
20633 To get automatic names, but not for certain reference types, for example
20634 not for equations, use this preamble code:
20637 \begin_layout Standard
20645 \begin_inset Newline newline
20655 \begin_inset Newline newline
20666 equationautorefname}
20667 \begin_inset Newline newline
20674 \begin_layout Plain Layout
20690 \begin_layout Standard
20691 More about this topic can be found in
20696 \begin_inset CommandInset citation
20705 \begin_layout Standard
20706 \begin_inset Note Greyedout
20709 \begin_layout Plain Layout
20714 Automatic reference naming cannot be used when you use cross-references
20718 \begin_inset space ~
20723 style, as described in section
20724 \begin_inset space ~
20728 \begin_inset CommandInset ref
20730 reference "sub:Cross-Reference-Formats"
20742 \begin_layout Standard
20747 manual is an example where automatic reference naming is used.
20750 \begin_layout Subsection
20752 \begin_inset CommandInset label
20754 name "sub:Reference-Position"
20762 \begin_layout Plain Layout
20763 References ! Reference Position
20771 \begin_layout Standard
20780 \begin_layout Plain Layout
20781 LaTeX-packages ! hyperref
20794 dialog to link cross-references in the output, you will see that clicking
20795 on an image float reference jumps to the image label.
20796 The caption will be the first text part on the screen, so that you cannot
20797 see the image without scrolling.
20798 This is because the reference link anchor is placed at the position of
20800 With the use of the package
20808 \begin_layout Plain Layout
20809 LaTeX-packages ! hypcap
20814 , which is part of the LaTeX-package
20822 \begin_layout Plain Layout
20823 LaTeX-packages ! oberdiek
20828 , the link anchor is placed at the beginning of a float.
20829 To use this feature for figure floats, load
20833 in the document preamble with the line
20836 \begin_layout Standard
20841 usepackage[figure]{hypcap}
20844 \begin_layout Standard
20849 for all float types but this is not recommended for stability reasons.
20850 For more information, have a look at
20855 \begin_inset CommandInset citation
20864 \begin_layout Standard
20865 \begin_inset Note Greyedout
20868 \begin_layout Plain Layout
20877 has no effect for references to subfigures.
20885 \begin_layout Section
20887 \begin_inset CommandInset label
20889 name "sec:Float-Placement"
20897 \begin_layout Plain Layout
20906 \begin_layout Standard
20907 Right-clicking on a float-box opens a dialog where you can alter the placement
20908 options that LaTeX uses for positioning the float.
20909 \begin_inset Newline newline
20915 \begin_inset space ~
20920 is only useful for two-column documents: If you select it, the float will
20921 span across both columns on the page instead of being confined to just
20923 \begin_inset Newline newline
20929 \begin_inset space ~
20934 is used to rotate floats, see section
20935 \begin_inset CommandInset ref
20937 reference "sec:Rotated-Floats"
20944 \begin_layout Standard
20945 You can use one ore more of the following options in the float dialog to
20946 set the placement for a particular float when you uncheck the option
20949 \begin_inset space ~
20953 \begin_inset space ~
20961 \begin_layout Description
20963 \begin_inset space ~
20967 \begin_inset space ~
20970 possible try to place the float on the position where it is inserted
20973 \begin_layout Description
20975 \begin_inset space ~
20979 \begin_inset space ~
20982 page try to place the float on the top of the current page
20985 \begin_layout Description
20987 \begin_inset space ~
20991 \begin_inset space ~
20994 page try to place the float on the bottom of the current page
20997 \begin_layout Description
20999 \begin_inset space ~
21003 \begin_inset space ~
21006 floats try to place the float on an own page
21009 \begin_layout Standard
21010 The order of the above option is
21015 That means, if you use the default placement, LaTeX will first try out
21019 \begin_inset space ~
21023 \begin_inset space ~
21031 \begin_inset space ~
21035 \begin_inset space ~
21040 , and then the others.
21041 If you don't use the default, LaTeX will try only the checked options but
21043 If none of the 4 placements are possible the procedure is internally repeated
21044 but it is tried to put the float on the following page.
21047 \begin_layout Standard
21048 By default, each option has its own rules:
21051 \begin_layout Labeling
21052 \labelwidthstring 00.00.0000
21056 \begin_inset space ~
21060 \begin_inset space ~
21065 only floats occupying less than 70
21066 \begin_inset space \thinspace{}
21069 % of the page can be placed at the top of a page (
21078 \begin_layout Labeling
21079 \labelwidthstring 00.00.0000
21083 \begin_inset space ~
21087 \begin_inset space ~
21092 : only floats occupying less than 30
21093 \begin_inset space \thinspace{}
21096 % of the page can be placed at the bottom of a page.
21106 \begin_layout Labeling
21107 \labelwidthstring 00.00.0000
21111 \begin_inset space ~
21115 \begin_inset space ~
21120 : only if more than 50
21121 \begin_inset space \thinspace{}
21124 % of the page are occupied by floats, several floats can be set together
21135 \begin_layout Standard
21136 If you don't like these rules, you can ignore them by using the additional
21140 \begin_inset space ~
21144 \begin_inset space ~
21150 \begin_inset Newline newline
21153 You can also redefine the rules with LaTeX-commands that are given in parenthese
21154 s behind the rules description above.
21155 To increase for example the often too small default of the bottom-rule
21157 \begin_inset space \thinspace{}
21160 % of the page, add this line to your document preamble:
21163 \begin_layout Standard
21170 bottomfraction}{0.5}
21173 \begin_layout Standard
21174 Sometimes you might need, under all circumstances, a float to be placed
21175 exactly at the position where it is inserted.
21176 For this case you can use the option
21179 \begin_inset space ~
21185 Use this option very rarely and only if the document is nearly ready to
21187 Because the float is then no longer able to
21188 \begin_inset Quotes eld
21192 \begin_inset Quotes erd
21195 when you change your document and this will often destroy the page layout.
21198 \begin_layout Standard
21199 There are no placement options for text wrap floats, because they are always
21200 surrounded by the text of a certain paragraph.
21201 \begin_inset VSpace bigskip
21207 \begin_layout Standard
21208 Sometimes you have the problem that a float is placed at the top of a page
21209 while its corresponding section starts at the middle of the page, so that
21210 the reader could think the float is part of the previous section.
21211 To avoid this the LaTeX-command
21218 It suppresses a given float placement for the page where it is inserted
21219 and can therefore be used to avoid that floats could be set before a section
21221 To get this, add these commands to your document preamble:
21224 \begin_layout Standard
21234 \begin_inset Newline newline
21248 \begin_layout Standard
21249 You can define the same for all section headings, like chapters and subsections.
21250 This definition is not recommended to be used for small text parts like
21251 subsubsections because LaTeX may then have problems to find a suitable
21255 \begin_layout Standard
21256 \begin_inset VSpace bigskip
21259 In some cases it is required to have all figures/tables at the end of the
21261 For this purpose the LaTeX-package
21269 \begin_layout Plain Layout
21270 LaTeX-packages ! endfloat
21276 It puts all figure and table floats at the end of the document into own
21278 At the original float position a text hint like
21279 \begin_inset Quotes eld
21285 \begin_inset space ~
21291 \begin_inset Quotes erd
21295 The endfloat-package is loaded in the preamble with the line
21298 \begin_layout Standard
21303 usepackage[options]{endfloat}
21306 \begin_layout Standard
21307 There are various package options to format the created figure/table sections.
21308 For more information we refer to the
21313 \begin_inset CommandInset citation
21320 \begin_inset Newline newline
21324 \begin_inset Note Greyedout
21327 \begin_layout Plain Layout
21332 doesn't provide an automatic translation for the text hint, you have to
21333 do this manually, see section
21334 \begin_inset space ~
21338 \begin_inset CommandInset citation
21350 \begin_inset Newline newline
21354 \begin_inset Note Greyedout
21357 \begin_layout Plain Layout
21362 There is currently a bug in
21366 when the caption contains a German
21367 \begin_inset Quotes eld
21371 \begin_inset Quotes erd
21375 Use in this case the command
21376 \begin_inset Quotes eld
21386 \begin_inset Quotes erd
21389 in TeX-Code instead of
21390 \begin_inset Quotes eld
21394 \begin_inset Quotes erd
21405 \begin_layout Standard
21406 \begin_inset VSpace bigskip
21409 For more details about float placements, have a look at LaTeX books,
21410 \begin_inset CommandInset citation
21412 key "latexcompanion,latexguide,latexbook"
21419 \begin_layout Section
21421 \begin_inset CommandInset label
21423 name "sec:Rotated-Floats"
21431 \begin_layout Plain Layout
21440 \begin_layout Standard
21441 Especially for wide tables you might have floats rotated.
21442 To rotate a whole float including the caption, right-click on the float-box
21446 \begin_inset space ~
21454 \begin_layout Standard
21455 Rotated floats are always placed on its own page (or column, in case you
21456 have a multi-column document).
21457 You can let them span several columns using the float settings option
21460 \begin_inset space ~
21466 Floats are rotated so that you can read them from the outside margin.
21467 To force a certain rotation direction for all pages, you can add either
21476 to the document class options.
21479 \begin_layout Standard
21480 Referencing rotated floats is the same like for normal floats, the caption
21481 format is also the same: Table
21482 \begin_inset space ~
21486 \begin_inset CommandInset ref
21488 reference "tab:Rotated-table"
21492 is an example of a rotated table float.
21495 \begin_layout Standard
21496 \begin_inset Note Greyedout
21499 \begin_layout Plain Layout
21504 Not all DVI-viewers are able to display rotated floats.
21512 \begin_layout Standard
21513 \begin_inset Float table
21518 \begin_layout Plain Layout
21519 \begin_inset Caption
21521 \begin_layout Plain Layout
21522 \begin_inset CommandInset label
21524 name "tab:Rotated-table"
21536 \begin_layout Plain Layout
21538 \begin_inset Tabular
21539 <lyxtabular version="3" rows="1" columns="5">
21541 <column alignment="center" valignment="top" width="0">
21542 <column alignment="center" valignment="top" width="0">
21543 <column alignment="center" valignment="top" width="0">
21544 <column alignment="center" valignment="top" width="0">
21545 <column alignment="center" valignment="top" width="0">
21547 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21550 \begin_layout Plain Layout
21556 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21559 \begin_layout Plain Layout
21565 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21568 \begin_layout Plain Layout
21574 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21577 \begin_layout Plain Layout
21583 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21586 \begin_layout Plain Layout
21605 \begin_layout Section
21610 \begin_layout Plain Layout
21619 \begin_layout Standard
21620 Subfloats are for example used when a figure consists of several images.
21621 They are created by inserting a float to an existing float.
21622 The placement of the subfloats can be controlled like for paragraphs as
21624 \begin_inset space ~
21628 \begin_inset CommandInset ref
21630 reference "tab:Two-subtables-side"
21635 \begin_inset CommandInset ref
21637 reference "tab:Two-subtables-upon"
21644 \begin_layout Standard
21645 Referencing subfloats works as for normal floats: Table
21646 \begin_inset space ~
21650 \begin_inset CommandInset ref
21652 reference "tab:This-is-subtable-a"
21657 \begin_inset CommandInset ref
21659 reference "tab:This-is-subtable-b"
21663 are subtables of table
21664 \begin_inset space ~
21668 \begin_inset CommandInset ref
21670 reference "tab:Two-subtables-side"
21677 \begin_layout Standard
21678 \begin_inset Float table
21683 \begin_layout Plain Layout
21684 \begin_inset Caption
21686 \begin_layout Plain Layout
21687 \begin_inset CommandInset label
21689 name "tab:Two-subtables-side"
21693 Two subtables placed side by side.
21701 \begin_layout Plain Layout
21703 \begin_inset space \hfill{}
21707 \begin_inset Float table
21712 \begin_layout Plain Layout
21713 \begin_inset Caption
21715 \begin_layout Plain Layout
21716 \begin_inset CommandInset label
21718 name "tab:This-is-subtable-a"
21722 This is subtable a.
21730 \begin_layout Plain Layout
21732 \begin_inset Tabular
21733 <lyxtabular version="3" rows="1" columns="5">
21735 <column alignment="center" valignment="top" width="0">
21736 <column alignment="center" valignment="top" width="0">
21737 <column alignment="center" valignment="top" width="0">
21738 <column alignment="center" valignment="top" width="0">
21739 <column alignment="center" valignment="top" width="0">
21741 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21744 \begin_layout Plain Layout
21750 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21753 \begin_layout Plain Layout
21759 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21762 \begin_layout Plain Layout
21768 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21771 \begin_layout Plain Layout
21777 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21780 \begin_layout Plain Layout
21797 \begin_inset space \hfill{}
21801 \begin_inset Float table
21806 \begin_layout Plain Layout
21807 \begin_inset Caption
21809 \begin_layout Plain Layout
21810 \begin_inset CommandInset label
21812 name "tab:This-is-subtable-b"
21816 This is subtable b.
21824 \begin_layout Plain Layout
21826 \begin_inset Tabular
21827 <lyxtabular version="3" rows="1" columns="5">
21829 <column alignment="center" valignment="top" width="0">
21830 <column alignment="center" valignment="top" width="0">
21831 <column alignment="center" valignment="top" width="0">
21832 <column alignment="center" valignment="top" width="0">
21833 <column alignment="center" valignment="top" width="0">
21835 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21838 \begin_layout Plain Layout
21844 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21847 \begin_layout Plain Layout
21853 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21856 \begin_layout Plain Layout
21862 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21865 \begin_layout Plain Layout
21871 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21874 \begin_layout Plain Layout
21891 \begin_inset space \hfill{}
21902 \begin_layout Standard
21903 \begin_inset Float table
21908 \begin_layout Plain Layout
21909 \begin_inset Caption
21911 \begin_layout Plain Layout
21912 \begin_inset CommandInset label
21914 name "tab:Two-subtables-upon"
21918 Two subtables placed one upon the other.
21919 (a) table with 4 cells, (b) table with 5 cells.
21927 \begin_layout Plain Layout
21929 \begin_inset Float table
21934 \begin_layout Plain Layout
21935 \begin_inset Caption
21937 \begin_layout Plain Layout
21946 \begin_layout Plain Layout
21948 \begin_inset Tabular
21949 <lyxtabular version="3" rows="1" columns="4">
21951 <column alignment="center" valignment="top" width="0">
21952 <column alignment="center" valignment="top" width="0">
21953 <column alignment="center" valignment="top" width="0">
21954 <column alignment="center" valignment="top" width="0">
21956 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21959 \begin_layout Plain Layout
21965 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21968 \begin_layout Plain Layout
21974 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21977 \begin_layout Plain Layout
21983 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21986 \begin_layout Plain Layout
22005 \begin_layout Plain Layout
22007 \begin_inset Float table
22012 \begin_layout Plain Layout
22013 \begin_inset Caption
22015 \begin_layout Plain Layout
22024 \begin_layout Plain Layout
22026 \begin_inset Tabular
22027 <lyxtabular version="3" rows="1" columns="5">
22029 <column alignment="center" valignment="top" width="0">
22030 <column alignment="center" valignment="top" width="0">
22031 <column alignment="center" valignment="top" width="0">
22032 <column alignment="center" valignment="top" width="0">
22033 <column alignment="center" valignment="top" width="0">
22035 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22038 \begin_layout Plain Layout
22044 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22047 \begin_layout Plain Layout
22053 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22056 \begin_layout Plain Layout
22062 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22065 \begin_layout Plain Layout
22071 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22074 \begin_layout Plain Layout
22098 \begin_layout Section
22099 Floats Side by Side
22103 \begin_layout Plain Layout
22104 Floats ! Side by side
22112 \begin_layout Standard
22113 To place floats side by side, like for Figure
22114 \begin_inset space ~
22118 \begin_inset CommandInset ref
22120 reference "fig:Float-left"
22125 \begin_inset CommandInset ref
22127 reference "fig:Float-right"
22136 In it two minipage boxes are inserted.
22140 \begin_layout Plain Layout
22141 Minipages are explained in section
22142 \begin_inset space ~
22146 \begin_inset CommandInset ref
22148 reference "sec:Minipages"
22157 The width is set to 45
22158 \begin_inset space \thinspace{}
22162 \begin_inset space \thinspace{}
22165 column% and the box alignment to
22170 The minipage boxes contain the image and the caption in the same way as
22171 they are in a float.
22172 The only difference is that the image unit
22175 \begin_inset space ~
22179 \begin_inset space ~
22184 is now calculated according to the width of the minipage boxes.
22187 \begin_layout Standard
22188 \begin_inset Float figure
22193 \begin_layout Plain Layout
22194 \begin_inset Box Frameless
22203 height_special "totalheight"
22206 \begin_layout Plain Layout
22208 \begin_inset Graphics
22209 filename clipart/mobius.eps
22212 scaleBeforeRotation
22219 \begin_layout Plain Layout
22220 \begin_inset Caption
22222 \begin_layout Plain Layout
22223 \begin_inset CommandInset label
22225 name "fig:Float-left"
22229 Float on the left side.
22240 \begin_inset space \hfill{}
22244 \begin_inset Box Frameless
22253 height_special "totalheight"
22256 \begin_layout Plain Layout
22258 \begin_inset Graphics
22259 filename clipart/platypus.eps
22262 scaleBeforeRotation
22269 \begin_layout Plain Layout
22270 \begin_inset Caption
22272 \begin_layout Plain Layout
22273 \begin_inset CommandInset label
22275 name "fig:Float-right"
22279 Float on the right side.
22292 \begin_layout Plain Layout
22301 \begin_layout Section
22306 \begin_layout Plain Layout
22307 Caption ! Formatting
22316 \begin_layout Plain Layout
22317 Floats ! Caption Formatting
22323 \begin_inset CommandInset label
22325 name "sec:Caption-Formatting"
22332 \begin_layout Standard
22337 environment is the default paragraph environment for
22342 On the LyX screen captions appear as label, e.
22343 \begin_inset space \thinspace{}
22347 \begin_inset space \space{}
22351 \begin_inset Quotes eld
22359 \begin_inset Quotes erd
22362 followed by the caption text.
22364 \begin_inset Quotes eld
22368 \begin_inset Quotes erd
22371 is the actual reference number.
22372 By default the label and the number are in the same font as the caption
22373 text and a colon follows the number to divide the label from the text.
22374 This caption format is not suitable for all document formats.
22378 \begin_layout Standard
22379 To change the default caption format, load the LaTeX-package
22387 \begin_layout Plain Layout
22388 LaTeX-packages ! caption
22393 in the document preamble with this line:
22396 \begin_layout Standard
22401 usepackage[format definition]{caption}
22404 \begin_layout Standard
22405 To have for example the label and the number in sans-serif bold font and
22406 the table captions always above the table like in this document, use the
22410 \begin_layout Standard
22415 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22418 \begin_layout Standard
22419 You can also define different caption formats for the different float types.
22420 In this case load the
22424 package without format specific options and define the different formats
22425 with the help of the command
22428 \begin_layout Standard
22433 captionsetup[float type]{format definition}
22436 \begin_layout Standard
22437 in the document preamble.
22438 For example the caption formats of Figure
22439 \begin_inset space ~
22443 \begin_inset CommandInset ref
22445 reference "fig:This-is-an-fig"
22450 \begin_inset space ~
22454 \begin_inset CommandInset ref
22456 reference "tab:This-is-an-tab"
22460 can be created using these commands in the document preamble:
22463 \begin_layout Standard
22468 usepackage[tableposition=top]{caption}
22471 \begin_inset Newline newline
22478 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22479 \begin_inset Newline newline
22486 \begin_layout Plain Layout
22494 captionsetup[figure]
22502 \begin_inset Newline newline
22507 captionsetup[table]{labelfont={bf,sf}}
22510 \begin_layout Standard
22511 \begin_inset Note Greyedout
22514 \begin_layout Plain Layout
22523 has no effect when a
22531 \begin_layout Plain Layout
22532 LaTeX-packages ! KOMA-script
22537 document class is used.
22538 In this case the document class option
22550 \begin_layout Standard
22551 For more information about the package
22555 we refer to its documentation
22556 \begin_inset CommandInset citation
22565 \begin_layout Standard
22566 To change the label name from e.
22567 \begin_inset space \thinspace{}
22571 \begin_inset space \space{}
22575 \begin_inset Quotes eld
22579 \begin_inset Quotes erd
22583 \begin_inset Quotes eld
22587 \begin_inset Quotes erd
22590 use this preamble command:
22593 \begin_layout Standard
22600 fnum@figure}{Image~
22605 \begin_layout Standard
22612 inserts the figure number and
22615 \begin_inset Quotes eld
22621 \begin_inset Quotes erd
22624 creates a protected space.
22627 \begin_layout Standard
22628 \begin_inset VSpace bigskip
22639 \begin_layout Plain Layout
22640 LaTeX-packages ! KOMA-script
22647 article (KOMA-script)
22655 letter (KOMA-script)
22659 report (KOMA-script)
22662 \begin_inset space \thinspace{}
22665 ), you can alternatively to the
22673 's built-in command
22680 For example, to have the caption label in bold, add this command to your
22684 \begin_layout Standard
22689 setkomafont{captionlabel}{
22694 \begin_layout Standard
22695 For more information about
22706 \begin_inset CommandInset citation
22715 \begin_layout Standard
22719 \begin_layout Plain Layout
22723 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
22730 \begin_inset Note Note
22733 \begin_layout Plain Layout
22734 The caption format is changed only for this example.
22742 \begin_layout Standard
22743 \begin_inset Float figure
22749 \begin_layout Plain Layout
22751 \begin_inset Graphics
22752 filename clipart/mobius.eps
22755 scaleBeforeRotation
22762 \begin_layout Plain Layout
22763 \begin_inset Caption
22765 \begin_layout Plain Layout
22766 \begin_inset CommandInset label
22768 name "fig:This-is-an-fig"
22772 This is an example figure caption that is longer than one line to show the
22773 different caption format.
22774 Here a self-defined caption format is used.
22787 \begin_layout Standard
22791 \begin_layout Plain Layout
22795 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
22804 \begin_layout Standard
22805 \begin_inset Float table
22811 \begin_layout Plain Layout
22812 \begin_inset Caption
22814 \begin_layout Plain Layout
22815 \begin_inset CommandInset label
22817 name "tab:This-is-an-tab"
22821 This is an example table caption that is longer than one line to show the
22822 different caption format.
22823 Here the standard caption format for tables in this document is used.
22831 \begin_layout Plain Layout
22833 \begin_inset Tabular
22834 <lyxtabular version="3" rows="1" columns="5">
22836 <column alignment="center" valignment="top" width="0">
22837 <column alignment="center" valignment="top" width="0">
22838 <column alignment="center" valignment="top" width="0">
22839 <column alignment="center" valignment="top" width="0">
22840 <column alignment="center" valignment="top" width="0">
22842 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22845 \begin_layout Plain Layout
22851 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22854 \begin_layout Plain Layout
22860 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22863 \begin_layout Plain Layout
22869 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22872 \begin_layout Plain Layout
22878 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22881 \begin_layout Plain Layout
22900 \begin_layout Section
22905 \begin_layout Plain Layout
22906 Caption ! Placement
22915 \begin_layout Plain Layout
22916 Floats ! Caption Placement
22922 \begin_inset CommandInset label
22924 name "sec:Caption-Placement"
22931 \begin_layout Standard
22932 The common caption placement rule is:
22935 \begin_layout Description
22936 Figure: Caption is set below the figure
22939 \begin_layout Description
22940 Table: Caption is set above the table
22943 \begin_layout Standard
22944 Having the caption above the table is unfortunately not supported in LaTeX's
22946 That means if you are using the document classes
22962 there will be no space between the caption and the table.
22963 To insert the needed space, add the following option to the load command
22964 of the LaTeX-package
22968 in your document preamble
22972 \begin_layout Plain Layout
22974 \begin_inset space ~
22978 \begin_inset CommandInset ref
22980 reference "sec:Caption-Formatting"
22984 for more information of the package
22996 \begin_layout Standard
23002 \begin_layout Standard
23011 \begin_layout Plain Layout
23012 LaTeX-packages ! KOMA-script
23019 article (KOMA-script)
23027 letter (KOMA-script)
23031 report (KOMA-script)
23034 \begin_inset space \thinspace{}
23037 ), you can alternatively to the
23041 package set the document class option
23048 \begin_layout Standard
23049 \begin_inset VSpace bigskip
23052 It is also possible to set the caption beside a figure or table.
23053 To get this the LaTeX-package
23061 \begin_layout Plain Layout
23062 LaTeX-packages ! sidecap
23067 has to be loaded in the document preamble with the line
23070 \begin_layout Standard
23075 usepackage[option]{sidecap}
23078 \begin_layout Standard
23079 If you set no option, the caption is placed on the side of the outer page
23080 margin – to the right on odd pages, to the left on even pages.
23081 You can change the placement to inner margin with the option
23086 To force the placement always to the right or left, use the option
23097 \begin_layout Standard
23101 \begin_layout Plain Layout
23111 \begin_inset Note Note
23114 \begin_layout Plain Layout
23115 The following section will only be displayed when the LaTeX-package
23127 \begin_layout Standard
23128 To place in LyX the caption of a float on the side, it is necessary to add
23129 these commands to the document preamble:
23132 \begin_layout Standard
23138 \begin_layout Standard
23146 \begin_inset Newline newline
23153 \begin_layout Plain Layout
23169 \begin_inset Newline newline
23176 \begin_layout Plain Layout
23192 \begin_inset Newline newline
23199 \begin_layout Plain Layout
23210 renewenvironment{table}{
23217 \begin_layout Standard
23225 \begin_inset Newline newline
23232 \begin_layout Plain Layout
23248 \begin_inset Newline newline
23255 \begin_layout Plain Layout
23273 \begin_layout Standard
23281 \begin_inset Newline newline
23288 \begin_layout Plain Layout
23304 \begin_inset Newline newline
23311 \begin_layout Plain Layout
23327 \begin_inset Newline newline
23334 \begin_layout Plain Layout
23345 renewenvironment{figure}{
23352 \begin_layout Standard
23360 \begin_inset Newline newline
23367 \begin_layout Plain Layout
23383 \begin_inset Newline newline
23390 \begin_layout Plain Layout
23408 \begin_layout Standard
23414 \begin_layout Standard
23415 The commands allow you to redefine the floats so that the caption is set
23417 For figure floats use the command
23420 \begin_layout Standard
23428 \begin_layout Standard
23429 in TeX-Code before the float.
23430 Behind the float insert the command
23433 \begin_layout Standard
23441 \begin_layout Standard
23442 in TeX-Code to get back to the original float definition.
23445 \begin_layout Standard
23446 For table floats use the corresponding commands
23449 \begin_layout Standard
23463 \begin_layout Standard
23465 \begin_inset space ~
23469 \begin_inset CommandInset ref
23471 reference "fig:cap-beside-fig"
23476 \begin_inset space ~
23480 \begin_inset CommandInset ref
23482 reference "tab:cap-beside-tab"
23486 are examples where the caption is set beside.
23489 \begin_layout Standard
23490 You can see in the examples that the caption text appears at the top of
23491 the floats for table floats and at the bottom for figure floats.
23492 To change this, you can use the command
23495 \begin_layout Standard
23500 sidecaptionvpos{float type}{placement}
23503 \begin_layout Standard
23504 in the document preamble or in TeX-Code before the float.
23505 The float type is either
23513 , the placement can be
23514 \begin_inset Quotes eld
23522 \begin_inset Quotes erd
23526 \begin_inset Quotes eld
23534 \begin_inset Quotes erd
23538 \begin_inset Quotes eld
23546 \begin_inset Quotes erd
23550 To have for example the caption of figure floats vertically centered, use
23554 \begin_layout Standard
23559 sidecaptionvpos{figure}{c}
23562 \begin_layout Standard
23563 This was used for Figure
23564 \begin_inset space ~
23568 \begin_inset CommandInset ref
23570 reference "fig:cap-beside-fig-2"
23577 \begin_layout Standard
23578 \begin_inset VSpace medskip
23581 For more information about the package
23585 we refer to its documentation
23586 \begin_inset CommandInset citation
23595 \begin_layout Standard
23596 \begin_inset Note Greyedout
23599 \begin_layout Plain Layout
23612 \begin_layout Plain Layout
23613 LaTeX-packages ! hypcap
23618 , described in section
23619 \begin_inset space ~
23623 \begin_inset CommandInset ref
23625 reference "sub:Reference-Position"
23629 , has no effect on floats with the caption set beside.
23637 \begin_layout Standard
23641 \begin_layout Plain Layout
23653 \begin_layout Standard
23654 \begin_inset Float figure
23659 \begin_layout Plain Layout
23660 \begin_inset Graphics
23661 filename clipart/escher-lsd.eps
23663 scaleBeforeRotation
23670 \begin_layout Plain Layout
23671 \begin_inset Caption
23673 \begin_layout Plain Layout
23674 \begin_inset CommandInset label
23676 name "fig:cap-beside-fig"
23680 This is a caption beside a figure.
23693 \begin_layout Standard
23697 \begin_layout Plain Layout
23709 \begin_layout Standard
23710 \begin_inset Float table
23715 \begin_layout Plain Layout
23716 \begin_inset Caption
23718 \begin_layout Plain Layout
23719 \begin_inset CommandInset label
23721 name "tab:cap-beside-tab"
23725 This is a caption beside a table.
23733 \begin_layout Plain Layout
23734 \begin_inset Tabular
23735 <lyxtabular version="3" rows="4" columns="5">
23737 <column alignment="center" valignment="top" width="0">
23738 <column alignment="center" valignment="top" width="0">
23739 <column alignment="center" valignment="top" width="0">
23740 <column alignment="center" valignment="top" width="0">
23741 <column alignment="center" valignment="top" width="0">
23743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23746 \begin_layout Plain Layout
23752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23755 \begin_layout Plain Layout
23761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23764 \begin_layout Plain Layout
23770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23773 \begin_layout Plain Layout
23779 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23782 \begin_layout Plain Layout
23790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23793 \begin_layout Plain Layout
23799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23802 \begin_layout Plain Layout
23808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23811 \begin_layout Plain Layout
23817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23820 \begin_layout Plain Layout
23826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23829 \begin_layout Plain Layout
23837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23840 \begin_layout Plain Layout
23846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23849 \begin_layout Plain Layout
23855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23858 \begin_layout Plain Layout
23864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23867 \begin_layout Plain Layout
23873 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23876 \begin_layout Plain Layout
23884 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23887 \begin_layout Plain Layout
23893 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23896 \begin_layout Plain Layout
23902 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23905 \begin_layout Plain Layout
23911 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23914 \begin_layout Plain Layout
23920 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23923 \begin_layout Plain Layout
23942 \begin_layout Standard
23946 \begin_layout Plain Layout
23958 \begin_layout Standard
23962 \begin_layout Plain Layout
23966 sidecaptionvpos{figure}{c}
23972 \begin_inset Float figure
23977 \begin_layout Plain Layout
23978 \begin_inset Graphics
23979 filename clipart/escher-lsd.eps
23981 scaleBeforeRotation
23988 \begin_layout Plain Layout
23989 \begin_inset Caption
23991 \begin_layout Plain Layout
23992 \begin_inset CommandInset label
23994 name "fig:cap-beside-fig-2"
23998 This is a vertically centered caption beside a figure.
24011 \begin_layout Standard
24015 \begin_layout Plain Layout
24027 \begin_layout Standard
24031 \begin_layout Plain Layout
24041 \begin_inset Note Note
24044 \begin_layout Plain Layout
24045 The following will be displayed when the LaTeX-package
24057 \begin_layout Standard
24058 You need to install the LaTeX-package
24062 to see the following part of this section in the output.
24065 \begin_layout Standard
24069 \begin_layout Plain Layout
24081 \begin_layout Section
24086 \begin_layout Plain Layout
24087 Floats ! Float Lists
24095 \begin_layout Standard
24096 Similar to the the table of contents where the sections of the document
24097 are listed, there are listings for all float types, like the figures of
24099 You can insert them via the
24101 Insert\SpecialChar \menuseparator
24103 \begin_inset space ~
24107 \begin_inset space ~
24115 \begin_layout Standard
24116 The list entries are the float captions or its short title, the float number,
24117 and the page number where they appear in the document.
24120 \begin_layout Standard
24121 You can find the list of figures and tables at the end of this document.
24124 \begin_layout Chapter
24128 \begin_layout Section
24133 \begin_layout Plain Layout
24142 \begin_layout Standard
24143 Notes are inserted with the toolbar button
24144 \begin_inset Graphics
24145 filename ../images/note-insert.png
24147 scaleBeforeRotation
24153 Insert\SpecialChar \menuseparator
24157 There are three types of notes:
24160 \begin_layout Description
24162 \begin_inset space ~
24165 Note This note type is for internal notes that won't appear in the output.
24166 Its note-box looks like this:
24167 \begin_inset Newline newline
24171 \begin_inset Newline newline
24175 \begin_inset Graphics
24176 filename clipart/LyXNoteImageQt4.png
24179 scaleBeforeRotation
24184 \begin_inset Note Note
24187 \begin_layout Plain Layout
24188 This is text in a note box that doesn't appear in the output.
24196 \begin_layout Description
24197 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24198 ent, when you export the document to LaTeX via the menu
24200 File\SpecialChar \menuseparator
24201 Export\SpecialChar \menuseparator
24202 LaTeX (pdflatex) / (plain)
24205 Its note-box looks like this:
24206 \begin_inset Newline newline
24210 \begin_inset Newline newline
24214 \begin_inset Graphics
24215 filename clipart/CommentNoteImageQt4.png
24218 scaleBeforeRotation
24223 \begin_inset Note Comment
24226 \begin_layout Plain Layout
24227 This is text in a note box that only appears as comment in LaTeX-files.
24235 \begin_layout Description
24237 \begin_inset space ~
24240 Out This note will appear in the output as grey text.
24241 Its note-box looks like this:
24242 \begin_inset Newline newline
24246 \begin_inset Newline newline
24250 \begin_inset Graphics
24251 filename clipart/GreyedOutNoteImageQt4.png
24254 scaleBeforeRotation
24259 \begin_inset Newline newline
24266 \begin_layout Plain Layout
24270 renewenvironment{lyxgreyedout}
24273 \begin_layout Plain Layout
24277 textcolor[gray]{0.8}
24287 \begin_inset Note Greyedout
24290 \begin_layout Plain Layout
24295 \begin_layout Plain Layout
24296 This is an example footnote within a greyed out note.
24301 of a comment that appears in the output as grey text.
24310 \begin_layout Plain Layout
24314 renewenvironment{lyxgreyedout}
24317 \begin_layout Plain Layout
24331 \begin_inset Note Note
24334 \begin_layout Plain Layout
24335 The greyed out note is here redefined to show it with the original LyX definitio
24336 n because greyed out notes are redefined in the preamble of this document,
24337 as described below, to have blue text.
24343 \begin_inset Newline newline
24347 \begin_inset Newline newline
24350 As you can see in the example, the first line of greyed out notes is a bit
24351 indented and greyed out notes can have footnotes.
24354 \begin_layout Standard
24355 \begin_inset VSpace bigskip
24358 When you use the toolbar button
24359 \begin_inset Graphics
24360 filename ../images/note-insert.png
24362 scaleBeforeRotation
24369 \begin_inset space ~
24375 You can switch between the five note types by right-clicking on the note-box.
24380 If you want to turn existing text into a note, mark it and click on the
24394 To change a note to text, press the backspace key when the cursor is in
24395 the first position of a note, or press the deletey key when the cursor
24396 is in the very last position of the note, respectively.
24399 \begin_layout Standard
24400 \begin_inset VSpace bigskip
24403 You can change the text color of the greyed out notes in the preamble with
24404 the following command:
24407 \begin_layout Standard
24412 renewenvironment{lyxgreyedout}
24413 \begin_inset Newline newline
24420 \begin_layout Plain Layout
24438 \begin_layout Standard
24439 The available colors and the method to define own colors is explained in
24441 \begin_inset space ~
24445 \begin_inset CommandInset ref
24447 reference "sec:Colored-Tables"
24454 \begin_layout Standard
24455 Notes that appear in blue in this document are set using greyed out notes
24459 \begin_layout Section
24461 \begin_inset CommandInset label
24463 name "sec:Footnotes"
24471 \begin_layout Plain Layout
24481 \begin_layout Plain Layout
24490 \begin_layout Standard
24491 Footnotes can be inserted using the toolbar button
24492 \begin_inset Graphics
24493 filename ../images/footnote-insert.png
24495 scaleBeforeRotation
24501 Insert\SpecialChar \menuseparator
24513 then the following footnote-box:
24514 \begin_inset Graphics
24515 filename clipart/footnoteQt4.png
24517 scaleBeforeRotation
24525 where you can enter the footnote text.
24526 If you want to turn existing text into a footnote, mark it and click on
24548 to text, press the Backspace key when the cursor is in the first position
24557 , or press the Delete key when the cursor is in the very last position of
24569 \begin_layout Standard
24570 Here is an example footnote:
24578 \begin_layout Plain Layout
24579 \begin_inset CommandInset label
24581 name "foot:This-is-an"
24585 This is an example footnote.
24598 \begin_layout Plain Layout
24602 newcounter{MyRepeatFoot}
24605 \begin_layout Plain Layout
24609 setcounter{MyRepeatFoot}{
24619 \begin_layout Standard
24620 The footnote will appear in the output as a superscript number at the text
24621 position where the footnote box is placed.
24622 The footnote text is placed at the bottom of the current page.
24623 The footnote number is calculated by LaTeX, the numbers are consecutive.
24624 It depends on your document-class, if the footnote number is reset for
24628 \begin_layout Standard
24629 Footnotes can be referenced like floats: Insert a label into the footnote
24630 and cross-reference this label in the text as described in section
24631 \begin_inset space ~
24635 \begin_inset CommandInset ref
24637 reference "sec:Referencing-Floats"
24642 \begin_inset Newline newline
24645 This is a cross-reference of Footnote
24646 \begin_inset space ~
24650 \begin_inset CommandInset ref
24652 reference "foot:This-is-an"
24659 \begin_layout Standard
24660 \begin_inset VSpace defskip
24663 To use footnotes within tables, you have to use minipages, see section
24664 \begin_inset space ~
24668 \begin_inset CommandInset ref
24670 reference "sec:Minipages"
24675 Footnotes within longtables are described in section
24676 \begin_inset space ~
24680 \begin_inset CommandInset ref
24682 reference "sub:Footnotes-in-Longtables"
24689 \begin_layout Standard
24690 \begin_inset VSpace defskip
24693 To create only a mark for a footnote, use the command
24697 footnotemark[number]
24700 This is used when you have the same annotation several times in a text
24701 but doesn't want to print the footnote text every time.
24702 \begin_inset Newline newline
24705 As you don't know the number of the repeating footnote while you are writing
24706 the text, you have to store its number.
24707 For the following footnote mark example, these commands were inserted in
24708 TeX-Code behind Footnote
24709 \begin_inset space ~
24713 \begin_inset CommandInset ref
24715 reference "foot:This-is-an"
24719 to store the footnote number:
24722 \begin_layout Standard
24727 newcounter{MyRepeatFoot}
24728 \begin_inset Newline newline
24733 setcounter{MyRepeatFoot}{
24738 \begin_layout Standard
24739 The footnote mark was then created with this command:
24742 \begin_layout Standard
24752 \begin_layout Standard
24753 Here is an example footnote mark:
24761 \begin_layout Plain Layout
24775 \begin_layout Subsection
24777 \begin_inset CommandInset label
24779 name "sub:Footnote-Numbering"
24787 \begin_layout Plain Layout
24788 Footnotes ! Numbering
24796 \begin_layout Standard
24797 To reset the footnote number back to 1 after each section
24799 , add this command to your document preamble:
24802 \begin_layout Standard
24807 @addtoreset{footnote}{section}
24810 \begin_layout Standard
24811 \begin_inset VSpace bigskip
24814 The following preamble command changes the footnote numbering style to small
24818 \begin_layout Standard
24830 \begin_layout Standard
24834 \begin_layout Plain Layout
24847 This is a footnote with roman numbering:
24851 \begin_layout Plain Layout
24852 This is an example footnote with roman numbering.
24860 \begin_layout Standard
24861 To change the numbering style to capital roman numerals replace in the command
24876 \begin_inset Quotes eld
24880 \begin_inset Quotes erd
24883 footnotes with capital or small Latin letters use
24897 \begin_inset Quotes eld
24901 \begin_inset Quotes erd
24904 footnotes with symbols use
24913 \begin_layout Standard
24914 \begin_inset Note Greyedout
24917 \begin_layout Plain Layout
24922 You can only number 26 footnotes with Latin letters, because this numbering
24923 is limited to single letters.
24929 \begin_inset Newline newline
24933 \begin_inset Note Greyedout
24936 \begin_layout Plain Layout
24941 You can only number 9 footnotes with symbols.
24949 \begin_layout Standard
24950 To return to the default numbering style when you changed to another one,
24963 in the command above.
24967 \begin_layout Plain Layout
24983 \begin_layout Standard
24984 \begin_inset VSpace bigskip
24990 \begin_layout Standard
24991 If you want to have footnotes numbered in the scheme
24992 \begin_inset Quotes eld
24996 \begin_inset Quotes erd
24999 , add the following command to your document preamble:
25002 \begin_layout Standard
25007 numberwithin{footnote}{chapter}
25010 \begin_layout Standard
25011 To be able to use the command
25020 \begin_inset space ~
25025 in the document settings the option
25028 \begin_inset space ~
25032 \begin_inset space ~
25036 \begin_inset space ~
25044 \begin_layout Standard
25048 \begin_layout Plain Layout
25052 numberwithin{footnote}{chapter}
25057 This is another example footnote:
25063 \begin_layout Plain Layout
25064 This is a footnote numbered in the scheme
25065 \begin_inset Quotes eld
25069 \begin_inset Quotes erd
25083 \begin_layout Plain Layout
25099 \begin_layout Standard
25100 \begin_inset Note Greyedout
25103 \begin_layout Plain Layout
25114 always prints out the footnote number as arabic number; previous redefinitions
25115 to get non-arabic numbers are overwritten.
25123 \begin_layout Standard
25124 So to get for example the scheme
25125 \begin_inset Quotes eld
25131 \begin_inset Quotes erd
25134 , use this command instead of
25143 \begin_layout Standard
25157 \begin_layout Subsection
25162 \begin_layout Plain Layout
25163 Footnotes ! Placement
25171 \begin_layout Standard
25172 If you have several footnotes in one page, they appear without vertical
25173 space between them at the bottom of the page.
25174 To make them better readable you can e.
25175 \begin_inset space \thinspace{}
25179 \begin_inset space \space{}
25183 \begin_inset space \thinspace{}
25186 mm space with the following preamble command:
25189 \begin_layout Standard
25199 \begin_inset Newline newline
25213 \begin_layout Standard
25214 \begin_inset VSpace bigskip
25217 In a two-column document the footnotes appear at the bottom of every column,
25219 \begin_inset space ~
25223 \begin_inset CommandInset ref
25225 reference "fig:Standard-footnote-placement"
25230 If the footnotes should only appear at the bottom of the right column,
25232 \begin_inset space ~
25236 \begin_inset CommandInset ref
25238 reference "fig:Footnote-placement-in"
25242 , use the LaTeX-package
25250 \begin_layout Plain Layout
25251 LaTeX-packages ! ftnright
25256 with this command in the document preamble:
25259 \begin_layout Standard
25264 usepackage{ftnright}
25267 \begin_layout Standard
25268 \begin_inset Float figure
25274 \begin_layout Plain Layout
25278 \begin_layout Plain Layout
25288 \begin_inset Graphics
25289 filename clipart/without_fntright.pdf
25291 scaleBeforeRotation
25299 \begin_layout Plain Layout
25309 \begin_layout Plain Layout
25310 \begin_inset Caption
25312 \begin_layout Plain Layout
25313 \begin_inset CommandInset label
25315 name "fig:Standard-footnote-placement"
25319 Standard footnote placement in two-column documents.
25332 \begin_layout Standard
25333 \begin_inset Float figure
25339 \begin_layout Plain Layout
25343 \begin_layout Plain Layout
25353 \begin_inset Graphics
25354 filename clipart/with_fntright.pdf
25356 scaleBeforeRotation
25364 \begin_layout Plain Layout
25374 \begin_layout Plain Layout
25375 \begin_inset Caption
25377 \begin_layout Plain Layout
25378 \begin_inset CommandInset label
25380 name "fig:Footnote-placement-in"
25384 Footnote placement in two-column documents when the LaTeX-package
25401 \begin_layout Standard
25402 \begin_inset VSpace bigskip
25405 In some scientific literature it is usual to collect the footnotes and print
25406 them in a separate paragraph at the the end of a section, like in Figure
25407 \begin_inset space ~
25411 \begin_inset CommandInset ref
25413 reference "fig:Endnotes----footnotes"
25418 They are then so called
25419 \begin_inset Quotes eld
25423 \begin_inset Quotes erd
25430 \begin_layout Plain Layout
25436 To use endnotes instead of footnotes in your document, load the LaTeX-package
25445 \begin_layout Plain Layout
25446 LaTeX-packages ! endnotes
25451 with the document preamble lines
25454 \begin_layout Standard
25459 usepackage{endnotes}
25460 \begin_inset Newline newline
25472 \begin_layout Standard
25473 To insert the collected footnotes, insert the command
25476 \begin_layout Standard
25484 \begin_layout Standard
25485 in TeX-Code at the the end of a section or chapter.
25488 \begin_layout Standard
25489 \begin_inset Float figure
25494 \begin_layout Plain Layout
25499 \begin_layout Plain Layout
25509 \begin_inset Graphics
25510 filename clipart/endnotes.pdf
25511 scaleBeforeRotation
25519 \begin_layout Plain Layout
25529 \begin_layout Plain Layout
25530 \begin_inset Caption
25532 \begin_layout Plain Layout
25533 \begin_inset CommandInset label
25535 name "fig:Endnotes----footnotes"
25539 Endnotes – footnotes are printed in a separate paragraph at the end of sections
25553 \begin_layout Standard
25554 \begin_inset VSpace medskip
25557 The paragraph heading for the endnotes isn't automatically translated into
25558 the document language, this must be done manually.
25559 The following preamble command translate the default English name
25560 \begin_inset Quotes eld
25564 \begin_inset Quotes erd
25567 to the German translation
25568 \begin_inset Quotes eld
25572 \begin_inset Quotes erd
25578 \begin_layout Standard
25585 notesname}{Anmerkungen}
25588 \begin_layout Standard
25589 \begin_inset VSpace medskip
25592 The numbering of endnotes can be changed like the footnote numbering as
25593 described in section
25594 \begin_inset space ~
25598 \begin_inset CommandInset ref
25600 reference "sub:Footnote-Numbering"
25604 ; just replace the command
25617 To reset the endnote number use the command
25623 as described in section
25624 \begin_inset space ~
25628 \begin_inset CommandInset ref
25630 reference "sub:Footnote-Numbering"
25634 and replace the command parameter
25645 \begin_layout Standard
25646 To create only a mark for an endnote, use the command
25650 endnotemark[number]
25652 similar to the command
25658 , described in section
25659 \begin_inset space ~
25663 \begin_inset CommandInset ref
25665 reference "sec:Footnotes"
25672 \begin_layout Standard
25673 \begin_inset VSpace bigskip
25676 Footnotes can also be placed in the page margin and the footnote text alignment
25677 can be changed, see the LaTeX-package
25685 \begin_layout Plain Layout
25686 LaTeX-packages ! footmisc
25692 \begin_inset CommandInset citation
25698 for more information about this.
25701 \begin_layout Standard
25702 For various further footnote formatting issues have a look at LaTeX-books,
25704 \begin_inset CommandInset citation
25706 key "latexcompanion,latexguide,latexbook"
25713 \begin_layout Section
25718 \begin_layout Plain Layout
25719 Notes ! Margin Notes
25727 \begin_layout Standard
25728 Margin notes look and behave in LyX like footnotes.
25729 They are inserted via the menu
25731 Insert\SpecialChar \menuseparator
25733 \begin_inset space ~
25738 or the toolbar button
25739 \begin_inset Graphics
25740 filename ../images/marginalnote-insert.png
25742 scaleBeforeRotation
25757 \begin_inset Quotes eld
25761 \begin_inset Quotes erd
25764 appears where you can enter the text of the margin note.
25767 \begin_layout Standard
25768 At the side is an example margin note.
25773 \begin_inset Marginal
25776 \begin_layout Plain Layout
25777 This is a margin note.
25785 \begin_layout Standard
25786 Margin notes appear at the right side in single-sided documents.
25787 In double-sided documents they appear in the outer margin – left on even
25788 pages, right on odd pages.
25789 The text of margin notes is aligned opposite to the outer margin – right-aligne
25790 d when the note appears in the left margin.
25791 The first line of the margin note is placed at the position of the text
25792 line where it is inserted in the document.
25795 \begin_layout Standard
25796 \begin_inset VSpace bigskip
25799 To place the margin note in the inner margin, add the command
25802 \begin_layout Standard
25810 \begin_layout Standard
25811 in TeX-Code before a margin note.
25812 The new placement is valid for all following margin notes.
25817 \begin_layout Plain Layout
25827 \begin_inset Marginal
25830 \begin_layout Plain Layout
25831 This is a margin note in the inner margin.
25839 \begin_inset Newline newline
25845 \begin_inset Note Greyedout
25848 \begin_layout Plain Layout
25853 There is often not enough space in the inner margin so that the notes are
25854 not correctly displayed in the output.
25862 \begin_layout Standard
25863 To return to the default placement insert the command
25866 \begin_layout Standard
25874 \begin_layout Standard
25879 \begin_layout Plain Layout
25889 \begin_inset Note Greyedout
25892 \begin_layout Plain Layout
25897 The command is ignored when it is within a paragraph where also the command
25912 \begin_layout Standard
25913 \begin_inset VSpace bigskip
25920 \begin_inset Marginal
25923 \begin_layout Plain Layout
25924 AVeryLongMarginParWord that isn't hyphenated.
25932 Similar to the case described in section
25933 \begin_inset space ~
25937 \begin_inset CommandInset ref
25939 reference "sub:Multiple-Lines-in"
25943 , long words cannot be hyphenated when they are the first word in a margin
25945 To avoid this, insert 0
25946 \begin_inset space \thinspace{}
25949 pt horizontal space before the word
25954 \begin_inset Marginal
25957 \begin_layout Plain Layout
25958 \begin_inset space \hspace*{}
25962 AVeryLongMarginParWord that is hyphenated.
25970 \begin_layout Standard
25971 \begin_inset VSpace bigskip
25977 \begin_layout Standard
25978 \begin_inset Note Greyedout
25981 \begin_layout Plain Layout
25986 Margin notes can normally not be used inside tables, floats, and footnotes.
25994 \begin_layout Standard
25995 \begin_inset VSpace bigskip
26001 \begin_layout Standard
26005 \begin_layout Plain Layout
26015 \begin_inset Note Note
26018 \begin_layout Plain Layout
26019 The following section will only be displayed when the LaTeX-package
26031 \begin_layout Standard
26032 This restriction can be evaded by using the LaTeX-package
26040 \begin_layout Plain Layout
26041 LaTeX-packages ! marginnote
26047 By adding these two lines to your document preamble, the command used by
26048 LyX for margin notes is redefined to use the command provided by the
26055 \begin_layout Standard
26060 usepackage{marginnote}
26061 \begin_inset Newline newline
26073 \begin_layout Standard
26074 This is also used in this document because
26078 has another useful feature: You can set a vertical offset for the note.
26079 This is often needed when too many margin notes are too close together
26080 or for a better page layout.
26081 The offset is set in LyX as TeX-Code directly behind the margin note in
26085 \begin_layout Standard
26091 \begin_layout Standard
26092 where the offset is a length with one of the units listed in Table
26093 \begin_inset space ~
26097 \begin_inset CommandInset ref
26099 reference "tab:Units"
26104 A negative value shifts the note up, a positive value shifts it down.
26108 For example the margin note beside this text line is shifted up 1.5
26109 \begin_inset space \thinspace{}
26112 cm with the TeX-Code-command
26113 \begin_inset Quotes eld
26123 \begin_inset Quotes erd
26127 \begin_inset Marginal
26130 \begin_layout Plain Layout
26131 This margin note is shifted up 1.5
26132 \begin_inset space \thinspace{}
26135 cm from its original position.
26147 \begin_layout Plain Layout
26157 \begin_layout Standard
26158 \begin_inset VSpace medskip
26165 you can also change the alignment of the text in the margin note.
26166 For example the commands
26169 \begin_layout Standard
26176 raggedleftmarginnote}{
26179 \begin_inset Newline newline
26186 raggedrightmarginnote}{
26191 \begin_layout Standard
26192 set the alignment to centered.
26197 raggedleftmarginnote
26199 denotes margin notes that appear at the left side.
26206 \begin_layout Plain Layout
26212 raggedleftmarginnote}{
26217 \begin_layout Plain Layout
26223 raggedrightmarginnote}{
26231 \begin_inset Marginal
26234 \begin_layout Plain Layout
26235 The text of this margin note is centered.
26246 \begin_layout Standard
26253 raggedleftmarginnote}{
26256 \begin_inset Newline newline
26263 raggedrightmarginnote}{
26272 \begin_layout Plain Layout
26278 raggedleftmarginnote}{
26283 \begin_layout Plain Layout
26289 raggedrightmarginnote}{
26299 \begin_layout Standard
26300 \begin_inset VSpace medskip
26303 For the other features of
26307 we refer to its documentation
26308 \begin_inset CommandInset citation
26317 \begin_layout Standard
26318 \begin_inset VSpace bigskip
26321 You can adjust the layout of margin notes by changing its definition.
26322 To create for example a header for all margin notes with the underlined,
26323 sans-serif, and bold header text
26324 \begin_inset Quotes eld
26336 \begin_inset Quotes erd
26339 , add this to your document preamble:
26342 \begin_layout Standard
26352 \begin_inset Newline newline
26362 \begin_inset Newline newline
26369 \begin_layout Plain Layout
26386 underbar{Attention!}}}%
26387 \begin_inset Newline newline
26394 \begin_layout Plain Layout
26412 \begin_layout Standard
26419 \begin_layout Plain Layout
26430 \begin_layout Plain Layout
26441 \begin_layout Plain Layout
26449 underbar{Attention!}}}%
26452 \begin_layout Plain Layout
26466 \begin_inset Marginal
26469 \begin_layout Plain Layout
26470 This is a margin note with a defined heading.
26482 \begin_layout Plain Layout
26496 \begin_layout Plain Layout
26513 \begin_inset Note Note
26516 \begin_layout Plain Layout
26517 The margin note format is changed only for this example.
26525 \begin_layout Standard
26529 \begin_layout Plain Layout
26539 \begin_inset Note Note
26542 \begin_layout Plain Layout
26543 The following will be displayed when the LaTeX-package
26555 \begin_layout Standard
26556 You need to install the LaTeX-package
26560 to see the following part of this section in the output.
26563 \begin_layout Standard
26567 \begin_layout Plain Layout
26579 \begin_layout Chapter
26583 \begin_layout Section
26588 \begin_layout Plain Layout
26589 Boxes ! Introduction
26597 \begin_layout Standard
26598 Boxes are used to format a block of text.
26599 Boxes can be used to write documents with multiple languages, see section
26600 \begin_inset space ~
26604 \begin_inset CommandInset ref
26606 reference "sec:Minipages"
26610 , to frame texts, see section
26611 \begin_inset space ~
26615 \begin_inset CommandInset ref
26617 reference "sec:Decoration"
26621 , to prevent words to be hyphenated, see section
26622 \begin_inset space ~
26626 \begin_inset CommandInset ref
26628 reference "sec:Prevent-Hyphenation"
26632 , to align text, see section
26633 \begin_inset space ~
26637 \begin_inset CommandInset ref
26639 reference "sub:Vertical-Alignment"
26643 , or to set the background color of texts, see section
26644 \begin_inset space ~
26648 \begin_inset CommandInset ref
26650 reference "sec:Colored-Boxes"
26657 \begin_layout Standard
26658 Boxes can be inserted with the menu
26660 Insert\SpecialChar \menuseparator
26663 or the toolbar button
26664 \begin_inset Graphics
26665 filename ../images/box-insert.png
26667 scaleBeforeRotation
26672 A grey box with the label
26677 \begin_inset Graphics
26678 filename clipart/BoxInsetDefaultQt4.png
26680 scaleBeforeRotation
26685 The box type can be specified by right-clicking on the box.
26686 The appearing box dialog offers the
26689 \begin_inset space ~
26707 is the default for new boxes and is explained in section
26708 \begin_inset space ~
26712 \begin_inset CommandInset ref
26714 reference "sec:Minipages"
26722 is described in section
26723 \begin_inset space ~
26727 \begin_inset CommandInset ref
26729 reference "sec:Parboxes"
26736 \begin_layout Standard
26737 Boxes aren't numbered and can therefore not be referenced like floats or
26741 \begin_layout Standard
26742 \begin_inset Note Greyedout
26745 \begin_layout Plain Layout
26750 Boxes must not be the item in an
26766 \begin_layout Standard
26767 \begin_inset Note Greyedout
26770 \begin_layout Plain Layout
26775 For an unknown reason you can only set the
26778 \begin_inset space ~
26787 when you use a framed box.
26791 \begin_inset space ~
26796 type and without frames are explained in section
26797 \begin_inset space ~
26801 \begin_inset CommandInset ref
26803 reference "sec:Prevent-Hyphenation"
26815 \begin_layout Section
26817 \begin_inset CommandInset label
26819 name "sec:Box-Dialog"
26827 \begin_layout Plain Layout
26836 \begin_layout Subsection
26841 \begin_layout Plain Layout
26850 \begin_layout Standard
26851 In the box dialog you can adjust the box geometry in the fields
26860 The available units for the geometry are explained in Table
26861 \begin_inset space ~
26865 \begin_inset CommandInset ref
26867 reference "tab:Units"
26876 offers the following additional sizes:
26879 \begin_layout Description
26880 Depth This is the plain text
26881 \begin_inset Quotes eld
26885 \begin_inset Quotes erd
26889 It ignores the total depth when there are multiple text lines in the box:
26890 \begin_inset Newline newline
26894 \begin_inset Newline newline
26898 \begin_inset Newline newline
26902 \begin_inset Box Boxed
26911 height_special "depth"
26914 \begin_layout Plain Layout
26916 Box height set to 1
26917 \begin_inset space \thinspace{}
26926 \begin_inset Newline newline
26930 \begin_inset Newline newline
26936 \begin_layout Description
26937 Height This is the heigth of the text that is inside the box.
26939 \begin_inset space \thinspace{}
26943 \begin_inset space \space{}
26946 2 for this size will set the box heigth to 2 times the text height:
26947 \begin_inset Box Boxed
26956 height_special "height"
26959 \begin_layout Plain Layout
26961 Box height set to 2
26962 \begin_inset space \thinspace{}
26973 \begin_layout Description
26975 \begin_inset space ~
26978 Height This is the Height
26979 \begin_inset space \thinspace{}
26983 \begin_inset space \thinspace{}
26987 \begin_inset Box Boxed
26996 height_special "totalheight"
26999 \begin_layout Plain Layout
27001 Box height set to 1
27002 \begin_inset space \thinspace{}
27006 \begin_inset space ~
27017 \begin_layout Description
27018 Width This sets the width of the box as heigth:
27019 \begin_inset Box Boxed
27028 height_special "width"
27031 \begin_layout Plain Layout
27033 Box height set to 1
27034 \begin_inset space \thinspace{}
27045 \begin_layout Subsection
27050 \begin_layout Plain Layout
27059 \begin_layout Standard
27060 When you have chosen an
27063 \begin_inset space ~
27068 , the vertical box alignment can be:
27071 \begin_layout Description
27072 Top This is an example text line.
27074 \begin_inset Box Boxed
27083 height_special "totalheight"
27086 \begin_layout Plain Layout
27088 This box is top-aligned.
27093 This is an example text line.
27096 \begin_layout Description
27097 Middle This is an example text line.
27099 \begin_inset Box Boxed
27108 height_special "totalheight"
27111 \begin_layout Plain Layout
27113 This box is middle-aligned.
27118 This is an example text line.
27121 \begin_layout Description
27122 Bottom This is an example text line.
27124 \begin_inset Box Boxed
27133 height_special "totalheight"
27136 \begin_layout Plain Layout
27138 This box is bottom-aligned.
27143 This is an example text line.
27146 \begin_layout Standard
27147 \begin_inset Note Greyedout
27150 \begin_layout Plain Layout
27155 The vertical box aligment can be lost in the output when you have two boxes
27156 in a line and one has e.
27157 \begin_inset space \thinspace{}
27161 \begin_inset space \space{}
27164 a shadow and the other one not.
27172 \begin_layout Standard
27173 The horizontal box alignment can be set via LyX's paragraph dialog when
27174 you set the box into its own paragraph.
27177 \begin_layout Standard
27178 \begin_inset VSpace bigskip
27181 When you have chosen an
27184 \begin_inset space ~
27189 , the box content can be vertical aligned to:
27192 \begin_layout Description
27193 top This is an example text line.
27195 \begin_inset Box Boxed
27204 height_special "totalheight"
27207 \begin_layout Plain Layout
27209 This box text is top-aligned.
27214 This is an example text line.
27217 \begin_layout Description
27218 middle This is an example text line.
27220 \begin_inset Box Boxed
27229 height_special "totalheight"
27232 \begin_layout Plain Layout
27234 This box text is middle-aligned.
27239 This is an example text line.
27242 \begin_layout Description
27243 bottom This is an example text line.
27245 \begin_inset Box Boxed
27254 height_special "totalheight"
27257 \begin_layout Plain Layout
27259 This box text is bottom-aligned.
27264 This is an example text line.
27267 \begin_layout Description
27268 stretch This is an example text line.
27270 \begin_inset Box Boxed
27279 height_special "totalheight"
27282 \begin_layout Plain Layout
27287 \begin_layout Plain Layout
27292 \begin_layout Plain Layout
27299 This is an example text line.
27302 \begin_layout Standard
27303 To stretch the box content, it must consist of more than one paragraph.
27304 In the example above every text line is in an own paragraph.
27307 \begin_layout Standard
27308 \begin_inset VSpace bigskip
27311 To align the box content horizontally you can use LyX's paragraph dialog
27312 when you have chosen an
27315 \begin_inset space ~
27323 \begin_layout Standard
27325 \begin_inset Box Boxed
27334 height_special "totalheight"
27337 \begin_layout Plain Layout
27342 \begin_layout Plain Layout
27347 \begin_layout Plain Layout
27357 \begin_layout Standard
27358 If you haven't set an
27361 \begin_inset space ~
27366 , you can align the box content horizontally in the box dialog.
27369 \begin_layout Standard
27371 \begin_inset Box Boxed
27380 height_special "totalheight"
27383 \begin_layout Plain Layout
27385 This box text is horizontally stretched.
27393 \begin_layout Subsection
27395 \begin_inset CommandInset label
27397 name "sec:Decoration"
27405 \begin_layout Plain Layout
27414 \begin_layout Standard
27415 The type of the box can be specified in the box-dialog in the drop-down
27421 The following types are possible:
27424 \begin_layout Description
27426 \begin_inset space ~
27430 \begin_inset space ~
27433 frame This draws a rectangle frame around the box.
27434 The frame line thickness has the size of
27442 \begin_inset Box Boxed
27451 height_special "totalheight"
27454 \begin_layout Plain Layout
27464 \begin_layout Description
27466 \begin_inset space ~
27470 \begin_inset space ~
27473 break When you use the decoration
27475 simple rectangular frame
27477 and no inner box, you can allow page breaks within a box.
27478 Note that then, in contrary to other framed boxes, the frame always uses
27479 the whole column width, the box is set as its own paragraph, and
27491 has no effect on this box type.
27492 The frame line thickness has the size of
27500 \begin_inset Box Framed
27509 height_special "totalheight"
27512 \begin_layout Plain Layout
27513 Allow page break box
27521 \begin_layout Description
27523 \begin_inset space ~
27527 \begin_inset space ~
27530 thin This draws an oval frame around the box.
27531 The frame line thickness has the size 0.4
27532 \begin_inset space \thinspace{}
27537 \begin_inset Box ovalbox
27546 height_special "totalheight"
27549 \begin_layout Plain Layout
27559 \begin_layout Description
27561 \begin_inset space ~
27565 \begin_inset space ~
27568 thick This draws an oval frame around the box.
27569 The frame line thickness has the size 0.8
27570 \begin_inset space \thinspace{}
27575 \begin_inset Box Ovalbox
27584 height_special "totalheight"
27587 \begin_layout Plain Layout
27597 \begin_layout Description
27599 \begin_inset space ~
27602 shadow This draws a rectangle frame with a shadow around the box.
27603 The frame line thickness has the size of
27609 , the shadow has a width of 4
27610 \begin_inset space \thinspace{}
27615 \begin_inset Box Shadowbox
27624 height_special "totalheight"
27627 \begin_layout Plain Layout
27637 \begin_layout Description
27639 \begin_inset space ~
27642 background This draws a box with red background color.
27643 In contrary to colored boxes
27647 \begin_layout Plain Layout
27649 \begin_inset space \thinspace{}
27653 \begin_inset CommandInset ref
27655 reference "sec:Colored-Boxes"
27664 , it always uses the whole column width and the box is set as its own paragraph.
27666 \begin_inset Box Shaded
27675 height_special "totalheight"
27678 \begin_layout Plain Layout
27679 Shaded background box
27687 \begin_layout Description
27689 \begin_inset space ~
27693 \begin_inset space ~
27696 frame This draws a double-line rectangle frame around the box.
27697 The line thickness of the inner frame is 0.75
27698 \begin_inset space \thinspace{}
27707 , the thickness of the outer frame is 1.5
27708 \begin_inset space \thinspace{}
27718 The distance between the lines is 1.5
27719 \begin_inset space \thinspace{}
27729 \begin_inset space \thinspace{}
27733 \begin_inset space \thinspace{}
27737 \begin_inset space \thinspace{}
27742 \begin_inset Box Doublebox
27751 height_special "totalheight"
27754 \begin_layout Plain Layout
27756 Double rectangular box
27764 \begin_layout Standard
27765 \begin_inset VSpace bigskip
27768 LyX's box label will reflect the different frame types.
27769 To be able to use all types, the LaTeX-package
27777 \begin_layout Plain Layout
27778 LaTeX-packages ! fancybox
27786 \begin_layout Section
27791 \begin_layout Plain Layout
27792 Boxes ! Customization
27800 \begin_layout Standard
27801 The default value for the size
27808 \begin_inset space \thinspace{}
27812 It can be changed with the following command in TeX-Code to e.
27813 \begin_inset space \thinspace{}
27817 \begin_inset space \space{}
27821 \begin_inset space \thinspace{}
27827 \begin_layout Standard
27837 \begin_layout Standard
27841 \begin_layout Plain Layout
27853 \begin_inset Box Boxed
27862 height_special "totalheight"
27865 \begin_layout Plain Layout
27867 Rectangular box with
27874 \begin_inset space \thinspace{}
27878 \begin_inset space \thinspace{}
27882 \begin_inset space \thinspace{}
27894 \begin_layout Plain Layout
27908 \begin_layout Standard
27909 \begin_inset VSpace bigskip
27912 The space between the frame and the box content is for all frame styles
27914 \begin_inset space \thinspace{}
27918 You can change it by setting the length
27925 For example the command
27928 \begin_layout Standard
27938 \begin_layout Standard
27939 sets the value to 10
27940 \begin_inset space \thinspace{}
27943 pt, like for the following box:
27946 \begin_layout Standard
27950 \begin_layout Plain Layout
27962 \begin_inset Box Boxed
27971 height_special "totalheight"
27974 \begin_layout Plain Layout
27976 Rectangular box with
27983 \begin_inset space \thinspace{}
27987 \begin_inset space \thinspace{}
27991 \begin_inset space \thinspace{}
28003 \begin_layout Plain Layout
28017 \begin_layout Standard
28018 \begin_inset VSpace bigskip
28021 The diameter of the round corners of the oval boxes can be set with the
28032 \begin_layout Standard
28040 \begin_layout Standard
28041 sets the diameter to 1
28042 \begin_inset space \thinspace{}
28049 \begin_layout Standard
28057 \begin_layout Standard
28058 sets the diameter to
28061 \begin_inset space \thinspace{}
28065 \begin_inset space \thinspace{}
28068 minimum(width and heigth of box)
28080 \begin_layout Standard
28084 \begin_layout Plain Layout
28094 \begin_inset Box Ovalbox
28103 height_special "totalheight"
28106 \begin_layout Plain Layout
28115 \begin_inset space \thinspace{}
28119 \begin_inset space \thinspace{}
28123 \begin_inset space \thinspace{}
28135 \begin_layout Plain Layout
28147 \begin_layout Standard
28148 \begin_inset VSpace bigskip
28151 The size of the shadow can be adjusted by changing the length
28159 \begin_inset space \thinspace{}
28162 pt for the following box by this command:
28165 \begin_layout Standard
28175 \begin_layout Standard
28179 \begin_layout Plain Layout
28191 \begin_inset Box Shadowbox
28200 height_special "totalheight"
28203 \begin_layout Plain Layout
28212 \begin_inset space \thinspace{}
28216 \begin_inset space \thinspace{}
28220 \begin_inset space \thinspace{}
28232 \begin_layout Plain Layout
28246 \begin_layout Standard
28247 \begin_inset VSpace bigskip
28253 \begin_layout Standard
28254 The default value for the size
28261 \begin_inset space \thinspace{}
28265 The default space between the note content and the frame is 9
28266 \begin_inset space \thinspace{}
28269 pt and can be changed with the value of
28276 For example the frame appearance of the following
28280 is set with the TeX-Code commands
28283 \begin_layout Standard
28291 \begin_inset Newline newline
28301 \begin_layout Standard
28305 \begin_layout Plain Layout
28314 \begin_layout Plain Layout
28326 \begin_inset Box Framed
28335 height_special "totalheight"
28338 \begin_layout Plain Layout
28352 \begin_layout Plain Layout
28361 \begin_layout Plain Layout
28375 \begin_layout Standard
28376 \begin_inset VSpace bigskip
28382 \begin_layout Standard
28387 boxes the default space between the box content and the box border is 3
28388 \begin_inset space \thinspace{}
28391 pt and can be changed with the value of
28398 The default background color red can either be changed locally with the
28403 definecolor{shadebox}
28405 or globally with the menu
28407 Tools\SpecialChar \menuseparator
28408 Preferences\SpecialChar \menuseparator
28409 Colors\SpecialChar \menuseparator
28411 \begin_inset space ~
28423 command is explained in section
28424 \begin_inset space ~
28428 \begin_inset CommandInset ref
28430 reference "sec:Colored-Tables"
28438 \begin_layout Plain Layout
28445 requires the LaTeX-package
28449 in the preamble, see section
28450 \begin_inset space ~
28454 \begin_inset CommandInset ref
28456 reference "sec:Colored-Boxes"
28465 For example the appearance of the following shaded background note is set
28466 with the TeX-Code commands
28469 \begin_layout Standard
28479 \begin_inset Newline newline
28486 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28489 \begin_layout Standard
28493 \begin_layout Plain Layout
28502 \begin_layout Plain Layout
28506 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28512 \begin_inset Box Shaded
28521 height_special "totalheight"
28524 \begin_layout Plain Layout
28527 This is yellow text in a
28537 box with dark green background.
28546 \begin_layout Plain Layout
28555 \begin_layout Plain Layout
28559 definecolor{shadecolor}{rgb}{1,0,0}
28567 \begin_layout Standard
28568 \begin_inset VSpace bigskip
28571 Changed lengths and widths are valid for all boxes following the commands
28575 \begin_layout Section
28577 \begin_inset CommandInset label
28579 name "sec:Minipages"
28587 \begin_layout Plain Layout
28596 \begin_layout Standard
28597 Minipages are treated by LaTeX as pages within pages and can therefore for
28598 example have their own footnotes.
28601 \begin_layout Standard
28602 Minipages are useful when you write documents with different languages.
28605 \begin_layout Standard
28606 Below are two example minipages side by side.
28607 Their width is set to 45
28608 \begin_inset space \thinspace{}
28611 col% and they are separated by a horizontal fill, that was inserted via
28614 Insert\SpecialChar \menuseparator
28616 \begin_inset space ~
28619 Formatting\SpecialChar \menuseparator
28621 \begin_inset space ~
28627 \begin_inset Newpage newpage
28633 \begin_layout Standard
28634 \begin_inset Box Frameless
28643 height_special "totalheight"
28646 \begin_layout Plain Layout
28649 Dies ist ein deutscher Text.
28650 Dies ist ein deutscher Text.
28651 Dies ist ein deutscher Text.
28652 Dies ist ein deutscher Text.
28653 Dies ist ein deutscher Text.
28654 Dies ist ein deutscher Text.
28655 Dies ist ein deutscher Text.
28656 Dies ist ein deutscher Text.
28657 Dies ist ein deutscher Text.
28658 Dies ist ein deutscher Text.
28659 Dies ist ein deutscher Text.
28660 Dies ist ein deutscher Text.
28661 Dies ist ein deutscher Text
28665 \begin_layout Plain Layout
28668 Dies ist eine deutsche Fußnote.
28674 Dies ist ein deutscher Text.
28675 Dies ist ein deutscher Text.
28681 \begin_inset space \hfill{}
28685 \begin_inset Box Frameless
28694 height_special "totalheight"
28697 \begin_layout Plain Layout
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.
28705 This is an English Text.
28706 This is an English Text.
28707 This is an English Text.
28708 This is an English Text.
28709 This is an English Text.
28710 This is an English Text.
28711 This is an English Text.
28712 This is an English Text.
28713 This is an English Text.
28717 \begin_layout Plain Layout
28718 This is an English footnote.
28723 This is an English Text.
28732 \begin_layout Standard
28733 \begin_inset VSpace bigskip
28736 Another application for minipages are footnotes within tables.
28737 Due to a LaTeX restriction footnotes within tables doesn't appear at the
28738 bottom of the current page.
28739 But when you put the table with the footnote to a minipage, the footnote
28740 will appear at its bottom, numbered with Latin letters.
28741 The footnote number is reset to 1 in every minipage but not outside the
28745 \begin_layout Standard
28746 The footnote of this table doesn't appear:
28747 \begin_inset Tabular
28748 <lyxtabular version="3" rows="3" columns="4">
28750 <column alignment="center" valignment="top" width="0pt">
28751 <column alignment="center" valignment="top" width="0pt">
28752 <column alignment="center" valignment="top" width="0pt">
28753 <column alignment="center" valignment="top" width="0pt">
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
28773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28776 \begin_layout Plain Layout
28781 \begin_layout Plain Layout
28782 This is a footnote within a table.
28792 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28795 \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" usebox="none">
28824 \begin_layout Plain Layout
28830 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28833 \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" usebox="none">
28862 \begin_layout Plain Layout
28868 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28871 \begin_layout Plain Layout
28885 \begin_layout Standard
28887 \begin_inset Box Frameless
28896 height_special "totalheight"
28899 \begin_layout Plain Layout
28901 \begin_inset Tabular
28902 <lyxtabular version="3" rows="3" columns="4">
28904 <column alignment="center" valignment="top" width="0pt">
28905 <column alignment="center" valignment="top" width="0pt">
28906 <column alignment="center" valignment="top" width="0pt">
28907 <column alignment="center" valignment="top" width="0pt">
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
28927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28930 \begin_layout Plain Layout
28935 \begin_layout Plain Layout
28936 This is a footnote within a table.
28946 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28949 \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" usebox="none">
28978 \begin_layout Plain Layout
28984 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28987 \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" usebox="none">
29016 \begin_layout Plain Layout
29022 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29025 \begin_layout Plain Layout
29044 \begin_layout Standard
29045 \begin_inset VSpace bigskip
29048 The document-wide paragraph settings are ignored within minipages.
29049 That means that there will be no space between paragraphs in minipages
29050 although you set it to e.
29051 \begin_inset space \thinspace{}
29055 \begin_inset space \space{}
29062 in the document settings.
29065 \begin_layout Standard
29066 Minipages can also be used to set a background color for text parts, see
29068 \begin_inset space ~
29072 \begin_inset CommandInset ref
29074 reference "sub:Color-for-Paragraphs"
29081 \begin_layout Standard
29082 \begin_inset Note Greyedout
29085 \begin_layout Plain Layout
29090 You cannot have floats or margin notes inside minipages but minipages can
29091 be used inside tables, floats, and other boxes.
29099 \begin_layout Section
29101 \begin_inset CommandInset label
29103 name "sec:Parboxes"
29111 \begin_layout Plain Layout
29120 \begin_layout Standard
29121 Parboxes are very similar to minipages with the difference that they cannot
29123 The main difference to minipages is that minipages are in contrary to parboxes
29124 no real boxes but LaTeX-environments.
29127 \begin_layout Standard
29129 \begin_inset Box Frameless
29138 height_special "totalheight"
29141 \begin_layout Plain Layout
29142 This a text within a parbox.
29143 This a text within a parbox.
29146 \begin_layout Plain Layout
29147 This footnote won't appear:
29151 \begin_layout Plain Layout
29152 This footnote is inside a parbox and will therefore not appear.
29165 \begin_layout Section
29166 Boxes for Words and Characters
29170 \begin_layout Plain Layout
29171 Boxes ! for Characters
29179 \begin_layout Subsection
29180 Prevent Hyphenation
29181 \begin_inset CommandInset label
29183 name "sec:Prevent-Hyphenation"
29191 \begin_layout Plain Layout
29192 Boxes ! to Prevent Hyphenation
29200 \begin_layout Standard
29201 You can use a special kind of boxes to prevent words or text to be hyphenated.
29202 \begin_inset Newline newline
29205 Here is an example text:
29208 \begin_layout Standard
29209 This line is an example to show how you can prevent the hyphenation of
29210 \begin_inset Quotes eld
29214 \begin_inset Quotes erd
29220 \begin_layout Standard
29221 To prevent the hyphenation of the word
29222 \begin_inset Quotes eld
29226 \begin_inset Quotes erd
29232 \begin_layout Standard
29240 \begin_layout Standard
29241 in TeX-Code before the word.
29242 Behind the word insert a closing brace
29243 \begin_inset Quotes eld
29251 \begin_inset Quotes erd
29257 \begin_layout Standard
29258 This is the result:
29261 \begin_layout Standard
29262 This line is an example to show how you can prevent the hyphenation of
29266 \begin_layout Plain Layout
29276 \begin_inset Quotes eld
29280 \begin_inset Quotes erd
29287 \begin_layout Plain Layout
29297 \begin_layout Standard
29298 You can alternatively set the command
29299 \begin_inset Quotes eld
29309 \begin_inset Quotes grd
29312 as TeX-Code directly before the word:
29315 \begin_layout Standard
29316 This line is an example to show how you can prevent the hyphenation of
29317 \begin_inset Quotes eld
29324 \begin_layout Plain Layout
29334 \begin_inset Quotes erd
29340 \begin_layout Standard
29341 Of course the word now protrudes over the side margin.
29342 To avoid this, add via the menu
29344 Insert\SpecialChar \menuseparator
29346 \begin_inset space ~
29349 Formatting\SpecialChar \menuseparator
29351 \begin_inset space ~
29359 arg "newline-insert newline"
29362 ) a line break before the word:
29365 \begin_layout Standard
29366 This line is an example to show how you can prevent the hyphenation of
29367 \begin_inset Newline newline
29374 \begin_layout Plain Layout
29384 \begin_inset Quotes eld
29388 \begin_inset Quotes erd
29395 \begin_layout Plain Layout
29405 \begin_layout Subsection
29407 \begin_inset CommandInset label
29409 name "sub:Vertical-Alignment"
29417 \begin_layout Plain Layout
29418 Boxes ! for Vertical Alignment
29427 \begin_layout Plain Layout
29436 \begin_layout Standard
29437 With the help of the command
29443 you can align words, characters or other boxes vertically to the surrounding
29451 is used with the following scheme:
29454 \begin_layout Standard
29459 raisebox{lift}[height][depth]{box content}
29462 \begin_layout Standard
29463 The lift can be a positive value to raise the box or a negative value to
29467 \begin_layout Standard
29468 To align for example the word
29469 \begin_inset Quotes eld
29473 \begin_inset Quotes erd
29476 so that the bottom of the
29477 \begin_inset Quotes eld
29481 \begin_inset Quotes erd
29485 \begin_inset Quotes eld
29489 \begin_inset Quotes erd
29492 is at the baseline, insert the command
29495 \begin_layout Standard
29505 \begin_layout Standard
29506 in TeX-Code before the word.
29507 Behind the word insert a closing brace
29508 \begin_inset Quotes eld
29516 \begin_inset Quotes erd
29520 \begin_inset Newline newline
29523 This is the result:
29526 \begin_layout Standard
29527 This is a text line with the word
29531 \begin_layout Plain Layout
29543 \begin_inset Quotes eld
29547 \begin_inset Quotes erd
29554 \begin_layout Plain Layout
29564 \begin_layout Standard
29565 \begin_inset VSpace bigskip
29568 When you raise or lower characters in a line, the line distance will be
29572 \begin_layout Standard
29573 This is a text line with the word
29577 \begin_layout Plain Layout
29589 \begin_inset Quotes eld
29593 \begin_inset Quotes erd
29600 \begin_layout Plain Layout
29608 \begin_inset Newline newline
29611 This is a text line with the word
29615 \begin_layout Plain Layout
29625 \begin_inset Quotes eld
29629 \begin_inset Quotes erd
29636 \begin_layout Plain Layout
29646 \begin_layout Standard
29647 If you want to prevent this for a certain reason, set the box height to
29652 \begin_layout Standard
29662 \begin_layout Standard
29663 This is a text line with the word
29667 \begin_layout Plain Layout
29679 \begin_inset Quotes eld
29683 \begin_inset Quotes erd
29690 \begin_layout Plain Layout
29698 \begin_inset Newline newline
29701 This is a text line with the word
29705 \begin_layout Plain Layout
29709 raisebox{0.5cm}[0pt]{
29715 \begin_inset Quotes eld
29719 \begin_inset Quotes erd
29726 \begin_layout Plain Layout
29736 \begin_layout Section
29738 \begin_inset CommandInset label
29740 name "sec:Colored-Boxes"
29748 \begin_layout Plain Layout
29757 \begin_layout Subsection
29762 \begin_layout Plain Layout
29771 \begin_layout Standard
29772 To color the background of text the text must be put into a so called
29773 \begin_inset Quotes eld
29777 \begin_inset Quotes erd
29781 This requires that the LaTeX-package
29789 \begin_layout Plain Layout
29790 LaTeX-packages ! color
29795 is loaded in the document preamble with the command
29798 \begin_layout Standard
29803 @ifundefined{textcolor}
29804 \begin_inset Newline newline
29811 \begin_layout Plain Layout
29822 usepackage{color}}{}
29825 \begin_layout Standard
29830 will be loaded automatically by LyX when you color text
29834 \begin_layout Plain Layout
29835 To avoid that it is loaded twice the command
29849 \begin_layout Standard
29850 \begin_inset VSpace medskip
29853 Colorboxes are created with the command
29860 This will be used with the following scheme:
29863 \begin_layout Standard
29868 colorbox{color}{box content}
29871 \begin_layout Standard
29872 The box content can also be a box and colorboxes can also be within other
29876 \begin_layout Standard
29877 The following colors are predefined:
29878 \begin_inset Newline newline
29917 \begin_inset Newline newline
29920 You can also define your own color as described in section
29921 \begin_inset space ~
29925 \begin_inset CommandInset ref
29927 reference "sec:Colored-Tables"
29934 \begin_layout Standard
29936 \begin_inset space \thinspace{}
29940 \begin_inset space \space{}
29943 a red background for a word, insert the command
29946 \begin_layout Standard
29954 \begin_layout Standard
29955 before the word in TeX-Code.
29956 Behind the word insert a closing brace
29957 \begin_inset Quotes eld
29965 \begin_inset Quotes erd
29969 \begin_inset Newline newline
29972 This is the result:
29975 \begin_layout Standard
29976 This is a line where the word
29980 \begin_layout Plain Layout
29990 \begin_inset Quotes eld
29994 \begin_inset Quotes erd
30001 \begin_layout Plain Layout
30008 has a red background.
30011 \begin_layout Standard
30012 \begin_inset VSpace bigskip
30015 If you would have the box frame in a different color, you can use the command
30022 with the following scheme:
30025 \begin_layout Standard
30030 fcolorbox{frame color}{box color}{box content}
30033 \begin_layout Standard
30047 The frame thickness and the space between the frame and the box content
30048 can be adjusted with the lengths
30060 , respectively, as described in section
30061 \begin_inset space ~
30065 \begin_inset CommandInset ref
30067 reference "sec:Decoration"
30074 \begin_layout Standard
30075 For the following example the command
30078 \begin_layout Standard
30083 fcolorbox{cyan}{magenta}{
30086 \begin_layout Standard
30090 \begin_layout Standard
30091 Here is an example where the frame line thickness was set to 1
30092 \begin_inset space \thinspace{}
30096 \begin_inset Newline newline
30103 \begin_layout Plain Layout
30118 \begin_layout Plain Layout
30122 fcolorbox{cyan}{magenta}{
30127 This is text within a colored, framed box.
30131 \begin_layout Plain Layout
30141 \begin_layout Standard
30142 \begin_inset VSpace bigskip
30145 Of course you can also have colored text inside a colorbox:
30146 \begin_inset Newline newline
30153 \begin_layout Plain Layout
30157 fcolorbox{cyan}{magenta}{
30164 This is colored text within a colored, framed box.
30170 \begin_layout Plain Layout
30181 \begin_layout Plain Layout
30195 \begin_layout Standard
30198 \begin_inset VSpace medskip
30204 \begin_layout Standard
30205 \begin_inset Note Greyedout
30208 \begin_layout Plain Layout
30213 Text in colorboxes cannot have line breaks.
30214 To color multiple text lines or paragraphs, use a box inside a colorbox
30215 as described in the following.
30223 \begin_layout Subsection
30224 Color for Paragraphs
30225 \begin_inset CommandInset label
30227 name "sub:Color-for-Paragraphs"
30235 \begin_layout Plain Layout
30236 Color ! for Paragraphs
30244 \begin_layout Standard
30245 To set the background color for more than one text line, put the text into
30247 Before the minipage insert the
30256 \begin_layout Standard
30264 \begin_layout Standard
30266 Behind the minipage insert a closing brace
30267 \begin_inset Quotes eld
30275 \begin_inset Quotes erd
30281 \begin_layout Standard
30285 \begin_layout Plain Layout
30289 colorbox{lightgrey}{
30295 \begin_inset Box Frameless
30304 height_special "totalheight"
30307 \begin_layout Plain Layout
30308 This is text with background color.
30309 This is text with background color.
30312 \begin_layout Plain Layout
30313 \begin_inset VSpace defskip
30316 The text can have footnotes
30320 \begin_layout Plain Layout
30321 Another example footnote
30326 and can include tables and figures.
30329 \begin_layout Plain Layout
30331 \begin_inset Tabular
30332 <lyxtabular version="3" rows="3" columns="3">
30334 <column alignment="center" valignment="top" width="0">
30335 <column alignment="center" valignment="top" width="0">
30336 <column alignment="center" valignment="top" width="0">
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" usebox="none">
30350 \begin_layout Plain Layout
30356 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30359 \begin_layout Plain Layout
30367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30370 \begin_layout Plain Layout
30376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30379 \begin_layout Plain Layout
30381 \begin_inset Quotes erd
30389 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30392 \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" usebox="none">
30412 \begin_layout Plain Layout
30418 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30421 \begin_layout Plain Layout
30441 \begin_layout Plain Layout
30451 \begin_layout Section
30452 Rotated and Scaled Boxes
30455 \begin_layout Standard
30456 To use the the commands described in this section, the LaTeX-package
30464 \begin_layout Plain Layout
30465 LaTeX-packages ! graphicx
30470 needs to be loaded in the document preamble with the command
30473 \begin_layout Standard
30478 @ifundefined{rotatebox}
30479 \begin_inset Newline newline
30486 \begin_layout Plain Layout
30497 usepackage{graphicx}}{}
30500 \begin_layout Standard
30501 \begin_inset Note Greyedout
30504 \begin_layout Plain Layout
30509 Some DVI-viewers can't display rotated or scaled material.
30517 \begin_layout Standard
30518 \begin_inset Note Greyedout
30521 \begin_layout Plain Layout
30526 Floats mustn't be inside a rotated or scaled box.
30534 \begin_layout Subsection
30539 \begin_layout Plain Layout
30549 \begin_layout Plain Layout
30559 \begin_layout Plain Layout
30569 \begin_layout Plain Layout
30570 Table Customization ! Rotating
30578 \begin_layout Standard
30579 To rotate material, you can put it into a rotated box.
30580 Such a box is created using the command
30586 in TeX-Code with the following scheme:
30589 \begin_layout Standard
30594 rotatebox[rotation origin]{rotation angle}{box content}
30597 \begin_layout Standard
30598 The rotation origin is specified in the form
30603 The following positions are possible:
30623 (top), and also expedient combinations of the four base positions.
30628 means, that the rotation origin is at the top left corner of the box.
30629 When no rotation origin is specified, the position
30634 The rotation angle is a number that can be negative that specifies the
30636 The rotation direction is counterclockwise.
30639 \begin_layout Standard
30640 In the following example the command
30644 rotatebox[origin=c]{60}{
30646 was inserted as TeX-Code before the text
30647 \begin_inset Quotes eld
30651 \begin_inset Quotes erd
30654 ; after the text the box was closed by a closing brace
30661 \begin_layout Standard
30666 \begin_layout Plain Layout
30670 rotatebox[origin=c]{60}{
30679 \begin_layout Plain Layout
30689 \begin_layout Standard
30690 The box content can also be another box or an inline formula:
30693 \begin_layout Standard
30698 \begin_layout Plain Layout
30702 rotatebox[origin=r]{-60}{
30708 \begin_inset Box Doublebox
30717 height_special "totalheight"
30720 \begin_layout Plain Layout
30730 \begin_layout Plain Layout
30741 \begin_layout Plain Layout
30745 rotatebox[origin=lb]{60}{
30751 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30758 \begin_layout Plain Layout
30768 \begin_layout Standard
30769 or an image or table:
30772 \begin_layout Standard
30777 \begin_layout Plain Layout
30781 rotatebox[origin=lb]{90}{
30787 \begin_inset Graphics
30788 filename clipart/platypus.eps
30798 \begin_layout Plain Layout
30805 with a rotated image
30809 \begin_layout Plain Layout
30813 rotatebox[origin=l]{-90}{
30819 \begin_inset Tabular
30820 <lyxtabular version="3" rows="2" columns="2">
30822 <column alignment="center" valignment="top" width="0">
30823 <column alignment="center" valignment="top" width="0">
30825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30828 \begin_layout Plain Layout
30834 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30837 \begin_layout Plain Layout
30845 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30848 \begin_layout Plain Layout
30854 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30857 \begin_layout Plain Layout
30872 \begin_layout Plain Layout
30882 \begin_layout Subsection
30887 \begin_layout Plain Layout
30897 \begin_layout Plain Layout
30907 \begin_layout Plain Layout
30917 \begin_layout Plain Layout
30918 Table Customization ! Scaling
30926 \begin_layout Standard
30927 To scale material the commands
30939 can be used as TeX-Code.
30942 \begin_layout Standard
30949 is used with the following scheme:
30952 \begin_layout Standard
30957 scalebox{horizontal}[vertical]{box content}
30960 \begin_layout Standard
30961 Horizontal and vertical are the corresponding scaling factors.
30962 If no vertical scaling factor is given, the horizontal factor will also
30963 be used as vertical one.
30966 \begin_layout Standard
30973 creates for example a double size
30977 \begin_layout Plain Layout
30990 \begin_layout Plain Layout
30997 , compared to the document text size.
31000 \begin_layout Standard
31005 scalebox{2}[1]{Hello}
31007 in contrary distorts the
31011 \begin_layout Plain Layout
31024 \begin_layout Plain Layout
31034 \begin_layout Standard
31035 If a the scaling factor is negative, the box content will be mirrored.
31036 Therefore the command
31040 scalebox{-1}[1]{Hello}
31042 can be used to create mirror writing:
31046 \begin_layout Plain Layout
31059 \begin_layout Plain Layout
31069 \begin_layout Standard
31074 scalebox{1}[-1]{Hello}
31080 \begin_layout Plain Layout
31093 \begin_layout Plain Layout
31103 \begin_layout Standard
31108 scalebox{-1}[1]{box content}
31110 there exists the command
31111 \begin_inset Newline newline
31118 reflectbox{box content}
31123 \begin_layout Standard
31124 \begin_inset VSpace bigskip
31133 is used to scale the box to a defined width and height.
31134 The command scheme is:
31137 \begin_layout Standard
31142 resizebox{width}{height}{box content}
31145 \begin_layout Standard
31146 Is one of the two command arguments given as exclamation mark
31150 , the size is set so that the aspect ratio of the box content is kept.
31153 \begin_layout Standard
31158 resizebox{2cm}{1cm}{Hello}
31164 \begin_layout Plain Layout
31168 resizebox{2cm}{1cm}{
31177 \begin_layout Plain Layout
31185 \begin_inset Newline newline
31192 resizebox{2cm}{!}{Hello}
31198 \begin_layout Plain Layout
31211 \begin_layout Plain Layout
31221 \begin_layout Standard
31222 \begin_inset VSpace bigskip
31226 \begin_inset Note Greyedout
31229 \begin_layout Plain Layout
31246 are set to zero, no LaTeX-errors occur when exporting the document but
31247 the exported files can not or only partly be displayed.
31255 \begin_layout Standard
31256 \begin_inset VSpace bigskip
31262 \begin_layout Standard
31263 The boxes can be combined in any order.
31265 \begin_inset space \thinspace{}
31269 \begin_inset space \space{}
31273 \begin_inset Newline newline
31280 rotatebox[origin=c]{-45}{
31284 reflectbox{Hello}}}
31285 \begin_inset Newline newline
31293 \begin_layout Standard
31298 \begin_layout Plain Layout
31302 rotatebox[origin=c]{-45}{
31315 \begin_layout Plain Layout
31325 \begin_layout Standard
31327 Images, tables, and inline formulas are allowed as box content:
31330 \begin_layout Standard
31335 \begin_layout Plain Layout
31339 rotatebox[origin=c]{-30}{
31349 \begin_inset Graphics
31350 filename clipart/platypus.eps
31360 \begin_layout Plain Layout
31371 \begin_layout Plain Layout
31375 rotatebox[origin=c]{-45}{
31385 \begin_inset Tabular
31386 <lyxtabular version="3" rows="2" columns="2">
31388 <column alignment="center" valignment="top" width="0">
31389 <column alignment="center" valignment="top" width="0">
31391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31394 \begin_layout Plain Layout
31400 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31403 \begin_layout Plain Layout
31411 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31414 \begin_layout Plain Layout
31420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31423 \begin_layout Plain Layout
31438 \begin_layout Plain Layout
31449 \begin_layout Plain Layout
31453 rotatebox[origin=c]{-45}{
31463 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31470 \begin_layout Plain Layout
31480 \begin_layout Standard
31481 When the global formula style
31485 is used in the document
31489 \begin_layout Plain Layout
31491 \begin_inset Quotes eld
31495 \begin_inset Quotes erd
31498 is added to the document class options.
31503 , also display formulas can be scaled.
31506 \begin_layout Chapter
31507 External Document Parts
31511 \begin_layout Plain Layout
31512 External Document Parts
31520 \begin_layout Standard
31523 Insert\SpecialChar \menuseparator
31526 you can insert external material to your document.
31530 \begin_layout Description
31532 \begin_inset space ~
31535 Document Another LyX document; its content is directly inserted to your
31539 \begin_layout Description
31541 \begin_inset space ~
31544 Text A text document; every of its text lines is inserted to your document
31548 \begin_layout Description
31550 \begin_inset space ~
31554 \begin_inset space ~
31558 \begin_inset space ~
31561 Lines A text document; its text lines are inserted as they are.
31562 Empty text lines creates a new paragraph in your document.
31565 \begin_layout Description
31567 \begin_inset space ~
31570 Material Files in various formats.
31573 \begin_layout Description
31575 \begin_inset space ~
31578 Document LyX or LaTeX-documents.
31581 \begin_layout Section
31586 \begin_layout Plain Layout
31587 External Document Parts ! External Material
31595 \begin_layout Standard
31596 The external material feature allows you to insert files to your document
31597 without converting them previously to a format that can be read by the
31598 document output format because LyX takes care of needed conversions.
31599 This is similar to images that can be inserted in various image formats
31601 When you have enabled Instant Preview in LyX's preferences under
31604 \begin_inset space ~
31608 \begin_inset space ~
31611 feel\SpecialChar \menuseparator
31614 , the external material types Dia and Xfig is directly shown in LyX.
31617 \begin_layout Standard
31618 External material can be inserted via the
31622 dialog that is accessible with the menu
31624 Insert\SpecialChar \menuseparator
31625 File\SpecialChar \menuseparator
31627 \begin_inset space ~
31633 Currently the following file types (
31640 \begin_layout Description
31641 ChessDiagram This template supports chess position diagrams made with the
31645 \begin_inset CommandInset href
31648 target "http://en.wikipedia.org/wiki/XBoard"
31657 \begin_layout Description
31658 Date This inserts the date in the form
31663 This is a date inserted as external material:
31664 \begin_inset External
31671 \begin_inset space ~
31675 \begin_inset Note Note
31678 \begin_layout Plain Layout
31679 Remove the protected space when bug 4398 is fixed!
31685 \begin_inset Newline newline
31688 The date is not shown within LyX, only in the output.
31689 There are two other methods of inserting a date: Via menu
31691 Insert\SpecialChar \menuseparator
31694 and with the LaTeX command
31701 The different methods are compared in Table
31702 \begin_inset space ~
31706 \begin_inset CommandInset ref
31708 reference "tab:Comparison-of-the"
31715 \begin_layout Description
31716 Dia This template supports diagrams created with the program
31719 \begin_inset CommandInset href
31722 target "http://en.wikipedia.org/wiki/Dia_(software)"
31731 \begin_layout Description
31732 LilyPond This template is used for music notation typeset with the program
31733 \begin_inset Newline linebreak
31739 \begin_inset CommandInset href
31742 target "http://en.wikipedia.org/wiki/LilyPond"
31751 \begin_layout Description
31752 PDFPages With this template you can insert PDF documents to your document.
31753 To insert certain or all pages of a PDF, use the
31763 LaTeX and LyX options
31765 tab according to the template description in the dialog.
31770 option is given, only the first page of the PDF will be inserted.
31773 \begin_layout Description
31774 RasterImage This can be used for bitmap images.
31775 Nearly all popular image formats are supported.
31776 The image can be treated in the
31780 dialog like the images that are usually included via the
31784 dialog as described in section
31785 \begin_inset space ~
31789 \begin_inset CommandInset ref
31791 reference "sec:Graphics-Dialog"
31796 The difference is that only raster images are allowed, that means that
31797 PDF and EPS-images are not supported.
31800 \begin_layout Description
31801 XFig This template supports images created with the program
31804 \begin_inset CommandInset href
31807 target "http://en.wikipedia.org/wiki/Xfig"
31816 \begin_layout Standard
31817 \begin_inset Float table
31823 \begin_layout Plain Layout
31824 \begin_inset Caption
31826 \begin_layout Plain Layout
31827 \begin_inset CommandInset label
31829 name "tab:Comparison-of-the"
31833 Comparison of the date input methods.
31841 \begin_layout Plain Layout
31843 \begin_inset Tabular
31844 <lyxtabular version="3" rows="4" columns="4">
31846 <column alignment="center" valignment="top" width="0">
31847 <column alignment="center" valignment="top" width="0">
31848 <column alignment="center" valignment="top" width="0">
31849 <column alignment="center" valignment="top" width="0">
31851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31854 \begin_layout Plain Layout
31860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31863 \begin_layout Plain Layout
31866 External Material\SpecialChar \menuseparator
31872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31875 \begin_layout Plain Layout
31878 Insert\SpecialChar \menuseparator
31884 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31887 \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" usebox="none">
31920 \begin_layout Plain Layout
31926 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31929 \begin_layout Plain Layout
31930 as TeX-Code inset box
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" usebox="none">
31958 \begin_layout Plain Layout
31964 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31967 \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" usebox="none">
31996 \begin_layout Plain Layout
32002 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32005 \begin_layout Plain Layout
32024 \begin_layout Standard
32025 When you use the option
32037 dialog, only the path to the inserted file is shown in the output.
32038 \begin_inset Newline newline
32041 External material is displayed in LyX either as box like this:
32042 \begin_inset Graphics
32043 filename clipart/ExternalMaterialQt4.png
32045 scaleBeforeRotation
32049 or as image, depending on the option
32055 LaTeX and LyX options
32060 \begin_layout Standard
32067 manual explains how you can define your own templates.
32070 \begin_layout Section
32072 \begin_inset CommandInset label
32074 name "sec:Child-Documents"
32082 \begin_layout Plain Layout
32083 External Document Parts ! Child Documents
32092 \begin_layout Plain Layout
32101 \begin_layout Standard
32102 Child documents are used when you have a long document consisting of several
32103 larger parts or sections.
32104 For maintenance it is often useful and sometimes even required to split
32105 the document in several files that can be revised separately.
32106 The different documents are then the so called child documents and a master
32107 document connects them to print the full document or parts of it.
32108 A child documents inherits contents of its master, for example the LaTeX
32109 preamble, the bibliography, and labels for cross-references.
32112 \begin_layout Standard
32113 To be able to work on child documents without the need to open its master,
32114 specify in the child document the master in the menu
32116 Document\SpecialChar \menuseparator
32117 Settings\SpecialChar \menuseparator
32119 \begin_inset space ~
32125 This master document will then be used in the background by LyX when you
32126 edit the child document.
32129 \begin_layout Standard
32130 Included documents are displayed in LyX as a box like this:
32131 \begin_inset Graphics
32132 filename clipart/ChildDocumentQt4.png
32134 scaleBeforeRotation
32138 To include child documents to a master document use the menu
32140 Insert\SpecialChar \menuseparator
32141 File\SpecialChar \menuseparator
32143 \begin_inset space ~
32149 A dialog pops up where you can choose between four include methods:
32152 \begin_layout Description
32153 Include You can include LyX and LaTeX-documents.
32162 dialog, the included documents will be opened in LyX in a new file tab
32163 so that you can modify it.
32164 \begin_inset Newline newline
32170 \begin_layout Standard
32171 Here is a child document inserted using
32176 \begin_inset CommandInset include
32177 LatexCommand include
32178 filename "DummyDocument1.lyx"
32185 \begin_layout Standard
32186 The section numbering includes the sections of the included files in the
32187 order they are inserted in the master document.
32188 The included example document has for example a subsection that is numbered
32189 as subsection of this section.
32190 Labels of included documents can be referenced: Subsection
32191 \begin_inset space ~
32195 \begin_inset CommandInset ref
32197 reference "sub:External-Subsection-1"
32204 \begin_layout Standard
32205 The preamble of the child document is ignored, only the preamble of the
32206 master document is used.
32207 Branches in child documents will be ignored by the master document when
32208 the master document does not have a branch with the same name.
32209 Included documents are inserted starting on a new page and end with a page
32213 \begin_layout Standard
32214 With the LaTeX-command
32220 you can specify which included child documents are processed when the output
32222 This is useful when you are perhaps only working on a certain chapter of
32223 your large document as this saves compiling time.
32230 is inserted to the master document preamble.
32231 It takes a comma-separated list of the filenames as argument, e.
32232 \begin_inset space \thinspace{}
32238 \begin_layout Standard
32243 includeonly{chapter1,chapter5}
32246 \begin_layout Standard
32247 will only process the included files named
32248 \begin_inset Quotes eld
32252 \begin_inset Quotes erd
32256 \begin_inset Quotes eld
32260 \begin_inset Quotes erd
32264 \begin_inset Quotes eld
32268 \begin_inset Quotes erd
32274 \begin_layout Standard
32275 \begin_inset Note Greyedout
32278 \begin_layout Plain Layout
32283 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
32284 w the document in case that the child document uses another document class
32285 than the master document as this will lead to unexpected outputs.
32293 \begin_layout Description
32294 Input This method is very similar to the Include method.
32295 The differences are:
32299 \begin_layout Itemize
32300 Input files don't start with a new page and don't end with a page break.
32303 \begin_layout Itemize
32304 Input files can be previewed in LyX when
32307 \begin_inset space ~
32312 is enabled in LyX's preferences under
32315 \begin_inset space ~
32319 \begin_inset space ~
32322 feel\SpecialChar \menuseparator
32328 \begin_layout Itemize
32339 \begin_layout Standard
32340 Here is a child document inserted using
32345 \begin_inset CommandInset include
32347 filename "DummyDocument2.lyx"
32354 \begin_layout Description
32355 Verbatim With this method every text file can be included.
32356 The file is shown in the output with its source code, no command used in
32357 the text is invoked.
32358 You can use the option
32360 Mark spaces in output
32362 that displays the character
32363 \begin_inset Quotes eld
32370 \begin_layout Plain Layout
32380 \begin_inset Quotes erd
32383 for every space character in the source code.
32384 The difference to the method via the menu
32386 Insert\SpecialChar \menuseparator
32387 File\SpecialChar \menuseparator
32389 \begin_inset space ~
32394 is that the document content is not shown in LyX.
32397 \begin_layout Standard
32398 Here is a child document inserted as Verbatim:
32399 \begin_inset CommandInset include
32400 LatexCommand verbatiminput
32401 filename "DummyTextDocument.txt"
32406 \begin_inset VSpace bigskip
32409 Here is a child document inserted as Verbatim using the
32411 Mark spaces in output
32414 \begin_inset CommandInset include
32415 LatexCommand verbatiminput*
32416 filename "DummyTextDocument.txt"
32423 \begin_layout Standard
32424 \begin_inset VSpace bigskip
32430 \begin_layout Standard
32431 \begin_inset Note Greyedout
32434 \begin_layout Plain Layout
32439 As you can see in the examples above, the text of the documents included
32444 is not broken at the end of the document lines.
32452 \begin_layout Description
32453 Listings This type is described in chapter
32454 \begin_inset space ~
32458 \begin_inset CommandInset ref
32460 reference "cha:Program-Code-Listings"
32467 \begin_layout Standard
32468 \begin_inset Note Greyedout
32471 \begin_layout Plain Layout
32476 Including the same document twice in a document using different methods
32477 could cause LaTeX-problems.
32485 \begin_layout Chapter
32486 Program Code Listings
32487 \begin_inset CommandInset label
32489 name "cha:Program-Code-Listings"
32497 \begin_layout Plain Layout
32507 \begin_layout Plain Layout
32517 \begin_layout Plain Layout
32526 \begin_layout Standard
32527 To include and typeset program code you can use the
32531 inset that can be inserted via the menu
32533 Insert\SpecialChar \menuseparator
32545 \begin_layout Plain Layout
32546 LaTeX-packages ! listings
32551 provides a powerful and flexible way to insert program source code to your
32555 \begin_layout Standard
32556 Right-clicking on a listings inset opens the context menu containing where
32557 you can set the listings format.
32560 \begin_layout Standard
32561 By default, a listing starts a new paragraph in the output.
32562 The placement option
32565 \begin_inset space ~
32570 prints the listing inline like this:
32571 \begin_inset listings
32572 lstparams "language={C++}"
32576 \begin_layout Plain Layout
32584 \begin_inset Newline newline
32591 creates a listings float where you can specify the placement options
32592 \begin_inset Quotes eld
32600 \begin_inset Quotes erd
32604 \begin_inset Quotes eld
32612 \begin_inset Quotes erd
32616 \begin_inset Quotes eld
32624 \begin_inset Quotes erd
32628 \begin_inset Quotes eld
32636 \begin_inset Quotes erd
32639 corresponding to the float placement options described in section
32640 \begin_inset space ~
32644 \begin_inset CommandInset ref
32646 reference "sec:Float-Placement"
32651 The placement options can be mixed and are inserted without any separation,
32653 \begin_inset space \thinspace{}
32657 \begin_inset space \space{}
32661 \begin_inset Quotes eld
32669 \begin_inset Quotes erd
32674 \begin_inset Quotes eld
32678 \begin_inset Quotes erd
32681 has sometimes no effect, but you don't need to use the
32685 option in this case as also non-float listings can have captions and be
32689 \begin_layout Standard
32690 You can add captions to listings with the menu
32692 Insert\SpecialChar \menuseparator
32696 Listings can be referenced like floats: Listing
32697 \begin_inset space ~
32701 \begin_inset CommandInset ref
32703 reference "lst:Example-Listing"
32710 \begin_layout Standard
32711 \begin_inset listings
32712 lstparams "language=Python"
32716 \begin_layout Plain Layout
32718 \begin_inset Caption
32720 \begin_layout Plain Layout
32721 \begin_inset CommandInset label
32723 name "lst:Example-Listing"
32727 Example Listing float
32732 # Example listing float
32735 \begin_layout Plain Layout
32740 \begin_layout Plain Layout
32742 'this is a python function'
32745 \begin_layout Plain Layout
32755 \begin_layout Standard
32756 When you have set a programming language in the listings dialog, the keywords
32757 of this language will be recognized and specially typeset in the output.
32758 In the example listings the Python keyword
32759 \begin_inset Quotes eld
32763 \begin_inset Quotes erd
32766 is recognized and printed bold in the output.
32769 \begin_layout Standard
32770 \begin_inset Note Greyedout
32773 \begin_layout Plain Layout
32778 If you don't get bold keywords when using typewriter fonts, your
32782 font probably doesn't provide a bold shape.
32783 In this case select a different one in the menu
32785 Document\SpecialChar \menuseparator
32786 Settings\SpecialChar \menuseparator
32798 provide bold shapes.)
32806 \begin_layout Standard
32810 \begin_inset space ~
32815 of the listings dialog you can specify the line numbering style.
32816 You can insert a number to specify which lines are numbered to the field
32823 \begin_inset space \thinspace{}
32827 \begin_inset space \space{}
32831 \begin_inset Quotes eld
32835 \begin_inset Quotes erd
32838 , only every 3rd line will be numbered.
32841 \begin_layout Standard
32842 You can furthermore specify a range of lines, only these will then appear
32846 Extended character table
32848 should be used when you use national characters like the German umlauts
32850 \begin_inset Newline newline
32853 Here is an example listing with left line numbering, step
32854 \begin_inset Quotes eld
32858 \begin_inset Quotes erd
32862 \begin_inset Quotes eld
32866 \begin_inset Quotes erd
32870 \begin_inset Quotes eld
32873 Extended character table
32874 \begin_inset Quotes erd
32878 \begin_inset Quotes eld
32882 \begin_inset space ~
32886 \begin_inset space ~
32890 \begin_inset Quotes erd
32894 \begin_inset space \thinspace{}
32898 \begin_inset space \thinspace{}
32904 \begin_layout Standard
32905 \begin_inset listings
32906 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
32910 \begin_layout Plain Layout
32915 \begin_layout Plain Layout
32917 'this is a python function'
32920 \begin_layout Plain Layout
32925 \begin_layout Plain Layout
32930 \begin_layout Plain Layout
32932 'This is a German word: Tschüß'
32935 \begin_layout Plain Layout
32940 \begin_layout Plain Layout
32945 \begin_layout Plain Layout
32947 'this is a python function'
32950 \begin_layout Plain Layout
32960 \begin_layout Standard
32961 When you have tabulators in your listing, you can specify the number of
32962 characters that are spanned by a tabulator in the field
32965 \begin_inset space ~
32973 \begin_layout Standard
32974 \begin_inset Note Greyedout
32977 \begin_layout Plain Layout
32982 Due to a bug in the
32986 package the line numbering is shifted by a line by every previous listing.
32987 That's the reason why the lines 2 and 5 are numbered in the above listing
32988 and not the lines 3 and 6.
32996 \begin_layout Standard
32997 \begin_inset VSpace bigskip
33003 \begin_layout Standard
33004 It is also possible to print lines from a file as listing.
33005 To do this, use the menu
33007 Insert\SpecialChar \menuseparator
33008 File\SpecialChar \menuseparator
33011 and choose the type
33019 \begin_layout Plain Layout
33020 The other child document types are described in section
33021 \begin_inset space ~
33025 \begin_inset CommandInset ref
33027 reference "sec:Child-Documents"
33036 In the child document dialog you can specify the listing parameters in
33038 To show a list of all available parameters, type in a question mark
33039 \begin_inset Quotes eld
33043 \begin_inset Quotes erd
33049 \begin_layout Standard
33050 To reference child document listings, write a label text into the corresponding
33051 field of the child document dialog.
33052 The label can then be referenced using the menu
33054 Insert\SpecialChar \menuseparator
33060 \begin_layout Standard
33062 \begin_inset space ~
33066 \begin_inset CommandInset ref
33068 reference "lst:file-listing"
33072 is an example for a listing of a file; there the lines 10
33073 \begin_inset space \thinspace{}
33077 \begin_inset space \thinspace{}
33080 15 of this LyX file are listed.
33083 \begin_layout Standard
33084 \begin_inset CommandInset include
33085 LatexCommand lstinputlisting
33086 filename "EmbeddedObjects.lyx"
33087 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
33094 \begin_layout Standard
33095 \begin_inset VSpace bigskip
33101 \begin_layout Standard
33102 Global listings settings can be set in the
33104 Document\SpecialChar \menuseparator
33105 Settings\SpecialChar \menuseparator
33109 To get there a list of available options, type in a question mark
33110 \begin_inset Quotes eld
33114 \begin_inset Quotes erd
33120 \begin_inset space ~
33128 \begin_layout Standard
33129 For more information about the
33133 package, we refer to its documentation
33134 \begin_inset CommandInset citation
33143 \begin_layout Standard
33144 \begin_inset Newpage newpage
33150 \begin_layout Chapter
33152 Units available in LyX
33156 \begin_layout Plain Layout
33163 \begin_inset CommandInset label
33165 name "cha:Units-available-in"
33172 \begin_layout Standard
33173 To understand the units described in this documentation, Table
33174 \begin_inset space ~
33178 \begin_inset CommandInset ref
33180 reference "tab:Units"
33184 explains all units available in LyX.
33187 \begin_layout Standard
33188 \begin_inset Float table
33194 \begin_layout Plain Layout
33195 \begin_inset Caption
33197 \begin_layout Plain Layout
33198 \begin_inset CommandInset label
33212 \begin_layout Plain Layout
33213 \begin_inset VSpace medskip
33219 \begin_layout Plain Layout
33221 \begin_inset Tabular
33222 <lyxtabular version="3" rows="20" columns="2">
33224 <column alignment="center" valignment="top" width="0">
33225 <column alignment="center" valignment="top" width="0">
33227 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33230 \begin_layout Plain Layout
33236 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33239 \begin_layout Plain Layout
33247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33250 \begin_layout Plain Layout
33256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33259 \begin_layout Plain Layout
33267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33270 \begin_layout Plain Layout
33276 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33279 \begin_layout Plain Layout
33287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33290 \begin_layout Plain Layout
33296 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33299 \begin_layout Plain Layout
33307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33310 \begin_layout Plain Layout
33316 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33319 \begin_layout Plain Layout
33321 \begin_inset space \thinspace{}
33325 \begin_inset space \thinspace{}
33335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33338 \begin_layout Plain Layout
33344 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33347 \begin_layout Plain Layout
33349 \begin_inset space \thinspace{}
33353 \begin_inset space \thinspace{}
33363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33366 \begin_layout Plain Layout
33372 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33375 \begin_layout Plain Layout
33376 scaled point (65536
33377 \begin_inset space \thinspace{}
33381 \begin_inset space \thinspace{}
33391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33394 \begin_layout Plain Layout
33400 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33403 \begin_layout Plain Layout
33405 \begin_inset space \thinspace{}
33409 \begin_inset space \thinspace{}
33419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33422 \begin_layout Plain Layout
33428 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33431 \begin_layout Plain Layout
33433 \begin_inset space \thinspace{}
33437 \begin_inset Formula $\approx$
33441 \begin_inset space \thinspace{}
33451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33454 \begin_layout Plain Layout
33460 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33463 \begin_layout Plain Layout
33465 \begin_inset space \thinspace{}
33469 \begin_inset space \thinspace{}
33479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33482 \begin_layout Plain Layout
33488 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33491 \begin_layout Plain Layout
33492 % of original image width
33499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33502 \begin_layout Plain Layout
33508 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33511 \begin_layout Plain Layout
33519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33522 \begin_layout Plain Layout
33528 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33531 \begin_layout Plain Layout
33539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33542 \begin_layout Plain Layout
33548 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33551 \begin_layout Plain Layout
33559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33562 \begin_layout Plain Layout
33568 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33571 \begin_layout Plain Layout
33579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33582 \begin_layout Plain Layout
33588 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33591 \begin_layout Plain Layout
33599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33602 \begin_layout Plain Layout
33608 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33611 \begin_layout Plain Layout
33619 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33622 \begin_layout Plain Layout
33628 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33631 \begin_layout Plain Layout
33643 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33646 \begin_layout Plain Layout
33652 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33655 \begin_layout Plain Layout
33667 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33670 \begin_layout Plain Layout
33676 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33679 \begin_layout Plain Layout
33681 \begin_inset space \thinspace{}
33685 \begin_inset space \thinspace{}
33706 \begin_layout Chapter
33707 Output File Formats with Graphics
33708 \begin_inset CommandInset label
33710 name "cha:Output-File-Formats"
33717 \begin_layout Section
33722 \begin_layout Plain Layout
33732 \begin_layout Plain Layout
33737 \begin_layout Plain Layout
33748 \begin_layout Plain Layout
33763 \begin_layout Standard
33764 This file type has the extension
33765 \begin_inset Quotes eld
33773 \begin_inset Quotes erd
33778 \begin_inset Quotes eld
33782 \begin_inset Quotes erd
33785 (DVI), because it is completely portable; you can move them from one machine
33786 to another without needing to do any sort of conversion.
33787 At the time when this file-format was developed, this was no matter of
33789 DVIs are used for quick previews and as pre-stage for other output formats,
33793 \begin_layout Standard
33794 \begin_inset Note Greyedout
33797 \begin_layout Plain Layout
33802 DVI-files doesn't contain images, they will only be a linked.
33807 So don't forget this, if you move your
33811 file to another computer.
33812 This property can also slow down your computer when you view the DVI.
33813 Because the DVI-viewer has to convert the image in the background to make
33814 it visible when you scroll in the DVI.
33815 So we recommend to use PDF for files with many images.
33818 \begin_layout Standard
33819 You can export your document to DVI by using the menu
33821 File\SpecialChar \menuseparator
33822 Export\SpecialChar \menuseparator
33826 You can view your document as DVI via the
33830 menu or by using the toolbar button
33831 \begin_inset Graphics
33832 filename ../images/buffer-view_dvi.png
33834 scaleBeforeRotation
33841 \begin_layout Section
33843 \begin_inset CommandInset label
33845 name "sec:PostScript"
33853 \begin_layout Plain Layout
33854 File Formats ! PostScript
33863 \begin_layout Plain Layout
33868 \begin_layout Plain Layout
33879 \begin_layout Plain Layout
33894 \begin_layout Standard
33895 This file type has the extension
33896 \begin_inset Quotes eld
33904 \begin_inset Quotes erd
33908 PostScript was developed by the company
33912 as printer language.
33913 The file contains therefore commands that the printer uses to print the
33915 PostScript can be seen as
33916 \begin_inset Quotes eld
33919 programming language
33920 \begin_inset Quotes erd
33923 ; you can calculate with it and draw diagrams and images
33927 \begin_layout Plain Layout
33928 If you are interested to learn more about this, have a look at the LaTeX-package
33934 \begin_inset CommandInset citation
33946 Due to this ability, the files are often bigger than PDFs.
33949 \begin_layout Standard
33950 PostScript can only contain images in the format
33951 \begin_inset Quotes eld
33954 Encapsulated PostScript
33955 \begin_inset Quotes erd
33958 (EPS, file extension
33959 \begin_inset Quotes eld
33967 \begin_inset Quotes erd
33971 As LyX allows you to use any known image format in your document, it has
33972 to convert images in the background to EPS.
33973 If you have e.g 50 images in your document, LyX has to do 50 conversions
33974 whenever you view or export your document.
33975 This will slow down your work flow with LyX drastically.
33976 So if you plan to use PostScript, you can insert your images directly as
33977 EPS to avoid this problem.
33980 \begin_layout Standard
33981 You can export your document to PostScript using the menu
33983 File\SpecialChar \menuseparator
33984 Export\SpecialChar \menuseparator
33988 You can view your document as PostScript via the
33992 menu or by using the toolbar button
33993 \begin_inset Graphics
33994 filename ../images/buffer-view_ps.png
33996 scaleBeforeRotation
34003 \begin_layout Section
34008 \begin_layout Plain Layout
34018 \begin_layout Plain Layout
34027 \begin_layout Standard
34028 This file type has the extension
34029 \begin_inset Quotes eld
34037 \begin_inset Quotes erd
34042 \begin_inset Quotes eld
34045 Portable Document Format
34046 \begin_inset Quotes erd
34049 (PDF) is developed by
34053 as derivative from PostScript.
34054 It is more compressed and it uses much less commands than PostScript.
34056 \begin_inset Quotes eld
34060 \begin_inset Quotes erd
34063 implies, it can be processed at any computer system and the printed output
34064 looks exactly the same.
34067 \begin_layout Standard
34068 PDF can contain images in its own PDF format, in the format
34069 \begin_inset Quotes eld
34072 Joint Photographic Experts Group
34073 \begin_inset Quotes erd
34076 (JPG, file extension
34077 \begin_inset Quotes eld
34085 \begin_inset Quotes erd
34089 \begin_inset Quotes eld
34097 \begin_inset Quotes erd
34100 ), and in the format
34101 \begin_inset Quotes eld
34104 Portable Network Graphics
34105 \begin_inset Quotes erd
34108 (PNG, file extension
34109 \begin_inset Quotes eld
34117 \begin_inset Quotes erd
34121 Nevertheless you can use any other image format, because LyX converts them
34122 in the background to one of these formats.
34123 But as described in the section about PostScript, the image conversion
34124 will slow down your work flow.
34125 So it is recommended to use images in one of the three mentioned formats.
34128 \begin_layout Standard
34129 You can export your document to PDF via the menu
34131 File\SpecialChar \menuseparator
34134 in three different ways:
34137 \begin_layout Description
34139 \begin_inset space ~
34142 (ps2pdf) This uses the program
34146 that creates a PDF from a PostScript-version of your file.
34147 The PostScript-version is produced by the program
34151 which uses a DVI-version as intermediate step.
34152 So this export variant consist of three conversions.
34155 \begin_layout Description
34157 \begin_inset space ~
34160 (dvipdfm) This uses the program
34164 that converts your file in the background to DVI and in a second step to
34168 \begin_layout Description
34170 \begin_inset space ~
34173 (pdflatex) This uses the program
34177 that converts your file directly to PDF.
34180 \begin_layout Standard
34181 It is recommended to use
34184 \begin_inset space ~
34193 supports all features of actual PDF-versions, is quick and works stable
34199 is not under development and therefore a bit outdated.
34202 \begin_layout Standard
34203 You can view your document as PDF via the
34207 menu or by using the toolbar button
34208 \begin_inset Graphics
34209 filename ../images/buffer-view_pdf2.png
34211 scaleBeforeRotation
34222 \begin_inset space ~
34230 \begin_layout Chapter
34231 Explanation of Equation
34232 \begin_inset space ~
34236 \begin_inset CommandInset ref
34243 \begin_inset CommandInset label
34245 name "cha:Explanation-of-Equation"
34252 \begin_layout Standard
34258 \begin_inset Formula $W_{\mathrm{tot\, n}}$
34261 can be calculated to
34264 \begin_layout Standard
34265 \begin_inset Formula \begin{equation}
34266 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}
34273 \begin_layout Standard
34275 \begin_inset Formula $W_{g\, n}$
34278 is the given width of all cells.
34285 is the LaTeX-length between the cell text and the cell border, its default
34287 \begin_inset space \thinspace{}
34297 is the thickness of the cell border line, the default is 0.4
34298 \begin_inset space \thinspace{}
34304 \begin_layout Standard
34306 \begin_inset space ~
34310 \begin_inset CommandInset ref
34312 reference "eq:Wtot_n"
34316 , the total width of a multicolumn
34317 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
34323 \begin_layout Standard
34324 \begin_inset Formula \begin{equation}
34325 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
34332 \begin_layout Standard
34333 By setting equation
34334 \begin_inset space ~
34338 \begin_inset CommandInset ref
34340 reference "eq:Wtot_n"
34345 \begin_inset CommandInset ref
34347 reference "eq:Wtot_mult"
34351 equal we can calculate the needed given width
34352 \begin_inset Formula $W_{g\, n}$
34359 columns are spanned, so that each column has a total width of
34360 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
34366 \begin_layout Standard
34367 \begin_inset Formula \begin{equation}
34368 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
34375 \begin_layout Bibliography
34376 \begin_inset CommandInset bibitem
34377 LatexCommand bibitem
34378 key "latexcompanion"
34382 Frank Mittelbach and Michel Goossens:
34384 The LaTeX Companion Second Edition.
34387 Addison-Wesley, 2004
34390 \begin_layout Bibliography
34391 \begin_inset CommandInset bibitem
34392 LatexCommand bibitem
34397 Helmut Kopka and Patrick W.
34400 A Guide to LaTeX Fourth Edition.
34403 Addison-Wesley, 2003
34406 \begin_layout Bibliography
34407 \begin_inset CommandInset bibitem
34408 LatexCommand bibitem
34415 LaTeX: A Document Preparation System.
34418 Addison-Wesley, second edition, 1994
34421 \begin_layout Bibliography
34422 \begin_inset CommandInset bibitem
34423 LatexCommand bibitem
34428 Documentation of the LaTeX-package
34431 \begin_inset CommandInset href
34434 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
34444 \begin_layout Plain Layout
34445 LaTeX-packages ! booktabs
34453 \begin_layout Bibliography
34454 \begin_inset CommandInset bibitem
34455 LatexCommand bibitem
34460 Documentation of the LaTeX-package
34463 \begin_inset CommandInset href
34466 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
34476 \begin_layout Plain Layout
34477 LaTeX-packages ! caption
34485 \begin_layout Bibliography
34486 \begin_inset CommandInset bibitem
34487 LatexCommand bibitem
34492 Documentation of the LaTeX-package
34495 \begin_inset CommandInset href
34498 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
34508 \begin_layout Plain Layout
34509 LaTeX-packages ! endfloat
34517 \begin_layout Bibliography
34518 \begin_inset CommandInset bibitem
34519 LatexCommand bibitem
34524 Documentation of the LaTeX-package
34527 \begin_inset CommandInset href
34530 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
34540 \begin_layout Plain Layout
34541 LaTeX-packages ! wrapfig
34545 \begin_layout Plain Layout
34562 \begin_layout Bibliography
34563 \begin_inset CommandInset bibitem
34564 LatexCommand bibitem
34569 Documentation of the LaTeX-package
34572 \begin_inset CommandInset href
34575 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
34585 \begin_layout Plain Layout
34586 LaTeX-packages ! footmisc
34594 \begin_layout Bibliography
34595 \begin_inset CommandInset bibitem
34596 LatexCommand bibitem
34601 Documentation of the LaTeX-package
34604 \begin_inset CommandInset href
34607 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
34617 \begin_layout Plain Layout
34618 LaTeX-packages ! hyperref
34626 \begin_layout Bibliography
34627 \begin_inset CommandInset bibitem
34628 LatexCommand bibitem
34633 Documentation of the LaTeX-package
34636 \begin_inset CommandInset href
34639 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
34649 \begin_layout Plain Layout
34650 LaTeX-packages ! hyperref
34658 \begin_layout Bibliography
34659 \begin_inset CommandInset bibitem
34660 LatexCommand bibitem
34665 Documentation of the LaTeX-package
34668 \begin_inset CommandInset href
34671 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
34681 \begin_layout Plain Layout
34682 LaTeX-packages ! KOMA-script
34690 \begin_layout Bibliography
34691 \begin_inset CommandInset bibitem
34692 LatexCommand bibitem
34697 Documentation of the LaTeX-package
34700 \begin_inset CommandInset href
34703 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
34713 \begin_layout Plain Layout
34714 LaTeX-packages ! listings
34722 \begin_layout Bibliography
34723 \begin_inset CommandInset bibitem
34724 LatexCommand bibitem
34729 Documentation of the LaTeX-package
34732 \begin_inset CommandInset href
34735 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
34745 \begin_layout Plain Layout
34746 LaTeX-packages ! marginnote
34754 \begin_layout Bibliography
34755 \begin_inset CommandInset bibitem
34756 LatexCommand bibitem
34761 Web page of the LaTeX-package
34764 \begin_inset CommandInset href
34767 target "http://tug.org/PSTricks/"
34777 \begin_layout Plain Layout
34778 LaTeX-packages ! PSTricks
34786 \begin_layout Bibliography
34787 \begin_inset CommandInset bibitem
34788 LatexCommand bibitem
34793 Documentation of the LaTeX-package
34796 \begin_inset CommandInset href
34799 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
34809 \begin_layout Plain Layout
34810 LaTeX-packages ! sidecap
34818 \begin_layout Bibliography
34819 \begin_inset CommandInset bibitem
34820 LatexCommand bibitem
34826 \begin_inset CommandInset href
34829 target "http://wiki.lyx.org/LyX/NewInLyX16"
34833 about new features in
34840 \begin_layout Standard
34841 \begin_inset CommandInset index_print
34842 LatexCommand printindex
34849 \begin_layout Standard
34850 \begin_inset FloatList figure
34857 \begin_layout Standard
34858 \begin_inset FloatList table
34865 \begin_layout Standard
34866 \begin_inset FloatList algorithm