1 #LyX 1.6.6svn created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
38 \newcommand{\TabBesBeg}{%
40 \let\MyEndtable\endtable
41 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
43 \newcommand{\TabBesEnd}{%
45 \let\endtable\MyEndtable}
47 \newcommand{\FigBesBeg}{%
49 \let\MyEndfigure\endfigure
50 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
52 \newcommand{\FigBesEnd}{%
54 \let\endfigure\MyEndfigure}
56 % enables calculation of values,
59 % provides special table cell alignments
62 % increase the bottom float placement fraction
63 \renewcommand{\bottomfraction}{0.5}
65 % avoids that floats are placed before their
66 % corresponding section starts
67 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
69 % speed up the longtable calculation
70 \setcounter{LTchunksize}{100}
72 % used for scaled and rotated boxes
73 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
75 % used for colored tables
76 \@ifundefined{textcolor}
77 {\usepackage{color}}{}
78 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
79 \definecolor{lightgrey}{gray}{0.8}
81 % check for package colortbl
82 % used for colored table cells
84 \IfFileExists{colortbl.sty}
85 {\usepackage{colortbl}
86 \setboolean{colortbl}{true}}
87 {\setboolean{colortbl}{false}}
91 %\renewcommand{\multirowsetup}{\centering}
93 % used for book-style tables
96 % used to have extra space in table cells
97 \@ifundefined{extrarowheight}
98 {\usepackage{array}}{}
99 \setlength{\extrarowheight}{2pt}
101 % used for customized tables
104 {>{\centering\hspace{0pt}}m{#1}}
107 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
110 {>{\columncolor{#1}\hspace{0pt}}c}
112 \newcolumntype{V}{!{\vrule width 1.5pt}}
114 \newcolumntype{W}{!{\color{green}\vline}}
117 % insert additional vertical space of
118 % 1.5 mm between footnotes
120 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
122 % number algorithm floats within chapters
123 \numberwithin{algorithm}{chapter}
125 % redefine the greyed out note
126 \renewenvironment{lyxgreyedout}
127 {\textcolor{blue}\bgroup}{\egroup}
129 % ------------------------------------
130 % used to check for needed LaTeX packages
133 % check for package arydshln
134 % used for tables with dashed lines
135 \newboolean{arydshln}
136 \IfFileExists{arydshln.sty}
137 {\usepackage{arydshln}
138 \setboolean{arydshln}{true}}
139 {\setboolean{arydshln}{false}}
141 % check for package marginnote
142 % used for margin notes
143 \newboolean{marginnote}
144 \IfFileExists{marginnote.sty}
145 {\usepackage{marginnote}
146 \let\marginpar\marginnote
147 \setboolean{marginnote}{true}}
148 {\setboolean{marginnote}{false}}
150 % check for package sidecap
151 % used for captions on the side
153 \IfFileExists{sidecap.sty}
154 {\usepackage{sidecap}
155 \setboolean{sidecap}{true}}
156 {\setboolean{sidecap}{false}}
158 % redefine the \LyX macro for PDF bookmarks
159 \def\LyX{\texorpdfstring{%
160 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
163 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
164 \use_default_options false
169 \font_typewriter default
170 \font_default_family default
180 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
181 \pdf_author "LyX Team, Uwe Stöhr"
182 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
183 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
185 \pdf_bookmarksnumbered true
186 \pdf_bookmarksopen true
187 \pdf_bookmarksopenlevel 1
188 \pdf_breaklinks false
192 \pdf_pdfusetitle false
193 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
200 \paperorientation portrait
203 \paragraph_separation skip
205 \quotes_language english
208 \paperpagestyle default
212 \tracking_changes false
213 \output_changes false
221 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
230 \begin_layout Plain Layout
232 If you have comments or error corrections, please send them to the LyX Documenta
234 \begin_inset CommandInset href
236 name "lyx-docs@lists.lyx.org"
237 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
248 \begin_inset Note Note
251 \begin_layout Plain Layout
258 \begin_inset Newline newline
262 \begin_inset Newline newline
270 \begin_layout Standard
271 \begin_inset CommandInset toc
272 LatexCommand tableofcontents
279 \begin_layout Standard
280 \begin_inset Note Note
283 \begin_layout Plain Layout
284 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
302 If they are not installed you can export the document anyway but the sections
303 where the packages are required won't appear in the output.
306 \begin_layout Plain Layout
307 The latest PDF-version of this document can be found here:
308 \begin_inset Newline newline
313 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
321 \begin_layout Chapter
326 \begin_layout Plain Layout
336 \begin_layout Plain Layout
341 \begin_layout Plain Layout
352 \begin_layout Plain Layout
367 \begin_layout Section
372 \begin_layout Plain Layout
373 Figures ! Graphics Dialog
379 \begin_inset CommandInset label
381 name "sec:Graphics-Dialog"
388 \begin_layout Standard
389 To insert an image into your document, place the cursor at the text position
390 you want and click on the toolbar icon
391 \begin_inset Graphics
392 filename ../images/dialog-show-new-inset_graphics.png
400 Insert\SpecialChar \menuseparator
404 Then a dialog will appear to choose the file to load.
405 The image will appear in the output exactly at the position where it is
409 \begin_layout Standard
410 The graphics dialog can be called at any time by clicking on an image.
411 This dialog has three tabs:
414 \begin_layout Description
419 Here you can choose an image file and adjust its appearance in the output.
420 The available units for the image size are explained in appendix
425 \begin_inset CommandInset ref
427 reference "cha:Units-available-in"
432 \begin_inset Newline newline
439 \begin_layout Plain Layout
445 You can rotate images counter-clockwise by setting a rotation angle and
447 The image will also be rotated inside LyX.
448 \begin_inset Newline newline
455 \begin_layout Plain Layout
461 Images can be scaled by using a percentage value or by setting the width
462 and height explicitly.
463 If you set only the width or only the height, the other size will be determined
465 If you set both, then the image will be transformed to the given size,
466 possibly distorting it.
467 To prevent the image from distortion, use the option
469 Maintain aspect ratio
472 The image will then be scaled so that its width and height don't exceed
473 the specified dimensions.
474 \begin_inset Newline newline
477 Images can be opened in a program of your choice by right-clicking on it
478 and choosing the entry
487 The program can be set for every image format in the file format settings
488 in LyX's preferences.
491 \begin_layout Description
496 Alternatively to the usage of scaling units it is possible to set image
497 coordinates to adjust the height and width of the image in the output.
498 The coordinates can also be calculated automatically by pressing the button
528 will only print the image region within the given coordinates.
529 Normally you don't need to take care about image coordinates and can ignore
533 \begin_layout Description
550 In this tab you can modify the appearance of the image within LyX and LaTeX
551 experts can specify additional LaTeX options.
552 \begin_inset Newline newline
563 makes the image appear in the output only as a frame with the size of the
565 \begin_inset Newline newline
584 option only affects zipped EPS-graphics, e.
585 \begin_inset space \thinspace{}
589 \begin_inset space \space{}
597 When the option is used the images will not be unzipped on export, since
598 LaTeX can handle them as they are.
599 \begin_inset Newline newline
602 Zipped EPS-graphics are useful to save disk space when you choose PostScript
603 as output format, see appendix
608 \begin_inset CommandInset ref
610 reference "sec:PostScript"
615 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
617 \begin_inset Newline newline
625 \begin_inset Newline newline
630 zgrep %%Bounding x.eps.gz > x.eps.bb
633 \begin_inset Newline newline
636 The second command creates the bounding box file
637 \begin_inset Quotes eld
641 \begin_inset Quotes erd
644 that is needed by LaTeX for zipped graphics.
645 \begin_inset Newline newline
660 allows you define or join an image settings group.
664 \begin_layout Plain Layout
665 Figures ! Settings grouping
670 Images within such a group share their settings, so adjusting one image
671 of the group automatically also adjusts all other images of the group in
673 So you can for example change the size for a bunch of images without the
674 need to manually change each of them.
675 Joining an existing group can also be done using the context menu of the
676 image by checking the name of the desired group.
679 \begin_layout Standard
680 \begin_inset VSpace bigskip
686 \begin_layout Standard
687 This is an example image in EPS format
691 \begin_layout Plain Layout
692 Image formats are explained in section
697 \begin_inset CommandInset ref
699 reference "sec:Image-Formats"
708 within a separate, horizontally centered paragraph:
711 \begin_layout Standard
713 \begin_inset Graphics
714 filename clipart/mobius.eps
724 \begin_layout Standard
725 This is the same image like the one above but in draft mode:
728 \begin_layout Standard
730 \begin_inset Graphics
731 filename clipart/mobius.eps
742 \begin_layout Standard
743 \begin_inset Newpage newpage
749 \begin_layout Section
751 \begin_inset CommandInset label
753 name "sec:Figure-Floats"
761 \begin_layout Plain Layout
771 \begin_layout Plain Layout
780 \begin_layout Standard
781 For general explanations about floats, have a look at section
786 \begin_inset CommandInset ref
788 reference "sec:FloatIntroduction"
795 \begin_layout Standard
797 \begin_inset Graphics
798 filename ../images/float-insert_figure.png
806 Insert\SpecialChar \menuseparator
807 Float\SpecialChar \menuseparator
810 inserts a float with a caption that has the label
811 \begin_inset Quotes eld
819 \begin_inset Quotes erd
822 (# is the actual number).
823 You can insert the image above the caption, like in Figure
828 \begin_inset CommandInset ref
830 reference "fig:kill-plat"
834 or below the caption, like in Figure
839 \begin_inset CommandInset ref
841 reference "fig:escher"
846 More about caption placement is described in section
851 \begin_inset CommandInset ref
853 reference "sec:Caption-Placement"
860 \begin_layout Standard
861 \begin_inset Float figure
866 \begin_layout Plain Layout
868 \begin_inset Graphics
869 filename clipart/platypus.eps
879 \begin_layout Plain Layout
882 \begin_layout Plain Layout
883 \begin_inset CommandInset label
889 A severely distorted platypus in a float.
902 \begin_layout Standard
903 \begin_inset Float figure
908 \begin_layout Plain Layout
911 \begin_layout Plain Layout
912 \begin_inset CommandInset label
927 \begin_layout Plain Layout
929 \begin_inset Graphics
930 filename clipart/escher-lsd.eps
945 \begin_layout Standard
949 \begin_layout Plain Layout
950 References ! to Figures
960 \begin_inset CommandInset ref
962 reference "fig:kill-plat"
967 \begin_inset CommandInset ref
969 reference "fig:escher"
973 are examples of referenced figures.
974 Figures can be referenced in the text by referencing their label.
975 To do this insert a label in the caption using the menu
977 Insert\SpecialChar \menuseparator
980 or the toolbar button
981 \begin_inset Graphics
982 filename ../images/label-insert.png
989 You can now refer to the label using the menu
991 Insert\SpecialChar \menuseparator
998 or the toolbar button
999 \begin_inset Graphics
1000 filename ../images/dialog-show-new-inset_ref.png
1007 It is important to use references to floats, rather than using vague references
1009 \begin_inset Quotes eld
1013 \begin_inset Quotes erd
1016 , because LaTeX will reposition the floats in the final document and it
1018 \begin_inset Quotes eld
1022 \begin_inset Quotes erd
1026 \begin_inset Newline newline
1029 Referencing is explained in detail in section
1030 \begin_inset space ~
1034 \begin_inset CommandInset ref
1036 reference "sec:Referencing-Floats"
1043 \begin_layout Standard
1044 Normally only one image is inserted to a figure float, but sometimes you
1045 might want to use two images with separate subcaptions.
1046 This can be done by inserting image floats into existing image floats.
1047 Note that only the main caption of the float is added to the List of Figures.
1049 \begin_inset space ~
1053 \begin_inset CommandInset ref
1055 reference "fig:Two-distorted-images"
1059 is an example of a figure float with two images set side by side.
1060 You can also set the images one below the other.
1062 \begin_inset space ~
1066 \begin_inset CommandInset ref
1068 reference "fig:Undefinable-structure"
1073 \begin_inset CommandInset ref
1075 reference "fig:A-Platypus"
1082 \begin_layout Standard
1083 \begin_inset Float figure
1088 \begin_layout Plain Layout
1089 \begin_inset space \hfill{}
1093 \begin_inset Float figure
1098 \begin_layout Plain Layout
1099 \begin_inset Caption
1101 \begin_layout Plain Layout
1102 \begin_inset CommandInset label
1104 name "fig:Undefinable-structure"
1108 Undefinable structure.
1116 \begin_layout Plain Layout
1117 \begin_inset Graphics
1118 filename clipart/escher-lsd.eps
1131 \begin_inset space \hfill{}
1135 \begin_inset Float figure
1140 \begin_layout Plain Layout
1141 \begin_inset Caption
1143 \begin_layout Plain Layout
1144 \begin_inset CommandInset label
1146 name "fig:A-Platypus"
1158 \begin_layout Plain Layout
1159 \begin_inset Graphics
1160 filename clipart/platypus.eps
1173 \begin_inset space \hfill{}
1179 \begin_layout Plain Layout
1180 \begin_inset Caption
1182 \begin_layout Plain Layout
1183 \begin_inset CommandInset label
1185 name "fig:Two-distorted-images"
1189 Two distorted images.
1190 Both images are in the image settings group named
1191 \begin_inset Quotes eld
1195 \begin_inset Quotes erd
1211 \begin_layout Standard
1212 \begin_inset Newpage newpage
1218 \begin_layout Section
1220 \begin_inset CommandInset label
1222 name "sec:Image-Formats"
1230 \begin_layout Plain Layout
1240 \begin_layout Plain Layout
1241 Figures ! Image Formats
1249 \begin_layout Standard
1250 You can insert images in any known file format.
1251 But as explained in appendix
1252 \begin_inset space ~
1256 \begin_inset CommandInset ref
1258 reference "cha:Output-File-Formats"
1262 , each output document format allows only a few image formats.
1263 LyX uses therefore the program
1267 in the background to convert the images to the right format.
1268 To increase your work flow by avoiding these conversions in the background,
1269 you can use only the image formats that can directly be embedded in the
1271 The output file formats are explained in appendix
1272 \begin_inset space ~
1276 \begin_inset CommandInset ref
1278 reference "cha:Output-File-Formats"
1285 \begin_layout Standard
1286 Similar to fonts there are two types of image formats:
1289 \begin_layout Description
1291 \begin_inset space ~
1294 images consist of pixel values, often in a compressed form.
1295 They are therefore not fully scalable and look pixelated in large zooms.
1296 Well-known bitmap image formats are
1297 \begin_inset Quotes eld
1300 Graphics Interchange Format
1301 \begin_inset Quotes erd
1304 (GIF, file extension
1305 \begin_inset Quotes eld
1313 \begin_inset Quotes erd
1320 \begin_layout Plain Layout
1325 \begin_layout Plain Layout
1336 \begin_layout Plain Layout
1349 \begin_inset Quotes eld
1352 Portable Network Graphics
1353 \begin_inset Quotes erd
1356 (PNG, file extension
1357 \begin_inset Quotes eld
1365 \begin_inset Quotes erd
1372 \begin_layout Plain Layout
1377 \begin_layout Plain Layout
1388 \begin_layout Plain Layout
1401 \begin_inset Quotes eld
1404 Joint Photographic Experts Group
1405 \begin_inset Quotes erd
1408 (JPG, file extension
1409 \begin_inset Quotes eld
1417 \begin_inset Quotes erd
1421 \begin_inset Quotes eld
1429 \begin_inset Quotes erd
1436 \begin_layout Plain Layout
1441 \begin_layout Plain Layout
1452 \begin_layout Plain Layout
1467 \begin_layout Description
1469 \begin_inset space ~
1472 images consist of vectors and can therefore be scaled to any size without
1474 The scaling ability is necessary if you want to create presentations, because
1475 presentations are always scaled by the video projector.
1476 Scaling is also useful for online documents to let the user zoom into diagrams.
1477 \begin_inset Newline newline
1480 Well-known scalable image formats are
1481 \begin_inset Quotes eld
1484 Scalable Vector Graphics
1485 \begin_inset Quotes erd
1488 (SVG, file extension
1489 \begin_inset Quotes eld
1497 \begin_inset Quotes erd
1504 \begin_layout Plain Layout
1509 \begin_layout Plain Layout
1520 \begin_layout Plain Layout
1533 \begin_inset Quotes eld
1536 Encapsulated PostScript
1537 \begin_inset Quotes erd
1540 (EPS, file extension
1541 \begin_inset Quotes eld
1549 \begin_inset Quotes erd
1556 \begin_layout Plain Layout
1561 \begin_layout Plain Layout
1572 \begin_layout Plain Layout
1585 \begin_inset Quotes eld
1588 Portable Document Format
1589 \begin_inset Quotes erd
1592 (PDF, file extension
1593 \begin_inset Quotes eld
1601 \begin_inset Quotes erd
1608 \begin_layout Plain Layout
1615 \begin_inset Quotes eld
1619 \begin_inset Quotes erd
1622 (WMF, file extension
1623 \begin_inset Quotes eld
1631 \begin_inset Quotes erd
1638 \begin_layout Plain Layout
1643 \begin_layout Plain Layout
1654 \begin_layout Plain Layout
1668 \begin_inset Quotes eld
1672 \begin_inset Quotes erd
1675 , because you can convert any bitmap image to a PDF or EPS-image and the
1676 result will still be a bitmap image.
1677 In such cases only a header with the image properties is added to the original
1682 \begin_layout Plain Layout
1683 In the case of PDF, the original image is additionally compressed.
1689 The PDF-files generated by
1693 are for example bitmap images.
1696 \begin_layout Standard
1697 Normally it is not possible to convert a bitmap image into a scalable one,
1699 Only the image formats PDF and EPS can directly be embedded to PDF and
1700 PostScript output files, respectively.
1701 SVG and WMF-images are recalculated to bitmaps when the output file is
1702 generated because there is currently no adequate WMF/SVG
1703 \begin_inset Formula $\to$
1706 PDF/EPS converter available.
1709 \begin_layout Chapter
1714 \begin_layout Plain Layout
1723 \begin_layout Section
1728 \begin_layout Plain Layout
1729 Table ! Introduction
1737 \begin_layout Standard
1738 You can insert a table using either the toolbar button
1739 \begin_inset Graphics
1740 filename ../images/tabular-insert.png
1748 Insert\SpecialChar \menuseparator
1752 The toolbar button offers you a graphical selection: move the mouse to
1753 set the column/row number of the table that should be created and then
1754 press a mouse button.
1755 When you use the menu to create a table, a dialog will appear, asking you
1756 for the number of rows and columns.
1757 \begin_inset Newline newline
1760 The default table has lines around any cell and the first row appears separated
1761 from the rest of the table.
1762 This separation occurs due to a double line: The cells of the first row
1763 have a line below them and the cells of the second row have a line above
1765 Here is an example table:
1768 \begin_layout Standard
1770 \begin_inset Tabular
1771 <lyxtabular version="3" rows="4" columns="4">
1773 <column alignment="center" valignment="top" width="0">
1774 <column alignment="center" valignment="top" width="0">
1775 <column alignment="center" valignment="top" width="0">
1776 <column alignment="center" valignment="top" width="0">
1778 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1781 \begin_layout Plain Layout
1787 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1790 \begin_layout Plain Layout
1805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1808 \begin_layout Plain Layout
1814 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1817 \begin_layout Plain Layout
1825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1828 \begin_layout Plain Layout
1843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1846 \begin_layout Plain Layout
1852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1855 \begin_layout Plain Layout
1861 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1864 \begin_layout Plain Layout
1872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1875 \begin_layout Plain Layout
1890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1893 \begin_layout Plain Layout
1899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1902 \begin_layout Plain Layout
1908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1911 \begin_layout Plain Layout
1919 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1922 \begin_layout Plain Layout
1937 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1940 \begin_layout Plain Layout
1946 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1949 \begin_layout Plain Layout
1955 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1958 \begin_layout Plain Layout
1972 \begin_layout Section
1977 \begin_layout Plain Layout
1986 \begin_layout Standard
1987 You can alter a table by clicking on it with the right mouse button, which
1988 brings up the table dialog.
1989 Here you can adjust the settings of that cell and row/column respectively
1990 where the cursor is currently placed.
1991 Most of the dialog options also work on selections.
1992 This means if you select more cells, columns or rows, the action is done
1993 for the whole selection.
1994 Note that there is a difference between selecting the
1998 of the cell, and the cell itself.
1999 You can alter tables with the following tabs of the table dialog:
2002 \begin_layout Description
2006 \begin_inset space ~
2011 Here you can set the horizontal alignment and the width of the current
2013 When you have set a width you can also adjust the vertical alignment of
2015 A given width will allow the cell to have line breaks and multiple paragraphs
2016 of text, see section
2017 \begin_inset space ~
2021 \begin_inset CommandInset ref
2023 reference "sub:Multiple-Lines-in"
2028 If you set no width, the column is as wide as the content of the widest
2030 \begin_inset Newline newline
2033 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2035 \begin_inset space ~
2039 \begin_inset CommandInset ref
2041 reference "sub:Multicolumns"
2046 \begin_inset Newline newline
2049 The rotate check boxes rotate the current cell, a selection, or the whole
2050 table counter-clockwise by 90°.
2051 The rotation is not shown within LyX, only in the output.
2052 \begin_inset Newline newline
2056 \begin_inset Note Greyedout
2059 \begin_layout Plain Layout
2064 Not all DVI-viewers are able to display rotations.
2070 \begin_inset Newline newline
2073 It is also possible to enter a LaTeX-argument which is needed for special
2074 table formattings, see section
2075 \begin_inset space ~
2079 \begin_inset CommandInset ref
2081 reference "sub:Multicolumn-Calculations"
2086 \begin_inset CommandInset ref
2088 reference "sec:Colored-Tables"
2095 \begin_layout Description
2100 In this tab you can add and delete border lines for the current row/column.
2101 \begin_inset Newline newline
2104 Using the style option
2108 will convert the table to a formal table as described in section
2109 \begin_inset space ~
2113 \begin_inset CommandInset ref
2115 reference "sec:Formal-Tables"
2120 \begin_inset Newline newline
2123 You can also add here space to table rows as described in section
2124 \begin_inset space ~
2128 \begin_inset CommandInset ref
2130 reference "sub:Row-Spacing"
2137 \begin_layout Description
2142 This tab is to make a table a so called
2143 \begin_inset Quotes eld
2151 \begin_inset Quotes erd
2154 that can run over several pages.
2156 \begin_inset space ~
2160 \begin_inset CommandInset ref
2162 reference "sec:Longtables"
2167 \begin_inset CommandInset ref
2169 reference "sec:Special-Longtable-Issues"
2173 describe the longtable features in detail.
2176 \begin_layout Standard
2177 When the table dialog is open, you can move the cursor with the arrow keys
2178 from cell to cell and the property of the current cell will immediately
2179 be displayed in the dialog.
2182 \begin_layout Section
2187 \begin_layout Plain Layout
2196 \begin_layout Standard
2197 The table toolbar is an alternative to the table dialog to be able to alter
2199 It should normally appear at the bottom of LyX's main window when the cursor
2201 You can alternatively switch it on to appear always, by right-clicking
2202 in LyX's main menu bar.
2205 \begin_layout Standard
2206 The toolbar has the following icons:
2209 \begin_layout Labeling
2210 \labelwidthstring 00.00.0000
2211 \begin_inset Graphics
2212 filename ../images/tabular-feature_append-row.png
2217 adds a row below the current cell or selection
2220 \begin_layout Labeling
2221 \labelwidthstring 00.00.0000
2222 \begin_inset Graphics
2223 filename ../images/tabular-feature_append-column.png
2228 adds a column right beside the current cell or selection
2231 \begin_layout Labeling
2232 \labelwidthstring 00.00.0000
2233 \begin_inset Graphics
2234 filename ../images/tabular-feature_delete-row.png
2239 deletes the current row or selection
2242 \begin_layout Labeling
2243 \labelwidthstring 00.00.0000
2244 \begin_inset Graphics
2245 filename ../images/tabular-feature_delete-column.png
2250 deletes the current column or selection
2253 \begin_layout Labeling
2254 \labelwidthstring 00.00.0000
2255 \begin_inset Graphics
2256 filename ../images/tabular-feature_toggle-line-top.png
2261 adds a line at the top of the current cell / row or of a selection
2264 \begin_layout Labeling
2265 \labelwidthstring 00.00.0000
2266 \begin_inset Graphics
2267 filename ../images/tabular-feature_toggle-line-bottom.png
2272 adds a line at the bottom of the current cell / row or of a selection
2275 \begin_layout Labeling
2276 \labelwidthstring 00.00.0000
2277 \begin_inset Graphics
2278 filename ../images/tabular-feature_toggle-line-left.png
2283 adds a line at the left side of the current cell / row or of a selection
2286 \begin_layout Labeling
2287 \labelwidthstring 00.00.0000
2288 \begin_inset Graphics
2289 filename ../images/tabular-feature_toggle-line-right.png
2294 adds a line at the right side of the current cell / row or of a selection
2297 \begin_layout Labeling
2298 \labelwidthstring 00.00.0000
2299 \begin_inset Graphics
2300 filename ../images/tabular-feature_set-all-lines.png
2305 adds lines around the current or selected cells - if the current cell no
2306 multicolumn cell this also affects the current row and column
2309 \begin_layout Labeling
2310 \labelwidthstring 00.00.0000
2311 \begin_inset Graphics
2312 filename ../images/tabular-feature_unset-all-lines.png
2317 deletes all lines of the current or selected cells - if the current cell
2318 no multicolumn cell this also affects the current row and column
2321 \begin_layout Labeling
2322 \labelwidthstring 00.00.0000
2323 \begin_inset Graphics
2324 filename ../images/tabular-feature_m-align-left.png
2329 left-aligns the content of the current cell / column
2332 \begin_layout Labeling
2333 \labelwidthstring 00.00.0000
2334 \begin_inset Graphics
2335 filename ../images/tabular-feature_m-align-center.png
2340 centers the content of the current cell / column horizontally
2343 \begin_layout Labeling
2344 \labelwidthstring 00.00.0000
2345 \begin_inset Graphics
2346 filename ../images/tabular-feature_m-align-right.png
2351 right-aligns the content of the current cell / column
2354 \begin_layout Labeling
2355 \labelwidthstring 00.00.0000
2356 \begin_inset Graphics
2357 filename ../images/tabular-feature_m-valign-top.png
2362 aligns the content of the current cell vertically to the top
2365 \begin_layout Labeling
2366 \labelwidthstring 00.00.0000
2367 \begin_inset Graphics
2368 filename ../images/tabular-feature_m-valign-middle.png
2373 centers the content of the current cell vertically
2376 \begin_layout Labeling
2377 \labelwidthstring 00.00.0000
2378 \begin_inset Graphics
2379 filename ../images/tabular-feature_m-valign-bottom.png
2384 aligns the content of the current cell vertically to the bottom
2387 \begin_layout Labeling
2388 \labelwidthstring 00.00.0000
2389 \begin_inset Graphics
2390 filename ../images/tabular-feature_set-rotate-cell.png
2395 rotates the current cell or selection counter-clockwise by 90°
2398 \begin_layout Labeling
2399 \labelwidthstring 00.00.0000
2400 \begin_inset Graphics
2401 filename ../images/tabular-feature_set-rotate-tabular.png
2406 rotates the whole table counter-clockwise by 90°
2409 \begin_layout Labeling
2410 \labelwidthstring 00.00.0000
2411 \begin_inset Graphics
2412 filename ../images/tabular-feature_multicolumn.png
2417 sets the current cell or selection as a multicolumn
2420 \begin_layout Standard
2421 \begin_inset Note Greyedout
2424 \begin_layout Plain Layout
2429 For the output the vertical alignment of the first cell in a row is used
2430 for all following cells in the row.
2438 \begin_layout Section
2443 \begin_layout Plain Layout
2452 \begin_layout Standard
2453 Additionally to the table dialog and toolbar, the menu
2455 Edit\SpecialChar \menuseparator
2458 allows you to add and delete border lines for the current row/column and
2459 to set the current selection as multicolumn.
2460 The menu is only available when the cursor is inside a table.
2463 \begin_layout Section
2465 \begin_inset CommandInset label
2467 name "sec:Table-Floats"
2475 \begin_layout Plain Layout
2485 \begin_layout Plain Layout
2494 \begin_layout Standard
2495 For general explanations about floats, have a look at section
2496 \begin_inset space ~
2500 \begin_inset CommandInset ref
2502 reference "sec:FloatIntroduction"
2509 \begin_layout Standard
2510 \begin_inset Float table
2516 \begin_layout Plain Layout
2517 \begin_inset Caption
2519 \begin_layout Plain Layout
2520 \begin_inset CommandInset label
2522 name "tab:a table float"
2534 \begin_layout Plain Layout
2536 \begin_inset Tabular
2537 <lyxtabular version="3" rows="3" columns="3">
2539 <column alignment="center" valignment="top" width="0pt">
2540 <column alignment="center" valignment="top" width="0pt">
2541 <column alignment="center" valignment="top" width="0pt">
2543 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2546 \begin_layout Plain Layout
2561 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2564 \begin_layout Plain Layout
2579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2582 \begin_layout Plain Layout
2599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2602 \begin_layout Plain Layout
2617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2620 \begin_layout Plain Layout
2635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2638 \begin_layout Plain Layout
2655 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2658 \begin_layout Plain Layout
2668 \begin_inset Formula $\int x^{2}dx$
2676 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2679 \begin_layout Plain Layout
2689 \begin_inset Formula $\left[\begin{array}{cc}
2691 c & d\end{array}\right]$
2699 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2702 \begin_layout Plain Layout
2712 \begin_inset Formula $1+1=2$
2733 \begin_layout Standard
2734 Table floats can be inserted using the menu
2736 Insert\SpecialChar \menuseparator
2737 Float\SpecialChar \menuseparator
2740 or the toolbar button
2741 \begin_inset Graphics
2742 filename ../images/float-insert_table.png
2751 \begin_layout Standard
2752 The float appears as a collapsible box with a caption that has the label
2754 \begin_inset Quotes eld
2758 \begin_inset space ~
2762 \begin_inset Quotes erd
2765 (# is the actual table number).
2766 You can insert tables in the float above or below the caption.
2769 \begin_layout Standard
2771 \begin_inset space ~
2775 \begin_inset CommandInset ref
2777 reference "tab:a table float"
2781 is an example table within a table float.
2784 \begin_layout Standard
2785 Having the caption above the table is the common rule that is unfortunately
2786 not supported in LaTeX's standard classes.
2787 This means that, if you are using the document classes
2803 , there will be no space between the caption and the table.
2804 To insert the needed space, add the following option to the load command
2805 of the LaTeX-package
2813 \begin_layout Plain Layout
2814 LaTeX-packages ! caption
2819 in your document preamble
2823 \begin_layout Plain Layout
2824 For more information have a look at section
2825 \begin_inset space ~
2829 \begin_inset CommandInset ref
2831 reference "sec:Caption-Placement"
2843 \begin_layout Standard
2849 \begin_layout Standard
2854 , which is described in section
2855 \begin_inset space ~
2859 \begin_inset CommandInset ref
2861 reference "sec:Caption-Formatting"
2865 , is used to adjust the caption format.
2868 \begin_layout Standard
2872 \begin_layout Plain Layout
2873 References ! to Tables
2878 Tables can be cross-referenced in the text by referencing their label.
2879 To do this insert a label in the caption using the menu
2881 Insert\SpecialChar \menuseparator
2884 or the toolbar button
2885 \begin_inset Graphics
2886 filename ../images/label-insert.png
2893 You can now refer to the label using the menu
2895 Insert\SpecialChar \menuseparator
2897 \begin_inset space ~
2902 or the toolbar button
2903 \begin_inset Graphics
2904 filename ../images/dialog-show-new-inset_ref.png
2911 \begin_inset Newline newline
2914 Referencing is explained in detail in section
2915 \begin_inset space ~
2919 \begin_inset CommandInset ref
2921 reference "sec:Referencing-Floats"
2928 \begin_layout Section
2930 \begin_inset CommandInset label
2932 name "sec:Longtables"
2940 \begin_layout Plain Layout
2950 \begin_layout Plain Layout
2959 \begin_layout Standard
2960 If the table is too long to fit on one page, you can use the option
2963 \begin_inset space ~
2967 \begin_inset space ~
2976 of the table dialog to split the table automatically over more pages.
2977 Doing this enables the following options:
2980 \begin_layout Description
2981 Header: The current row is defined to be a header row that appears on all
2982 pages of the longtable; except for the first page, if
2985 \begin_inset space ~
2991 This is therefore called the main header.
2994 \begin_layout Description
2996 \begin_inset space ~
2999 header: The current row is defined to be a header row that appears on the
3000 first page of the longtable.
3003 \begin_layout Description
3004 Footer: The current row is defined to be a footer row that appears on all
3005 pages of the longtable; except for the last page, if
3008 \begin_inset space ~
3016 \begin_layout Description
3018 \begin_inset space ~
3021 footer: The current row is defined to be a footer row that appears on the
3022 last page of the longtable.
3025 \begin_layout Description
3026 Caption: The current row contains the table caption.
3027 The row is reset as single column and a caption is inserted.
3028 More about longtable captions is explained in sec.
3029 \begin_inset space \thinspace{}
3033 \begin_inset CommandInset ref
3035 reference "sub:Longtable-Captions"
3042 \begin_layout Standard
3043 You can also specify a row where the table is split.
3044 See the following longtable to see how it works:
3047 \begin_layout Standard
3049 \begin_inset Tabular
3050 <lyxtabular version="3" rows="69" columns="3">
3051 <features islongtable="true">
3052 <column alignment="left" valignment="top" width="0cm">
3053 <column alignment="left" valignment="top" width="0pt">
3054 <column alignment="center" valignment="top" width="0pt">
3055 <row endfirsthead="true">
3056 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3059 \begin_layout Plain Layout
3062 Example Phone List (ignore the names)
3067 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3070 \begin_layout Plain Layout
3076 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3079 \begin_layout Plain Layout
3086 <row endfirsthead="true">
3087 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3090 \begin_layout Plain Layout
3098 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3101 \begin_layout Plain Layout
3107 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3110 \begin_layout Plain Layout
3119 <row endhead="true">
3120 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3123 \begin_layout Plain Layout
3131 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3134 \begin_layout Plain Layout
3140 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3143 \begin_layout Plain Layout
3150 <row endhead="true">
3151 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3154 \begin_layout Plain Layout
3162 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3165 \begin_layout Plain Layout
3171 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3174 \begin_layout Plain Layout
3183 <row endfoot="true">
3184 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3187 \begin_layout Plain Layout
3188 continued on next page
3193 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3196 \begin_layout Plain Layout
3202 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3205 \begin_layout Plain Layout
3213 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3216 \begin_layout Plain Layout
3224 <cell alignment="center" valignment="top" usebox="none">
3227 \begin_layout Plain Layout
3233 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3236 \begin_layout Plain Layout
3244 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3247 \begin_layout Plain Layout
3255 <cell alignment="center" valignment="top" usebox="none">
3258 \begin_layout Plain Layout
3264 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3267 \begin_layout Plain Layout
3275 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3278 \begin_layout Plain Layout
3286 <cell alignment="center" valignment="top" usebox="none">
3289 \begin_layout Plain Layout
3295 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3298 \begin_layout Plain Layout
3306 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3309 \begin_layout Plain Layout
3317 <cell alignment="center" valignment="top" usebox="none">
3320 \begin_layout Plain Layout
3326 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3329 \begin_layout Plain Layout
3337 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3340 \begin_layout Plain Layout
3348 <cell alignment="center" valignment="top" usebox="none">
3351 \begin_layout Plain Layout
3357 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3360 \begin_layout Plain Layout
3368 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3371 \begin_layout Plain Layout
3379 <cell alignment="center" valignment="top" usebox="none">
3382 \begin_layout Plain Layout
3388 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3391 \begin_layout Plain Layout
3399 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3402 \begin_layout Plain Layout
3410 <cell alignment="center" valignment="top" usebox="none">
3413 \begin_layout Plain Layout
3419 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3422 \begin_layout Plain Layout
3430 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3433 \begin_layout Plain Layout
3441 <cell alignment="center" valignment="top" usebox="none">
3444 \begin_layout Plain Layout
3450 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3453 \begin_layout Plain Layout
3461 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3464 \begin_layout Plain Layout
3472 <cell alignment="center" valignment="top" usebox="none">
3475 \begin_layout Plain Layout
3481 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3484 \begin_layout Plain Layout
3492 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3495 \begin_layout Plain Layout
3503 <cell alignment="center" valignment="top" usebox="none">
3506 \begin_layout Plain Layout
3512 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3515 \begin_layout Plain Layout
3523 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3526 \begin_layout Plain Layout
3534 <cell alignment="center" valignment="top" usebox="none">
3537 \begin_layout Plain Layout
3543 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3546 \begin_layout Plain Layout
3554 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3557 \begin_layout Plain Layout
3565 <cell alignment="center" valignment="top" usebox="none">
3568 \begin_layout Plain Layout
3574 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3577 \begin_layout Plain Layout
3585 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3588 \begin_layout Plain Layout
3596 <cell alignment="center" valignment="top" usebox="none">
3599 \begin_layout Plain Layout
3605 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3608 \begin_layout Plain Layout
3616 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3619 \begin_layout Plain Layout
3627 <cell alignment="center" valignment="top" usebox="none">
3630 \begin_layout Plain Layout
3636 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3639 \begin_layout Plain Layout
3647 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3650 \begin_layout Plain Layout
3658 <cell alignment="center" valignment="top" usebox="none">
3661 \begin_layout Plain Layout
3667 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3670 \begin_layout Plain Layout
3678 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3681 \begin_layout Plain Layout
3689 <cell alignment="center" valignment="top" usebox="none">
3692 \begin_layout Plain Layout
3698 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3701 \begin_layout Plain Layout
3709 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3712 \begin_layout Plain Layout
3720 <cell alignment="center" valignment="top" usebox="none">
3723 \begin_layout Plain Layout
3729 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3732 \begin_layout Plain Layout
3740 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3743 \begin_layout Plain Layout
3751 <cell alignment="center" valignment="top" usebox="none">
3754 \begin_layout Plain Layout
3760 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3763 \begin_layout Plain Layout
3771 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3774 \begin_layout Plain Layout
3782 <cell alignment="center" valignment="top" usebox="none">
3785 \begin_layout Plain Layout
3791 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3794 \begin_layout Plain Layout
3802 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3805 \begin_layout Plain Layout
3813 <cell alignment="center" valignment="top" usebox="none">
3816 \begin_layout Plain Layout
3822 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3825 \begin_layout Plain Layout
3833 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3836 \begin_layout Plain Layout
3844 <cell alignment="center" valignment="top" usebox="none">
3847 \begin_layout Plain Layout
3853 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3856 \begin_layout Plain Layout
3864 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3867 \begin_layout Plain Layout
3875 <cell alignment="center" valignment="top" usebox="none">
3878 \begin_layout Plain Layout
3884 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3887 \begin_layout Plain Layout
3895 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3898 \begin_layout Plain Layout
3906 <cell alignment="center" valignment="top" usebox="none">
3909 \begin_layout Plain Layout
3915 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3918 \begin_layout Plain Layout
3926 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3929 \begin_layout Plain Layout
3937 <cell alignment="center" valignment="top" usebox="none">
3940 \begin_layout Plain Layout
3946 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3949 \begin_layout Plain Layout
3957 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3960 \begin_layout Plain Layout
3968 <cell alignment="center" valignment="top" usebox="none">
3971 \begin_layout Plain Layout
3977 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3980 \begin_layout Plain Layout
3988 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3991 \begin_layout Plain Layout
3999 <cell alignment="center" valignment="top" usebox="none">
4002 \begin_layout Plain Layout
4008 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4011 \begin_layout Plain Layout
4019 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4022 \begin_layout Plain Layout
4030 <cell alignment="center" valignment="top" usebox="none">
4033 \begin_layout Plain Layout
4039 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4042 \begin_layout Plain Layout
4050 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4053 \begin_layout Plain Layout
4061 <cell alignment="center" valignment="top" usebox="none">
4064 \begin_layout Plain Layout
4070 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4073 \begin_layout Plain Layout
4081 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4084 \begin_layout Plain Layout
4092 <cell alignment="center" valignment="top" usebox="none">
4095 \begin_layout Plain Layout
4101 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4104 \begin_layout Plain Layout
4112 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4115 \begin_layout Plain Layout
4123 <cell alignment="center" valignment="top" usebox="none">
4126 \begin_layout Plain Layout
4132 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4135 \begin_layout Plain Layout
4143 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4146 \begin_layout Plain Layout
4154 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4157 \begin_layout Plain Layout
4163 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4166 \begin_layout Plain Layout
4174 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4177 \begin_layout Plain Layout
4183 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4186 \begin_layout Plain Layout
4192 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4195 \begin_layout Plain Layout
4203 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4206 \begin_layout Plain Layout
4214 <cell alignment="center" valignment="top" usebox="none">
4217 \begin_layout Plain Layout
4223 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4226 \begin_layout Plain Layout
4234 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4237 \begin_layout Plain Layout
4245 <cell alignment="center" valignment="top" usebox="none">
4248 \begin_layout Plain Layout
4254 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4257 \begin_layout Plain Layout
4265 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4268 \begin_layout Plain Layout
4276 <cell alignment="center" valignment="top" usebox="none">
4279 \begin_layout Plain Layout
4285 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4288 \begin_layout Plain Layout
4296 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4299 \begin_layout Plain Layout
4307 <cell alignment="center" valignment="top" usebox="none">
4310 \begin_layout Plain Layout
4316 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4319 \begin_layout Plain Layout
4327 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4330 \begin_layout Plain Layout
4338 <cell alignment="center" valignment="top" usebox="none">
4341 \begin_layout Plain Layout
4347 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4350 \begin_layout Plain Layout
4358 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4361 \begin_layout Plain Layout
4369 <cell alignment="center" valignment="top" usebox="none">
4372 \begin_layout Plain Layout
4378 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4381 \begin_layout Plain Layout
4389 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4392 \begin_layout Plain Layout
4400 <cell alignment="center" valignment="top" usebox="none">
4403 \begin_layout Plain Layout
4409 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4412 \begin_layout Plain Layout
4420 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4423 \begin_layout Plain Layout
4431 <cell alignment="center" valignment="top" usebox="none">
4434 \begin_layout Plain Layout
4440 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4443 \begin_layout Plain Layout
4451 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4454 \begin_layout Plain Layout
4462 <cell alignment="center" valignment="top" usebox="none">
4465 \begin_layout Plain Layout
4471 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4474 \begin_layout Plain Layout
4482 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4485 \begin_layout Plain Layout
4493 <cell alignment="center" valignment="top" usebox="none">
4496 \begin_layout Plain Layout
4502 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4505 \begin_layout Plain Layout
4513 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4516 \begin_layout Plain Layout
4524 <cell alignment="center" valignment="top" usebox="none">
4527 \begin_layout Plain Layout
4533 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4536 \begin_layout Plain Layout
4544 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4547 \begin_layout Plain Layout
4555 <cell alignment="center" valignment="top" usebox="none">
4558 \begin_layout Plain Layout
4564 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4567 \begin_layout Plain Layout
4575 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4578 \begin_layout Plain Layout
4586 <cell alignment="center" valignment="top" usebox="none">
4589 \begin_layout Plain Layout
4595 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4598 \begin_layout Plain Layout
4606 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4609 \begin_layout Plain Layout
4617 <cell alignment="center" valignment="top" usebox="none">
4620 \begin_layout Plain Layout
4626 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4629 \begin_layout Plain Layout
4637 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4640 \begin_layout Plain Layout
4648 <cell alignment="center" valignment="top" usebox="none">
4651 \begin_layout Plain Layout
4657 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4660 \begin_layout Plain Layout
4668 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4671 \begin_layout Plain Layout
4679 <cell alignment="center" valignment="top" usebox="none">
4682 \begin_layout Plain Layout
4688 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4691 \begin_layout Plain Layout
4699 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4702 \begin_layout Plain Layout
4710 <cell alignment="center" valignment="top" usebox="none">
4713 \begin_layout Plain Layout
4719 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4722 \begin_layout Plain Layout
4730 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4733 \begin_layout Plain Layout
4741 <cell alignment="center" valignment="top" usebox="none">
4744 \begin_layout Plain Layout
4750 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4753 \begin_layout Plain Layout
4761 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4764 \begin_layout Plain Layout
4772 <cell alignment="center" valignment="top" usebox="none">
4775 \begin_layout Plain Layout
4781 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4784 \begin_layout Plain Layout
4792 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4795 \begin_layout Plain Layout
4803 <cell alignment="center" valignment="top" usebox="none">
4806 \begin_layout Plain Layout
4812 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4815 \begin_layout Plain Layout
4823 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4826 \begin_layout Plain Layout
4834 <cell alignment="center" valignment="top" usebox="none">
4837 \begin_layout Plain Layout
4843 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4846 \begin_layout Plain Layout
4854 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4857 \begin_layout Plain Layout
4865 <cell alignment="center" valignment="top" usebox="none">
4868 \begin_layout Plain Layout
4874 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4877 \begin_layout Plain Layout
4885 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4888 \begin_layout Plain Layout
4896 <cell alignment="center" valignment="top" usebox="none">
4899 \begin_layout Plain Layout
4905 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4908 \begin_layout Plain Layout
4916 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4919 \begin_layout Plain Layout
4927 <cell alignment="center" valignment="top" usebox="none">
4930 \begin_layout Plain Layout
4936 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4939 \begin_layout Plain Layout
4947 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4950 \begin_layout Plain Layout
4958 <cell alignment="center" valignment="top" usebox="none">
4961 \begin_layout Plain Layout
4967 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4970 \begin_layout Plain Layout
4978 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4981 \begin_layout Plain Layout
4989 <cell alignment="center" valignment="top" usebox="none">
4992 \begin_layout Plain Layout
4998 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5001 \begin_layout Plain Layout
5009 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5012 \begin_layout Plain Layout
5020 <cell alignment="center" valignment="top" usebox="none">
5023 \begin_layout Plain Layout
5029 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5032 \begin_layout Plain Layout
5040 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5043 \begin_layout Plain Layout
5051 <cell alignment="center" valignment="top" usebox="none">
5054 \begin_layout Plain Layout
5060 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5063 \begin_layout Plain Layout
5071 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5074 \begin_layout Plain Layout
5082 <cell alignment="center" valignment="top" usebox="none">
5085 \begin_layout Plain Layout
5091 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5094 \begin_layout Plain Layout
5102 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5105 \begin_layout Plain Layout
5113 <cell alignment="center" valignment="top" usebox="none">
5116 \begin_layout Plain Layout
5122 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5125 \begin_layout Plain Layout
5133 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5136 \begin_layout Plain Layout
5144 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5147 \begin_layout Plain Layout
5153 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5156 \begin_layout Plain Layout
5163 <row endlastfoot="true">
5164 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5167 \begin_layout Plain Layout
5173 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5176 \begin_layout Plain Layout
5182 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5185 \begin_layout Plain Layout
5200 \begin_layout Plain Layout
5204 addtocounter{table}{-1}
5210 \begin_inset Note Note
5213 \begin_layout Plain Layout
5214 See the first greyed-out note in section
5215 \begin_inset space ~
5219 \begin_inset CommandInset ref
5221 reference "sub:Longtable-Captions"
5225 for an explanation of this command.
5233 \begin_layout Subsection
5234 Footnotes in Longtables
5235 \begin_inset CommandInset label
5237 name "sub:Footnotes-in-Longtables"
5245 \begin_layout Plain Layout
5246 Longtables ! Footnotes
5254 \begin_layout Standard
5255 Footnotes can be inserted to every longtable cell.
5256 They appear at the bottom of the page where the table cell with the footnote
5259 \begin_inset space ~
5263 \begin_inset CommandInset ref
5265 reference "tab:DiffCaptions"
5269 has for example a footnote.
5272 \begin_layout Subsection
5277 \begin_layout Plain Layout
5278 Longtables ! Alignment
5286 \begin_layout Standard
5287 Longtables are by default centered.
5288 Unlike the alignment of the table columns and rows, the table alignment
5289 can currently not be changed in the table dialog.
5290 To change the alignment of longtables you have to change the value of the
5303 by inserting this line as TeX-Code before the corresponding longtable:
5306 \begin_layout Standard
5316 \begin_layout Standard
5317 where the value can have any of the units listed in Table
5318 \begin_inset space ~
5322 \begin_inset CommandInset ref
5324 reference "tab:Units"
5335 controls the horizontal distance from the left page border to the longtable,
5342 the distance from the right side.
5343 The default value for both lengths is
5349 , which is in this case the same as an horizontal fill in LyX.
5352 \begin_layout Standard
5353 The following longtable was left-aligned by setting
5360 \begin_inset space \thinspace{}
5367 \begin_layout Plain Layout
5381 \begin_layout Standard
5382 \begin_inset Tabular
5383 <lyxtabular version="3" rows="5" columns="5">
5384 <features islongtable="true">
5385 <column alignment="center" valignment="top" width="0">
5386 <column alignment="center" valignment="top" width="0">
5387 <column alignment="center" valignment="top" width="0">
5388 <column alignment="center" valignment="top" width="0">
5389 <column alignment="center" valignment="top" width="0">
5391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5394 \begin_layout Plain Layout
5400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5403 \begin_layout Plain Layout
5409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5412 \begin_layout Plain Layout
5418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5421 \begin_layout Plain Layout
5427 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5430 \begin_layout Plain Layout
5438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5441 \begin_layout Plain Layout
5447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5450 \begin_layout Plain Layout
5456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5459 \begin_layout Plain Layout
5465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5468 \begin_layout Plain Layout
5474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5477 \begin_layout Plain Layout
5485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5488 \begin_layout Plain Layout
5494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5497 \begin_layout Plain Layout
5503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5506 \begin_layout Plain Layout
5512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5515 \begin_layout Plain Layout
5521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5524 \begin_layout Plain Layout
5532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5535 \begin_layout Plain Layout
5541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5544 \begin_layout Plain Layout
5550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5553 \begin_layout Plain Layout
5559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5562 \begin_layout Plain Layout
5568 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5571 \begin_layout Plain Layout
5579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5582 \begin_layout Plain Layout
5588 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5591 \begin_layout Plain Layout
5597 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5600 \begin_layout Plain Layout
5606 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5609 \begin_layout Plain Layout
5615 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5618 \begin_layout Plain Layout
5633 \begin_layout Plain Layout
5650 \begin_layout Plain Layout
5654 addtocounter{table}{-1}
5660 \begin_inset Note Note
5663 \begin_layout Plain Layout
5664 See the first greyed-out note in section
5665 \begin_inset space ~
5669 \begin_inset CommandInset ref
5671 reference "sub:Longtable-Captions"
5675 for an explanation of this command.
5683 \begin_layout Subsection
5688 \begin_layout Plain Layout
5689 Longtables ! Captions
5695 \begin_inset CommandInset label
5697 name "sub:Longtable-Captions"
5704 \begin_layout Standard
5705 A longtable cannot be put into a table float because floats can only be
5707 But the caption environment of floats can also be used for longtables when
5708 you use the longtable option
5712 as described in sec.
5713 \begin_inset space \thinspace{}
5717 \begin_inset CommandInset ref
5719 reference "sec:Longtables"
5724 Only one table row can contain the caption.
5727 \begin_layout Standard
5728 Here is a short longtable to see how it works:
5731 \begin_layout Standard
5732 \begin_inset Tabular
5733 <lyxtabular version="3" rows="6" columns="5">
5734 <features islongtable="true">
5735 <column alignment="center" valignment="top" width="0">
5736 <column alignment="center" valignment="top" width="0">
5737 <column alignment="center" valignment="top" width="0">
5738 <column alignment="center" valignment="top" width="0">
5739 <column alignment="center" valignment="top" width="0">
5740 <row caption="true">
5741 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5744 \begin_layout Plain Layout
5745 \begin_inset Caption
5747 \begin_layout Plain Layout
5748 Longtable with caption
5752 \begin_layout Plain Layout
5768 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5771 \begin_layout Plain Layout
5777 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5780 \begin_layout Plain Layout
5786 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5789 \begin_layout Plain Layout
5795 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5798 \begin_layout Plain Layout
5806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5809 \begin_layout Plain Layout
5815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5818 \begin_layout Plain Layout
5824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5827 \begin_layout Plain Layout
5833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5836 \begin_layout Plain Layout
5842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5845 \begin_layout Plain Layout
5853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5856 \begin_layout Plain Layout
5862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5865 \begin_layout Plain Layout
5871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5874 \begin_layout Plain Layout
5880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5883 \begin_layout Plain Layout
5889 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5892 \begin_layout Plain Layout
5900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5903 \begin_layout Plain Layout
5909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5912 \begin_layout Plain Layout
5918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5921 \begin_layout Plain Layout
5927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5930 \begin_layout Plain Layout
5936 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5939 \begin_layout Plain Layout
5947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5950 \begin_layout Plain Layout
5956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5959 \begin_layout Plain Layout
5965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5968 \begin_layout Plain Layout
5974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5977 \begin_layout Plain Layout
5983 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5986 \begin_layout Plain Layout
5994 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5997 \begin_layout Plain Layout
6003 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6006 \begin_layout Plain Layout
6012 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6015 \begin_layout Plain Layout
6021 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6024 \begin_layout Plain Layout
6030 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6033 \begin_layout Plain Layout
6047 \begin_layout Standard
6048 \begin_inset VSpace medskip
6052 \begin_inset Note Greyedout
6055 \begin_layout Plain Layout
6059 \begin_inset space ~
6064 The table number is increased for for every longtable, even if you did
6065 not set a caption for it.
6066 For this reason you could have the case that e.
6067 \begin_inset space \thinspace{}
6071 \begin_inset space \space{}
6075 \begin_inset space ~
6079 \begin_inset space ~
6082 2.1 in the list of tables if there are two longtables without captions.
6083 To avoid this you can add the following command in TeX-Code after every
6084 longtable without a caption:
6087 \begin_layout Plain Layout
6092 addtocounter{table}{-1}
6095 \begin_layout Plain Layout
6096 This is not needed when none of your longtables have a caption and you add
6097 the following code to the document preamble:
6100 \begin_layout Plain Layout
6110 \begin_inset Newline newline
6121 addtocounter{table}{-1}}
6129 \begin_layout Standard
6130 \begin_inset Note Greyedout
6133 \begin_layout Plain Layout
6137 \begin_inset space ~
6150 \begin_layout Plain Layout
6151 LaTeX-packages ! hyperref
6164 dialog to link cross-references, the link to a longtable caption will always
6165 point to the beginning of the document.
6173 \begin_layout Subsubsection
6174 References to Longtables
6178 \begin_layout Plain Layout
6179 Longtables ! References
6187 \begin_layout Standard
6188 \begin_inset Tabular
6189 <lyxtabular version="3" rows="6" columns="5">
6190 <features islongtable="true">
6191 <column alignment="center" valignment="top" width="0">
6192 <column alignment="center" valignment="top" width="0">
6193 <column alignment="center" valignment="top" width="0">
6194 <column alignment="center" valignment="top" width="0">
6195 <column alignment="center" valignment="top" width="0">
6196 <row caption="true">
6197 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6200 \begin_layout Plain Layout
6201 \begin_inset Caption
6203 \begin_layout Plain Layout
6204 Referenced longtable
6205 \begin_inset CommandInset label
6207 name "tab:RefExample"
6221 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6224 \begin_layout Plain Layout
6230 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6233 \begin_layout Plain Layout
6239 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6242 \begin_layout Plain Layout
6248 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6251 \begin_layout Plain Layout
6259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6262 \begin_layout Plain Layout
6268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6271 \begin_layout Plain Layout
6277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6280 \begin_layout Plain Layout
6286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6289 \begin_layout Plain Layout
6295 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6298 \begin_layout Plain Layout
6306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6309 \begin_layout Plain Layout
6315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6318 \begin_layout Plain Layout
6324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6327 \begin_layout Plain Layout
6333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6336 \begin_layout Plain Layout
6342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6345 \begin_layout Plain Layout
6353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6356 \begin_layout Plain Layout
6362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6365 \begin_layout Plain Layout
6371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6374 \begin_layout Plain Layout
6380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6383 \begin_layout Plain Layout
6389 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6392 \begin_layout Plain Layout
6400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6403 \begin_layout Plain Layout
6409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6412 \begin_layout Plain Layout
6418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6421 \begin_layout Plain Layout
6427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6430 \begin_layout Plain Layout
6436 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6439 \begin_layout Plain Layout
6447 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6450 \begin_layout Plain Layout
6456 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6459 \begin_layout Plain Layout
6465 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6468 \begin_layout Plain Layout
6474 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6477 \begin_layout Plain Layout
6483 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6486 \begin_layout Plain Layout
6500 \begin_layout Standard
6501 To reference a longtable, insert a label into the caption.
6504 \begin_layout Standard
6505 This is a reference to Table
6506 \begin_inset space ~
6510 \begin_inset CommandInset ref
6512 reference "tab:RefExample"
6519 \begin_layout Standard
6520 The caption layout can be set together with all other captions of your document
6521 using the LaTeX-package
6529 \begin_layout Plain Layout
6530 LaTeX-packages ! caption
6536 \begin_inset space ~
6540 \begin_inset CommandInset ref
6542 reference "sec:Caption-Formatting"
6549 \begin_layout Subsubsection
6554 \begin_layout Plain Layout
6555 Longtables ! Caption Width
6563 \begin_layout Standard
6564 The maximal width of of caption lines is defined by the length
6571 Its default value is 4
6572 \begin_inset space \thinspace{}
6576 To change it add the following command to your document preamble or as
6577 TeX-Code into your document before the longtable that should be affected
6580 \begin_layout Standard
6590 \begin_layout Standard
6591 where the width could have one of the units listed in appendix
6592 \begin_inset space ~
6596 \begin_inset CommandInset ref
6598 reference "cha:Units-available-in"
6605 \begin_layout Standard
6606 The following tables show the difference:
6609 \begin_layout Standard
6610 \begin_inset Tabular
6611 <lyxtabular version="3" rows="6" columns="5">
6612 <features islongtable="true">
6613 <column alignment="center" valignment="top" width="0">
6614 <column alignment="center" valignment="top" width="0">
6615 <column alignment="center" valignment="top" width="0">
6616 <column alignment="center" valignment="top" width="0">
6617 <column alignment="center" valignment="top" width="0">
6618 <row caption="true">
6619 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6622 \begin_layout Plain Layout
6623 \begin_inset Caption
6625 \begin_layout Plain Layout
6626 long full title with default width long full title with default width long
6627 full title with default width
6631 \begin_layout Plain Layout
6632 caption with default width
6647 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6650 \begin_layout Plain Layout
6656 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6659 \begin_layout Plain Layout
6665 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6668 \begin_layout Plain Layout
6674 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6677 \begin_layout Plain Layout
6685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6688 \begin_layout Plain Layout
6694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6697 \begin_layout Plain Layout
6703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6706 \begin_layout Plain Layout
6712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6715 \begin_layout Plain Layout
6721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6724 \begin_layout Plain Layout
6732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6735 \begin_layout Plain Layout
6741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6744 \begin_layout Plain Layout
6750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6753 \begin_layout Plain Layout
6759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6762 \begin_layout Plain Layout
6768 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6771 \begin_layout Plain Layout
6779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6782 \begin_layout Plain Layout
6788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6791 \begin_layout Plain Layout
6797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6800 \begin_layout Plain Layout
6806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6809 \begin_layout Plain Layout
6815 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6818 \begin_layout Plain Layout
6826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6829 \begin_layout Plain Layout
6835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6838 \begin_layout Plain Layout
6844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6847 \begin_layout Plain Layout
6853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6856 \begin_layout Plain Layout
6862 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6865 \begin_layout Plain Layout
6873 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6876 \begin_layout Plain Layout
6882 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6885 \begin_layout Plain Layout
6891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6894 \begin_layout Plain Layout
6900 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6903 \begin_layout Plain Layout
6909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6912 \begin_layout Plain Layout
6926 \begin_layout Standard
6930 \begin_layout Plain Layout
6942 \begin_inset Tabular
6943 <lyxtabular version="3" rows="6" columns="5">
6944 <features islongtable="true">
6945 <column alignment="center" valignment="top" width="0">
6946 <column alignment="center" valignment="top" width="0">
6947 <column alignment="center" valignment="top" width="0">
6948 <column alignment="center" valignment="top" width="0">
6949 <column alignment="center" valignment="top" width="0">
6950 <row caption="true">
6951 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6954 \begin_layout Plain Layout
6955 \begin_inset Caption
6957 \begin_layout Plain Layout
6958 long full title with width set to 5
6959 \begin_inset space \thinspace{}
6962 cm long full title with width set to 5
6963 \begin_inset space \thinspace{}
6966 cm long full title with width set to 5
6967 \begin_inset space \thinspace{}
6974 \begin_layout Plain Layout
6976 \begin_inset space \thinspace{}
6980 \begin_inset space \thinspace{}
6984 \begin_inset space \thinspace{}
7002 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7005 \begin_layout Plain Layout
7011 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7014 \begin_layout Plain Layout
7020 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7023 \begin_layout Plain Layout
7029 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7032 \begin_layout Plain Layout
7040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7043 \begin_layout Plain Layout
7049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7052 \begin_layout Plain Layout
7058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7061 \begin_layout Plain Layout
7067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7070 \begin_layout Plain Layout
7076 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7079 \begin_layout Plain Layout
7087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7090 \begin_layout Plain Layout
7096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7099 \begin_layout Plain Layout
7105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7108 \begin_layout Plain Layout
7114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7117 \begin_layout Plain Layout
7123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7126 \begin_layout Plain Layout
7134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7137 \begin_layout Plain Layout
7143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7146 \begin_layout Plain Layout
7152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7155 \begin_layout Plain Layout
7161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7164 \begin_layout Plain Layout
7170 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7173 \begin_layout Plain Layout
7181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7184 \begin_layout Plain Layout
7190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7193 \begin_layout Plain Layout
7199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7202 \begin_layout Plain Layout
7208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7211 \begin_layout Plain Layout
7217 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7220 \begin_layout Plain Layout
7228 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7231 \begin_layout Plain Layout
7237 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7240 \begin_layout Plain Layout
7246 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7249 \begin_layout Plain Layout
7255 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7258 \begin_layout Plain Layout
7264 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7267 \begin_layout Plain Layout
7281 \begin_layout Standard
7285 \begin_layout Plain Layout
7299 \begin_layout Standard
7300 \begin_inset Note Greyedout
7303 \begin_layout Plain Layout
7308 When the LaTeX-package
7316 \begin_layout Plain Layout
7317 LaTeX-packages ! caption
7322 is used, as in this document, the full page width is used for the caption
7323 when you use the default value of 4
7324 \begin_inset space \thinspace{}
7334 To get in this case exactly a 4
7335 \begin_inset space \thinspace{}
7338 in wide caption, you can either use a value slightly different from 4.0
7339 \begin_inset space \thinspace{}
7343 \begin_inset space \thinspace{}
7347 \begin_inset space \space{}
7351 \begin_inset space \thinspace{}
7354 in, or the LaTeX-command
7358 captionsetup{width=value}
7360 that is provided by the
7372 \begin_layout Subsubsection
7373 Different Captions for Table Pages
7377 \begin_layout Plain Layout
7378 Longtables ! Different Captions for Pages
7386 \begin_layout Standard
7387 When the table captions for the following pages should differ from the one
7388 of the first table page, insert a caption with the TeX code command
7391 \begin_layout Standard
7396 caption*{caption text}
7403 \begin_layout Standard
7404 in a dummy caption row that is marked as a header.
7406 \begin_inset space ~
7410 \begin_inset CommandInset ref
7412 reference "tab:DiffCaptions"
7416 is an example of a longtable with different heading where the second caption
7417 doesn't include the table number.
7420 \begin_layout Standard
7422 \begin_inset Tabular
7423 <lyxtabular version="3" rows="59" columns="3">
7424 <features islongtable="true" lastFootEmpty="true">
7425 <column alignment="left" valignment="top" width="0cm">
7426 <column alignment="left" valignment="top" width="0pt">
7427 <column alignment="center" valignment="top" width="0pt">
7428 <row caption="true">
7429 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7432 \begin_layout Plain Layout
7433 \begin_inset Caption
7435 \begin_layout Plain Layout
7437 \begin_inset CommandInset label
7439 name "tab:DiffCaptions"
7447 \begin_layout Plain Layout
7463 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7466 \begin_layout Plain Layout
7472 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7475 \begin_layout Plain Layout
7482 <row endfirsthead="true">
7483 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7486 \begin_layout Plain Layout
7489 Example Phone List (ignore the names)
7494 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7497 \begin_layout Plain Layout
7503 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7506 \begin_layout Plain Layout
7513 <row endfirsthead="true">
7514 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7517 \begin_layout Plain Layout
7525 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7528 \begin_layout Plain Layout
7534 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7537 \begin_layout Plain Layout
7546 <row endhead="true">
7547 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7550 \begin_layout Plain Layout
7554 \begin_layout Plain Layout
7558 caption*{Continued Example Phone List}
7572 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7575 \begin_layout Plain Layout
7581 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7584 \begin_layout Plain Layout
7591 <row endhead="true">
7592 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7595 \begin_layout Plain Layout
7603 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7606 \begin_layout Plain Layout
7612 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7615 \begin_layout Plain Layout
7622 <row endhead="true">
7623 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7626 \begin_layout Plain Layout
7634 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7637 \begin_layout Plain Layout
7643 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7646 \begin_layout Plain Layout
7655 <row endfoot="true">
7656 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7659 \begin_layout Plain Layout
7660 continued on next page
7665 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7668 \begin_layout Plain Layout
7674 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7677 \begin_layout Plain Layout
7685 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7688 \begin_layout Plain Layout
7696 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7699 \begin_layout Plain Layout
7705 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7708 \begin_layout Plain Layout
7716 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7719 \begin_layout Plain Layout
7727 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7730 \begin_layout Plain Layout
7736 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7739 \begin_layout Plain Layout
7747 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7750 \begin_layout Plain Layout
7758 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7761 \begin_layout Plain Layout
7767 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7770 \begin_layout Plain Layout
7778 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7781 \begin_layout Plain Layout
7789 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7792 \begin_layout Plain Layout
7798 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7801 \begin_layout Plain Layout
7809 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7812 \begin_layout Plain Layout
7820 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7823 \begin_layout Plain Layout
7829 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7832 \begin_layout Plain Layout
7840 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7843 \begin_layout Plain Layout
7851 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7854 \begin_layout Plain Layout
7860 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7863 \begin_layout Plain Layout
7871 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7874 \begin_layout Plain Layout
7882 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7885 \begin_layout Plain Layout
7891 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7894 \begin_layout Plain Layout
7902 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7905 \begin_layout Plain Layout
7913 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7916 \begin_layout Plain Layout
7922 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7925 \begin_layout Plain Layout
7933 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7936 \begin_layout Plain Layout
7944 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7947 \begin_layout Plain Layout
7953 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7956 \begin_layout Plain Layout
7964 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7967 \begin_layout Plain Layout
7975 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7978 \begin_layout Plain Layout
7984 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7987 \begin_layout Plain Layout
7995 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7998 \begin_layout Plain Layout
8006 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8009 \begin_layout Plain Layout
8015 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8018 \begin_layout Plain Layout
8026 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8029 \begin_layout Plain Layout
8037 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8040 \begin_layout Plain Layout
8046 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8049 \begin_layout Plain Layout
8057 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8060 \begin_layout Plain Layout
8068 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8071 \begin_layout Plain Layout
8077 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8080 \begin_layout Plain Layout
8088 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8091 \begin_layout Plain Layout
8099 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8102 \begin_layout Plain Layout
8108 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8111 \begin_layout Plain Layout
8119 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8122 \begin_layout Plain Layout
8131 \begin_layout Plain Layout
8142 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8145 \begin_layout Plain Layout
8151 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8154 \begin_layout Plain Layout
8162 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8165 \begin_layout Plain Layout
8173 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8176 \begin_layout Plain Layout
8182 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8185 \begin_layout Plain Layout
8193 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8196 \begin_layout Plain Layout
8204 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8207 \begin_layout Plain Layout
8213 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8216 \begin_layout Plain Layout
8224 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8227 \begin_layout Plain Layout
8235 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8238 \begin_layout Plain Layout
8244 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8247 \begin_layout Plain Layout
8255 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8258 \begin_layout Plain Layout
8266 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8269 \begin_layout Plain Layout
8275 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8278 \begin_layout Plain Layout
8286 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8289 \begin_layout Plain Layout
8297 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8300 \begin_layout Plain Layout
8306 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8309 \begin_layout Plain Layout
8317 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8320 \begin_layout Plain Layout
8328 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8331 \begin_layout Plain Layout
8337 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8340 \begin_layout Plain Layout
8348 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8351 \begin_layout Plain Layout
8359 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8362 \begin_layout Plain Layout
8368 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8371 \begin_layout Plain Layout
8379 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8382 \begin_layout Plain Layout
8390 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8393 \begin_layout Plain Layout
8399 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8402 \begin_layout Plain Layout
8410 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8413 \begin_layout Plain Layout
8421 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8424 \begin_layout Plain Layout
8430 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8433 \begin_layout Plain Layout
8441 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8444 \begin_layout Plain Layout
8452 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8455 \begin_layout Plain Layout
8461 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8464 \begin_layout Plain Layout
8472 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8475 \begin_layout Plain Layout
8483 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8486 \begin_layout Plain Layout
8492 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8495 \begin_layout Plain Layout
8503 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8506 \begin_layout Plain Layout
8514 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8517 \begin_layout Plain Layout
8523 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8526 \begin_layout Plain Layout
8534 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8537 \begin_layout Plain Layout
8545 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8548 \begin_layout Plain Layout
8554 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8557 \begin_layout Plain Layout
8565 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8568 \begin_layout Plain Layout
8576 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8579 \begin_layout Plain Layout
8585 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8588 \begin_layout Plain Layout
8596 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8599 \begin_layout Plain Layout
8607 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8610 \begin_layout Plain Layout
8616 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8619 \begin_layout Plain Layout
8627 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8630 \begin_layout Plain Layout
8638 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8641 \begin_layout Plain Layout
8647 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8650 \begin_layout Plain Layout
8658 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8661 \begin_layout Plain Layout
8667 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8670 \begin_layout Plain Layout
8676 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8679 \begin_layout Plain Layout
8687 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8690 \begin_layout Plain Layout
8698 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8701 \begin_layout Plain Layout
8707 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8710 \begin_layout Plain Layout
8718 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8721 \begin_layout Plain Layout
8729 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8732 \begin_layout Plain Layout
8738 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8741 \begin_layout Plain Layout
8749 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8752 \begin_layout Plain Layout
8760 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8763 \begin_layout Plain Layout
8769 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8772 \begin_layout Plain Layout
8780 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8783 \begin_layout Plain Layout
8791 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8794 \begin_layout Plain Layout
8800 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8803 \begin_layout Plain Layout
8811 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8814 \begin_layout Plain Layout
8822 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8825 \begin_layout Plain Layout
8831 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8834 \begin_layout Plain Layout
8842 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8845 \begin_layout Plain Layout
8853 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8856 \begin_layout Plain Layout
8862 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8865 \begin_layout Plain Layout
8873 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8876 \begin_layout Plain Layout
8884 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8887 \begin_layout Plain Layout
8893 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8896 \begin_layout Plain Layout
8904 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8907 \begin_layout Plain Layout
8915 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8918 \begin_layout Plain Layout
8924 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8927 \begin_layout Plain Layout
8935 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8938 \begin_layout Plain Layout
8946 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8949 \begin_layout Plain Layout
8955 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8958 \begin_layout Plain Layout
8966 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8969 \begin_layout Plain Layout
8977 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8980 \begin_layout Plain Layout
8986 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8989 \begin_layout Plain Layout
8997 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9000 \begin_layout Plain Layout
9008 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9011 \begin_layout Plain Layout
9017 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9020 \begin_layout Plain Layout
9028 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9031 \begin_layout Plain Layout
9039 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9042 \begin_layout Plain Layout
9048 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9051 \begin_layout Plain Layout
9059 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9062 \begin_layout Plain Layout
9070 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9073 \begin_layout Plain Layout
9079 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9082 \begin_layout Plain Layout
9090 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9093 \begin_layout Plain Layout
9101 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9104 \begin_layout Plain Layout
9110 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9113 \begin_layout Plain Layout
9121 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9124 \begin_layout Plain Layout
9132 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9135 \begin_layout Plain Layout
9141 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9144 \begin_layout Plain Layout
9152 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9155 \begin_layout Plain Layout
9163 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9166 \begin_layout Plain Layout
9172 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9175 \begin_layout Plain Layout
9183 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9186 \begin_layout Plain Layout
9194 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9197 \begin_layout Plain Layout
9203 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9206 \begin_layout Plain Layout
9214 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9217 \begin_layout Plain Layout
9225 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9228 \begin_layout Plain Layout
9234 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9237 \begin_layout Plain Layout
9245 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9248 \begin_layout Plain Layout
9256 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9259 \begin_layout Plain Layout
9265 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9268 \begin_layout Plain Layout
9276 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9279 \begin_layout Plain Layout
9287 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9290 \begin_layout Plain Layout
9296 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9299 \begin_layout Plain Layout
9313 \begin_layout Section
9314 Special Longtable Issues
9315 \begin_inset CommandInset label
9317 name "sec:Special-Longtable-Issues"
9324 \begin_layout Subsection
9325 Longtable Calculation
9329 \begin_layout Plain Layout
9330 Longtables ! Calculation
9338 \begin_layout Standard
9339 LaTeX calculates the height of table pages and their page breaks using so
9341 Chunks are parts of tables that held at the same time in LaTeX's memory.
9342 The default value was historically set to only 20 table rows.
9343 If you are using longtables with many pages this may slow down the creation
9345 You can safely increase the chunk size to values of 100-1000 by adding
9346 this command line to your document preamble:
9349 \begin_layout Standard
9354 setcounter{LTchunksize}{100}
9357 \begin_layout Subsection
9358 Floats and Longtables
9362 \begin_layout Plain Layout
9371 \begin_layout Standard
9372 There might be problems when a float appears on the same page where a longtable
9374 To avoid such a situation, insert a
9375 \begin_inset Quotes eld
9379 \begin_inset Quotes erd
9384 Insert\SpecialChar \menuseparator
9385 Formatting\SpecialChar \menuseparator
9387 \begin_inset space ~
9392 ) before your longtable.
9395 \begin_layout Subsection
9400 \begin_layout Plain Layout
9401 Longtables ! Forced Page Breaks
9409 \begin_layout Standard
9410 By default tables are only broken between rows.
9411 If you have a cell with multiples lines and want to have a page break within
9412 the cell, insert the new line command
9413 \begin_inset Quotes eld
9425 \begin_inset Quotes erd
9428 as TeX-Code at the point of the cell where it can be broken.
9437 command you have to insert in TeX-Code as many
9438 \begin_inset Quotes eld
9446 \begin_inset Quotes erd
9449 characters as the number of the following table columns.
9454 is the character to separate table cells.
9455 Write in TeX-Code after each
9459 the content of the corresponding following cell and delete the content
9461 \begin_inset Newline newline
9472 command, insert aso many
9476 characters as the number of table columns before the current column.
9478 \begin_inset space ~
9482 \begin_inset CommandInset ref
9484 reference "tab:ForcedPagebreak"
9488 the cell that should be broken is in the second column followed by another
9490 Therefore the following command was inserted in the cell as TeX-Code after
9492 \begin_inset Quotes eld
9500 \begin_inset Quotes erd
9506 \begin_layout Standard
9516 \begin_inset Newline newline
9522 \begin_layout Standard
9524 \begin_inset Quotes eld
9528 \begin_inset Quotes erd
9531 in the third column of the row was deleted.
9538 is only needed when a page break should definitely occur at this position,
9539 otherwise it would be a conditional break.
9540 If your footer row of the longtable has for a certain reason no upper line
9541 but you would have a horizontal line where the cell is broken, use this
9545 \begin_layout Standard
9553 \begin_inset Newline newline
9561 \begin_layout Standard
9562 When the cell to be broken is in the last column, the command
9565 \begin_layout Standard
9575 \begin_layout Standard
9576 must be inserted as TeX-Code at the beginning of the cell.
9577 This ensures that the part of the cell that will be displayed on the new
9578 page appears with the full width.
9581 \begin_layout Standard
9583 \begin_inset Tabular
9584 <lyxtabular version="3" rows="38" columns="3">
9585 <features islongtable="true" lastFootEmpty="true">
9586 <column alignment="left" valignment="top" width="0cm">
9587 <column alignment="left" valignment="top" width="3cm">
9588 <column alignment="center" valignment="top" width="0pt">
9589 <row caption="true">
9590 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9593 \begin_layout Plain Layout
9594 \begin_inset Caption
9596 \begin_layout Plain Layout
9597 Table with forced page break in table cell
9598 \begin_inset CommandInset label
9600 name "tab:ForcedPagebreak"
9608 \begin_layout Plain Layout
9609 Table with forced page break in table cell
9624 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9627 \begin_layout Plain Layout
9633 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9636 \begin_layout Plain Layout
9643 <row endfirsthead="true">
9644 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9647 \begin_layout Plain Layout
9650 Example Phone List (ignore the names)
9655 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9658 \begin_layout Plain Layout
9664 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9667 \begin_layout Plain Layout
9674 <row endfirsthead="true">
9675 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9678 \begin_layout Plain Layout
9686 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9689 \begin_layout Plain Layout
9695 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9698 \begin_layout Plain Layout
9707 <row endhead="true">
9708 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9711 \begin_layout Plain Layout
9715 \begin_layout Plain Layout
9719 caption*{Continued Example Phone List}
9733 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9736 \begin_layout Plain Layout
9742 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9745 \begin_layout Plain Layout
9752 <row endhead="true">
9753 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9756 \begin_layout Plain Layout
9764 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9767 \begin_layout Plain Layout
9773 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9776 \begin_layout Plain Layout
9783 <row endhead="true">
9784 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9787 \begin_layout Plain Layout
9795 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9798 \begin_layout Plain Layout
9804 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9807 \begin_layout Plain Layout
9816 <row endfoot="true">
9817 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9820 \begin_layout Plain Layout
9821 continued on next page
9826 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9829 \begin_layout Plain Layout
9835 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9838 \begin_layout Plain Layout
9846 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9849 \begin_layout Plain Layout
9857 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9860 \begin_layout Plain Layout
9866 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9869 \begin_layout Plain Layout
9877 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9880 \begin_layout Plain Layout
9888 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9891 \begin_layout Plain Layout
9897 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9900 \begin_layout Plain Layout
9908 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9911 \begin_layout Plain Layout
9919 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9922 \begin_layout Plain Layout
9928 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9931 \begin_layout Plain Layout
9939 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9942 \begin_layout Plain Layout
9950 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9953 \begin_layout Plain Layout
9959 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9962 \begin_layout Plain Layout
9970 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9973 \begin_layout Plain Layout
9981 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9984 \begin_layout Plain Layout
9990 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9993 \begin_layout Plain Layout
10001 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10004 \begin_layout Plain Layout
10012 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10015 \begin_layout Plain Layout
10021 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10024 \begin_layout Plain Layout
10032 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10035 \begin_layout Plain Layout
10043 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10046 \begin_layout Plain Layout
10052 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10055 \begin_layout Plain Layout
10063 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10066 \begin_layout Plain Layout
10074 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10077 \begin_layout Plain Layout
10083 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10086 \begin_layout Plain Layout
10094 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10097 \begin_layout Plain Layout
10105 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10108 \begin_layout Plain Layout
10114 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10117 \begin_layout Plain Layout
10125 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10128 \begin_layout Plain Layout
10136 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10139 \begin_layout Plain Layout
10145 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10148 \begin_layout Plain Layout
10156 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10159 \begin_layout Plain Layout
10167 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10170 \begin_layout Plain Layout
10176 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10179 \begin_layout Plain Layout
10187 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10190 \begin_layout Plain Layout
10198 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10201 \begin_layout Plain Layout
10207 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10210 \begin_layout Plain Layout
10218 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10221 \begin_layout Plain Layout
10229 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10232 \begin_layout Plain Layout
10238 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10241 \begin_layout Plain Layout
10249 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10252 \begin_layout Plain Layout
10260 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10263 \begin_layout Plain Layout
10269 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10272 \begin_layout Plain Layout
10280 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10283 \begin_layout Plain Layout
10291 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10294 \begin_layout Plain Layout
10300 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10303 \begin_layout Plain Layout
10311 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10314 \begin_layout Plain Layout
10322 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10325 \begin_layout Plain Layout
10331 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10334 \begin_layout Plain Layout
10342 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10345 \begin_layout Plain Layout
10353 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10356 \begin_layout Plain Layout
10362 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10365 \begin_layout Plain Layout
10373 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10376 \begin_layout Plain Layout
10384 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10387 \begin_layout Plain Layout
10393 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10396 \begin_layout Plain Layout
10404 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10407 \begin_layout Plain Layout
10415 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10418 \begin_layout Plain Layout
10424 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10427 \begin_layout Plain Layout
10435 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10438 \begin_layout Plain Layout
10446 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10449 \begin_layout Plain Layout
10455 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10458 \begin_layout Plain Layout
10466 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10469 \begin_layout Plain Layout
10477 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10480 \begin_layout Plain Layout
10486 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10489 \begin_layout Plain Layout
10497 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10500 \begin_layout Plain Layout
10508 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10511 \begin_layout Plain Layout
10517 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10520 \begin_layout Plain Layout
10528 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10531 \begin_layout Plain Layout
10539 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10542 \begin_layout Plain Layout
10544 Fürst von Montecompatri, 11.
10545 Fürst von Sulmona und Vivaro, 10.
10546 Fürst von Rossano, 5.
10547 Herzog von Canemorte, 11.
10548 Herzog von Palombara, 5.
10549 Herzog von Castelchiodato,
10553 \begin_layout Plain Layout
10564 \begin_layout Plain Layout
10572 Herzog von Poggionativo, 11.
10573 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10574 Graf von Valinfreda, 11.
10575 Baron von Cropalati, 11.
10576 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10581 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10584 \begin_layout Plain Layout
10592 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10595 \begin_layout Plain Layout
10603 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10606 \begin_layout Plain Layout
10612 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10615 \begin_layout Plain Layout
10623 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10626 \begin_layout Plain Layout
10634 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10637 \begin_layout Plain Layout
10643 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10646 \begin_layout Plain Layout
10654 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10657 \begin_layout Plain Layout
10665 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10668 \begin_layout Plain Layout
10674 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10677 \begin_layout Plain Layout
10685 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10688 \begin_layout Plain Layout
10696 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10699 \begin_layout Plain Layout
10705 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10708 \begin_layout Plain Layout
10716 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10719 \begin_layout Plain Layout
10727 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10730 \begin_layout Plain Layout
10736 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10739 \begin_layout Plain Layout
10747 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10750 \begin_layout Plain Layout
10758 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10761 \begin_layout Plain Layout
10767 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10770 \begin_layout Plain Layout
10778 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10781 \begin_layout Plain Layout
10789 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10792 \begin_layout Plain Layout
10798 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10801 \begin_layout Plain Layout
10809 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10812 \begin_layout Plain Layout
10820 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10823 \begin_layout Plain Layout
10829 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10832 \begin_layout Plain Layout
10846 \begin_layout Section
10847 Multiple Lines Columns and Rows
10850 \begin_layout Subsection
10851 Multiple Lines in Table Cells
10852 \begin_inset CommandInset label
10854 name "sub:Multiple-Lines-in"
10862 \begin_layout Plain Layout
10863 Multiple Lines in Table Cells
10872 \begin_layout Plain Layout
10881 \begin_layout Standard
10883 \begin_inset Float table
10889 \begin_layout Plain Layout
10890 \begin_inset Caption
10892 \begin_layout Plain Layout
10893 \begin_inset CommandInset label
10895 name "tab:Table-with-multiple"
10899 Table with multiple lines in cells
10907 \begin_layout Plain Layout
10909 \begin_inset Tabular
10910 <lyxtabular version="3" rows="3" columns="3">
10912 <column alignment="center" valignment="middle" width="2.5cm">
10913 <column alignment="center" valignment="middle" width="0">
10914 <column alignment="center" valignment="middle" width="0">
10916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10919 \begin_layout Plain Layout
10921 \begin_inset Newline linebreak
10929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10932 \begin_layout Plain Layout
10938 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10941 \begin_layout Plain Layout
10949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10952 \begin_layout Plain Layout
10958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10961 \begin_layout Plain Layout
10967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10970 \begin_layout Plain Layout
10978 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10981 \begin_layout Plain Layout
10987 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10990 \begin_layout Plain Layout
10996 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10999 \begin_layout Plain Layout
11018 \begin_layout Standard
11019 Setting a fixed width for a column enables you to enter text as a paragraph
11020 with multiple lines and hyphenation.
11023 \begin_layout Standard
11025 \begin_inset space ~
11029 \begin_inset CommandInset ref
11031 reference "tab:Table-with-multiple"
11035 , create a 3×3 table, mark the first cell and right-click on it.
11036 In the appearing table dialog we set a cell width of 2.5
11037 \begin_inset space \thinspace{}
11040 cm and choose centered for the vertical and horizontal alignment.
11041 The vertical alignment is used for all cells of the row.
11042 As our text is smaller than 2.5
11043 \begin_inset space \thinspace{}
11046 cm, only one line will appear.
11047 To get two lines, a justified line break (shortcut
11050 arg "newline-insert linebreak"
11054 If the text is wider than the set cell width, it will automatically be
11055 broken to several lines.
11058 \begin_layout Standard
11059 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11060 by LaTeX if it is the first entry.
11061 Therefore you need to insert something to prevent the word not being the
11063 So add a horizontal space of 0
11064 \begin_inset space \thinspace{}
11067 pt before the word.
11068 As the space is zero, it doesn't change the output.
11070 \begin_inset space ~
11074 \begin_inset CommandInset ref
11076 reference "tab:Table-with-and"
11083 \begin_layout Standard
11084 \begin_inset Float table
11090 \begin_layout Plain Layout
11091 \begin_inset Caption
11093 \begin_layout Plain Layout
11094 \begin_inset CommandInset label
11096 name "tab:Table-with-and"
11100 Table with and without hyphenation
11108 \begin_layout Plain Layout
11109 \begin_inset space \hfill{}
11113 \begin_inset Tabular
11114 <lyxtabular version="3" rows="3" columns="3">
11116 <column alignment="center" valignment="middle" width="2.5cm">
11117 <column alignment="center" valignment="middle" width="0">
11118 <column alignment="center" valignment="middle" width="0">
11120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11123 \begin_layout Plain Layout
11124 verylongtablecellword
11129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11132 \begin_layout Plain Layout
11138 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11141 \begin_layout Plain Layout
11149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11152 \begin_layout Plain Layout
11158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11161 \begin_layout Plain Layout
11167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11170 \begin_layout Plain Layout
11178 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11181 \begin_layout Plain Layout
11187 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11190 \begin_layout Plain Layout
11196 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11199 \begin_layout Plain Layout
11211 \begin_inset space \hfill{}
11215 \begin_inset Tabular
11216 <lyxtabular version="3" rows="3" columns="3">
11218 <column alignment="center" valignment="middle" width="2.5cm">
11219 <column alignment="center" valignment="middle" width="0">
11220 <column alignment="center" valignment="middle" width="0">
11222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11225 \begin_layout Plain Layout
11226 \begin_inset space \hspace{}
11230 verylongtablecellword
11235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11238 \begin_layout Plain Layout
11244 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11247 \begin_layout Plain Layout
11255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11258 \begin_layout Plain Layout
11264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11267 \begin_layout Plain Layout
11273 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11276 \begin_layout Plain Layout
11284 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11287 \begin_layout Plain Layout
11293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11296 \begin_layout Plain Layout
11302 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11305 \begin_layout Plain Layout
11317 \begin_inset space \hfill{}
11328 \begin_layout Subsection
11330 \begin_inset CommandInset label
11332 name "sub:Multicolumns"
11340 \begin_layout Plain Layout
11350 \begin_layout Plain Layout
11351 Table ! Multicolumns
11359 \begin_layout Subsubsection
11363 \begin_layout Standard
11364 To merge cells over multiple columns, select as many cells within a row
11365 as you want to merge and use either the table-toolbar button
11366 \begin_inset Graphics
11367 filename ../images/tabular-feature_multicolumn.png
11369 scaleBeforeRotation
11375 Edit\SpecialChar \menuseparator
11376 Table\SpecialChar \menuseparator
11379 , or right click on the marked cells and choose
11383 in the appearing context menu.
11386 \begin_layout Standard
11387 Multicolumns have there own cell settings.
11388 That means changing cell borders, cell alignment, and the width only affects
11390 Here is an example table with a multicolumn cell in the first row and one
11391 in the last row without the upper border:
11394 \begin_layout Standard
11396 \begin_inset Tabular
11397 <lyxtabular version="3" rows="3" columns="4">
11398 <features firstHeadTopDL="true" firstHeadBottomDL="true">
11399 <column alignment="center" valignment="top" width="0pt">
11400 <column alignment="center" valignment="middle" width="0">
11401 <column alignment="center" valignment="top" width="0in">
11402 <column alignment="center" valignment="top" width="0pt">
11404 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11407 \begin_layout Plain Layout
11413 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11416 \begin_layout Plain Layout
11422 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11425 \begin_layout Plain Layout
11431 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11434 \begin_layout Plain Layout
11442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11445 \begin_layout Plain Layout
11460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11463 \begin_layout Plain Layout
11469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11472 \begin_layout Plain Layout
11478 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11481 \begin_layout Plain Layout
11489 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11492 \begin_layout Plain Layout
11498 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11501 \begin_layout Plain Layout
11507 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11510 \begin_layout Plain Layout
11516 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11519 \begin_layout Plain Layout
11533 \begin_layout Subsubsection
11534 Multicolumn Calculations
11535 \begin_inset CommandInset label
11537 name "sub:Multicolumn-Calculations"
11545 \begin_layout Plain Layout
11546 Multicolumns ! Calculations
11554 \begin_layout Standard
11555 LyX supports multicolumns directly, but we have to take account of the cell
11556 width of the columns spanned by the multicolumn cell.
11559 \begin_layout Standard
11560 \begin_inset Float table
11566 \begin_layout Plain Layout
11567 \begin_inset Caption
11569 \begin_layout Plain Layout
11570 \begin_inset CommandInset label
11572 name "tab:Table-with-centered"
11576 Table with centered multicolumn text above two columns that have exactly
11577 half the width of the multicolumn cell
11578 \begin_inset OptArg
11581 \begin_layout Plain Layout
11582 Perfect multicolumn table
11595 \begin_layout Plain Layout
11597 \begin_inset Tabular
11598 <lyxtabular version="3" rows="3" columns="3">
11600 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11601 <column alignment="center" valignment="middle" width="0">
11602 <column alignment="center" valignment="top" width="0">
11604 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11607 \begin_layout Plain Layout
11608 multiple lines multicolumn
11613 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11616 \begin_layout Plain Layout
11622 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11625 \begin_layout Plain Layout
11633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11636 \begin_layout Plain Layout
11642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11645 \begin_layout Plain Layout
11651 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11654 \begin_layout Plain Layout
11662 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11665 \begin_layout Plain Layout
11671 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11674 \begin_layout Plain Layout
11680 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11683 \begin_layout Plain Layout
11702 \begin_layout Standard
11703 To create for example Table
11704 \begin_inset space ~
11708 \begin_inset CommandInset ref
11710 reference "tab:Table-with-centered"
11714 , mark the first two cells in the first row of a 3×3 table and right-click
11716 Now choose for this cell
11725 \begin_inset space \thinspace{}
11728 cm in the table dialog.
11729 The merged columns should have exactly half the width of the multicolumn
11730 cell, so that you would set a width of 1.25
11731 \begin_inset space \thinspace{}
11734 cm for the first column.
11735 The second column has then automatically a width of 1.25
11736 \begin_inset space \thinspace{}
11739 cm (multicolumn width - width of first column).
11740 This was done for Table
11741 \begin_inset space ~
11745 \begin_inset CommandInset ref
11747 reference "tab:Table-without-half"
11754 \begin_layout Standard
11755 \begin_inset Float table
11760 \begin_layout Plain Layout
11761 \begin_inset Caption
11763 \begin_layout Plain Layout
11764 \begin_inset CommandInset label
11766 name "tab:Table-without-half"
11770 Table where the spanned table columns have not exactly half the width of
11771 the multicolumn cell
11772 \begin_inset OptArg
11775 \begin_layout Plain Layout
11776 Imperfect multicolumn table
11789 \begin_layout Plain Layout
11791 \begin_inset Tabular
11792 <lyxtabular version="3" rows="3" columns="3">
11794 <column alignment="center" valignment="top" width="1.25cm">
11795 <column alignment="center" valignment="top" width="0">
11796 <column alignment="center" valignment="top" width="0">
11798 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11801 \begin_layout Plain Layout
11802 multiple lines multicolumn
11807 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11810 \begin_layout Plain Layout
11816 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11819 \begin_layout Plain Layout
11827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11830 \begin_layout Plain Layout
11836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11839 \begin_layout Plain Layout
11845 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11848 \begin_layout Plain Layout
11856 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11859 \begin_layout Plain Layout
11865 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11868 \begin_layout Plain Layout
11874 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11877 \begin_layout Plain Layout
11896 \begin_layout Standard
11897 You can see that the first column has not half the width of the multicolumn
11898 cell, it is a bit bigger.
11899 The reason is that the given width of a cell
11900 \begin_inset Formula $W_{g}$
11903 is not its total width
11904 \begin_inset Formula $W_{\mathrm{tot}}$
11907 because a cell is always a bit larger than its given width.
11909 \begin_inset space ~
11913 \begin_inset CommandInset ref
11915 reference "cha:Explanation-of-Equation"
11919 explains this in detail.
11922 \begin_layout Standard
11924 \begin_inset Formula $W_{g\, n}$
11931 columns are spanned can be calculated, so that each column has a total
11933 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11937 \begin_inset Formula \begin{equation}
11938 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11945 \begin_layout Standard
11946 In our case we have
11947 \begin_inset Formula $n=2$
11951 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11954 cm and the default values for the lengths, so that equation
11955 \begin_inset CommandInset ref
11962 \begin_inset Formula \begin{equation}
11963 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11970 \begin_layout Standard
11971 To enable calculations in LaTeX, the LaTeX-package
11975 must be loaded with the document preamble line
11979 \begin_layout Plain Layout
11980 LaTeX-packages ! calc
11988 \begin_layout Standard
11996 \begin_layout Standard
11997 LyX does not allow you to calculate lengths in the
12001 field of the table dialog.
12002 Therefore you have to format the column by inserting a LaTeX-argument in
12004 Here is an overview about the arguments:
12007 \begin_layout Itemize
12012 creates cell with a fixed width, its text is vertically top-aligned
12015 \begin_layout Itemize
12020 creates cell with a fixed width, its text is vertically centered
12023 \begin_layout Itemize
12028 creates cell with a fixed width, its text is vertically bottom-aligned
12031 \begin_layout Standard
12032 By entering a LaTeX-argument, all cell settings set in the table dialog
12036 \begin_layout Standard
12037 \begin_inset Note Greyedout
12040 \begin_layout Plain Layout
12045 Due to a bug, LyX shows the overwritten settings anyway.
12053 \begin_layout Standard
12054 As the text should be horizontally centered, the command
12061 You can now enter the following LaTeX-argument for the first spanned column:
12064 \begin_layout Standard
12069 centering}m{1.25cm-6.2pt}
12072 \begin_layout Standard
12077 means, that the commands inside the braces are applied before the cell
12081 \begin_layout Standard
12082 Although we have chosen centered alignment for the text of the multicolumn
12083 cell, it is still left aligned.
12084 This is because LyX only applies the alignment to single columns.
12085 So for the multicolumn cell we have to use the LaTeX-argument
12088 \begin_layout Standard
12096 \begin_layout Subsection
12101 \begin_layout Plain Layout
12111 \begin_layout Plain Layout
12120 \begin_layout Standard
12121 Unlike multicolumns multirows are not yet supported by LyX; so a bit of
12122 TeX-Code needs to be used.
12123 To use multirows load the LaTeX-package
12131 \begin_layout Plain Layout
12132 LaTeX-packages ! multirow
12137 in your document preamble with the command
12140 \begin_layout Standard
12145 usepackage{multirow}
12148 \begin_layout Standard
12149 Multirows are created with the command
12152 \begin_layout Standard
12157 multirow{number of rows}{cell width}{cell entry}
12160 \begin_layout Standard
12161 To create the following table:
12164 \begin_layout Standard
12169 \begin_layout Plain Layout
12183 \begin_inset Tabular
12184 <lyxtabular version="3" rows="3" columns="3">
12186 <column alignment="center" valignment="top" width="0">
12187 <column alignment="center" valignment="top" width="0">
12188 <column alignment="center" valignment="top" width="0">
12190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12193 \begin_layout Plain Layout
12199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12202 \begin_layout Plain Layout
12208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12211 \begin_layout Plain Layout
12219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12222 \begin_layout Plain Layout
12226 \begin_layout Plain Layout
12230 multirow{2}{2.5cm}{
12239 \begin_layout Plain Layout
12251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12254 \begin_layout Plain Layout
12260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12263 \begin_layout Plain Layout
12271 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12274 \begin_layout Plain Layout
12280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12283 \begin_layout Plain Layout
12289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12292 \begin_layout Plain Layout
12307 \begin_layout Plain Layout
12323 \begin_layout Standard
12324 create a 3×3 table.
12325 Unset the upper border of the last cell in the first column.
12326 The multirow is now created in the second row of the first column by inserting
12330 \begin_layout Standard
12335 multirow{2}{2.5cm}{
12338 \begin_layout Standard
12340 According to the command parameters the multirow spans now two rows and
12342 \begin_inset space \thinspace{}
12346 The content of the multirow cell follows outside the TeX-Code box and the
12347 command is finished with a right brace
12351 in another TeX-Code-box after the text.
12354 \begin_layout Standard
12361 left-aligns its content by default.
12362 To override the default, renew the command
12371 \begin_layout Standard
12383 \begin_layout Standard
12384 in TeX-Code in the document preamble.
12385 Then all entries of multirow cells in the document are centered.
12386 If centering is only needed for several tables, you can renew the command
12387 in a TeX-Code box just before the table instead of the preamble.
12388 If the text should be right-aligned, replace
12401 To return to left-alignment
12410 \begin_layout Section
12412 \begin_inset CommandInset label
12414 name "sec:Formal-Tables"
12422 \begin_layout Plain Layout
12431 \begin_layout Standard
12432 Tables are often typeset in books similar to Table
12433 \begin_inset space ~
12437 \begin_inset CommandInset ref
12439 reference "tab:Example-booktabs-table"
12444 This kind of tables is called
12445 \begin_inset Quotes eld
12453 \begin_inset Quotes erd
12457 To make a table a formal table use the option
12465 tab of the table dialog.
12468 \begin_layout Standard
12469 \begin_inset Float table
12475 \begin_layout Plain Layout
12476 \begin_inset Caption
12478 \begin_layout Plain Layout
12479 \begin_inset CommandInset label
12481 name "tab:Example-booktabs-table"
12485 Example booktabs-table
12493 \begin_layout Plain Layout
12495 \begin_inset Tabular
12496 <lyxtabular version="3" rows="8" columns="4">
12497 <features booktabs="true">
12498 <column alignment="center" valignment="top" width="0">
12499 <column alignment="center" valignment="top" width="0">
12500 <column alignment="center" valignment="top" width="0">
12501 <column alignment="center" valignment="top" width="0">
12503 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12506 \begin_layout Plain Layout
12512 <cell alignment="center" valignment="top" topline="true" usebox="none">
12515 \begin_layout Plain Layout
12517 \begin_inset space \thinspace{}
12525 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
12528 \begin_layout Plain Layout
12530 \begin_inset space \thinspace{}
12538 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12541 \begin_layout Plain Layout
12549 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12552 \begin_layout Plain Layout
12556 \begin_layout Plain Layout
12569 \begin_layout Plain Layout
12578 Detector thickness [µm]
12583 <cell alignment="center" valignment="top" usebox="none">
12586 \begin_layout Plain Layout
12592 <cell alignment="center" valignment="top" usebox="none">
12595 \begin_layout Plain Layout
12601 <cell alignment="center" valignment="top" usebox="none">
12604 \begin_layout Plain Layout
12612 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12615 \begin_layout Plain Layout
12621 <cell alignment="center" valignment="top" topline="true" usebox="none">
12624 \begin_layout Plain Layout
12630 <cell alignment="center" valignment="top" topline="true" usebox="none">
12633 \begin_layout Plain Layout
12639 <cell alignment="center" valignment="top" topline="true" usebox="none">
12642 \begin_layout Plain Layout
12649 <row topspace="default">
12650 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12653 \begin_layout Plain Layout
12654 Spatial resolution [µm]
12659 <cell alignment="center" valignment="top" usebox="none">
12662 \begin_layout Plain Layout
12668 <cell alignment="center" valignment="top" usebox="none">
12671 \begin_layout Plain Layout
12677 <cell alignment="center" valignment="top" usebox="none">
12680 \begin_layout Plain Layout
12687 <row topspace="default">
12688 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12691 \begin_layout Plain Layout
12693 \begin_inset Formula $f_{\mathrm{max}}$
12701 <cell alignment="center" valignment="top" usebox="none">
12704 \begin_layout Plain Layout
12710 <cell alignment="center" valignment="top" usebox="none">
12713 \begin_layout Plain Layout
12719 <cell alignment="center" valignment="top" usebox="none">
12722 \begin_layout Plain Layout
12729 <row topspace="default">
12730 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12733 \begin_layout Plain Layout
12737 \begin_layout Plain Layout
12741 cmidrule(l{10pt}){1-1}
12746 LSF-spatial resolution
12751 <cell alignment="center" valignment="top" usebox="none">
12754 \begin_layout Plain Layout
12760 <cell alignment="center" valignment="top" usebox="none">
12763 \begin_layout Plain Layout
12769 <cell alignment="center" valignment="top" usebox="none">
12772 \begin_layout Plain Layout
12780 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12783 \begin_layout Plain Layout
12789 <cell alignment="center" valignment="top" usebox="none">
12792 \begin_layout Plain Layout
12798 <cell alignment="center" valignment="top" usebox="none">
12801 \begin_layout Plain Layout
12807 <cell alignment="center" valignment="top" usebox="none">
12810 \begin_layout Plain Layout
12818 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12821 \begin_layout Plain Layout
12827 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12830 \begin_layout Plain Layout
12836 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12839 \begin_layout Plain Layout
12845 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12848 \begin_layout Plain Layout
12867 \begin_layout Standard
12868 Spaces to table rows can be added using the
12872 tab of the table dialog as described in section
12873 \begin_inset space ~
12877 \begin_inset CommandInset ref
12879 reference "sub:Row-Spacing"
12886 \begin_layout Standard
12887 In contrary to normal tables, formal tables have no vertical table lines.
12888 The horizontal table lines can be set like for normal tables but they appear
12889 with different width in the output:
12890 \begin_inset Newline newline
12893 The first and the last table line have a default width of 0.08
12894 \begin_inset space \thinspace{}
12897 em while the other lines have a default width of 0.05
12898 \begin_inset space \thinspace{}
12904 \begin_layout Standard
12905 The default widths can be changed with the following preamble lines
12908 \begin_layout Standard
12918 \begin_inset Newline newline
12930 \begin_layout Standard
12931 This example is for the first line, the so called
12936 If you want to change the width for the last line, replace
12945 To change the width for the other lines replace
12954 You can use all units listed in appendix
12955 \begin_inset space ~
12959 \begin_inset CommandInset ref
12961 reference "cha:Units-available-in"
12968 \begin_layout Standard
12969 Lines that don't span over all table columns can be created by setting a
12970 table line for multicolumn cells.
12971 LyX will then internally use the command
12977 to create this line.
12981 \begin_layout Standard
12986 cmidrule[width](trim){startcol-endcol}
12989 \begin_layout Standard
12996 are are currently not supported by LyX so you have to use TeX-Code to be
13004 s can manually be created by inserting the command as TeX-Code as first
13005 cell entry of the first cell of a row.
13006 The line is then drawn in the output above the current row.
13009 \begin_layout Standard
13010 The default for the width is 0.03
13011 \begin_inset space \thinspace{}
13015 Startcol is the number of the column where the line starts and endcol the
13016 column number where the line ends.
13017 The endcol always needs to be specified, also when the line should span
13019 The optional parameter trim could be either
13027 where the trimwidth is also optional.
13028 Using for example the parameter
13032 means that the line is trimmed from its left end by 2
13033 \begin_inset space \thinspace{}
13037 If you don't specify the trimwidth the lines are trimmed by the default
13039 \begin_inset space \thinspace{}
13045 \begin_layout Standard
13046 \begin_inset VSpace bigskip
13050 \begin_inset space ~
13054 \begin_inset CommandInset ref
13056 reference "tab:Example-booktabs-table"
13060 was created using the commands
13063 \begin_layout Standard
13073 \begin_layout Standard
13074 at the beginning of the in the second row and
13077 \begin_layout Standard
13082 cmidrule(l{10pt}){1-1}
13085 \begin_layout Standard
13089 \begin_layout Standard
13090 \begin_inset VSpace bigskip
13096 \begin_layout Standard
13097 You might want to have overlapping
13104 \begin_inset space ~
13108 \begin_inset CommandInset ref
13110 reference "tab:Special-booktabs-table"
13115 This can be achieved with the TeX-Code command
13118 \begin_layout Standard
13126 \begin_layout Standard
13127 The command that was used for the second row of Table
13128 \begin_inset space ~
13132 \begin_inset CommandInset ref
13134 reference "tab:Special-booktabs-table"
13141 \begin_layout Standard
13155 \begin_layout Standard
13156 The command for the sixth row is
13159 \begin_layout Standard
13171 \begin_layout Standard
13172 \begin_inset VSpace bigskip
13178 \begin_layout Standard
13179 If you are anyway not satisfied with the border line spacing, you can use
13180 the following command to produce lines that span over all table columns
13185 \begin_layout Standard
13190 specialrule{width}{space above}{space below}
13193 \begin_layout Standard
13194 For more information about these specialties, we refer to the manual of
13200 \begin_inset CommandInset citation
13210 \begin_layout Plain Layout
13211 LaTeX-packages ! booktabs
13219 \begin_layout Standard
13220 \begin_inset Float table
13226 \begin_layout Plain Layout
13227 \begin_inset Caption
13229 \begin_layout Plain Layout
13230 \begin_inset CommandInset label
13232 name "tab:Special-booktabs-table"
13236 Special booktabs-table
13244 \begin_layout Plain Layout
13246 \begin_inset Tabular
13247 <lyxtabular version="3" rows="8" columns="4">
13248 <features booktabs="true">
13249 <column alignment="center" valignment="top" width="0">
13250 <column alignment="center" valignment="top" width="0">
13251 <column alignment="center" valignment="top" width="0">
13252 <column alignment="center" valignment="top" width="0">
13254 <cell alignment="center" valignment="top" topline="true" usebox="none">
13257 \begin_layout Plain Layout
13263 <cell alignment="center" valignment="top" topline="true" usebox="none">
13266 \begin_layout Plain Layout
13268 \begin_inset space \thinspace{}
13276 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
13279 \begin_layout Plain Layout
13281 \begin_inset space \thinspace{}
13289 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13292 \begin_layout Plain Layout
13300 <cell alignment="center" valignment="top" usebox="none">
13303 \begin_layout Plain Layout
13307 \begin_layout Plain Layout
13320 \begin_layout Plain Layout
13333 \begin_layout Plain Layout
13346 \begin_layout Plain Layout
13355 Detector thickness [µm]
13360 <cell alignment="center" valignment="top" usebox="none">
13363 \begin_layout Plain Layout
13369 <cell alignment="center" valignment="top" usebox="none">
13372 \begin_layout Plain Layout
13378 <cell alignment="center" valignment="top" usebox="none">
13381 \begin_layout Plain Layout
13389 <cell alignment="center" valignment="top" topline="true" usebox="none">
13392 \begin_layout Plain Layout
13398 <cell alignment="center" valignment="top" topline="true" usebox="none">
13401 \begin_layout Plain Layout
13407 <cell alignment="center" valignment="top" topline="true" usebox="none">
13410 \begin_layout Plain Layout
13416 <cell alignment="center" valignment="top" topline="true" usebox="none">
13419 \begin_layout Plain Layout
13426 <row topspace="default">
13427 <cell alignment="center" valignment="top" usebox="none">
13430 \begin_layout Plain Layout
13431 Spatial resolution [µm]
13436 <cell alignment="center" valignment="top" usebox="none">
13439 \begin_layout Plain Layout
13445 <cell alignment="center" valignment="top" usebox="none">
13448 \begin_layout Plain Layout
13454 <cell alignment="center" valignment="top" usebox="none">
13457 \begin_layout Plain Layout
13464 <row topspace="default">
13465 <cell alignment="center" valignment="top" usebox="none">
13468 \begin_layout Plain Layout
13470 \begin_inset Formula $f_{\mathrm{max}}$
13478 <cell alignment="center" valignment="top" usebox="none">
13481 \begin_layout Plain Layout
13487 <cell alignment="center" valignment="top" usebox="none">
13490 \begin_layout Plain Layout
13496 <cell alignment="center" valignment="top" usebox="none">
13499 \begin_layout Plain Layout
13507 <cell alignment="center" valignment="top" topline="true" usebox="none">
13510 \begin_layout Plain Layout
13514 \begin_layout Plain Layout
13527 \begin_layout Plain Layout
13536 LSF-spatial resolution
13541 <cell alignment="center" valignment="top" topline="true" usebox="none">
13544 \begin_layout Plain Layout
13550 <cell alignment="center" valignment="top" topline="true" usebox="none">
13553 \begin_layout Plain Layout
13559 <cell alignment="center" valignment="top" topline="true" usebox="none">
13562 \begin_layout Plain Layout
13570 <cell alignment="center" valignment="top" usebox="none">
13573 \begin_layout Plain Layout
13579 <cell alignment="center" valignment="top" usebox="none">
13582 \begin_layout Plain Layout
13588 <cell alignment="center" valignment="top" usebox="none">
13591 \begin_layout Plain Layout
13597 <cell alignment="center" valignment="top" usebox="none">
13600 \begin_layout Plain Layout
13608 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13611 \begin_layout Plain Layout
13617 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13620 \begin_layout Plain Layout
13626 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13629 \begin_layout Plain Layout
13635 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13638 \begin_layout Plain Layout
13657 \begin_layout Section
13658 Vertical Table Alignment
13662 \begin_layout Plain Layout
13671 \begin_layout Standard
13672 To align tables vertically in a text line the table must be inside a box.
13673 The box can then be vertically aligned as described in section
13674 \begin_inset space ~
13678 \begin_inset CommandInset ref
13680 reference "sec:Box-Dialog"
13687 \begin_layout Standard
13688 In the following example the tables are inside a minipage
13692 \begin_layout Plain Layout
13693 Minipages are described in section
13694 \begin_inset space ~
13698 \begin_inset CommandInset ref
13700 reference "sec:Minipages"
13709 box that has a width of 15
13710 \begin_inset space \thinspace{}
13716 \begin_layout Itemize
13718 \begin_inset Box Frameless
13727 height_special "totalheight"
13730 \begin_layout Plain Layout
13731 \begin_inset Tabular
13732 <lyxtabular version="3" rows="3" columns="3">
13734 <column alignment="center" valignment="top" width="0">
13735 <column alignment="center" valignment="top" width="0">
13736 <column alignment="center" valignment="top" width="0">
13738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13741 \begin_layout Plain Layout
13747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13750 \begin_layout Plain Layout
13756 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13759 \begin_layout Plain Layout
13767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13770 \begin_layout Plain Layout
13776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13779 \begin_layout Plain Layout
13785 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13788 \begin_layout Plain Layout
13796 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13799 \begin_layout Plain Layout
13805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13808 \begin_layout Plain Layout
13814 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13817 \begin_layout Plain Layout
13837 \begin_layout Plain Layout
13849 \begin_inset Box Frameless
13858 height_special "totalheight"
13861 \begin_layout Plain Layout
13862 \begin_inset Tabular
13863 <lyxtabular version="3" rows="3" columns="3">
13865 <column alignment="center" valignment="top" width="0">
13866 <column alignment="center" valignment="top" width="0">
13867 <column alignment="center" valignment="top" width="0">
13869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13872 \begin_layout Plain Layout
13878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13881 \begin_layout Plain Layout
13887 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13890 \begin_layout Plain Layout
13898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13901 \begin_layout Plain Layout
13907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13910 \begin_layout Plain Layout
13916 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13919 \begin_layout Plain Layout
13927 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13930 \begin_layout Plain Layout
13936 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13939 \begin_layout Plain Layout
13945 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13948 \begin_layout Plain Layout
13968 \begin_layout Plain Layout
13978 \begin_layout Itemize
13980 \begin_inset Box Frameless
13989 height_special "totalheight"
13992 \begin_layout Plain Layout
13993 \begin_inset Tabular
13994 <lyxtabular version="3" rows="3" columns="3">
13996 <column alignment="center" valignment="top" width="0">
13997 <column alignment="center" valignment="top" width="0">
13998 <column alignment="center" valignment="top" width="0">
14000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14003 \begin_layout Plain Layout
14009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14012 \begin_layout Plain Layout
14018 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14021 \begin_layout Plain Layout
14029 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14032 \begin_layout Plain Layout
14038 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14041 \begin_layout Plain Layout
14047 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14050 \begin_layout Plain Layout
14058 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14061 \begin_layout Plain Layout
14067 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14070 \begin_layout Plain Layout
14076 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14079 \begin_layout Plain Layout
14098 \begin_layout Itemize
14100 \begin_inset Box Frameless
14109 height_special "totalheight"
14112 \begin_layout Plain Layout
14113 \begin_inset Tabular
14114 <lyxtabular version="3" rows="3" columns="3">
14116 <column alignment="center" valignment="top" width="0">
14117 <column alignment="center" valignment="top" width="0">
14118 <column alignment="center" valignment="top" width="0">
14120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14123 \begin_layout Plain Layout
14129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14132 \begin_layout Plain Layout
14138 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14141 \begin_layout Plain Layout
14149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14152 \begin_layout Plain Layout
14158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14161 \begin_layout Plain Layout
14167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14170 \begin_layout Plain Layout
14178 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14181 \begin_layout Plain Layout
14187 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14190 \begin_layout Plain Layout
14196 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14199 \begin_layout Plain Layout
14219 \begin_layout Plain Layout
14231 \begin_inset Box Frameless
14240 height_special "totalheight"
14243 \begin_layout Plain Layout
14244 \begin_inset Tabular
14245 <lyxtabular version="3" rows="3" columns="3">
14247 <column alignment="center" valignment="top" width="0">
14248 <column alignment="center" valignment="top" width="0">
14249 <column alignment="center" valignment="top" width="0">
14251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14254 \begin_layout Plain Layout
14260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14263 \begin_layout Plain Layout
14269 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14272 \begin_layout Plain Layout
14280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14283 \begin_layout Plain Layout
14289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14292 \begin_layout Plain Layout
14298 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14301 \begin_layout Plain Layout
14309 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14312 \begin_layout Plain Layout
14318 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14321 \begin_layout Plain Layout
14327 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14330 \begin_layout Plain Layout
14350 \begin_layout Plain Layout
14360 \begin_layout Standard
14361 As you can see, the content of the first and last table row is not correctly
14362 aligned with the text line where the table is in.
14363 To get this alignment, the minipage box must be set into a raisebox
14367 \begin_layout Plain Layout
14368 Raiseboxes are described in section
14369 \begin_inset space ~
14373 \begin_inset CommandInset ref
14375 reference "sub:Vertical-Alignment"
14385 In the example above the second table in the first item is aligned using
14386 the TeX-Code-command
14389 \begin_layout Standard
14399 \begin_layout Standard
14401 Behind the box the closing brace
14405 is inserted as TeX-Code.
14406 For the second table in the last item the command
14409 \begin_layout Standard
14419 \begin_layout Standard
14423 \begin_layout Standard
14424 \begin_inset Note Greyedout
14427 \begin_layout Plain Layout
14432 The alignment of the table row content to the surrounding text line is
14434 The needed factor of the
14440 command for this alignment depends on the document font, the font size,
14441 and the table line thickness.
14449 \begin_layout Section
14451 \begin_inset CommandInset label
14453 name "sec:Colored-Tables"
14461 \begin_layout Plain Layout
14470 \begin_layout Subsection
14475 \begin_layout Plain Layout
14476 Table Color ! for Cells
14485 \begin_layout Plain Layout
14486 Color ! for Table Cells
14494 \begin_layout Standard
14495 \begin_inset Float table
14501 \begin_layout Plain Layout
14502 \begin_inset Caption
14504 \begin_layout Plain Layout
14505 \begin_inset CommandInset label
14507 name "tab:Table-colored-without"
14511 Table colored without using the package
14516 \begin_inset OptArg
14519 \begin_layout Plain Layout
14520 Table without colortbl
14533 \begin_layout Plain Layout
14535 \begin_inset Tabular
14536 <lyxtabular version="3" rows="3" columns="3">
14538 <column alignment="center" valignment="top" width="0">
14539 <column alignment="center" valignment="top" width="0">
14540 <column alignment="center" valignment="top" width="0">
14542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14545 \begin_layout Plain Layout
14553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14556 \begin_layout Plain Layout
14564 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14567 \begin_layout Plain Layout
14577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14580 \begin_layout Plain Layout
14588 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14591 \begin_layout Plain Layout
14599 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14602 \begin_layout Plain Layout
14612 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14615 \begin_layout Plain Layout
14623 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14626 \begin_layout Plain Layout
14634 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14637 \begin_layout Plain Layout
14658 \begin_layout Standard
14659 If you only need colored text, mark the cells and choose a color in the
14662 Edit\SpecialChar \menuseparator
14664 \begin_inset space ~
14670 This was used to create Table
14671 \begin_inset space ~
14675 \begin_inset CommandInset ref
14677 reference "tab:Table-colored-without"
14682 In any other case you have to use the LaTeX-package
14690 \begin_layout Plain Layout
14691 LaTeX-packages ! colortbl
14699 \begin_layout Standard
14703 \begin_layout Plain Layout
14713 \begin_inset Note Note
14716 \begin_layout Plain Layout
14717 The following section part will only be displayed when the LaTeX-package
14730 \begin_layout Standard
14731 To create colored tables,
14735 must be loaded in the preamble with the line
14738 \begin_layout Standard
14743 usepackage{colortbl}
14746 \begin_layout Standard
14747 The color of a column is adjusted with the command
14750 \begin_layout Standard
14755 columncolor{name of color}
14758 \begin_layout Standard
14764 More about the command
14768 is described in section
14769 \begin_inset space ~
14773 \begin_inset CommandInset ref
14775 reference "sub:Multicolumn-Calculations"
14782 \begin_layout Standard
14783 The following color names are predefined:
14786 \begin_layout Standard
14820 \begin_layout Standard
14821 \begin_inset VSpace medskip
14827 \begin_layout Standard
14828 You can also define your own color with the command
14831 \begin_layout Standard
14836 definecolor{color name}{color model}{color values}
14839 \begin_layout Standard
14840 The color model can be
14843 \begin_layout Labeling
14844 \labelwidthstring 00.00.0000
14845 cmyk: cyan, magenta, yellow, black
14848 \begin_layout Labeling
14849 \labelwidthstring 00.00.0000
14850 rgb: red, green blue
14853 \begin_layout Labeling
14854 \labelwidthstring 00.00.0000
14858 \begin_layout Standard
14859 and the color values are comma separated numbers between 0 and 1 describing
14860 the factor for the corresponding color of the color model.
14863 \begin_layout Standard
14865 \begin_inset space \thinspace{}
14869 \begin_inset space \space{}
14876 " in the preamble with
14879 \begin_layout Standard
14884 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14887 \begin_layout Standard
14895 \begin_layout Standard
14900 definecolor{lightgray}{gray}{0.8}
14903 \begin_layout Standard
14904 \begin_inset VSpace medskip
14910 \begin_layout Standard
14911 Lines are colored with the command
14914 \begin_layout Standard
14919 rowcolor{name of color}
14922 \begin_layout Standard
14923 and cells are colored with the command
14926 \begin_layout Standard
14931 cellcolor{name of color}
14934 \begin_layout Standard
14935 Both commands are inserted at the beginning of a cell as TeX-Code.
14938 \begin_layout Standard
14939 To color characters in the table, mark the cells and use the LyX menu
14941 Edit\SpecialChar \menuseparator
14943 \begin_inset space ~
14949 If a cell contains TeX-Code mark only the characters, otherwise the colored
14950 TeX-Code will cause LaTeX-errors.
14953 \begin_layout Standard
14954 \begin_inset Note Greyedout
14957 \begin_layout Plain Layout
14962 Not all DVI-viewers are able to display self-defined colors.
14970 \begin_layout Standard
14971 \begin_inset VSpace bigskip
14977 \begin_layout Standard
14979 \begin_inset space ~
14983 \begin_inset CommandInset ref
14985 reference "tab:Table-colored-using"
14989 do the following: The color of the first column should be
14997 \begin_layout Standard
15002 columncolor{darkgreen}
15007 \begin_layout Standard
15008 as LaTeX-argument for this column.
15009 The first row should be blue, therefore the TeX-Code command
15012 \begin_layout Standard
15020 \begin_layout Standard
15021 is inserted to the first cell of this row.
15022 Note that this overwrites the column color for the first cell.
15023 The last cell of the last row is colored magenta by inserting the TeX-Code
15027 \begin_layout Standard
15035 \begin_layout Standard
15036 The characters could now be colored using the menu
15038 Edit\SpecialChar \menuseparator
15040 \begin_inset space ~
15048 \begin_layout Standard
15049 \begin_inset Float table
15055 \begin_layout Plain Layout
15056 \begin_inset Caption
15058 \begin_layout Plain Layout
15059 \begin_inset CommandInset label
15061 name "tab:Table-colored-using"
15065 Table colored using the package
15070 \begin_inset OptArg
15073 \begin_layout Plain Layout
15074 Table with colortbl
15087 \begin_layout Plain Layout
15089 \begin_inset Tabular
15090 <lyxtabular version="3" rows="3" columns="3">
15092 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15093 <column alignment="center" valignment="top" width="0">
15094 <column alignment="center" valignment="top" width="0">
15096 <cell alignment="center" valignment="top" usebox="none">
15099 \begin_layout Plain Layout
15103 \begin_layout Plain Layout
15119 <cell alignment="center" valignment="top" usebox="none">
15122 \begin_layout Plain Layout
15130 <cell alignment="center" valignment="top" usebox="none">
15133 \begin_layout Plain Layout
15143 <cell alignment="center" valignment="top" usebox="none">
15146 \begin_layout Plain Layout
15154 <cell alignment="center" valignment="top" usebox="none">
15157 \begin_layout Plain Layout
15165 <cell alignment="center" valignment="top" usebox="none">
15168 \begin_layout Plain Layout
15178 <cell alignment="center" valignment="top" usebox="none">
15181 \begin_layout Plain Layout
15189 <cell alignment="center" valignment="top" usebox="none">
15192 \begin_layout Plain Layout
15200 <cell alignment="center" valignment="top" usebox="none">
15203 \begin_layout Plain Layout
15207 \begin_layout Plain Layout
15236 \begin_layout Standard
15240 \begin_layout Plain Layout
15250 \begin_inset Note Note
15253 \begin_layout Plain Layout
15254 The following will be displayed when the LaTeX-package
15266 \begin_layout Standard
15267 You need to install the package
15271 to see the content of this section in the output.
15274 \begin_layout Standard
15278 \begin_layout Plain Layout
15290 \begin_layout Subsection
15295 \begin_layout Plain Layout
15296 Table Color ! for Lines
15305 \begin_layout Plain Layout
15306 Color ! for Table Lines
15314 \begin_layout Standard
15315 As described in section
15316 \begin_inset space ~
15320 \begin_inset CommandInset ref
15322 reference "sub:Line-Thickness"
15326 , the line thickness for all lines in a table can be adjusted with the length
15335 \begin_inset space \thinspace{}
15338 pt for all tables of this section.
15342 \begin_layout Plain Layout
15348 arrayrulewidth}{1.5pt}
15356 \begin_layout Standard
15357 To color vertical lines for example with green, create the following column
15358 format in the document preamble, according to the description in section
15359 \begin_inset space ~
15363 \begin_inset CommandInset ref
15365 reference "sub:Customized-Format"
15372 \begin_layout Standard
15377 newcolumntype{W}{!{
15384 \begin_layout Standard
15386 \begin_inset space ~
15390 \begin_inset CommandInset ref
15392 reference "tab:Table-with-vertical-colored"
15400 was used for the last column and
15404 for the other columns.
15407 \begin_layout Standard
15408 If you want to have several colors, define more column formats.
15411 \begin_layout Standard
15412 \begin_inset Float table
15418 \begin_layout Plain Layout
15419 \begin_inset Caption
15421 \begin_layout Plain Layout
15422 \begin_inset CommandInset label
15424 name "tab:Table-with-vertical-colored"
15428 Table with colored vertical lines
15436 \begin_layout Plain Layout
15438 \begin_inset Tabular
15439 <lyxtabular version="3" rows="3" columns="3">
15441 <column alignment="center" valignment="top" width="0" special="Wc">
15442 <column alignment="center" valignment="top" width="0" special="Wc">
15443 <column alignment="center" valignment="top" width="0" special="WcW">
15445 <cell alignment="center" valignment="top" topline="true" usebox="none">
15448 \begin_layout Plain Layout
15454 <cell alignment="center" valignment="top" topline="true" usebox="none">
15457 \begin_layout Plain Layout
15463 <cell alignment="center" valignment="top" topline="true" usebox="none">
15466 \begin_layout Plain Layout
15474 <cell alignment="center" valignment="top" topline="true" usebox="none">
15477 \begin_layout Plain Layout
15483 <cell alignment="center" valignment="top" topline="true" usebox="none">
15486 \begin_layout Plain Layout
15492 <cell alignment="center" valignment="top" topline="true" usebox="none">
15495 \begin_layout Plain Layout
15503 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15506 \begin_layout Plain Layout
15512 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15515 \begin_layout Plain Layout
15521 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15524 \begin_layout Plain Layout
15543 \begin_layout Standard
15544 \begin_inset VSpace bigskip
15547 To color horizontal lines for example with red, like in Table
15548 \begin_inset space ~
15552 \begin_inset CommandInset ref
15554 reference "tab:Table-with-horizontal-colored"
15558 , insert these commands in TeX-Code before the table or table float:
15561 \begin_layout Standard
15571 \begin_inset Newline newline
15579 \begin_inset Newline newline
15586 \begin_layout Plain Layout
15597 arrayrulecolor{red}
15601 arrayrulecolor{black}}
15604 \begin_layout Standard
15608 \begin_layout Plain Layout
15619 \begin_layout Plain Layout
15628 \begin_layout Plain Layout
15632 arrayrulecolor{red}
15636 arrayrulecolor{black}}
15642 \begin_inset Float table
15648 \begin_layout Plain Layout
15649 \begin_inset Caption
15651 \begin_layout Plain Layout
15652 \begin_inset CommandInset label
15654 name "tab:Table-with-horizontal-colored"
15658 Table with colored horizontal lines
15666 \begin_layout Plain Layout
15668 \begin_inset Tabular
15669 <lyxtabular version="3" rows="3" columns="3">
15671 <column alignment="center" valignment="top" width="0">
15672 <column alignment="center" valignment="top" width="0">
15673 <column alignment="center" valignment="top" width="0">
15675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15678 \begin_layout Plain Layout
15684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15687 \begin_layout Plain Layout
15693 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15696 \begin_layout Plain Layout
15704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15707 \begin_layout Plain Layout
15713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15716 \begin_layout Plain Layout
15722 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15725 \begin_layout Plain Layout
15733 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15736 \begin_layout Plain Layout
15742 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15745 \begin_layout Plain Layout
15751 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15754 \begin_layout Plain Layout
15773 \begin_layout Standard
15774 To return to the default line color black, insert this command in TeX-Code
15775 behind the table or table float:
15778 \begin_layout Standard
15790 \begin_layout Standard
15792 \begin_inset space ~
15796 \begin_inset CommandInset ref
15798 reference "tab:Table-with-colored"
15802 is an example with colored vertical and horizontal lines.
15805 \begin_layout Standard
15806 \begin_inset Float table
15812 \begin_layout Plain Layout
15813 \begin_inset Caption
15815 \begin_layout Plain Layout
15816 \begin_inset CommandInset label
15818 name "tab:Table-with-colored"
15822 Table with colored lines
15830 \begin_layout Plain Layout
15832 \begin_inset Tabular
15833 <lyxtabular version="3" rows="3" columns="3">
15835 <column alignment="center" valignment="top" width="0" special="Wc">
15836 <column alignment="center" valignment="top" width="0" special="Wc">
15837 <column alignment="center" valignment="top" width="0" special="WcW">
15839 <cell alignment="center" valignment="top" topline="true" usebox="none">
15842 \begin_layout Plain Layout
15848 <cell alignment="center" valignment="top" topline="true" usebox="none">
15851 \begin_layout Plain Layout
15857 <cell alignment="center" valignment="top" topline="true" usebox="none">
15860 \begin_layout Plain Layout
15868 <cell alignment="center" valignment="top" topline="true" usebox="none">
15871 \begin_layout Plain Layout
15877 <cell alignment="center" valignment="top" topline="true" usebox="none">
15880 \begin_layout Plain Layout
15886 <cell alignment="center" valignment="top" topline="true" usebox="none">
15889 \begin_layout Plain Layout
15896 <row topspace="default">
15897 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15900 \begin_layout Plain Layout
15906 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15909 \begin_layout Plain Layout
15915 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15918 \begin_layout Plain Layout
15937 \begin_layout Standard
15941 \begin_layout Plain Layout
15957 \begin_layout Standard
15961 \begin_layout Plain Layout
15967 arrayrulewidth}{0.4pt}
15975 \begin_layout Section
15976 Table Customization
15980 \begin_layout Plain Layout
15981 Table Customization
15990 \begin_layout Plain Layout
15991 Table ! Customization
15999 \begin_layout Subsection
16001 \begin_inset CommandInset label
16003 name "sub:Row-Spacing"
16011 \begin_layout Plain Layout
16012 Table Customization ! Row Spacing
16020 \begin_layout Standard
16021 You can add vertical space to table rows in the
16025 tab of the table dialog.
16026 You find there three possibilities:
16029 \begin_layout Description
16031 \begin_inset space ~
16035 \begin_inset space ~
16038 row will add space above the characters of the table row.
16039 If the table is a formal table
16043 \begin_layout Plain Layout
16044 Formal tables are explained in section
16045 \begin_inset space ~
16049 \begin_inset CommandInset ref
16051 reference "sec:Formal-Tables"
16060 LyX will insert as default 0.5
16061 \begin_inset space \thinspace{}
16065 For normal tables the inserted space will unfortunately destroy the vertical
16066 table lines as in the following table:
16067 \begin_inset VSpace medskip
16071 \begin_inset Newline newline
16075 \begin_inset space \hspace*{}
16080 \begin_inset space \hfill{}
16084 \begin_inset Tabular
16085 <lyxtabular version="3" rows="3" columns="1">
16087 <column alignment="center" valignment="top" width="0">
16089 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16092 \begin_layout Plain Layout
16099 <row topspace="3mm">
16100 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16103 \begin_layout Plain Layout
16105 \begin_inset space \thinspace{}
16108 mm space top of row
16115 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16118 \begin_layout Plain Layout
16130 \begin_inset space \hfill{}
16134 \begin_inset space \hspace*{}
16139 \begin_inset VSpace medskip
16143 \begin_inset Newline newline
16146 So inserting space to the top of row for normal tables is only useful when
16147 you don't have vertical lines.
16150 \begin_layout Description
16152 \begin_inset space ~
16156 \begin_inset space ~
16159 row will add space below the characters of the table row.
16160 If the table is a formal table LyX will insert as default 0.5
16161 \begin_inset space \thinspace{}
16164 em space, for normal tables the default size is 2
16165 \begin_inset space \thinspace{}
16171 \begin_layout Description
16173 \begin_inset space ~
16176 rows adds space between the current and the following row.
16177 If the table is a formal table LyX will insert as default 0.5
16178 \begin_inset space \thinspace{}
16182 For normal tables the inserted space will unfortunately destroy the vertical
16183 table lines as in the following table:
16184 \begin_inset VSpace medskip
16188 \begin_inset Newline newline
16192 \begin_inset space \hspace*{}
16197 \begin_inset space \hfill{}
16201 \begin_inset Tabular
16202 <lyxtabular version="3" rows="3" columns="1">
16204 <column alignment="center" valignment="top" width="0">
16206 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16209 \begin_layout Plain Layout
16216 <row interlinespace="3mm">
16217 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16220 \begin_layout Plain Layout
16221 \begin_inset Formula $\downarrow$
16225 \begin_inset space \thinspace{}
16228 mm space between row
16229 \begin_inset Formula $\downarrow$
16239 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16242 \begin_layout Plain Layout
16243 \begin_inset Formula $\uparrow$
16247 \begin_inset space \thinspace{}
16250 mm space between row
16251 \begin_inset Formula $\uparrow$
16265 \begin_inset space \hfill{}
16269 \begin_inset space \hspace*{}
16274 \begin_inset VSpace medskip
16278 \begin_inset Newline newline
16281 So inserting space between rows for normal tables is only useful when you
16282 don't have vertical lines.
16285 \begin_layout Standard
16286 \begin_inset VSpace bigskip
16289 When you want to add extra height to all cells of all tables, you can do
16290 this with the following preamble lines:
16293 \begin_layout Standard
16298 @ifundefined{extrarowheight}
16299 \begin_inset Newline newline
16306 \begin_layout Plain Layout
16317 usepackage{array}}{}
16318 \begin_inset Newline newline
16325 extrarowheight}{height}
16328 \begin_layout Standard
16329 But this has the disadvantage that the cell texts are no longer exactly
16330 vertically centered.
16335 will be loaded automatically by LyX when you use self defined table formats.
16336 To avoid that it is loaded twice the command
16342 is used in the above command.)
16345 \begin_layout Standard
16346 In case you are using font sizes larger than the normal size, the table
16347 borders are often too close to the letters.
16348 This can be corrected by inserting the command
16354 in TeX code at the beginning of a table row.
16356 \begin_inset space ~
16360 \begin_inset CommandInset ref
16362 reference "tab:Vertical-alignment-of"
16366 visualizes the effect.
16369 \begin_layout Standard
16371 \begin_inset Float table
16377 \begin_layout Plain Layout
16378 \begin_inset Caption
16380 \begin_layout Plain Layout
16381 \begin_inset CommandInset label
16383 name "tab:Vertical-alignment-of"
16387 Vertical alignment of text with large font sizes.
16395 \begin_layout Plain Layout
16396 \begin_inset space \hfill{}
16400 \begin_inset Float table
16405 \begin_layout Plain Layout
16406 \begin_inset Caption
16408 \begin_layout Plain Layout
16417 \begin_layout Plain Layout
16420 \begin_inset Tabular
16421 <lyxtabular version="3" rows="6" columns="1">
16423 <column alignment="left" valignment="top" width="0">
16425 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16428 \begin_layout Plain Layout
16436 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16439 \begin_layout Plain Layout
16449 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16452 \begin_layout Plain Layout
16462 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16465 \begin_layout Plain Layout
16475 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16478 \begin_layout Plain Layout
16488 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16491 \begin_layout Plain Layout
16510 \begin_inset space \hfill{}
16514 \begin_inset Float table
16519 \begin_layout Plain Layout
16520 \begin_inset Caption
16522 \begin_layout Plain Layout
16523 Table using the command
16537 \begin_layout Plain Layout
16540 \begin_inset Tabular
16541 <lyxtabular version="3" rows="6" columns="1">
16543 <column alignment="left" valignment="top" width="0">
16545 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16548 \begin_layout Plain Layout
16556 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16559 \begin_layout Plain Layout
16565 \begin_layout Plain Layout
16581 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16584 \begin_layout Plain Layout
16590 \begin_layout Plain Layout
16606 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16609 \begin_layout Plain Layout
16615 \begin_layout Plain Layout
16631 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16634 \begin_layout Plain Layout
16640 \begin_layout Plain Layout
16656 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16659 \begin_layout Plain Layout
16665 \begin_layout Plain Layout
16692 \begin_inset space \hfill{}
16703 \begin_layout Subsection
16704 Special Cell Alignment
16708 \begin_layout Plain Layout
16709 Table Customization ! Special Cell Alignment
16717 \begin_layout Standard
16718 Sometimes it looks better when the cell entries of a column are aligned
16719 with a special character, e.
16720 \begin_inset space \thinspace{}
16724 \begin_inset space \space{}
16727 with the decimal separator as in Table
16728 \begin_inset space ~
16732 \begin_inset CommandInset ref
16734 reference "tab:Table-cells-of"
16741 \begin_layout Standard
16742 \begin_inset Float table
16748 \begin_layout Plain Layout
16749 \begin_inset Caption
16751 \begin_layout Plain Layout
16752 \begin_inset CommandInset label
16754 name "tab:Table-cells-of"
16758 Table cells of a column aligned with the decimal separator.
16766 \begin_layout Plain Layout
16768 \begin_inset Tabular
16769 <lyxtabular version="3" rows="4" columns="2">
16771 <column alignment="right" valignment="top" width="0">
16772 <column alignment="left" valignment="top" width="0" special="@{}l">
16774 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16777 \begin_layout Plain Layout
16783 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16786 \begin_layout Plain Layout
16794 <cell alignment="center" valignment="top" usebox="none">
16797 \begin_layout Plain Layout
16803 <cell alignment="center" valignment="top" usebox="none">
16806 \begin_layout Plain Layout
16814 <cell alignment="center" valignment="top" usebox="none">
16817 \begin_layout Plain Layout
16823 <cell alignment="center" valignment="top" usebox="none">
16826 \begin_layout Plain Layout
16834 <cell alignment="center" valignment="top" usebox="none">
16837 \begin_layout Plain Layout
16843 <cell alignment="center" valignment="top" usebox="none">
16846 \begin_layout Plain Layout
16865 \begin_layout Standard
16866 This table was created with a 4×2 table.
16867 The heading is a centered multicolumn.
16868 The first column is right-aligned and contains the digits before the decimal
16869 point and the decimal point.
16870 The second column is left aligned and contains the digits after the decimal
16872 To omit the space that is normally between two table columns, use the following
16873 LaTeX-argument for the second column:
16876 \begin_layout Standard
16882 \begin_layout Standard
16884 \begin_inset space ~
16888 \begin_inset CommandInset ref
16890 reference "tab:Several-table-cell"
16894 shows some example alignments.
16895 For the alignment with the relation sign, you must add the second smallest
16896 math-space at the beginning of the last column to get the correct space
16897 surrounding the relation sign.
16900 \begin_layout Standard
16901 \begin_inset Float table
16907 \begin_layout Plain Layout
16908 \begin_inset Caption
16910 \begin_layout Plain Layout
16911 \begin_inset CommandInset label
16913 name "tab:Several-table-cell"
16917 Several table cell alignments.
16925 \begin_layout Plain Layout
16927 \begin_inset Tabular
16928 <lyxtabular version="3" rows="4" columns="6">
16930 <column alignment="right" valignment="top" width="0">
16931 <column alignment="left" valignment="top" width="0" special="@{}l">
16932 <column alignment="right" valignment="top" width="0">
16933 <column alignment="left" valignment="top" width="0" special="@{}l">
16934 <column alignment="right" valignment="top" width="0">
16935 <column alignment="left" valignment="top" width="0" special="@{}l">
16937 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16940 \begin_layout Plain Layout
16946 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16949 \begin_layout Plain Layout
16955 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16958 \begin_layout Plain Layout
16964 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16967 \begin_layout Plain Layout
16973 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16976 \begin_layout Plain Layout
16982 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16985 \begin_layout Plain Layout
16993 <cell alignment="center" valignment="top" usebox="none">
16996 \begin_layout Plain Layout
17002 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17005 \begin_layout Plain Layout
17007 \begin_inset space \thinspace{}
17015 <cell alignment="center" valignment="top" usebox="none">
17018 \begin_layout Plain Layout
17019 \begin_inset Formula $10\cdot$
17027 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17030 \begin_layout Plain Layout
17031 \begin_inset Formula $10^{\mbox{-}17}$
17039 <cell alignment="center" valignment="top" usebox="none">
17042 \begin_layout Plain Layout
17043 \begin_inset Formula $\Gamma(t)\propto$
17051 <cell alignment="center" valignment="top" usebox="none">
17054 \begin_layout Plain Layout
17055 \begin_inset Formula $\:\Upsilon(t)$
17065 <cell alignment="center" valignment="top" usebox="none">
17068 \begin_layout Plain Layout
17074 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17077 \begin_layout Plain Layout
17079 \begin_inset space \thinspace{}
17087 <cell alignment="center" valignment="top" usebox="none">
17090 \begin_layout Plain Layout
17091 \begin_inset Formula $5.78\cdot$
17099 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17102 \begin_layout Plain Layout
17103 \begin_inset Formula $10^{7}$
17111 <cell alignment="center" valignment="top" usebox="none">
17114 \begin_layout Plain Layout
17115 \begin_inset Formula $A\ne$
17123 <cell alignment="center" valignment="top" usebox="none">
17126 \begin_layout Plain Layout
17127 \begin_inset Formula $\: B_{\mathrm{red}}$
17137 <cell alignment="center" valignment="top" usebox="none">
17140 \begin_layout Plain Layout
17146 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17149 \begin_layout Plain Layout
17151 \begin_inset space \thinspace{}
17159 <cell alignment="center" valignment="top" usebox="none">
17162 \begin_layout Plain Layout
17164 \begin_inset Formula $33.5\cdot$
17172 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17175 \begin_layout Plain Layout
17176 \begin_inset Formula $10^{4}$
17184 <cell alignment="center" valignment="top" usebox="none">
17187 \begin_layout Plain Layout
17188 \begin_inset Formula $\sin(\alpha)\ge$
17196 <cell alignment="center" valignment="top" usebox="none">
17199 \begin_layout Plain Layout
17200 \begin_inset Formula $\:\sin(\beta)$
17221 \begin_layout Standard
17222 \begin_inset VSpace bigskip
17225 There is also the LaTeX-package
17233 \begin_layout Plain Layout
17234 LaTeX-packages ! dcolumn
17239 that provides table cell alignments.
17240 But this unfortunately treats the cell entries as math and does not allow
17241 formulas in table cells: The first column of Table
17242 \begin_inset space ~
17246 \begin_inset CommandInset ref
17248 reference "tab:Several-table-cell"
17256 like the first column in Table
17257 \begin_inset space ~
17261 \begin_inset CommandInset ref
17263 reference "tab:Alignments-when"
17267 and only with some tricks like the expected.
17268 The alignment of the second and third column of Table
17269 \begin_inset space ~
17273 \begin_inset CommandInset ref
17275 reference "tab:Several-table-cell"
17279 is not possible with
17286 \begin_layout Standard
17287 \begin_inset Newpage newpage
17293 \begin_layout Standard
17294 \begin_inset Float table
17300 \begin_layout Plain Layout
17301 \begin_inset Caption
17303 \begin_layout Plain Layout
17304 \begin_inset CommandInset label
17306 name "tab:Alignments-when"
17310 Alignments when LaTeX-package dcolumn is used.
17311 For all column alignments tricks have to be used to get the output.
17319 \begin_layout Plain Layout
17321 \begin_inset Tabular
17322 <lyxtabular version="3" rows="4" columns="3">
17324 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
17325 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
17326 <column alignment="center" valignment="top" width="0" special="D{+}{\,}{9.7}">
17328 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17331 \begin_layout Plain Layout
17337 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17340 \begin_layout Plain Layout
17346 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17349 \begin_layout Plain Layout
17357 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17360 \begin_layout Plain Layout
17362 \begin_inset space \thinspace{}
17370 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17373 \begin_layout Plain Layout
17375 \begin_inset space \thinspace{}
17379 \begin_inset Formula $\mbox{bottles}$
17387 <cell alignment="center" valignment="top" usebox="none">
17390 \begin_layout Plain Layout
17395 \begin_layout Plain Layout
17405 \begin_inset Formula $\mbox{bottles}$
17415 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17418 \begin_layout Plain Layout
17420 \begin_inset space \thinspace{}
17428 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17431 \begin_layout Plain Layout
17433 \begin_inset space \thinspace{}
17437 \begin_inset Formula $\mbox{Pixels}$
17445 <cell alignment="center" valignment="top" usebox="none">
17448 \begin_layout Plain Layout
17453 \begin_layout Plain Layout
17463 \begin_inset Formula $\mbox{Pixels}$
17473 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17476 \begin_layout Plain Layout
17478 \begin_inset space \thinspace{}
17486 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17489 \begin_layout Plain Layout
17491 \begin_inset space \thinspace{}
17495 \begin_inset Formula $\mbox{cm}$
17503 <cell alignment="center" valignment="top" usebox="none">
17506 \begin_layout Plain Layout
17511 \begin_layout Plain Layout
17521 \begin_inset Formula $\mbox{cm}$
17542 \begin_layout Subsection
17543 Customized Cell/Column Format
17544 \begin_inset CommandInset label
17546 name "sub:Customized-Format"
17554 \begin_layout Plain Layout
17555 Table Customization ! Cell/Column Format
17563 \begin_layout Standard
17564 Calculating the needed width for spanned columns like in section
17565 \begin_inset space ~
17569 \begin_inset CommandInset ref
17571 reference "sub:Multicolumn-Calculations"
17575 is very annoying if you have several tables with multicolumn cells.
17576 To make life easier, you can define a cell/column format in the preamble,
17577 so that it can be used in all tables of the document.
17578 The format is defined with the command
17581 \begin_layout Standard
17586 newcolumntype{name of format}[number of arguments]{commands}
17589 \begin_layout Standard
17590 The format name may only consist of one letter.
17615 are predefined and cannot be used.
17616 But all letters are allowed as capitals.
17619 \begin_layout Standard
17620 \begin_inset VSpace medskip
17626 \begin_layout Standard
17627 For vertically and horizontally centered multicolumn cells with a fixed
17628 width you can define the cell format
17631 \begin_layout Standard
17636 newcolumntype{M}[1]{>{
17643 \begin_layout Standard
17650 avoids the problem of hyphenating the first word, as described in section
17651 \begin_inset space ~
17655 \begin_inset CommandInset ref
17657 reference "sub:Multiple-Lines-in"
17662 Now you can simply enter
17665 \begin_layout Standard
17671 \begin_layout Standard
17672 as LaTeX-argument in the table dialog to create a multicolumn.
17675 \begin_layout Standard
17676 \begin_inset VSpace bigskip
17682 \begin_layout Standard
17683 For cells spanned by a multicolumn cell, you can define the format
17686 \begin_layout Standard
17691 newcolumntype{S}[2]{>{
17696 \begin_inset Newline newline
17703 \begin_layout Plain Layout
17718 \begin_layout Plain Layout
17729 arrayrulewidth)*(1-#2))/#2}}
17732 \begin_layout Standard
17733 This format uses equation
17734 \begin_inset CommandInset ref
17740 to calculate the needed width so that each spanned cell has the same width.
17743 \begin_layout Standard
17747 \begin_layout Standard
17750 S{width of multicolumn cell}{number of spanned columns}
17753 \begin_layout Standard
17754 as LaTeX-argument of the column.
17757 \begin_layout Standard
17758 \begin_inset VSpace bigskip
17764 \begin_layout Standard
17765 For colored columns, you can define
17768 \begin_layout Standard
17773 newcolumntype{K}[1]{>{
17780 \begin_layout Standard
17782 \begin_inset Quotes eld
17786 \begin_inset Quotes erd
17789 at the end creates a column with a flexible width whose text is horizontally
17794 \begin_layout Standard
17800 \begin_layout Standard
17804 \begin_layout Standard
17805 \begin_inset VSpace bigskip
17811 \begin_layout Standard
17813 \begin_inset space ~
17817 \begin_inset CommandInset ref
17819 reference "tab:Table-using-user-defined"
17823 use the LaTeX-arguments
17826 \begin_layout Standard
17832 \begin_layout Standard
17833 for the first column and the multicolumn,
17836 \begin_layout Standard
17842 \begin_layout Standard
17843 for the the last column, and
17846 \begin_layout Standard
17852 \begin_layout Standard
17853 for the cells in the second column.
17856 \begin_layout Standard
17857 \begin_inset Float table
17863 \begin_layout Plain Layout
17864 \begin_inset Caption
17866 \begin_layout Plain Layout
17867 \begin_inset CommandInset label
17869 name "tab:Table-using-user-defined"
17873 Table using user-defined table formats
17881 \begin_layout Plain Layout
17883 \begin_inset Tabular
17884 <lyxtabular version="3" rows="3" columns="4">
17886 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17887 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17888 <column alignment="center" valignment="middle" width="0">
17889 <column alignment="center" valignment="middle" width="0" special="K{red}">
17891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17894 \begin_layout Plain Layout
17895 verylongtablecellword
17900 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17903 \begin_layout Plain Layout
17904 multiple lines multicolumn
17909 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17912 \begin_layout Plain Layout
17918 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17921 \begin_layout Plain Layout
17929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17932 \begin_layout Plain Layout
17938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17941 \begin_layout Plain Layout
17947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17950 \begin_layout Plain Layout
17956 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17959 \begin_layout Plain Layout
17967 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17970 \begin_layout Plain Layout
17976 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17979 \begin_layout Plain Layout
17985 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17988 \begin_layout Plain Layout
17994 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17997 \begin_layout Plain Layout
18016 \begin_layout Subsection
18018 \begin_inset CommandInset label
18020 name "sub:Line-Thickness"
18028 \begin_layout Plain Layout
18029 Table Customization ! Line Thickness
18037 \begin_layout Standard
18038 The line thickness for all lines in a table can be adjusted with the length
18046 To set for example a line thickness of 1.5
18047 \begin_inset space \thinspace{}
18051 \begin_inset space ~
18055 \begin_inset CommandInset ref
18057 reference "tab:Table-with-1.5"
18061 , insert the command
18064 \begin_layout Standard
18071 arrayrulewidth}{1.5pt}
18074 \begin_layout Standard
18075 in TeX-Code before the table or table float.
18076 The changed thickness is valid for all following tables.
18077 To use the default value again, set
18084 \begin_inset space \thinspace{}
18087 pt in TeX-Code behind the table or table float.
18090 \begin_layout Standard
18094 \begin_layout Plain Layout
18100 arrayrulewidth}{1.5pt}
18106 \begin_inset Float table
18111 \begin_layout Plain Layout
18112 \begin_inset Caption
18114 \begin_layout Plain Layout
18115 \begin_inset CommandInset label
18117 name "tab:Table-with-1.5"
18122 \begin_inset space \thinspace{}
18133 \begin_layout Plain Layout
18135 \begin_inset Tabular
18136 <lyxtabular version="3" rows="3" columns="3">
18138 <column alignment="center" valignment="top" width="0">
18139 <column alignment="center" valignment="top" width="0">
18140 <column alignment="center" valignment="top" width="0">
18142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18145 \begin_layout Plain Layout
18151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18154 \begin_layout Plain Layout
18160 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18163 \begin_layout Plain Layout
18171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18174 \begin_layout Plain Layout
18180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18183 \begin_layout Plain Layout
18189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18192 \begin_layout Plain Layout
18200 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18203 \begin_layout Plain Layout
18209 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18212 \begin_layout Plain Layout
18218 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18221 \begin_layout Plain Layout
18241 \begin_layout Plain Layout
18247 arrayrulewidth}{0.4pt}
18255 \begin_layout Standard
18256 \begin_inset VSpace bigskip
18259 To set the line thickness to 1.5
18260 \begin_inset space \thinspace{}
18263 pt only for horizontal lines, like in Table
18264 \begin_inset space ~
18268 \begin_inset CommandInset ref
18270 reference "tab:Table-with-horizontal"
18274 , insert these commands in TeX-Code before the table or table float:
18277 \begin_layout Standard
18287 \begin_inset Newline newline
18295 \begin_inset Newline newline
18304 arrayrulewidth 1.5pt}
18305 \begin_inset Newline newline
18316 arrayrulewidth 0.4pt}}
18319 \begin_layout Standard
18320 To return to the default line thickness, insert this command in TeX-Code
18321 behind the table or table float:
18324 \begin_layout Standard
18336 \begin_layout Standard
18340 \begin_layout Plain Layout
18351 \begin_layout Plain Layout
18360 \begin_layout Plain Layout
18368 arrayrulewidth 1.5pt}
18371 \begin_layout Plain Layout
18381 arrayrulewidth 0.4pt}}
18387 \begin_inset Float table
18392 \begin_layout Plain Layout
18393 \begin_inset Caption
18395 \begin_layout Plain Layout
18396 \begin_inset CommandInset label
18398 name "tab:Table-with-horizontal"
18403 \begin_inset space \thinspace{}
18406 pt thick horizontal lines
18414 \begin_layout Plain Layout
18416 \begin_inset Tabular
18417 <lyxtabular version="3" rows="3" columns="3">
18419 <column alignment="center" valignment="top" width="0">
18420 <column alignment="center" valignment="top" width="0">
18421 <column alignment="center" valignment="top" width="0">
18423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18426 \begin_layout Plain Layout
18432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18435 \begin_layout Plain Layout
18441 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18444 \begin_layout Plain Layout
18452 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18455 \begin_layout Plain Layout
18461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18464 \begin_layout Plain Layout
18470 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18473 \begin_layout Plain Layout
18481 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18484 \begin_layout Plain Layout
18490 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18493 \begin_layout Plain Layout
18499 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18502 \begin_layout Plain Layout
18522 \begin_layout Plain Layout
18538 \begin_layout Standard
18539 \begin_inset VSpace bigskip
18542 To set the line thickness to 1.5
18543 \begin_inset space \thinspace{}
18546 pt only for vertical lines, create the following column format in the document
18547 preamble, according to the description in section
18548 \begin_inset space ~
18552 \begin_inset CommandInset ref
18554 reference "sub:Customized-Format"
18561 \begin_layout Standard
18566 newcolumntype{V}{!{
18568 vrule width 1.5pt}}
18571 \begin_layout Standard
18573 \begin_inset space ~
18577 \begin_inset CommandInset ref
18579 reference "tab:Table-with-vertical"
18586 \begin_layout Standard
18592 \begin_layout Standard
18593 was used for the last column and
18596 \begin_layout Standard
18602 \begin_layout Standard
18603 for the other columns.
18606 \begin_layout Standard
18607 \begin_inset Float table
18612 \begin_layout Plain Layout
18613 \begin_inset Caption
18615 \begin_layout Plain Layout
18616 \begin_inset CommandInset label
18618 name "tab:Table-with-vertical"
18623 \begin_inset space \thinspace{}
18626 pt thick vertical lines
18634 \begin_layout Plain Layout
18636 \begin_inset Tabular
18637 <lyxtabular version="3" rows="3" columns="3">
18639 <column alignment="center" valignment="top" width="0" special="Vc">
18640 <column alignment="center" valignment="top" width="0" special="Vc">
18641 <column alignment="center" valignment="top" width="0" special="VcV">
18643 <cell alignment="center" valignment="top" topline="true" usebox="none">
18646 \begin_layout Plain Layout
18652 <cell alignment="center" valignment="top" topline="true" usebox="none">
18655 \begin_layout Plain Layout
18661 <cell alignment="center" valignment="top" topline="true" usebox="none">
18664 \begin_layout Plain Layout
18672 <cell alignment="center" valignment="top" topline="true" usebox="none">
18675 \begin_layout Plain Layout
18681 <cell alignment="center" valignment="top" topline="true" usebox="none">
18684 \begin_layout Plain Layout
18690 <cell alignment="center" valignment="top" topline="true" usebox="none">
18693 \begin_layout Plain Layout
18701 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18704 \begin_layout Plain Layout
18710 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18713 \begin_layout Plain Layout
18719 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18722 \begin_layout Plain Layout
18741 \begin_layout Subsection
18746 \begin_layout Plain Layout
18747 Table Customization ! Dashed Lines
18755 \begin_layout Standard
18759 \begin_layout Plain Layout
18769 \begin_inset Note Note
18772 \begin_layout Plain Layout
18773 The following section will only be displayed when the LaTeX-package
18785 \begin_layout Standard
18786 \begin_inset Float table
18792 \begin_layout Plain Layout
18793 \begin_inset Caption
18795 \begin_layout Plain Layout
18796 \begin_inset CommandInset label
18798 name "tab:Table-with-dashed"
18802 Table with dashed lines
18810 \begin_layout Plain Layout
18812 \begin_inset Tabular
18813 <lyxtabular version="3" rows="5" columns="5">
18815 <column alignment="center" valignment="top" width="0">
18816 <column alignment="center" valignment="top" width="0">
18817 <column alignment="center" valignment="top" width="0" special=":c">
18818 <column alignment="center" valignment="top" width="0">
18819 <column alignment="center" valignment="top" width="0">
18821 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18824 \begin_layout Plain Layout
18830 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18833 \begin_layout Plain Layout
18839 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18842 \begin_layout Plain Layout
18848 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18851 \begin_layout Plain Layout
18857 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18860 \begin_layout Plain Layout
18868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18871 \begin_layout Plain Layout
18877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18880 \begin_layout Plain Layout
18886 <cell alignment="center" valignment="top" topline="true" usebox="none">
18889 \begin_layout Plain Layout
18895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18898 \begin_layout Plain Layout
18904 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18907 \begin_layout Plain Layout
18915 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18918 \begin_layout Plain Layout
18922 \begin_layout Plain Layout
18936 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18939 \begin_layout Plain Layout
18945 <cell alignment="center" valignment="top" usebox="none">
18948 \begin_layout Plain Layout
18954 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18957 \begin_layout Plain Layout
18963 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18966 \begin_layout Plain Layout
18974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18977 \begin_layout Plain Layout
18981 \begin_layout Plain Layout
18995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18998 \begin_layout Plain Layout
19004 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
19007 \begin_layout Plain Layout
19013 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19016 \begin_layout Plain Layout
19022 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19025 \begin_layout Plain Layout
19033 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19036 \begin_layout Plain Layout
19042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19045 \begin_layout Plain Layout
19051 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19054 \begin_layout Plain Layout
19060 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19063 \begin_layout Plain Layout
19069 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19072 \begin_layout Plain Layout
19091 \begin_layout Standard
19092 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
19093 As prerequisite the LaTeX-package
19101 \begin_layout Plain Layout
19102 LaTeX-packages ! arydshln
19107 must be loaded in the document preamble with the command
19110 \begin_layout Standard
19115 usepackage{arydshln}
19118 \begin_layout Standard
19119 To make a vertical line dashed, enter the colon
19120 \begin_inset Quotes eld
19124 \begin_inset Quotes erd
19127 together with the character for the horizontal alignment as LaTeX-argument
19128 in the table cell dialog.
19131 \begin_layout Standard
19132 For a horizontal dashed line add the command
19135 \begin_layout Standard
19143 \begin_layout Standard
19144 in TeX-Code as first element of the first cell in the table row.
19147 \begin_layout Standard
19148 For dashed multicolumn lines use the command
19151 \begin_layout Standard
19156 cdashline{line number
19161 \begin_layout Standard
19162 in TeX-Code as first element of the first cell in the table row.
19163 If you have for example a multicolumn spanning over columns 2 to 4 and
19164 you want to have a dashed line above, add the command
19167 \begin_layout Standard
19175 \begin_layout Standard
19176 as first element of the first cell in the row of the multicolumn.
19179 \begin_layout Standard
19180 \begin_inset VSpace bigskip
19186 \begin_layout Standard
19188 \begin_inset space ~
19192 \begin_inset CommandInset ref
19194 reference "tab:Table-with-dashed"
19199 \begin_inset Quotes eld
19207 \begin_inset Quotes erd
19210 as LaTeX-argument of the third column.
19211 The TeX-Code command
19217 was inserted to the first cell of the third row and the the TeX-Code command
19218 \begin_inset Newline newline
19227 was inserted to the first cell of the fourth row.
19230 \begin_layout Standard
19231 \begin_inset Note Greyedout
19234 \begin_layout Plain Layout
19239 The used LaTeX-package
19243 is apparently not compatible with the LaTeX-package
19251 \begin_layout Plain Layout
19252 LaTeX-packages ! colortbl
19257 that is used for colored tables in section
19258 \begin_inset space ~
19262 \begin_inset CommandInset ref
19264 reference "sec:Colored-Tables"
19269 That means colored tables cannot have dashed lines.
19277 \begin_layout Standard
19281 \begin_layout Plain Layout
19291 \begin_inset Note Note
19294 \begin_layout Plain Layout
19295 The following will be displayed when the LaTeX-package
19307 \begin_layout Standard
19308 You need to install the package
19312 to see the content of this section in the output.
19315 \begin_layout Standard
19319 \begin_layout Plain Layout
19331 \begin_layout Chapter
19336 \begin_layout Plain Layout
19345 \begin_layout Section
19347 \begin_inset CommandInset label
19349 name "sec:FloatIntroduction"
19357 \begin_layout Plain Layout
19358 Floats ! Introduction
19366 \begin_layout Standard
19367 A float is a block of text associated with some sort of label, which doesn't
19368 have a fixed location.
19370 \begin_inset Quotes eld
19374 \begin_inset Quotes erd
19377 forward or backward a page or two, to wherever it fits best.
19385 \begin_inset space ~
19390 are also floats, because they can float to the next page when there are
19391 too many notes at the page.
19394 \begin_layout Standard
19395 Floats allow a high quality layout.
19396 Images and tables can evenly be spread to the pages to avoid white space
19397 and pages without text.
19398 As the floating often destroys the context between the text and the image/table
19399 , every float can be referenced in the text.
19400 Floats are therefore numbered.
19401 Referencing is described in section
19402 \begin_inset space ~
19406 \begin_inset CommandInset ref
19408 reference "sec:Referencing-Floats"
19415 \begin_layout Standard
19416 To insert a float, use the menu
19418 Insert\SpecialChar \menuseparator
19426 inset, a box with a label.
19427 The label will automatically be translated to the document language in
19429 Behind the label you can insert the caption text.
19430 The image or table is inserted above or below the caption in a separate
19431 paragraph within the float.
19432 More about the caption placement is described in section
19433 \begin_inset space ~
19437 \begin_inset CommandInset ref
19439 reference "sec:Caption-Placement"
19444 To keep your LyX-document readable, you can open and close the float box
19445 by left-clicking on the box label.
19446 A closed float box looks like this:
19447 \begin_inset Graphics
19448 filename clipart/floatQt4.png
19450 scaleBeforeRotation
19454 – a gray button with a red label.
19457 \begin_layout Standard
19458 It is recommended to insert floats as a separate paragraph to avoid possible
19459 LaTeX-errors that can occur when the surrounding text is specially formatted.
19462 \begin_layout Standard
19463 Existing figures or tables can be put into a float by marking them and then
19464 pressing the corresponding toolbar button for a new float.
19467 \begin_layout Section
19471 \begin_layout Standard
19472 Besides figure and table floats that are described in section
19473 \begin_inset space ~
19477 \begin_inset CommandInset ref
19479 reference "sec:Figure-Floats"
19484 \begin_inset CommandInset ref
19486 reference "sec:Table-Floats"
19490 , respectively, LyX offers the float types
19501 \begin_layout Subsection
19506 \begin_layout Plain Layout
19507 Floats ! Algorithms
19515 \begin_layout Standard
19516 \begin_inset Float algorithm
19522 \begin_layout Plain Layout
19523 \begin_inset Caption
19525 \begin_layout Plain Layout
19526 \begin_inset CommandInset label
19528 name "alg:Example-Algorithm-float"
19532 Example Algorithm float
19540 \begin_layout LyX-Code
19542 \begin_inset Newline newline
19545 Sum:= Sum + A(I); /*comment*/
19546 \begin_inset Newline newline
19550 \begin_inset VSpace -4mm
19561 \begin_layout Standard
19562 This float type is inserted with the menu
19564 Insert\SpecialChar \menuseparator
19565 Floats\SpecialChar \menuseparator
19569 It is used for program codes and descriptions of algorithms and can be
19570 seen as an alternative to program code listings that are explained in chapter
19571 \begin_inset space ~
19575 \begin_inset CommandInset ref
19577 reference "cha:Program-Code-Listings"
19582 A possible environment for algorithms is the
19586 , described in LyX's
19592 \begin_inset space ~
19596 \begin_inset CommandInset ref
19598 reference "alg:Example-Algorithm-float"
19602 is an example of an algorithm float where -4
19603 \begin_inset space \thinspace{}
19606 mm vertical space was added at the end of the float to have the bottom rule
19607 exactly below the last text line.
19610 \begin_layout Standard
19611 The float label is not automatically translated into the document language.
19612 If your document is not in English, you have to do this manually by adding
19613 the following line to the document preamble
19618 \begin_layout Standard
19623 floatname{algorithm}{your
19624 \begin_inset space ~
19630 \begin_layout Standard
19634 \begin_inset space ~
19640 \begin_inset Quotes eld
19648 \begin_inset Quotes erd
19654 \begin_layout Standard
19655 To insert the list of algorithms you can use the menu
19657 Insert\SpecialChar \menuseparator
19659 \begin_inset space \thinspace{}
19663 \begin_inset space \thinspace{}
19666 TOC\SpecialChar \menuseparator
19669 when your document has the same language as LyX's menu names.
19670 In other cases use this command in TeX-Code instead:
19673 \begin_layout Standard
19678 listof{algorithm}{your
19679 \begin_inset space ~
19685 \begin_layout Standard
19689 \begin_inset space ~
19695 \begin_inset Quotes eld
19703 \begin_inset Quotes erd
19709 \begin_layout Standard
19710 Algorithm floats are not by default numbered in the scheme
19711 \begin_inset Quotes eld
19715 \begin_inset Quotes erd
19718 like it is the case for table and figure floats in many document-classes.
19719 To number algorithm floats in the same scheme, add this command to your
19723 \begin_layout Standard
19728 numberwithin{algorithm}{chapter}
19731 \begin_layout Standard
19732 To be able to use the command
19741 \begin_inset space ~
19746 in the document settings the option
19749 \begin_inset space ~
19753 \begin_inset space ~
19757 \begin_inset space ~
19765 \begin_layout Subsection
19770 \begin_layout Plain Layout
19771 Floats ! Wrap Floats
19779 \begin_layout Standard
19780 \begin_inset Wrap figure
19787 \begin_layout Plain Layout
19788 \begin_inset Graphics
19789 filename clipart/mobius.eps
19791 scaleBeforeRotation
19792 rotateOrigin center
19799 \begin_layout Plain Layout
19800 \begin_inset Caption
19802 \begin_layout Plain Layout
19803 \begin_inset CommandInset label
19805 name "fig:This-is-a"
19809 This is a figure wrap float.
19819 This float type is used if you want to wrap text around a figure or table
19820 so that it only occupies some fraction of the column width.
19821 It can be inserted using the menu
19823 Insert\SpecialChar \menuseparator
19824 Floats\SpecialChar \menuseparator
19826 \begin_inset space ~
19830 \begin_inset space ~
19838 \begin_inset space ~
19842 \begin_inset space ~
19847 if the LaTeX-package
19855 \begin_layout Plain Layout
19856 LaTeX-packages ! wrapfig
19860 \begin_layout Plain Layout
19878 \begin_layout Plain Layout
19879 Installing a LaTeX-package is explained it in the
19882 \begin_inset space ~
19892 The settings of the float can be modified by right-clicking on the float
19894 The mandatory settings are the float
19907 that specifies how much the float is set into the paragraph
19908 \begin_inset space \thinspace{}
19912 \begin_inset space \thinspace{}
19915 page margin, and the
19918 \begin_inset space ~
19923 that specifies how many text lines the float will approximately need.
19924 The line span is often hard to be approximated, so better only use it when
19925 you encounter float placement problems.
19926 You can furthermore decide if LaTeX is allowed to let the float float within
19927 the paragraph or to surrounding paragraphs.
19929 \begin_inset space ~
19933 \begin_inset CommandInset ref
19935 reference "fig:This-is-a"
19939 is an example text wrap float with a width of 40
19940 \begin_inset space \thinspace{}
19944 \begin_inset space \thinspace{}
19947 cm overhang, set to the left.
19951 \begin_layout Plain Layout
19952 Available units are explained in appendix
19953 \begin_inset space ~
19957 \begin_inset CommandInset ref
19959 reference "cha:Units-available-in"
19971 \begin_layout Standard
19972 \begin_inset Note Greyedout
19975 \begin_layout Plain Layout
19981 \begin_inset space ~
19984 wrap float floats are fragile! E.
19985 \begin_inset space \thinspace{}
19989 \begin_inset space \space{}
19992 having a figure too close to the bottom of the page can mess things up in
19993 the way that the float doesn't appear in the output or that it is placed
19994 over some other text.
20002 \begin_layout Standard
20006 \begin_layout Itemize
20007 Wrap floats should not be placed in paragraphs that run over a page break.
20008 That means that wrap floats should better be inserted to the exact place
20009 when the document is nearly finished and you are able to estimate where
20010 page breaks will appear.
20013 \begin_layout Itemize
20014 Wrap floats should either be placed in an own paragraph before the paragraph
20015 where they should wrap into or within a paragraph.
20018 \begin_layout Itemize
20019 Wrap floats in consecutive paragraphs may cause troubles, so assure that
20020 there is a text paragraph between them as separator.
20023 \begin_layout Itemize
20024 Wrap floats are not allowed in section headings or tables.
20027 \begin_layout Section
20032 \begin_layout Plain Layout
20041 \begin_layout Standard
20042 Floats are usually numbered either independent from the sections the floats
20043 are in, or in the scheme
20044 \begin_inset Quotes eld
20048 \begin_inset Quotes erd
20052 \begin_inset Quotes eld
20056 \begin_inset Quotes erd
20060 This depends on the used document class.
20063 \begin_layout Standard
20064 To change the section independent numbering, you can use this command in
20065 the document preamble:
20068 \begin_layout Standard
20080 \begin_layout Standard
20087 is the command that prints the table number, for figure floats, the command
20101 prints in the command above the table number as small roman number.
20104 \begin_layout Standard
20105 To change the numbering scheme for example to
20106 \begin_inset Quotes eld
20110 \begin_inset Quotes erd
20113 , use this command in the preamble:
20116 \begin_layout Standard
20121 numberwithin{table}{subsection}
20124 \begin_layout Standard
20125 To be able to use the command
20134 \begin_inset space ~
20139 in the document settings the option
20142 \begin_inset space ~
20146 \begin_inset space ~
20150 \begin_inset space ~
20158 \begin_layout Standard
20159 Please also have a look at section
20160 \begin_inset space ~
20164 \begin_inset CommandInset ref
20166 reference "sub:Footnote-Numbering"
20170 for the details and important notes about the numbering commands.
20173 \begin_layout Section
20175 \begin_inset CommandInset label
20177 name "sec:Referencing-Floats"
20185 \begin_layout Plain Layout
20186 Floats ! References
20195 \begin_layout Plain Layout
20196 References ! to Floats
20204 \begin_layout Standard
20205 To reference a float, insert a label into its caption using the menu
20207 Insert\SpecialChar \menuseparator
20210 or the toolbar button
20211 \begin_inset Graphics
20212 filename ../images/label-insert.png
20214 scaleBeforeRotation
20219 A grey label box like this one:
20220 \begin_inset Graphics
20221 filename clipart/labelQt4.png
20223 scaleBeforeRotation
20227 will be inserted and the label window pops up asking for the label text.
20228 LyX offers as text the first words of the caption with a prefix.
20229 The prefix depends on the float type, e.
20230 \begin_inset space \thinspace{}
20234 \begin_inset space \space{}
20237 for figure floats the prefix will be "
20244 \begin_layout Standard
20245 The label is used as anchor and name for the reference.
20246 You can refer to the label using the menu
20248 Insert\SpecialChar \menuseparator
20251 or the toolbar button
20252 \begin_inset Graphics
20253 filename ../images/dialog-show-new-inset_ref.png
20255 scaleBeforeRotation
20260 A grey cross-reference box like this one:
20261 \begin_inset Graphics
20262 filename clipart/referenceQt4.png
20264 scaleBeforeRotation
20268 will be inserted and the cross-reference window appear showing all labels
20270 If you have multiple LyX-documents opened, choose the one you are working
20271 on from the drop-list at the top of the dialog.
20272 You can now sort the labels alphabetically and then choose one.
20273 At the position of the cross-reference box the float number will appear
20277 \begin_layout Standard
20278 It is recommended to use a protected space between the cross-reference name
20279 and its number to avoid line breaks between them.
20280 If a cross-reference refers to a non-existing label, you will see two question
20281 marks in the output instead of the reference.
20284 \begin_layout Standard
20285 You can change labels at any time by clicking on the label box.
20286 References to the changed label will automatically change its link to the
20287 new label text, so that you don't need to take care about this.
20290 \begin_layout Standard
20294 \begin_inset space ~
20298 \begin_inset space ~
20303 in the cross-reference window sets the cursor before the referred label.
20304 The button text changes then to Go
20305 \begin_inset space ~
20308 Back and you can use it to set the cursor back to the cross-reference.
20309 Right-clicking on a cross-reference box also sets the cursor before the
20310 referenced label but without a possibility to go back.
20313 \begin_layout Subsection
20314 Cross-Reference Formats
20315 \begin_inset CommandInset label
20317 name "sub:Cross-Reference-Formats"
20325 \begin_layout Plain Layout
20326 References ! Formats
20334 \begin_layout Standard
20335 There are six varieties of cross-references:
20338 \begin_layout Description
20339 <reference>: prints the float number, this is the default:
20340 \begin_inset CommandInset ref
20342 reference "fig:Two-distorted-images"
20349 \begin_layout Description
20350 (<reference>): prints the float number within two parentheses, this is the
20351 style normally used to reference formulas, especially when the reference
20353 \begin_inset Quotes eld
20357 \begin_inset Quotes erd
20361 \begin_inset CommandInset ref
20370 \begin_layout Description
20371 <page>: prints the page number: Page
20372 \begin_inset space ~
20376 \begin_inset CommandInset ref
20377 LatexCommand pageref
20378 reference "fig:Two-distorted-images"
20385 \begin_layout Description
20387 \begin_inset space ~
20391 \begin_inset space ~
20394 <page>: prints the text "on page" and the page number:
20395 \begin_inset CommandInset ref
20396 LatexCommand vpageref
20397 reference "fig:Two-distorted-images"
20404 \begin_layout Description
20406 \begin_inset space ~
20410 \begin_inset space ~
20414 \begin_inset space ~
20417 <page>: prints the float number, the text "on page", and the page number:
20419 \begin_inset CommandInset ref
20421 reference "fig:Two-distorted-images"
20428 \begin_layout Description
20430 \begin_inset space ~
20433 reference: prints a self defined cross-reference format.
20435 \begin_inset Note Greyedout
20438 \begin_layout Plain Layout
20443 This feature is only available when you have the LaTeX-package
20455 \begin_layout Standard
20456 Note that the style <page> won't print the page number if the label is on
20457 the previous, the same, or the next page.
20459 \begin_inset space \thinspace{}
20463 \begin_inset space \space{}
20467 \begin_inset Quotes eld
20475 \begin_inset Quotes erd
20481 \begin_layout Standard
20482 The number and current page of the referred document part in the output,
20483 is automatically calculated by LaTeX.
20484 The varieties are adjusted in the field
20488 of the cross-reference window, that appear when you click on the cross-referenc
20492 \begin_layout Subsection
20493 Automatic Reference Naming
20497 \begin_layout Plain Layout
20498 References ! Automatic Reference Naming
20506 \begin_layout Standard
20515 \begin_layout Plain Layout
20516 LaTeX-packages ! hyperref
20521 , that is enabled in the
20529 dialog, provides a very useful feature that cross-references automatically
20530 include the name of the referenced floats (or text parts like
20535 So you will save to write e.
20536 \begin_inset space \thinspace{}
20540 \begin_inset space \space{}
20544 \begin_inset Quotes eld
20548 \begin_inset Quotes erd
20551 before every reference to a figure.
20552 To use this feature, enable
20556 and insert this line to the LaTeX preamble:
20559 \begin_layout Standard
20575 \begin_layout Standard
20576 When you prefer other reference names than the default ones, for example
20577 you want instead of
20578 \begin_inset Quotes eld
20582 \begin_inset Quotes erd
20586 \begin_inset Quotes eld
20590 \begin_inset space \thinspace{}
20594 \begin_inset Quotes eld
20597 , you can redefine the name by inserting this to the preamble:
20600 \begin_layout Standard
20611 sectionautorefname}
20612 \begin_inset Newline newline
20619 \begin_layout Plain Layout
20633 \begin_layout Standard
20634 When you are using another document language than English, replace
20635 \begin_inset Newline newline
20650 , where *** is the name of the used language.
20653 \begin_layout Standard
20654 To get automatic names, but not for certain reference types, for example
20655 not for equations, use this preamble code:
20658 \begin_layout Standard
20666 \begin_inset Newline newline
20676 \begin_inset Newline newline
20687 equationautorefname}
20688 \begin_inset Newline newline
20695 \begin_layout Plain Layout
20711 \begin_layout Standard
20712 More about this topic can be found in
20717 \begin_inset CommandInset citation
20726 \begin_layout Standard
20727 \begin_inset Note Greyedout
20730 \begin_layout Plain Layout
20735 Automatic reference naming cannot be used when you use cross-references
20739 \begin_inset space ~
20744 style, as described in section
20745 \begin_inset space ~
20749 \begin_inset CommandInset ref
20751 reference "sub:Cross-Reference-Formats"
20763 \begin_layout Standard
20768 manual is an example where automatic reference naming is used.
20771 \begin_layout Subsection
20773 \begin_inset CommandInset label
20775 name "sub:Reference-Position"
20783 \begin_layout Plain Layout
20784 References ! Reference Position
20792 \begin_layout Standard
20801 \begin_layout Plain Layout
20802 LaTeX-packages ! hyperref
20815 dialog to link cross-references in the output, you will see that clicking
20816 on an image float reference jumps to the image label.
20817 The caption will be the first text part on the screen, so that you cannot
20818 see the image without scrolling.
20819 This is because the reference link anchor is placed at the position of
20821 With the use of the package
20829 \begin_layout Plain Layout
20830 LaTeX-packages ! hypcap
20835 , which is part of the LaTeX-package
20843 \begin_layout Plain Layout
20844 LaTeX-packages ! oberdiek
20849 , the link anchor is placed at the beginning of a float.
20850 To use this feature for figure floats, load
20854 in the document preamble with the line
20857 \begin_layout Standard
20862 usepackage[figure]{hypcap}
20865 \begin_layout Standard
20870 for all float types but this is not recommended for stability reasons.
20871 For more information, have a look at
20876 \begin_inset CommandInset citation
20885 \begin_layout Standard
20886 \begin_inset Note Greyedout
20889 \begin_layout Plain Layout
20898 has no effect for references to subfigures.
20906 \begin_layout Section
20908 \begin_inset CommandInset label
20910 name "sec:Float-Placement"
20918 \begin_layout Plain Layout
20927 \begin_layout Standard
20928 Right-clicking on a float-box opens a dialog where you can alter the placement
20929 options that LaTeX uses for positioning the float.
20930 \begin_inset Newline newline
20936 \begin_inset space ~
20941 is only useful for two-column documents: If you select it, the float will
20942 span across both columns on the page instead of being confined to just
20944 \begin_inset Newline newline
20950 \begin_inset space ~
20955 is used to rotate floats, see section
20956 \begin_inset CommandInset ref
20958 reference "sec:Rotated-Floats"
20965 \begin_layout Standard
20966 You can use one ore more of the following options in the float dialog to
20967 set the placement for a particular float when you uncheck the option
20970 \begin_inset space ~
20974 \begin_inset space ~
20982 \begin_layout Description
20984 \begin_inset space ~
20988 \begin_inset space ~
20991 possible try to place the float on the position where it is inserted
20994 \begin_layout Description
20996 \begin_inset space ~
21000 \begin_inset space ~
21003 page try to place the float on the top of the current page
21006 \begin_layout Description
21008 \begin_inset space ~
21012 \begin_inset space ~
21015 page try to place the float on the bottom of the current page
21018 \begin_layout Description
21020 \begin_inset space ~
21024 \begin_inset space ~
21027 floats try to place the float on an own page
21030 \begin_layout Standard
21031 The order of the above option is
21036 That means, if you use the default placement, LaTeX will first try out
21040 \begin_inset space ~
21044 \begin_inset space ~
21052 \begin_inset space ~
21056 \begin_inset space ~
21061 , and then the others.
21062 If you don't use the default, LaTeX will try only the checked options but
21064 If none of the 4 placements are possible the procedure is internally repeated
21065 but it is tried to put the float on the following page.
21068 \begin_layout Standard
21069 By default, each option has its own rules:
21072 \begin_layout Labeling
21073 \labelwidthstring 00.00.0000
21077 \begin_inset space ~
21081 \begin_inset space ~
21086 only floats occupying less than 70
21087 \begin_inset space \thinspace{}
21090 % of the page can be placed at the top of a page (
21099 \begin_layout Labeling
21100 \labelwidthstring 00.00.0000
21104 \begin_inset space ~
21108 \begin_inset space ~
21113 : only floats occupying less than 30
21114 \begin_inset space \thinspace{}
21117 % of the page can be placed at the bottom of a page.
21127 \begin_layout Labeling
21128 \labelwidthstring 00.00.0000
21132 \begin_inset space ~
21136 \begin_inset space ~
21141 : only if more than 50
21142 \begin_inset space \thinspace{}
21145 % of the page are occupied by floats, several floats can be set together
21156 \begin_layout Standard
21157 If you don't like these rules, you can ignore them by using the additional
21161 \begin_inset space ~
21165 \begin_inset space ~
21171 \begin_inset Newline newline
21174 You can also redefine the rules with LaTeX-commands that are given in parenthese
21175 s behind the rules description above.
21176 To increase for example the often too small default of the bottom-rule
21178 \begin_inset space \thinspace{}
21181 % of the page, add this line to your document preamble:
21184 \begin_layout Standard
21191 bottomfraction}{0.5}
21194 \begin_layout Standard
21195 Sometimes you might need, under all circumstances, a float to be placed
21196 exactly at the position where it is inserted.
21197 For this case you can use the option
21200 \begin_inset space ~
21206 Use this option very rarely and only if the document is nearly ready to
21208 Because the float is then no longer able to
21209 \begin_inset Quotes eld
21213 \begin_inset Quotes erd
21216 when you change your document and this will often destroy the page layout.
21219 \begin_layout Standard
21220 There are no placement options for text wrap floats, because they are always
21221 surrounded by the text of a certain paragraph.
21222 \begin_inset VSpace bigskip
21228 \begin_layout Standard
21229 Sometimes you have the problem that a float is placed at the top of a page
21230 while its corresponding section starts at the middle of the page, so that
21231 the reader could think the float is part of the previous section.
21232 To avoid this the LaTeX-command
21239 It suppresses a given float placement for the page where it is inserted
21240 and can therefore be used to avoid that floats could be set before a section
21242 To get this, add these commands to your document preamble:
21245 \begin_layout Standard
21255 \begin_inset Newline newline
21269 \begin_layout Standard
21270 You can define the same for all section headings, like chapters and subsections.
21271 This definition is not recommended to be used for small text parts like
21272 subsubsections because LaTeX may then have problems to find a suitable
21276 \begin_layout Standard
21277 \begin_inset VSpace bigskip
21280 In some cases it is required to have all figures/tables at the end of the
21282 For this purpose the LaTeX-package
21290 \begin_layout Plain Layout
21291 LaTeX-packages ! endfloat
21297 It puts all figure and table floats at the end of the document into own
21299 At the original float position a text hint like
21300 \begin_inset Quotes eld
21306 \begin_inset space ~
21312 \begin_inset Quotes erd
21316 The endfloat-package is loaded in the preamble with the line
21319 \begin_layout Standard
21324 usepackage[options]{endfloat}
21327 \begin_layout Standard
21328 There are various package options to format the created figure/table sections.
21329 For more information we refer to the
21334 \begin_inset CommandInset citation
21341 \begin_inset Newline newline
21345 \begin_inset Note Greyedout
21348 \begin_layout Plain Layout
21353 doesn't provide an automatic translation for the text hint, you have to
21354 do this manually, see section
21355 \begin_inset space ~
21359 \begin_inset CommandInset citation
21371 \begin_inset Newline newline
21375 \begin_inset Note Greyedout
21378 \begin_layout Plain Layout
21383 There is currently a bug in
21387 when the caption contains a German
21388 \begin_inset Quotes eld
21392 \begin_inset Quotes erd
21396 Use in this case the command
21397 \begin_inset Quotes eld
21407 \begin_inset Quotes erd
21410 in TeX-Code instead of
21411 \begin_inset Quotes eld
21415 \begin_inset Quotes erd
21426 \begin_layout Standard
21427 \begin_inset VSpace bigskip
21430 For more details about float placements, have a look at LaTeX books,
21431 \begin_inset CommandInset citation
21433 key "latexcompanion,latexguide,latexbook"
21440 \begin_layout Section
21442 \begin_inset CommandInset label
21444 name "sec:Rotated-Floats"
21452 \begin_layout Plain Layout
21461 \begin_layout Standard
21462 Especially for wide tables you might have floats rotated.
21463 To rotate a whole float including the caption, right-click on the float-box
21467 \begin_inset space ~
21475 \begin_layout Standard
21476 Rotated floats are always placed on its own page (or column, in case you
21477 have a multi-column document).
21478 You can let them span several columns using the float settings option
21481 \begin_inset space ~
21487 Floats are rotated so that you can read them from the outside margin.
21488 To force a certain rotation direction for all pages, you can add either
21497 to the document class options.
21500 \begin_layout Standard
21501 Referencing rotated floats is the same like for normal floats, the caption
21502 format is also the same: Table
21503 \begin_inset space ~
21507 \begin_inset CommandInset ref
21509 reference "tab:Rotated-table"
21513 is an example of a rotated table float.
21516 \begin_layout Standard
21517 \begin_inset Note Greyedout
21520 \begin_layout Plain Layout
21525 Not all DVI-viewers are able to display rotated floats.
21533 \begin_layout Standard
21534 \begin_inset Float table
21539 \begin_layout Plain Layout
21540 \begin_inset Caption
21542 \begin_layout Plain Layout
21543 \begin_inset CommandInset label
21545 name "tab:Rotated-table"
21557 \begin_layout Plain Layout
21559 \begin_inset Tabular
21560 <lyxtabular version="3" rows="1" columns="5">
21562 <column alignment="center" valignment="top" width="0">
21563 <column alignment="center" valignment="top" width="0">
21564 <column alignment="center" valignment="top" width="0">
21565 <column alignment="center" valignment="top" width="0">
21566 <column alignment="center" valignment="top" width="0">
21568 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21571 \begin_layout Plain Layout
21577 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21580 \begin_layout Plain Layout
21586 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21589 \begin_layout Plain Layout
21595 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21598 \begin_layout Plain Layout
21604 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21607 \begin_layout Plain Layout
21626 \begin_layout Section
21631 \begin_layout Plain Layout
21640 \begin_layout Standard
21641 Subfloats are for example used when a figure consists of several images.
21642 They are created by inserting a float to an existing float.
21643 The placement of the subfloats can be controlled like for paragraphs as
21645 \begin_inset space ~
21649 \begin_inset CommandInset ref
21651 reference "tab:Two-subtables-side"
21656 \begin_inset CommandInset ref
21658 reference "tab:Two-subtables-upon"
21665 \begin_layout Standard
21666 Referencing subfloats works as for normal floats: Table
21667 \begin_inset space ~
21671 \begin_inset CommandInset ref
21673 reference "tab:This-is-subtable-a"
21678 \begin_inset CommandInset ref
21680 reference "tab:This-is-subtable-b"
21684 are subtables of table
21685 \begin_inset space ~
21689 \begin_inset CommandInset ref
21691 reference "tab:Two-subtables-side"
21698 \begin_layout Standard
21699 \begin_inset Float table
21704 \begin_layout Plain Layout
21705 \begin_inset Caption
21707 \begin_layout Plain Layout
21708 \begin_inset CommandInset label
21710 name "tab:Two-subtables-side"
21714 Two subtables placed side by side.
21722 \begin_layout Plain Layout
21724 \begin_inset space \hfill{}
21728 \begin_inset Float table
21733 \begin_layout Plain Layout
21734 \begin_inset Caption
21736 \begin_layout Plain Layout
21737 \begin_inset CommandInset label
21739 name "tab:This-is-subtable-a"
21743 This is subtable a.
21751 \begin_layout Plain Layout
21753 \begin_inset Tabular
21754 <lyxtabular version="3" rows="1" columns="5">
21756 <column alignment="center" valignment="top" width="0">
21757 <column alignment="center" valignment="top" width="0">
21758 <column alignment="center" valignment="top" width="0">
21759 <column alignment="center" valignment="top" width="0">
21760 <column alignment="center" valignment="top" width="0">
21762 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21765 \begin_layout Plain Layout
21771 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21774 \begin_layout Plain Layout
21780 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21783 \begin_layout Plain Layout
21789 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21792 \begin_layout Plain Layout
21798 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21801 \begin_layout Plain Layout
21818 \begin_inset space \hfill{}
21822 \begin_inset Float table
21827 \begin_layout Plain Layout
21828 \begin_inset Caption
21830 \begin_layout Plain Layout
21831 \begin_inset CommandInset label
21833 name "tab:This-is-subtable-b"
21837 This is subtable b.
21845 \begin_layout Plain Layout
21847 \begin_inset Tabular
21848 <lyxtabular version="3" rows="1" columns="5">
21850 <column alignment="center" valignment="top" width="0">
21851 <column alignment="center" valignment="top" width="0">
21852 <column alignment="center" valignment="top" width="0">
21853 <column alignment="center" valignment="top" width="0">
21854 <column alignment="center" valignment="top" width="0">
21856 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21859 \begin_layout Plain Layout
21865 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21868 \begin_layout Plain Layout
21874 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21877 \begin_layout Plain Layout
21883 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21886 \begin_layout Plain Layout
21892 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21895 \begin_layout Plain Layout
21912 \begin_inset space \hfill{}
21923 \begin_layout Standard
21924 \begin_inset Float table
21929 \begin_layout Plain Layout
21930 \begin_inset Caption
21932 \begin_layout Plain Layout
21933 \begin_inset CommandInset label
21935 name "tab:Two-subtables-upon"
21939 Two subtables placed one upon the other.
21940 (a) table with 4 cells, (b) table with 5 cells.
21948 \begin_layout Plain Layout
21950 \begin_inset Float table
21955 \begin_layout Plain Layout
21956 \begin_inset Caption
21958 \begin_layout Plain Layout
21967 \begin_layout Plain Layout
21969 \begin_inset Tabular
21970 <lyxtabular version="3" rows="1" columns="4">
21972 <column alignment="center" valignment="top" width="0">
21973 <column alignment="center" valignment="top" width="0">
21974 <column alignment="center" valignment="top" width="0">
21975 <column alignment="center" valignment="top" width="0">
21977 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21980 \begin_layout Plain Layout
21986 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21989 \begin_layout Plain Layout
21995 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21998 \begin_layout Plain Layout
22004 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22007 \begin_layout Plain Layout
22026 \begin_layout Plain Layout
22028 \begin_inset Float table
22033 \begin_layout Plain Layout
22034 \begin_inset Caption
22036 \begin_layout Plain Layout
22045 \begin_layout Plain Layout
22047 \begin_inset Tabular
22048 <lyxtabular version="3" rows="1" columns="5">
22050 <column alignment="center" valignment="top" width="0">
22051 <column alignment="center" valignment="top" width="0">
22052 <column alignment="center" valignment="top" width="0">
22053 <column alignment="center" valignment="top" width="0">
22054 <column alignment="center" valignment="top" width="0">
22056 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22059 \begin_layout Plain Layout
22065 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22068 \begin_layout Plain Layout
22074 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22077 \begin_layout Plain Layout
22083 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22086 \begin_layout Plain Layout
22092 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22095 \begin_layout Plain Layout
22119 \begin_layout Section
22120 Floats Side by Side
22124 \begin_layout Plain Layout
22125 Floats ! Side by side
22133 \begin_layout Standard
22134 To place floats side by side, like for Figure
22135 \begin_inset space ~
22139 \begin_inset CommandInset ref
22141 reference "fig:Float-left"
22146 \begin_inset CommandInset ref
22148 reference "fig:Float-right"
22157 In it two minipage boxes are inserted.
22161 \begin_layout Plain Layout
22162 Minipages are explained in section
22163 \begin_inset space ~
22167 \begin_inset CommandInset ref
22169 reference "sec:Minipages"
22178 The width is set to 45
22179 \begin_inset space \thinspace{}
22183 \begin_inset space \thinspace{}
22186 column% and the box alignment to
22191 The minipage boxes contain the image and the caption in the same way as
22192 they are in a float.
22193 The only difference is that the image unit
22196 \begin_inset space ~
22200 \begin_inset space ~
22205 is now calculated according to the width of the minipage boxes.
22208 \begin_layout Standard
22209 \begin_inset Float figure
22214 \begin_layout Plain Layout
22215 \begin_inset Box Frameless
22224 height_special "totalheight"
22227 \begin_layout Plain Layout
22229 \begin_inset Graphics
22230 filename clipart/mobius.eps
22233 scaleBeforeRotation
22240 \begin_layout Plain Layout
22241 \begin_inset Caption
22243 \begin_layout Plain Layout
22244 \begin_inset CommandInset label
22246 name "fig:Float-left"
22250 Float on the left side.
22261 \begin_inset space \hfill{}
22265 \begin_inset Box Frameless
22274 height_special "totalheight"
22277 \begin_layout Plain Layout
22279 \begin_inset Graphics
22280 filename clipart/platypus.eps
22283 scaleBeforeRotation
22290 \begin_layout Plain Layout
22291 \begin_inset Caption
22293 \begin_layout Plain Layout
22294 \begin_inset CommandInset label
22296 name "fig:Float-right"
22300 Float on the right side.
22313 \begin_layout Plain Layout
22322 \begin_layout Section
22327 \begin_layout Plain Layout
22328 Caption ! Formatting
22337 \begin_layout Plain Layout
22338 Floats ! Caption Formatting
22344 \begin_inset CommandInset label
22346 name "sec:Caption-Formatting"
22353 \begin_layout Standard
22358 environment is the default paragraph environment for
22363 On the LyX screen captions appear as label, e.
22364 \begin_inset space \thinspace{}
22368 \begin_inset space \space{}
22372 \begin_inset Quotes eld
22380 \begin_inset Quotes erd
22383 followed by the caption text.
22385 \begin_inset Quotes eld
22389 \begin_inset Quotes erd
22392 is the actual reference number.
22393 By default the label and the number are in the same font as the caption
22394 text and a colon follows the number to divide the label from the text.
22395 This caption format is not suitable for all document formats.
22399 \begin_layout Standard
22400 To change the default caption format, load the LaTeX-package
22408 \begin_layout Plain Layout
22409 LaTeX-packages ! caption
22414 in the document preamble with this line:
22417 \begin_layout Standard
22422 usepackage[format definition]{caption}
22425 \begin_layout Standard
22426 To have for example the label and the number in sans-serif bold font and
22427 the table captions always above the table like in this document, use the
22431 \begin_layout Standard
22436 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22439 \begin_layout Standard
22440 You can also define different caption formats for the different float types.
22441 In this case load the
22445 package without format specific options and define the different formats
22446 with the help of the command
22449 \begin_layout Standard
22454 captionsetup[float type]{format definition}
22457 \begin_layout Standard
22458 in the document preamble.
22459 For example the caption formats of Figure
22460 \begin_inset space ~
22464 \begin_inset CommandInset ref
22466 reference "fig:This-is-an-fig"
22471 \begin_inset space ~
22475 \begin_inset CommandInset ref
22477 reference "tab:This-is-an-tab"
22481 can be created using these commands in the document preamble:
22484 \begin_layout Standard
22489 usepackage[tableposition=top]{caption}
22492 \begin_inset Newline newline
22499 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22500 \begin_inset Newline newline
22507 \begin_layout Plain Layout
22515 captionsetup[figure]
22523 \begin_inset Newline newline
22528 captionsetup[table]{labelfont={bf,sf}}
22531 \begin_layout Standard
22532 \begin_inset Note Greyedout
22535 \begin_layout Plain Layout
22544 has no effect when a
22552 \begin_layout Plain Layout
22553 LaTeX-packages ! KOMA-Script
22558 document class is used.
22559 In this case the document class option
22571 \begin_layout Standard
22572 For more information about the package
22576 we refer to its documentation
22577 \begin_inset CommandInset citation
22586 \begin_layout Standard
22587 To change the label name from e.
22588 \begin_inset space \thinspace{}
22592 \begin_inset space \space{}
22596 \begin_inset Quotes eld
22600 \begin_inset Quotes erd
22604 \begin_inset Quotes eld
22608 \begin_inset Quotes erd
22611 use this preamble command:
22614 \begin_layout Standard
22621 fnum@figure}{Image~
22626 \begin_layout Standard
22633 inserts the figure number and
22636 \begin_inset Quotes eld
22642 \begin_inset Quotes erd
22645 creates a protected space.
22648 \begin_layout Standard
22649 \begin_inset VSpace bigskip
22660 \begin_layout Plain Layout
22661 LaTeX-packages ! KOMA-Script
22668 article (KOMA-Script)
22676 letter (KOMA-Script)
22680 report (KOMA-Script)
22683 \begin_inset space \thinspace{}
22686 ), you can alternatively to the
22694 's built-in command
22701 For example, to have the caption label in bold, add this command to your
22705 \begin_layout Standard
22710 setkomafont{captionlabel}{
22715 \begin_layout Standard
22716 For more information about
22727 \begin_inset CommandInset citation
22736 \begin_layout Standard
22740 \begin_layout Plain Layout
22744 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
22751 \begin_inset Note Note
22754 \begin_layout Plain Layout
22755 The caption format is changed only for this example.
22763 \begin_layout Standard
22764 \begin_inset Float figure
22770 \begin_layout Plain Layout
22772 \begin_inset Graphics
22773 filename clipart/mobius.eps
22776 scaleBeforeRotation
22783 \begin_layout Plain Layout
22784 \begin_inset Caption
22786 \begin_layout Plain Layout
22787 \begin_inset CommandInset label
22789 name "fig:This-is-an-fig"
22793 This is an example figure caption that is longer than one line to show the
22794 different caption format.
22795 Here a self-defined caption format is used.
22808 \begin_layout Standard
22812 \begin_layout Plain Layout
22816 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
22825 \begin_layout Standard
22826 \begin_inset Float table
22832 \begin_layout Plain Layout
22833 \begin_inset Caption
22835 \begin_layout Plain Layout
22836 \begin_inset CommandInset label
22838 name "tab:This-is-an-tab"
22842 This is an example table caption that is longer than one line to show the
22843 different caption format.
22844 Here the standard caption format for tables in this document is used.
22852 \begin_layout Plain Layout
22854 \begin_inset Tabular
22855 <lyxtabular version="3" rows="1" columns="5">
22857 <column alignment="center" valignment="top" width="0">
22858 <column alignment="center" valignment="top" width="0">
22859 <column alignment="center" valignment="top" width="0">
22860 <column alignment="center" valignment="top" width="0">
22861 <column alignment="center" valignment="top" width="0">
22863 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22866 \begin_layout Plain Layout
22872 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22875 \begin_layout Plain Layout
22881 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22884 \begin_layout Plain Layout
22890 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22893 \begin_layout Plain Layout
22899 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22902 \begin_layout Plain Layout
22921 \begin_layout Section
22926 \begin_layout Plain Layout
22927 Caption ! Placement
22936 \begin_layout Plain Layout
22937 Floats ! Caption Placement
22943 \begin_inset CommandInset label
22945 name "sec:Caption-Placement"
22952 \begin_layout Standard
22953 The common caption placement rule is:
22956 \begin_layout Description
22957 Figure: Caption is set below the figure
22960 \begin_layout Description
22961 Table: Caption is set above the table
22964 \begin_layout Standard
22965 Having the caption above the table is unfortunately not supported in LaTeX's
22967 That means if you are using the document classes
22983 there will be no space between the caption and the table.
22984 To insert the needed space, add the following option to the load command
22985 of the LaTeX-package
22989 in your document preamble
22993 \begin_layout Plain Layout
22995 \begin_inset space ~
22999 \begin_inset CommandInset ref
23001 reference "sec:Caption-Formatting"
23005 for more information of the package
23017 \begin_layout Standard
23023 \begin_layout Standard
23032 \begin_layout Plain Layout
23033 LaTeX-packages ! KOMA-Script
23040 article (KOMA-Script)
23048 letter (KOMA-Script)
23052 report (KOMA-Script)
23055 \begin_inset space \thinspace{}
23058 ), you can alternatively to the
23062 package set the document class option
23069 \begin_layout Standard
23070 \begin_inset VSpace bigskip
23073 It is also possible to set the caption beside a figure or table.
23074 To get this the LaTeX-package
23082 \begin_layout Plain Layout
23083 LaTeX-packages ! sidecap
23088 has to be loaded in the document preamble with the line
23091 \begin_layout Standard
23096 usepackage[option]{sidecap}
23099 \begin_layout Standard
23100 If you set no option, the caption is placed on the side of the outer page
23101 margin – to the right on odd pages, to the left on even pages.
23102 You can change the placement to inner margin with the option
23107 To force the placement always to the right or left, use the option
23118 \begin_layout Standard
23122 \begin_layout Plain Layout
23132 \begin_inset Note Note
23135 \begin_layout Plain Layout
23136 The following section will only be displayed when the LaTeX-package
23148 \begin_layout Standard
23149 To place in LyX the caption of a float on the side, it is necessary to add
23150 these commands to the document preamble:
23153 \begin_layout Standard
23159 \begin_layout Standard
23167 \begin_inset Newline newline
23174 \begin_layout Plain Layout
23190 \begin_inset Newline newline
23197 \begin_layout Plain Layout
23213 \begin_inset Newline newline
23220 \begin_layout Plain Layout
23231 renewenvironment{table}{
23238 \begin_layout Standard
23246 \begin_inset Newline newline
23253 \begin_layout Plain Layout
23269 \begin_inset Newline newline
23276 \begin_layout Plain Layout
23294 \begin_layout Standard
23302 \begin_inset Newline newline
23309 \begin_layout Plain Layout
23325 \begin_inset Newline newline
23332 \begin_layout Plain Layout
23348 \begin_inset Newline newline
23355 \begin_layout Plain Layout
23366 renewenvironment{figure}{
23373 \begin_layout Standard
23381 \begin_inset Newline newline
23388 \begin_layout Plain Layout
23404 \begin_inset Newline newline
23411 \begin_layout Plain Layout
23429 \begin_layout Standard
23435 \begin_layout Standard
23436 The commands allow you to redefine the floats so that the caption is set
23438 For figure floats use the command
23441 \begin_layout Standard
23449 \begin_layout Standard
23450 in TeX-Code before the float.
23451 Behind the float insert the command
23454 \begin_layout Standard
23462 \begin_layout Standard
23463 in TeX-Code to get back to the original float definition.
23466 \begin_layout Standard
23467 For table floats use the corresponding commands
23470 \begin_layout Standard
23484 \begin_layout Standard
23486 \begin_inset space ~
23490 \begin_inset CommandInset ref
23492 reference "fig:cap-beside-fig"
23497 \begin_inset space ~
23501 \begin_inset CommandInset ref
23503 reference "tab:cap-beside-tab"
23507 are examples where the caption is set beside.
23510 \begin_layout Standard
23511 You can see in the examples that the caption text appears at the top of
23512 the floats for table floats and at the bottom for figure floats.
23513 To change this, you can use the command
23516 \begin_layout Standard
23521 sidecaptionvpos{float type}{placement}
23524 \begin_layout Standard
23525 in the document preamble or in TeX-Code before the float.
23526 The float type is either
23534 , the placement can be
23535 \begin_inset Quotes eld
23543 \begin_inset Quotes erd
23547 \begin_inset Quotes eld
23555 \begin_inset Quotes erd
23559 \begin_inset Quotes eld
23567 \begin_inset Quotes erd
23571 To have for example the caption of figure floats vertically centered, use
23575 \begin_layout Standard
23580 sidecaptionvpos{figure}{c}
23583 \begin_layout Standard
23584 This was used for Figure
23585 \begin_inset space ~
23589 \begin_inset CommandInset ref
23591 reference "fig:cap-beside-fig-2"
23598 \begin_layout Standard
23599 \begin_inset VSpace medskip
23602 For more information about the package
23606 we refer to its documentation
23607 \begin_inset CommandInset citation
23616 \begin_layout Standard
23617 \begin_inset Note Greyedout
23620 \begin_layout Plain Layout
23633 \begin_layout Plain Layout
23634 LaTeX-packages ! hypcap
23639 , described in section
23640 \begin_inset space ~
23644 \begin_inset CommandInset ref
23646 reference "sub:Reference-Position"
23650 , has no effect on floats with the caption set beside.
23658 \begin_layout Standard
23662 \begin_layout Plain Layout
23674 \begin_layout Standard
23675 \begin_inset Float figure
23680 \begin_layout Plain Layout
23681 \begin_inset Graphics
23682 filename clipart/escher-lsd.eps
23684 scaleBeforeRotation
23691 \begin_layout Plain Layout
23692 \begin_inset Caption
23694 \begin_layout Plain Layout
23695 \begin_inset CommandInset label
23697 name "fig:cap-beside-fig"
23701 This is a caption beside a figure.
23714 \begin_layout Standard
23718 \begin_layout Plain Layout
23730 \begin_layout Standard
23731 \begin_inset Float table
23736 \begin_layout Plain Layout
23737 \begin_inset Caption
23739 \begin_layout Plain Layout
23740 \begin_inset CommandInset label
23742 name "tab:cap-beside-tab"
23746 This is a caption beside a table.
23754 \begin_layout Plain Layout
23755 \begin_inset Tabular
23756 <lyxtabular version="3" rows="4" columns="5">
23758 <column alignment="center" valignment="top" width="0">
23759 <column alignment="center" valignment="top" width="0">
23760 <column alignment="center" valignment="top" width="0">
23761 <column alignment="center" valignment="top" width="0">
23762 <column alignment="center" valignment="top" width="0">
23764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23767 \begin_layout Plain Layout
23773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23776 \begin_layout Plain Layout
23782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23785 \begin_layout Plain Layout
23791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23794 \begin_layout Plain Layout
23800 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23803 \begin_layout Plain Layout
23811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23814 \begin_layout Plain Layout
23820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23823 \begin_layout Plain Layout
23829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23832 \begin_layout Plain Layout
23838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23841 \begin_layout Plain Layout
23847 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23850 \begin_layout Plain Layout
23858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23861 \begin_layout Plain Layout
23867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23870 \begin_layout Plain Layout
23876 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23879 \begin_layout Plain Layout
23885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23888 \begin_layout Plain Layout
23894 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23897 \begin_layout Plain Layout
23905 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23908 \begin_layout Plain Layout
23914 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23917 \begin_layout Plain Layout
23923 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23926 \begin_layout Plain Layout
23932 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23935 \begin_layout Plain Layout
23941 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23944 \begin_layout Plain Layout
23963 \begin_layout Standard
23967 \begin_layout Plain Layout
23979 \begin_layout Standard
23983 \begin_layout Plain Layout
23987 sidecaptionvpos{figure}{c}
23993 \begin_inset Float figure
23998 \begin_layout Plain Layout
23999 \begin_inset Graphics
24000 filename clipart/escher-lsd.eps
24002 scaleBeforeRotation
24009 \begin_layout Plain Layout
24010 \begin_inset Caption
24012 \begin_layout Plain Layout
24013 \begin_inset CommandInset label
24015 name "fig:cap-beside-fig-2"
24019 This is a vertically centered caption beside a figure.
24032 \begin_layout Standard
24036 \begin_layout Plain Layout
24048 \begin_layout Standard
24052 \begin_layout Plain Layout
24062 \begin_inset Note Note
24065 \begin_layout Plain Layout
24066 The following will be displayed when the LaTeX-package
24078 \begin_layout Standard
24079 You need to install the LaTeX-package
24083 to see the following part of this section in the output.
24086 \begin_layout Standard
24090 \begin_layout Plain Layout
24102 \begin_layout Section
24107 \begin_layout Plain Layout
24108 Floats ! Float Lists
24116 \begin_layout Standard
24117 Similar to the the table of contents where the sections of the document
24118 are listed, there are listings for all float types, like the figures of
24120 You can insert them via the
24122 Insert\SpecialChar \menuseparator
24124 \begin_inset space ~
24128 \begin_inset space ~
24136 \begin_layout Standard
24137 The list entries are the float captions or its short title, the float number,
24138 and the page number where they appear in the document.
24141 \begin_layout Standard
24142 You can find the list of figures and tables at the end of this document.
24145 \begin_layout Chapter
24149 \begin_layout Section
24154 \begin_layout Plain Layout
24163 \begin_layout Standard
24164 Notes are inserted with the toolbar button
24165 \begin_inset Graphics
24166 filename ../images/note-insert.png
24168 scaleBeforeRotation
24174 Insert\SpecialChar \menuseparator
24178 There are three types of notes:
24181 \begin_layout Description
24183 \begin_inset space ~
24186 Note This note type is for internal notes that won't appear in the output.
24187 Its note-box looks like this:
24188 \begin_inset Newline newline
24192 \begin_inset Newline newline
24196 \begin_inset Graphics
24197 filename clipart/LyXNoteImageQt4.png
24200 scaleBeforeRotation
24205 \begin_inset Note Note
24208 \begin_layout Plain Layout
24209 This is text in a note box that doesn't appear in the output.
24217 \begin_layout Description
24218 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24219 ent, when you export the document to LaTeX via the menu
24221 File\SpecialChar \menuseparator
24222 Export\SpecialChar \menuseparator
24223 LaTeX (pdflatex) / (plain)
24226 Its note-box looks like this:
24227 \begin_inset Newline newline
24231 \begin_inset Newline newline
24235 \begin_inset Graphics
24236 filename clipart/CommentNoteImageQt4.png
24239 scaleBeforeRotation
24244 \begin_inset Note Comment
24247 \begin_layout Plain Layout
24248 This is text in a note box that only appears as comment in LaTeX-files.
24256 \begin_layout Description
24258 \begin_inset space ~
24261 Out This note will appear in the output as grey text.
24262 Its note-box looks like this:
24263 \begin_inset Newline newline
24267 \begin_inset Newline newline
24271 \begin_inset Graphics
24272 filename clipart/GreyedOutNoteImageQt4.png
24275 scaleBeforeRotation
24280 \begin_inset Newline newline
24287 \begin_layout Plain Layout
24291 renewenvironment{lyxgreyedout}
24294 \begin_layout Plain Layout
24298 textcolor[gray]{0.8}
24308 \begin_inset Note Greyedout
24311 \begin_layout Plain Layout
24316 \begin_layout Plain Layout
24317 This is an example footnote within a greyed out note.
24322 of a comment that appears in the output as grey text.
24331 \begin_layout Plain Layout
24335 renewenvironment{lyxgreyedout}
24338 \begin_layout Plain Layout
24352 \begin_inset Note Note
24355 \begin_layout Plain Layout
24356 The greyed out note is here redefined to show it with the original LyX definitio
24357 n because greyed out notes are redefined in the preamble of this document,
24358 as described below, to have blue text.
24364 \begin_inset Newline newline
24368 \begin_inset Newline newline
24371 As you can see in the example, the first line of greyed out notes is a bit
24372 indented and greyed out notes can have footnotes.
24375 \begin_layout Standard
24376 \begin_inset VSpace bigskip
24379 When you use the toolbar button
24380 \begin_inset Graphics
24381 filename ../images/note-insert.png
24383 scaleBeforeRotation
24390 \begin_inset space ~
24396 You can switch between the five note types by right-clicking on the note-box.
24401 If you want to turn existing text into a note, mark it and click on the
24415 To change a note to text, press the backspace key when the cursor is in
24416 the first position of a note, or press the delete key when the cursor is
24417 in the very last position of the note, respectively.
24420 \begin_layout Standard
24421 \begin_inset VSpace bigskip
24424 You can change the text color of the greyed out notes in the preamble with
24425 the following command:
24428 \begin_layout Standard
24433 renewenvironment{lyxgreyedout}
24434 \begin_inset Newline newline
24441 \begin_layout Plain Layout
24459 \begin_layout Standard
24460 The available colors and the method to define own colors is explained in
24462 \begin_inset space ~
24466 \begin_inset CommandInset ref
24468 reference "sec:Colored-Tables"
24475 \begin_layout Standard
24476 Notes that appear in blue in this document are set using greyed out notes
24480 \begin_layout Section
24482 \begin_inset CommandInset label
24484 name "sec:Footnotes"
24492 \begin_layout Plain Layout
24502 \begin_layout Plain Layout
24511 \begin_layout Standard
24512 Footnotes can be inserted using the toolbar button
24513 \begin_inset Graphics
24514 filename ../images/footnote-insert.png
24516 scaleBeforeRotation
24522 Insert\SpecialChar \menuseparator
24534 then the following footnote-box:
24535 \begin_inset Graphics
24536 filename clipart/footnoteQt4.png
24538 scaleBeforeRotation
24546 where you can enter the footnote text.
24547 If you want to turn existing text into a footnote, mark it and click on
24569 to text, press the Backspace key when the cursor is in the first position
24578 , or press the Delete key when the cursor is in the very last position of
24590 \begin_layout Standard
24591 Here is an example footnote:
24599 \begin_layout Plain Layout
24600 \begin_inset CommandInset label
24602 name "foot:This-is-an"
24606 This is an example footnote.
24619 \begin_layout Plain Layout
24623 newcounter{MyRepeatFoot}
24626 \begin_layout Plain Layout
24630 setcounter{MyRepeatFoot}{
24640 \begin_layout Standard
24641 The footnote will appear in the output as a superscript number at the text
24642 position where the footnote box is placed.
24643 The footnote text is placed at the bottom of the current page.
24644 The footnote number is calculated by LaTeX, the numbers are consecutive.
24645 It depends on your document-class, if the footnote number is reset for
24649 \begin_layout Standard
24650 Footnotes can be referenced like floats: Insert a label into the footnote
24651 and cross-reference this label in the text as described in section
24652 \begin_inset space ~
24656 \begin_inset CommandInset ref
24658 reference "sec:Referencing-Floats"
24663 \begin_inset Newline newline
24666 This is a cross-reference of Footnote
24667 \begin_inset space ~
24671 \begin_inset CommandInset ref
24673 reference "foot:This-is-an"
24680 \begin_layout Standard
24681 \begin_inset VSpace defskip
24684 To use footnotes within tables, you have to use minipages, see section
24685 \begin_inset space ~
24689 \begin_inset CommandInset ref
24691 reference "sec:Minipages"
24696 Footnotes within longtables are described in section
24697 \begin_inset space ~
24701 \begin_inset CommandInset ref
24703 reference "sub:Footnotes-in-Longtables"
24710 \begin_layout Standard
24711 \begin_inset VSpace defskip
24714 To create only a mark for a footnote, use the command
24718 footnotemark[number]
24721 This is used when you have the same annotation several times in a text
24722 but doesn't want to print the footnote text every time.
24723 \begin_inset Newline newline
24726 As you don't know the number of the repeating footnote while you are writing
24727 the text, you have to store its number.
24728 For the following footnote mark example, these commands were inserted in
24729 TeX-Code behind Footnote
24730 \begin_inset space ~
24734 \begin_inset CommandInset ref
24736 reference "foot:This-is-an"
24740 to store the footnote number:
24743 \begin_layout Standard
24748 newcounter{MyRepeatFoot}
24749 \begin_inset Newline newline
24754 setcounter{MyRepeatFoot}{
24759 \begin_layout Standard
24760 The footnote mark was then created with this command:
24763 \begin_layout Standard
24773 \begin_layout Standard
24774 Here is an example footnote mark:
24782 \begin_layout Plain Layout
24796 \begin_layout Subsection
24798 \begin_inset CommandInset label
24800 name "sub:Footnote-Numbering"
24808 \begin_layout Plain Layout
24809 Footnotes ! Numbering
24817 \begin_layout Standard
24818 To reset the footnote number back to 1 after each section
24820 , add this command to your document preamble:
24823 \begin_layout Standard
24828 @addtoreset{footnote}{section}
24831 \begin_layout Standard
24832 \begin_inset VSpace bigskip
24835 The following preamble command changes the footnote numbering style to small
24839 \begin_layout Standard
24851 \begin_layout Standard
24855 \begin_layout Plain Layout
24868 This is a footnote with roman numbering:
24872 \begin_layout Plain Layout
24873 This is an example footnote with roman numbering.
24881 \begin_layout Standard
24882 To change the numbering style to capital roman numerals replace in the command
24897 \begin_inset Quotes eld
24901 \begin_inset Quotes erd
24904 footnotes with capital or small Latin letters use
24918 \begin_inset Quotes eld
24922 \begin_inset Quotes erd
24925 footnotes with symbols use
24934 \begin_layout Standard
24935 \begin_inset Note Greyedout
24938 \begin_layout Plain Layout
24943 You can only number 26 footnotes with Latin letters, because this numbering
24944 is limited to single letters.
24950 \begin_inset Newline newline
24954 \begin_inset Note Greyedout
24957 \begin_layout Plain Layout
24962 You can only number 9 footnotes with symbols.
24970 \begin_layout Standard
24971 To return to the default numbering style when you changed to another one,
24984 in the command above.
24988 \begin_layout Plain Layout
25004 \begin_layout Standard
25005 \begin_inset VSpace bigskip
25011 \begin_layout Standard
25012 If you want to have footnotes numbered in the scheme
25013 \begin_inset Quotes eld
25017 \begin_inset Quotes erd
25020 , add the following command to your document preamble:
25023 \begin_layout Standard
25028 numberwithin{footnote}{chapter}
25031 \begin_layout Standard
25032 To be able to use the command
25041 \begin_inset space ~
25046 in the document settings the option
25049 \begin_inset space ~
25053 \begin_inset space ~
25057 \begin_inset space ~
25065 \begin_layout Standard
25069 \begin_layout Plain Layout
25073 numberwithin{footnote}{chapter}
25078 This is another example footnote:
25084 \begin_layout Plain Layout
25085 This is a footnote numbered in the scheme
25086 \begin_inset Quotes eld
25090 \begin_inset Quotes erd
25104 \begin_layout Plain Layout
25120 \begin_layout Standard
25121 \begin_inset Note Greyedout
25124 \begin_layout Plain Layout
25135 always prints out the footnote number as arabic number; previous redefinitions
25136 to get non-arabic numbers are overwritten.
25144 \begin_layout Standard
25145 So to get for example the scheme
25146 \begin_inset Quotes eld
25152 \begin_inset Quotes erd
25155 , use this command instead of
25164 \begin_layout Standard
25178 \begin_layout Subsection
25183 \begin_layout Plain Layout
25184 Footnotes ! Placement
25192 \begin_layout Standard
25193 If you have several footnotes in one page, they appear without vertical
25194 space between them at the bottom of the page.
25195 To make them better readable you can e.
25196 \begin_inset space \thinspace{}
25200 \begin_inset space \space{}
25204 \begin_inset space \thinspace{}
25207 mm space with the following preamble command:
25210 \begin_layout Standard
25220 \begin_inset Newline newline
25234 \begin_layout Standard
25235 \begin_inset VSpace bigskip
25238 In a two-column document the footnotes appear at the bottom of every column,
25240 \begin_inset space ~
25244 \begin_inset CommandInset ref
25246 reference "fig:Standard-footnote-placement"
25251 If the footnotes should only appear at the bottom of the right column,
25253 \begin_inset space ~
25257 \begin_inset CommandInset ref
25259 reference "fig:Footnote-placement-in"
25263 , use the LaTeX-package
25271 \begin_layout Plain Layout
25272 LaTeX-packages ! ftnright
25277 with this command in the document preamble:
25280 \begin_layout Standard
25285 usepackage{ftnright}
25288 \begin_layout Standard
25289 \begin_inset Float figure
25295 \begin_layout Plain Layout
25299 \begin_layout Plain Layout
25309 \begin_inset Graphics
25310 filename clipart/without_fntright.pdf
25312 scaleBeforeRotation
25320 \begin_layout Plain Layout
25330 \begin_layout Plain Layout
25331 \begin_inset Caption
25333 \begin_layout Plain Layout
25334 \begin_inset CommandInset label
25336 name "fig:Standard-footnote-placement"
25340 Standard footnote placement in two-column documents.
25353 \begin_layout Standard
25354 \begin_inset Float figure
25360 \begin_layout Plain Layout
25364 \begin_layout Plain Layout
25374 \begin_inset Graphics
25375 filename clipart/with_fntright.pdf
25377 scaleBeforeRotation
25385 \begin_layout Plain Layout
25395 \begin_layout Plain Layout
25396 \begin_inset Caption
25398 \begin_layout Plain Layout
25399 \begin_inset CommandInset label
25401 name "fig:Footnote-placement-in"
25405 Footnote placement in two-column documents when the LaTeX-package
25422 \begin_layout Standard
25423 \begin_inset VSpace bigskip
25426 In some scientific literature it is usual to collect the footnotes and print
25427 them in a separate paragraph at the the end of a section, like in Figure
25428 \begin_inset space ~
25432 \begin_inset CommandInset ref
25434 reference "fig:Endnotes"
25439 They are then so called
25440 \begin_inset Quotes eld
25444 \begin_inset Quotes erd
25451 \begin_layout Plain Layout
25457 To use endnotes instead of footnotes in your document, load in the menu
25460 Document\SpecialChar \menuseparator
25461 Settings\SpecialChar \menuseparator
25467 \begin_inset space ~
25471 \begin_inset space ~
25477 To insert the collected footnotes, insert the command
25480 \begin_layout Standard
25488 \begin_layout Standard
25489 in TeX-Code at the the end of a section or chapter.
25492 \begin_layout Standard
25493 \begin_inset Float figure
25498 \begin_layout Plain Layout
25503 \begin_layout Plain Layout
25513 \begin_inset Graphics
25514 filename clipart/endnotes.pdf
25515 scaleBeforeRotation
25523 \begin_layout Plain Layout
25533 \begin_layout Plain Layout
25534 \begin_inset Caption
25536 \begin_layout Plain Layout
25537 \begin_inset CommandInset label
25539 name "fig:Endnotes"
25543 Endnotes – footnotes are printed in a separate paragraph at the end of sections
25557 \begin_layout Standard
25558 \begin_inset VSpace medskip
25561 The paragraph heading for the endnotes isn't automatically translated into
25562 the document language, this must be done manually.
25563 The following preamble command translate the default English name
25564 \begin_inset Quotes eld
25568 \begin_inset Quotes erd
25571 to the German translation
25572 \begin_inset Quotes eld
25576 \begin_inset Quotes erd
25582 \begin_layout Standard
25589 notesname}{Anmerkungen}
25592 \begin_layout Standard
25593 \begin_inset VSpace medskip
25596 The numbering of endnotes can be changed like the footnote numbering as
25597 described in section
25598 \begin_inset space ~
25602 \begin_inset CommandInset ref
25604 reference "sub:Footnote-Numbering"
25608 ; just replace the command
25621 To reset the endnote number use the command
25627 as described in section
25628 \begin_inset space ~
25632 \begin_inset CommandInset ref
25634 reference "sub:Footnote-Numbering"
25638 and replace the command parameter
25649 \begin_layout Standard
25650 To create only a mark for an endnote, use the command
25654 endnotemark[number]
25656 similar to the command
25662 , described in section
25663 \begin_inset space ~
25667 \begin_inset CommandInset ref
25669 reference "sec:Footnotes"
25676 \begin_layout Standard
25677 \begin_inset VSpace bigskip
25680 Footnotes can also be placed in the page margin and the footnote text alignment
25681 can be changed, see the LaTeX-package
25689 \begin_layout Plain Layout
25690 LaTeX-packages ! footmisc
25696 \begin_inset CommandInset citation
25702 for more information about this.
25705 \begin_layout Standard
25706 For various further footnote formatting issues have a look at LaTeX-books,
25708 \begin_inset CommandInset citation
25710 key "latexcompanion,latexguide,latexbook"
25717 \begin_layout Section
25722 \begin_layout Plain Layout
25723 Notes ! Margin Notes
25731 \begin_layout Standard
25732 Margin notes look and behave in LyX like footnotes.
25733 They are inserted via the menu
25735 Insert\SpecialChar \menuseparator
25737 \begin_inset space ~
25742 or the toolbar button
25743 \begin_inset Graphics
25744 filename ../images/marginalnote-insert.png
25746 scaleBeforeRotation
25761 \begin_inset Quotes eld
25765 \begin_inset Quotes erd
25768 appears where you can enter the text of the margin note.
25771 \begin_layout Standard
25772 At the side is an example margin note.
25777 \begin_inset Marginal
25780 \begin_layout Plain Layout
25781 This is a margin note.
25789 \begin_layout Standard
25790 Margin notes appear at the right side in single-sided documents.
25791 In double-sided documents they appear in the outer margin – left on even
25792 pages, right on odd pages.
25793 The text of margin notes is aligned opposite to the outer margin – right-aligne
25794 d when the note appears in the left margin.
25795 The first line of the margin note is placed at the position of the text
25796 line where it is inserted in the document.
25799 \begin_layout Standard
25800 \begin_inset VSpace bigskip
25803 To place the margin note in the inner margin, add the command
25806 \begin_layout Standard
25814 \begin_layout Standard
25815 in TeX-Code before a margin note.
25816 The new placement is valid for all following margin notes.
25821 \begin_layout Plain Layout
25831 \begin_inset Marginal
25834 \begin_layout Plain Layout
25835 This is a margin note in the inner margin.
25843 \begin_inset Newline newline
25849 \begin_inset Note Greyedout
25852 \begin_layout Plain Layout
25857 There is often not enough space in the inner margin so that the notes are
25858 not correctly displayed in the output.
25866 \begin_layout Standard
25867 To return to the default placement insert the command
25870 \begin_layout Standard
25878 \begin_layout Standard
25883 \begin_layout Plain Layout
25893 \begin_inset Note Greyedout
25896 \begin_layout Plain Layout
25901 The command is ignored when it is within a paragraph where also the command
25916 \begin_layout Standard
25917 \begin_inset VSpace bigskip
25924 \begin_inset Marginal
25927 \begin_layout Plain Layout
25928 AVeryLongMarginParWord that isn't hyphenated.
25936 Similar to the case described in section
25937 \begin_inset space ~
25941 \begin_inset CommandInset ref
25943 reference "sub:Multiple-Lines-in"
25947 , long words cannot be hyphenated when they are the first word in a margin
25949 To avoid this, insert 0
25950 \begin_inset space \thinspace{}
25953 pt horizontal space before the word
25958 \begin_inset Marginal
25961 \begin_layout Plain Layout
25962 \begin_inset space \hspace*{}
25966 AVeryLongMarginParWord that is hyphenated.
25974 \begin_layout Standard
25975 \begin_inset VSpace bigskip
25981 \begin_layout Standard
25982 \begin_inset Note Greyedout
25985 \begin_layout Plain Layout
25990 Margin notes can normally not be used inside tables, floats, and footnotes.
25998 \begin_layout Standard
25999 \begin_inset VSpace bigskip
26005 \begin_layout Standard
26009 \begin_layout Plain Layout
26019 \begin_inset Note Note
26022 \begin_layout Plain Layout
26023 The following section will only be displayed when the LaTeX-package
26035 \begin_layout Standard
26036 This restriction can be evaded by using the LaTeX-package
26044 \begin_layout Plain Layout
26045 LaTeX-packages ! marginnote
26051 By adding these two lines to your document preamble, the command used by
26052 LyX for margin notes is redefined to use the command provided by the
26059 \begin_layout Standard
26064 usepackage{marginnote}
26065 \begin_inset Newline newline
26077 \begin_layout Standard
26078 This is also used in this document because
26082 has another useful feature: You can set a vertical offset for the note.
26083 This is often needed when too many margin notes are too close together
26084 or for a better page layout.
26085 The offset is set in LyX as TeX-Code directly behind the margin note in
26089 \begin_layout Standard
26095 \begin_layout Standard
26096 where the offset is a length with one of the units listed in Table
26097 \begin_inset space ~
26101 \begin_inset CommandInset ref
26103 reference "tab:Units"
26108 A negative value shifts the note up, a positive value shifts it down.
26112 For example the margin note beside this text line is shifted up 1.5
26113 \begin_inset space \thinspace{}
26116 cm with the TeX-Code-command
26117 \begin_inset Quotes eld
26127 \begin_inset Quotes erd
26131 \begin_inset Marginal
26134 \begin_layout Plain Layout
26135 This margin note is shifted up 1.5
26136 \begin_inset space \thinspace{}
26139 cm from its original position.
26151 \begin_layout Plain Layout
26161 \begin_layout Standard
26162 \begin_inset VSpace medskip
26169 you can also change the alignment of the text in the margin note.
26170 For example the commands
26173 \begin_layout Standard
26180 raggedleftmarginnote}{
26183 \begin_inset Newline newline
26190 raggedrightmarginnote}{
26195 \begin_layout Standard
26196 set the alignment to centered.
26201 raggedleftmarginnote
26203 denotes margin notes that appear at the left side.
26210 \begin_layout Plain Layout
26216 raggedleftmarginnote}{
26221 \begin_layout Plain Layout
26227 raggedrightmarginnote}{
26235 \begin_inset Marginal
26238 \begin_layout Plain Layout
26239 The text of this margin note is centered.
26250 \begin_layout Standard
26257 raggedleftmarginnote}{
26260 \begin_inset Newline newline
26267 raggedrightmarginnote}{
26276 \begin_layout Plain Layout
26282 raggedleftmarginnote}{
26287 \begin_layout Plain Layout
26293 raggedrightmarginnote}{
26303 \begin_layout Standard
26304 \begin_inset VSpace medskip
26307 For the other features of
26311 we refer to its documentation
26312 \begin_inset CommandInset citation
26321 \begin_layout Standard
26322 \begin_inset VSpace bigskip
26325 You can adjust the layout of margin notes by changing its definition.
26326 To create for example a header for all margin notes with the underlined,
26327 sans-serif, and bold header text
26328 \begin_inset Quotes eld
26340 \begin_inset Quotes erd
26343 , add this to your document preamble:
26346 \begin_layout Standard
26356 \begin_inset Newline newline
26366 \begin_inset Newline newline
26373 \begin_layout Plain Layout
26390 underbar{Attention!}}}%
26391 \begin_inset Newline newline
26398 \begin_layout Plain Layout
26416 \begin_layout Standard
26423 \begin_layout Plain Layout
26434 \begin_layout Plain Layout
26445 \begin_layout Plain Layout
26453 underbar{Attention!}}}%
26456 \begin_layout Plain Layout
26470 \begin_inset Marginal
26473 \begin_layout Plain Layout
26474 This is a margin note with a defined heading.
26486 \begin_layout Plain Layout
26500 \begin_layout Plain Layout
26517 \begin_inset Note Note
26520 \begin_layout Plain Layout
26521 The margin note format is changed only for this example.
26529 \begin_layout Standard
26533 \begin_layout Plain Layout
26543 \begin_inset Note Note
26546 \begin_layout Plain Layout
26547 The following will be displayed when the LaTeX-package
26559 \begin_layout Standard
26560 You need to install the LaTeX-package
26564 to see the following part of this section in the output.
26567 \begin_layout Standard
26571 \begin_layout Plain Layout
26583 \begin_layout Chapter
26587 \begin_layout Section
26592 \begin_layout Plain Layout
26593 Boxes ! Introduction
26601 \begin_layout Standard
26602 Boxes are used to format a block of text.
26603 Boxes can be used to write documents with multiple languages, see section
26604 \begin_inset space ~
26608 \begin_inset CommandInset ref
26610 reference "sec:Minipages"
26614 , to frame texts, see section
26615 \begin_inset space ~
26619 \begin_inset CommandInset ref
26621 reference "sec:Decoration"
26625 , to prevent words to be hyphenated, see section
26626 \begin_inset space ~
26630 \begin_inset CommandInset ref
26632 reference "sec:Prevent-Hyphenation"
26636 , to align text, see section
26637 \begin_inset space ~
26641 \begin_inset CommandInset ref
26643 reference "sub:Vertical-Alignment"
26647 , or to set the background color of texts, see section
26648 \begin_inset space ~
26652 \begin_inset CommandInset ref
26654 reference "sec:Colored-Boxes"
26661 \begin_layout Standard
26662 Boxes can be inserted with the menu
26664 Insert\SpecialChar \menuseparator
26667 or the toolbar button
26668 \begin_inset Graphics
26669 filename ../images/box-insert.png
26671 scaleBeforeRotation
26676 A grey box with the label
26681 \begin_inset Graphics
26682 filename clipart/BoxInsetDefaultQt4.png
26684 scaleBeforeRotation
26689 The box type can be specified by right-clicking on the box.
26690 The appearing box dialog offers the
26693 \begin_inset space ~
26711 is the default for new boxes and is explained in section
26712 \begin_inset space ~
26716 \begin_inset CommandInset ref
26718 reference "sec:Minipages"
26726 is described in section
26727 \begin_inset space ~
26731 \begin_inset CommandInset ref
26733 reference "sec:Parboxes"
26740 \begin_layout Standard
26741 Boxes are not numbered and can therefore not be referenced like floats or
26745 \begin_layout Standard
26746 \begin_inset Note Greyedout
26749 \begin_layout Plain Layout
26754 Boxes must not be the item in an
26770 \begin_layout Standard
26771 \begin_inset Note Greyedout
26774 \begin_layout Plain Layout
26779 For an unknown reason you can only set the
26782 \begin_inset space ~
26791 when you use a framed box.
26795 \begin_inset space ~
26800 type and without frames are explained in section
26801 \begin_inset space ~
26805 \begin_inset CommandInset ref
26807 reference "sec:Prevent-Hyphenation"
26819 \begin_layout Section
26821 \begin_inset CommandInset label
26823 name "sec:Box-Dialog"
26831 \begin_layout Plain Layout
26840 \begin_layout Subsection
26845 \begin_layout Plain Layout
26854 \begin_layout Standard
26855 In the box dialog you can adjust the box geometry in the fields
26864 The available units for the geometry are explained in Table
26865 \begin_inset space ~
26869 \begin_inset CommandInset ref
26871 reference "tab:Units"
26880 offers the following additional sizes:
26883 \begin_layout Description
26884 Depth This is the plain text
26885 \begin_inset Quotes eld
26889 \begin_inset Quotes erd
26893 It ignores the total depth when there are multiple text lines in the box:
26894 \begin_inset Newline newline
26898 \begin_inset Newline newline
26902 \begin_inset Newline newline
26906 \begin_inset Box Boxed
26915 height_special "depth"
26918 \begin_layout Plain Layout
26920 Box height set to 1
26921 \begin_inset space \thinspace{}
26930 \begin_inset Newline newline
26934 \begin_inset Newline newline
26940 \begin_layout Description
26941 Height This is the height of the text that is inside the box.
26943 \begin_inset space \thinspace{}
26947 \begin_inset space \space{}
26950 2 for this size will set the box height to 2
26951 \begin_inset space ~
26954 times the text height:
26955 \begin_inset Box Boxed
26964 height_special "height"
26967 \begin_layout Plain Layout
26969 Box height set to 2
26970 \begin_inset space \thinspace{}
26981 \begin_layout Description
26983 \begin_inset space ~
26986 Height This is the Height
26987 \begin_inset space \thinspace{}
26991 \begin_inset space \thinspace{}
26995 \begin_inset Box Boxed
27004 height_special "totalheight"
27007 \begin_layout Plain Layout
27009 Box height set to 1
27010 \begin_inset space \thinspace{}
27014 \begin_inset space ~
27025 \begin_layout Description
27026 Width This sets the width of the box as height:
27027 \begin_inset Box Boxed
27036 height_special "width"
27039 \begin_layout Plain Layout
27041 Box height set to 1
27042 \begin_inset space \thinspace{}
27053 \begin_layout Subsection
27058 \begin_layout Plain Layout
27067 \begin_layout Standard
27068 When you have chosen an
27071 \begin_inset space ~
27076 , the vertical box alignment can be:
27079 \begin_layout Description
27080 Top This is an example text line.
27082 \begin_inset Box Boxed
27091 height_special "totalheight"
27094 \begin_layout Plain Layout
27096 This box is top-aligned.
27101 This is an example text line.
27104 \begin_layout Description
27105 Middle This is an example text line.
27107 \begin_inset Box Boxed
27116 height_special "totalheight"
27119 \begin_layout Plain Layout
27121 This box is middle-aligned.
27126 This is an example text line.
27129 \begin_layout Description
27130 Bottom This is an example text line.
27132 \begin_inset Box Boxed
27141 height_special "totalheight"
27144 \begin_layout Plain Layout
27146 This box is bottom-aligned.
27151 This is an example text line.
27154 \begin_layout Standard
27155 \begin_inset Note Greyedout
27158 \begin_layout Plain Layout
27163 The vertical box alignment can be lost in the output when you have two
27164 boxes in a line and one has e.
27165 \begin_inset space \thinspace{}
27169 \begin_inset space \space{}
27172 a shadow and the other one not.
27180 \begin_layout Standard
27181 The horizontal box alignment can be set via LyX's paragraph dialog when
27182 you set the box into its own paragraph.
27185 \begin_layout Standard
27186 \begin_inset VSpace bigskip
27189 When you have chosen an
27192 \begin_inset space ~
27197 , the box content can be aligned vertically to:
27200 \begin_layout Description
27201 top This is an example text line.
27203 \begin_inset Box Boxed
27212 height_special "totalheight"
27215 \begin_layout Plain Layout
27217 This box text is top-aligned.
27222 This is an example text line.
27225 \begin_layout Description
27226 middle This is an example text line.
27228 \begin_inset Box Boxed
27237 height_special "totalheight"
27240 \begin_layout Plain Layout
27242 This box text is middle-aligned.
27247 This is an example text line.
27250 \begin_layout Description
27251 bottom This is an example text line.
27253 \begin_inset Box Boxed
27262 height_special "totalheight"
27265 \begin_layout Plain Layout
27267 This box text is bottom-aligned.
27272 This is an example text line.
27275 \begin_layout Description
27276 stretch This is an example text line.
27278 \begin_inset Box Boxed
27287 height_special "totalheight"
27290 \begin_layout Plain Layout
27295 \begin_layout Plain Layout
27300 \begin_layout Plain Layout
27307 This is an example text line.
27310 \begin_layout Standard
27311 To stretch the box content, it must consist of more than one paragraph.
27312 In the example above every text line is in an own paragraph.
27315 \begin_layout Standard
27316 \begin_inset VSpace bigskip
27319 To align the box content horizontally you can use LyX's paragraph dialog
27320 when you have chosen an
27323 \begin_inset space ~
27331 \begin_layout Standard
27333 \begin_inset Box Boxed
27342 height_special "totalheight"
27345 \begin_layout Plain Layout
27350 \begin_layout Plain Layout
27355 \begin_layout Plain Layout
27365 \begin_layout Standard
27366 If you have not set an
27369 \begin_inset space ~
27374 , you can align the box content horizontally in the box dialog.
27377 \begin_layout Standard
27379 \begin_inset Box Boxed
27388 height_special "totalheight"
27391 \begin_layout Plain Layout
27393 This box text is horizontally stretched.
27401 \begin_layout Subsection
27403 \begin_inset CommandInset label
27405 name "sec:Decoration"
27413 \begin_layout Plain Layout
27422 \begin_layout Standard
27423 The type of the box can be specified in the box dialog in the drop-down
27429 The following types are possible:
27432 \begin_layout Description
27434 \begin_inset space ~
27438 \begin_inset space ~
27441 frame This draws a rectangular frame around the box.
27442 The frame line thickness has the size of
27450 \begin_inset Box Boxed
27459 height_special "totalheight"
27462 \begin_layout Plain Layout
27472 \begin_layout Description
27474 \begin_inset space ~
27478 \begin_inset space ~
27481 break When you use the decoration
27483 simple rectangular frame
27485 and no inner box, you can allow page breaks within a box.
27486 Note that then, in contrary to other framed boxes, the frame always uses
27487 the whole column width, the box is set as its own paragraph, and
27499 have no effect on this box type.
27500 The frame line thickness has the size of
27508 \begin_inset Box Framed
27517 height_special "totalheight"
27520 \begin_layout Plain Layout
27521 Allow page break box
27529 \begin_layout Description
27531 \begin_inset space ~
27535 \begin_inset space ~
27538 thin This draws an oval frame around the box.
27539 The frame line thickness has the size 0.4
27540 \begin_inset space \thinspace{}
27545 \begin_inset Box ovalbox
27554 height_special "totalheight"
27557 \begin_layout Plain Layout
27567 \begin_layout Description
27569 \begin_inset space ~
27573 \begin_inset space ~
27576 thick This draws an oval frame around the box.
27577 The frame line thickness has the size 0.8
27578 \begin_inset space \thinspace{}
27583 \begin_inset Box Ovalbox
27592 height_special "totalheight"
27595 \begin_layout Plain Layout
27605 \begin_layout Description
27607 \begin_inset space ~
27610 shadow This draws a rectangular frame with a shadow around the box.
27611 The frame line thickness has the size of
27617 , the shadow has a width of 4
27618 \begin_inset space \thinspace{}
27623 \begin_inset Box Shadowbox
27632 height_special "totalheight"
27635 \begin_layout Plain Layout
27645 \begin_layout Description
27647 \begin_inset space ~
27650 background This draws a box with red background color.
27651 In contrary to colored boxes
27655 \begin_layout Plain Layout
27657 \begin_inset space \thinspace{}
27661 \begin_inset CommandInset ref
27663 reference "sec:Colored-Boxes"
27672 , it always uses the whole column width and the box is set as its own paragraph.
27674 \begin_inset Box Shaded
27683 height_special "totalheight"
27686 \begin_layout Plain Layout
27687 Shaded background box
27695 \begin_layout Description
27697 \begin_inset space ~
27701 \begin_inset space ~
27704 frame This draws a double-line rectangular frame around the box.
27705 The line thickness of the inner frame is 0.75
27706 \begin_inset space \thinspace{}
27715 , the thickness of the outer frame is 1.5
27716 \begin_inset space \thinspace{}
27726 The distance between the lines is 1.5
27727 \begin_inset space \thinspace{}
27737 \begin_inset space \thinspace{}
27741 \begin_inset space \thinspace{}
27745 \begin_inset space \thinspace{}
27750 \begin_inset Box Doublebox
27759 height_special "totalheight"
27762 \begin_layout Plain Layout
27764 Double rectangular box
27772 \begin_layout Standard
27773 \begin_inset VSpace bigskip
27776 LyX's box label will reflect the different frame types.
27777 To be able to use all types, the LaTeX-package
27785 \begin_layout Plain Layout
27786 LaTeX-packages ! fancybox
27794 \begin_layout Section
27799 \begin_layout Plain Layout
27800 Boxes ! Customization
27808 \begin_layout Standard
27809 The default value for the size
27816 \begin_inset space \thinspace{}
27820 It can be changed with the following command in TeX-Code to e.
27821 \begin_inset space \thinspace{}
27825 \begin_inset space \space{}
27829 \begin_inset space \thinspace{}
27835 \begin_layout Standard
27845 \begin_layout Standard
27849 \begin_layout Plain Layout
27861 \begin_inset Box Boxed
27870 height_special "totalheight"
27873 \begin_layout Plain Layout
27875 Rectangular box with
27882 \begin_inset space \thinspace{}
27886 \begin_inset space \thinspace{}
27890 \begin_inset space \thinspace{}
27902 \begin_layout Plain Layout
27916 \begin_layout Standard
27917 \begin_inset VSpace bigskip
27920 The space between the frame and the box content is for all frame styles
27922 \begin_inset space \thinspace{}
27926 You can change it by setting the length
27933 For example the command
27936 \begin_layout Standard
27946 \begin_layout Standard
27947 sets the value to 10
27948 \begin_inset space \thinspace{}
27951 pt, like for the following box:
27954 \begin_layout Standard
27958 \begin_layout Plain Layout
27970 \begin_inset Box Boxed
27979 height_special "totalheight"
27982 \begin_layout Plain Layout
27984 Rectangular box with
27991 \begin_inset space \thinspace{}
27995 \begin_inset space \thinspace{}
27999 \begin_inset space \thinspace{}
28011 \begin_layout Plain Layout
28025 \begin_layout Standard
28026 \begin_inset VSpace bigskip
28029 The diameter of the round corners of the oval boxes can be set with the
28040 \begin_layout Standard
28048 \begin_layout Standard
28049 sets the diameter to 1
28050 \begin_inset space \thinspace{}
28057 \begin_layout Standard
28065 \begin_layout Standard
28066 sets the diameter to
28069 \begin_inset space \thinspace{}
28073 \begin_inset space \thinspace{}
28076 minimum(width and heigth of box)
28088 \begin_layout Standard
28092 \begin_layout Plain Layout
28102 \begin_inset Box Ovalbox
28111 height_special "totalheight"
28114 \begin_layout Plain Layout
28123 \begin_inset space \thinspace{}
28127 \begin_inset space \thinspace{}
28131 \begin_inset space \thinspace{}
28143 \begin_layout Plain Layout
28155 \begin_layout Standard
28156 \begin_inset VSpace bigskip
28159 The size of the shadow can be adjusted by changing the length
28167 \begin_inset space \thinspace{}
28170 pt for the following box by this command:
28173 \begin_layout Standard
28183 \begin_layout Standard
28187 \begin_layout Plain Layout
28199 \begin_inset Box Shadowbox
28208 height_special "totalheight"
28211 \begin_layout Plain Layout
28220 \begin_inset space \thinspace{}
28224 \begin_inset space \thinspace{}
28228 \begin_inset space \thinspace{}
28240 \begin_layout Plain Layout
28254 \begin_layout Standard
28255 \begin_inset VSpace bigskip
28261 \begin_layout Standard
28262 The default value for the size
28269 \begin_inset space \thinspace{}
28273 The default space between the note content and the frame is 9
28274 \begin_inset space \thinspace{}
28277 pt and can be changed with the value of
28284 For example the frame appearance of the following
28288 is set with the TeX-Code commands
28291 \begin_layout Standard
28299 \begin_inset Newline newline
28309 \begin_layout Standard
28313 \begin_layout Plain Layout
28322 \begin_layout Plain Layout
28334 \begin_inset Box Framed
28343 height_special "totalheight"
28346 \begin_layout Plain Layout
28360 \begin_layout Plain Layout
28369 \begin_layout Plain Layout
28383 \begin_layout Standard
28384 \begin_inset VSpace bigskip
28390 \begin_layout Standard
28395 boxes the default space between the box content and the box border is 3
28396 \begin_inset space \thinspace{}
28399 pt and can be changed with the value of
28406 The default background color red can either be changed locally with the
28411 definecolor{shadecolor}
28413 or globally with the menu
28415 Tools\SpecialChar \menuseparator
28416 Preferences\SpecialChar \menuseparator
28417 Colors\SpecialChar \menuseparator
28419 \begin_inset space ~
28431 command is explained in section
28432 \begin_inset space ~
28436 \begin_inset CommandInset ref
28438 reference "sec:Colored-Tables"
28446 \begin_layout Plain Layout
28453 requires the LaTeX-package
28457 in the preamble, see section
28458 \begin_inset space ~
28462 \begin_inset CommandInset ref
28464 reference "sec:Colored-Boxes"
28473 For example the appearance of the following shaded background box is set
28474 with the TeX-Code commands
28477 \begin_layout Standard
28487 \begin_inset Newline newline
28494 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28497 \begin_layout Standard
28501 \begin_layout Plain Layout
28510 \begin_layout Plain Layout
28514 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28520 \begin_inset Box Shaded
28529 height_special "totalheight"
28532 \begin_layout Plain Layout
28535 This is yellow text in a
28545 box with dark green background.
28554 \begin_layout Plain Layout
28563 \begin_layout Plain Layout
28567 definecolor{shadecolor}{rgb}{1,0,0}
28575 \begin_layout Standard
28576 \begin_inset VSpace bigskip
28579 Changed lengths and widths are valid for all boxes following the commands
28583 \begin_layout Section
28585 \begin_inset CommandInset label
28587 name "sec:Minipages"
28595 \begin_layout Plain Layout
28604 \begin_layout Standard
28605 Minipages are treated by LaTeX as pages within pages and can therefore for
28606 example have their own footnotes.
28609 \begin_layout Standard
28610 Minipages are useful when you write documents with different languages.
28613 \begin_layout Standard
28614 Below are two example minipages side by side.
28615 Their width is set to 45
28616 \begin_inset space \thinspace{}
28619 col% and they are separated by a horizontal fill, that was inserted via
28622 Insert\SpecialChar \menuseparator
28624 \begin_inset space ~
28627 Formatting\SpecialChar \menuseparator
28629 \begin_inset space ~
28635 \begin_inset Newpage newpage
28641 \begin_layout Standard
28642 \begin_inset Box Frameless
28651 height_special "totalheight"
28654 \begin_layout Plain Layout
28657 Dies ist ein deutscher Text.
28658 Dies ist ein deutscher Text.
28659 Dies ist ein deutscher Text.
28660 Dies ist ein deutscher Text.
28661 Dies ist ein deutscher Text.
28662 Dies ist ein deutscher Text.
28663 Dies ist ein deutscher Text.
28664 Dies ist ein deutscher Text.
28665 Dies ist ein deutscher Text.
28666 Dies ist ein deutscher Text.
28667 Dies ist ein deutscher Text.
28668 Dies ist ein deutscher Text.
28669 Dies ist ein deutscher Text
28673 \begin_layout Plain Layout
28676 Dies ist eine deutsche Fußnote.
28682 Dies ist ein deutscher Text.
28683 Dies ist ein deutscher Text.
28689 \begin_inset space \hfill{}
28693 \begin_inset Box Frameless
28702 height_special "totalheight"
28705 \begin_layout Plain Layout
28706 This is an English Text.
28707 This is an English Text.
28708 This is an English Text.
28709 This is an English Text.
28710 This is an English Text.
28711 This is an English Text.
28712 This is an English Text.
28713 This is an English Text.
28714 This is an English Text.
28715 This is an English Text.
28716 This is an English Text.
28717 This is an English Text.
28718 This is an English Text.
28719 This is an English Text.
28720 This is an English Text.
28721 This is an English Text.
28725 \begin_layout Plain Layout
28726 This is an English footnote.
28731 This is an English Text.
28740 \begin_layout Standard
28741 \begin_inset VSpace bigskip
28744 Another application for minipages are footnotes within tables.
28745 Due to a LaTeX restriction footnotes within tables doesn't appear at the
28746 bottom of the current page.
28747 But when you put the table with the footnote to a minipage, the footnote
28748 will appear at its bottom, numbered with Latin letters.
28749 The footnote number is reset to 1 in every minipage but not outside the
28753 \begin_layout Standard
28754 The footnote of this table doesn't appear:
28755 \begin_inset Tabular
28756 <lyxtabular version="3" rows="3" columns="4">
28758 <column alignment="center" valignment="top" width="0pt">
28759 <column alignment="center" valignment="top" width="0pt">
28760 <column alignment="center" valignment="top" width="0pt">
28761 <column alignment="center" valignment="top" width="0pt">
28763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28766 \begin_layout Plain Layout
28772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28775 \begin_layout Plain Layout
28781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28784 \begin_layout Plain Layout
28789 \begin_layout Plain Layout
28790 This is a footnote within a table.
28800 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28803 \begin_layout Plain Layout
28811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28814 \begin_layout Plain Layout
28820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28823 \begin_layout Plain Layout
28829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28832 \begin_layout Plain Layout
28838 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28841 \begin_layout Plain Layout
28849 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28852 \begin_layout Plain Layout
28858 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28861 \begin_layout Plain Layout
28867 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28870 \begin_layout Plain Layout
28876 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28879 \begin_layout Plain Layout
28893 \begin_layout Standard
28895 \begin_inset Box Frameless
28904 height_special "totalheight"
28907 \begin_layout Plain Layout
28909 \begin_inset Tabular
28910 <lyxtabular version="3" rows="3" columns="4">
28912 <column alignment="center" valignment="top" width="0pt">
28913 <column alignment="center" valignment="top" width="0pt">
28914 <column alignment="center" valignment="top" width="0pt">
28915 <column alignment="center" valignment="top" width="0pt">
28917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28920 \begin_layout Plain Layout
28926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28929 \begin_layout Plain Layout
28935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28938 \begin_layout Plain Layout
28943 \begin_layout Plain Layout
28944 This is a footnote within a table.
28954 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28957 \begin_layout Plain Layout
28965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28968 \begin_layout Plain Layout
28974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28977 \begin_layout Plain Layout
28983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28986 \begin_layout Plain Layout
28992 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28995 \begin_layout Plain Layout
29003 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29006 \begin_layout Plain Layout
29012 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29015 \begin_layout Plain Layout
29021 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29024 \begin_layout Plain Layout
29030 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29033 \begin_layout Plain Layout
29052 \begin_layout Standard
29053 \begin_inset VSpace bigskip
29056 The document-wide paragraph settings are ignored within minipages.
29057 That means that there will be no space between paragraphs in minipages
29058 although you set it to e.
29059 \begin_inset space \thinspace{}
29063 \begin_inset space \space{}
29070 in the document settings.
29073 \begin_layout Standard
29074 Minipages can also be used to set a background color for text parts, see
29076 \begin_inset space ~
29080 \begin_inset CommandInset ref
29082 reference "sub:Color-for-Paragraphs"
29089 \begin_layout Standard
29090 \begin_inset Note Greyedout
29093 \begin_layout Plain Layout
29098 You cannot have floats or margin notes inside minipages but minipages can
29099 be used inside tables, floats, and other boxes.
29107 \begin_layout Section
29109 \begin_inset CommandInset label
29111 name "sec:Parboxes"
29119 \begin_layout Plain Layout
29128 \begin_layout Standard
29129 Parboxes are very similar to minipages with the difference that they cannot
29131 The main difference to minipages is that minipages are in contrary to parboxes
29132 no real boxes but LaTeX-environments.
29135 \begin_layout Standard
29137 \begin_inset Box Frameless
29146 height_special "totalheight"
29149 \begin_layout Plain Layout
29150 This a text within a parbox.
29151 This a text within a parbox.
29154 \begin_layout Plain Layout
29155 This footnote won't appear:
29159 \begin_layout Plain Layout
29160 This footnote is inside a parbox and will therefore not appear.
29173 \begin_layout Section
29174 Boxes for Words and Characters
29178 \begin_layout Plain Layout
29179 Boxes ! for Characters
29187 \begin_layout Subsection
29188 Prevent Hyphenation
29189 \begin_inset CommandInset label
29191 name "sec:Prevent-Hyphenation"
29199 \begin_layout Plain Layout
29200 Boxes ! to Prevent Hyphenation
29208 \begin_layout Standard
29209 You can use a special kind of boxes to prevent words or text to be hyphenated.
29210 \begin_inset Newline newline
29213 Here is an example text:
29216 \begin_layout Standard
29217 This line is an example to show how you can prevent the hyphenation of
29218 \begin_inset Quotes eld
29222 \begin_inset Quotes erd
29228 \begin_layout Standard
29229 To prevent the hyphenation of the word
29230 \begin_inset Quotes eld
29234 \begin_inset Quotes erd
29240 \begin_layout Standard
29248 \begin_layout Standard
29249 in TeX-Code before the word.
29250 Behind the word insert a closing brace
29251 \begin_inset Quotes eld
29259 \begin_inset Quotes erd
29265 \begin_layout Standard
29266 This is the result:
29269 \begin_layout Standard
29270 This line is an example to show how you can prevent the hyphenation of
29274 \begin_layout Plain Layout
29284 \begin_inset Quotes eld
29288 \begin_inset Quotes erd
29295 \begin_layout Plain Layout
29305 \begin_layout Standard
29306 You can alternatively set the command
29307 \begin_inset Quotes eld
29317 \begin_inset Quotes grd
29320 as TeX-Code directly before the word:
29323 \begin_layout Standard
29324 This line is an example to show how you can prevent the hyphenation of
29325 \begin_inset Quotes eld
29332 \begin_layout Plain Layout
29342 \begin_inset Quotes erd
29348 \begin_layout Standard
29349 Of course the word now protrudes over the side margin.
29350 To avoid this, add via the menu
29352 Insert\SpecialChar \menuseparator
29354 \begin_inset space ~
29357 Formatting\SpecialChar \menuseparator
29359 \begin_inset space ~
29367 arg "newline-insert newline"
29370 ) a line break before the word:
29373 \begin_layout Standard
29374 This line is an example to show how you can prevent the hyphenation of
29375 \begin_inset Newline newline
29382 \begin_layout Plain Layout
29392 \begin_inset Quotes eld
29396 \begin_inset Quotes erd
29403 \begin_layout Plain Layout
29413 \begin_layout Subsection
29415 \begin_inset CommandInset label
29417 name "sub:Vertical-Alignment"
29425 \begin_layout Plain Layout
29426 Boxes ! for Vertical Alignment
29435 \begin_layout Plain Layout
29444 \begin_layout Standard
29445 With the help of the command
29451 you can align words, characters or other boxes vertically to the surrounding
29459 is used with the following scheme:
29462 \begin_layout Standard
29467 raisebox{lift}[height][depth]{box content}
29470 \begin_layout Standard
29471 The lift can be a positive value to raise the box or a negative value to
29475 \begin_layout Standard
29476 To align for example the word
29477 \begin_inset Quotes eld
29481 \begin_inset Quotes erd
29484 so that the bottom of the
29485 \begin_inset Quotes eld
29489 \begin_inset Quotes erd
29493 \begin_inset Quotes eld
29497 \begin_inset Quotes erd
29500 is at the baseline, insert the command
29503 \begin_layout Standard
29513 \begin_layout Standard
29514 in TeX-Code before the word.
29515 Behind the word insert a closing brace
29516 \begin_inset Quotes eld
29524 \begin_inset Quotes erd
29528 \begin_inset Newline newline
29531 This is the result:
29534 \begin_layout Standard
29535 This is a text line with the word
29539 \begin_layout Plain Layout
29551 \begin_inset Quotes eld
29555 \begin_inset Quotes erd
29562 \begin_layout Plain Layout
29572 \begin_layout Standard
29573 \begin_inset VSpace bigskip
29576 When you raise or lower characters in a line, the line distance will be
29580 \begin_layout Standard
29581 This is a text line with the word
29585 \begin_layout Plain Layout
29597 \begin_inset Quotes eld
29601 \begin_inset Quotes erd
29608 \begin_layout Plain Layout
29616 \begin_inset Newline newline
29619 This is a text line with the word
29623 \begin_layout Plain Layout
29633 \begin_inset Quotes eld
29637 \begin_inset Quotes erd
29644 \begin_layout Plain Layout
29654 \begin_layout Standard
29655 If you want to prevent this for a certain reason, set the box height to
29660 \begin_layout Standard
29670 \begin_layout Standard
29671 This is a text line with the word
29675 \begin_layout Plain Layout
29687 \begin_inset Quotes eld
29691 \begin_inset Quotes erd
29698 \begin_layout Plain Layout
29706 \begin_inset Newline newline
29709 This is a text line with the word
29713 \begin_layout Plain Layout
29717 raisebox{0.5cm}[0pt]{
29723 \begin_inset Quotes eld
29727 \begin_inset Quotes erd
29734 \begin_layout Plain Layout
29744 \begin_layout Section
29746 \begin_inset CommandInset label
29748 name "sec:Colored-Boxes"
29756 \begin_layout Plain Layout
29765 \begin_layout Subsection
29770 \begin_layout Plain Layout
29779 \begin_layout Standard
29780 To color the background of text the text must be put into a so called
29781 \begin_inset Quotes eld
29785 \begin_inset Quotes erd
29789 This requires that the LaTeX-package
29797 \begin_layout Plain Layout
29798 LaTeX-packages ! color
29803 is loaded in the document preamble with the command
29806 \begin_layout Standard
29811 @ifundefined{textcolor}
29812 \begin_inset Newline newline
29819 \begin_layout Plain Layout
29830 usepackage{color}}{}
29833 \begin_layout Standard
29838 will be loaded automatically by LyX when you color text
29842 \begin_layout Plain Layout
29843 To avoid that it is loaded twice the command
29857 \begin_layout Standard
29858 \begin_inset VSpace medskip
29861 Colorboxes are created with the command
29868 This will be used with the following scheme:
29871 \begin_layout Standard
29876 colorbox{color}{box content}
29879 \begin_layout Standard
29880 The box content can also be a box and colorboxes can also be within other
29884 \begin_layout Standard
29885 The following colors are predefined:
29886 \begin_inset Newline newline
29925 \begin_inset Newline newline
29928 You can also define your own color as described in section
29929 \begin_inset space ~
29933 \begin_inset CommandInset ref
29935 reference "sec:Colored-Tables"
29942 \begin_layout Standard
29944 \begin_inset space \thinspace{}
29948 \begin_inset space \space{}
29951 a red background for a word, insert the command
29954 \begin_layout Standard
29962 \begin_layout Standard
29963 before the word in TeX-Code.
29964 Behind the word insert a closing brace
29965 \begin_inset Quotes eld
29973 \begin_inset Quotes erd
29977 \begin_inset Newline newline
29980 This is the result:
29983 \begin_layout Standard
29984 This is a line where the word
29988 \begin_layout Plain Layout
29998 \begin_inset Quotes eld
30002 \begin_inset Quotes erd
30009 \begin_layout Plain Layout
30016 has a red background.
30019 \begin_layout Standard
30020 \begin_inset VSpace bigskip
30023 If you would have the box frame in a different color, you can use the command
30030 with the following scheme:
30033 \begin_layout Standard
30038 fcolorbox{frame color}{box color}{box content}
30041 \begin_layout Standard
30055 The frame thickness and the space between the frame and the box content
30056 can be adjusted with the lengths
30068 , respectively, as described in section
30069 \begin_inset space ~
30073 \begin_inset CommandInset ref
30075 reference "sec:Decoration"
30082 \begin_layout Standard
30083 For the following example the command
30086 \begin_layout Standard
30091 fcolorbox{cyan}{magenta}{
30094 \begin_layout Standard
30098 \begin_layout Standard
30099 Here is an example where the frame line thickness was set to 1
30100 \begin_inset space \thinspace{}
30104 \begin_inset Newline newline
30111 \begin_layout Plain Layout
30126 \begin_layout Plain Layout
30130 fcolorbox{cyan}{magenta}{
30135 This is text within a colored, framed box.
30139 \begin_layout Plain Layout
30149 \begin_layout Standard
30150 \begin_inset VSpace bigskip
30153 Of course you can also have colored text inside a colorbox:
30154 \begin_inset Newline newline
30161 \begin_layout Plain Layout
30165 fcolorbox{cyan}{magenta}{
30172 This is colored text within a colored, framed box.
30178 \begin_layout Plain Layout
30189 \begin_layout Plain Layout
30203 \begin_layout Standard
30206 \begin_inset VSpace medskip
30212 \begin_layout Standard
30213 \begin_inset Note Greyedout
30216 \begin_layout Plain Layout
30221 Text in colorboxes cannot have line breaks.
30222 To color multiple text lines or paragraphs, use a box inside a colorbox
30223 as described in the following.
30231 \begin_layout Subsection
30232 Color for Paragraphs
30233 \begin_inset CommandInset label
30235 name "sub:Color-for-Paragraphs"
30243 \begin_layout Plain Layout
30244 Color ! for Paragraphs
30252 \begin_layout Standard
30253 To set the background color for more than one text line, put the text into
30255 Before the minipage insert the
30264 \begin_layout Standard
30272 \begin_layout Standard
30274 Behind the minipage insert a closing brace
30275 \begin_inset Quotes eld
30283 \begin_inset Quotes erd
30289 \begin_layout Standard
30293 \begin_layout Plain Layout
30297 colorbox{lightgrey}{
30303 \begin_inset Box Frameless
30312 height_special "totalheight"
30315 \begin_layout Plain Layout
30316 This is text with background color.
30317 This is text with background color.
30320 \begin_layout Plain Layout
30321 \begin_inset VSpace defskip
30324 The text can have footnotes
30328 \begin_layout Plain Layout
30329 Another example footnote
30334 and can include tables and figures.
30337 \begin_layout Plain Layout
30339 \begin_inset Tabular
30340 <lyxtabular version="3" rows="3" columns="3">
30342 <column alignment="center" valignment="top" width="0">
30343 <column alignment="center" valignment="top" width="0">
30344 <column alignment="center" valignment="top" width="0">
30346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30349 \begin_layout Plain Layout
30355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30358 \begin_layout Plain Layout
30364 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30367 \begin_layout Plain Layout
30375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30378 \begin_layout Plain Layout
30384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30387 \begin_layout Plain Layout
30389 \begin_inset Quotes erd
30397 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30400 \begin_layout Plain Layout
30408 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30411 \begin_layout Plain Layout
30417 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30420 \begin_layout Plain Layout
30426 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30429 \begin_layout Plain Layout
30449 \begin_layout Plain Layout
30459 \begin_layout Section
30460 Rotated and Scaled Boxes
30463 \begin_layout Standard
30464 To use the the commands described in this section, the LaTeX-package
30472 \begin_layout Plain Layout
30473 LaTeX-packages ! graphicx
30478 needs to be loaded in the document preamble with the command
30481 \begin_layout Standard
30486 @ifundefined{rotatebox}
30487 \begin_inset Newline newline
30494 \begin_layout Plain Layout
30505 usepackage{graphicx}}{}
30508 \begin_layout Standard
30509 \begin_inset Note Greyedout
30512 \begin_layout Plain Layout
30517 Some DVI-viewers can't display rotated or scaled material.
30525 \begin_layout Standard
30526 \begin_inset Note Greyedout
30529 \begin_layout Plain Layout
30534 Floats mustn't be inside a rotated or scaled box.
30542 \begin_layout Subsection
30547 \begin_layout Plain Layout
30557 \begin_layout Plain Layout
30567 \begin_layout Plain Layout
30577 \begin_layout Plain Layout
30578 Table Customization ! Rotating
30586 \begin_layout Standard
30587 To rotate material, you can put it into a rotated box.
30588 Such a box is created using the command
30594 in TeX-Code with the following scheme:
30597 \begin_layout Standard
30602 rotatebox[rotation origin]{rotation angle}{box content}
30605 \begin_layout Standard
30606 The rotation origin is specified in the form
30611 The following positions are possible:
30631 (top), and also expedient combinations of the four base positions.
30636 means, that the rotation origin is at the top left corner of the box.
30637 When no rotation origin is specified, the position
30642 The rotation angle is a number that can be negative that specifies the
30644 The rotation direction is counterclockwise.
30647 \begin_layout Standard
30648 In the following example the command
30652 rotatebox[origin=c]{60}{
30654 was inserted as TeX-Code before the text
30655 \begin_inset Quotes eld
30659 \begin_inset Quotes erd
30662 ; after the text the box was closed by a closing brace
30669 \begin_layout Standard
30674 \begin_layout Plain Layout
30678 rotatebox[origin=c]{60}{
30687 \begin_layout Plain Layout
30697 \begin_layout Standard
30698 The box content can also be another box or an inline formula:
30701 \begin_layout Standard
30706 \begin_layout Plain Layout
30710 rotatebox[origin=r]{-60}{
30716 \begin_inset Box Doublebox
30725 height_special "totalheight"
30728 \begin_layout Plain Layout
30738 \begin_layout Plain Layout
30749 \begin_layout Plain Layout
30753 rotatebox[origin=lb]{60}{
30759 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30766 \begin_layout Plain Layout
30776 \begin_layout Standard
30777 or an image or table:
30780 \begin_layout Standard
30785 \begin_layout Plain Layout
30789 rotatebox[origin=lb]{90}{
30795 \begin_inset Graphics
30796 filename clipart/platypus.eps
30806 \begin_layout Plain Layout
30813 with a rotated image
30817 \begin_layout Plain Layout
30821 rotatebox[origin=l]{-90}{
30827 \begin_inset Tabular
30828 <lyxtabular version="3" rows="2" columns="2">
30830 <column alignment="center" valignment="top" width="0">
30831 <column alignment="center" valignment="top" width="0">
30833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30836 \begin_layout Plain Layout
30842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30845 \begin_layout Plain Layout
30853 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30856 \begin_layout Plain Layout
30862 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30865 \begin_layout Plain Layout
30880 \begin_layout Plain Layout
30890 \begin_layout Subsection
30895 \begin_layout Plain Layout
30905 \begin_layout Plain Layout
30915 \begin_layout Plain Layout
30925 \begin_layout Plain Layout
30926 Table Customization ! Scaling
30934 \begin_layout Standard
30935 To scale material the commands
30947 can be used as TeX-Code.
30950 \begin_layout Standard
30957 is used with the following scheme:
30960 \begin_layout Standard
30965 scalebox{horizontal}[vertical]{box content}
30968 \begin_layout Standard
30969 Horizontal and vertical are the corresponding scaling factors.
30970 If no vertical scaling factor is given, the horizontal factor will also
30971 be used as vertical one.
30974 \begin_layout Standard
30981 creates for example a double size
30985 \begin_layout Plain Layout
30998 \begin_layout Plain Layout
31005 , compared to the document text size.
31008 \begin_layout Standard
31013 scalebox{2}[1]{Hello}
31015 in contrary distorts the
31019 \begin_layout Plain Layout
31032 \begin_layout Plain Layout
31042 \begin_layout Standard
31043 If a the scaling factor is negative, the box content will be mirrored.
31044 Therefore the command
31048 scalebox{-1}[1]{Hello}
31050 can be used to create mirror writing:
31054 \begin_layout Plain Layout
31067 \begin_layout Plain Layout
31077 \begin_layout Standard
31082 scalebox{1}[-1]{Hello}
31088 \begin_layout Plain Layout
31101 \begin_layout Plain Layout
31111 \begin_layout Standard
31116 scalebox{-1}[1]{box content}
31118 there exists the command
31119 \begin_inset Newline newline
31126 reflectbox{box content}
31131 \begin_layout Standard
31132 \begin_inset VSpace bigskip
31141 is used to scale the box to a defined width and height.
31142 The command scheme is:
31145 \begin_layout Standard
31150 resizebox{width}{height}{box content}
31153 \begin_layout Standard
31154 Is one of the two command arguments given as exclamation mark
31158 , the size is set so that the aspect ratio of the box content is kept.
31161 \begin_layout Standard
31166 resizebox{2cm}{1cm}{Hello}
31172 \begin_layout Plain Layout
31176 resizebox{2cm}{1cm}{
31185 \begin_layout Plain Layout
31193 \begin_inset Newline newline
31200 resizebox{2cm}{!}{Hello}
31206 \begin_layout Plain Layout
31219 \begin_layout Plain Layout
31229 \begin_layout Standard
31230 \begin_inset VSpace bigskip
31234 \begin_inset Note Greyedout
31237 \begin_layout Plain Layout
31254 are set to zero, no LaTeX-errors occur when exporting the document but
31255 the exported files can not or only partly be displayed.
31263 \begin_layout Standard
31264 \begin_inset VSpace bigskip
31270 \begin_layout Standard
31271 The boxes can be combined in any order.
31273 \begin_inset space \thinspace{}
31277 \begin_inset space \space{}
31281 \begin_inset Newline newline
31288 rotatebox[origin=c]{-45}{
31292 reflectbox{Hello}}}
31293 \begin_inset Newline newline
31301 \begin_layout Standard
31306 \begin_layout Plain Layout
31310 rotatebox[origin=c]{-45}{
31323 \begin_layout Plain Layout
31333 \begin_layout Standard
31335 Images, tables, and inline formulas are allowed as box content:
31338 \begin_layout Standard
31343 \begin_layout Plain Layout
31347 rotatebox[origin=c]{-30}{
31357 \begin_inset Graphics
31358 filename clipart/platypus.eps
31368 \begin_layout Plain Layout
31379 \begin_layout Plain Layout
31383 rotatebox[origin=c]{-45}{
31393 \begin_inset Tabular
31394 <lyxtabular version="3" rows="2" columns="2">
31396 <column alignment="center" valignment="top" width="0">
31397 <column alignment="center" valignment="top" width="0">
31399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31402 \begin_layout Plain Layout
31408 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31411 \begin_layout Plain Layout
31419 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31422 \begin_layout Plain Layout
31428 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31431 \begin_layout Plain Layout
31446 \begin_layout Plain Layout
31457 \begin_layout Plain Layout
31461 rotatebox[origin=c]{-45}{
31471 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31478 \begin_layout Plain Layout
31488 \begin_layout Standard
31489 When the global formula style
31493 is used in the document
31497 \begin_layout Plain Layout
31499 \begin_inset Quotes eld
31503 \begin_inset Quotes erd
31506 is added to the document class options.
31511 , also display formulas can be scaled.
31514 \begin_layout Chapter
31515 External Document Parts
31519 \begin_layout Plain Layout
31520 External Document Parts
31528 \begin_layout Standard
31531 Insert\SpecialChar \menuseparator
31534 you can insert external material to your document.
31538 \begin_layout Description
31540 \begin_inset space ~
31543 Document Another LyX document; its content is directly inserted to your
31547 \begin_layout Description
31549 \begin_inset space ~
31552 Text A text document; every of its text lines is inserted to your document
31556 \begin_layout Description
31558 \begin_inset space ~
31562 \begin_inset space ~
31566 \begin_inset space ~
31569 Lines A text document; its text lines are inserted as they are.
31570 Empty text lines creates a new paragraph in your document.
31573 \begin_layout Description
31575 \begin_inset space ~
31578 Material Files in various formats.
31581 \begin_layout Description
31583 \begin_inset space ~
31586 Document LyX or LaTeX-documents.
31589 \begin_layout Section
31594 \begin_layout Plain Layout
31595 External Document Parts ! External Material
31603 \begin_layout Standard
31604 The external material feature allows you to insert files to your document
31605 without converting them previously to a format that can be read by the
31606 document output format because LyX takes care of needed conversions.
31607 This is similar to images that can be inserted in various image formats
31609 When you have enabled Instant Preview in LyX's preferences under
31612 \begin_inset space ~
31616 \begin_inset space ~
31619 feel\SpecialChar \menuseparator
31622 , the external material types Dia and Xfig is directly shown in LyX.
31625 \begin_layout Standard
31626 External material can be inserted via the
31630 dialog that is accessible with the menu
31632 Insert\SpecialChar \menuseparator
31633 File\SpecialChar \menuseparator
31635 \begin_inset space ~
31641 Currently the following file types (
31648 \begin_layout Description
31649 ChessDiagram This template supports chess position diagrams made with the
31653 \begin_inset CommandInset href
31656 target "http://en.wikipedia.org/wiki/XBoard"
31665 \begin_layout Description
31666 Date This inserts the date in the form
31671 This is a date inserted as external material:
31672 \begin_inset External
31679 \begin_inset space ~
31683 \begin_inset Note Note
31686 \begin_layout Plain Layout
31687 Remove the protected space when bug 4398 is fixed!
31693 \begin_inset Newline newline
31696 The date is not shown within LyX, only in the output.
31697 There are two other methods of inserting a date: Via menu
31699 Insert\SpecialChar \menuseparator
31702 and with the LaTeX command
31709 The different methods are compared in Table
31710 \begin_inset space ~
31714 \begin_inset CommandInset ref
31716 reference "tab:Comparison-of-the"
31723 \begin_layout Description
31724 Dia This template supports diagrams created with the program
31727 \begin_inset CommandInset href
31730 target "http://en.wikipedia.org/wiki/Dia_(software)"
31739 \begin_layout Description
31740 LilyPond This template is used for music notation typeset with the program
31741 \begin_inset Newline linebreak
31747 \begin_inset CommandInset href
31750 target "http://en.wikipedia.org/wiki/LilyPond"
31759 \begin_layout Description
31760 PDFPages With this template you can insert PDF documents to your document.
31761 To insert certain or all pages of a PDF, use the
31771 LaTeX and LyX options
31773 tab according to the template description in the dialog.
31778 option is given, only the first page of the PDF will be inserted.
31781 \begin_layout Description
31782 RasterImage This can be used for bitmap images.
31783 Nearly all popular image formats are supported.
31784 The image can be treated in the
31788 dialog like the images that are usually included via the
31792 dialog as described in section
31793 \begin_inset space ~
31797 \begin_inset CommandInset ref
31799 reference "sec:Graphics-Dialog"
31804 The difference is that only raster images are allowed, that means that
31805 PDF and EPS-images are not supported.
31808 \begin_layout Description
31809 XFig This template supports images created with the program
31812 \begin_inset CommandInset href
31815 target "http://en.wikipedia.org/wiki/Xfig"
31824 \begin_layout Standard
31825 \begin_inset Float table
31831 \begin_layout Plain Layout
31832 \begin_inset Caption
31834 \begin_layout Plain Layout
31835 \begin_inset CommandInset label
31837 name "tab:Comparison-of-the"
31841 Comparison of the date input methods.
31849 \begin_layout Plain Layout
31851 \begin_inset Tabular
31852 <lyxtabular version="3" rows="4" columns="4">
31854 <column alignment="center" valignment="top" width="0">
31855 <column alignment="center" valignment="top" width="0">
31856 <column alignment="center" valignment="top" width="0">
31857 <column alignment="center" valignment="top" width="0">
31859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31862 \begin_layout Plain Layout
31868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31871 \begin_layout Plain Layout
31874 External Material\SpecialChar \menuseparator
31880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31883 \begin_layout Plain Layout
31886 Insert\SpecialChar \menuseparator
31892 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31895 \begin_layout Plain Layout
31907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31910 \begin_layout Plain Layout
31916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31919 \begin_layout Plain Layout
31925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31928 \begin_layout Plain Layout
31934 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31937 \begin_layout Plain Layout
31938 as TeX-Code inset box
31945 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31948 \begin_layout Plain Layout
31954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31957 \begin_layout Plain Layout
31963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31966 \begin_layout Plain Layout
31972 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31975 \begin_layout Plain Layout
31983 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31986 \begin_layout Plain Layout
31992 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31995 \begin_layout Plain Layout
32001 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32004 \begin_layout Plain Layout
32010 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32013 \begin_layout Plain Layout
32032 \begin_layout Standard
32033 When you use the option
32045 dialog, only the path to the inserted file is shown in the output.
32046 \begin_inset Newline newline
32049 External material is displayed in LyX either as box like this:
32050 \begin_inset Graphics
32051 filename clipart/ExternalMaterialQt4.png
32053 scaleBeforeRotation
32057 or as image, depending on the option
32063 LaTeX and LyX options
32068 \begin_layout Standard
32075 manual explains how you can define your own templates.
32078 \begin_layout Section
32080 \begin_inset CommandInset label
32082 name "sec:Child-Documents"
32090 \begin_layout Plain Layout
32091 External Document Parts ! Child Documents
32100 \begin_layout Plain Layout
32109 \begin_layout Standard
32110 Child documents are used when you have a long document consisting of several
32111 larger parts or sections.
32112 For maintenance it is often useful and sometimes even required to split
32113 the document in several files that can be revised separately.
32114 The different documents are then the so called child documents and a master
32115 document connects them to print the full document or parts of it.
32116 A child documents inherits contents of its master, for example the LaTeX
32117 preamble, the bibliography, and labels for cross-references.
32120 \begin_layout Standard
32121 To be able to work on child documents without the need to open its master,
32122 specify in the child document the master in the menu
32124 Document\SpecialChar \menuseparator
32125 Settings\SpecialChar \menuseparator
32127 \begin_inset space ~
32133 This master document will then be used in the background by LyX when you
32134 edit the child document.
32137 \begin_layout Standard
32138 Included documents are displayed in LyX as a box like this:
32139 \begin_inset Graphics
32140 filename clipart/ChildDocumentQt4.png
32142 scaleBeforeRotation
32146 To include child documents to a master document use the menu
32148 Insert\SpecialChar \menuseparator
32149 File\SpecialChar \menuseparator
32151 \begin_inset space ~
32157 A dialog pops up where you can choose between four include methods:
32160 \begin_layout Description
32161 Include You can include LyX and LaTeX-documents.
32170 dialog, the included documents will be opened in LyX in a new file tab
32171 so that you can modify it.
32172 \begin_inset Newline newline
32178 \begin_layout Standard
32179 Here is a child document inserted using
32184 \begin_inset CommandInset include
32185 LatexCommand include
32186 filename "DummyDocument1.lyx"
32193 \begin_layout Standard
32194 The section numbering includes the sections of the included files in the
32195 order they are inserted in the master document.
32196 The included example document has for example a subsection that is numbered
32197 as subsection of this section.
32198 Labels of included documents can be referenced: Subsection
32199 \begin_inset space ~
32203 \begin_inset CommandInset ref
32205 reference "sub:External-Subsection-1"
32212 \begin_layout Standard
32213 The preamble of the child document is ignored, only the preamble of the
32214 master document is used.
32215 Branches in child documents will be ignored by the master document when
32216 the master document does not have a branch with the same name.
32217 Included documents are inserted starting on a new page and end with a page
32221 \begin_layout Standard
32222 In case you are only working on a certain chapter of a large document and
32223 want to save compiling time, you can put each included file into a branch.
32227 \begin_layout Plain Layout
32228 Branches are described in section
32241 By enabling/disabling branches you can decide what included files will
32242 appear in the output.
32245 \begin_layout Standard
32246 \begin_inset Note Greyedout
32249 \begin_layout Plain Layout
32254 Due to a bug in LyX the LaTeX command
32260 can currently not be used as alternative to decide what files should be
32269 \begin_layout Standard
32270 \begin_inset Note Greyedout
32273 \begin_layout Plain Layout
32278 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
32279 w the document in case that the child document uses another document class
32280 than the master document as this will lead to unexpected outputs.
32288 \begin_layout Description
32289 Input This method is very similar to the Include method.
32290 The differences are:
32294 \begin_layout Itemize
32295 Input files don't start with a new page and don't end with a page break.
32298 \begin_layout Itemize
32299 Input files can be previewed in LyX when
32302 \begin_inset space ~
32307 is enabled in LyX's preferences under
32310 \begin_inset space ~
32314 \begin_inset space ~
32317 feel\SpecialChar \menuseparator
32323 \begin_layout Itemize
32334 \begin_layout Standard
32335 Here is a child document inserted using
32340 \begin_inset CommandInset include
32342 filename "DummyDocument2.lyx"
32349 \begin_layout Description
32350 Verbatim With this method every text file can be included.
32351 The file is shown in the output with its source code, no command used in
32352 the text is invoked.
32353 You can use the option
32355 Mark spaces in output
32357 that displays the character
32358 \begin_inset Quotes eld
32365 \begin_layout Plain Layout
32375 \begin_inset Quotes erd
32378 for every space character in the source code.
32379 The difference to the method via the menu
32381 Insert\SpecialChar \menuseparator
32382 File\SpecialChar \menuseparator
32384 \begin_inset space ~
32389 is that the document content is not shown in LyX.
32392 \begin_layout Standard
32393 Here is a child document inserted as Verbatim:
32394 \begin_inset CommandInset include
32395 LatexCommand verbatiminput
32396 filename "DummyTextDocument.txt"
32401 \begin_inset VSpace bigskip
32404 Here is a child document inserted as Verbatim using the
32406 Mark spaces in output
32409 \begin_inset CommandInset include
32410 LatexCommand verbatiminput*
32411 filename "DummyTextDocument.txt"
32418 \begin_layout Standard
32419 \begin_inset VSpace bigskip
32425 \begin_layout Standard
32426 \begin_inset Note Greyedout
32429 \begin_layout Plain Layout
32434 As you can see in the examples above, the text of the documents included
32439 is not broken at the end of the document lines.
32447 \begin_layout Description
32448 Listings This type is described in chapter
32449 \begin_inset space ~
32453 \begin_inset CommandInset ref
32455 reference "cha:Program-Code-Listings"
32462 \begin_layout Standard
32463 \begin_inset Note Greyedout
32466 \begin_layout Plain Layout
32471 Including the same document twice in a document using different methods
32472 could cause LaTeX-problems.
32480 \begin_layout Chapter
32481 Program Code Listings
32482 \begin_inset CommandInset label
32484 name "cha:Program-Code-Listings"
32492 \begin_layout Plain Layout
32502 \begin_layout Plain Layout
32512 \begin_layout Plain Layout
32521 \begin_layout Standard
32522 To include and typeset program code you can use the
32526 inset that can be inserted via the menu
32528 Insert\SpecialChar \menuseparator
32540 \begin_layout Plain Layout
32541 LaTeX-packages ! listings
32546 provides a powerful and flexible way to insert program source code to your
32550 \begin_layout Standard
32551 Right-clicking on a listings inset opens the context menu containing where
32552 you can set the listings format.
32555 \begin_layout Standard
32556 By default, a listing starts a new paragraph in the output.
32557 The placement option
32560 \begin_inset space ~
32565 prints the listing inline like this:
32566 \begin_inset listings
32567 lstparams "language={C++}"
32571 \begin_layout Plain Layout
32579 \begin_inset Newline newline
32586 creates a listings float where you can specify the placement options
32587 \begin_inset Quotes eld
32595 \begin_inset Quotes erd
32599 \begin_inset Quotes eld
32607 \begin_inset Quotes erd
32611 \begin_inset Quotes eld
32619 \begin_inset Quotes erd
32623 \begin_inset Quotes eld
32631 \begin_inset Quotes erd
32634 corresponding to the float placement options described in section
32635 \begin_inset space ~
32639 \begin_inset CommandInset ref
32641 reference "sec:Float-Placement"
32646 The placement options can be mixed and are inserted without any separation,
32648 \begin_inset space \thinspace{}
32652 \begin_inset space \space{}
32656 \begin_inset Quotes eld
32664 \begin_inset Quotes erd
32669 \begin_inset Quotes eld
32673 \begin_inset Quotes erd
32676 has sometimes no effect, but you don't need to use the
32680 option in this case as also non-float listings can have captions and be
32684 \begin_layout Standard
32685 You can add captions to listings with the menu
32687 Insert\SpecialChar \menuseparator
32691 Listings can be referenced like floats: Listing
32692 \begin_inset space ~
32696 \begin_inset CommandInset ref
32698 reference "lst:Example-Listing"
32705 \begin_layout Standard
32706 \begin_inset listings
32707 lstparams "language=Python"
32711 \begin_layout Plain Layout
32713 \begin_inset Caption
32715 \begin_layout Plain Layout
32716 \begin_inset CommandInset label
32718 name "lst:Example-Listing"
32722 Example Listing float
32727 # Example listing float
32730 \begin_layout Plain Layout
32735 \begin_layout Plain Layout
32737 'this is a python function'
32740 \begin_layout Plain Layout
32750 \begin_layout Standard
32751 When you have set a programming language in the listings dialog, the keywords
32752 of this language will be recognized and specially typeset in the output.
32753 In the example listings the Python keyword
32754 \begin_inset Quotes eld
32758 \begin_inset Quotes erd
32761 is recognized and printed bold in the output.
32764 \begin_layout Standard
32765 \begin_inset Note Greyedout
32768 \begin_layout Plain Layout
32773 If you don't get bold keywords when using typewriter fonts, your
32777 font probably doesn't provide a bold shape.
32778 In this case select a different one in the menu
32780 Document\SpecialChar \menuseparator
32781 Settings\SpecialChar \menuseparator
32793 provide bold shapes.)
32801 \begin_layout Standard
32805 \begin_inset space ~
32810 of the listings dialog you can specify the line numbering style.
32811 You can insert a number to specify which lines are numbered to the field
32818 \begin_inset space \thinspace{}
32822 \begin_inset space \space{}
32826 \begin_inset Quotes eld
32830 \begin_inset Quotes erd
32833 , only every 3rd line will be numbered.
32836 \begin_layout Standard
32837 You can furthermore specify a range of lines, only these will then appear
32841 Extended character table
32843 should be used when you use national characters like the German umlauts
32845 \begin_inset Newline newline
32848 Here is an example listing with left line numbering, step
32849 \begin_inset Quotes eld
32853 \begin_inset Quotes erd
32857 \begin_inset Quotes eld
32861 \begin_inset Quotes erd
32865 \begin_inset Quotes eld
32868 Extended character table
32869 \begin_inset Quotes erd
32873 \begin_inset Quotes eld
32877 \begin_inset space ~
32881 \begin_inset space ~
32885 \begin_inset Quotes erd
32889 \begin_inset space \thinspace{}
32893 \begin_inset space \thinspace{}
32899 \begin_layout Standard
32900 \begin_inset listings
32901 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
32905 \begin_layout Plain Layout
32910 \begin_layout Plain Layout
32912 'this is a python function'
32915 \begin_layout Plain Layout
32920 \begin_layout Plain Layout
32925 \begin_layout Plain Layout
32927 'This is a German word: Tschüß'
32930 \begin_layout Plain Layout
32935 \begin_layout Plain Layout
32940 \begin_layout Plain Layout
32942 'this is a python function'
32945 \begin_layout Plain Layout
32955 \begin_layout Standard
32956 When you have tabulators in your listing, you can specify the number of
32957 characters that are spanned by a tabulator in the field
32960 \begin_inset space ~
32968 \begin_layout Standard
32969 \begin_inset Note Greyedout
32972 \begin_layout Plain Layout
32977 Due to a bug in the
32981 package the line numbering is shifted by a line by every previous listing.
32982 That's the reason why the lines 2 and 5 are numbered in the above listing
32983 and not the lines 3 and 6.
32991 \begin_layout Standard
32992 \begin_inset VSpace bigskip
32998 \begin_layout Standard
32999 It is also possible to print lines from a file as listing.
33000 To do this, use the menu
33002 Insert\SpecialChar \menuseparator
33003 File\SpecialChar \menuseparator
33006 and choose the type
33014 \begin_layout Plain Layout
33015 The other child document types are described in section
33016 \begin_inset space ~
33020 \begin_inset CommandInset ref
33022 reference "sec:Child-Documents"
33031 In the child document dialog you can specify the listing parameters in
33033 To show a list of all available parameters, type in a question mark
33034 \begin_inset Quotes eld
33038 \begin_inset Quotes erd
33044 \begin_layout Standard
33045 To reference child document listings, write a label text into the corresponding
33046 field of the child document dialog.
33047 The label can then be referenced using the menu
33049 Insert\SpecialChar \menuseparator
33055 \begin_layout Standard
33057 \begin_inset space ~
33061 \begin_inset CommandInset ref
33063 reference "lst:file-listing"
33067 is an example for a listing of a file; there the lines 10
33068 \begin_inset space \thinspace{}
33072 \begin_inset space \thinspace{}
33075 15 of this LyX file are listed.
33078 \begin_layout Standard
33079 \begin_inset CommandInset include
33080 LatexCommand lstinputlisting
33081 filename "EmbeddedObjects.lyx"
33082 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
33089 \begin_layout Standard
33090 \begin_inset VSpace bigskip
33096 \begin_layout Standard
33097 Global listings settings can be set in the
33099 Document\SpecialChar \menuseparator
33100 Settings\SpecialChar \menuseparator
33104 To get there a list of available options, type in a question mark
33105 \begin_inset Quotes eld
33109 \begin_inset Quotes erd
33115 \begin_inset space ~
33123 \begin_layout Standard
33124 For more information about the
33128 package, we refer to its documentation
33129 \begin_inset CommandInset citation
33138 \begin_layout Standard
33139 \begin_inset Newpage newpage
33145 \begin_layout Chapter
33147 Units available in LyX
33151 \begin_layout Plain Layout
33158 \begin_inset CommandInset label
33160 name "cha:Units-available-in"
33167 \begin_layout Standard
33168 To understand the units described in this documentation, Table
33169 \begin_inset space ~
33173 \begin_inset CommandInset ref
33175 reference "tab:Units"
33179 explains all units available in LyX.
33182 \begin_layout Standard
33183 \begin_inset Float table
33189 \begin_layout Plain Layout
33190 \begin_inset Caption
33192 \begin_layout Plain Layout
33193 \begin_inset CommandInset label
33207 \begin_layout Plain Layout
33208 \begin_inset VSpace medskip
33214 \begin_layout Plain Layout
33216 \begin_inset Tabular
33217 <lyxtabular version="3" rows="20" columns="2">
33219 <column alignment="center" valignment="top" width="0">
33220 <column alignment="center" valignment="top" width="0">
33222 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33225 \begin_layout Plain Layout
33231 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33234 \begin_layout Plain Layout
33242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33245 \begin_layout Plain Layout
33251 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33254 \begin_layout Plain Layout
33262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33265 \begin_layout Plain Layout
33271 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33274 \begin_layout Plain Layout
33282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33285 \begin_layout Plain Layout
33291 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33294 \begin_layout Plain Layout
33302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33305 \begin_layout Plain Layout
33311 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33314 \begin_layout Plain Layout
33316 \begin_inset space \thinspace{}
33320 \begin_inset space \thinspace{}
33330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33333 \begin_layout Plain Layout
33339 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33342 \begin_layout Plain Layout
33344 \begin_inset space \thinspace{}
33348 \begin_inset space \thinspace{}
33358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33361 \begin_layout Plain Layout
33367 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33370 \begin_layout Plain Layout
33371 scaled point (65536
33372 \begin_inset space \thinspace{}
33376 \begin_inset space \thinspace{}
33386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33389 \begin_layout Plain Layout
33395 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33398 \begin_layout Plain Layout
33400 \begin_inset space \thinspace{}
33404 \begin_inset space \thinspace{}
33414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33417 \begin_layout Plain Layout
33423 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33426 \begin_layout Plain Layout
33428 \begin_inset space \thinspace{}
33432 \begin_inset Formula $\approx$
33436 \begin_inset space \thinspace{}
33446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33449 \begin_layout Plain Layout
33455 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33458 \begin_layout Plain Layout
33460 \begin_inset space \thinspace{}
33464 \begin_inset space \thinspace{}
33474 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33477 \begin_layout Plain Layout
33483 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33486 \begin_layout Plain Layout
33487 % of original image width
33494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33497 \begin_layout Plain Layout
33503 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33506 \begin_layout Plain Layout
33514 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33517 \begin_layout Plain Layout
33523 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33526 \begin_layout Plain Layout
33534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33537 \begin_layout Plain Layout
33543 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33546 \begin_layout Plain Layout
33554 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33557 \begin_layout Plain Layout
33563 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33566 \begin_layout Plain Layout
33574 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33577 \begin_layout Plain Layout
33583 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33586 \begin_layout Plain Layout
33594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33597 \begin_layout Plain Layout
33603 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33606 \begin_layout Plain Layout
33614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33617 \begin_layout Plain Layout
33623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33626 \begin_layout Plain Layout
33638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33641 \begin_layout Plain Layout
33647 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33650 \begin_layout Plain Layout
33662 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33665 \begin_layout Plain Layout
33671 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33674 \begin_layout Plain Layout
33676 \begin_inset space \thinspace{}
33680 \begin_inset space \thinspace{}
33701 \begin_layout Chapter
33702 Output File Formats with Graphics
33703 \begin_inset CommandInset label
33705 name "cha:Output-File-Formats"
33712 \begin_layout Section
33717 \begin_layout Plain Layout
33727 \begin_layout Plain Layout
33732 \begin_layout Plain Layout
33743 \begin_layout Plain Layout
33758 \begin_layout Standard
33759 This file type has the extension
33760 \begin_inset Quotes eld
33768 \begin_inset Quotes erd
33773 \begin_inset Quotes eld
33777 \begin_inset Quotes erd
33780 (DVI), because it is completely portable; you can move them from one machine
33781 to another without needing to do any sort of conversion.
33782 At the time when this file-format was developed, this was no matter of
33784 DVIs are used for quick previews and as pre-stage for other output formats,
33788 \begin_layout Standard
33789 \begin_inset Note Greyedout
33792 \begin_layout Plain Layout
33797 DVI-files doesn't contain images, they will only be a linked.
33802 So don't forget this, if you move your
33806 file to another computer.
33807 This property can also slow down your computer when you view the DVI.
33808 Because the DVI-viewer has to convert the image in the background to make
33809 it visible when you scroll in the DVI.
33810 So we recommend to use PDF for files with many images.
33813 \begin_layout Standard
33814 You can export your document to DVI by using the menu
33816 File\SpecialChar \menuseparator
33817 Export\SpecialChar \menuseparator
33821 You can view your document as DVI via the
33825 menu or by using the toolbar button
33826 \begin_inset Graphics
33827 filename ../images/buffer-view_dvi.png
33829 scaleBeforeRotation
33836 \begin_layout Section
33838 \begin_inset CommandInset label
33840 name "sec:PostScript"
33848 \begin_layout Plain Layout
33849 File Formats ! PostScript
33858 \begin_layout Plain Layout
33863 \begin_layout Plain Layout
33874 \begin_layout Plain Layout
33889 \begin_layout Standard
33890 This file type has the extension
33891 \begin_inset Quotes eld
33899 \begin_inset Quotes erd
33903 PostScript was developed by the company
33907 as printer language.
33908 The file contains therefore commands that the printer uses to print the
33910 PostScript can be seen as
33911 \begin_inset Quotes eld
33914 programming language
33915 \begin_inset Quotes erd
33918 ; you can calculate with it and draw diagrams and images
33922 \begin_layout Plain Layout
33923 If you are interested to learn more about this, have a look at the LaTeX-package
33929 \begin_inset CommandInset citation
33941 Due to this ability, the files are often bigger than PDFs.
33944 \begin_layout Standard
33945 PostScript can only contain images in the format
33946 \begin_inset Quotes eld
33949 Encapsulated PostScript
33950 \begin_inset Quotes erd
33953 (EPS, file extension
33954 \begin_inset Quotes eld
33962 \begin_inset Quotes erd
33966 As LyX allows you to use any known image format in your document, it has
33967 to convert images in the background to EPS.
33968 If you have e.g 50 images in your document, LyX has to do 50 conversions
33969 whenever you view or export your document.
33970 This will slow down your work flow with LyX drastically.
33971 So if you plan to use PostScript, you can insert your images directly as
33972 EPS to avoid this problem.
33975 \begin_layout Standard
33976 You can export your document to PostScript using the menu
33978 File\SpecialChar \menuseparator
33979 Export\SpecialChar \menuseparator
33983 You can view your document as PostScript via the
33987 menu or by using the toolbar button
33988 \begin_inset Graphics
33989 filename ../images/buffer-view_ps.png
33991 scaleBeforeRotation
33998 \begin_layout Section
34003 \begin_layout Plain Layout
34013 \begin_layout Plain Layout
34022 \begin_layout Standard
34023 This file type has the extension
34024 \begin_inset Quotes eld
34032 \begin_inset Quotes erd
34037 \begin_inset Quotes eld
34040 Portable Document Format
34041 \begin_inset Quotes erd
34044 (PDF) is developed by
34048 as derivative from PostScript.
34049 It is more compressed and it uses much less commands than PostScript.
34051 \begin_inset Quotes eld
34055 \begin_inset Quotes erd
34058 implies, it can be processed at any computer system and the printed output
34059 looks exactly the same.
34062 \begin_layout Standard
34063 PDF can contain images in its own PDF format, in the format
34064 \begin_inset Quotes eld
34067 Joint Photographic Experts Group
34068 \begin_inset Quotes erd
34071 (JPG, file extension
34072 \begin_inset Quotes eld
34080 \begin_inset Quotes erd
34084 \begin_inset Quotes eld
34092 \begin_inset Quotes erd
34095 ), and in the format
34096 \begin_inset Quotes eld
34099 Portable Network Graphics
34100 \begin_inset Quotes erd
34103 (PNG, file extension
34104 \begin_inset Quotes eld
34112 \begin_inset Quotes erd
34116 Nevertheless you can use any other image format, because LyX converts them
34117 in the background to one of these formats.
34118 But as described in the section about PostScript, the image conversion
34119 will slow down your work flow.
34120 So it is recommended to use images in one of the three mentioned formats.
34123 \begin_layout Standard
34124 You can export your document to PDF via the menu
34126 File\SpecialChar \menuseparator
34129 in three different ways:
34132 \begin_layout Description
34134 \begin_inset space ~
34137 (ps2pdf) This uses the program
34141 that creates a PDF from a PostScript-version of your file.
34142 The PostScript-version is produced by the program
34146 which uses a DVI-version as intermediate step.
34147 So this export variant consist of three conversions.
34150 \begin_layout Description
34152 \begin_inset space ~
34155 (dvipdfm) This uses the program
34159 that converts your file in the background to DVI and in a second step to
34163 \begin_layout Description
34165 \begin_inset space ~
34168 (pdflatex) This uses the program
34172 that converts your file directly to PDF.
34175 \begin_layout Standard
34176 It is recommended to use
34179 \begin_inset space ~
34188 supports all features of actual PDF-versions, is quick and works stable
34194 is not under development and therefore a bit outdated.
34197 \begin_layout Standard
34198 You can view your document as PDF via the
34202 menu or by using the toolbar button
34203 \begin_inset Graphics
34204 filename ../images/buffer-view_pdf2.png
34206 scaleBeforeRotation
34217 \begin_inset space ~
34225 \begin_layout Chapter
34226 Explanation of Equation
34227 \begin_inset space ~
34231 \begin_inset CommandInset ref
34238 \begin_inset CommandInset label
34240 name "cha:Explanation-of-Equation"
34247 \begin_layout Standard
34253 \begin_inset Formula $W_{\mathrm{tot\, n}}$
34256 can be calculated to
34259 \begin_layout Standard
34260 \begin_inset Formula \begin{equation}
34261 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}
34268 \begin_layout Standard
34270 \begin_inset Formula $W_{g\, n}$
34273 is the given width of all cells.
34280 is the LaTeX-length between the cell text and the cell border, its default
34282 \begin_inset space \thinspace{}
34292 is the thickness of the cell border line, the default is 0.4
34293 \begin_inset space \thinspace{}
34299 \begin_layout Standard
34301 \begin_inset space ~
34305 \begin_inset CommandInset ref
34307 reference "eq:Wtot_n"
34311 , the total width of a multicolumn
34312 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
34318 \begin_layout Standard
34319 \begin_inset Formula \begin{equation}
34320 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
34327 \begin_layout Standard
34328 By setting equation
34329 \begin_inset space ~
34333 \begin_inset CommandInset ref
34335 reference "eq:Wtot_n"
34340 \begin_inset CommandInset ref
34342 reference "eq:Wtot_mult"
34346 equal we can calculate the needed given width
34347 \begin_inset Formula $W_{g\, n}$
34354 columns are spanned, so that each column has a total width of
34355 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
34361 \begin_layout Standard
34362 \begin_inset Formula \begin{equation}
34363 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
34370 \begin_layout Bibliography
34371 \begin_inset CommandInset bibitem
34372 LatexCommand bibitem
34373 key "latexcompanion"
34377 Frank Mittelbach and Michel Goossens:
34379 The LaTeX Companion Second Edition.
34382 Addison-Wesley, 2004
34385 \begin_layout Bibliography
34386 \begin_inset CommandInset bibitem
34387 LatexCommand bibitem
34392 Helmut Kopka and Patrick W.
34395 A Guide to LaTeX Fourth Edition.
34398 Addison-Wesley, 2003
34401 \begin_layout Bibliography
34402 \begin_inset CommandInset bibitem
34403 LatexCommand bibitem
34410 LaTeX: A Document Preparation System.
34413 Addison-Wesley, second edition, 1994
34416 \begin_layout Bibliography
34417 \begin_inset CommandInset bibitem
34418 LatexCommand bibitem
34423 Documentation of the LaTeX-package
34426 \begin_inset CommandInset href
34429 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
34439 \begin_layout Plain Layout
34440 LaTeX-packages ! booktabs
34448 \begin_layout Bibliography
34449 \begin_inset CommandInset bibitem
34450 LatexCommand bibitem
34455 Documentation of the LaTeX-package
34458 \begin_inset CommandInset href
34461 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
34471 \begin_layout Plain Layout
34472 LaTeX-packages ! caption
34480 \begin_layout Bibliography
34481 \begin_inset CommandInset bibitem
34482 LatexCommand bibitem
34487 Documentation of the LaTeX-package
34490 \begin_inset CommandInset href
34493 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
34503 \begin_layout Plain Layout
34504 LaTeX-packages ! endfloat
34512 \begin_layout Bibliography
34513 \begin_inset CommandInset bibitem
34514 LatexCommand bibitem
34519 Documentation of the LaTeX-package
34522 \begin_inset CommandInset href
34525 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
34535 \begin_layout Plain Layout
34536 LaTeX-packages ! wrapfig
34540 \begin_layout Plain Layout
34557 \begin_layout Bibliography
34558 \begin_inset CommandInset bibitem
34559 LatexCommand bibitem
34564 Documentation of the LaTeX-package
34567 \begin_inset CommandInset href
34570 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
34580 \begin_layout Plain Layout
34581 LaTeX-packages ! footmisc
34589 \begin_layout Bibliography
34590 \begin_inset CommandInset bibitem
34591 LatexCommand bibitem
34596 Documentation of the LaTeX-package
34599 \begin_inset CommandInset href
34602 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
34612 \begin_layout Plain Layout
34613 LaTeX-packages ! hyperref
34621 \begin_layout Bibliography
34622 \begin_inset CommandInset bibitem
34623 LatexCommand bibitem
34628 Documentation of the LaTeX-package
34631 \begin_inset CommandInset href
34634 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
34644 \begin_layout Plain Layout
34645 LaTeX-packages ! hyperref
34653 \begin_layout Bibliography
34654 \begin_inset CommandInset bibitem
34655 LatexCommand bibitem
34660 Documentation of the LaTeX-package
34663 \begin_inset CommandInset href
34666 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
34676 \begin_layout Plain Layout
34677 LaTeX-packages ! KOMA-Script
34685 \begin_layout Bibliography
34686 \begin_inset CommandInset bibitem
34687 LatexCommand bibitem
34692 Documentation of the LaTeX-package
34695 \begin_inset CommandInset href
34698 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
34708 \begin_layout Plain Layout
34709 LaTeX-packages ! listings
34717 \begin_layout Bibliography
34718 \begin_inset CommandInset bibitem
34719 LatexCommand bibitem
34724 Documentation of the LaTeX-package
34727 \begin_inset CommandInset href
34730 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
34740 \begin_layout Plain Layout
34741 LaTeX-packages ! marginnote
34749 \begin_layout Bibliography
34750 \begin_inset CommandInset bibitem
34751 LatexCommand bibitem
34756 Web page of the LaTeX-package
34759 \begin_inset CommandInset href
34762 target "http://tug.org/PSTricks/"
34772 \begin_layout Plain Layout
34773 LaTeX-packages ! PSTricks
34781 \begin_layout Bibliography
34782 \begin_inset CommandInset bibitem
34783 LatexCommand bibitem
34788 Documentation of the LaTeX-package
34791 \begin_inset CommandInset href
34794 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
34804 \begin_layout Plain Layout
34805 LaTeX-packages ! sidecap
34813 \begin_layout Bibliography
34814 \begin_inset CommandInset bibitem
34815 LatexCommand bibitem
34821 \begin_inset CommandInset href
34824 target "http://wiki.lyx.org/LyX/NewInLyX16"
34828 about new features in
34835 \begin_layout Standard
34836 \begin_inset CommandInset index_print
34837 LatexCommand printindex
34844 \begin_layout Standard
34845 \begin_inset FloatList figure
34852 \begin_layout Standard
34853 \begin_inset FloatList table
34860 \begin_layout Standard
34861 \begin_inset FloatList algorithm