1 #LyX 1.6.6svn created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
38 \newcommand{\TabBesBeg}{%
40 \let\MyEndtable\endtable
41 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
43 \newcommand{\TabBesEnd}{%
45 \let\endtable\MyEndtable}
47 \newcommand{\FigBesBeg}{%
49 \let\MyEndfigure\endfigure
50 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
52 \newcommand{\FigBesEnd}{%
54 \let\endfigure\MyEndfigure}
56 % enables calculation of values,
59 % provides special table cell alignments
62 % increase the bottom float placement fraction
63 \renewcommand{\bottomfraction}{0.5}
65 % avoids that floats are placed before their
66 % corresponding section starts
67 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
69 % speed up the longtable calculation
70 \setcounter{LTchunksize}{100}
72 % used for scaled and rotated boxes
73 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
75 % used for colored tables
76 \@ifundefined{textcolor}
77 {\usepackage{color}}{}
78 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
79 \definecolor{lightgrey}{gray}{0.8}
81 % check for package colortbl
82 % used for colored table cells
84 \IfFileExists{colortbl.sty}
85 {\usepackage{colortbl}
86 \setboolean{colortbl}{true}}
87 {\setboolean{colortbl}{false}}
91 %\renewcommand{\multirowsetup}{\centering}
93 % used for book-style tables
96 % used to have extra space in table cells
97 \@ifundefined{extrarowheight}
98 {\usepackage{array}}{}
99 \setlength{\extrarowheight}{2pt}
101 % used for customized tables
104 {>{\centering\hspace{0pt}}m{#1}}
107 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
110 {>{\columncolor{#1}\hspace{0pt}}c}
112 \newcolumntype{V}{!{\vrule width 1.5pt}}
114 \newcolumntype{W}{!{\color{green}\vline}}
117 % insert additional vertical space of
118 % 1.5 mm between footnotes
120 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
122 % number algorithm floats within chapters
123 \numberwithin{algorithm}{chapter}
125 % redefine the greyed out note
126 \renewenvironment{lyxgreyedout}
127 {\textcolor{blue}\bgroup}{\egroup}
129 % ------------------------------------
130 % used to check for needed LaTeX packages
133 % check for package arydshln
134 % used for tables with dashed lines
135 \newboolean{arydshln}
136 \IfFileExists{arydshln.sty}
137 {\usepackage{arydshln}
138 \setboolean{arydshln}{true}}
139 {\setboolean{arydshln}{false}}
141 % check for package marginnote
142 % used for margin notes
143 \newboolean{marginnote}
144 \IfFileExists{marginnote.sty}
145 {\usepackage{marginnote}
146 \let\marginpar\marginnote
147 \setboolean{marginnote}{true}}
148 {\setboolean{marginnote}{false}}
150 % check for package sidecap
151 % used for captions on the side
153 \IfFileExists{sidecap.sty}
154 {\usepackage{sidecap}
155 \setboolean{sidecap}{true}}
156 {\setboolean{sidecap}{false}}
158 % redefine the \LyX macro for PDF bookmarks
159 \def\LyX{\texorpdfstring{%
160 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
163 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
164 \use_default_options false
169 \font_typewriter default
170 \font_default_family default
180 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
181 \pdf_author "LyX Team, Uwe Stöhr"
182 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
183 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
185 \pdf_bookmarksnumbered true
186 \pdf_bookmarksopen true
187 \pdf_bookmarksopenlevel 1
188 \pdf_breaklinks false
192 \pdf_pdfusetitle false
193 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
200 \paperorientation portrait
203 \paragraph_separation skip
205 \quotes_language english
208 \paperpagestyle default
212 \tracking_changes false
213 \output_changes false
221 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
230 \begin_layout Plain Layout
232 If you have comments or error corrections, please send them to the LyX Documenta
234 \begin_inset CommandInset href
236 name "lyx-docs@lists.lyx.org"
237 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
248 \begin_inset Note Note
251 \begin_layout Plain Layout
258 \begin_inset Newline newline
262 \begin_inset Newline newline
270 \begin_layout Standard
271 \begin_inset CommandInset toc
272 LatexCommand tableofcontents
279 \begin_layout Standard
280 \begin_inset Note Note
283 \begin_layout Plain Layout
284 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
302 If they are not installed you can export the document anyway but the sections
303 where the packages are required won't appear in the output.
306 \begin_layout Plain Layout
307 The latest PDF-version of this document can be found here:
308 \begin_inset Newline newline
313 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
321 \begin_layout Chapter
326 \begin_layout Plain Layout
336 \begin_layout Plain Layout
341 \begin_layout Plain Layout
352 \begin_layout Plain Layout
367 \begin_layout Section
372 \begin_layout Plain Layout
373 Figures ! Graphics Dialog
379 \begin_inset CommandInset label
381 name "sec:Graphics-Dialog"
388 \begin_layout Standard
389 To insert an image into your document, place the cursor at the text position
390 you want and click on the toolbar icon
391 \begin_inset Graphics
392 filename ../images/dialog-show-new-inset_graphics.png
400 Insert\SpecialChar \menuseparator
404 Then a dialog will appear to choose the file to load.
405 The image will appear in the output exactly at the position where it is
409 \begin_layout Standard
410 The graphics dialog can be called at any time by clicking on an image.
411 This dialog has three tabs:
414 \begin_layout Description
419 Here you can choose an image file and adjust its appearance in the output.
420 The available units for the image size are explained in appendix
425 \begin_inset CommandInset ref
427 reference "cha:Units-available-in"
432 \begin_inset Newline newline
439 \begin_layout Plain Layout
445 You can rotate images counter-clockwise by setting a rotation angle and
447 The image will also be rotated inside LyX.
448 \begin_inset Newline newline
455 \begin_layout Plain Layout
461 Images can be scaled by using a percentage value or by setting the width
462 and height explicitly.
463 If you set only the width or only the height, the other size will be determined
465 If you set both, then the image will be transformed to the given size,
466 possibly distorting it.
467 To prevent the image from distortion, use the option
469 Maintain aspect ratio
472 The image will then be scaled so that its width and height don't exceed
473 the specified dimensions.
474 \begin_inset Newline newline
477 Images can be opened in a program of your choice by right-clicking on it
486 in the appearing context menu.
487 The program can be set for every image format in the file format settings
488 in LyX's preferences.
491 \begin_layout Description
496 Alternatively to the usage of scaling units it is possible to set image
497 coordinates to adjust the height and width of the image in the output.
498 The coordinates can also be calculated automatically by pressing the button
528 will only print the image region within the given coordinates.
529 Normally you don't need to take care about image coordinates and can ignore
533 \begin_layout Description
550 In this tab you can modify the appearance of the image within LyX and LaTeX
551 experts can specify additional LaTeX options.
552 \begin_inset Newline newline
563 makes the image appear in the output only as a frame with the size of the
565 \begin_inset Newline newline
584 option only affects zipped EPS-graphics, e.
585 \begin_inset space \thinspace{}
589 \begin_inset space \space{}
597 When the option is used the images will not be unzipped on export, since
598 LaTeX can handle them as they are.
599 \begin_inset Newline newline
602 Zipped EPS-graphics are useful to save disk space when you choose PostScript
603 as output format, see appendix
608 \begin_inset CommandInset ref
610 reference "sec:PostScript"
615 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
617 \begin_inset Newline newline
625 \begin_inset Newline newline
630 zgrep %%Bounding x.eps.gz > x.eps.bb
633 \begin_inset Newline newline
636 The second command creates the bounding box file
637 \begin_inset Quotes eld
641 \begin_inset Quotes erd
644 that is needed by LaTeX for zipped graphics.
645 \begin_inset Newline newline
660 allows you define or join an image settings group.
664 \begin_layout Plain Layout
665 Figures ! Settings grouping
670 Images within such a group share their settings, so adjusting one image
671 of the group automatically also adjusts all other images of the group in
673 So you can for example change the size for a bunch of images without the
674 need to manually change each of them.
675 Joining an existing group can also be done using the context menu of the
676 image by checking the name of the desired group.
679 \begin_layout Standard
680 \begin_inset VSpace bigskip
686 \begin_layout Standard
687 This is an example image in EPS format
691 \begin_layout Plain Layout
692 Image formats are explained in section
697 \begin_inset CommandInset ref
699 reference "sec:Image-Formats"
708 within a separate, horizontally centered paragraph:
711 \begin_layout Standard
713 \begin_inset Graphics
714 filename clipart/mobius.eps
724 \begin_layout Standard
725 This is the same image like the one above but in draft mode:
728 \begin_layout Standard
730 \begin_inset Graphics
731 filename clipart/mobius.eps
742 \begin_layout Standard
743 \begin_inset Newpage newpage
749 \begin_layout Section
751 \begin_inset CommandInset label
753 name "sec:Figure-Floats"
761 \begin_layout Plain Layout
771 \begin_layout Plain Layout
780 \begin_layout Standard
781 For general explanations about floats, have a look at section
786 \begin_inset CommandInset ref
788 reference "sec:FloatIntroduction"
795 \begin_layout Standard
797 \begin_inset Graphics
798 filename ../images/float-insert_figure.png
806 Insert\SpecialChar \menuseparator
807 Float\SpecialChar \menuseparator
810 inserts a float with a caption that has the label
811 \begin_inset Quotes eld
819 \begin_inset Quotes erd
822 (# is the actual number).
823 You can insert the image above the caption, like in Figure
828 \begin_inset CommandInset ref
830 reference "fig:kill-plat"
834 or below the caption, like in Figure
839 \begin_inset CommandInset ref
841 reference "fig:escher"
846 More about the caption placement is described in section
851 \begin_inset CommandInset ref
853 reference "sec:Caption-Placement"
860 \begin_layout Standard
861 \begin_inset Float figure
866 \begin_layout Plain Layout
868 \begin_inset Graphics
869 filename clipart/platypus.eps
879 \begin_layout Plain Layout
882 \begin_layout Plain Layout
883 \begin_inset CommandInset label
889 A severely distorted platypus in a float.
902 \begin_layout Standard
903 \begin_inset Float figure
908 \begin_layout Plain Layout
911 \begin_layout Plain Layout
912 \begin_inset CommandInset label
927 \begin_layout Plain Layout
929 \begin_inset Graphics
930 filename clipart/escher-lsd.eps
945 \begin_layout Standard
949 \begin_layout Plain Layout
950 References ! to Figures
960 \begin_inset CommandInset ref
962 reference "fig:kill-plat"
967 \begin_inset CommandInset ref
969 reference "fig:escher"
973 are examples of referenced figures.
974 Figures can be referenced in the text by referencing their label.
975 To do this insert a label in the caption using the menu
977 Insert\SpecialChar \menuseparator
980 or the toolbar button
981 \begin_inset Graphics
982 filename ../images/label-insert.png
989 You can now refer to the label using the menu
991 Insert\SpecialChar \menuseparator
998 or the toolbar button
999 \begin_inset Graphics
1000 filename ../images/dialog-show-new-inset_ref.png
1007 It is important to use references to floats, rather than using vague references
1009 \begin_inset Quotes eld
1013 \begin_inset Quotes erd
1016 , because as LaTeX will reposition the floats in the final document, it
1018 \begin_inset Quotes eld
1022 \begin_inset Quotes erd
1026 \begin_inset Newline newline
1029 Referencing is explained in detail in section
1030 \begin_inset space ~
1034 \begin_inset CommandInset ref
1036 reference "sec:Referencing-Floats"
1043 \begin_layout Standard
1044 Normally only one image is inserted to a figure float, but sometimes you
1045 might want to use two images with separate subcaptions.
1046 This can be done by inserting image floats into existing image floats.
1047 Note that only the main caption of the float is added to the List of Figures.
1049 \begin_inset space ~
1053 \begin_inset CommandInset ref
1055 reference "fig:Two-distorted-images"
1059 is an example of a figure float with two images set side by side.
1060 You can also set the images one below the other.
1062 \begin_inset space ~
1066 \begin_inset CommandInset ref
1068 reference "fig:Undefinable-structure"
1073 \begin_inset CommandInset ref
1075 reference "fig:A-Platypus"
1082 \begin_layout Standard
1083 \begin_inset Float figure
1088 \begin_layout Plain Layout
1089 \begin_inset space \hfill{}
1093 \begin_inset Float figure
1098 \begin_layout Plain Layout
1099 \begin_inset Caption
1101 \begin_layout Plain Layout
1102 \begin_inset CommandInset label
1104 name "fig:Undefinable-structure"
1108 Undefinable structure.
1116 \begin_layout Plain Layout
1117 \begin_inset Graphics
1118 filename clipart/escher-lsd.eps
1131 \begin_inset space \hfill{}
1135 \begin_inset Float figure
1140 \begin_layout Plain Layout
1141 \begin_inset Caption
1143 \begin_layout Plain Layout
1144 \begin_inset CommandInset label
1146 name "fig:A-Platypus"
1158 \begin_layout Plain Layout
1159 \begin_inset Graphics
1160 filename clipart/platypus.eps
1173 \begin_inset space \hfill{}
1179 \begin_layout Plain Layout
1180 \begin_inset Caption
1182 \begin_layout Plain Layout
1183 \begin_inset CommandInset label
1185 name "fig:Two-distorted-images"
1189 Two distorted images.
1190 Both images are in the image settings group named
1191 \begin_inset Quotes eld
1195 \begin_inset Quotes erd
1211 \begin_layout Standard
1212 \begin_inset Newpage newpage
1218 \begin_layout Section
1220 \begin_inset CommandInset label
1222 name "sec:Image-Formats"
1230 \begin_layout Plain Layout
1240 \begin_layout Plain Layout
1241 Figures ! Image Formats
1249 \begin_layout Standard
1250 You can insert images in any known file format.
1251 But as explained in appendix
1252 \begin_inset space ~
1256 \begin_inset CommandInset ref
1258 reference "cha:Output-File-Formats"
1262 , every output document format allows only a few image formats.
1263 LyX uses therefore the program
1267 in the background to convert the images to the right format.
1268 To increase your work flow by avoiding these conversions in the background,
1269 you can use only the image formats that can directly be embedded in the
1271 The output file formats are explained in appendix
1272 \begin_inset space ~
1276 \begin_inset CommandInset ref
1278 reference "cha:Output-File-Formats"
1285 \begin_layout Standard
1286 Similar to fonts there are two types of image formats:
1289 \begin_layout Description
1291 \begin_inset space ~
1294 images consist of pixel values, often in a compressed form.
1295 They are therefore not fully scalable and look pixelated in large zooms.
1296 Well-known bitmap image formats are
1297 \begin_inset Quotes eld
1300 Graphics Interchange Format
1301 \begin_inset Quotes erd
1304 (GIF, file extension
1305 \begin_inset Quotes eld
1313 \begin_inset Quotes erd
1320 \begin_layout Plain Layout
1325 \begin_layout Plain Layout
1336 \begin_layout Plain Layout
1349 \begin_inset Quotes eld
1352 Portable Network Graphics
1353 \begin_inset Quotes erd
1356 (PNG, file extension
1357 \begin_inset Quotes eld
1365 \begin_inset Quotes erd
1372 \begin_layout Plain Layout
1377 \begin_layout Plain Layout
1388 \begin_layout Plain Layout
1401 \begin_inset Quotes eld
1404 Joint Photographic Experts Group
1405 \begin_inset Quotes erd
1408 (JPG, file extension
1409 \begin_inset Quotes eld
1417 \begin_inset Quotes erd
1421 \begin_inset Quotes eld
1429 \begin_inset Quotes erd
1436 \begin_layout Plain Layout
1441 \begin_layout Plain Layout
1452 \begin_layout Plain Layout
1467 \begin_layout Description
1469 \begin_inset space ~
1472 images consist of vectors and can therefore be scaled to any size without
1474 The scaling ability is necessary if you want to create presentations, because
1475 presentations are always scaled by the video projector.
1476 Scaling is also useful for online documents to let the user zoom into diagrams.
1477 \begin_inset Newline newline
1480 Well-known scalable image formats are
1481 \begin_inset Quotes eld
1484 Scalable Vector Graphics
1485 \begin_inset Quotes erd
1488 (SVG, file extension
1489 \begin_inset Quotes eld
1497 \begin_inset Quotes erd
1504 \begin_layout Plain Layout
1509 \begin_layout Plain Layout
1520 \begin_layout Plain Layout
1533 \begin_inset Quotes eld
1536 Encapsulated PostScript
1537 \begin_inset Quotes erd
1540 (EPS, file extension
1541 \begin_inset Quotes eld
1549 \begin_inset Quotes erd
1556 \begin_layout Plain Layout
1561 \begin_layout Plain Layout
1572 \begin_layout Plain Layout
1585 \begin_inset Quotes eld
1588 Portable Document Format
1589 \begin_inset Quotes erd
1592 (PDF, file extension
1593 \begin_inset Quotes eld
1601 \begin_inset Quotes erd
1608 \begin_layout Plain Layout
1615 \begin_inset Quotes eld
1619 \begin_inset Quotes erd
1622 (WMF, file extension
1623 \begin_inset Quotes eld
1631 \begin_inset Quotes erd
1638 \begin_layout Plain Layout
1643 \begin_layout Plain Layout
1654 \begin_layout Plain Layout
1668 \begin_inset Quotes eld
1672 \begin_inset Quotes erd
1675 , because you can convert any bitmap image to a PDF or EPS-image and the
1676 result will still be a bitmap image.
1677 In 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 described in section
2124 \begin_inset space ~
2128 \begin_inset CommandInset ref
2130 reference "sub:Row-Spacing"
2137 \begin_layout Description
2142 This tab is to make a table a so called
2143 \begin_inset Quotes eld
2151 \begin_inset Quotes erd
2154 that can run over several pages.
2156 \begin_inset space ~
2160 \begin_inset CommandInset ref
2162 reference "sec:Longtables"
2167 \begin_inset CommandInset ref
2169 reference "sec:Special-Longtable-Issues"
2173 describe the longtable features in detail.
2176 \begin_layout Standard
2177 When the table dialog is open, you can move the cursor with the arrow keys
2178 from cell to cell and the property of the current cell will immediately
2179 be displayed in the dialog.
2182 \begin_layout Section
2187 \begin_layout Plain Layout
2196 \begin_layout Standard
2197 The table toolbar is an alternative to the table dialog to be able to alter
2199 It should normally appear at the bottom of LyX's main window when the cursor
2201 You can alternatively switch it on to appear always, by right-clicking
2202 in LyX's main menu bar.
2205 \begin_layout Standard
2206 The toolbar has the following icons:
2209 \begin_layout Labeling
2210 \labelwidthstring 00.00.0000
2211 \begin_inset Graphics
2212 filename ../images/tabular-feature_append-row.png
2217 adds a row below the current cell or selection
2220 \begin_layout Labeling
2221 \labelwidthstring 00.00.0000
2222 \begin_inset Graphics
2223 filename ../images/tabular-feature_append-column.png
2228 adds a column right beside the current cell or selection
2231 \begin_layout Labeling
2232 \labelwidthstring 00.00.0000
2233 \begin_inset Graphics
2234 filename ../images/tabular-feature_delete-row.png
2239 deletes the current row or selection
2242 \begin_layout Labeling
2243 \labelwidthstring 00.00.0000
2244 \begin_inset Graphics
2245 filename ../images/tabular-feature_delete-column.png
2250 deletes the current column or selection
2253 \begin_layout Labeling
2254 \labelwidthstring 00.00.0000
2255 \begin_inset Graphics
2256 filename ../images/tabular-feature_toggle-line-top.png
2261 adds a line at the top of the current cell / row or of a selection
2264 \begin_layout Labeling
2265 \labelwidthstring 00.00.0000
2266 \begin_inset Graphics
2267 filename ../images/tabular-feature_toggle-line-bottom.png
2272 adds a line at the bottom of the current cell / row or of a selection
2275 \begin_layout Labeling
2276 \labelwidthstring 00.00.0000
2277 \begin_inset Graphics
2278 filename ../images/tabular-feature_toggle-line-left.png
2283 adds a line at the left side of the current cell / row or of a selection
2286 \begin_layout Labeling
2287 \labelwidthstring 00.00.0000
2288 \begin_inset Graphics
2289 filename ../images/tabular-feature_toggle-line-right.png
2294 adds a line at the right side of the current cell / row or of a selection
2297 \begin_layout Labeling
2298 \labelwidthstring 00.00.0000
2299 \begin_inset Graphics
2300 filename ../images/tabular-feature_set-all-lines.png
2305 adds lines around the current or selected cells - if the current cell no
2306 multicolumn 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 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 Unset the upper border of the last cell in the first column.
12312 The multirow is now created in the second row of the first column by inserting
12316 \begin_layout Standard
12321 multirow{2}{2.5cm}{
12324 \begin_layout Standard
12326 According to the command parameters the multirow spans now two rows and
12328 \begin_inset space \thinspace{}
12332 The content of the multirow cell follows outside the TeX-Code box and the
12333 command is finished with a right brace
12337 in another TeX-Code-box behind the text.
12340 \begin_layout Standard
12347 left-aligns its content by default.
12348 To override the default, renew the command
12357 \begin_layout Standard
12369 \begin_layout Standard
12370 in TeX-Code in the document preamble.
12371 Then all entries of multirow cells in the document are centered.
12372 If centering is only needed for several tables, you can renew the command
12373 in an TeX-Code box just before the table instead of the preamble.
12374 If the text should be right-aligned, replace
12387 To return to left-alignment
12396 \begin_layout Section
12398 \begin_inset CommandInset label
12400 name "sec:Formal-Tables"
12408 \begin_layout Plain Layout
12417 \begin_layout Standard
12418 Tables are often typeset in books similar to Table
12419 \begin_inset space ~
12423 \begin_inset CommandInset ref
12425 reference "tab:Example-booktabs-table"
12430 This kind of tables is called
12431 \begin_inset Quotes eld
12439 \begin_inset Quotes erd
12443 To make a table a formal table use the option
12451 tab of the table dialog.
12454 \begin_layout Standard
12455 \begin_inset Float table
12461 \begin_layout Plain Layout
12462 \begin_inset Caption
12464 \begin_layout Plain Layout
12465 \begin_inset CommandInset label
12467 name "tab:Example-booktabs-table"
12471 Example booktabs-table
12479 \begin_layout Plain Layout
12481 \begin_inset Tabular
12482 <lyxtabular version="3" rows="8" columns="4">
12483 <features booktabs="true">
12484 <column alignment="center" valignment="top" width="0">
12485 <column alignment="center" valignment="top" width="0">
12486 <column alignment="center" valignment="top" width="0">
12487 <column alignment="center" valignment="top" width="0">
12489 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12492 \begin_layout Plain Layout
12498 <cell alignment="center" valignment="top" topline="true" usebox="none">
12501 \begin_layout Plain Layout
12503 \begin_inset space \thinspace{}
12511 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
12514 \begin_layout Plain Layout
12516 \begin_inset space \thinspace{}
12524 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12527 \begin_layout Plain Layout
12535 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12538 \begin_layout Plain Layout
12542 \begin_layout Plain Layout
12555 \begin_layout Plain Layout
12564 Detector thickness [µm]
12569 <cell alignment="center" valignment="top" usebox="none">
12572 \begin_layout Plain Layout
12578 <cell alignment="center" valignment="top" usebox="none">
12581 \begin_layout Plain Layout
12587 <cell alignment="center" valignment="top" usebox="none">
12590 \begin_layout Plain Layout
12598 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12601 \begin_layout Plain Layout
12607 <cell alignment="center" valignment="top" topline="true" usebox="none">
12610 \begin_layout Plain Layout
12616 <cell alignment="center" valignment="top" topline="true" usebox="none">
12619 \begin_layout Plain Layout
12625 <cell alignment="center" valignment="top" topline="true" usebox="none">
12628 \begin_layout Plain Layout
12635 <row topspace="default">
12636 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12639 \begin_layout Plain Layout
12640 Spatial resolution [µm]
12645 <cell alignment="center" valignment="top" usebox="none">
12648 \begin_layout Plain Layout
12654 <cell alignment="center" valignment="top" usebox="none">
12657 \begin_layout Plain Layout
12663 <cell alignment="center" valignment="top" usebox="none">
12666 \begin_layout Plain Layout
12673 <row topspace="default">
12674 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12677 \begin_layout Plain Layout
12679 \begin_inset Formula $f_{\mathrm{max}}$
12687 <cell alignment="center" valignment="top" usebox="none">
12690 \begin_layout Plain Layout
12696 <cell alignment="center" valignment="top" usebox="none">
12699 \begin_layout Plain Layout
12705 <cell alignment="center" valignment="top" usebox="none">
12708 \begin_layout Plain Layout
12715 <row topspace="default">
12716 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12719 \begin_layout Plain Layout
12723 \begin_layout Plain Layout
12727 cmidrule(l{10pt}){1-1}
12732 LSF-spatial resolution
12737 <cell alignment="center" valignment="top" usebox="none">
12740 \begin_layout Plain Layout
12746 <cell alignment="center" valignment="top" usebox="none">
12749 \begin_layout Plain Layout
12755 <cell alignment="center" valignment="top" usebox="none">
12758 \begin_layout Plain Layout
12766 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12769 \begin_layout Plain Layout
12775 <cell alignment="center" valignment="top" usebox="none">
12778 \begin_layout Plain Layout
12784 <cell alignment="center" valignment="top" usebox="none">
12787 \begin_layout Plain Layout
12793 <cell alignment="center" valignment="top" usebox="none">
12796 \begin_layout Plain Layout
12804 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12807 \begin_layout Plain Layout
12813 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12816 \begin_layout Plain Layout
12822 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12825 \begin_layout Plain Layout
12831 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12834 \begin_layout Plain Layout
12853 \begin_layout Standard
12854 Spaces to table rows can be added using the
12858 tab of the table dialog as described in section
12859 \begin_inset space ~
12863 \begin_inset CommandInset ref
12865 reference "sub:Row-Spacing"
12872 \begin_layout Standard
12873 In contrary to normal tables, formal tables have no vertical table lines.
12874 The horizontal table lines can be set like for normal tables but they appear
12875 with different width in the output:
12876 \begin_inset Newline newline
12879 The first and the last table line have a default width of 0.08
12880 \begin_inset space \thinspace{}
12883 em while the other lines have a default width of 0.05
12884 \begin_inset space \thinspace{}
12890 \begin_layout Standard
12891 The default widths can be changed with the following preamble lines
12894 \begin_layout Standard
12904 \begin_inset Newline newline
12916 \begin_layout Standard
12917 This example is for the first line, the so called
12922 If you want to change the width for the last line, replace
12931 To change the width for the other lines replace
12940 You can use all units listed in appendix
12941 \begin_inset space ~
12945 \begin_inset CommandInset ref
12947 reference "cha:Units-available-in"
12954 \begin_layout Standard
12955 Lines that don't span over all table columns can be created by setting a
12956 table line for multicolumn cells.
12957 LyX will then internally use the command
12963 to create this line.
12967 \begin_layout Standard
12972 cmidrule[width](trim){startcol-endcol}
12975 \begin_layout Standard
12982 are are currently not supported by LyX so you have to use TeX-Code to be
12990 s can manually be created by inserting the command as TeX-Code as first
12991 cell entry of the first cell of a row.
12992 The line is then drawn in the output above the current row.
12995 \begin_layout Standard
12996 The default for the width is 0.03
12997 \begin_inset space \thinspace{}
13001 Startcol is the number of the column where the line starts and endcol the
13002 column number where the line ends.
13003 The endcol always needs to be specified, also when the line should span
13005 The optional parameter trim could be either
13013 where the trimwidth is also optional.
13014 Using for example the parameter
13018 means that the line is trimmed from its left end by 2
13019 \begin_inset space \thinspace{}
13023 If you don't specify the trimwidth the lines are trimmed by the default
13025 \begin_inset space \thinspace{}
13031 \begin_layout Standard
13032 \begin_inset VSpace bigskip
13036 \begin_inset space ~
13040 \begin_inset CommandInset ref
13042 reference "tab:Example-booktabs-table"
13046 was created using the commands
13049 \begin_layout Standard
13059 \begin_layout Standard
13060 at the beginning of the in the second row and
13063 \begin_layout Standard
13068 cmidrule(l{10pt}){1-1}
13071 \begin_layout Standard
13075 \begin_layout Standard
13076 \begin_inset VSpace bigskip
13082 \begin_layout Standard
13083 You might want to have overlapping
13090 \begin_inset space ~
13094 \begin_inset CommandInset ref
13096 reference "tab:Special-booktabs-table"
13101 This can be achieved with the TeX-Code command
13104 \begin_layout Standard
13112 \begin_layout Standard
13113 The command that was used for the second row of Table
13114 \begin_inset space ~
13118 \begin_inset CommandInset ref
13120 reference "tab:Special-booktabs-table"
13127 \begin_layout Standard
13141 \begin_layout Standard
13142 The command for the sixth row is
13145 \begin_layout Standard
13157 \begin_layout Standard
13158 \begin_inset VSpace bigskip
13164 \begin_layout Standard
13165 If you are anyway not satisfied with the border line spacing, you can use
13166 the following command to produce lines that span over all table columns
13171 \begin_layout Standard
13176 specialrule{width}{space above}{space below}
13179 \begin_layout Standard
13180 For more information about these specialties, we refer to the manual of
13186 \begin_inset CommandInset citation
13196 \begin_layout Plain Layout
13197 LaTeX-packages ! booktabs
13205 \begin_layout Standard
13206 \begin_inset Float table
13212 \begin_layout Plain Layout
13213 \begin_inset Caption
13215 \begin_layout Plain Layout
13216 \begin_inset CommandInset label
13218 name "tab:Special-booktabs-table"
13222 Special booktabs-table
13230 \begin_layout Plain Layout
13232 \begin_inset Tabular
13233 <lyxtabular version="3" rows="8" columns="4">
13234 <features booktabs="true">
13235 <column alignment="center" valignment="top" width="0">
13236 <column alignment="center" valignment="top" width="0">
13237 <column alignment="center" valignment="top" width="0">
13238 <column alignment="center" valignment="top" width="0">
13240 <cell alignment="center" valignment="top" topline="true" usebox="none">
13243 \begin_layout Plain Layout
13249 <cell alignment="center" valignment="top" topline="true" usebox="none">
13252 \begin_layout Plain Layout
13254 \begin_inset space \thinspace{}
13262 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
13265 \begin_layout Plain Layout
13267 \begin_inset space \thinspace{}
13275 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13278 \begin_layout Plain Layout
13286 <cell alignment="center" valignment="top" usebox="none">
13289 \begin_layout Plain Layout
13293 \begin_layout Plain Layout
13306 \begin_layout Plain Layout
13319 \begin_layout Plain Layout
13332 \begin_layout Plain Layout
13341 Detector thickness [µm]
13346 <cell alignment="center" valignment="top" usebox="none">
13349 \begin_layout Plain Layout
13355 <cell alignment="center" valignment="top" usebox="none">
13358 \begin_layout Plain Layout
13364 <cell alignment="center" valignment="top" usebox="none">
13367 \begin_layout Plain Layout
13375 <cell alignment="center" valignment="top" topline="true" usebox="none">
13378 \begin_layout Plain Layout
13384 <cell alignment="center" valignment="top" topline="true" usebox="none">
13387 \begin_layout Plain Layout
13393 <cell alignment="center" valignment="top" topline="true" usebox="none">
13396 \begin_layout Plain Layout
13402 <cell alignment="center" valignment="top" topline="true" usebox="none">
13405 \begin_layout Plain Layout
13412 <row topspace="default">
13413 <cell alignment="center" valignment="top" usebox="none">
13416 \begin_layout Plain Layout
13417 Spatial resolution [µm]
13422 <cell alignment="center" valignment="top" usebox="none">
13425 \begin_layout Plain Layout
13431 <cell alignment="center" valignment="top" usebox="none">
13434 \begin_layout Plain Layout
13440 <cell alignment="center" valignment="top" usebox="none">
13443 \begin_layout Plain Layout
13450 <row topspace="default">
13451 <cell alignment="center" valignment="top" usebox="none">
13454 \begin_layout Plain Layout
13456 \begin_inset Formula $f_{\mathrm{max}}$
13464 <cell alignment="center" valignment="top" usebox="none">
13467 \begin_layout Plain Layout
13473 <cell alignment="center" valignment="top" usebox="none">
13476 \begin_layout Plain Layout
13482 <cell alignment="center" valignment="top" usebox="none">
13485 \begin_layout Plain Layout
13493 <cell alignment="center" valignment="top" topline="true" usebox="none">
13496 \begin_layout Plain Layout
13500 \begin_layout Plain Layout
13513 \begin_layout Plain Layout
13522 LSF-spatial resolution
13527 <cell alignment="center" valignment="top" topline="true" usebox="none">
13530 \begin_layout Plain Layout
13536 <cell alignment="center" valignment="top" topline="true" usebox="none">
13539 \begin_layout Plain Layout
13545 <cell alignment="center" valignment="top" topline="true" usebox="none">
13548 \begin_layout Plain Layout
13556 <cell alignment="center" valignment="top" usebox="none">
13559 \begin_layout Plain Layout
13565 <cell alignment="center" valignment="top" usebox="none">
13568 \begin_layout Plain Layout
13574 <cell alignment="center" valignment="top" usebox="none">
13577 \begin_layout Plain Layout
13583 <cell alignment="center" valignment="top" usebox="none">
13586 \begin_layout Plain Layout
13594 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13597 \begin_layout Plain Layout
13603 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13606 \begin_layout Plain Layout
13612 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13615 \begin_layout Plain Layout
13621 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13624 \begin_layout Plain Layout
13643 \begin_layout Section
13644 Vertical Table Alignment
13648 \begin_layout Plain Layout
13657 \begin_layout Standard
13658 To align tables vertically in a text line the table must be inside a box.
13659 The box can then be vertically aligned as described in section
13660 \begin_inset space ~
13664 \begin_inset CommandInset ref
13666 reference "sec:Box-Dialog"
13673 \begin_layout Standard
13674 In the following example the tables are inside a minipage
13678 \begin_layout Plain Layout
13679 Minipages are described in section
13680 \begin_inset space ~
13684 \begin_inset CommandInset ref
13686 reference "sec:Minipages"
13695 box that has a width of 15
13696 \begin_inset space \thinspace{}
13702 \begin_layout Itemize
13704 \begin_inset Box Frameless
13713 height_special "totalheight"
13716 \begin_layout Plain Layout
13717 \begin_inset Tabular
13718 <lyxtabular version="3" rows="3" columns="3">
13720 <column alignment="center" valignment="top" width="0">
13721 <column alignment="center" valignment="top" width="0">
13722 <column alignment="center" valignment="top" width="0">
13724 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13727 \begin_layout Plain Layout
13733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13736 \begin_layout Plain Layout
13742 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13745 \begin_layout Plain Layout
13753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13756 \begin_layout Plain Layout
13762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13765 \begin_layout Plain Layout
13771 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13774 \begin_layout Plain Layout
13782 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13785 \begin_layout Plain Layout
13791 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13794 \begin_layout Plain Layout
13800 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13803 \begin_layout Plain Layout
13823 \begin_layout Plain Layout
13835 \begin_inset Box Frameless
13844 height_special "totalheight"
13847 \begin_layout Plain Layout
13848 \begin_inset Tabular
13849 <lyxtabular version="3" rows="3" columns="3">
13851 <column alignment="center" valignment="top" width="0">
13852 <column alignment="center" valignment="top" width="0">
13853 <column alignment="center" valignment="top" width="0">
13855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13858 \begin_layout Plain Layout
13864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13867 \begin_layout Plain Layout
13873 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13876 \begin_layout Plain Layout
13884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13887 \begin_layout Plain Layout
13893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13896 \begin_layout Plain Layout
13902 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13905 \begin_layout Plain Layout
13913 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13916 \begin_layout Plain Layout
13922 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13925 \begin_layout Plain Layout
13931 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13934 \begin_layout Plain Layout
13954 \begin_layout Plain Layout
13964 \begin_layout Itemize
13966 \begin_inset Box Frameless
13975 height_special "totalheight"
13978 \begin_layout Plain Layout
13979 \begin_inset Tabular
13980 <lyxtabular version="3" rows="3" columns="3">
13982 <column alignment="center" valignment="top" width="0">
13983 <column alignment="center" valignment="top" width="0">
13984 <column alignment="center" valignment="top" width="0">
13986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13989 \begin_layout Plain Layout
13995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13998 \begin_layout Plain Layout
14004 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14007 \begin_layout Plain Layout
14015 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14018 \begin_layout Plain Layout
14024 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14027 \begin_layout Plain Layout
14033 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14036 \begin_layout Plain Layout
14044 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14047 \begin_layout Plain Layout
14053 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14056 \begin_layout Plain Layout
14062 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14065 \begin_layout Plain Layout
14084 \begin_layout Itemize
14086 \begin_inset Box Frameless
14095 height_special "totalheight"
14098 \begin_layout Plain Layout
14099 \begin_inset Tabular
14100 <lyxtabular version="3" rows="3" columns="3">
14102 <column alignment="center" valignment="top" width="0">
14103 <column alignment="center" valignment="top" width="0">
14104 <column alignment="center" valignment="top" width="0">
14106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14109 \begin_layout Plain Layout
14115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14118 \begin_layout Plain Layout
14124 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14127 \begin_layout Plain Layout
14135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14138 \begin_layout Plain Layout
14144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14147 \begin_layout Plain Layout
14153 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14156 \begin_layout Plain Layout
14164 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14167 \begin_layout Plain Layout
14173 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14176 \begin_layout Plain Layout
14182 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14185 \begin_layout Plain Layout
14205 \begin_layout Plain Layout
14217 \begin_inset Box Frameless
14226 height_special "totalheight"
14229 \begin_layout Plain Layout
14230 \begin_inset Tabular
14231 <lyxtabular version="3" rows="3" columns="3">
14233 <column alignment="center" valignment="top" width="0">
14234 <column alignment="center" valignment="top" width="0">
14235 <column alignment="center" valignment="top" width="0">
14237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14240 \begin_layout Plain Layout
14246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14249 \begin_layout Plain Layout
14255 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14258 \begin_layout Plain Layout
14266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14269 \begin_layout Plain Layout
14275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14278 \begin_layout Plain Layout
14284 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14287 \begin_layout Plain Layout
14295 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14298 \begin_layout Plain Layout
14304 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14307 \begin_layout Plain Layout
14313 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14316 \begin_layout Plain Layout
14336 \begin_layout Plain Layout
14346 \begin_layout Standard
14347 As you can see, the content of the first and last table row is not correctly
14348 aligned with the text line where the table is in.
14349 To get this alignment, the minipage box must be set into a raisebox
14353 \begin_layout Plain Layout
14354 Raiseboxes are described in section
14355 \begin_inset space ~
14359 \begin_inset CommandInset ref
14361 reference "sub:Vertical-Alignment"
14371 In the example above the second table in the first item is aligned using
14372 the TeX-Code-command
14375 \begin_layout Standard
14385 \begin_layout Standard
14387 Behind the box the closing brace
14391 is inserted as TeX-Code.
14392 For the second table in the last item the command
14395 \begin_layout Standard
14405 \begin_layout Standard
14409 \begin_layout Standard
14410 \begin_inset Note Greyedout
14413 \begin_layout Plain Layout
14418 The alignment of the table row content to the surrounding text line is
14420 The needed factor of the
14426 command for this alignment depends on the document font, the font size,
14427 and the table line thickness.
14435 \begin_layout Section
14437 \begin_inset CommandInset label
14439 name "sec:Colored-Tables"
14447 \begin_layout Plain Layout
14456 \begin_layout Subsection
14461 \begin_layout Plain Layout
14462 Table Color ! for Cells
14471 \begin_layout Plain Layout
14472 Color ! for Table Cells
14480 \begin_layout Standard
14481 \begin_inset Float table
14487 \begin_layout Plain Layout
14488 \begin_inset Caption
14490 \begin_layout Plain Layout
14491 \begin_inset CommandInset label
14493 name "tab:Table-colored-without"
14497 Table colored without using the package
14502 \begin_inset OptArg
14505 \begin_layout Plain Layout
14506 Table without colortbl
14519 \begin_layout Plain Layout
14521 \begin_inset Tabular
14522 <lyxtabular version="3" rows="3" columns="3">
14524 <column alignment="center" valignment="top" width="0">
14525 <column alignment="center" valignment="top" width="0">
14526 <column alignment="center" valignment="top" width="0">
14528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14531 \begin_layout Plain Layout
14539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14542 \begin_layout Plain Layout
14550 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14553 \begin_layout Plain Layout
14563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14566 \begin_layout Plain Layout
14574 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14577 \begin_layout Plain Layout
14585 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14588 \begin_layout Plain Layout
14598 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14601 \begin_layout Plain Layout
14609 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14612 \begin_layout Plain Layout
14620 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14623 \begin_layout Plain Layout
14644 \begin_layout Standard
14645 If you only need colored text, mark the cells and choose a color in the
14648 Edit\SpecialChar \menuseparator
14650 \begin_inset space ~
14656 This was used to create Table
14657 \begin_inset space ~
14661 \begin_inset CommandInset ref
14663 reference "tab:Table-colored-without"
14668 In any other case you have to use the LaTeX-package
14676 \begin_layout Plain Layout
14677 LaTeX-packages ! colortbl
14685 \begin_layout Standard
14689 \begin_layout Plain Layout
14699 \begin_inset Note Note
14702 \begin_layout Plain Layout
14703 The following section part will only be displayed when the LaTeX-package
14716 \begin_layout Standard
14717 To create colored tables,
14721 must be loaded in the preamble with the line
14724 \begin_layout Standard
14729 usepackage{colortbl}
14732 \begin_layout Standard
14733 The color of a column is adjusted with the command
14736 \begin_layout Standard
14741 columncolor{name of color}
14744 \begin_layout Standard
14750 More about the command
14754 is described in section
14755 \begin_inset space ~
14759 \begin_inset CommandInset ref
14761 reference "sub:Multicolumn-Calculations"
14768 \begin_layout Standard
14769 The following color names are predefined:
14772 \begin_layout Standard
14806 \begin_layout Standard
14807 \begin_inset VSpace medskip
14813 \begin_layout Standard
14814 You can also define your own color with the command
14817 \begin_layout Standard
14822 definecolor{color name}{color model}{color values}
14825 \begin_layout Standard
14826 The color model can be
14829 \begin_layout Labeling
14830 \labelwidthstring 00.00.0000
14831 cmyk: cyan, magenta, yellow, black
14834 \begin_layout Labeling
14835 \labelwidthstring 00.00.0000
14836 rgb: red, green blue
14839 \begin_layout Labeling
14840 \labelwidthstring 00.00.0000
14844 \begin_layout Standard
14845 and the color values are comma separated numbers between 0 and 1 describing
14846 the factor for the corresponding color of the color model.
14849 \begin_layout Standard
14851 \begin_inset space \thinspace{}
14855 \begin_inset space \space{}
14862 " in the preamble with
14865 \begin_layout Standard
14870 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14873 \begin_layout Standard
14881 \begin_layout Standard
14886 definecolor{lightgray}{gray}{0.8}
14889 \begin_layout Standard
14890 \begin_inset VSpace medskip
14896 \begin_layout Standard
14897 Lines are colored with the command
14900 \begin_layout Standard
14905 rowcolor{name of color}
14908 \begin_layout Standard
14909 and cells are colored with the command
14912 \begin_layout Standard
14917 cellcolor{name of color}
14920 \begin_layout Standard
14921 Both commands are inserted at the beginning of a cell as TeX-Code.
14924 \begin_layout Standard
14925 To color characters in the table, mark the cells and use the LyX menu
14927 Edit\SpecialChar \menuseparator
14929 \begin_inset space ~
14935 If a cell contains TeX-Code mark only the characters, otherwise the colored
14936 TeX-Code will cause LaTeX-errors.
14939 \begin_layout Standard
14940 \begin_inset Note Greyedout
14943 \begin_layout Plain Layout
14948 Not all DVI-viewers are able to display self-defined colors.
14956 \begin_layout Standard
14957 \begin_inset VSpace bigskip
14963 \begin_layout Standard
14965 \begin_inset space ~
14969 \begin_inset CommandInset ref
14971 reference "tab:Table-colored-using"
14975 do the following: The color of the first column should be
14983 \begin_layout Standard
14988 columncolor{darkgreen}
14993 \begin_layout Standard
14994 as LaTeX-argument for this column.
14995 The first row should be blue, therefore the TeX-Code command
14998 \begin_layout Standard
15006 \begin_layout Standard
15007 is inserted to the first cell of this row.
15008 Note that this overwrites the column color for the first cell.
15009 The last cell of the last row is colored magenta by inserting the TeX-Code
15013 \begin_layout Standard
15021 \begin_layout Standard
15022 The characters could now be colored using the menu
15024 Edit\SpecialChar \menuseparator
15026 \begin_inset space ~
15034 \begin_layout Standard
15035 \begin_inset Float table
15041 \begin_layout Plain Layout
15042 \begin_inset Caption
15044 \begin_layout Plain Layout
15045 \begin_inset CommandInset label
15047 name "tab:Table-colored-using"
15051 Table colored using the package
15056 \begin_inset OptArg
15059 \begin_layout Plain Layout
15060 Table with colortbl
15073 \begin_layout Plain Layout
15075 \begin_inset Tabular
15076 <lyxtabular version="3" rows="3" columns="3">
15078 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15079 <column alignment="center" valignment="top" width="0">
15080 <column alignment="center" valignment="top" width="0">
15082 <cell alignment="center" valignment="top" usebox="none">
15085 \begin_layout Plain Layout
15089 \begin_layout Plain Layout
15105 <cell alignment="center" valignment="top" usebox="none">
15108 \begin_layout Plain Layout
15116 <cell alignment="center" valignment="top" usebox="none">
15119 \begin_layout Plain Layout
15129 <cell alignment="center" valignment="top" usebox="none">
15132 \begin_layout Plain Layout
15140 <cell alignment="center" valignment="top" usebox="none">
15143 \begin_layout Plain Layout
15151 <cell alignment="center" valignment="top" usebox="none">
15154 \begin_layout Plain Layout
15164 <cell alignment="center" valignment="top" usebox="none">
15167 \begin_layout Plain Layout
15175 <cell alignment="center" valignment="top" usebox="none">
15178 \begin_layout Plain Layout
15186 <cell alignment="center" valignment="top" usebox="none">
15189 \begin_layout Plain Layout
15193 \begin_layout Plain Layout
15222 \begin_layout Standard
15226 \begin_layout Plain Layout
15236 \begin_inset Note Note
15239 \begin_layout Plain Layout
15240 The following will be displayed when the LaTeX-package
15252 \begin_layout Standard
15253 You need to install the package
15257 to see the content of this section in the output.
15260 \begin_layout Standard
15264 \begin_layout Plain Layout
15276 \begin_layout Subsection
15281 \begin_layout Plain Layout
15282 Table Color ! for Lines
15291 \begin_layout Plain Layout
15292 Color ! for Table Lines
15300 \begin_layout Standard
15301 As described in section
15302 \begin_inset space ~
15306 \begin_inset CommandInset ref
15308 reference "sub:Line-Thickness"
15312 , the line thickness for all lines in a table can be adjusted with the length
15321 \begin_inset space \thinspace{}
15324 pt for all tables of this section.
15328 \begin_layout Plain Layout
15334 arrayrulewidth}{1.5pt}
15342 \begin_layout Standard
15343 To color vertical lines for example with green, create the following column
15344 format in the document preamble, according to the description in section
15345 \begin_inset space ~
15349 \begin_inset CommandInset ref
15351 reference "sub:Customized-Format"
15358 \begin_layout Standard
15363 newcolumntype{W}{!{
15370 \begin_layout Standard
15372 \begin_inset space ~
15376 \begin_inset CommandInset ref
15378 reference "tab:Table-with-vertical-colored"
15386 was used for the last column and
15390 for the other columns.
15393 \begin_layout Standard
15394 If you want to have several colors, define more column formats.
15397 \begin_layout Standard
15398 \begin_inset Float table
15404 \begin_layout Plain Layout
15405 \begin_inset Caption
15407 \begin_layout Plain Layout
15408 \begin_inset CommandInset label
15410 name "tab:Table-with-vertical-colored"
15414 Table with colored vertical lines
15422 \begin_layout Plain Layout
15424 \begin_inset Tabular
15425 <lyxtabular version="3" rows="3" columns="3">
15427 <column alignment="center" valignment="top" width="0" special="Wc">
15428 <column alignment="center" valignment="top" width="0" special="Wc">
15429 <column alignment="center" valignment="top" width="0" special="WcW">
15431 <cell alignment="center" valignment="top" topline="true" usebox="none">
15434 \begin_layout Plain Layout
15440 <cell alignment="center" valignment="top" topline="true" usebox="none">
15443 \begin_layout Plain Layout
15449 <cell alignment="center" valignment="top" topline="true" usebox="none">
15452 \begin_layout Plain Layout
15460 <cell alignment="center" valignment="top" topline="true" usebox="none">
15463 \begin_layout Plain Layout
15469 <cell alignment="center" valignment="top" topline="true" usebox="none">
15472 \begin_layout Plain Layout
15478 <cell alignment="center" valignment="top" topline="true" usebox="none">
15481 \begin_layout Plain Layout
15489 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15492 \begin_layout Plain Layout
15498 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15501 \begin_layout Plain Layout
15507 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15510 \begin_layout Plain Layout
15529 \begin_layout Standard
15530 \begin_inset VSpace bigskip
15533 To color horizontal lines for example with red, like in Table
15534 \begin_inset space ~
15538 \begin_inset CommandInset ref
15540 reference "tab:Table-with-horizontal-colored"
15544 , insert these commands in TeX-Code before the table or table float:
15547 \begin_layout Standard
15557 \begin_inset Newline newline
15565 \begin_inset Newline newline
15572 \begin_layout Plain Layout
15583 arrayrulecolor{red}
15587 arrayrulecolor{black}}
15590 \begin_layout Standard
15594 \begin_layout Plain Layout
15605 \begin_layout Plain Layout
15614 \begin_layout Plain Layout
15618 arrayrulecolor{red}
15622 arrayrulecolor{black}}
15628 \begin_inset Float table
15634 \begin_layout Plain Layout
15635 \begin_inset Caption
15637 \begin_layout Plain Layout
15638 \begin_inset CommandInset label
15640 name "tab:Table-with-horizontal-colored"
15644 Table with colored horizontal lines
15652 \begin_layout Plain Layout
15654 \begin_inset Tabular
15655 <lyxtabular version="3" rows="3" columns="3">
15657 <column alignment="center" valignment="top" width="0">
15658 <column alignment="center" valignment="top" width="0">
15659 <column alignment="center" valignment="top" width="0">
15661 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15664 \begin_layout Plain Layout
15670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15673 \begin_layout Plain Layout
15679 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15682 \begin_layout Plain Layout
15690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15693 \begin_layout Plain Layout
15699 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15702 \begin_layout Plain Layout
15708 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15711 \begin_layout Plain Layout
15719 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15722 \begin_layout Plain Layout
15728 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15731 \begin_layout Plain Layout
15737 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15740 \begin_layout Plain Layout
15759 \begin_layout Standard
15760 To return to the default line color black, insert this command in TeX-Code
15761 behind the table or table float:
15764 \begin_layout Standard
15776 \begin_layout Standard
15778 \begin_inset space ~
15782 \begin_inset CommandInset ref
15784 reference "tab:Table-with-colored"
15788 is an example with colored vertical and horizontal lines.
15791 \begin_layout Standard
15792 \begin_inset Float table
15798 \begin_layout Plain Layout
15799 \begin_inset Caption
15801 \begin_layout Plain Layout
15802 \begin_inset CommandInset label
15804 name "tab:Table-with-colored"
15808 Table with colored lines
15816 \begin_layout Plain Layout
15818 \begin_inset Tabular
15819 <lyxtabular version="3" rows="3" columns="3">
15821 <column alignment="center" valignment="top" width="0" special="Wc">
15822 <column alignment="center" valignment="top" width="0" special="Wc">
15823 <column alignment="center" valignment="top" width="0" special="WcW">
15825 <cell alignment="center" valignment="top" topline="true" usebox="none">
15828 \begin_layout Plain Layout
15834 <cell alignment="center" valignment="top" topline="true" usebox="none">
15837 \begin_layout Plain Layout
15843 <cell alignment="center" valignment="top" topline="true" usebox="none">
15846 \begin_layout Plain Layout
15854 <cell alignment="center" valignment="top" topline="true" usebox="none">
15857 \begin_layout Plain Layout
15863 <cell alignment="center" valignment="top" topline="true" usebox="none">
15866 \begin_layout Plain Layout
15872 <cell alignment="center" valignment="top" topline="true" usebox="none">
15875 \begin_layout Plain Layout
15882 <row topspace="default">
15883 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15886 \begin_layout Plain Layout
15892 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15895 \begin_layout Plain Layout
15901 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15904 \begin_layout Plain Layout
15923 \begin_layout Standard
15927 \begin_layout Plain Layout
15943 \begin_layout Standard
15947 \begin_layout Plain Layout
15953 arrayrulewidth}{0.4pt}
15961 \begin_layout Section
15962 Table Customization
15966 \begin_layout Plain Layout
15967 Table Customization
15976 \begin_layout Plain Layout
15977 Table ! Customization
15985 \begin_layout Subsection
15987 \begin_inset CommandInset label
15989 name "sub:Row-Spacing"
15997 \begin_layout Plain Layout
15998 Table Customization ! Row Spacing
16006 \begin_layout Standard
16007 You can add vertical space to table rows in the
16011 tab of the table dialog.
16012 You find there three possibilities:
16015 \begin_layout Description
16017 \begin_inset space ~
16021 \begin_inset space ~
16024 row will add space above the characters of the table row.
16025 If the table is a formal table
16029 \begin_layout Plain Layout
16030 Formal tables are explained in section
16031 \begin_inset space ~
16035 \begin_inset CommandInset ref
16037 reference "sec:Formal-Tables"
16046 LyX will insert as default 0.5
16047 \begin_inset space \thinspace{}
16051 For normal tables the inserted space will unfortunately destroy the vertical
16052 table lines as in the following table:
16053 \begin_inset VSpace medskip
16057 \begin_inset Newline newline
16061 \begin_inset space \hspace*{}
16066 \begin_inset space \hfill{}
16070 \begin_inset Tabular
16071 <lyxtabular version="3" rows="3" columns="1">
16073 <column alignment="center" valignment="top" width="0">
16075 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16078 \begin_layout Plain Layout
16085 <row topspace="3mm">
16086 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16089 \begin_layout Plain Layout
16091 \begin_inset space \thinspace{}
16094 mm space top of row
16101 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16104 \begin_layout Plain Layout
16116 \begin_inset space \hfill{}
16120 \begin_inset space \hspace*{}
16125 \begin_inset VSpace medskip
16129 \begin_inset Newline newline
16132 So inserting space to the top of row for normal tables is only useful when
16133 you don't have vertical lines.
16136 \begin_layout Description
16138 \begin_inset space ~
16142 \begin_inset space ~
16145 row will add space below the characters of the table row.
16146 If the table is a formal table LyX will insert as default 0.5
16147 \begin_inset space \thinspace{}
16150 em space, for normal tables the default size is 2
16151 \begin_inset space \thinspace{}
16157 \begin_layout Description
16159 \begin_inset space ~
16162 rows adds space between the current and the following row.
16163 If the table is a formal table LyX will insert as default 0.5
16164 \begin_inset space \thinspace{}
16168 For normal tables the inserted space will unfortunately destroy the vertical
16169 table lines as in the following table:
16170 \begin_inset VSpace medskip
16174 \begin_inset Newline newline
16178 \begin_inset space \hspace*{}
16183 \begin_inset space \hfill{}
16187 \begin_inset Tabular
16188 <lyxtabular version="3" rows="3" columns="1">
16190 <column alignment="center" valignment="top" width="0">
16192 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16195 \begin_layout Plain Layout
16202 <row interlinespace="3mm">
16203 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16206 \begin_layout Plain Layout
16207 \begin_inset Formula $\downarrow$
16211 \begin_inset space \thinspace{}
16214 mm space between row
16215 \begin_inset Formula $\downarrow$
16225 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16228 \begin_layout Plain Layout
16229 \begin_inset Formula $\uparrow$
16233 \begin_inset space \thinspace{}
16236 mm space between row
16237 \begin_inset Formula $\uparrow$
16251 \begin_inset space \hfill{}
16255 \begin_inset space \hspace*{}
16260 \begin_inset VSpace medskip
16264 \begin_inset Newline newline
16267 So inserting space between rows for normal tables is only useful when you
16268 don't have vertical lines.
16271 \begin_layout Standard
16272 \begin_inset VSpace bigskip
16275 When you want to add extra height to all cells of all tables, you can do
16276 this with the following preamble lines:
16279 \begin_layout Standard
16284 @ifundefined{extrarowheight}
16285 \begin_inset Newline newline
16292 \begin_layout Plain Layout
16303 usepackage{array}}{}
16304 \begin_inset Newline newline
16311 extrarowheight}{height}
16314 \begin_layout Standard
16315 But this has the disadvantage that the cell texts are no longer exactly
16316 vertically centered.
16321 will be loaded automatically by LyX when you use self defined table formats.
16322 To avoid that it is loaded twice the command
16328 is used in the above command.)
16331 \begin_layout Standard
16332 In case you are using font sizes larger than the normal size, the table
16333 borders are often too close to the letters.
16334 This can be corrected by inserting the command
16340 in TeX code at the beginning of a table row.
16342 \begin_inset space ~
16346 \begin_inset CommandInset ref
16348 reference "tab:Vertical-alignment-of"
16352 visualizes the effect.
16355 \begin_layout Standard
16357 \begin_inset Float table
16363 \begin_layout Plain Layout
16364 \begin_inset Caption
16366 \begin_layout Plain Layout
16367 \begin_inset CommandInset label
16369 name "tab:Vertical-alignment-of"
16373 Vertical alignment of text with large font sizes.
16381 \begin_layout Plain Layout
16382 \begin_inset space \hfill{}
16386 \begin_inset Float table
16391 \begin_layout Plain Layout
16392 \begin_inset Caption
16394 \begin_layout Plain Layout
16403 \begin_layout Plain Layout
16406 \begin_inset Tabular
16407 <lyxtabular version="3" rows="6" columns="1">
16409 <column alignment="left" valignment="top" width="0">
16411 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16414 \begin_layout Plain Layout
16422 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16425 \begin_layout Plain Layout
16435 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16438 \begin_layout Plain Layout
16448 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16451 \begin_layout Plain Layout
16461 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16464 \begin_layout Plain Layout
16474 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16477 \begin_layout Plain Layout
16496 \begin_inset space \hfill{}
16500 \begin_inset Float table
16505 \begin_layout Plain Layout
16506 \begin_inset Caption
16508 \begin_layout Plain Layout
16509 Table using the command
16523 \begin_layout Plain Layout
16526 \begin_inset Tabular
16527 <lyxtabular version="3" rows="6" columns="1">
16529 <column alignment="left" valignment="top" width="0">
16531 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16534 \begin_layout Plain Layout
16542 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16545 \begin_layout Plain Layout
16551 \begin_layout Plain Layout
16567 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16570 \begin_layout Plain Layout
16576 \begin_layout Plain Layout
16592 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16595 \begin_layout Plain Layout
16601 \begin_layout Plain Layout
16617 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16620 \begin_layout Plain Layout
16626 \begin_layout Plain Layout
16642 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16645 \begin_layout Plain Layout
16651 \begin_layout Plain Layout
16678 \begin_inset space \hfill{}
16689 \begin_layout Subsection
16690 Special Cell Alignment
16694 \begin_layout Plain Layout
16695 Table Customization ! Special Cell Alignment
16703 \begin_layout Standard
16704 Sometimes it looks better when the cell entries of a column are aligned
16705 with a special character, e.
16706 \begin_inset space \thinspace{}
16710 \begin_inset space \space{}
16713 with the decimal separator as in Table
16714 \begin_inset space ~
16718 \begin_inset CommandInset ref
16720 reference "tab:Table-cells-of"
16727 \begin_layout Standard
16728 \begin_inset Float table
16734 \begin_layout Plain Layout
16735 \begin_inset Caption
16737 \begin_layout Plain Layout
16738 \begin_inset CommandInset label
16740 name "tab:Table-cells-of"
16744 Table cells of a column aligned with the decimal separator.
16752 \begin_layout Plain Layout
16754 \begin_inset Tabular
16755 <lyxtabular version="3" rows="4" columns="2">
16757 <column alignment="right" valignment="top" width="0">
16758 <column alignment="left" valignment="top" width="0" special="@{}l">
16760 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16763 \begin_layout Plain Layout
16769 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16772 \begin_layout Plain Layout
16780 <cell alignment="center" valignment="top" usebox="none">
16783 \begin_layout Plain Layout
16789 <cell alignment="center" valignment="top" usebox="none">
16792 \begin_layout Plain Layout
16800 <cell alignment="center" valignment="top" usebox="none">
16803 \begin_layout Plain Layout
16809 <cell alignment="center" valignment="top" usebox="none">
16812 \begin_layout Plain Layout
16820 <cell alignment="center" valignment="top" usebox="none">
16823 \begin_layout Plain Layout
16829 <cell alignment="center" valignment="top" usebox="none">
16832 \begin_layout Plain Layout
16851 \begin_layout Standard
16852 This table was created with a 4×2 table.
16853 The heading is a centered multicolumn.
16854 The first column is right-aligned and contains the digits before the decimal
16855 point and the decimal point.
16856 The second column is left aligned and contains the digits after the decimal
16858 To omit the space that is normally between two table columns, use the following
16859 LaTeX-argument for the second column:
16862 \begin_layout Standard
16868 \begin_layout Standard
16870 \begin_inset space ~
16874 \begin_inset CommandInset ref
16876 reference "tab:Several-table-cell"
16880 shows some example alignments.
16881 For the alignment with the relation sign, you must add the second smallest
16882 math-space at the beginning of the last column to get the correct space
16883 surrounding the relation sign.
16886 \begin_layout Standard
16887 \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 does not 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 Newpage newpage
17279 \begin_layout Standard
17280 \begin_inset Float table
17286 \begin_layout Plain Layout
17287 \begin_inset Caption
17289 \begin_layout Plain Layout
17290 \begin_inset CommandInset label
17292 name "tab:Alignments-when"
17296 Alignments when LaTeX-package dcolumn is used.
17297 For all column alignments tricks have to be used to get the output.
17305 \begin_layout Plain Layout
17307 \begin_inset Tabular
17308 <lyxtabular version="3" rows="4" columns="3">
17310 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
17311 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
17312 <column alignment="center" valignment="top" width="0" special="D{+}{\,}{9.7}">
17314 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17317 \begin_layout Plain Layout
17323 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17326 \begin_layout Plain Layout
17332 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17335 \begin_layout Plain Layout
17343 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17346 \begin_layout Plain Layout
17348 \begin_inset space \thinspace{}
17356 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17359 \begin_layout Plain Layout
17361 \begin_inset space \thinspace{}
17365 \begin_inset Formula $\mbox{bottles}$
17373 <cell alignment="center" valignment="top" usebox="none">
17376 \begin_layout Plain Layout
17381 \begin_layout Plain Layout
17391 \begin_inset Formula $\mbox{bottles}$
17401 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17404 \begin_layout Plain Layout
17406 \begin_inset space \thinspace{}
17414 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17417 \begin_layout Plain Layout
17419 \begin_inset space \thinspace{}
17423 \begin_inset Formula $\mbox{Pixels}$
17431 <cell alignment="center" valignment="top" usebox="none">
17434 \begin_layout Plain Layout
17439 \begin_layout Plain Layout
17449 \begin_inset Formula $\mbox{Pixels}$
17459 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17462 \begin_layout Plain Layout
17464 \begin_inset space \thinspace{}
17472 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17475 \begin_layout Plain Layout
17477 \begin_inset space \thinspace{}
17481 \begin_inset Formula $\mbox{cm}$
17489 <cell alignment="center" valignment="top" usebox="none">
17492 \begin_layout Plain Layout
17497 \begin_layout Plain Layout
17507 \begin_inset Formula $\mbox{cm}$
17528 \begin_layout Subsection
17529 Customized Cell/Column Format
17530 \begin_inset CommandInset label
17532 name "sub:Customized-Format"
17540 \begin_layout Plain Layout
17541 Table Customization ! Cell/Column Format
17549 \begin_layout Standard
17550 Calculating the needed width for spanned columns like in section
17551 \begin_inset space ~
17555 \begin_inset CommandInset ref
17557 reference "sub:Multicolumn-Calculations"
17561 is very annoying if you have several tables with multicolumn cells.
17562 To make life easier, you can define a cell/column format in the preamble,
17563 so that it can be used in all tables of the document.
17564 The format is defined with the command
17567 \begin_layout Standard
17572 newcolumntype{name of format}[number of arguments]{commands}
17575 \begin_layout Standard
17576 The format name may only consist of one letter.
17601 are predefined and cannot be used.
17602 But all letters are allowed as capitals.
17605 \begin_layout Standard
17606 \begin_inset VSpace medskip
17612 \begin_layout Standard
17613 For vertically and horizontally centered multicolumn cells with a fixed
17614 width you can define the cell format
17617 \begin_layout Standard
17622 newcolumntype{M}[1]{>{
17629 \begin_layout Standard
17636 avoids the problem of hyphenating the first word, as described in section
17637 \begin_inset space ~
17641 \begin_inset CommandInset ref
17643 reference "sub:Multiple-Lines-in"
17648 Now you can simply enter
17651 \begin_layout Standard
17657 \begin_layout Standard
17658 as LaTeX-argument in the table dialog to create a multicolumn.
17661 \begin_layout Standard
17662 \begin_inset VSpace bigskip
17668 \begin_layout Standard
17669 For cells spanned by a multicolumn cell, you can define the format
17672 \begin_layout Standard
17677 newcolumntype{S}[2]{>{
17682 \begin_inset Newline newline
17689 \begin_layout Plain Layout
17704 \begin_layout Plain Layout
17715 arrayrulewidth)*(1-#2))/#2}}
17718 \begin_layout Standard
17719 This format uses equation
17720 \begin_inset CommandInset ref
17726 to calculate the needed width so that each spanned cell has the same width.
17729 \begin_layout Standard
17733 \begin_layout Standard
17736 S{width of multicolumn cell}{number of spanned columns}
17739 \begin_layout Standard
17740 as LaTeX-argument of the column.
17743 \begin_layout Standard
17744 \begin_inset VSpace bigskip
17750 \begin_layout Standard
17751 For colored columns, you can define
17754 \begin_layout Standard
17759 newcolumntype{K}[1]{>{
17766 \begin_layout Standard
17768 \begin_inset Quotes eld
17772 \begin_inset Quotes erd
17775 at the end creates a column with a flexible width whose text is horizontally
17780 \begin_layout Standard
17786 \begin_layout Standard
17790 \begin_layout Standard
17791 \begin_inset VSpace bigskip
17797 \begin_layout Standard
17799 \begin_inset space ~
17803 \begin_inset CommandInset ref
17805 reference "tab:Table-using-user-defined"
17809 use the LaTeX-arguments
17812 \begin_layout Standard
17818 \begin_layout Standard
17819 for the first column and the multicolumn,
17822 \begin_layout Standard
17828 \begin_layout Standard
17829 for the the last column, and
17832 \begin_layout Standard
17838 \begin_layout Standard
17839 for the cells in the second column.
17842 \begin_layout Standard
17843 \begin_inset Float table
17849 \begin_layout Plain Layout
17850 \begin_inset Caption
17852 \begin_layout Plain Layout
17853 \begin_inset CommandInset label
17855 name "tab:Table-using-user-defined"
17859 Table using user-defined table formats
17867 \begin_layout Plain Layout
17869 \begin_inset Tabular
17870 <lyxtabular version="3" rows="3" columns="4">
17872 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17873 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17874 <column alignment="center" valignment="middle" width="0">
17875 <column alignment="center" valignment="middle" width="0" special="K{red}">
17877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17880 \begin_layout Plain Layout
17881 verylongtablecellword
17886 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17889 \begin_layout Plain Layout
17890 multiple lines multicolumn
17895 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17898 \begin_layout Plain Layout
17904 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17907 \begin_layout Plain Layout
17915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17918 \begin_layout Plain Layout
17924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17927 \begin_layout Plain Layout
17933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17936 \begin_layout Plain Layout
17942 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17945 \begin_layout Plain Layout
17953 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17956 \begin_layout Plain Layout
17962 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17965 \begin_layout Plain Layout
17971 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17974 \begin_layout Plain Layout
17980 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17983 \begin_layout Plain Layout
18002 \begin_layout Subsection
18004 \begin_inset CommandInset label
18006 name "sub:Line-Thickness"
18014 \begin_layout Plain Layout
18015 Table Customization ! Line Thickness
18023 \begin_layout Standard
18024 The line thickness for all lines in a table can be adjusted with the length
18032 To set for example a line thickness of 1.5
18033 \begin_inset space \thinspace{}
18037 \begin_inset space ~
18041 \begin_inset CommandInset ref
18043 reference "tab:Table-with-1.5"
18047 , insert the command
18050 \begin_layout Standard
18057 arrayrulewidth}{1.5pt}
18060 \begin_layout Standard
18061 in TeX-Code before the table or table float.
18062 The changed thickness is valid for all following tables.
18063 To use the default value again, set
18070 \begin_inset space \thinspace{}
18073 pt in TeX-Code behind the table or table float.
18076 \begin_layout Standard
18080 \begin_layout Plain Layout
18086 arrayrulewidth}{1.5pt}
18092 \begin_inset Float table
18097 \begin_layout Plain Layout
18098 \begin_inset Caption
18100 \begin_layout Plain Layout
18101 \begin_inset CommandInset label
18103 name "tab:Table-with-1.5"
18108 \begin_inset space \thinspace{}
18119 \begin_layout Plain Layout
18121 \begin_inset Tabular
18122 <lyxtabular version="3" rows="3" columns="3">
18124 <column alignment="center" valignment="top" width="0">
18125 <column alignment="center" valignment="top" width="0">
18126 <column alignment="center" valignment="top" width="0">
18128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18131 \begin_layout Plain Layout
18137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18140 \begin_layout Plain Layout
18146 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18149 \begin_layout Plain Layout
18157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18160 \begin_layout Plain Layout
18166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18169 \begin_layout Plain Layout
18175 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18178 \begin_layout Plain Layout
18186 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18189 \begin_layout Plain Layout
18195 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18198 \begin_layout Plain Layout
18204 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18207 \begin_layout Plain Layout
18227 \begin_layout Plain Layout
18233 arrayrulewidth}{0.4pt}
18241 \begin_layout Standard
18242 \begin_inset VSpace bigskip
18245 To set the line thickness to 1.5
18246 \begin_inset space \thinspace{}
18249 pt only for horizontal lines, like in Table
18250 \begin_inset space ~
18254 \begin_inset CommandInset ref
18256 reference "tab:Table-with-horizontal"
18260 , insert these commands in TeX-Code before the table or table float:
18263 \begin_layout Standard
18273 \begin_inset Newline newline
18281 \begin_inset Newline newline
18290 arrayrulewidth 1.5pt}
18291 \begin_inset Newline newline
18302 arrayrulewidth 0.4pt}}
18305 \begin_layout Standard
18306 To return to the default line thickness, insert this command in TeX-Code
18307 behind the table or table float:
18310 \begin_layout Standard
18322 \begin_layout Standard
18326 \begin_layout Plain Layout
18337 \begin_layout Plain Layout
18346 \begin_layout Plain Layout
18354 arrayrulewidth 1.5pt}
18357 \begin_layout Plain Layout
18367 arrayrulewidth 0.4pt}}
18373 \begin_inset Float table
18378 \begin_layout Plain Layout
18379 \begin_inset Caption
18381 \begin_layout Plain Layout
18382 \begin_inset CommandInset label
18384 name "tab:Table-with-horizontal"
18389 \begin_inset space \thinspace{}
18392 pt thick horizontal lines
18400 \begin_layout Plain Layout
18402 \begin_inset Tabular
18403 <lyxtabular version="3" rows="3" columns="3">
18405 <column alignment="center" valignment="top" width="0">
18406 <column alignment="center" valignment="top" width="0">
18407 <column alignment="center" valignment="top" width="0">
18409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18412 \begin_layout Plain Layout
18418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18421 \begin_layout Plain Layout
18427 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18430 \begin_layout Plain Layout
18438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18441 \begin_layout Plain Layout
18447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18450 \begin_layout Plain Layout
18456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18459 \begin_layout Plain Layout
18467 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18470 \begin_layout Plain Layout
18476 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18479 \begin_layout Plain Layout
18485 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18488 \begin_layout Plain Layout
18508 \begin_layout Plain Layout
18524 \begin_layout Standard
18525 \begin_inset VSpace bigskip
18528 To set the line thickness to 1.5
18529 \begin_inset space \thinspace{}
18532 pt only for vertical lines, create the following column format in the document
18533 preamble, according to the description in section
18534 \begin_inset space ~
18538 \begin_inset CommandInset ref
18540 reference "sub:Customized-Format"
18547 \begin_layout Standard
18552 newcolumntype{V}{!{
18554 vrule width 1.5pt}}
18557 \begin_layout Standard
18559 \begin_inset space ~
18563 \begin_inset CommandInset ref
18565 reference "tab:Table-with-vertical"
18572 \begin_layout Standard
18578 \begin_layout Standard
18579 was used for the last column and
18582 \begin_layout Standard
18588 \begin_layout Standard
18589 for the other columns.
18592 \begin_layout Standard
18593 \begin_inset Float table
18598 \begin_layout Plain Layout
18599 \begin_inset Caption
18601 \begin_layout Plain Layout
18602 \begin_inset CommandInset label
18604 name "tab:Table-with-vertical"
18609 \begin_inset space \thinspace{}
18612 pt thick vertical lines
18620 \begin_layout Plain Layout
18622 \begin_inset Tabular
18623 <lyxtabular version="3" rows="3" columns="3">
18625 <column alignment="center" valignment="top" width="0" special="Vc">
18626 <column alignment="center" valignment="top" width="0" special="Vc">
18627 <column alignment="center" valignment="top" width="0" special="VcV">
18629 <cell alignment="center" valignment="top" topline="true" usebox="none">
18632 \begin_layout Plain Layout
18638 <cell alignment="center" valignment="top" topline="true" usebox="none">
18641 \begin_layout Plain Layout
18647 <cell alignment="center" valignment="top" topline="true" usebox="none">
18650 \begin_layout Plain Layout
18658 <cell alignment="center" valignment="top" topline="true" usebox="none">
18661 \begin_layout Plain Layout
18667 <cell alignment="center" valignment="top" topline="true" usebox="none">
18670 \begin_layout Plain Layout
18676 <cell alignment="center" valignment="top" topline="true" usebox="none">
18679 \begin_layout Plain Layout
18687 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18690 \begin_layout Plain Layout
18696 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18699 \begin_layout Plain Layout
18705 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18708 \begin_layout Plain Layout
18727 \begin_layout Subsection
18732 \begin_layout Plain Layout
18733 Table Customization ! Dashed Lines
18741 \begin_layout Standard
18745 \begin_layout Plain Layout
18755 \begin_inset Note Note
18758 \begin_layout Plain Layout
18759 The following section will only be displayed when the LaTeX-package
18771 \begin_layout Standard
18772 \begin_inset Float table
18778 \begin_layout Plain Layout
18779 \begin_inset Caption
18781 \begin_layout Plain Layout
18782 \begin_inset CommandInset label
18784 name "tab:Table-with-dashed"
18788 Table with dashed lines
18796 \begin_layout Plain Layout
18798 \begin_inset Tabular
18799 <lyxtabular version="3" rows="5" columns="5">
18801 <column alignment="center" valignment="top" width="0">
18802 <column alignment="center" valignment="top" width="0">
18803 <column alignment="center" valignment="top" width="0" special=":c">
18804 <column alignment="center" valignment="top" width="0">
18805 <column alignment="center" valignment="top" width="0">
18807 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18810 \begin_layout Plain Layout
18816 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18819 \begin_layout Plain Layout
18825 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18828 \begin_layout Plain Layout
18834 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18837 \begin_layout Plain Layout
18843 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18846 \begin_layout Plain Layout
18854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18857 \begin_layout Plain Layout
18863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18866 \begin_layout Plain Layout
18872 <cell alignment="center" valignment="top" topline="true" usebox="none">
18875 \begin_layout Plain Layout
18881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18884 \begin_layout Plain Layout
18890 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18893 \begin_layout Plain Layout
18901 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18904 \begin_layout Plain Layout
18908 \begin_layout Plain Layout
18922 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18925 \begin_layout Plain Layout
18931 <cell alignment="center" valignment="top" usebox="none">
18934 \begin_layout Plain Layout
18940 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18943 \begin_layout Plain Layout
18949 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18952 \begin_layout Plain Layout
18960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18963 \begin_layout Plain Layout
18967 \begin_layout Plain Layout
18981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18984 \begin_layout Plain Layout
18990 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
18993 \begin_layout Plain Layout
18999 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19002 \begin_layout Plain Layout
19008 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19011 \begin_layout Plain Layout
19019 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19022 \begin_layout Plain Layout
19028 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19031 \begin_layout Plain Layout
19037 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19040 \begin_layout Plain Layout
19046 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19049 \begin_layout Plain Layout
19055 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19058 \begin_layout Plain Layout
19077 \begin_layout Standard
19078 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
19079 As prerequisite the LaTeX-package
19087 \begin_layout Plain Layout
19088 LaTeX-packages ! arydshln
19093 must be loaded in the document preamble with the command
19096 \begin_layout Standard
19101 usepackage{arydshln}
19104 \begin_layout Standard
19105 To make a vertical line dashed, enter the colon
19106 \begin_inset Quotes eld
19110 \begin_inset Quotes erd
19113 together with the character for the horizontal alignment as LaTeX-argument
19114 in the table cell dialog.
19117 \begin_layout Standard
19118 For a horizontal dashed line add the command
19121 \begin_layout Standard
19129 \begin_layout Standard
19130 in TeX-Code as first element of the first cell in the table row.
19133 \begin_layout Standard
19134 For dashed multicolumn lines use the command
19137 \begin_layout Standard
19142 cdashline{line number
19147 \begin_layout Standard
19148 in TeX-Code as first element of the first cell in the table row.
19149 If you have for example a multicolumn spanning over columns 2 to 4 and
19150 you want to have a dashed line above, add the command
19153 \begin_layout Standard
19161 \begin_layout Standard
19162 as first element of the first cell in the row of the multicolumn.
19165 \begin_layout Standard
19166 \begin_inset VSpace bigskip
19172 \begin_layout Standard
19174 \begin_inset space ~
19178 \begin_inset CommandInset ref
19180 reference "tab:Table-with-dashed"
19185 \begin_inset Quotes eld
19193 \begin_inset Quotes erd
19196 as LaTeX-argument of the third column.
19197 The TeX-Code command
19203 was inserted to the first cell of the third row and the the TeX-Code command
19204 \begin_inset Newline newline
19213 was inserted to the first cell of the fourth row.
19216 \begin_layout Standard
19217 \begin_inset Note Greyedout
19220 \begin_layout Plain Layout
19225 The used LaTeX-package
19229 is apparently not compatible with the LaTeX-package
19237 \begin_layout Plain Layout
19238 LaTeX-packages ! colortbl
19243 that is used for colored tables in section
19244 \begin_inset space ~
19248 \begin_inset CommandInset ref
19250 reference "sec:Colored-Tables"
19255 That means colored tables cannot have dashed lines.
19263 \begin_layout Standard
19267 \begin_layout Plain Layout
19277 \begin_inset Note Note
19280 \begin_layout Plain Layout
19281 The following will be displayed when the LaTeX-package
19293 \begin_layout Standard
19294 You need to install the package
19298 to see the content of this section in the output.
19301 \begin_layout Standard
19305 \begin_layout Plain Layout
19317 \begin_layout Chapter
19322 \begin_layout Plain Layout
19331 \begin_layout Section
19333 \begin_inset CommandInset label
19335 name "sec:FloatIntroduction"
19343 \begin_layout Plain Layout
19344 Floats ! Introduction
19352 \begin_layout Standard
19353 A float is a block of text associated with some sort of label, which doesn't
19354 have a fixed location.
19356 \begin_inset Quotes eld
19360 \begin_inset Quotes erd
19363 forward or backward a page or two, to wherever it fits best.
19371 \begin_inset space ~
19376 are also floats, because they can float to the next page when there are
19377 too many notes at the page.
19380 \begin_layout Standard
19381 Floats allow a high quality layout.
19382 Images and tables can evenly be spread to the pages to avoid white space
19383 and pages without text.
19384 As the floating often destroys the context between the text and the image/table
19385 , every float can be referenced in the text.
19386 Floats are therefore numbered.
19387 Referencing is described in section
19388 \begin_inset space ~
19392 \begin_inset CommandInset ref
19394 reference "sec:Referencing-Floats"
19401 \begin_layout Standard
19402 To insert a float, use the menu
19404 Insert\SpecialChar \menuseparator
19412 inset, a box with a label.
19413 The label will automatically be translated to the document language in
19415 Behind the label you can insert the caption text.
19416 The image or table is inserted above or below the caption in a separate
19417 paragraph within the float.
19418 More about the caption placement is described in section
19419 \begin_inset space ~
19423 \begin_inset CommandInset ref
19425 reference "sec:Caption-Placement"
19430 To keep your LyX-document readable, you can open and close the float box
19431 by left-clicking on the box label.
19432 A closed float box looks like this:
19433 \begin_inset Graphics
19434 filename clipart/floatQt4.png
19436 scaleBeforeRotation
19440 – a gray button with a red label.
19443 \begin_layout Standard
19444 It is recommended to insert floats as a separate paragraph to avoid possible
19445 LaTeX-errors that can occur when the surrounding text is specially formatted.
19448 \begin_layout Standard
19449 Existing figures or tables can be put into a float by marking them and then
19450 pressing the corresponding toolbar button for a new float.
19453 \begin_layout Section
19457 \begin_layout Standard
19458 Besides figure and table floats that are described in section
19459 \begin_inset space ~
19463 \begin_inset CommandInset ref
19465 reference "sec:Figure-Floats"
19470 \begin_inset CommandInset ref
19472 reference "sec:Table-Floats"
19476 , respectively, LyX offers the float types
19487 \begin_layout Subsection
19492 \begin_layout Plain Layout
19493 Floats ! Algorithms
19501 \begin_layout Standard
19502 \begin_inset Float algorithm
19508 \begin_layout Plain Layout
19509 \begin_inset Caption
19511 \begin_layout Plain Layout
19512 \begin_inset CommandInset label
19514 name "alg:Example-Algorithm-float"
19518 Example Algorithm float
19526 \begin_layout LyX-Code
19528 \begin_inset Newline newline
19531 Sum:= Sum + A(I); /*comment*/
19532 \begin_inset Newline newline
19536 \begin_inset VSpace -4mm
19547 \begin_layout Standard
19548 This float type is inserted with the menu
19550 Insert\SpecialChar \menuseparator
19551 Floats\SpecialChar \menuseparator
19555 It is used for program codes and descriptions of algorithms and can be
19556 seen as an alternative to program code listings that are explained in chapter
19557 \begin_inset space ~
19561 \begin_inset CommandInset ref
19563 reference "cha:Program-Code-Listings"
19568 A possible environment for algorithms is the
19572 , described in LyX's
19578 \begin_inset space ~
19582 \begin_inset CommandInset ref
19584 reference "alg:Example-Algorithm-float"
19588 is an example of an algorithm float where -4
19589 \begin_inset space \thinspace{}
19592 mm vertical space was added at the end of the float to have the bottom rule
19593 exactly below the last text line.
19596 \begin_layout Standard
19597 The float label is not automatically translated into the document language.
19598 If your document is not in English, you have to do this manually by adding
19599 the following line to the document preamble
19604 \begin_layout Standard
19609 floatname{algorithm}{your
19610 \begin_inset space ~
19616 \begin_layout Standard
19620 \begin_inset space ~
19626 \begin_inset Quotes eld
19634 \begin_inset Quotes erd
19640 \begin_layout Standard
19641 To insert the list of algorithms you can use the menu
19643 Insert\SpecialChar \menuseparator
19645 \begin_inset space \thinspace{}
19649 \begin_inset space \thinspace{}
19652 TOC\SpecialChar \menuseparator
19655 when your document has the same language as LyX's menu names.
19656 In other cases use this command in TeX-Code instead:
19659 \begin_layout Standard
19664 listof{algorithm}{your
19665 \begin_inset space ~
19671 \begin_layout Standard
19675 \begin_inset space ~
19681 \begin_inset Quotes eld
19689 \begin_inset Quotes erd
19695 \begin_layout Standard
19696 Algorithm floats are not by default numbered in the scheme
19697 \begin_inset Quotes eld
19701 \begin_inset Quotes erd
19704 like it is the case for table and figure floats in many document-classes.
19705 To number algorithm floats in the same scheme, add this command to your
19709 \begin_layout Standard
19714 numberwithin{algorithm}{chapter}
19717 \begin_layout Standard
19718 To be able to use the command
19727 \begin_inset space ~
19732 in the document settings the option
19735 \begin_inset space ~
19739 \begin_inset space ~
19743 \begin_inset space ~
19751 \begin_layout Subsection
19756 \begin_layout Plain Layout
19757 Floats ! Wrap Floats
19765 \begin_layout Standard
19766 \begin_inset Wrap figure
19773 \begin_layout Plain Layout
19774 \begin_inset Graphics
19775 filename clipart/mobius.eps
19777 scaleBeforeRotation
19778 rotateOrigin center
19785 \begin_layout Plain Layout
19786 \begin_inset Caption
19788 \begin_layout Plain Layout
19789 \begin_inset CommandInset label
19791 name "fig:This-is-a"
19795 This is a figure wrap float.
19805 This float type is used if you want to wrap text around a figure or table
19806 so that it only occupies some fraction of the column width.
19807 It can be inserted using the menu
19809 Insert\SpecialChar \menuseparator
19810 Floats\SpecialChar \menuseparator
19812 \begin_inset space ~
19816 \begin_inset space ~
19824 \begin_inset space ~
19828 \begin_inset space ~
19833 if the LaTeX-package
19841 \begin_layout Plain Layout
19842 LaTeX-packages ! wrapfig
19846 \begin_layout Plain Layout
19864 \begin_layout Plain Layout
19865 Installing a LaTeX-package is explained it in the
19868 \begin_inset space ~
19878 The settings of the float can be modified by right-clicking on the float
19880 The mandatory settings are the float
19893 that specifies how much the float is set into the paragraph
19894 \begin_inset space \thinspace{}
19898 \begin_inset space \thinspace{}
19901 page margin, and the
19904 \begin_inset space ~
19909 that specifies how many text lines the float will approximately need.
19910 The line span is often hard to be approximated, so better only use it when
19911 you encounter float placement problems.
19912 You can furthermore decide if LaTeX is allowed to let the float float within
19913 the paragraph or to surrounding paragraphs.
19915 \begin_inset space ~
19919 \begin_inset CommandInset ref
19921 reference "fig:This-is-a"
19925 is an example text wrap float with a width of 40
19926 \begin_inset space \thinspace{}
19930 \begin_inset space \thinspace{}
19933 cm overhang, set to the left.
19937 \begin_layout Plain Layout
19938 Available units are explained in appendix
19939 \begin_inset space ~
19943 \begin_inset CommandInset ref
19945 reference "cha:Units-available-in"
19957 \begin_layout Standard
19958 \begin_inset Note Greyedout
19961 \begin_layout Plain Layout
19967 \begin_inset space ~
19970 wrap float floats are fragile! E.
19971 \begin_inset space \thinspace{}
19975 \begin_inset space \space{}
19978 having a figure too close to the bottom of the page can mess things up in
19979 the way that the float doesn't appear in the output or that it is placed
19980 over some other text.
19988 \begin_layout Standard
19992 \begin_layout Itemize
19993 Wrap floats should not be placed in paragraphs that run over a page break.
19994 That means that wrap floats should better be inserted to the exact place
19995 when the document is nearly finished and you are able to estimate where
19996 page breaks will appear.
19999 \begin_layout Itemize
20000 Wrap floats should either be placed in an own paragraph before the paragraph
20001 where they should wrap into or within a paragraph.
20004 \begin_layout Itemize
20005 Wrap floats in consecutive paragraphs may cause troubles, so assure that
20006 there is a text paragraph between them as separator.
20009 \begin_layout Itemize
20010 Wrap floats are not allowed in section headings or tables.
20013 \begin_layout Section
20018 \begin_layout Plain Layout
20027 \begin_layout Standard
20028 Floats are usually numbered either independent from the sections the floats
20029 are in, or in the scheme
20030 \begin_inset Quotes eld
20034 \begin_inset Quotes erd
20038 \begin_inset Quotes eld
20042 \begin_inset Quotes erd
20046 This depends on the used document class.
20049 \begin_layout Standard
20050 To change the section independent numbering, you can use this command in
20051 the document preamble:
20054 \begin_layout Standard
20066 \begin_layout Standard
20073 is the command that prints the table number, for figure floats, the command
20087 prints in the command above the table number as small roman number.
20090 \begin_layout Standard
20091 To change the numbering scheme for example to
20092 \begin_inset Quotes eld
20096 \begin_inset Quotes erd
20099 , use this command in the preamble:
20102 \begin_layout Standard
20107 numberwithin{table}{subsection}
20110 \begin_layout Standard
20111 To be able to use the command
20120 \begin_inset space ~
20125 in the document settings the option
20128 \begin_inset space ~
20132 \begin_inset space ~
20136 \begin_inset space ~
20144 \begin_layout Standard
20145 Please also have a look at section
20146 \begin_inset space ~
20150 \begin_inset CommandInset ref
20152 reference "sub:Footnote-Numbering"
20156 for the details and important notes about the numbering commands.
20159 \begin_layout Section
20161 \begin_inset CommandInset label
20163 name "sec:Referencing-Floats"
20171 \begin_layout Plain Layout
20172 Floats ! References
20181 \begin_layout Plain Layout
20182 References ! to Floats
20190 \begin_layout Standard
20191 To reference a float, insert a label into its caption using the menu
20193 Insert\SpecialChar \menuseparator
20196 or the toolbar button
20197 \begin_inset Graphics
20198 filename ../images/label-insert.png
20200 scaleBeforeRotation
20205 A grey label box like this one:
20206 \begin_inset Graphics
20207 filename clipart/labelQt4.png
20209 scaleBeforeRotation
20213 will be inserted and the label window pops up asking for the label text.
20214 LyX offers as text the first words of the caption with a prefix.
20215 The prefix depends on the float type, e.
20216 \begin_inset space \thinspace{}
20220 \begin_inset space \space{}
20223 for figure floats the prefix will be "
20230 \begin_layout Standard
20231 The label is used as anchor and name for the reference.
20232 You can refer to the label using the menu
20234 Insert\SpecialChar \menuseparator
20237 or the toolbar button
20238 \begin_inset Graphics
20239 filename ../images/dialog-show-new-inset_ref.png
20241 scaleBeforeRotation
20246 A grey cross-reference box like this one:
20247 \begin_inset Graphics
20248 filename clipart/referenceQt4.png
20250 scaleBeforeRotation
20254 will be inserted and the cross-reference window appear showing all labels
20256 If you have multiple LyX-documents opened, choose the one you are working
20257 on from the drop-list at the top of the dialog.
20258 You can now sort the labels alphabetically and then choose one.
20259 At the position of the cross-reference box the float number will appear
20263 \begin_layout Standard
20264 It is recommended to use a protected space between the cross-reference name
20265 and its number to avoid line breaks between them.
20266 If a cross-reference refers to a non-existing label, you will see two question
20267 marks in the output instead of the reference.
20270 \begin_layout Standard
20271 You can change labels at any time by clicking on the label box.
20272 References to the changed label will automatically change its link to the
20273 new label text, so that you don't need to take care about this.
20276 \begin_layout Standard
20280 \begin_inset space ~
20284 \begin_inset space ~
20289 in the cross-reference window sets the cursor before the referred label.
20290 The button text changes then to Go
20291 \begin_inset space ~
20294 Back and you can use it to set the cursor back to the cross-reference.
20295 Right-clicking on a cross-reference box also sets the cursor before the
20296 referenced label but without a possibility to go back.
20299 \begin_layout Subsection
20300 Cross-Reference Formats
20301 \begin_inset CommandInset label
20303 name "sub:Cross-Reference-Formats"
20311 \begin_layout Plain Layout
20312 References ! Formats
20320 \begin_layout Standard
20321 There are six varieties of cross-references:
20324 \begin_layout Description
20325 <reference>: prints the float number, this is the default:
20326 \begin_inset CommandInset ref
20328 reference "fig:Two-distorted-images"
20335 \begin_layout Description
20336 (<reference>): prints the float number within two parentheses, this is the
20337 style normally used to reference formulas, especially when the reference
20339 \begin_inset Quotes eld
20343 \begin_inset Quotes erd
20347 \begin_inset CommandInset ref
20356 \begin_layout Description
20357 <page>: prints the page number: Page
20358 \begin_inset space ~
20362 \begin_inset CommandInset ref
20363 LatexCommand pageref
20364 reference "fig:Two-distorted-images"
20371 \begin_layout Description
20373 \begin_inset space ~
20377 \begin_inset space ~
20380 <page>: prints the text "on page" and the page number:
20381 \begin_inset CommandInset ref
20382 LatexCommand vpageref
20383 reference "fig:Two-distorted-images"
20390 \begin_layout Description
20392 \begin_inset space ~
20396 \begin_inset space ~
20400 \begin_inset space ~
20403 <page>: prints the float number, the text "on page", and the page number:
20405 \begin_inset CommandInset ref
20407 reference "fig:Two-distorted-images"
20414 \begin_layout Description
20416 \begin_inset space ~
20419 reference: prints a self defined cross-reference format.
20421 \begin_inset Note Greyedout
20424 \begin_layout Plain Layout
20429 This feature is only available when you have the LaTeX-package
20441 \begin_layout Standard
20442 Note that the style <page> won't print the page number if the label is on
20443 the previous, the same, or the next page.
20445 \begin_inset space \thinspace{}
20449 \begin_inset space \space{}
20453 \begin_inset Quotes eld
20461 \begin_inset Quotes erd
20467 \begin_layout Standard
20468 The number and current page of the referred document part in the output,
20469 is automatically calculated by LaTeX.
20470 The varieties are adjusted in the field
20474 of the cross-reference window, that appear when you click on the cross-referenc
20478 \begin_layout Subsection
20479 Automatic Reference Naming
20483 \begin_layout Plain Layout
20484 References ! Automatic Reference Naming
20492 \begin_layout Standard
20501 \begin_layout Plain Layout
20502 LaTeX-packages ! hyperref
20507 , that is enabled in the
20515 dialog, provides a very useful feature that cross-references automatically
20516 include the name of the referenced floats (or text parts like
20521 So you will save to write e.
20522 \begin_inset space \thinspace{}
20526 \begin_inset space \space{}
20530 \begin_inset Quotes eld
20534 \begin_inset Quotes erd
20537 before every reference to a figure.
20538 To use this feature, enable
20542 and insert this line to the LaTeX preamble:
20545 \begin_layout Standard
20561 \begin_layout Standard
20562 When you prefer other reference names than the default ones, for example
20563 you want instead of
20564 \begin_inset Quotes eld
20568 \begin_inset Quotes erd
20572 \begin_inset Quotes eld
20576 \begin_inset space \thinspace{}
20580 \begin_inset Quotes eld
20583 , you can redefine the name by inserting this to the preamble:
20586 \begin_layout Standard
20597 sectionautorefname}
20598 \begin_inset Newline newline
20605 \begin_layout Plain Layout
20619 \begin_layout Standard
20620 When you are using another document language than English, replace
20621 \begin_inset Newline newline
20636 , where *** is the name of the used language.
20639 \begin_layout Standard
20640 To get automatic names, but not for certain reference types, for example
20641 not for equations, use this preamble code:
20644 \begin_layout Standard
20652 \begin_inset Newline newline
20662 \begin_inset Newline newline
20673 equationautorefname}
20674 \begin_inset Newline newline
20681 \begin_layout Plain Layout
20697 \begin_layout Standard
20698 More about this topic can be found in
20703 \begin_inset CommandInset citation
20712 \begin_layout Standard
20713 \begin_inset Note Greyedout
20716 \begin_layout Plain Layout
20721 Automatic reference naming cannot be used when you use cross-references
20725 \begin_inset space ~
20730 style, as described in section
20731 \begin_inset space ~
20735 \begin_inset CommandInset ref
20737 reference "sub:Cross-Reference-Formats"
20749 \begin_layout Standard
20754 manual is an example where automatic reference naming is used.
20757 \begin_layout Subsection
20759 \begin_inset CommandInset label
20761 name "sub:Reference-Position"
20769 \begin_layout Plain Layout
20770 References ! Reference Position
20778 \begin_layout Standard
20787 \begin_layout Plain Layout
20788 LaTeX-packages ! hyperref
20801 dialog to link cross-references in the output, you will see that clicking
20802 on an image float reference jumps to the image label.
20803 The caption will be the first text part on the screen, so that you cannot
20804 see the image without scrolling.
20805 This is because the reference link anchor is placed at the position of
20807 With the use of the package
20815 \begin_layout Plain Layout
20816 LaTeX-packages ! hypcap
20821 , which is part of the LaTeX-package
20829 \begin_layout Plain Layout
20830 LaTeX-packages ! oberdiek
20835 , the link anchor is placed at the beginning of a float.
20836 To use this feature for figure floats, load
20840 in the document preamble with the line
20843 \begin_layout Standard
20848 usepackage[figure]{hypcap}
20851 \begin_layout Standard
20856 for all float types but this is not recommended for stability reasons.
20857 For more information, have a look at
20862 \begin_inset CommandInset citation
20871 \begin_layout Standard
20872 \begin_inset Note Greyedout
20875 \begin_layout Plain Layout
20884 has no effect for references to subfigures.
20892 \begin_layout Section
20894 \begin_inset CommandInset label
20896 name "sec:Float-Placement"
20904 \begin_layout Plain Layout
20913 \begin_layout Standard
20914 Right-clicking on a float-box opens a dialog where you can alter the placement
20915 options that LaTeX uses for positioning the float.
20916 \begin_inset Newline newline
20922 \begin_inset space ~
20927 is only useful for two-column documents: If you select it, the float will
20928 span across both columns on the page instead of being confined to just
20930 \begin_inset Newline newline
20936 \begin_inset space ~
20941 is used to rotate floats, see section
20942 \begin_inset CommandInset ref
20944 reference "sec:Rotated-Floats"
20951 \begin_layout Standard
20952 You can use one ore more of the following options in the float dialog to
20953 set the placement for a particular float when you uncheck the option
20956 \begin_inset space ~
20960 \begin_inset space ~
20968 \begin_layout Description
20970 \begin_inset space ~
20974 \begin_inset space ~
20977 possible try to place the float on the position where it is inserted
20980 \begin_layout Description
20982 \begin_inset space ~
20986 \begin_inset space ~
20989 page try to place the float on the top of the current page
20992 \begin_layout Description
20994 \begin_inset space ~
20998 \begin_inset space ~
21001 page try to place the float on the bottom of the current page
21004 \begin_layout Description
21006 \begin_inset space ~
21010 \begin_inset space ~
21013 floats try to place the float on an own page
21016 \begin_layout Standard
21017 The order of the above option is
21022 That means, if you use the default placement, LaTeX will first try out
21026 \begin_inset space ~
21030 \begin_inset space ~
21038 \begin_inset space ~
21042 \begin_inset space ~
21047 , and then the others.
21048 If you don't use the default, LaTeX will try only the checked options but
21050 If none of the 4 placements are possible the procedure is internally repeated
21051 but it is tried to put the float on the following page.
21054 \begin_layout Standard
21055 By default, each option has its own rules:
21058 \begin_layout Labeling
21059 \labelwidthstring 00.00.0000
21063 \begin_inset space ~
21067 \begin_inset space ~
21072 only floats occupying less than 70
21073 \begin_inset space \thinspace{}
21076 % of the page can be placed at the top of a page (
21085 \begin_layout Labeling
21086 \labelwidthstring 00.00.0000
21090 \begin_inset space ~
21094 \begin_inset space ~
21099 : only floats occupying less than 30
21100 \begin_inset space \thinspace{}
21103 % of the page can be placed at the bottom of a page.
21113 \begin_layout Labeling
21114 \labelwidthstring 00.00.0000
21118 \begin_inset space ~
21122 \begin_inset space ~
21127 : only if more than 50
21128 \begin_inset space \thinspace{}
21131 % of the page are occupied by floats, several floats can be set together
21142 \begin_layout Standard
21143 If you don't like these rules, you can ignore them by using the additional
21147 \begin_inset space ~
21151 \begin_inset space ~
21157 \begin_inset Newline newline
21160 You can also redefine the rules with LaTeX-commands that are given in parenthese
21161 s behind the rules description above.
21162 To increase for example the often too small default of the bottom-rule
21164 \begin_inset space \thinspace{}
21167 % of the page, add this line to your document preamble:
21170 \begin_layout Standard
21177 bottomfraction}{0.5}
21180 \begin_layout Standard
21181 Sometimes you might need, under all circumstances, a float to be placed
21182 exactly at the position where it is inserted.
21183 For this case you can use the option
21186 \begin_inset space ~
21192 Use this option very rarely and only if the document is nearly ready to
21194 Because the float is then no longer able to
21195 \begin_inset Quotes eld
21199 \begin_inset Quotes erd
21202 when you change your document and this will often destroy the page layout.
21205 \begin_layout Standard
21206 There are no placement options for text wrap floats, because they are always
21207 surrounded by the text of a certain paragraph.
21208 \begin_inset VSpace bigskip
21214 \begin_layout Standard
21215 Sometimes you have the problem that a float is placed at the top of a page
21216 while its corresponding section starts at the middle of the page, so that
21217 the reader could think the float is part of the previous section.
21218 To avoid this the LaTeX-command
21225 It suppresses a given float placement for the page where it is inserted
21226 and can therefore be used to avoid that floats could be set before a section
21228 To get this, add these commands to your document preamble:
21231 \begin_layout Standard
21241 \begin_inset Newline newline
21255 \begin_layout Standard
21256 You can define the same for all section headings, like chapters and subsections.
21257 This definition is not recommended to be used for small text parts like
21258 subsubsections because LaTeX may then have problems to find a suitable
21262 \begin_layout Standard
21263 \begin_inset VSpace bigskip
21266 In some cases it is required to have all figures/tables at the end of the
21268 For this purpose the LaTeX-package
21276 \begin_layout Plain Layout
21277 LaTeX-packages ! endfloat
21283 It puts all figure and table floats at the end of the document into own
21285 At the original float position a text hint like
21286 \begin_inset Quotes eld
21292 \begin_inset space ~
21298 \begin_inset Quotes erd
21302 The endfloat-package is loaded in the preamble with the line
21305 \begin_layout Standard
21310 usepackage[options]{endfloat}
21313 \begin_layout Standard
21314 There are various package options to format the created figure/table sections.
21315 For more information we refer to the
21320 \begin_inset CommandInset citation
21327 \begin_inset Newline newline
21331 \begin_inset Note Greyedout
21334 \begin_layout Plain Layout
21339 doesn't provide an automatic translation for the text hint, you have to
21340 do this manually, see section
21341 \begin_inset space ~
21345 \begin_inset CommandInset citation
21357 \begin_inset Newline newline
21361 \begin_inset Note Greyedout
21364 \begin_layout Plain Layout
21369 There is currently a bug in
21373 when the caption contains a German
21374 \begin_inset Quotes eld
21378 \begin_inset Quotes erd
21382 Use in this case the command
21383 \begin_inset Quotes eld
21393 \begin_inset Quotes erd
21396 in TeX-Code instead of
21397 \begin_inset Quotes eld
21401 \begin_inset Quotes erd
21412 \begin_layout Standard
21413 \begin_inset VSpace bigskip
21416 For more details about float placements, have a look at LaTeX books,
21417 \begin_inset CommandInset citation
21419 key "latexcompanion,latexguide,latexbook"
21426 \begin_layout Section
21428 \begin_inset CommandInset label
21430 name "sec:Rotated-Floats"
21438 \begin_layout Plain Layout
21447 \begin_layout Standard
21448 Especially for wide tables you might have floats rotated.
21449 To rotate a whole float including the caption, right-click on the float-box
21453 \begin_inset space ~
21461 \begin_layout Standard
21462 Rotated floats are always placed on its own page (or column, in case you
21463 have a multi-column document).
21464 You can let them span several columns using the float settings option
21467 \begin_inset space ~
21473 Floats are rotated so that you can read them from the outside margin.
21474 To force a certain rotation direction for all pages, you can add either
21483 to the document class options.
21486 \begin_layout Standard
21487 Referencing rotated floats is the same like for normal floats, the caption
21488 format is also the same: Table
21489 \begin_inset space ~
21493 \begin_inset CommandInset ref
21495 reference "tab:Rotated-table"
21499 is an example of a rotated table float.
21502 \begin_layout Standard
21503 \begin_inset Note Greyedout
21506 \begin_layout Plain Layout
21511 Not all DVI-viewers are able to display rotated floats.
21519 \begin_layout Standard
21520 \begin_inset Float table
21525 \begin_layout Plain Layout
21526 \begin_inset Caption
21528 \begin_layout Plain Layout
21529 \begin_inset CommandInset label
21531 name "tab:Rotated-table"
21543 \begin_layout Plain Layout
21545 \begin_inset Tabular
21546 <lyxtabular version="3" rows="1" columns="5">
21548 <column alignment="center" valignment="top" width="0">
21549 <column alignment="center" valignment="top" width="0">
21550 <column alignment="center" valignment="top" width="0">
21551 <column alignment="center" valignment="top" width="0">
21552 <column alignment="center" valignment="top" width="0">
21554 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21557 \begin_layout Plain Layout
21563 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21566 \begin_layout Plain Layout
21572 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21575 \begin_layout Plain Layout
21581 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21584 \begin_layout Plain Layout
21590 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21593 \begin_layout Plain Layout
21612 \begin_layout Section
21617 \begin_layout Plain Layout
21626 \begin_layout Standard
21627 Subfloats are for example used when a figure consists of several images.
21628 They are created by inserting a float to an existing float.
21629 The placement of the subfloats can be controlled like for paragraphs as
21631 \begin_inset space ~
21635 \begin_inset CommandInset ref
21637 reference "tab:Two-subtables-side"
21642 \begin_inset CommandInset ref
21644 reference "tab:Two-subtables-upon"
21651 \begin_layout Standard
21652 Referencing subfloats works as for normal floats: Table
21653 \begin_inset space ~
21657 \begin_inset CommandInset ref
21659 reference "tab:This-is-subtable-a"
21664 \begin_inset CommandInset ref
21666 reference "tab:This-is-subtable-b"
21670 are subtables of table
21671 \begin_inset space ~
21675 \begin_inset CommandInset ref
21677 reference "tab:Two-subtables-side"
21684 \begin_layout Standard
21685 \begin_inset Float table
21690 \begin_layout Plain Layout
21691 \begin_inset Caption
21693 \begin_layout Plain Layout
21694 \begin_inset CommandInset label
21696 name "tab:Two-subtables-side"
21700 Two subtables placed side by side.
21708 \begin_layout Plain Layout
21710 \begin_inset space \hfill{}
21714 \begin_inset Float table
21719 \begin_layout Plain Layout
21720 \begin_inset Caption
21722 \begin_layout Plain Layout
21723 \begin_inset CommandInset label
21725 name "tab:This-is-subtable-a"
21729 This is subtable a.
21737 \begin_layout Plain Layout
21739 \begin_inset Tabular
21740 <lyxtabular version="3" rows="1" columns="5">
21742 <column alignment="center" valignment="top" width="0">
21743 <column alignment="center" valignment="top" width="0">
21744 <column alignment="center" valignment="top" width="0">
21745 <column alignment="center" valignment="top" width="0">
21746 <column alignment="center" valignment="top" width="0">
21748 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21751 \begin_layout Plain Layout
21757 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21760 \begin_layout Plain Layout
21766 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21769 \begin_layout Plain Layout
21775 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21778 \begin_layout Plain Layout
21784 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21787 \begin_layout Plain Layout
21804 \begin_inset space \hfill{}
21808 \begin_inset Float table
21813 \begin_layout Plain Layout
21814 \begin_inset Caption
21816 \begin_layout Plain Layout
21817 \begin_inset CommandInset label
21819 name "tab:This-is-subtable-b"
21823 This is subtable b.
21831 \begin_layout Plain Layout
21833 \begin_inset Tabular
21834 <lyxtabular version="3" rows="1" columns="5">
21836 <column alignment="center" valignment="top" width="0">
21837 <column alignment="center" valignment="top" width="0">
21838 <column alignment="center" valignment="top" width="0">
21839 <column alignment="center" valignment="top" width="0">
21840 <column alignment="center" valignment="top" width="0">
21842 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21845 \begin_layout Plain Layout
21851 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21854 \begin_layout Plain Layout
21860 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21863 \begin_layout Plain Layout
21869 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21872 \begin_layout Plain Layout
21878 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21881 \begin_layout Plain Layout
21898 \begin_inset space \hfill{}
21909 \begin_layout Standard
21910 \begin_inset Float table
21915 \begin_layout Plain Layout
21916 \begin_inset Caption
21918 \begin_layout Plain Layout
21919 \begin_inset CommandInset label
21921 name "tab:Two-subtables-upon"
21925 Two subtables placed one upon the other.
21926 (a) table with 4 cells, (b) table with 5 cells.
21934 \begin_layout Plain Layout
21936 \begin_inset Float table
21941 \begin_layout Plain Layout
21942 \begin_inset Caption
21944 \begin_layout Plain Layout
21953 \begin_layout Plain Layout
21955 \begin_inset Tabular
21956 <lyxtabular version="3" rows="1" columns="4">
21958 <column alignment="center" valignment="top" width="0">
21959 <column alignment="center" valignment="top" width="0">
21960 <column alignment="center" valignment="top" width="0">
21961 <column alignment="center" valignment="top" width="0">
21963 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21966 \begin_layout Plain Layout
21972 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21975 \begin_layout Plain Layout
21981 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21984 \begin_layout Plain Layout
21990 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21993 \begin_layout Plain Layout
22012 \begin_layout Plain Layout
22014 \begin_inset Float table
22019 \begin_layout Plain Layout
22020 \begin_inset Caption
22022 \begin_layout Plain Layout
22031 \begin_layout Plain Layout
22033 \begin_inset Tabular
22034 <lyxtabular version="3" rows="1" columns="5">
22036 <column alignment="center" valignment="top" width="0">
22037 <column alignment="center" valignment="top" width="0">
22038 <column alignment="center" valignment="top" width="0">
22039 <column alignment="center" valignment="top" width="0">
22040 <column alignment="center" valignment="top" width="0">
22042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22045 \begin_layout Plain Layout
22051 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22054 \begin_layout Plain Layout
22060 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22063 \begin_layout Plain Layout
22069 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22072 \begin_layout Plain Layout
22078 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22081 \begin_layout Plain Layout
22105 \begin_layout Section
22106 Floats Side by Side
22110 \begin_layout Plain Layout
22111 Floats ! Side by side
22119 \begin_layout Standard
22120 To place floats side by side, like for Figure
22121 \begin_inset space ~
22125 \begin_inset CommandInset ref
22127 reference "fig:Float-left"
22132 \begin_inset CommandInset ref
22134 reference "fig:Float-right"
22143 In it two minipage boxes are inserted.
22147 \begin_layout Plain Layout
22148 Minipages are explained in section
22149 \begin_inset space ~
22153 \begin_inset CommandInset ref
22155 reference "sec:Minipages"
22164 The width is set to 45
22165 \begin_inset space \thinspace{}
22169 \begin_inset space \thinspace{}
22172 column% and the box alignment to
22177 The minipage boxes contain the image and the caption in the same way as
22178 they are in a float.
22179 The only difference is that the image unit
22182 \begin_inset space ~
22186 \begin_inset space ~
22191 is now calculated according to the width of the minipage boxes.
22194 \begin_layout Standard
22195 \begin_inset Float figure
22200 \begin_layout Plain Layout
22201 \begin_inset Box Frameless
22210 height_special "totalheight"
22213 \begin_layout Plain Layout
22215 \begin_inset Graphics
22216 filename clipart/mobius.eps
22219 scaleBeforeRotation
22226 \begin_layout Plain Layout
22227 \begin_inset Caption
22229 \begin_layout Plain Layout
22230 \begin_inset CommandInset label
22232 name "fig:Float-left"
22236 Float on the left side.
22247 \begin_inset space \hfill{}
22251 \begin_inset Box Frameless
22260 height_special "totalheight"
22263 \begin_layout Plain Layout
22265 \begin_inset Graphics
22266 filename clipart/platypus.eps
22269 scaleBeforeRotation
22276 \begin_layout Plain Layout
22277 \begin_inset Caption
22279 \begin_layout Plain Layout
22280 \begin_inset CommandInset label
22282 name "fig:Float-right"
22286 Float on the right side.
22299 \begin_layout Plain Layout
22308 \begin_layout Section
22313 \begin_layout Plain Layout
22314 Caption ! Formatting
22323 \begin_layout Plain Layout
22324 Floats ! Caption Formatting
22330 \begin_inset CommandInset label
22332 name "sec:Caption-Formatting"
22339 \begin_layout Standard
22344 environment is the default paragraph environment for
22349 On the LyX screen captions appear as label, e.
22350 \begin_inset space \thinspace{}
22354 \begin_inset space \space{}
22358 \begin_inset Quotes eld
22366 \begin_inset Quotes erd
22369 followed by the caption text.
22371 \begin_inset Quotes eld
22375 \begin_inset Quotes erd
22378 is the actual reference number.
22379 By default the label and the number are in the same font as the caption
22380 text and a colon follows the number to divide the label from the text.
22381 This caption format is not suitable for all document formats.
22385 \begin_layout Standard
22386 To change the default caption format, load the LaTeX-package
22394 \begin_layout Plain Layout
22395 LaTeX-packages ! caption
22400 in the document preamble with this line:
22403 \begin_layout Standard
22408 usepackage[format definition]{caption}
22411 \begin_layout Standard
22412 To have for example the label and the number in sans-serif bold font and
22413 the table captions always above the table like in this document, use the
22417 \begin_layout Standard
22422 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22425 \begin_layout Standard
22426 You can also define different caption formats for the different float types.
22427 In this case load the
22431 package without format specific options and define the different formats
22432 with the help of the command
22435 \begin_layout Standard
22440 captionsetup[float type]{format definition}
22443 \begin_layout Standard
22444 in the document preamble.
22445 For example the caption formats of Figure
22446 \begin_inset space ~
22450 \begin_inset CommandInset ref
22452 reference "fig:This-is-an-fig"
22457 \begin_inset space ~
22461 \begin_inset CommandInset ref
22463 reference "tab:This-is-an-tab"
22467 can be created using these commands in the document preamble:
22470 \begin_layout Standard
22475 usepackage[tableposition=top]{caption}
22478 \begin_inset Newline newline
22485 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22486 \begin_inset Newline newline
22493 \begin_layout Plain Layout
22501 captionsetup[figure]
22509 \begin_inset Newline newline
22514 captionsetup[table]{labelfont={bf,sf}}
22517 \begin_layout Standard
22518 \begin_inset Note Greyedout
22521 \begin_layout Plain Layout
22530 has no effect when a
22538 \begin_layout Plain Layout
22539 LaTeX-packages ! KOMA-Script
22544 document class is used.
22545 In this case the document class option
22557 \begin_layout Standard
22558 For more information about the package
22562 we refer to its documentation
22563 \begin_inset CommandInset citation
22572 \begin_layout Standard
22573 To change the label name from e.
22574 \begin_inset space \thinspace{}
22578 \begin_inset space \space{}
22582 \begin_inset Quotes eld
22586 \begin_inset Quotes erd
22590 \begin_inset Quotes eld
22594 \begin_inset Quotes erd
22597 use this preamble command:
22600 \begin_layout Standard
22607 fnum@figure}{Image~
22612 \begin_layout Standard
22619 inserts the figure number and
22622 \begin_inset Quotes eld
22628 \begin_inset Quotes erd
22631 creates a protected space.
22634 \begin_layout Standard
22635 \begin_inset VSpace bigskip
22646 \begin_layout Plain Layout
22647 LaTeX-packages ! KOMA-Script
22654 article (KOMA-Script)
22662 letter (KOMA-Script)
22666 report (KOMA-Script)
22669 \begin_inset space \thinspace{}
22672 ), you can alternatively to the
22680 's built-in command
22687 For example, to have the caption label in bold, add this command to your
22691 \begin_layout Standard
22696 setkomafont{captionlabel}{
22701 \begin_layout Standard
22702 For more information about
22713 \begin_inset CommandInset citation
22722 \begin_layout Standard
22726 \begin_layout Plain Layout
22730 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
22737 \begin_inset Note Note
22740 \begin_layout Plain Layout
22741 The caption format is changed only for this example.
22749 \begin_layout Standard
22750 \begin_inset Float figure
22756 \begin_layout Plain Layout
22758 \begin_inset Graphics
22759 filename clipart/mobius.eps
22762 scaleBeforeRotation
22769 \begin_layout Plain Layout
22770 \begin_inset Caption
22772 \begin_layout Plain Layout
22773 \begin_inset CommandInset label
22775 name "fig:This-is-an-fig"
22779 This is an example figure caption that is longer than one line to show the
22780 different caption format.
22781 Here a self-defined caption format is used.
22794 \begin_layout Standard
22798 \begin_layout Plain Layout
22802 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
22811 \begin_layout Standard
22812 \begin_inset Float table
22818 \begin_layout Plain Layout
22819 \begin_inset Caption
22821 \begin_layout Plain Layout
22822 \begin_inset CommandInset label
22824 name "tab:This-is-an-tab"
22828 This is an example table caption that is longer than one line to show the
22829 different caption format.
22830 Here the standard caption format for tables in this document is used.
22838 \begin_layout Plain Layout
22840 \begin_inset Tabular
22841 <lyxtabular version="3" rows="1" columns="5">
22843 <column alignment="center" valignment="top" width="0">
22844 <column alignment="center" valignment="top" width="0">
22845 <column alignment="center" valignment="top" width="0">
22846 <column alignment="center" valignment="top" width="0">
22847 <column alignment="center" valignment="top" width="0">
22849 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22852 \begin_layout Plain Layout
22858 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22861 \begin_layout Plain Layout
22867 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22870 \begin_layout Plain Layout
22876 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22879 \begin_layout Plain Layout
22885 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22888 \begin_layout Plain Layout
22907 \begin_layout Section
22912 \begin_layout Plain Layout
22913 Caption ! Placement
22922 \begin_layout Plain Layout
22923 Floats ! Caption Placement
22929 \begin_inset CommandInset label
22931 name "sec:Caption-Placement"
22938 \begin_layout Standard
22939 The common caption placement rule is:
22942 \begin_layout Description
22943 Figure: Caption is set below the figure
22946 \begin_layout Description
22947 Table: Caption is set above the table
22950 \begin_layout Standard
22951 Having the caption above the table is unfortunately not supported in LaTeX's
22953 That means if you are using the document classes
22969 there will be no space between the caption and the table.
22970 To insert the needed space, add the following option to the load command
22971 of the LaTeX-package
22975 in your document preamble
22979 \begin_layout Plain Layout
22981 \begin_inset space ~
22985 \begin_inset CommandInset ref
22987 reference "sec:Caption-Formatting"
22991 for more information of the package
23003 \begin_layout Standard
23009 \begin_layout Standard
23018 \begin_layout Plain Layout
23019 LaTeX-packages ! KOMA-Script
23026 article (KOMA-Script)
23034 letter (KOMA-Script)
23038 report (KOMA-Script)
23041 \begin_inset space \thinspace{}
23044 ), you can alternatively to the
23048 package set the document class option
23055 \begin_layout Standard
23056 \begin_inset VSpace bigskip
23059 It is also possible to set the caption beside a figure or table.
23060 To get this the LaTeX-package
23068 \begin_layout Plain Layout
23069 LaTeX-packages ! sidecap
23074 has to be loaded in the document preamble with the line
23077 \begin_layout Standard
23082 usepackage[option]{sidecap}
23085 \begin_layout Standard
23086 If you set no option, the caption is placed on the side of the outer page
23087 margin – to the right on odd pages, to the left on even pages.
23088 You can change the placement to inner margin with the option
23093 To force the placement always to the right or left, use the option
23104 \begin_layout Standard
23108 \begin_layout Plain Layout
23118 \begin_inset Note Note
23121 \begin_layout Plain Layout
23122 The following section will only be displayed when the LaTeX-package
23134 \begin_layout Standard
23135 To place in LyX the caption of a float on the side, it is necessary to add
23136 these commands to the document preamble:
23139 \begin_layout Standard
23145 \begin_layout Standard
23153 \begin_inset Newline newline
23160 \begin_layout Plain Layout
23176 \begin_inset Newline newline
23183 \begin_layout Plain Layout
23199 \begin_inset Newline newline
23206 \begin_layout Plain Layout
23217 renewenvironment{table}{
23224 \begin_layout Standard
23232 \begin_inset Newline newline
23239 \begin_layout Plain Layout
23255 \begin_inset Newline newline
23262 \begin_layout Plain Layout
23280 \begin_layout Standard
23288 \begin_inset Newline newline
23295 \begin_layout Plain Layout
23311 \begin_inset Newline newline
23318 \begin_layout Plain Layout
23334 \begin_inset Newline newline
23341 \begin_layout Plain Layout
23352 renewenvironment{figure}{
23359 \begin_layout Standard
23367 \begin_inset Newline newline
23374 \begin_layout Plain Layout
23390 \begin_inset Newline newline
23397 \begin_layout Plain Layout
23415 \begin_layout Standard
23421 \begin_layout Standard
23422 The commands allow you to redefine the floats so that the caption is set
23424 For figure floats use the command
23427 \begin_layout Standard
23435 \begin_layout Standard
23436 in TeX-Code before the float.
23437 Behind the float insert the command
23440 \begin_layout Standard
23448 \begin_layout Standard
23449 in TeX-Code to get back to the original float definition.
23452 \begin_layout Standard
23453 For table floats use the corresponding commands
23456 \begin_layout Standard
23470 \begin_layout Standard
23472 \begin_inset space ~
23476 \begin_inset CommandInset ref
23478 reference "fig:cap-beside-fig"
23483 \begin_inset space ~
23487 \begin_inset CommandInset ref
23489 reference "tab:cap-beside-tab"
23493 are examples where the caption is set beside.
23496 \begin_layout Standard
23497 You can see in the examples that the caption text appears at the top of
23498 the floats for table floats and at the bottom for figure floats.
23499 To change this, you can use the command
23502 \begin_layout Standard
23507 sidecaptionvpos{float type}{placement}
23510 \begin_layout Standard
23511 in the document preamble or in TeX-Code before the float.
23512 The float type is either
23520 , the placement can be
23521 \begin_inset Quotes eld
23529 \begin_inset Quotes erd
23533 \begin_inset Quotes eld
23541 \begin_inset Quotes erd
23545 \begin_inset Quotes eld
23553 \begin_inset Quotes erd
23557 To have for example the caption of figure floats vertically centered, use
23561 \begin_layout Standard
23566 sidecaptionvpos{figure}{c}
23569 \begin_layout Standard
23570 This was used for Figure
23571 \begin_inset space ~
23575 \begin_inset CommandInset ref
23577 reference "fig:cap-beside-fig-2"
23584 \begin_layout Standard
23585 \begin_inset VSpace medskip
23588 For more information about the package
23592 we refer to its documentation
23593 \begin_inset CommandInset citation
23602 \begin_layout Standard
23603 \begin_inset Note Greyedout
23606 \begin_layout Plain Layout
23619 \begin_layout Plain Layout
23620 LaTeX-packages ! hypcap
23625 , described in section
23626 \begin_inset space ~
23630 \begin_inset CommandInset ref
23632 reference "sub:Reference-Position"
23636 , has no effect on floats with the caption set beside.
23644 \begin_layout Standard
23648 \begin_layout Plain Layout
23660 \begin_layout Standard
23661 \begin_inset Float figure
23666 \begin_layout Plain Layout
23667 \begin_inset Graphics
23668 filename clipart/escher-lsd.eps
23670 scaleBeforeRotation
23677 \begin_layout Plain Layout
23678 \begin_inset Caption
23680 \begin_layout Plain Layout
23681 \begin_inset CommandInset label
23683 name "fig:cap-beside-fig"
23687 This is a caption beside a figure.
23700 \begin_layout Standard
23704 \begin_layout Plain Layout
23716 \begin_layout Standard
23717 \begin_inset Float table
23722 \begin_layout Plain Layout
23723 \begin_inset Caption
23725 \begin_layout Plain Layout
23726 \begin_inset CommandInset label
23728 name "tab:cap-beside-tab"
23732 This is a caption beside a table.
23740 \begin_layout Plain Layout
23741 \begin_inset Tabular
23742 <lyxtabular version="3" rows="4" columns="5">
23744 <column alignment="center" valignment="top" width="0">
23745 <column alignment="center" valignment="top" width="0">
23746 <column alignment="center" valignment="top" width="0">
23747 <column alignment="center" valignment="top" width="0">
23748 <column alignment="center" valignment="top" width="0">
23750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23753 \begin_layout Plain Layout
23759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23762 \begin_layout Plain Layout
23768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23771 \begin_layout Plain Layout
23777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23780 \begin_layout Plain Layout
23786 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23789 \begin_layout Plain Layout
23797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23800 \begin_layout Plain Layout
23806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23809 \begin_layout Plain Layout
23815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23818 \begin_layout Plain Layout
23824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23827 \begin_layout Plain Layout
23833 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23836 \begin_layout Plain Layout
23844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23847 \begin_layout Plain Layout
23853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23856 \begin_layout Plain Layout
23862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23865 \begin_layout Plain Layout
23871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23874 \begin_layout Plain Layout
23880 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23883 \begin_layout Plain Layout
23891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23894 \begin_layout Plain Layout
23900 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23903 \begin_layout Plain Layout
23909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23912 \begin_layout Plain Layout
23918 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23921 \begin_layout Plain Layout
23927 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23930 \begin_layout Plain Layout
23949 \begin_layout Standard
23953 \begin_layout Plain Layout
23965 \begin_layout Standard
23969 \begin_layout Plain Layout
23973 sidecaptionvpos{figure}{c}
23979 \begin_inset Float figure
23984 \begin_layout Plain Layout
23985 \begin_inset Graphics
23986 filename clipart/escher-lsd.eps
23988 scaleBeforeRotation
23995 \begin_layout Plain Layout
23996 \begin_inset Caption
23998 \begin_layout Plain Layout
23999 \begin_inset CommandInset label
24001 name "fig:cap-beside-fig-2"
24005 This is a vertically centered caption beside a figure.
24018 \begin_layout Standard
24022 \begin_layout Plain Layout
24034 \begin_layout Standard
24038 \begin_layout Plain Layout
24048 \begin_inset Note Note
24051 \begin_layout Plain Layout
24052 The following will be displayed when the LaTeX-package
24064 \begin_layout Standard
24065 You need to install the LaTeX-package
24069 to see the following part of this section in the output.
24072 \begin_layout Standard
24076 \begin_layout Plain Layout
24088 \begin_layout Section
24093 \begin_layout Plain Layout
24094 Floats ! Float Lists
24102 \begin_layout Standard
24103 Similar to the the table of contents where the sections of the document
24104 are listed, there are listings for all float types, like the figures of
24106 You can insert them via the
24108 Insert\SpecialChar \menuseparator
24110 \begin_inset space ~
24114 \begin_inset space ~
24122 \begin_layout Standard
24123 The list entries are the float captions or its short title, the float number,
24124 and the page number where they appear in the document.
24127 \begin_layout Standard
24128 You can find the list of figures and tables at the end of this document.
24131 \begin_layout Chapter
24135 \begin_layout Section
24140 \begin_layout Plain Layout
24149 \begin_layout Standard
24150 Notes are inserted with the toolbar button
24151 \begin_inset Graphics
24152 filename ../images/note-insert.png
24154 scaleBeforeRotation
24160 Insert\SpecialChar \menuseparator
24164 There are three types of notes:
24167 \begin_layout Description
24169 \begin_inset space ~
24172 Note This note type is for internal notes that won't appear in the output.
24173 Its note-box looks like this:
24174 \begin_inset Newline newline
24178 \begin_inset Newline newline
24182 \begin_inset Graphics
24183 filename clipart/LyXNoteImageQt4.png
24186 scaleBeforeRotation
24191 \begin_inset Note Note
24194 \begin_layout Plain Layout
24195 This is text in a note box that doesn't appear in the output.
24203 \begin_layout Description
24204 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24205 ent, when you export the document to LaTeX via the menu
24207 File\SpecialChar \menuseparator
24208 Export\SpecialChar \menuseparator
24209 LaTeX (pdflatex) / (plain)
24212 Its note-box looks like this:
24213 \begin_inset Newline newline
24217 \begin_inset Newline newline
24221 \begin_inset Graphics
24222 filename clipart/CommentNoteImageQt4.png
24225 scaleBeforeRotation
24230 \begin_inset Note Comment
24233 \begin_layout Plain Layout
24234 This is text in a note box that only appears as comment in LaTeX-files.
24242 \begin_layout Description
24244 \begin_inset space ~
24247 Out This note will appear in the output as grey text.
24248 Its note-box looks like this:
24249 \begin_inset Newline newline
24253 \begin_inset Newline newline
24257 \begin_inset Graphics
24258 filename clipart/GreyedOutNoteImageQt4.png
24261 scaleBeforeRotation
24266 \begin_inset Newline newline
24273 \begin_layout Plain Layout
24277 renewenvironment{lyxgreyedout}
24280 \begin_layout Plain Layout
24284 textcolor[gray]{0.8}
24294 \begin_inset Note Greyedout
24297 \begin_layout Plain Layout
24302 \begin_layout Plain Layout
24303 This is an example footnote within a greyed out note.
24308 of a comment that appears in the output as grey text.
24317 \begin_layout Plain Layout
24321 renewenvironment{lyxgreyedout}
24324 \begin_layout Plain Layout
24338 \begin_inset Note Note
24341 \begin_layout Plain Layout
24342 The greyed out note is here redefined to show it with the original LyX definitio
24343 n because greyed out notes are redefined in the preamble of this document,
24344 as described below, to have blue text.
24350 \begin_inset Newline newline
24354 \begin_inset Newline newline
24357 As you can see in the example, the first line of greyed out notes is a bit
24358 indented and greyed out notes can have footnotes.
24361 \begin_layout Standard
24362 \begin_inset VSpace bigskip
24365 When you use the toolbar button
24366 \begin_inset Graphics
24367 filename ../images/note-insert.png
24369 scaleBeforeRotation
24376 \begin_inset space ~
24382 You can switch between the five note types by right-clicking on the note-box.
24387 If you want to turn existing text into a note, mark it and click on the
24401 To change a note to text, press the backspace key when the cursor is in
24402 the first position of a note, or press the delete key when the cursor is
24403 in the very last position of the note, respectively.
24406 \begin_layout Standard
24407 \begin_inset VSpace bigskip
24410 You can change the text color of the greyed out notes in the preamble with
24411 the following command:
24414 \begin_layout Standard
24419 renewenvironment{lyxgreyedout}
24420 \begin_inset Newline newline
24427 \begin_layout Plain Layout
24445 \begin_layout Standard
24446 The available colors and the method to define own colors is explained in
24448 \begin_inset space ~
24452 \begin_inset CommandInset ref
24454 reference "sec:Colored-Tables"
24461 \begin_layout Standard
24462 Notes that appear in blue in this document are set using greyed out notes
24466 \begin_layout Section
24468 \begin_inset CommandInset label
24470 name "sec:Footnotes"
24478 \begin_layout Plain Layout
24488 \begin_layout Plain Layout
24497 \begin_layout Standard
24498 Footnotes can be inserted using the toolbar button
24499 \begin_inset Graphics
24500 filename ../images/footnote-insert.png
24502 scaleBeforeRotation
24508 Insert\SpecialChar \menuseparator
24520 then the following footnote-box:
24521 \begin_inset Graphics
24522 filename clipart/footnoteQt4.png
24524 scaleBeforeRotation
24532 where you can enter the footnote text.
24533 If you want to turn existing text into a footnote, mark it and click on
24555 to text, press the Backspace key when the cursor is in the first position
24564 , or press the Delete key when the cursor is in the very last position of
24576 \begin_layout Standard
24577 Here is an example footnote:
24585 \begin_layout Plain Layout
24586 \begin_inset CommandInset label
24588 name "foot:This-is-an"
24592 This is an example footnote.
24605 \begin_layout Plain Layout
24609 newcounter{MyRepeatFoot}
24612 \begin_layout Plain Layout
24616 setcounter{MyRepeatFoot}{
24626 \begin_layout Standard
24627 The footnote will appear in the output as a superscript number at the text
24628 position where the footnote box is placed.
24629 The footnote text is placed at the bottom of the current page.
24630 The footnote number is calculated by LaTeX, the numbers are consecutive.
24631 It depends on your document-class, if the footnote number is reset for
24635 \begin_layout Standard
24636 Footnotes can be referenced like floats: Insert a label into the footnote
24637 and cross-reference this label in the text as described in section
24638 \begin_inset space ~
24642 \begin_inset CommandInset ref
24644 reference "sec:Referencing-Floats"
24649 \begin_inset Newline newline
24652 This is a cross-reference of Footnote
24653 \begin_inset space ~
24657 \begin_inset CommandInset ref
24659 reference "foot:This-is-an"
24666 \begin_layout Standard
24667 \begin_inset VSpace defskip
24670 To use footnotes within tables, you have to use minipages, see section
24671 \begin_inset space ~
24675 \begin_inset CommandInset ref
24677 reference "sec:Minipages"
24682 Footnotes within longtables are described in section
24683 \begin_inset space ~
24687 \begin_inset CommandInset ref
24689 reference "sub:Footnotes-in-Longtables"
24696 \begin_layout Standard
24697 \begin_inset VSpace defskip
24700 To create only a mark for a footnote, use the command
24704 footnotemark[number]
24707 This is used when you have the same annotation several times in a text
24708 but doesn't want to print the footnote text every time.
24709 \begin_inset Newline newline
24712 As you don't know the number of the repeating footnote while you are writing
24713 the text, you have to store its number.
24714 For the following footnote mark example, these commands were inserted in
24715 TeX-Code behind Footnote
24716 \begin_inset space ~
24720 \begin_inset CommandInset ref
24722 reference "foot:This-is-an"
24726 to store the footnote number:
24729 \begin_layout Standard
24734 newcounter{MyRepeatFoot}
24735 \begin_inset Newline newline
24740 setcounter{MyRepeatFoot}{
24745 \begin_layout Standard
24746 The footnote mark was then created with this command:
24749 \begin_layout Standard
24759 \begin_layout Standard
24760 Here is an example footnote mark:
24768 \begin_layout Plain Layout
24782 \begin_layout Subsection
24784 \begin_inset CommandInset label
24786 name "sub:Footnote-Numbering"
24794 \begin_layout Plain Layout
24795 Footnotes ! Numbering
24803 \begin_layout Standard
24804 To reset the footnote number back to 1 after each section
24806 , add this command to your document preamble:
24809 \begin_layout Standard
24814 @addtoreset{footnote}{section}
24817 \begin_layout Standard
24818 \begin_inset VSpace bigskip
24821 The following preamble command changes the footnote numbering style to small
24825 \begin_layout Standard
24837 \begin_layout Standard
24841 \begin_layout Plain Layout
24854 This is a footnote with roman numbering:
24858 \begin_layout Plain Layout
24859 This is an example footnote with roman numbering.
24867 \begin_layout Standard
24868 To change the numbering style to capital roman numerals replace in the command
24883 \begin_inset Quotes eld
24887 \begin_inset Quotes erd
24890 footnotes with capital or small Latin letters use
24904 \begin_inset Quotes eld
24908 \begin_inset Quotes erd
24911 footnotes with symbols use
24920 \begin_layout Standard
24921 \begin_inset Note Greyedout
24924 \begin_layout Plain Layout
24929 You can only number 26 footnotes with Latin letters, because this numbering
24930 is limited to single letters.
24936 \begin_inset Newline newline
24940 \begin_inset Note Greyedout
24943 \begin_layout Plain Layout
24948 You can only number 9 footnotes with symbols.
24956 \begin_layout Standard
24957 To return to the default numbering style when you changed to another one,
24970 in the command above.
24974 \begin_layout Plain Layout
24990 \begin_layout Standard
24991 \begin_inset VSpace bigskip
24997 \begin_layout Standard
24998 If you want to have footnotes numbered in the scheme
24999 \begin_inset Quotes eld
25003 \begin_inset Quotes erd
25006 , add the following command to your document preamble:
25009 \begin_layout Standard
25014 numberwithin{footnote}{chapter}
25017 \begin_layout Standard
25018 To be able to use the command
25027 \begin_inset space ~
25032 in the document settings the option
25035 \begin_inset space ~
25039 \begin_inset space ~
25043 \begin_inset space ~
25051 \begin_layout Standard
25055 \begin_layout Plain Layout
25059 numberwithin{footnote}{chapter}
25064 This is another example footnote:
25070 \begin_layout Plain Layout
25071 This is a footnote numbered in the scheme
25072 \begin_inset Quotes eld
25076 \begin_inset Quotes erd
25090 \begin_layout Plain Layout
25106 \begin_layout Standard
25107 \begin_inset Note Greyedout
25110 \begin_layout Plain Layout
25121 always prints out the footnote number as arabic number; previous redefinitions
25122 to get non-arabic numbers are overwritten.
25130 \begin_layout Standard
25131 So to get for example the scheme
25132 \begin_inset Quotes eld
25138 \begin_inset Quotes erd
25141 , use this command instead of
25150 \begin_layout Standard
25164 \begin_layout Subsection
25169 \begin_layout Plain Layout
25170 Footnotes ! Placement
25178 \begin_layout Standard
25179 If you have several footnotes in one page, they appear without vertical
25180 space between them at the bottom of the page.
25181 To make them better readable you can e.
25182 \begin_inset space \thinspace{}
25186 \begin_inset space \space{}
25190 \begin_inset space \thinspace{}
25193 mm space with the following preamble command:
25196 \begin_layout Standard
25206 \begin_inset Newline newline
25220 \begin_layout Standard
25221 \begin_inset VSpace bigskip
25224 In a two-column document the footnotes appear at the bottom of every column,
25226 \begin_inset space ~
25230 \begin_inset CommandInset ref
25232 reference "fig:Standard-footnote-placement"
25237 If the footnotes should only appear at the bottom of the right column,
25239 \begin_inset space ~
25243 \begin_inset CommandInset ref
25245 reference "fig:Footnote-placement-in"
25249 , use the LaTeX-package
25257 \begin_layout Plain Layout
25258 LaTeX-packages ! ftnright
25263 with this command in the document preamble:
25266 \begin_layout Standard
25271 usepackage{ftnright}
25274 \begin_layout Standard
25275 \begin_inset Float figure
25281 \begin_layout Plain Layout
25285 \begin_layout Plain Layout
25295 \begin_inset Graphics
25296 filename clipart/without_fntright.pdf
25298 scaleBeforeRotation
25306 \begin_layout Plain Layout
25316 \begin_layout Plain Layout
25317 \begin_inset Caption
25319 \begin_layout Plain Layout
25320 \begin_inset CommandInset label
25322 name "fig:Standard-footnote-placement"
25326 Standard footnote placement in two-column documents.
25339 \begin_layout Standard
25340 \begin_inset Float figure
25346 \begin_layout Plain Layout
25350 \begin_layout Plain Layout
25360 \begin_inset Graphics
25361 filename clipart/with_fntright.pdf
25363 scaleBeforeRotation
25371 \begin_layout Plain Layout
25381 \begin_layout Plain Layout
25382 \begin_inset Caption
25384 \begin_layout Plain Layout
25385 \begin_inset CommandInset label
25387 name "fig:Footnote-placement-in"
25391 Footnote placement in two-column documents when the LaTeX-package
25408 \begin_layout Standard
25409 \begin_inset VSpace bigskip
25412 In some scientific literature it is usual to collect the footnotes and print
25413 them in a separate paragraph at the the end of a section, like in Figure
25414 \begin_inset space ~
25418 \begin_inset CommandInset ref
25420 reference "fig:Endnotes"
25425 They are then so called
25426 \begin_inset Quotes eld
25430 \begin_inset Quotes erd
25437 \begin_layout Plain Layout
25443 To use endnotes instead of footnotes in your document, load in the menu
25446 Document\SpecialChar \menuseparator
25447 Settings\SpecialChar \menuseparator
25453 \begin_inset space ~
25457 \begin_inset space ~
25463 To insert the collected footnotes, insert the command
25466 \begin_layout Standard
25474 \begin_layout Standard
25475 in TeX-Code at the the end of a section or chapter.
25478 \begin_layout Standard
25479 \begin_inset Float figure
25484 \begin_layout Plain Layout
25489 \begin_layout Plain Layout
25499 \begin_inset Graphics
25500 filename clipart/endnotes.pdf
25501 scaleBeforeRotation
25509 \begin_layout Plain Layout
25519 \begin_layout Plain Layout
25520 \begin_inset Caption
25522 \begin_layout Plain Layout
25523 \begin_inset CommandInset label
25525 name "fig:Endnotes"
25529 Endnotes – footnotes are printed in a separate paragraph at the end of sections
25543 \begin_layout Standard
25544 \begin_inset VSpace medskip
25547 The paragraph heading for the endnotes isn't automatically translated into
25548 the document language, this must be done manually.
25549 The following preamble command translate the default English name
25550 \begin_inset Quotes eld
25554 \begin_inset Quotes erd
25557 to the German translation
25558 \begin_inset Quotes eld
25562 \begin_inset Quotes erd
25568 \begin_layout Standard
25575 notesname}{Anmerkungen}
25578 \begin_layout Standard
25579 \begin_inset VSpace medskip
25582 The numbering of endnotes can be changed like the footnote numbering as
25583 described in section
25584 \begin_inset space ~
25588 \begin_inset CommandInset ref
25590 reference "sub:Footnote-Numbering"
25594 ; just replace the command
25607 To reset the endnote number use the command
25613 as described in section
25614 \begin_inset space ~
25618 \begin_inset CommandInset ref
25620 reference "sub:Footnote-Numbering"
25624 and replace the command parameter
25635 \begin_layout Standard
25636 To create only a mark for an endnote, use the command
25640 endnotemark[number]
25642 similar to the command
25648 , described in section
25649 \begin_inset space ~
25653 \begin_inset CommandInset ref
25655 reference "sec:Footnotes"
25662 \begin_layout Standard
25663 \begin_inset VSpace bigskip
25666 Footnotes can also be placed in the page margin and the footnote text alignment
25667 can be changed, see the LaTeX-package
25675 \begin_layout Plain Layout
25676 LaTeX-packages ! footmisc
25682 \begin_inset CommandInset citation
25688 for more information about this.
25691 \begin_layout Standard
25692 For various further footnote formatting issues have a look at LaTeX-books,
25694 \begin_inset CommandInset citation
25696 key "latexcompanion,latexguide,latexbook"
25703 \begin_layout Section
25708 \begin_layout Plain Layout
25709 Notes ! Margin Notes
25717 \begin_layout Standard
25718 Margin notes look and behave in LyX like footnotes.
25719 They are inserted via the menu
25721 Insert\SpecialChar \menuseparator
25723 \begin_inset space ~
25728 or the toolbar button
25729 \begin_inset Graphics
25730 filename ../images/marginalnote-insert.png
25732 scaleBeforeRotation
25747 \begin_inset Quotes eld
25751 \begin_inset Quotes erd
25754 appears where you can enter the text of the margin note.
25757 \begin_layout Standard
25758 At the side is an example margin note.
25763 \begin_inset Marginal
25766 \begin_layout Plain Layout
25767 This is a margin note.
25775 \begin_layout Standard
25776 Margin notes appear at the right side in single-sided documents.
25777 In double-sided documents they appear in the outer margin – left on even
25778 pages, right on odd pages.
25779 The text of margin notes is aligned opposite to the outer margin – right-aligne
25780 d when the note appears in the left margin.
25781 The first line of the margin note is placed at the position of the text
25782 line where it is inserted in the document.
25785 \begin_layout Standard
25786 \begin_inset VSpace bigskip
25789 To place the margin note in the inner margin, add the command
25792 \begin_layout Standard
25800 \begin_layout Standard
25801 in TeX-Code before a margin note.
25802 The new placement is valid for all following margin notes.
25807 \begin_layout Plain Layout
25817 \begin_inset Marginal
25820 \begin_layout Plain Layout
25821 This is a margin note in the inner margin.
25829 \begin_inset Newline newline
25835 \begin_inset Note Greyedout
25838 \begin_layout Plain Layout
25843 There is often not enough space in the inner margin so that the notes are
25844 not correctly displayed in the output.
25852 \begin_layout Standard
25853 To return to the default placement insert the command
25856 \begin_layout Standard
25864 \begin_layout Standard
25869 \begin_layout Plain Layout
25879 \begin_inset Note Greyedout
25882 \begin_layout Plain Layout
25887 The command is ignored when it is within a paragraph where also the command
25902 \begin_layout Standard
25903 \begin_inset VSpace bigskip
25910 \begin_inset Marginal
25913 \begin_layout Plain Layout
25914 AVeryLongMarginParWord that isn't hyphenated.
25922 Similar to the case described in section
25923 \begin_inset space ~
25927 \begin_inset CommandInset ref
25929 reference "sub:Multiple-Lines-in"
25933 , long words cannot be hyphenated when they are the first word in a margin
25935 To avoid this, insert 0
25936 \begin_inset space \thinspace{}
25939 pt horizontal space before the word
25944 \begin_inset Marginal
25947 \begin_layout Plain Layout
25948 \begin_inset space \hspace*{}
25952 AVeryLongMarginParWord that is hyphenated.
25960 \begin_layout Standard
25961 \begin_inset VSpace bigskip
25967 \begin_layout Standard
25968 \begin_inset Note Greyedout
25971 \begin_layout Plain Layout
25976 Margin notes can normally not be used inside tables, floats, and footnotes.
25984 \begin_layout Standard
25985 \begin_inset VSpace bigskip
25991 \begin_layout Standard
25995 \begin_layout Plain Layout
26005 \begin_inset Note Note
26008 \begin_layout Plain Layout
26009 The following section will only be displayed when the LaTeX-package
26021 \begin_layout Standard
26022 This restriction can be evaded by using the LaTeX-package
26030 \begin_layout Plain Layout
26031 LaTeX-packages ! marginnote
26037 By adding these two lines to your document preamble, the command used by
26038 LyX for margin notes is redefined to use the command provided by the
26045 \begin_layout Standard
26050 usepackage{marginnote}
26051 \begin_inset Newline newline
26063 \begin_layout Standard
26064 This is also used in this document because
26068 has another useful feature: You can set a vertical offset for the note.
26069 This is often needed when too many margin notes are too close together
26070 or for a better page layout.
26071 The offset is set in LyX as TeX-Code directly behind the margin note in
26075 \begin_layout Standard
26081 \begin_layout Standard
26082 where the offset is a length with one of the units listed in Table
26083 \begin_inset space ~
26087 \begin_inset CommandInset ref
26089 reference "tab:Units"
26094 A negative value shifts the note up, a positive value shifts it down.
26098 For example the margin note beside this text line is shifted up 1.5
26099 \begin_inset space \thinspace{}
26102 cm with the TeX-Code-command
26103 \begin_inset Quotes eld
26113 \begin_inset Quotes erd
26117 \begin_inset Marginal
26120 \begin_layout Plain Layout
26121 This margin note is shifted up 1.5
26122 \begin_inset space \thinspace{}
26125 cm from its original position.
26137 \begin_layout Plain Layout
26147 \begin_layout Standard
26148 \begin_inset VSpace medskip
26155 you can also change the alignment of the text in the margin note.
26156 For example the commands
26159 \begin_layout Standard
26166 raggedleftmarginnote}{
26169 \begin_inset Newline newline
26176 raggedrightmarginnote}{
26181 \begin_layout Standard
26182 set the alignment to centered.
26187 raggedleftmarginnote
26189 denotes margin notes that appear at the left side.
26196 \begin_layout Plain Layout
26202 raggedleftmarginnote}{
26207 \begin_layout Plain Layout
26213 raggedrightmarginnote}{
26221 \begin_inset Marginal
26224 \begin_layout Plain Layout
26225 The text of this margin note is centered.
26236 \begin_layout Standard
26243 raggedleftmarginnote}{
26246 \begin_inset Newline newline
26253 raggedrightmarginnote}{
26262 \begin_layout Plain Layout
26268 raggedleftmarginnote}{
26273 \begin_layout Plain Layout
26279 raggedrightmarginnote}{
26289 \begin_layout Standard
26290 \begin_inset VSpace medskip
26293 For the other features of
26297 we refer to its documentation
26298 \begin_inset CommandInset citation
26307 \begin_layout Standard
26308 \begin_inset VSpace bigskip
26311 You can adjust the layout of margin notes by changing its definition.
26312 To create for example a header for all margin notes with the underlined,
26313 sans-serif, and bold header text
26314 \begin_inset Quotes eld
26326 \begin_inset Quotes erd
26329 , add this to your document preamble:
26332 \begin_layout Standard
26342 \begin_inset Newline newline
26352 \begin_inset Newline newline
26359 \begin_layout Plain Layout
26376 underbar{Attention!}}}%
26377 \begin_inset Newline newline
26384 \begin_layout Plain Layout
26402 \begin_layout Standard
26409 \begin_layout Plain Layout
26420 \begin_layout Plain Layout
26431 \begin_layout Plain Layout
26439 underbar{Attention!}}}%
26442 \begin_layout Plain Layout
26456 \begin_inset Marginal
26459 \begin_layout Plain Layout
26460 This is a margin note with a defined heading.
26472 \begin_layout Plain Layout
26486 \begin_layout Plain Layout
26503 \begin_inset Note Note
26506 \begin_layout Plain Layout
26507 The margin note format is changed only for this example.
26515 \begin_layout Standard
26519 \begin_layout Plain Layout
26529 \begin_inset Note Note
26532 \begin_layout Plain Layout
26533 The following will be displayed when the LaTeX-package
26545 \begin_layout Standard
26546 You need to install the LaTeX-package
26550 to see the following part of this section in the output.
26553 \begin_layout Standard
26557 \begin_layout Plain Layout
26569 \begin_layout Chapter
26573 \begin_layout Section
26578 \begin_layout Plain Layout
26579 Boxes ! Introduction
26587 \begin_layout Standard
26588 Boxes are used to format a block of text.
26589 Boxes can be used to write documents with multiple languages, see section
26590 \begin_inset space ~
26594 \begin_inset CommandInset ref
26596 reference "sec:Minipages"
26600 , to frame texts, see section
26601 \begin_inset space ~
26605 \begin_inset CommandInset ref
26607 reference "sec:Decoration"
26611 , to prevent words to be hyphenated, see section
26612 \begin_inset space ~
26616 \begin_inset CommandInset ref
26618 reference "sec:Prevent-Hyphenation"
26622 , to align text, see section
26623 \begin_inset space ~
26627 \begin_inset CommandInset ref
26629 reference "sub:Vertical-Alignment"
26633 , or to set the background color of texts, see section
26634 \begin_inset space ~
26638 \begin_inset CommandInset ref
26640 reference "sec:Colored-Boxes"
26647 \begin_layout Standard
26648 Boxes can be inserted with the menu
26650 Insert\SpecialChar \menuseparator
26653 or the toolbar button
26654 \begin_inset Graphics
26655 filename ../images/box-insert.png
26657 scaleBeforeRotation
26662 A grey box with the label
26667 \begin_inset Graphics
26668 filename clipart/BoxInsetDefaultQt4.png
26670 scaleBeforeRotation
26675 The box type can be specified by right-clicking on the box.
26676 The appearing box dialog offers the
26679 \begin_inset space ~
26697 is the default for new boxes and is explained in section
26698 \begin_inset space ~
26702 \begin_inset CommandInset ref
26704 reference "sec:Minipages"
26712 is described in section
26713 \begin_inset space ~
26717 \begin_inset CommandInset ref
26719 reference "sec:Parboxes"
26726 \begin_layout Standard
26727 Boxes are not numbered and can therefore not be referenced like floats or
26731 \begin_layout Standard
26732 \begin_inset Note Greyedout
26735 \begin_layout Plain Layout
26740 Boxes must not be the item in an
26756 \begin_layout Standard
26757 \begin_inset Note Greyedout
26760 \begin_layout Plain Layout
26765 For an unknown reason you can only set the
26768 \begin_inset space ~
26777 when you use a framed box.
26781 \begin_inset space ~
26786 type and without frames are explained in section
26787 \begin_inset space ~
26791 \begin_inset CommandInset ref
26793 reference "sec:Prevent-Hyphenation"
26805 \begin_layout Section
26807 \begin_inset CommandInset label
26809 name "sec:Box-Dialog"
26817 \begin_layout Plain Layout
26826 \begin_layout Subsection
26831 \begin_layout Plain Layout
26840 \begin_layout Standard
26841 In the box dialog you can adjust the box geometry in the fields
26850 The available units for the geometry are explained in Table
26851 \begin_inset space ~
26855 \begin_inset CommandInset ref
26857 reference "tab:Units"
26866 offers the following additional sizes:
26869 \begin_layout Description
26870 Depth This is the plain text
26871 \begin_inset Quotes eld
26875 \begin_inset Quotes erd
26879 It ignores the total depth when there are multiple text lines in the box:
26880 \begin_inset Newline newline
26884 \begin_inset Newline newline
26888 \begin_inset Newline newline
26892 \begin_inset Box Boxed
26901 height_special "depth"
26904 \begin_layout Plain Layout
26906 Box height set to 1
26907 \begin_inset space \thinspace{}
26916 \begin_inset Newline newline
26920 \begin_inset Newline newline
26926 \begin_layout Description
26927 Height This is the height of the text that is inside the box.
26929 \begin_inset space \thinspace{}
26933 \begin_inset space \space{}
26936 2 for this size will set the box height to 2
26937 \begin_inset space ~
26940 times the text height:
26941 \begin_inset Box Boxed
26950 height_special "height"
26953 \begin_layout Plain Layout
26955 Box height set to 2
26956 \begin_inset space \thinspace{}
26967 \begin_layout Description
26969 \begin_inset space ~
26972 Height This is the Height
26973 \begin_inset space \thinspace{}
26977 \begin_inset space \thinspace{}
26981 \begin_inset Box Boxed
26990 height_special "totalheight"
26993 \begin_layout Plain Layout
26995 Box height set to 1
26996 \begin_inset space \thinspace{}
27000 \begin_inset space ~
27011 \begin_layout Description
27012 Width This sets the width of the box as height:
27013 \begin_inset Box Boxed
27022 height_special "width"
27025 \begin_layout Plain Layout
27027 Box height set to 1
27028 \begin_inset space \thinspace{}
27039 \begin_layout Subsection
27044 \begin_layout Plain Layout
27053 \begin_layout Standard
27054 When you have chosen an
27057 \begin_inset space ~
27062 , the vertical box alignment can be:
27065 \begin_layout Description
27066 Top This is an example text line.
27068 \begin_inset Box Boxed
27077 height_special "totalheight"
27080 \begin_layout Plain Layout
27082 This box is top-aligned.
27087 This is an example text line.
27090 \begin_layout Description
27091 Middle This is an example text line.
27093 \begin_inset Box Boxed
27102 height_special "totalheight"
27105 \begin_layout Plain Layout
27107 This box is middle-aligned.
27112 This is an example text line.
27115 \begin_layout Description
27116 Bottom This is an example text line.
27118 \begin_inset Box Boxed
27127 height_special "totalheight"
27130 \begin_layout Plain Layout
27132 This box is bottom-aligned.
27137 This is an example text line.
27140 \begin_layout Standard
27141 \begin_inset Note Greyedout
27144 \begin_layout Plain Layout
27149 The vertical box alignment can be lost in the output when you have two
27150 boxes in a line and one has e.
27151 \begin_inset space \thinspace{}
27155 \begin_inset space \space{}
27158 a shadow and the other one not.
27166 \begin_layout Standard
27167 The horizontal box alignment can be set via LyX's paragraph dialog when
27168 you set the box into its own paragraph.
27171 \begin_layout Standard
27172 \begin_inset VSpace bigskip
27175 When you have chosen an
27178 \begin_inset space ~
27183 , the box content can be aligned vertically to:
27186 \begin_layout Description
27187 top This is an example text line.
27189 \begin_inset Box Boxed
27198 height_special "totalheight"
27201 \begin_layout Plain Layout
27203 This box text is top-aligned.
27208 This is an example text line.
27211 \begin_layout Description
27212 middle This is an example text line.
27214 \begin_inset Box Boxed
27223 height_special "totalheight"
27226 \begin_layout Plain Layout
27228 This box text is middle-aligned.
27233 This is an example text line.
27236 \begin_layout Description
27237 bottom This is an example text line.
27239 \begin_inset Box Boxed
27248 height_special "totalheight"
27251 \begin_layout Plain Layout
27253 This box text is bottom-aligned.
27258 This is an example text line.
27261 \begin_layout Description
27262 stretch This is an example text line.
27264 \begin_inset Box Boxed
27273 height_special "totalheight"
27276 \begin_layout Plain Layout
27281 \begin_layout Plain Layout
27286 \begin_layout Plain Layout
27293 This is an example text line.
27296 \begin_layout Standard
27297 To stretch the box content, it must consist of more than one paragraph.
27298 In the example above every text line is in an own paragraph.
27301 \begin_layout Standard
27302 \begin_inset VSpace bigskip
27305 To align the box content horizontally you can use LyX's paragraph dialog
27306 when you have chosen an
27309 \begin_inset space ~
27317 \begin_layout Standard
27319 \begin_inset Box Boxed
27328 height_special "totalheight"
27331 \begin_layout Plain Layout
27336 \begin_layout Plain Layout
27341 \begin_layout Plain Layout
27351 \begin_layout Standard
27352 If you have not set an
27355 \begin_inset space ~
27360 , you can align the box content horizontally in the box dialog.
27363 \begin_layout Standard
27365 \begin_inset Box Boxed
27374 height_special "totalheight"
27377 \begin_layout Plain Layout
27379 This box text is horizontally stretched.
27387 \begin_layout Subsection
27389 \begin_inset CommandInset label
27391 name "sec:Decoration"
27399 \begin_layout Plain Layout
27408 \begin_layout Standard
27409 The type of the box can be specified in the box dialog in the drop-down
27415 The following types are possible:
27418 \begin_layout Description
27420 \begin_inset space ~
27424 \begin_inset space ~
27427 frame This draws a rectangular frame around the box.
27428 The frame line thickness has the size of
27436 \begin_inset Box Boxed
27445 height_special "totalheight"
27448 \begin_layout Plain Layout
27458 \begin_layout Description
27460 \begin_inset space ~
27464 \begin_inset space ~
27467 break When you use the decoration
27469 simple rectangular frame
27471 and no inner box, you can allow page breaks within a box.
27472 Note that then, in contrary to other framed boxes, the frame always uses
27473 the whole column width, the box is set as its own paragraph, and
27485 have no effect on this box type.
27486 The frame line thickness has the size of
27494 \begin_inset Box Framed
27503 height_special "totalheight"
27506 \begin_layout Plain Layout
27507 Allow page break box
27515 \begin_layout Description
27517 \begin_inset space ~
27521 \begin_inset space ~
27524 thin This draws an oval frame around the box.
27525 The frame line thickness has the size 0.4
27526 \begin_inset space \thinspace{}
27531 \begin_inset Box ovalbox
27540 height_special "totalheight"
27543 \begin_layout Plain Layout
27553 \begin_layout Description
27555 \begin_inset space ~
27559 \begin_inset space ~
27562 thick This draws an oval frame around the box.
27563 The frame line thickness has the size 0.8
27564 \begin_inset space \thinspace{}
27569 \begin_inset Box Ovalbox
27578 height_special "totalheight"
27581 \begin_layout Plain Layout
27591 \begin_layout Description
27593 \begin_inset space ~
27596 shadow This draws a rectangular frame with a shadow around the box.
27597 The frame line thickness has the size of
27603 , the shadow has a width of 4
27604 \begin_inset space \thinspace{}
27609 \begin_inset Box Shadowbox
27618 height_special "totalheight"
27621 \begin_layout Plain Layout
27631 \begin_layout Description
27633 \begin_inset space ~
27636 background This draws a box with red background color.
27637 In contrary to colored boxes
27641 \begin_layout Plain Layout
27643 \begin_inset space \thinspace{}
27647 \begin_inset CommandInset ref
27649 reference "sec:Colored-Boxes"
27658 , it always uses the whole column width and the box is set as its own paragraph.
27660 \begin_inset Box Shaded
27669 height_special "totalheight"
27672 \begin_layout Plain Layout
27673 Shaded background box
27681 \begin_layout Description
27683 \begin_inset space ~
27687 \begin_inset space ~
27690 frame This draws a double-line rectangular frame around the box.
27691 The line thickness of the inner frame is 0.75
27692 \begin_inset space \thinspace{}
27701 , the thickness of the outer frame is 1.5
27702 \begin_inset space \thinspace{}
27712 The distance between the lines is 1.5
27713 \begin_inset space \thinspace{}
27723 \begin_inset space \thinspace{}
27727 \begin_inset space \thinspace{}
27731 \begin_inset space \thinspace{}
27736 \begin_inset Box Doublebox
27745 height_special "totalheight"
27748 \begin_layout Plain Layout
27750 Double rectangular box
27758 \begin_layout Standard
27759 \begin_inset VSpace bigskip
27762 LyX's box label will reflect the different frame types.
27763 To be able to use all types, the LaTeX-package
27771 \begin_layout Plain Layout
27772 LaTeX-packages ! fancybox
27780 \begin_layout Section
27785 \begin_layout Plain Layout
27786 Boxes ! Customization
27794 \begin_layout Standard
27795 The default value for the size
27802 \begin_inset space \thinspace{}
27806 It can be changed with the following command in TeX-Code to e.
27807 \begin_inset space \thinspace{}
27811 \begin_inset space \space{}
27815 \begin_inset space \thinspace{}
27821 \begin_layout Standard
27831 \begin_layout Standard
27835 \begin_layout Plain Layout
27847 \begin_inset Box Boxed
27856 height_special "totalheight"
27859 \begin_layout Plain Layout
27861 Rectangular box with
27868 \begin_inset space \thinspace{}
27872 \begin_inset space \thinspace{}
27876 \begin_inset space \thinspace{}
27888 \begin_layout Plain Layout
27902 \begin_layout Standard
27903 \begin_inset VSpace bigskip
27906 The space between the frame and the box content is for all frame styles
27908 \begin_inset space \thinspace{}
27912 You can change it by setting the length
27919 For example the command
27922 \begin_layout Standard
27932 \begin_layout Standard
27933 sets the value to 10
27934 \begin_inset space \thinspace{}
27937 pt, like for the following box:
27940 \begin_layout Standard
27944 \begin_layout Plain Layout
27956 \begin_inset Box Boxed
27965 height_special "totalheight"
27968 \begin_layout Plain Layout
27970 Rectangular box with
27977 \begin_inset space \thinspace{}
27981 \begin_inset space \thinspace{}
27985 \begin_inset space \thinspace{}
27997 \begin_layout Plain Layout
28011 \begin_layout Standard
28012 \begin_inset VSpace bigskip
28015 The diameter of the round corners of the oval boxes can be set with the
28026 \begin_layout Standard
28034 \begin_layout Standard
28035 sets the diameter to 1
28036 \begin_inset space \thinspace{}
28043 \begin_layout Standard
28051 \begin_layout Standard
28052 sets the diameter to
28055 \begin_inset space \thinspace{}
28059 \begin_inset space \thinspace{}
28062 minimum(width and heigth of box)
28074 \begin_layout Standard
28078 \begin_layout Plain Layout
28088 \begin_inset Box Ovalbox
28097 height_special "totalheight"
28100 \begin_layout Plain Layout
28109 \begin_inset space \thinspace{}
28113 \begin_inset space \thinspace{}
28117 \begin_inset space \thinspace{}
28129 \begin_layout Plain Layout
28141 \begin_layout Standard
28142 \begin_inset VSpace bigskip
28145 The size of the shadow can be adjusted by changing the length
28153 \begin_inset space \thinspace{}
28156 pt for the following box by this command:
28159 \begin_layout Standard
28169 \begin_layout Standard
28173 \begin_layout Plain Layout
28185 \begin_inset Box Shadowbox
28194 height_special "totalheight"
28197 \begin_layout Plain Layout
28206 \begin_inset space \thinspace{}
28210 \begin_inset space \thinspace{}
28214 \begin_inset space \thinspace{}
28226 \begin_layout Plain Layout
28240 \begin_layout Standard
28241 \begin_inset VSpace bigskip
28247 \begin_layout Standard
28248 The default value for the size
28255 \begin_inset space \thinspace{}
28259 The default space between the note content and the frame is 9
28260 \begin_inset space \thinspace{}
28263 pt and can be changed with the value of
28270 For example the frame appearance of the following
28274 is set with the TeX-Code commands
28277 \begin_layout Standard
28285 \begin_inset Newline newline
28295 \begin_layout Standard
28299 \begin_layout Plain Layout
28308 \begin_layout Plain Layout
28320 \begin_inset Box Framed
28329 height_special "totalheight"
28332 \begin_layout Plain Layout
28346 \begin_layout Plain Layout
28355 \begin_layout Plain Layout
28369 \begin_layout Standard
28370 \begin_inset VSpace bigskip
28376 \begin_layout Standard
28381 boxes the default space between the box content and the box border is 3
28382 \begin_inset space \thinspace{}
28385 pt and can be changed with the value of
28392 The default background color red can either be changed locally with the
28397 definecolor{shadecolor}
28399 or globally with the menu
28401 Tools\SpecialChar \menuseparator
28402 Preferences\SpecialChar \menuseparator
28403 Colors\SpecialChar \menuseparator
28405 \begin_inset space ~
28417 command is explained in section
28418 \begin_inset space ~
28422 \begin_inset CommandInset ref
28424 reference "sec:Colored-Tables"
28432 \begin_layout Plain Layout
28439 requires the LaTeX-package
28443 in the preamble, see section
28444 \begin_inset space ~
28448 \begin_inset CommandInset ref
28450 reference "sec:Colored-Boxes"
28459 For example the appearance of the following shaded background box is set
28460 with the TeX-Code commands
28463 \begin_layout Standard
28473 \begin_inset Newline newline
28480 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28483 \begin_layout Standard
28487 \begin_layout Plain Layout
28496 \begin_layout Plain Layout
28500 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28506 \begin_inset Box Shaded
28515 height_special "totalheight"
28518 \begin_layout Plain Layout
28521 This is yellow text in a
28531 box with dark green background.
28540 \begin_layout Plain Layout
28549 \begin_layout Plain Layout
28553 definecolor{shadecolor}{rgb}{1,0,0}
28561 \begin_layout Standard
28562 \begin_inset VSpace bigskip
28565 Changed lengths and widths are valid for all boxes following the commands
28569 \begin_layout Section
28571 \begin_inset CommandInset label
28573 name "sec:Minipages"
28581 \begin_layout Plain Layout
28590 \begin_layout Standard
28591 Minipages are treated by LaTeX as pages within pages and can therefore for
28592 example have their own footnotes.
28595 \begin_layout Standard
28596 Minipages are useful when you write documents with different languages.
28599 \begin_layout Standard
28600 Below are two example minipages side by side.
28601 Their width is set to 45
28602 \begin_inset space \thinspace{}
28605 col% and they are separated by a horizontal fill, that was inserted via
28608 Insert\SpecialChar \menuseparator
28610 \begin_inset space ~
28613 Formatting\SpecialChar \menuseparator
28615 \begin_inset space ~
28621 \begin_inset Newpage newpage
28627 \begin_layout Standard
28628 \begin_inset Box Frameless
28637 height_special "totalheight"
28640 \begin_layout Plain Layout
28643 Dies ist ein deutscher Text.
28644 Dies ist ein deutscher Text.
28645 Dies ist ein deutscher Text.
28646 Dies ist ein deutscher Text.
28647 Dies ist ein deutscher Text.
28648 Dies ist ein deutscher Text.
28649 Dies ist ein deutscher Text.
28650 Dies ist ein deutscher Text.
28651 Dies ist ein deutscher Text.
28652 Dies ist ein deutscher Text.
28653 Dies ist ein deutscher Text.
28654 Dies ist ein deutscher Text.
28655 Dies ist ein deutscher Text
28659 \begin_layout Plain Layout
28662 Dies ist eine deutsche Fußnote.
28668 Dies ist ein deutscher Text.
28669 Dies ist ein deutscher Text.
28675 \begin_inset space \hfill{}
28679 \begin_inset Box Frameless
28688 height_special "totalheight"
28691 \begin_layout Plain Layout
28692 This is an English Text.
28693 This is an English Text.
28694 This is an English Text.
28695 This is an English Text.
28696 This is an English Text.
28697 This is an English Text.
28698 This is an English Text.
28699 This is an English Text.
28700 This is an English Text.
28701 This is an English Text.
28702 This is an English Text.
28703 This is an English Text.
28704 This is an English Text.
28705 This is an English Text.
28706 This is an English Text.
28707 This is an English Text.
28711 \begin_layout Plain Layout
28712 This is an English footnote.
28717 This is an English Text.
28726 \begin_layout Standard
28727 \begin_inset VSpace bigskip
28730 Another application for minipages are footnotes within tables.
28731 Due to a LaTeX restriction footnotes within tables doesn't appear at the
28732 bottom of the current page.
28733 But when you put the table with the footnote to a minipage, the footnote
28734 will appear at its bottom, numbered with Latin letters.
28735 The footnote number is reset to 1 in every minipage but not outside the
28739 \begin_layout Standard
28740 The footnote of this table doesn't appear:
28741 \begin_inset Tabular
28742 <lyxtabular version="3" rows="3" columns="4">
28744 <column alignment="center" valignment="top" width="0pt">
28745 <column alignment="center" valignment="top" width="0pt">
28746 <column alignment="center" valignment="top" width="0pt">
28747 <column alignment="center" valignment="top" width="0pt">
28749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28752 \begin_layout Plain Layout
28758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28761 \begin_layout Plain Layout
28767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28770 \begin_layout Plain Layout
28775 \begin_layout Plain Layout
28776 This is a footnote within a table.
28786 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28789 \begin_layout Plain Layout
28797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28800 \begin_layout Plain Layout
28806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28809 \begin_layout Plain Layout
28815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28818 \begin_layout Plain Layout
28824 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28827 \begin_layout Plain Layout
28835 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28838 \begin_layout Plain Layout
28844 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28847 \begin_layout Plain Layout
28853 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28856 \begin_layout Plain Layout
28862 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28865 \begin_layout Plain Layout
28879 \begin_layout Standard
28881 \begin_inset Box Frameless
28890 height_special "totalheight"
28893 \begin_layout Plain Layout
28895 \begin_inset Tabular
28896 <lyxtabular version="3" rows="3" columns="4">
28898 <column alignment="center" valignment="top" width="0pt">
28899 <column alignment="center" valignment="top" width="0pt">
28900 <column alignment="center" valignment="top" width="0pt">
28901 <column alignment="center" valignment="top" width="0pt">
28903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28906 \begin_layout Plain Layout
28912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28915 \begin_layout Plain Layout
28921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28924 \begin_layout Plain Layout
28929 \begin_layout Plain Layout
28930 This is a footnote within a table.
28940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28943 \begin_layout Plain Layout
28951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28954 \begin_layout Plain Layout
28960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28963 \begin_layout Plain Layout
28969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28972 \begin_layout Plain Layout
28978 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28981 \begin_layout Plain Layout
28989 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28992 \begin_layout Plain Layout
28998 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29001 \begin_layout Plain Layout
29007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29010 \begin_layout Plain Layout
29016 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29019 \begin_layout Plain Layout
29038 \begin_layout Standard
29039 \begin_inset VSpace bigskip
29042 The document-wide paragraph settings are ignored within minipages.
29043 That means that there will be no space between paragraphs in minipages
29044 although you set it to e.
29045 \begin_inset space \thinspace{}
29049 \begin_inset space \space{}
29056 in the document settings.
29059 \begin_layout Standard
29060 Minipages can also be used to set a background color for text parts, see
29062 \begin_inset space ~
29066 \begin_inset CommandInset ref
29068 reference "sub:Color-for-Paragraphs"
29075 \begin_layout Standard
29076 \begin_inset Note Greyedout
29079 \begin_layout Plain Layout
29084 You cannot have floats or margin notes inside minipages but minipages can
29085 be used inside tables, floats, and other boxes.
29093 \begin_layout Section
29095 \begin_inset CommandInset label
29097 name "sec:Parboxes"
29105 \begin_layout Plain Layout
29114 \begin_layout Standard
29115 Parboxes are very similar to minipages with the difference that they cannot
29117 The main difference to minipages is that minipages are in contrary to parboxes
29118 no real boxes but LaTeX-environments.
29121 \begin_layout Standard
29123 \begin_inset Box Frameless
29132 height_special "totalheight"
29135 \begin_layout Plain Layout
29136 This a text within a parbox.
29137 This a text within a parbox.
29140 \begin_layout Plain Layout
29141 This footnote won't appear:
29145 \begin_layout Plain Layout
29146 This footnote is inside a parbox and will therefore not appear.
29159 \begin_layout Section
29160 Boxes for Words and Characters
29164 \begin_layout Plain Layout
29165 Boxes ! for Characters
29173 \begin_layout Subsection
29174 Prevent Hyphenation
29175 \begin_inset CommandInset label
29177 name "sec:Prevent-Hyphenation"
29185 \begin_layout Plain Layout
29186 Boxes ! to Prevent Hyphenation
29194 \begin_layout Standard
29195 You can use a special kind of boxes to prevent words or text to be hyphenated.
29196 \begin_inset Newline newline
29199 Here is an example text:
29202 \begin_layout Standard
29203 This line is an example to show how you can prevent the hyphenation of
29204 \begin_inset Quotes eld
29208 \begin_inset Quotes erd
29214 \begin_layout Standard
29215 To prevent the hyphenation of the word
29216 \begin_inset Quotes eld
29220 \begin_inset Quotes erd
29226 \begin_layout Standard
29234 \begin_layout Standard
29235 in TeX-Code before the word.
29236 Behind the word insert a closing brace
29237 \begin_inset Quotes eld
29245 \begin_inset Quotes erd
29251 \begin_layout Standard
29252 This is the result:
29255 \begin_layout Standard
29256 This line is an example to show how you can prevent the hyphenation of
29260 \begin_layout Plain Layout
29270 \begin_inset Quotes eld
29274 \begin_inset Quotes erd
29281 \begin_layout Plain Layout
29291 \begin_layout Standard
29292 You can alternatively set the command
29293 \begin_inset Quotes eld
29303 \begin_inset Quotes grd
29306 as TeX-Code directly before the word:
29309 \begin_layout Standard
29310 This line is an example to show how you can prevent the hyphenation of
29311 \begin_inset Quotes eld
29318 \begin_layout Plain Layout
29328 \begin_inset Quotes erd
29334 \begin_layout Standard
29335 Of course the word now protrudes over the side margin.
29336 To avoid this, add via the menu
29338 Insert\SpecialChar \menuseparator
29340 \begin_inset space ~
29343 Formatting\SpecialChar \menuseparator
29345 \begin_inset space ~
29353 arg "newline-insert newline"
29356 ) a line break before the word:
29359 \begin_layout Standard
29360 This line is an example to show how you can prevent the hyphenation of
29361 \begin_inset Newline newline
29368 \begin_layout Plain Layout
29378 \begin_inset Quotes eld
29382 \begin_inset Quotes erd
29389 \begin_layout Plain Layout
29399 \begin_layout Subsection
29401 \begin_inset CommandInset label
29403 name "sub:Vertical-Alignment"
29411 \begin_layout Plain Layout
29412 Boxes ! for Vertical Alignment
29421 \begin_layout Plain Layout
29430 \begin_layout Standard
29431 With the help of the command
29437 you can align words, characters or other boxes vertically to the surrounding
29445 is used with the following scheme:
29448 \begin_layout Standard
29453 raisebox{lift}[height][depth]{box content}
29456 \begin_layout Standard
29457 The lift can be a positive value to raise the box or a negative value to
29461 \begin_layout Standard
29462 To align for example the word
29463 \begin_inset Quotes eld
29467 \begin_inset Quotes erd
29470 so that the bottom of the
29471 \begin_inset Quotes eld
29475 \begin_inset Quotes erd
29479 \begin_inset Quotes eld
29483 \begin_inset Quotes erd
29486 is at the baseline, insert the command
29489 \begin_layout Standard
29499 \begin_layout Standard
29500 in TeX-Code before the word.
29501 Behind the word insert a closing brace
29502 \begin_inset Quotes eld
29510 \begin_inset Quotes erd
29514 \begin_inset Newline newline
29517 This is the result:
29520 \begin_layout Standard
29521 This is a text line with the word
29525 \begin_layout Plain Layout
29537 \begin_inset Quotes eld
29541 \begin_inset Quotes erd
29548 \begin_layout Plain Layout
29558 \begin_layout Standard
29559 \begin_inset VSpace bigskip
29562 When you raise or lower characters in a line, the line distance will be
29566 \begin_layout Standard
29567 This is a text line with the word
29571 \begin_layout Plain Layout
29583 \begin_inset Quotes eld
29587 \begin_inset Quotes erd
29594 \begin_layout Plain Layout
29602 \begin_inset Newline newline
29605 This is a text line with the word
29609 \begin_layout Plain Layout
29619 \begin_inset Quotes eld
29623 \begin_inset Quotes erd
29630 \begin_layout Plain Layout
29640 \begin_layout Standard
29641 If you want to prevent this for a certain reason, set the box height to
29646 \begin_layout Standard
29656 \begin_layout Standard
29657 This is a text line with the word
29661 \begin_layout Plain Layout
29673 \begin_inset Quotes eld
29677 \begin_inset Quotes erd
29684 \begin_layout Plain Layout
29692 \begin_inset Newline newline
29695 This is a text line with the word
29699 \begin_layout Plain Layout
29703 raisebox{0.5cm}[0pt]{
29709 \begin_inset Quotes eld
29713 \begin_inset Quotes erd
29720 \begin_layout Plain Layout
29730 \begin_layout Section
29732 \begin_inset CommandInset label
29734 name "sec:Colored-Boxes"
29742 \begin_layout Plain Layout
29751 \begin_layout Subsection
29756 \begin_layout Plain Layout
29765 \begin_layout Standard
29766 To color the background of text the text must be put into a so called
29767 \begin_inset Quotes eld
29771 \begin_inset Quotes erd
29775 This requires that the LaTeX-package
29783 \begin_layout Plain Layout
29784 LaTeX-packages ! color
29789 is loaded in the document preamble with the command
29792 \begin_layout Standard
29797 @ifundefined{textcolor}
29798 \begin_inset Newline newline
29805 \begin_layout Plain Layout
29816 usepackage{color}}{}
29819 \begin_layout Standard
29824 will be loaded automatically by LyX when you color text
29828 \begin_layout Plain Layout
29829 To avoid that it is loaded twice the command
29843 \begin_layout Standard
29844 \begin_inset VSpace medskip
29847 Colorboxes are created with the command
29854 This will be used with the following scheme:
29857 \begin_layout Standard
29862 colorbox{color}{box content}
29865 \begin_layout Standard
29866 The box content can also be a box and colorboxes can also be within other
29870 \begin_layout Standard
29871 The following colors are predefined:
29872 \begin_inset Newline newline
29911 \begin_inset Newline newline
29914 You can also define your own color as described in section
29915 \begin_inset space ~
29919 \begin_inset CommandInset ref
29921 reference "sec:Colored-Tables"
29928 \begin_layout Standard
29930 \begin_inset space \thinspace{}
29934 \begin_inset space \space{}
29937 a red background for a word, insert the command
29940 \begin_layout Standard
29948 \begin_layout Standard
29949 before the word in TeX-Code.
29950 Behind the word insert a closing brace
29951 \begin_inset Quotes eld
29959 \begin_inset Quotes erd
29963 \begin_inset Newline newline
29966 This is the result:
29969 \begin_layout Standard
29970 This is a line where the word
29974 \begin_layout Plain Layout
29984 \begin_inset Quotes eld
29988 \begin_inset Quotes erd
29995 \begin_layout Plain Layout
30002 has a red background.
30005 \begin_layout Standard
30006 \begin_inset VSpace bigskip
30009 If you would have the box frame in a different color, you can use the command
30016 with the following scheme:
30019 \begin_layout Standard
30024 fcolorbox{frame color}{box color}{box content}
30027 \begin_layout Standard
30041 The frame thickness and the space between the frame and the box content
30042 can be adjusted with the lengths
30054 , respectively, as described in section
30055 \begin_inset space ~
30059 \begin_inset CommandInset ref
30061 reference "sec:Decoration"
30068 \begin_layout Standard
30069 For the following example the command
30072 \begin_layout Standard
30077 fcolorbox{cyan}{magenta}{
30080 \begin_layout Standard
30084 \begin_layout Standard
30085 Here is an example where the frame line thickness was set to 1
30086 \begin_inset space \thinspace{}
30090 \begin_inset Newline newline
30097 \begin_layout Plain Layout
30112 \begin_layout Plain Layout
30116 fcolorbox{cyan}{magenta}{
30121 This is text within a colored, framed box.
30125 \begin_layout Plain Layout
30135 \begin_layout Standard
30136 \begin_inset VSpace bigskip
30139 Of course you can also have colored text inside a colorbox:
30140 \begin_inset Newline newline
30147 \begin_layout Plain Layout
30151 fcolorbox{cyan}{magenta}{
30158 This is colored text within a colored, framed box.
30164 \begin_layout Plain Layout
30175 \begin_layout Plain Layout
30189 \begin_layout Standard
30192 \begin_inset VSpace medskip
30198 \begin_layout Standard
30199 \begin_inset Note Greyedout
30202 \begin_layout Plain Layout
30207 Text in colorboxes cannot have line breaks.
30208 To color multiple text lines or paragraphs, use a box inside a colorbox
30209 as described in the following.
30217 \begin_layout Subsection
30218 Color for Paragraphs
30219 \begin_inset CommandInset label
30221 name "sub:Color-for-Paragraphs"
30229 \begin_layout Plain Layout
30230 Color ! for Paragraphs
30238 \begin_layout Standard
30239 To set the background color for more than one text line, put the text into
30241 Before the minipage insert the
30250 \begin_layout Standard
30258 \begin_layout Standard
30260 Behind the minipage insert a closing brace
30261 \begin_inset Quotes eld
30269 \begin_inset Quotes erd
30275 \begin_layout Standard
30279 \begin_layout Plain Layout
30283 colorbox{lightgrey}{
30289 \begin_inset Box Frameless
30298 height_special "totalheight"
30301 \begin_layout Plain Layout
30302 This is text with background color.
30303 This is text with background color.
30306 \begin_layout Plain Layout
30307 \begin_inset VSpace defskip
30310 The text can have footnotes
30314 \begin_layout Plain Layout
30315 Another example footnote
30320 and can include tables and figures.
30323 \begin_layout Plain Layout
30325 \begin_inset Tabular
30326 <lyxtabular version="3" rows="3" columns="3">
30328 <column alignment="center" valignment="top" width="0">
30329 <column alignment="center" valignment="top" width="0">
30330 <column alignment="center" valignment="top" width="0">
30332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30335 \begin_layout Plain Layout
30341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30344 \begin_layout Plain Layout
30350 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30353 \begin_layout Plain Layout
30361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30364 \begin_layout Plain Layout
30370 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30373 \begin_layout Plain Layout
30375 \begin_inset Quotes erd
30383 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30386 \begin_layout Plain Layout
30394 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30397 \begin_layout Plain Layout
30403 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30406 \begin_layout Plain Layout
30412 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30415 \begin_layout Plain Layout
30435 \begin_layout Plain Layout
30445 \begin_layout Section
30446 Rotated and Scaled Boxes
30449 \begin_layout Standard
30450 To use the the commands described in this section, the LaTeX-package
30458 \begin_layout Plain Layout
30459 LaTeX-packages ! graphicx
30464 needs to be loaded in the document preamble with the command
30467 \begin_layout Standard
30472 @ifundefined{rotatebox}
30473 \begin_inset Newline newline
30480 \begin_layout Plain Layout
30491 usepackage{graphicx}}{}
30494 \begin_layout Standard
30495 \begin_inset Note Greyedout
30498 \begin_layout Plain Layout
30503 Some DVI-viewers can't display rotated or scaled material.
30511 \begin_layout Standard
30512 \begin_inset Note Greyedout
30515 \begin_layout Plain Layout
30520 Floats mustn't be inside a rotated or scaled box.
30528 \begin_layout Subsection
30533 \begin_layout Plain Layout
30543 \begin_layout Plain Layout
30553 \begin_layout Plain Layout
30563 \begin_layout Plain Layout
30564 Table Customization ! Rotating
30572 \begin_layout Standard
30573 To rotate material, you can put it into a rotated box.
30574 Such a box is created using the command
30580 in TeX-Code with the following scheme:
30583 \begin_layout Standard
30588 rotatebox[rotation origin]{rotation angle}{box content}
30591 \begin_layout Standard
30592 The rotation origin is specified in the form
30597 The following positions are possible:
30617 (top), and also expedient combinations of the four base positions.
30622 means, that the rotation origin is at the top left corner of the box.
30623 When no rotation origin is specified, the position
30628 The rotation angle is a number that can be negative that specifies the
30630 The rotation direction is counterclockwise.
30633 \begin_layout Standard
30634 In the following example the command
30638 rotatebox[origin=c]{60}{
30640 was inserted as TeX-Code before the text
30641 \begin_inset Quotes eld
30645 \begin_inset Quotes erd
30648 ; after the text the box was closed by a closing brace
30655 \begin_layout Standard
30660 \begin_layout Plain Layout
30664 rotatebox[origin=c]{60}{
30673 \begin_layout Plain Layout
30683 \begin_layout Standard
30684 The box content can also be another box or an inline formula:
30687 \begin_layout Standard
30692 \begin_layout Plain Layout
30696 rotatebox[origin=r]{-60}{
30702 \begin_inset Box Doublebox
30711 height_special "totalheight"
30714 \begin_layout Plain Layout
30724 \begin_layout Plain Layout
30735 \begin_layout Plain Layout
30739 rotatebox[origin=lb]{60}{
30745 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30752 \begin_layout Plain Layout
30762 \begin_layout Standard
30763 or an image or table:
30766 \begin_layout Standard
30771 \begin_layout Plain Layout
30775 rotatebox[origin=lb]{90}{
30781 \begin_inset Graphics
30782 filename clipart/platypus.eps
30792 \begin_layout Plain Layout
30799 with a rotated image
30803 \begin_layout Plain Layout
30807 rotatebox[origin=l]{-90}{
30813 \begin_inset Tabular
30814 <lyxtabular version="3" rows="2" columns="2">
30816 <column alignment="center" valignment="top" width="0">
30817 <column alignment="center" valignment="top" width="0">
30819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30822 \begin_layout Plain Layout
30828 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30831 \begin_layout Plain Layout
30839 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30842 \begin_layout Plain Layout
30848 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30851 \begin_layout Plain Layout
30866 \begin_layout Plain Layout
30876 \begin_layout Subsection
30881 \begin_layout Plain Layout
30891 \begin_layout Plain Layout
30901 \begin_layout Plain Layout
30911 \begin_layout Plain Layout
30912 Table Customization ! Scaling
30920 \begin_layout Standard
30921 To scale material the commands
30933 can be used as TeX-Code.
30936 \begin_layout Standard
30943 is used with the following scheme:
30946 \begin_layout Standard
30951 scalebox{horizontal}[vertical]{box content}
30954 \begin_layout Standard
30955 Horizontal and vertical are the corresponding scaling factors.
30956 If no vertical scaling factor is given, the horizontal factor will also
30957 be used as vertical one.
30960 \begin_layout Standard
30967 creates for example a double size
30971 \begin_layout Plain Layout
30984 \begin_layout Plain Layout
30991 , compared to the document text size.
30994 \begin_layout Standard
30999 scalebox{2}[1]{Hello}
31001 in contrary distorts the
31005 \begin_layout Plain Layout
31018 \begin_layout Plain Layout
31028 \begin_layout Standard
31029 If a the scaling factor is negative, the box content will be mirrored.
31030 Therefore the command
31034 scalebox{-1}[1]{Hello}
31036 can be used to create mirror writing:
31040 \begin_layout Plain Layout
31053 \begin_layout Plain Layout
31063 \begin_layout Standard
31068 scalebox{1}[-1]{Hello}
31074 \begin_layout Plain Layout
31087 \begin_layout Plain Layout
31097 \begin_layout Standard
31102 scalebox{-1}[1]{box content}
31104 there exists the command
31105 \begin_inset Newline newline
31112 reflectbox{box content}
31117 \begin_layout Standard
31118 \begin_inset VSpace bigskip
31127 is used to scale the box to a defined width and height.
31128 The command scheme is:
31131 \begin_layout Standard
31136 resizebox{width}{height}{box content}
31139 \begin_layout Standard
31140 Is one of the two command arguments given as exclamation mark
31144 , the size is set so that the aspect ratio of the box content is kept.
31147 \begin_layout Standard
31152 resizebox{2cm}{1cm}{Hello}
31158 \begin_layout Plain Layout
31162 resizebox{2cm}{1cm}{
31171 \begin_layout Plain Layout
31179 \begin_inset Newline newline
31186 resizebox{2cm}{!}{Hello}
31192 \begin_layout Plain Layout
31205 \begin_layout Plain Layout
31215 \begin_layout Standard
31216 \begin_inset VSpace bigskip
31220 \begin_inset Note Greyedout
31223 \begin_layout Plain Layout
31240 are set to zero, no LaTeX-errors occur when exporting the document but
31241 the exported files can not or only partly be displayed.
31249 \begin_layout Standard
31250 \begin_inset VSpace bigskip
31256 \begin_layout Standard
31257 The boxes can be combined in any order.
31259 \begin_inset space \thinspace{}
31263 \begin_inset space \space{}
31267 \begin_inset Newline newline
31274 rotatebox[origin=c]{-45}{
31278 reflectbox{Hello}}}
31279 \begin_inset Newline newline
31287 \begin_layout Standard
31292 \begin_layout Plain Layout
31296 rotatebox[origin=c]{-45}{
31309 \begin_layout Plain Layout
31319 \begin_layout Standard
31321 Images, tables, and inline formulas are allowed as box content:
31324 \begin_layout Standard
31329 \begin_layout Plain Layout
31333 rotatebox[origin=c]{-30}{
31343 \begin_inset Graphics
31344 filename clipart/platypus.eps
31354 \begin_layout Plain Layout
31365 \begin_layout Plain Layout
31369 rotatebox[origin=c]{-45}{
31379 \begin_inset Tabular
31380 <lyxtabular version="3" rows="2" columns="2">
31382 <column alignment="center" valignment="top" width="0">
31383 <column alignment="center" valignment="top" width="0">
31385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31388 \begin_layout Plain Layout
31394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31397 \begin_layout Plain Layout
31405 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31408 \begin_layout Plain Layout
31414 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31417 \begin_layout Plain Layout
31432 \begin_layout Plain Layout
31443 \begin_layout Plain Layout
31447 rotatebox[origin=c]{-45}{
31457 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31464 \begin_layout Plain Layout
31474 \begin_layout Standard
31475 When the global formula style
31479 is used in the document
31483 \begin_layout Plain Layout
31485 \begin_inset Quotes eld
31489 \begin_inset Quotes erd
31492 is added to the document class options.
31497 , also display formulas can be scaled.
31500 \begin_layout Chapter
31501 External Document Parts
31505 \begin_layout Plain Layout
31506 External Document Parts
31514 \begin_layout Standard
31517 Insert\SpecialChar \menuseparator
31520 you can insert external material to your document.
31524 \begin_layout Description
31526 \begin_inset space ~
31529 Document Another LyX document; its content is directly inserted to your
31533 \begin_layout Description
31535 \begin_inset space ~
31538 Text A text document; every of its text lines is inserted to your document
31542 \begin_layout Description
31544 \begin_inset space ~
31548 \begin_inset space ~
31552 \begin_inset space ~
31555 Lines A text document; its text lines are inserted as they are.
31556 Empty text lines creates a new paragraph in your document.
31559 \begin_layout Description
31561 \begin_inset space ~
31564 Material Files in various formats.
31567 \begin_layout Description
31569 \begin_inset space ~
31572 Document LyX or LaTeX-documents.
31575 \begin_layout Section
31580 \begin_layout Plain Layout
31581 External Document Parts ! External Material
31589 \begin_layout Standard
31590 The external material feature allows you to insert files to your document
31591 without converting them previously to a format that can be read by the
31592 document output format because LyX takes care of needed conversions.
31593 This is similar to images that can be inserted in various image formats
31595 When you have enabled Instant Preview in LyX's preferences under
31598 \begin_inset space ~
31602 \begin_inset space ~
31605 feel\SpecialChar \menuseparator
31608 , the external material types Dia and Xfig is directly shown in LyX.
31611 \begin_layout Standard
31612 External material can be inserted via the
31616 dialog that is accessible with the menu
31618 Insert\SpecialChar \menuseparator
31619 File\SpecialChar \menuseparator
31621 \begin_inset space ~
31627 Currently the following file types (
31634 \begin_layout Description
31635 ChessDiagram This template supports chess position diagrams made with the
31639 \begin_inset CommandInset href
31642 target "http://en.wikipedia.org/wiki/XBoard"
31651 \begin_layout Description
31652 Date This inserts the date in the form
31657 This is a date inserted as external material:
31658 \begin_inset External
31665 \begin_inset space ~
31669 \begin_inset Note Note
31672 \begin_layout Plain Layout
31673 Remove the protected space when bug 4398 is fixed!
31679 \begin_inset Newline newline
31682 The date is not shown within LyX, only in the output.
31683 There are two other methods of inserting a date: Via menu
31685 Insert\SpecialChar \menuseparator
31688 and with the LaTeX command
31695 The different methods are compared in Table
31696 \begin_inset space ~
31700 \begin_inset CommandInset ref
31702 reference "tab:Comparison-of-the"
31709 \begin_layout Description
31710 Dia This template supports diagrams created with the program
31713 \begin_inset CommandInset href
31716 target "http://en.wikipedia.org/wiki/Dia_(software)"
31725 \begin_layout Description
31726 LilyPond This template is used for music notation typeset with the program
31727 \begin_inset Newline linebreak
31733 \begin_inset CommandInset href
31736 target "http://en.wikipedia.org/wiki/LilyPond"
31745 \begin_layout Description
31746 PDFPages With this template you can insert PDF documents to your document.
31747 To insert certain or all pages of a PDF, use the
31757 LaTeX and LyX options
31759 tab according to the template description in the dialog.
31764 option is given, only the first page of the PDF will be inserted.
31767 \begin_layout Description
31768 RasterImage This can be used for bitmap images.
31769 Nearly all popular image formats are supported.
31770 The image can be treated in the
31774 dialog like the images that are usually included via the
31778 dialog as described in section
31779 \begin_inset space ~
31783 \begin_inset CommandInset ref
31785 reference "sec:Graphics-Dialog"
31790 The difference is that only raster images are allowed, that means that
31791 PDF and EPS-images are not supported.
31794 \begin_layout Description
31795 XFig This template supports images created with the program
31798 \begin_inset CommandInset href
31801 target "http://en.wikipedia.org/wiki/Xfig"
31810 \begin_layout Standard
31811 \begin_inset Float table
31817 \begin_layout Plain Layout
31818 \begin_inset Caption
31820 \begin_layout Plain Layout
31821 \begin_inset CommandInset label
31823 name "tab:Comparison-of-the"
31827 Comparison of the date input methods.
31835 \begin_layout Plain Layout
31837 \begin_inset Tabular
31838 <lyxtabular version="3" rows="4" columns="4">
31840 <column alignment="center" valignment="top" width="0">
31841 <column alignment="center" valignment="top" width="0">
31842 <column alignment="center" valignment="top" width="0">
31843 <column alignment="center" valignment="top" width="0">
31845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31848 \begin_layout Plain Layout
31854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31857 \begin_layout Plain Layout
31860 External Material\SpecialChar \menuseparator
31866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31869 \begin_layout Plain Layout
31872 Insert\SpecialChar \menuseparator
31878 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31881 \begin_layout Plain Layout
31893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31896 \begin_layout Plain Layout
31902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31905 \begin_layout Plain Layout
31911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31914 \begin_layout Plain Layout
31920 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31923 \begin_layout Plain Layout
31924 as TeX-Code inset box
31931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31934 \begin_layout Plain Layout
31940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31943 \begin_layout Plain Layout
31949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31952 \begin_layout Plain Layout
31958 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31961 \begin_layout Plain Layout
31969 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31972 \begin_layout Plain Layout
31978 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31981 \begin_layout Plain Layout
31987 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31990 \begin_layout Plain Layout
31996 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31999 \begin_layout Plain Layout
32018 \begin_layout Standard
32019 When you use the option
32031 dialog, only the path to the inserted file is shown in the output.
32032 \begin_inset Newline newline
32035 External material is displayed in LyX either as box like this:
32036 \begin_inset Graphics
32037 filename clipart/ExternalMaterialQt4.png
32039 scaleBeforeRotation
32043 or as image, depending on the option
32049 LaTeX and LyX options
32054 \begin_layout Standard
32061 manual explains how you can define your own templates.
32064 \begin_layout Section
32066 \begin_inset CommandInset label
32068 name "sec:Child-Documents"
32076 \begin_layout Plain Layout
32077 External Document Parts ! Child Documents
32086 \begin_layout Plain Layout
32095 \begin_layout Standard
32096 Child documents are used when you have a long document consisting of several
32097 larger parts or sections.
32098 For maintenance it is often useful and sometimes even required to split
32099 the document in several files that can be revised separately.
32100 The different documents are then the so called child documents and a master
32101 document connects them to print the full document or parts of it.
32102 A child documents inherits contents of its master, for example the LaTeX
32103 preamble, the bibliography, and labels for cross-references.
32106 \begin_layout Standard
32107 To be able to work on child documents without the need to open its master,
32108 specify in the child document the master in the menu
32110 Document\SpecialChar \menuseparator
32111 Settings\SpecialChar \menuseparator
32113 \begin_inset space ~
32119 This master document will then be used in the background by LyX when you
32120 edit the child document.
32123 \begin_layout Standard
32124 Included documents are displayed in LyX as a box like this:
32125 \begin_inset Graphics
32126 filename clipart/ChildDocumentQt4.png
32128 scaleBeforeRotation
32132 To include child documents to a master document use the menu
32134 Insert\SpecialChar \menuseparator
32135 File\SpecialChar \menuseparator
32137 \begin_inset space ~
32143 A dialog pops up where you can choose between four include methods:
32146 \begin_layout Description
32147 Include You can include LyX and LaTeX-documents.
32156 dialog, the included documents will be opened in LyX in a new file tab
32157 so that you can modify it.
32158 \begin_inset Newline newline
32164 \begin_layout Standard
32165 Here is a child document inserted using
32170 \begin_inset CommandInset include
32171 LatexCommand include
32172 filename "DummyDocument1.lyx"
32179 \begin_layout Standard
32180 The section numbering includes the sections of the included files in the
32181 order they are inserted in the master document.
32182 The included example document has for example a subsection that is numbered
32183 as subsection of this section.
32184 Labels of included documents can be referenced: Subsection
32185 \begin_inset space ~
32189 \begin_inset CommandInset ref
32191 reference "sub:External-Subsection-1"
32198 \begin_layout Standard
32199 The preamble of the child document is ignored, only the preamble of the
32200 master document is used.
32201 Branches in child documents will be ignored by the master document when
32202 the master document does not have a branch with the same name.
32203 Included documents are inserted starting on a new page and end with a page
32207 \begin_layout Standard
32208 In case you are only working on a certain chapter of a large document and
32209 want to save compiling time, you can put each included file into a branch.
32213 \begin_layout Plain Layout
32214 Branches are described in section
32227 By enabling/disabling branches you can decide what included files will
32228 appear in the output.
32231 \begin_layout Standard
32232 \begin_inset Note Greyedout
32235 \begin_layout Plain Layout
32240 Due to a bug in LyX the LaTeX command
32246 can currently not be used as alternative to decide what files should be
32255 \begin_layout Standard
32256 \begin_inset Note Greyedout
32259 \begin_layout Plain Layout
32264 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
32265 w the document in case that the child document uses another document class
32266 than the master document as this will lead to unexpected outputs.
32274 \begin_layout Description
32275 Input This method is very similar to the Include method.
32276 The differences are:
32280 \begin_layout Itemize
32281 Input files don't start with a new page and don't end with a page break.
32284 \begin_layout Itemize
32285 Input files can be previewed in LyX when
32288 \begin_inset space ~
32293 is enabled in LyX's preferences under
32296 \begin_inset space ~
32300 \begin_inset space ~
32303 feel\SpecialChar \menuseparator
32309 \begin_layout Itemize
32320 \begin_layout Standard
32321 Here is a child document inserted using
32326 \begin_inset CommandInset include
32328 filename "DummyDocument2.lyx"
32335 \begin_layout Description
32336 Verbatim With this method every text file can be included.
32337 The file is shown in the output with its source code, no command used in
32338 the text is invoked.
32339 You can use the option
32341 Mark spaces in output
32343 that displays the character
32344 \begin_inset Quotes eld
32351 \begin_layout Plain Layout
32361 \begin_inset Quotes erd
32364 for every space character in the source code.
32365 The difference to the method via the menu
32367 Insert\SpecialChar \menuseparator
32368 File\SpecialChar \menuseparator
32370 \begin_inset space ~
32375 is that the document content is not shown in LyX.
32378 \begin_layout Standard
32379 Here is a child document inserted as Verbatim:
32380 \begin_inset CommandInset include
32381 LatexCommand verbatiminput
32382 filename "DummyTextDocument.txt"
32387 \begin_inset VSpace bigskip
32390 Here is a child document inserted as Verbatim using the
32392 Mark spaces in output
32395 \begin_inset CommandInset include
32396 LatexCommand verbatiminput*
32397 filename "DummyTextDocument.txt"
32404 \begin_layout Standard
32405 \begin_inset VSpace bigskip
32411 \begin_layout Standard
32412 \begin_inset Note Greyedout
32415 \begin_layout Plain Layout
32420 As you can see in the examples above, the text of the documents included
32425 is not broken at the end of the document lines.
32433 \begin_layout Description
32434 Listings This type is described in chapter
32435 \begin_inset space ~
32439 \begin_inset CommandInset ref
32441 reference "cha:Program-Code-Listings"
32448 \begin_layout Standard
32449 \begin_inset Note Greyedout
32452 \begin_layout Plain Layout
32457 Including the same document twice in a document using different methods
32458 could cause LaTeX-problems.
32466 \begin_layout Chapter
32467 Program Code Listings
32468 \begin_inset CommandInset label
32470 name "cha:Program-Code-Listings"
32478 \begin_layout Plain Layout
32488 \begin_layout Plain Layout
32498 \begin_layout Plain Layout
32507 \begin_layout Standard
32508 To include and typeset program code you can use the
32512 inset that can be inserted via the menu
32514 Insert\SpecialChar \menuseparator
32526 \begin_layout Plain Layout
32527 LaTeX-packages ! listings
32532 provides a powerful and flexible way to insert program source code to your
32536 \begin_layout Standard
32537 Right-clicking on a listings inset opens the context menu containing where
32538 you can set the listings format.
32541 \begin_layout Standard
32542 By default, a listing starts a new paragraph in the output.
32543 The placement option
32546 \begin_inset space ~
32551 prints the listing inline like this:
32552 \begin_inset listings
32553 lstparams "language={C++}"
32557 \begin_layout Plain Layout
32565 \begin_inset Newline newline
32572 creates a listings float where you can specify the placement options
32573 \begin_inset Quotes eld
32581 \begin_inset Quotes erd
32585 \begin_inset Quotes eld
32593 \begin_inset Quotes erd
32597 \begin_inset Quotes eld
32605 \begin_inset Quotes erd
32609 \begin_inset Quotes eld
32617 \begin_inset Quotes erd
32620 corresponding to the float placement options described in section
32621 \begin_inset space ~
32625 \begin_inset CommandInset ref
32627 reference "sec:Float-Placement"
32632 The placement options can be mixed and are inserted without any separation,
32634 \begin_inset space \thinspace{}
32638 \begin_inset space \space{}
32642 \begin_inset Quotes eld
32650 \begin_inset Quotes erd
32655 \begin_inset Quotes eld
32659 \begin_inset Quotes erd
32662 has sometimes no effect, but you don't need to use the
32666 option in this case as also non-float listings can have captions and be
32670 \begin_layout Standard
32671 You can add captions to listings with the menu
32673 Insert\SpecialChar \menuseparator
32677 Listings can be referenced like floats: Listing
32678 \begin_inset space ~
32682 \begin_inset CommandInset ref
32684 reference "lst:Example-Listing"
32691 \begin_layout Standard
32692 \begin_inset listings
32693 lstparams "language=Python"
32697 \begin_layout Plain Layout
32699 \begin_inset Caption
32701 \begin_layout Plain Layout
32702 \begin_inset CommandInset label
32704 name "lst:Example-Listing"
32708 Example Listing float
32713 # Example listing float
32716 \begin_layout Plain Layout
32721 \begin_layout Plain Layout
32723 'this is a python function'
32726 \begin_layout Plain Layout
32736 \begin_layout Standard
32737 When you have set a programming language in the listings dialog, the keywords
32738 of this language will be recognized and specially typeset in the output.
32739 In the example listings the Python keyword
32740 \begin_inset Quotes eld
32744 \begin_inset Quotes erd
32747 is recognized and printed bold in the output.
32750 \begin_layout Standard
32751 \begin_inset Note Greyedout
32754 \begin_layout Plain Layout
32759 If you don't get bold keywords when using typewriter fonts, your
32763 font probably doesn't provide a bold shape.
32764 In this case select a different one in the menu
32766 Document\SpecialChar \menuseparator
32767 Settings\SpecialChar \menuseparator
32779 provide bold shapes.)
32787 \begin_layout Standard
32791 \begin_inset space ~
32796 of the listings dialog you can specify the line numbering style.
32797 You can insert a number to specify which lines are numbered to the field
32804 \begin_inset space \thinspace{}
32808 \begin_inset space \space{}
32812 \begin_inset Quotes eld
32816 \begin_inset Quotes erd
32819 , only every 3rd line will be numbered.
32822 \begin_layout Standard
32823 You can furthermore specify a range of lines, only these will then appear
32827 Extended character table
32829 should be used when you use national characters like the German umlauts
32831 \begin_inset Newline newline
32834 Here is an example listing with left line numbering, step
32835 \begin_inset Quotes eld
32839 \begin_inset Quotes erd
32843 \begin_inset Quotes eld
32847 \begin_inset Quotes erd
32851 \begin_inset Quotes eld
32854 Extended character table
32855 \begin_inset Quotes erd
32859 \begin_inset Quotes eld
32863 \begin_inset space ~
32867 \begin_inset space ~
32871 \begin_inset Quotes erd
32875 \begin_inset space \thinspace{}
32879 \begin_inset space \thinspace{}
32885 \begin_layout Standard
32886 \begin_inset listings
32887 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
32891 \begin_layout Plain Layout
32896 \begin_layout Plain Layout
32898 'this is a python function'
32901 \begin_layout Plain Layout
32906 \begin_layout Plain Layout
32911 \begin_layout Plain Layout
32913 'This is a German word: Tschüß'
32916 \begin_layout Plain Layout
32921 \begin_layout Plain Layout
32926 \begin_layout Plain Layout
32928 'this is a python function'
32931 \begin_layout Plain Layout
32941 \begin_layout Standard
32942 When you have tabulators in your listing, you can specify the number of
32943 characters that are spanned by a tabulator in the field
32946 \begin_inset space ~
32954 \begin_layout Standard
32955 \begin_inset Note Greyedout
32958 \begin_layout Plain Layout
32963 Due to a bug in the
32967 package the line numbering is shifted by a line by every previous listing.
32968 That's the reason why the lines 2 and 5 are numbered in the above listing
32969 and not the lines 3 and 6.
32977 \begin_layout Standard
32978 \begin_inset VSpace bigskip
32984 \begin_layout Standard
32985 It is also possible to print lines from a file as listing.
32986 To do this, use the menu
32988 Insert\SpecialChar \menuseparator
32989 File\SpecialChar \menuseparator
32992 and choose the type
33000 \begin_layout Plain Layout
33001 The other child document types are described in section
33002 \begin_inset space ~
33006 \begin_inset CommandInset ref
33008 reference "sec:Child-Documents"
33017 In the child document dialog you can specify the listing parameters in
33019 To show a list of all available parameters, type in a question mark
33020 \begin_inset Quotes eld
33024 \begin_inset Quotes erd
33030 \begin_layout Standard
33031 To reference child document listings, write a label text into the corresponding
33032 field of the child document dialog.
33033 The label can then be referenced using the menu
33035 Insert\SpecialChar \menuseparator
33041 \begin_layout Standard
33043 \begin_inset space ~
33047 \begin_inset CommandInset ref
33049 reference "lst:file-listing"
33053 is an example for a listing of a file; there the lines 10
33054 \begin_inset space \thinspace{}
33058 \begin_inset space \thinspace{}
33061 15 of this LyX file are listed.
33064 \begin_layout Standard
33065 \begin_inset CommandInset include
33066 LatexCommand lstinputlisting
33067 filename "EmbeddedObjects.lyx"
33068 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
33075 \begin_layout Standard
33076 \begin_inset VSpace bigskip
33082 \begin_layout Standard
33083 Global listings settings can be set in the
33085 Document\SpecialChar \menuseparator
33086 Settings\SpecialChar \menuseparator
33090 To get there a list of available options, type in a question mark
33091 \begin_inset Quotes eld
33095 \begin_inset Quotes erd
33101 \begin_inset space ~
33109 \begin_layout Standard
33110 For more information about the
33114 package, we refer to its documentation
33115 \begin_inset CommandInset citation
33124 \begin_layout Standard
33125 \begin_inset Newpage newpage
33131 \begin_layout Chapter
33133 Units available in LyX
33137 \begin_layout Plain Layout
33144 \begin_inset CommandInset label
33146 name "cha:Units-available-in"
33153 \begin_layout Standard
33154 To understand the units described in this documentation, Table
33155 \begin_inset space ~
33159 \begin_inset CommandInset ref
33161 reference "tab:Units"
33165 explains all units available in LyX.
33168 \begin_layout Standard
33169 \begin_inset Float table
33175 \begin_layout Plain Layout
33176 \begin_inset Caption
33178 \begin_layout Plain Layout
33179 \begin_inset CommandInset label
33193 \begin_layout Plain Layout
33194 \begin_inset VSpace medskip
33200 \begin_layout Plain Layout
33202 \begin_inset Tabular
33203 <lyxtabular version="3" rows="20" columns="2">
33205 <column alignment="center" valignment="top" width="0">
33206 <column alignment="center" valignment="top" width="0">
33208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33211 \begin_layout Plain Layout
33217 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33220 \begin_layout Plain Layout
33228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33231 \begin_layout Plain Layout
33237 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33240 \begin_layout Plain Layout
33248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33251 \begin_layout Plain Layout
33257 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33260 \begin_layout Plain Layout
33268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33271 \begin_layout Plain Layout
33277 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33280 \begin_layout Plain Layout
33288 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33291 \begin_layout Plain Layout
33297 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33300 \begin_layout Plain Layout
33302 \begin_inset space \thinspace{}
33306 \begin_inset space \thinspace{}
33316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33319 \begin_layout Plain Layout
33325 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33328 \begin_layout Plain Layout
33330 \begin_inset space \thinspace{}
33334 \begin_inset space \thinspace{}
33344 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33347 \begin_layout Plain Layout
33353 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33356 \begin_layout Plain Layout
33357 scaled point (65536
33358 \begin_inset space \thinspace{}
33362 \begin_inset space \thinspace{}
33372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33375 \begin_layout Plain Layout
33381 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33384 \begin_layout Plain Layout
33386 \begin_inset space \thinspace{}
33390 \begin_inset space \thinspace{}
33400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33403 \begin_layout Plain Layout
33409 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33412 \begin_layout Plain Layout
33414 \begin_inset space \thinspace{}
33418 \begin_inset Formula $\approx$
33422 \begin_inset space \thinspace{}
33432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33435 \begin_layout Plain Layout
33441 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33444 \begin_layout Plain Layout
33446 \begin_inset space \thinspace{}
33450 \begin_inset space \thinspace{}
33460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33463 \begin_layout Plain Layout
33469 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33472 \begin_layout Plain Layout
33473 % of original image width
33480 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33483 \begin_layout Plain Layout
33489 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33492 \begin_layout Plain Layout
33500 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33503 \begin_layout Plain Layout
33509 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33512 \begin_layout Plain Layout
33520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33523 \begin_layout Plain Layout
33529 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33532 \begin_layout Plain Layout
33540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33543 \begin_layout Plain Layout
33549 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33552 \begin_layout Plain Layout
33560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33563 \begin_layout Plain Layout
33569 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33572 \begin_layout Plain Layout
33580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33583 \begin_layout Plain Layout
33589 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33592 \begin_layout Plain Layout
33600 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33603 \begin_layout Plain Layout
33609 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33612 \begin_layout Plain Layout
33624 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33627 \begin_layout Plain Layout
33633 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33636 \begin_layout Plain Layout
33648 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33651 \begin_layout Plain Layout
33657 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33660 \begin_layout Plain Layout
33662 \begin_inset space \thinspace{}
33666 \begin_inset space \thinspace{}
33687 \begin_layout Chapter
33688 Output File Formats with Graphics
33689 \begin_inset CommandInset label
33691 name "cha:Output-File-Formats"
33698 \begin_layout Section
33703 \begin_layout Plain Layout
33713 \begin_layout Plain Layout
33718 \begin_layout Plain Layout
33729 \begin_layout Plain Layout
33744 \begin_layout Standard
33745 This file type has the extension
33746 \begin_inset Quotes eld
33754 \begin_inset Quotes erd
33759 \begin_inset Quotes eld
33763 \begin_inset Quotes erd
33766 (DVI), because it is completely portable; you can move them from one machine
33767 to another without needing to do any sort of conversion.
33768 At the time when this file-format was developed, this was no matter of
33770 DVIs are used for quick previews and as pre-stage for other output formats,
33774 \begin_layout Standard
33775 \begin_inset Note Greyedout
33778 \begin_layout Plain Layout
33783 DVI-files doesn't contain images, they will only be a linked.
33788 So don't forget this, if you move your
33792 file to another computer.
33793 This property can also slow down your computer when you view the DVI.
33794 Because the DVI-viewer has to convert the image in the background to make
33795 it visible when you scroll in the DVI.
33796 So we recommend to use PDF for files with many images.
33799 \begin_layout Standard
33800 You can export your document to DVI by using the menu
33802 File\SpecialChar \menuseparator
33803 Export\SpecialChar \menuseparator
33807 You can view your document as DVI via the
33811 menu or by using the toolbar button
33812 \begin_inset Graphics
33813 filename ../images/buffer-view_dvi.png
33815 scaleBeforeRotation
33822 \begin_layout Section
33824 \begin_inset CommandInset label
33826 name "sec:PostScript"
33834 \begin_layout Plain Layout
33835 File Formats ! PostScript
33844 \begin_layout Plain Layout
33849 \begin_layout Plain Layout
33860 \begin_layout Plain Layout
33875 \begin_layout Standard
33876 This file type has the extension
33877 \begin_inset Quotes eld
33885 \begin_inset Quotes erd
33889 PostScript was developed by the company
33893 as printer language.
33894 The file contains therefore commands that the printer uses to print the
33896 PostScript can be seen as
33897 \begin_inset Quotes eld
33900 programming language
33901 \begin_inset Quotes erd
33904 ; you can calculate with it and draw diagrams and images
33908 \begin_layout Plain Layout
33909 If you are interested to learn more about this, have a look at the LaTeX-package
33915 \begin_inset CommandInset citation
33927 Due to this ability, the files are often bigger than PDFs.
33930 \begin_layout Standard
33931 PostScript can only contain images in the format
33932 \begin_inset Quotes eld
33935 Encapsulated PostScript
33936 \begin_inset Quotes erd
33939 (EPS, file extension
33940 \begin_inset Quotes eld
33948 \begin_inset Quotes erd
33952 As LyX allows you to use any known image format in your document, it has
33953 to convert images in the background to EPS.
33954 If you have e.g 50 images in your document, LyX has to do 50 conversions
33955 whenever you view or export your document.
33956 This will slow down your work flow with LyX drastically.
33957 So if you plan to use PostScript, you can insert your images directly as
33958 EPS to avoid this problem.
33961 \begin_layout Standard
33962 You can export your document to PostScript using the menu
33964 File\SpecialChar \menuseparator
33965 Export\SpecialChar \menuseparator
33969 You can view your document as PostScript via the
33973 menu or by using the toolbar button
33974 \begin_inset Graphics
33975 filename ../images/buffer-view_ps.png
33977 scaleBeforeRotation
33984 \begin_layout Section
33989 \begin_layout Plain Layout
33999 \begin_layout Plain Layout
34008 \begin_layout Standard
34009 This file type has the extension
34010 \begin_inset Quotes eld
34018 \begin_inset Quotes erd
34023 \begin_inset Quotes eld
34026 Portable Document Format
34027 \begin_inset Quotes erd
34030 (PDF) is developed by
34034 as derivative from PostScript.
34035 It is more compressed and it uses much less commands than PostScript.
34037 \begin_inset Quotes eld
34041 \begin_inset Quotes erd
34044 implies, it can be processed at any computer system and the printed output
34045 looks exactly the same.
34048 \begin_layout Standard
34049 PDF can contain images in its own PDF format, in the format
34050 \begin_inset Quotes eld
34053 Joint Photographic Experts Group
34054 \begin_inset Quotes erd
34057 (JPG, file extension
34058 \begin_inset Quotes eld
34066 \begin_inset Quotes erd
34070 \begin_inset Quotes eld
34078 \begin_inset Quotes erd
34081 ), and in the format
34082 \begin_inset Quotes eld
34085 Portable Network Graphics
34086 \begin_inset Quotes erd
34089 (PNG, file extension
34090 \begin_inset Quotes eld
34098 \begin_inset Quotes erd
34102 Nevertheless you can use any other image format, because LyX converts them
34103 in the background to one of these formats.
34104 But as described in the section about PostScript, the image conversion
34105 will slow down your work flow.
34106 So it is recommended to use images in one of the three mentioned formats.
34109 \begin_layout Standard
34110 You can export your document to PDF via the menu
34112 File\SpecialChar \menuseparator
34115 in three different ways:
34118 \begin_layout Description
34120 \begin_inset space ~
34123 (ps2pdf) This uses the program
34127 that creates a PDF from a PostScript-version of your file.
34128 The PostScript-version is produced by the program
34132 which uses a DVI-version as intermediate step.
34133 So this export variant consist of three conversions.
34136 \begin_layout Description
34138 \begin_inset space ~
34141 (dvipdfm) This uses the program
34145 that converts your file in the background to DVI and in a second step to
34149 \begin_layout Description
34151 \begin_inset space ~
34154 (pdflatex) This uses the program
34158 that converts your file directly to PDF.
34161 \begin_layout Standard
34162 It is recommended to use
34165 \begin_inset space ~
34174 supports all features of actual PDF-versions, is quick and works stable
34180 is not under development and therefore a bit outdated.
34183 \begin_layout Standard
34184 You can view your document as PDF via the
34188 menu or by using the toolbar button
34189 \begin_inset Graphics
34190 filename ../images/buffer-view_pdf2.png
34192 scaleBeforeRotation
34203 \begin_inset space ~
34211 \begin_layout Chapter
34212 Explanation of Equation
34213 \begin_inset space ~
34217 \begin_inset CommandInset ref
34224 \begin_inset CommandInset label
34226 name "cha:Explanation-of-Equation"
34233 \begin_layout Standard
34239 \begin_inset Formula $W_{\mathrm{tot\, n}}$
34242 can be calculated to
34245 \begin_layout Standard
34246 \begin_inset Formula \begin{equation}
34247 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}
34254 \begin_layout Standard
34256 \begin_inset Formula $W_{g\, n}$
34259 is the given width of all cells.
34266 is the LaTeX-length between the cell text and the cell border, its default
34268 \begin_inset space \thinspace{}
34278 is the thickness of the cell border line, the default is 0.4
34279 \begin_inset space \thinspace{}
34285 \begin_layout Standard
34287 \begin_inset space ~
34291 \begin_inset CommandInset ref
34293 reference "eq:Wtot_n"
34297 , the total width of a multicolumn
34298 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
34304 \begin_layout Standard
34305 \begin_inset Formula \begin{equation}
34306 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
34313 \begin_layout Standard
34314 By setting equation
34315 \begin_inset space ~
34319 \begin_inset CommandInset ref
34321 reference "eq:Wtot_n"
34326 \begin_inset CommandInset ref
34328 reference "eq:Wtot_mult"
34332 equal we can calculate the needed given width
34333 \begin_inset Formula $W_{g\, n}$
34340 columns are spanned, so that each column has a total width of
34341 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
34347 \begin_layout Standard
34348 \begin_inset Formula \begin{equation}
34349 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
34356 \begin_layout Bibliography
34357 \begin_inset CommandInset bibitem
34358 LatexCommand bibitem
34359 key "latexcompanion"
34363 Frank Mittelbach and Michel Goossens:
34365 The LaTeX Companion Second Edition.
34368 Addison-Wesley, 2004
34371 \begin_layout Bibliography
34372 \begin_inset CommandInset bibitem
34373 LatexCommand bibitem
34378 Helmut Kopka and Patrick W.
34381 A Guide to LaTeX Fourth Edition.
34384 Addison-Wesley, 2003
34387 \begin_layout Bibliography
34388 \begin_inset CommandInset bibitem
34389 LatexCommand bibitem
34396 LaTeX: A Document Preparation System.
34399 Addison-Wesley, second edition, 1994
34402 \begin_layout Bibliography
34403 \begin_inset CommandInset bibitem
34404 LatexCommand bibitem
34409 Documentation of the LaTeX-package
34412 \begin_inset CommandInset href
34415 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
34425 \begin_layout Plain Layout
34426 LaTeX-packages ! booktabs
34434 \begin_layout Bibliography
34435 \begin_inset CommandInset bibitem
34436 LatexCommand bibitem
34441 Documentation of the LaTeX-package
34444 \begin_inset CommandInset href
34447 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
34457 \begin_layout Plain Layout
34458 LaTeX-packages ! caption
34466 \begin_layout Bibliography
34467 \begin_inset CommandInset bibitem
34468 LatexCommand bibitem
34473 Documentation of the LaTeX-package
34476 \begin_inset CommandInset href
34479 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
34489 \begin_layout Plain Layout
34490 LaTeX-packages ! endfloat
34498 \begin_layout Bibliography
34499 \begin_inset CommandInset bibitem
34500 LatexCommand bibitem
34505 Documentation of the LaTeX-package
34508 \begin_inset CommandInset href
34511 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
34521 \begin_layout Plain Layout
34522 LaTeX-packages ! wrapfig
34526 \begin_layout Plain Layout
34543 \begin_layout Bibliography
34544 \begin_inset CommandInset bibitem
34545 LatexCommand bibitem
34550 Documentation of the LaTeX-package
34553 \begin_inset CommandInset href
34556 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
34566 \begin_layout Plain Layout
34567 LaTeX-packages ! footmisc
34575 \begin_layout Bibliography
34576 \begin_inset CommandInset bibitem
34577 LatexCommand bibitem
34582 Documentation of the LaTeX-package
34585 \begin_inset CommandInset href
34588 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
34598 \begin_layout Plain Layout
34599 LaTeX-packages ! hyperref
34607 \begin_layout Bibliography
34608 \begin_inset CommandInset bibitem
34609 LatexCommand bibitem
34614 Documentation of the LaTeX-package
34617 \begin_inset CommandInset href
34620 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
34630 \begin_layout Plain Layout
34631 LaTeX-packages ! hyperref
34639 \begin_layout Bibliography
34640 \begin_inset CommandInset bibitem
34641 LatexCommand bibitem
34646 Documentation of the LaTeX-package
34649 \begin_inset CommandInset href
34652 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
34662 \begin_layout Plain Layout
34663 LaTeX-packages ! KOMA-Script
34671 \begin_layout Bibliography
34672 \begin_inset CommandInset bibitem
34673 LatexCommand bibitem
34678 Documentation of the LaTeX-package
34681 \begin_inset CommandInset href
34684 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
34694 \begin_layout Plain Layout
34695 LaTeX-packages ! listings
34703 \begin_layout Bibliography
34704 \begin_inset CommandInset bibitem
34705 LatexCommand bibitem
34710 Documentation of the LaTeX-package
34713 \begin_inset CommandInset href
34716 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
34726 \begin_layout Plain Layout
34727 LaTeX-packages ! marginnote
34735 \begin_layout Bibliography
34736 \begin_inset CommandInset bibitem
34737 LatexCommand bibitem
34742 Web page of the LaTeX-package
34745 \begin_inset CommandInset href
34748 target "http://tug.org/PSTricks/"
34758 \begin_layout Plain Layout
34759 LaTeX-packages ! PSTricks
34767 \begin_layout Bibliography
34768 \begin_inset CommandInset bibitem
34769 LatexCommand bibitem
34774 Documentation of the LaTeX-package
34777 \begin_inset CommandInset href
34780 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
34790 \begin_layout Plain Layout
34791 LaTeX-packages ! sidecap
34799 \begin_layout Bibliography
34800 \begin_inset CommandInset bibitem
34801 LatexCommand bibitem
34807 \begin_inset CommandInset href
34810 target "http://wiki.lyx.org/LyX/NewInLyX16"
34814 about new features in
34821 \begin_layout Standard
34822 \begin_inset CommandInset index_print
34823 LatexCommand printindex
34830 \begin_layout Standard
34831 \begin_inset FloatList figure
34838 \begin_layout Standard
34839 \begin_inset FloatList table
34846 \begin_layout Standard
34847 \begin_inset FloatList algorithm