1 #LyX 1.6.7 created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
38 \newcommand{\TabBesBeg}{%
40 \let\MyEndtable\endtable
41 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
43 \newcommand{\TabBesEnd}{%
45 \let\endtable\MyEndtable}
47 \newcommand{\FigBesBeg}{%
49 \let\MyEndfigure\endfigure
50 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
52 \newcommand{\FigBesEnd}{%
54 \let\endfigure\MyEndfigure}
56 % enables calculation of values,
59 % provides special table cell alignments
62 % increase the bottom float placement fraction
63 \renewcommand{\bottomfraction}{0.5}
65 % avoids that floats are placed before their
66 % corresponding section starts
67 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
69 % speed up the longtable calculation
70 \setcounter{LTchunksize}{100}
72 % used for scaled and rotated boxes
73 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
75 % used for colored tables
76 \@ifundefined{textcolor}
77 {\usepackage{color}}{}
78 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
79 \definecolor{lightgrey}{gray}{0.8}
81 % check for package colortbl
82 % used for colored table cells
84 \IfFileExists{colortbl.sty}
85 {\usepackage{colortbl}
86 \setboolean{colortbl}{true}}
87 {\setboolean{colortbl}{false}}
91 %\renewcommand{\multirowsetup}{\centering}
93 % used for book-style tables
96 % used to have extra space in table cells
97 \@ifundefined{extrarowheight}
98 {\usepackage{array}}{}
99 \setlength{\extrarowheight}{2pt}
101 % used for customized tables
104 {>{\centering\hspace{0pt}}m{#1}}
107 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
110 {>{\columncolor{#1}\hspace{0pt}}c}
112 \newcolumntype{V}{!{\vrule width 1.5pt}}
114 \newcolumntype{W}{!{\color{green}\vline}}
117 % insert additional vertical space of
118 % 1.5 mm between footnotes
120 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
122 % number algorithm floats within chapters
123 \numberwithin{algorithm}{chapter}
125 % redefine the greyed out note
126 \renewenvironment{lyxgreyedout}
127 {\textcolor{blue}\bgroup}{\egroup}
129 % ------------------------------------
130 % used to check for needed LaTeX packages
133 % check for package arydshln
134 % used for tables with dashed lines
135 \newboolean{arydshln}
136 \IfFileExists{arydshln.sty}
137 {\usepackage{arydshln}
138 \setboolean{arydshln}{true}}
139 {\setboolean{arydshln}{false}}
141 % check for package marginnote
142 % used for margin notes
143 \newboolean{marginnote}
144 \IfFileExists{marginnote.sty}
145 {\usepackage{marginnote}
146 \let\marginpar\marginnote
147 \setboolean{marginnote}{true}}
148 {\setboolean{marginnote}{false}}
150 % check for package sidecap
151 % used for captions on the side
153 \IfFileExists{sidecap.sty}
154 {\usepackage{sidecap}
155 \setboolean{sidecap}{true}}
156 {\setboolean{sidecap}{false}}
158 % redefine the \LyX macro for PDF bookmarks
159 \def\LyX{\texorpdfstring{%
160 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
163 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
164 \use_default_options false
169 \font_typewriter default
170 \font_default_family default
180 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
181 \pdf_author "LyX Team, Uwe Stöhr"
182 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
183 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
185 \pdf_bookmarksnumbered true
186 \pdf_bookmarksopen true
187 \pdf_bookmarksopenlevel 1
188 \pdf_breaklinks false
192 \pdf_pdfusetitle false
193 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
200 \paperorientation portrait
203 \paragraph_separation skip
205 \quotes_language english
208 \paperpagestyle default
212 \tracking_changes false
213 \output_changes false
221 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
230 \begin_layout Plain Layout
232 If you have comments or error corrections, please send them to the LyX Documenta
234 \begin_inset CommandInset href
236 name "lyx-docs@lists.lyx.org"
237 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
248 \begin_inset Note Note
251 \begin_layout Plain Layout
258 \begin_inset Newline newline
262 \begin_inset Newline newline
270 \begin_layout Standard
271 \begin_inset CommandInset toc
272 LatexCommand tableofcontents
279 \begin_layout Standard
280 \begin_inset Note Note
283 \begin_layout Plain Layout
284 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
302 If they are not installed you can export the document anyway but the sections
303 where the packages are required won't appear in the output.
306 \begin_layout Plain Layout
307 The latest PDF-version of this document can be found here:
308 \begin_inset Newline newline
313 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
321 \begin_layout Chapter
326 \begin_layout Plain Layout
336 \begin_layout Plain Layout
341 \begin_layout Plain Layout
352 \begin_layout Plain Layout
367 \begin_layout Section
372 \begin_layout Plain Layout
373 Figures ! Graphics Dialog
379 \begin_inset CommandInset label
381 name "sec:Graphics-Dialog"
388 \begin_layout Standard
389 To insert an image into your document, place the cursor at the text position
390 you want and click on the toolbar icon
391 \begin_inset Graphics
392 filename ../images/dialog-show-new-inset_graphics.png
400 Insert\SpecialChar \menuseparator
404 Then a dialog will appear to choose the file to load.
405 The image will appear in the output exactly at the position where it is
409 \begin_layout Standard
410 The graphics dialog can be called at any time by clicking on an image.
411 This dialog has three tabs:
414 \begin_layout Description
419 Here you can choose an image file and adjust its appearance in the output.
420 The available units for the image size are explained in appendix
425 \begin_inset CommandInset ref
427 reference "cha:Units-available-in"
432 \begin_inset Newline newline
439 \begin_layout Plain Layout
445 You can rotate images counter-clockwise by setting a rotation angle and
447 The image will also be rotated inside LyX.
448 \begin_inset Newline newline
455 \begin_layout Plain Layout
461 Images can be scaled by using a percentage value or by setting the width
462 and height explicitly.
463 If you set only the width or only the height, the other size will be determined
465 If you set both, then the image will be transformed to the given size,
466 possibly distorting it.
467 To prevent the image from distortion, use the option
469 Maintain aspect ratio
472 The image will then be scaled so that its width and height don't exceed
473 the specified dimensions.
474 \begin_inset Newline newline
477 Images can be opened in a program of your choice by right-clicking on it
478 and choosing the entry
487 The program can be set for every image format in the file format settings
488 in LyX's preferences.
491 \begin_layout Description
496 Alternatively to the usage of scaling units it is possible to set image
497 coordinates to adjust the height and width of the image in the output.
498 The coordinates can also be calculated automatically by pressing the button
528 will only print the image region within the given coordinates.
529 Normally you don't need to take care about image coordinates and can ignore
533 \begin_layout Description
550 In this tab you can modify the appearance of the image within LyX and LaTeX
551 experts can specify additional LaTeX options.
552 \begin_inset Newline newline
563 makes the image appear in the output only as a frame with the size of the
565 \begin_inset Newline newline
584 option only affects zipped EPS-graphics, e.
585 \begin_inset space \thinspace{}
589 \begin_inset space \space{}
597 When the option is used the images will not be unzipped on export, since
598 LaTeX can handle them as they are.
599 \begin_inset Newline newline
602 Zipped EPS-graphics are useful to save disk space when you choose PostScript
603 as output format, see appendix
608 \begin_inset CommandInset ref
610 reference "sec:PostScript"
615 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
617 \begin_inset Newline newline
625 \begin_inset Newline newline
630 zgrep %%Bounding x.eps.gz > x.eps.bb
633 \begin_inset Newline newline
636 The second command creates the bounding box file
637 \begin_inset Quotes eld
641 \begin_inset Quotes erd
644 that is needed by LaTeX for zipped graphics.
645 \begin_inset Newline newline
660 allows you define or join an image settings group.
664 \begin_layout Plain Layout
665 Figures ! Settings grouping
670 Images within such a group share their settings, so adjusting one image
671 of the group automatically also adjusts all other images of the group in
673 So you can for example change the size for a bunch of images without the
674 need to manually change each of them.
675 Joining an existing group can also be done using the context menu of the
676 image by checking the name of the desired group.
679 \begin_layout Standard
680 \begin_inset VSpace bigskip
686 \begin_layout Standard
687 This is an example image in EPS format
691 \begin_layout Plain Layout
692 Image formats are explained in section
697 \begin_inset CommandInset ref
699 reference "sec:Image-Formats"
708 within a separate, horizontally centered paragraph:
711 \begin_layout Standard
713 \begin_inset Graphics
714 filename clipart/mobius.eps
724 \begin_layout Standard
725 This is the same image like the one above but in draft mode:
728 \begin_layout Standard
730 \begin_inset Graphics
731 filename clipart/mobius.eps
742 \begin_layout Standard
743 \begin_inset Newpage newpage
749 \begin_layout Section
751 \begin_inset CommandInset label
753 name "sec:Figure-Floats"
761 \begin_layout Plain Layout
771 \begin_layout Plain Layout
780 \begin_layout Standard
781 For general explanations about floats, have a look at section
786 \begin_inset CommandInset ref
788 reference "sec:FloatIntroduction"
795 \begin_layout Standard
797 \begin_inset Graphics
798 filename ../images/float-insert_figure.png
806 Insert\SpecialChar \menuseparator
807 Float\SpecialChar \menuseparator
810 inserts a float with a caption that has the label
811 \begin_inset Quotes eld
819 \begin_inset Quotes erd
822 (# is the actual number).
823 You can insert the image above the caption, like in Figure
828 \begin_inset CommandInset ref
830 reference "fig:kill-plat"
834 or below the caption, like in Figure
839 \begin_inset CommandInset ref
841 reference "fig:escher"
846 More about caption placement is described in section
851 \begin_inset CommandInset ref
853 reference "sec:Caption-Placement"
860 \begin_layout Standard
861 \begin_inset Float figure
866 \begin_layout Plain Layout
868 \begin_inset Graphics
869 filename clipart/platypus.eps
879 \begin_layout Plain Layout
882 \begin_layout Plain Layout
883 \begin_inset CommandInset label
889 A severely distorted platypus in a float.
902 \begin_layout Standard
903 \begin_inset Float figure
908 \begin_layout Plain Layout
911 \begin_layout Plain Layout
912 \begin_inset CommandInset label
927 \begin_layout Plain Layout
929 \begin_inset Graphics
930 filename clipart/escher-lsd.eps
945 \begin_layout Standard
949 \begin_layout Plain Layout
950 References ! to Figures
960 \begin_inset CommandInset ref
962 reference "fig:kill-plat"
967 \begin_inset CommandInset ref
969 reference "fig:escher"
973 are examples of referenced figures.
974 Figures can be referenced in the text by referencing their label.
975 To do this insert a label in the caption using the menu
977 Insert\SpecialChar \menuseparator
980 or the toolbar button
981 \begin_inset Graphics
982 filename ../images/label-insert.png
989 You can now refer to the label using the menu
991 Insert\SpecialChar \menuseparator
998 or the toolbar button
999 \begin_inset Graphics
1000 filename ../images/dialog-show-new-inset_ref.png
1007 It is important to use references to floats, rather than using vague references
1009 \begin_inset Quotes eld
1013 \begin_inset Quotes erd
1016 , because LaTeX will reposition the floats in the final document and it
1018 \begin_inset Quotes eld
1022 \begin_inset Quotes erd
1026 \begin_inset Newline newline
1029 Referencing is explained in detail in section
1030 \begin_inset space ~
1034 \begin_inset CommandInset ref
1036 reference "sec:Referencing-Floats"
1043 \begin_layout Standard
1044 Normally only one image is inserted to a figure float, but sometimes you
1045 might want to use two images with separate subcaptions.
1046 This can be done by inserting image floats into existing image floats.
1047 Note that only the main caption of the float is added to the List of Figures.
1049 \begin_inset space ~
1053 \begin_inset CommandInset ref
1055 reference "fig:Two-distorted-images"
1059 is an example of a figure float with two images set side by side.
1060 You can also set the images one below the other.
1062 \begin_inset space ~
1066 \begin_inset CommandInset ref
1068 reference "fig:Undefinable-structure"
1073 \begin_inset CommandInset ref
1075 reference "fig:A-Platypus"
1082 \begin_layout Standard
1083 \begin_inset Float figure
1088 \begin_layout Plain Layout
1089 \begin_inset space \hfill{}
1093 \begin_inset Float figure
1098 \begin_layout Plain Layout
1099 \begin_inset Caption
1101 \begin_layout Plain Layout
1102 \begin_inset CommandInset label
1104 name "fig:Undefinable-structure"
1108 Undefinable structure.
1116 \begin_layout Plain Layout
1117 \begin_inset Graphics
1118 filename clipart/escher-lsd.eps
1131 \begin_inset space \hfill{}
1135 \begin_inset Float figure
1140 \begin_layout Plain Layout
1141 \begin_inset Caption
1143 \begin_layout Plain Layout
1144 \begin_inset CommandInset label
1146 name "fig:A-Platypus"
1158 \begin_layout Plain Layout
1159 \begin_inset Graphics
1160 filename clipart/platypus.eps
1173 \begin_inset space \hfill{}
1179 \begin_layout Plain Layout
1180 \begin_inset Caption
1182 \begin_layout Plain Layout
1183 \begin_inset CommandInset label
1185 name "fig:Two-distorted-images"
1189 Two distorted images.
1190 Both images are in the image settings group named
1191 \begin_inset Quotes eld
1195 \begin_inset Quotes erd
1211 \begin_layout Standard
1212 \begin_inset Newpage newpage
1218 \begin_layout Section
1220 \begin_inset CommandInset label
1222 name "sec:Image-Formats"
1230 \begin_layout Plain Layout
1240 \begin_layout Plain Layout
1241 Figures ! Image Formats
1249 \begin_layout Standard
1250 You can insert images in any known file format.
1251 But as explained in appendix
1252 \begin_inset space ~
1256 \begin_inset CommandInset ref
1258 reference "cha:Output-File-Formats"
1262 , each output document format allows only a few image formats.
1263 LyX uses therefore the program
1267 in the background to convert the images to the right format.
1268 To increase your work flow by avoiding these conversions in the background,
1269 you can use only the image formats that can directly be embedded in the
1271 The output file formats are explained in appendix
1272 \begin_inset space ~
1276 \begin_inset CommandInset ref
1278 reference "cha:Output-File-Formats"
1285 \begin_layout Standard
1286 Similar to fonts there are two types of image formats:
1289 \begin_layout Description
1291 \begin_inset space ~
1294 images consist of pixel values, often in a compressed form.
1295 They are therefore not fully scalable and look pixelated in large zooms.
1296 Well-known bitmap image formats are
1297 \begin_inset Quotes eld
1300 Graphics Interchange Format
1301 \begin_inset Quotes erd
1304 (GIF, file extension
1305 \begin_inset Quotes eld
1313 \begin_inset Quotes erd
1320 \begin_layout Plain Layout
1325 \begin_layout Plain Layout
1336 \begin_layout Plain Layout
1349 \begin_inset Quotes eld
1352 Portable Network Graphics
1353 \begin_inset Quotes erd
1356 (PNG, file extension
1357 \begin_inset Quotes eld
1365 \begin_inset Quotes erd
1372 \begin_layout Plain Layout
1377 \begin_layout Plain Layout
1388 \begin_layout Plain Layout
1401 \begin_inset Quotes eld
1404 Joint Photographic Experts Group
1405 \begin_inset Quotes erd
1408 (JPG, file extension
1409 \begin_inset Quotes eld
1417 \begin_inset Quotes erd
1421 \begin_inset Quotes eld
1429 \begin_inset Quotes erd
1436 \begin_layout Plain Layout
1441 \begin_layout Plain Layout
1452 \begin_layout Plain Layout
1467 \begin_layout Description
1469 \begin_inset space ~
1472 images consist of vectors and can therefore be scaled to any size without
1474 The scaling ability is necessary if you want to create presentations, because
1475 presentations are always scaled by the video projector.
1476 Scaling is also useful for online documents to let the user zoom into diagrams.
1477 \begin_inset Newline newline
1480 Well-known scalable image formats are
1481 \begin_inset Quotes eld
1484 Scalable Vector Graphics
1485 \begin_inset Quotes erd
1488 (SVG, file extension
1489 \begin_inset Quotes eld
1497 \begin_inset Quotes erd
1504 \begin_layout Plain Layout
1509 \begin_layout Plain Layout
1520 \begin_layout Plain Layout
1533 \begin_inset Quotes eld
1536 Encapsulated PostScript
1537 \begin_inset Quotes erd
1540 (EPS, file extension
1541 \begin_inset Quotes eld
1549 \begin_inset Quotes erd
1556 \begin_layout Plain Layout
1561 \begin_layout Plain Layout
1572 \begin_layout Plain Layout
1585 \begin_inset Quotes eld
1588 Portable Document Format
1589 \begin_inset Quotes erd
1592 (PDF, file extension
1593 \begin_inset Quotes eld
1601 \begin_inset Quotes erd
1608 \begin_layout Plain Layout
1615 \begin_inset Quotes eld
1619 \begin_inset Quotes erd
1622 (WMF, file extension
1623 \begin_inset Quotes eld
1631 \begin_inset Quotes erd
1638 \begin_layout Plain Layout
1643 \begin_layout Plain Layout
1654 \begin_layout Plain Layout
1668 \begin_inset Quotes eld
1672 \begin_inset Quotes erd
1675 , because you can convert any bitmap image to a PDF or EPS-image and the
1676 result will still be a bitmap image.
1677 In such cases only a header with the image properties is added to the original
1682 \begin_layout Plain Layout
1683 In the case of PDF, the original image is additionally compressed.
1689 The PDF-files generated by
1693 are for example bitmap images.
1696 \begin_layout Standard
1697 Normally it is not possible to convert a bitmap image into a scalable one,
1699 Only the image formats PDF and EPS can directly be embedded to PDF and
1700 PostScript output files, respectively.
1701 SVG and WMF-images are recalculated to bitmaps when the output file is
1702 generated because there is currently no adequate WMF/SVG
1703 \begin_inset Formula $\to$
1706 PDF/EPS converter available.
1709 \begin_layout Chapter
1714 \begin_layout Plain Layout
1723 \begin_layout Section
1728 \begin_layout Plain Layout
1729 Table ! Introduction
1737 \begin_layout Standard
1738 You can insert a table using either the toolbar button
1739 \begin_inset Graphics
1740 filename ../images/tabular-insert.png
1748 Insert\SpecialChar \menuseparator
1752 The toolbar button offers you a graphical selection: move the mouse to
1753 set the column/row number of the table that should be created and then
1754 press a mouse button.
1755 When you use the menu to create a table, a dialog will appear, asking you
1756 for the number of rows and columns.
1757 \begin_inset Newline newline
1760 The default table has lines around any cell and the first row appears separated
1761 from the rest of the table.
1762 This separation occurs due to a double line: The cells of the first row
1763 have a line below them and the cells of the second row have a line above
1765 Here is an example table:
1768 \begin_layout Standard
1770 \begin_inset Tabular
1771 <lyxtabular version="3" rows="4" columns="4">
1773 <column alignment="center" valignment="top" width="0">
1774 <column alignment="center" valignment="top" width="0">
1775 <column alignment="center" valignment="top" width="0">
1776 <column alignment="center" valignment="top" width="0">
1778 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1781 \begin_layout Plain Layout
1787 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1790 \begin_layout Plain Layout
1805 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1808 \begin_layout Plain Layout
1814 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1817 \begin_layout Plain Layout
1825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1828 \begin_layout Plain Layout
1843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1846 \begin_layout Plain Layout
1852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1855 \begin_layout Plain Layout
1861 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1864 \begin_layout Plain Layout
1872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1875 \begin_layout Plain Layout
1890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1893 \begin_layout Plain Layout
1899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1902 \begin_layout Plain Layout
1908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1911 \begin_layout Plain Layout
1919 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1922 \begin_layout Plain Layout
1937 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1940 \begin_layout Plain Layout
1946 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1949 \begin_layout Plain Layout
1955 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1958 \begin_layout Plain Layout
1972 \begin_layout Section
1977 \begin_layout Plain Layout
1986 \begin_layout Standard
1987 You can alter a table by clicking on it with the right mouse button, which
1988 brings up the table dialog.
1989 Here you can adjust the settings of that cell and row/column respectively
1990 where the cursor is currently placed.
1991 Most of the dialog options also work on selections.
1992 This means if you select more cells, columns or rows, the action is done
1993 for the whole selection.
1994 Note that there is a difference between selecting the
1998 of the cell, and the cell itself.
1999 You can alter tables with the following tabs of the table dialog:
2002 \begin_layout Description
2006 \begin_inset space ~
2011 Here you can set the horizontal alignment and the width of the current
2013 When you have set a width you can also adjust the vertical alignment of
2015 A given width will allow the cell to have line breaks and multiple paragraphs
2016 of text, see section
2017 \begin_inset space ~
2021 \begin_inset CommandInset ref
2023 reference "sub:Multiple-Lines-in"
2028 If you set no width, the column is as wide as the content of the widest
2030 \begin_inset Newline newline
2033 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2035 \begin_inset space ~
2039 \begin_inset CommandInset ref
2041 reference "sub:Multicolumns"
2046 \begin_inset Newline newline
2049 The rotate check boxes rotate the current cell, a selection, or the whole
2050 table counter-clockwise by 90°.
2051 The rotation is not shown within LyX, only in the output.
2052 \begin_inset Newline newline
2056 \begin_inset Note Greyedout
2059 \begin_layout Plain Layout
2064 Not all DVI-viewers are able to display rotations.
2070 \begin_inset Newline newline
2073 It is also possible to enter a LaTeX-argument which is needed for special
2074 table formattings, see section
2075 \begin_inset space ~
2079 \begin_inset CommandInset ref
2081 reference "sub:Multicolumn-Calculations"
2086 \begin_inset CommandInset ref
2088 reference "sec:Colored-Tables"
2095 \begin_layout Description
2100 In this tab you can add and delete border lines for the current row/column.
2101 \begin_inset Newline newline
2104 Using the style option
2108 will convert the table to a formal table as described in section
2109 \begin_inset space ~
2113 \begin_inset CommandInset ref
2115 reference "sec:Formal-Tables"
2120 \begin_inset Newline newline
2123 You can also add here space to table rows as described in section
2124 \begin_inset space ~
2128 \begin_inset CommandInset ref
2130 reference "sub:Row-Spacing"
2137 \begin_layout Description
2142 This tab is to make a table a so called
2143 \begin_inset Quotes eld
2151 \begin_inset Quotes erd
2154 that can run over several pages.
2156 \begin_inset space ~
2160 \begin_inset CommandInset ref
2162 reference "sec:Longtables"
2167 \begin_inset CommandInset ref
2169 reference "sec:Special-Longtable-Issues"
2173 describe the longtable features in detail.
2176 \begin_layout Standard
2177 When the table dialog is open, you can move the cursor with the arrow keys
2178 from cell to cell and the property of the current cell will immediately
2179 be displayed in the dialog.
2182 \begin_layout Section
2187 \begin_layout Plain Layout
2196 \begin_layout Standard
2197 The table toolbar is an alternative to the table dialog to be able to alter
2199 It should normally appear at the bottom of LyX's main window when the cursor
2201 You can alternatively switch it on to appear always, by right-clicking
2202 in LyX's main menu bar.
2205 \begin_layout Standard
2206 The toolbar has the following icons:
2209 \begin_layout Labeling
2210 \labelwidthstring 00.00.0000
2211 \begin_inset Graphics
2212 filename ../images/tabular-feature_append-row.png
2217 adds a row below the current cell or selection
2220 \begin_layout Labeling
2221 \labelwidthstring 00.00.0000
2222 \begin_inset Graphics
2223 filename ../images/tabular-feature_append-column.png
2228 adds a column right beside the current cell or selection
2231 \begin_layout Labeling
2232 \labelwidthstring 00.00.0000
2233 \begin_inset Graphics
2234 filename ../images/tabular-feature_delete-row.png
2239 deletes the current row or selection
2242 \begin_layout Labeling
2243 \labelwidthstring 00.00.0000
2244 \begin_inset Graphics
2245 filename ../images/tabular-feature_delete-column.png
2250 deletes the current column or selection
2253 \begin_layout Labeling
2254 \labelwidthstring 00.00.0000
2255 \begin_inset Graphics
2256 filename ../images/tabular-feature_toggle-line-top.png
2261 adds a line at the top of the current cell / row or of a selection
2264 \begin_layout Labeling
2265 \labelwidthstring 00.00.0000
2266 \begin_inset Graphics
2267 filename ../images/tabular-feature_toggle-line-bottom.png
2272 adds a line at the bottom of the current cell / row or of a selection
2275 \begin_layout Labeling
2276 \labelwidthstring 00.00.0000
2277 \begin_inset Graphics
2278 filename ../images/tabular-feature_toggle-line-left.png
2283 adds a line at the left side of the current cell / row or of a selection
2286 \begin_layout Labeling
2287 \labelwidthstring 00.00.0000
2288 \begin_inset Graphics
2289 filename ../images/tabular-feature_toggle-line-right.png
2294 adds a line at the right side of the current cell / row or of a selection
2297 \begin_layout Labeling
2298 \labelwidthstring 00.00.0000
2299 \begin_inset Graphics
2300 filename ../images/tabular-feature_set-all-lines.png
2305 adds lines around the current or selected cells - if the current cell no
2306 multicolumn cell this also affects the current row and column
2309 \begin_layout Labeling
2310 \labelwidthstring 00.00.0000
2311 \begin_inset Graphics
2312 filename ../images/tabular-feature_unset-all-lines.png
2317 deletes all lines of the current or selected cells - if the current cell
2318 no multicolumn cell this also affects the current row and column
2321 \begin_layout Labeling
2322 \labelwidthstring 00.00.0000
2323 \begin_inset Graphics
2324 filename ../images/tabular-feature_m-align-left.png
2329 left-aligns the content of the current cell / column
2332 \begin_layout Labeling
2333 \labelwidthstring 00.00.0000
2334 \begin_inset Graphics
2335 filename ../images/tabular-feature_m-align-center.png
2340 centers the content of the current cell / column horizontally
2343 \begin_layout Labeling
2344 \labelwidthstring 00.00.0000
2345 \begin_inset Graphics
2346 filename ../images/tabular-feature_m-align-right.png
2351 right-aligns the content of the current cell / column
2354 \begin_layout Labeling
2355 \labelwidthstring 00.00.0000
2356 \begin_inset Graphics
2357 filename ../images/tabular-feature_m-valign-top.png
2362 aligns the content of the current cell vertically to the top
2365 \begin_layout Labeling
2366 \labelwidthstring 00.00.0000
2367 \begin_inset Graphics
2368 filename ../images/tabular-feature_m-valign-middle.png
2373 centers the content of the current cell vertically
2376 \begin_layout Labeling
2377 \labelwidthstring 00.00.0000
2378 \begin_inset Graphics
2379 filename ../images/tabular-feature_m-valign-bottom.png
2384 aligns the content of the current cell vertically to the bottom
2387 \begin_layout Labeling
2388 \labelwidthstring 00.00.0000
2389 \begin_inset Graphics
2390 filename ../images/tabular-feature_set-rotate-cell.png
2395 rotates the current cell or selection counter-clockwise by 90°
2398 \begin_layout Labeling
2399 \labelwidthstring 00.00.0000
2400 \begin_inset Graphics
2401 filename ../images/tabular-feature_set-rotate-tabular.png
2406 rotates the whole table counter-clockwise by 90°
2409 \begin_layout Labeling
2410 \labelwidthstring 00.00.0000
2411 \begin_inset Graphics
2412 filename ../images/tabular-feature_multicolumn.png
2417 sets the current cell or selection as a multicolumn
2420 \begin_layout Standard
2421 \begin_inset Note Greyedout
2424 \begin_layout Plain Layout
2429 For the output the vertical alignment of the first cell in a row is used
2430 for all following cells in the row.
2438 \begin_layout Section
2443 \begin_layout Plain Layout
2452 \begin_layout Standard
2453 Additionally to the table dialog and toolbar, the menu
2455 Edit\SpecialChar \menuseparator
2458 allows you to add and delete border lines for the current row/column and
2459 to set the current selection as multicolumn.
2460 The menu is only available when the cursor is inside a table.
2463 \begin_layout Section
2465 \begin_inset CommandInset label
2467 name "sec:Table-Floats"
2475 \begin_layout Plain Layout
2485 \begin_layout Plain Layout
2494 \begin_layout Standard
2495 For general explanations about floats, have a look at section
2496 \begin_inset space ~
2500 \begin_inset CommandInset ref
2502 reference "sec:FloatIntroduction"
2509 \begin_layout Standard
2510 \begin_inset Float table
2516 \begin_layout Plain Layout
2517 \begin_inset Caption
2519 \begin_layout Plain Layout
2520 \begin_inset CommandInset label
2522 name "tab:a table float"
2534 \begin_layout Plain Layout
2536 \begin_inset Tabular
2537 <lyxtabular version="3" rows="3" columns="3">
2539 <column alignment="center" valignment="top" width="0pt">
2540 <column alignment="center" valignment="top" width="0pt">
2541 <column alignment="center" valignment="top" width="0pt">
2543 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2546 \begin_layout Plain Layout
2561 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2564 \begin_layout Plain Layout
2579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2582 \begin_layout Plain Layout
2599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2602 \begin_layout Plain Layout
2617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2620 \begin_layout Plain Layout
2635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2638 \begin_layout Plain Layout
2655 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2658 \begin_layout Plain Layout
2668 \begin_inset Formula $\int x^{2}dx$
2676 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2679 \begin_layout Plain Layout
2689 \begin_inset Formula $\left[\begin{array}{cc}
2691 c & d\end{array}\right]$
2699 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2702 \begin_layout Plain Layout
2712 \begin_inset Formula $1+1=2$
2733 \begin_layout Standard
2734 Table floats can be inserted using the menu
2736 Insert\SpecialChar \menuseparator
2737 Float\SpecialChar \menuseparator
2740 or the toolbar button
2741 \begin_inset Graphics
2742 filename ../images/float-insert_table.png
2751 \begin_layout Standard
2752 The float appears as a collapsible box with a caption that has the label
2754 \begin_inset Quotes eld
2758 \begin_inset space ~
2762 \begin_inset Quotes erd
2765 (# is the actual table number).
2766 You can insert tables in the float above or below the caption.
2769 \begin_layout Standard
2771 \begin_inset space ~
2775 \begin_inset CommandInset ref
2777 reference "tab:a table float"
2781 is an example table within a table float.
2784 \begin_layout Standard
2785 Having the caption above the table is the common rule that is unfortunately
2786 not supported in LaTeX's standard classes.
2787 This means that, if you are using the document classes
2803 , there will be no space between the caption and the table.
2804 To insert the needed space, add the following option to the load command
2805 of the LaTeX-package
2813 \begin_layout Plain Layout
2814 LaTeX-packages ! caption
2819 in your document preamble
2823 \begin_layout Plain Layout
2824 For more information have a look at section
2825 \begin_inset space ~
2829 \begin_inset CommandInset ref
2831 reference "sec:Caption-Placement"
2843 \begin_layout Standard
2849 \begin_layout Standard
2854 , which is described in section
2855 \begin_inset space ~
2859 \begin_inset CommandInset ref
2861 reference "sec:Caption-Formatting"
2865 , is used to adjust the caption format.
2868 \begin_layout Standard
2872 \begin_layout Plain Layout
2873 References ! to Tables
2878 Tables can be cross-referenced in the text by referencing their label.
2879 To do this insert a label in the caption using the menu
2881 Insert\SpecialChar \menuseparator
2884 or the toolbar button
2885 \begin_inset Graphics
2886 filename ../images/label-insert.png
2893 You can now refer to the label using the menu
2895 Insert\SpecialChar \menuseparator
2897 \begin_inset space ~
2902 or the toolbar button
2903 \begin_inset Graphics
2904 filename ../images/dialog-show-new-inset_ref.png
2911 \begin_inset Newline newline
2914 Referencing is explained in detail in section
2915 \begin_inset space ~
2919 \begin_inset CommandInset ref
2921 reference "sec:Referencing-Floats"
2928 \begin_layout Section
2930 \begin_inset CommandInset label
2932 name "sec:Longtables"
2940 \begin_layout Plain Layout
2950 \begin_layout Plain Layout
2959 \begin_layout Standard
2960 If the table is too long to fit on one page, you can use the option
2963 \begin_inset space ~
2967 \begin_inset space ~
2976 of the table dialog to split the table automatically over more pages.
2977 Doing this enables the following options:
2980 \begin_layout Description
2981 Header: The current row is defined to be a header row that appears on all
2982 pages of the longtable; except for the first page, if
2985 \begin_inset space ~
2991 This is therefore called the main header.
2994 \begin_layout Description
2996 \begin_inset space ~
2999 header: The current row is defined to be a header row that appears on the
3000 first page of the longtable.
3003 \begin_layout Description
3004 Footer: The current row is defined to be a footer row that appears on all
3005 pages of the longtable; except for the last page, if
3008 \begin_inset space ~
3016 \begin_layout Description
3018 \begin_inset space ~
3021 footer: The current row is defined to be a footer row that appears on the
3022 last page of the longtable.
3025 \begin_layout Description
3026 Caption: The current row contains the table caption.
3027 The row is reset as single column and a caption is inserted.
3028 More about longtable captions is explained in sec.
3029 \begin_inset space \thinspace{}
3033 \begin_inset CommandInset ref
3035 reference "sub:Longtable-Captions"
3042 \begin_layout Standard
3043 You can also specify a row where the table is split.
3044 See the following longtable to see how it works:
3047 \begin_layout Standard
3049 \begin_inset Tabular
3050 <lyxtabular version="3" rows="69" columns="3">
3051 <features islongtable="true">
3052 <column alignment="left" valignment="top" width="0cm">
3053 <column alignment="left" valignment="top" width="0pt">
3054 <column alignment="center" valignment="top" width="0pt">
3055 <row endfirsthead="true">
3056 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3059 \begin_layout Plain Layout
3062 Example Phone List (ignore the names)
3067 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3070 \begin_layout Plain Layout
3076 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3079 \begin_layout Plain Layout
3086 <row endfirsthead="true">
3087 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3090 \begin_layout Plain Layout
3098 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3101 \begin_layout Plain Layout
3107 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3110 \begin_layout Plain Layout
3119 <row endhead="true">
3120 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3123 \begin_layout Plain Layout
3131 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3134 \begin_layout Plain Layout
3140 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3143 \begin_layout Plain Layout
3150 <row endhead="true">
3151 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3154 \begin_layout Plain Layout
3162 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3165 \begin_layout Plain Layout
3171 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3174 \begin_layout Plain Layout
3183 <row endfoot="true">
3184 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3187 \begin_layout Plain Layout
3188 continued on next page
3193 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3196 \begin_layout Plain Layout
3202 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3205 \begin_layout Plain Layout
3213 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3216 \begin_layout Plain Layout
3224 <cell alignment="center" valignment="top" usebox="none">
3227 \begin_layout Plain Layout
3233 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3236 \begin_layout Plain Layout
3244 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3247 \begin_layout Plain Layout
3255 <cell alignment="center" valignment="top" usebox="none">
3258 \begin_layout Plain Layout
3264 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3267 \begin_layout Plain Layout
3275 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3278 \begin_layout Plain Layout
3286 <cell alignment="center" valignment="top" usebox="none">
3289 \begin_layout Plain Layout
3295 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3298 \begin_layout Plain Layout
3306 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3309 \begin_layout Plain Layout
3317 <cell alignment="center" valignment="top" usebox="none">
3320 \begin_layout Plain Layout
3326 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3329 \begin_layout Plain Layout
3337 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3340 \begin_layout Plain Layout
3348 <cell alignment="center" valignment="top" usebox="none">
3351 \begin_layout Plain Layout
3357 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3360 \begin_layout Plain Layout
3368 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3371 \begin_layout Plain Layout
3379 <cell alignment="center" valignment="top" usebox="none">
3382 \begin_layout Plain Layout
3388 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3391 \begin_layout Plain Layout
3399 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3402 \begin_layout Plain Layout
3410 <cell alignment="center" valignment="top" usebox="none">
3413 \begin_layout Plain Layout
3419 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3422 \begin_layout Plain Layout
3430 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3433 \begin_layout Plain Layout
3441 <cell alignment="center" valignment="top" usebox="none">
3444 \begin_layout Plain Layout
3450 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3453 \begin_layout Plain Layout
3461 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3464 \begin_layout Plain Layout
3472 <cell alignment="center" valignment="top" usebox="none">
3475 \begin_layout Plain Layout
3481 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3484 \begin_layout Plain Layout
3492 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3495 \begin_layout Plain Layout
3503 <cell alignment="center" valignment="top" usebox="none">
3506 \begin_layout Plain Layout
3512 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3515 \begin_layout Plain Layout
3523 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3526 \begin_layout Plain Layout
3534 <cell alignment="center" valignment="top" usebox="none">
3537 \begin_layout Plain Layout
3543 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3546 \begin_layout Plain Layout
3554 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3557 \begin_layout Plain Layout
3565 <cell alignment="center" valignment="top" usebox="none">
3568 \begin_layout Plain Layout
3574 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3577 \begin_layout Plain Layout
3585 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3588 \begin_layout Plain Layout
3596 <cell alignment="center" valignment="top" usebox="none">
3599 \begin_layout Plain Layout
3605 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3608 \begin_layout Plain Layout
3616 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3619 \begin_layout Plain Layout
3627 <cell alignment="center" valignment="top" usebox="none">
3630 \begin_layout Plain Layout
3636 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3639 \begin_layout Plain Layout
3647 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3650 \begin_layout Plain Layout
3658 <cell alignment="center" valignment="top" usebox="none">
3661 \begin_layout Plain Layout
3667 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3670 \begin_layout Plain Layout
3678 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3681 \begin_layout Plain Layout
3689 <cell alignment="center" valignment="top" usebox="none">
3692 \begin_layout Plain Layout
3698 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3701 \begin_layout Plain Layout
3709 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3712 \begin_layout Plain Layout
3720 <cell alignment="center" valignment="top" usebox="none">
3723 \begin_layout Plain Layout
3729 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3732 \begin_layout Plain Layout
3740 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3743 \begin_layout Plain Layout
3751 <cell alignment="center" valignment="top" usebox="none">
3754 \begin_layout Plain Layout
3760 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3763 \begin_layout Plain Layout
3771 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3774 \begin_layout Plain Layout
3782 <cell alignment="center" valignment="top" usebox="none">
3785 \begin_layout Plain Layout
3791 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3794 \begin_layout Plain Layout
3802 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3805 \begin_layout Plain Layout
3813 <cell alignment="center" valignment="top" usebox="none">
3816 \begin_layout Plain Layout
3822 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3825 \begin_layout Plain Layout
3833 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3836 \begin_layout Plain Layout
3844 <cell alignment="center" valignment="top" usebox="none">
3847 \begin_layout Plain Layout
3853 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3856 \begin_layout Plain Layout
3864 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3867 \begin_layout Plain Layout
3875 <cell alignment="center" valignment="top" usebox="none">
3878 \begin_layout Plain Layout
3884 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3887 \begin_layout Plain Layout
3895 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3898 \begin_layout Plain Layout
3906 <cell alignment="center" valignment="top" usebox="none">
3909 \begin_layout Plain Layout
3915 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3918 \begin_layout Plain Layout
3926 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3929 \begin_layout Plain Layout
3937 <cell alignment="center" valignment="top" usebox="none">
3940 \begin_layout Plain Layout
3946 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3949 \begin_layout Plain Layout
3957 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3960 \begin_layout Plain Layout
3968 <cell alignment="center" valignment="top" usebox="none">
3971 \begin_layout Plain Layout
3977 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3980 \begin_layout Plain Layout
3988 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3991 \begin_layout Plain Layout
3999 <cell alignment="center" valignment="top" usebox="none">
4002 \begin_layout Plain Layout
4008 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4011 \begin_layout Plain Layout
4019 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4022 \begin_layout Plain Layout
4030 <cell alignment="center" valignment="top" usebox="none">
4033 \begin_layout Plain Layout
4039 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4042 \begin_layout Plain Layout
4050 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4053 \begin_layout Plain Layout
4061 <cell alignment="center" valignment="top" usebox="none">
4064 \begin_layout Plain Layout
4070 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4073 \begin_layout Plain Layout
4081 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4084 \begin_layout Plain Layout
4092 <cell alignment="center" valignment="top" usebox="none">
4095 \begin_layout Plain Layout
4101 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4104 \begin_layout Plain Layout
4112 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4115 \begin_layout Plain Layout
4123 <cell alignment="center" valignment="top" usebox="none">
4126 \begin_layout Plain Layout
4132 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4135 \begin_layout Plain Layout
4143 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4146 \begin_layout Plain Layout
4154 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4157 \begin_layout Plain Layout
4163 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4166 \begin_layout Plain Layout
4174 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4177 \begin_layout Plain Layout
4183 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4186 \begin_layout Plain Layout
4192 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4195 \begin_layout Plain Layout
4203 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4206 \begin_layout Plain Layout
4214 <cell alignment="center" valignment="top" usebox="none">
4217 \begin_layout Plain Layout
4223 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4226 \begin_layout Plain Layout
4234 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4237 \begin_layout Plain Layout
4245 <cell alignment="center" valignment="top" usebox="none">
4248 \begin_layout Plain Layout
4254 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4257 \begin_layout Plain Layout
4265 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4268 \begin_layout Plain Layout
4276 <cell alignment="center" valignment="top" usebox="none">
4279 \begin_layout Plain Layout
4285 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4288 \begin_layout Plain Layout
4296 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4299 \begin_layout Plain Layout
4307 <cell alignment="center" valignment="top" usebox="none">
4310 \begin_layout Plain Layout
4316 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4319 \begin_layout Plain Layout
4327 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4330 \begin_layout Plain Layout
4338 <cell alignment="center" valignment="top" usebox="none">
4341 \begin_layout Plain Layout
4347 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4350 \begin_layout Plain Layout
4358 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4361 \begin_layout Plain Layout
4369 <cell alignment="center" valignment="top" usebox="none">
4372 \begin_layout Plain Layout
4378 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4381 \begin_layout Plain Layout
4389 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4392 \begin_layout Plain Layout
4400 <cell alignment="center" valignment="top" usebox="none">
4403 \begin_layout Plain Layout
4409 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4412 \begin_layout Plain Layout
4420 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4423 \begin_layout Plain Layout
4431 <cell alignment="center" valignment="top" usebox="none">
4434 \begin_layout Plain Layout
4440 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4443 \begin_layout Plain Layout
4451 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4454 \begin_layout Plain Layout
4462 <cell alignment="center" valignment="top" usebox="none">
4465 \begin_layout Plain Layout
4471 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4474 \begin_layout Plain Layout
4482 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4485 \begin_layout Plain Layout
4493 <cell alignment="center" valignment="top" usebox="none">
4496 \begin_layout Plain Layout
4502 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4505 \begin_layout Plain Layout
4513 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4516 \begin_layout Plain Layout
4524 <cell alignment="center" valignment="top" usebox="none">
4527 \begin_layout Plain Layout
4533 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4536 \begin_layout Plain Layout
4544 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4547 \begin_layout Plain Layout
4555 <cell alignment="center" valignment="top" usebox="none">
4558 \begin_layout Plain Layout
4564 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4567 \begin_layout Plain Layout
4575 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4578 \begin_layout Plain Layout
4586 <cell alignment="center" valignment="top" usebox="none">
4589 \begin_layout Plain Layout
4595 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4598 \begin_layout Plain Layout
4606 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4609 \begin_layout Plain Layout
4617 <cell alignment="center" valignment="top" usebox="none">
4620 \begin_layout Plain Layout
4626 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4629 \begin_layout Plain Layout
4637 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4640 \begin_layout Plain Layout
4648 <cell alignment="center" valignment="top" usebox="none">
4651 \begin_layout Plain Layout
4657 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4660 \begin_layout Plain Layout
4668 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4671 \begin_layout Plain Layout
4679 <cell alignment="center" valignment="top" usebox="none">
4682 \begin_layout Plain Layout
4688 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4691 \begin_layout Plain Layout
4699 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4702 \begin_layout Plain Layout
4710 <cell alignment="center" valignment="top" usebox="none">
4713 \begin_layout Plain Layout
4719 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4722 \begin_layout Plain Layout
4730 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4733 \begin_layout Plain Layout
4741 <cell alignment="center" valignment="top" usebox="none">
4744 \begin_layout Plain Layout
4750 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4753 \begin_layout Plain Layout
4761 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4764 \begin_layout Plain Layout
4772 <cell alignment="center" valignment="top" usebox="none">
4775 \begin_layout Plain Layout
4781 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4784 \begin_layout Plain Layout
4792 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4795 \begin_layout Plain Layout
4803 <cell alignment="center" valignment="top" usebox="none">
4806 \begin_layout Plain Layout
4812 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4815 \begin_layout Plain Layout
4823 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4826 \begin_layout Plain Layout
4834 <cell alignment="center" valignment="top" usebox="none">
4837 \begin_layout Plain Layout
4843 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4846 \begin_layout Plain Layout
4854 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4857 \begin_layout Plain Layout
4865 <cell alignment="center" valignment="top" usebox="none">
4868 \begin_layout Plain Layout
4874 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4877 \begin_layout Plain Layout
4885 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4888 \begin_layout Plain Layout
4896 <cell alignment="center" valignment="top" usebox="none">
4899 \begin_layout Plain Layout
4905 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4908 \begin_layout Plain Layout
4916 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4919 \begin_layout Plain Layout
4927 <cell alignment="center" valignment="top" usebox="none">
4930 \begin_layout Plain Layout
4936 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4939 \begin_layout Plain Layout
4947 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4950 \begin_layout Plain Layout
4958 <cell alignment="center" valignment="top" usebox="none">
4961 \begin_layout Plain Layout
4967 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4970 \begin_layout Plain Layout
4978 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4981 \begin_layout Plain Layout
4989 <cell alignment="center" valignment="top" usebox="none">
4992 \begin_layout Plain Layout
4998 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5001 \begin_layout Plain Layout
5009 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5012 \begin_layout Plain Layout
5020 <cell alignment="center" valignment="top" usebox="none">
5023 \begin_layout Plain Layout
5029 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5032 \begin_layout Plain Layout
5040 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5043 \begin_layout Plain Layout
5051 <cell alignment="center" valignment="top" usebox="none">
5054 \begin_layout Plain Layout
5060 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5063 \begin_layout Plain Layout
5071 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5074 \begin_layout Plain Layout
5082 <cell alignment="center" valignment="top" usebox="none">
5085 \begin_layout Plain Layout
5091 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5094 \begin_layout Plain Layout
5102 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5105 \begin_layout Plain Layout
5113 <cell alignment="center" valignment="top" usebox="none">
5116 \begin_layout Plain Layout
5122 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5125 \begin_layout Plain Layout
5133 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5136 \begin_layout Plain Layout
5144 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5147 \begin_layout Plain Layout
5153 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5156 \begin_layout Plain Layout
5163 <row endlastfoot="true">
5164 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5167 \begin_layout Plain Layout
5173 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5176 \begin_layout Plain Layout
5182 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5185 \begin_layout Plain Layout
5200 \begin_layout Plain Layout
5204 addtocounter{table}{-1}
5210 \begin_inset Note Note
5213 \begin_layout Plain Layout
5214 See the first greyed-out note in section
5215 \begin_inset space ~
5219 \begin_inset CommandInset ref
5221 reference "sub:Longtable-Captions"
5225 for an explanation of this command.
5233 \begin_layout Subsection
5234 Footnotes in Longtables
5235 \begin_inset CommandInset label
5237 name "sub:Footnotes-in-Longtables"
5245 \begin_layout Plain Layout
5246 Longtables ! Footnotes
5254 \begin_layout Standard
5255 Footnotes can be inserted to every longtable cell.
5256 They appear at the bottom of the page where the table cell with the footnote
5259 \begin_inset space ~
5263 \begin_inset CommandInset ref
5265 reference "tab:DiffCaptions"
5269 has for example a footnote.
5272 \begin_layout Subsection
5277 \begin_layout Plain Layout
5278 Longtables ! Alignment
5286 \begin_layout Standard
5287 Longtables are by default centered.
5288 Unlike the alignment of the table columns and rows, the table alignment
5289 can currently not be changed in the table dialog.
5290 To change the alignment of longtables you have to change the value of the
5303 by inserting this line as TeX-Code before the corresponding longtable:
5306 \begin_layout Standard
5316 \begin_layout Standard
5317 where the value can have any of the units listed in Table
5318 \begin_inset space ~
5322 \begin_inset CommandInset ref
5324 reference "tab:Units"
5335 controls the horizontal distance from the left page border to the longtable,
5342 the distance from the right side.
5343 The default value for both lengths is
5349 , which is in this case the same as an horizontal fill in LyX.
5352 \begin_layout Standard
5353 The following longtable was left-aligned by setting
5360 \begin_inset space \thinspace{}
5367 \begin_layout Plain Layout
5381 \begin_layout Standard
5382 \begin_inset Tabular
5383 <lyxtabular version="3" rows="5" columns="5">
5384 <features islongtable="true">
5385 <column alignment="center" valignment="top" width="0">
5386 <column alignment="center" valignment="top" width="0">
5387 <column alignment="center" valignment="top" width="0">
5388 <column alignment="center" valignment="top" width="0">
5389 <column alignment="center" valignment="top" width="0">
5391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5394 \begin_layout Plain Layout
5400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5403 \begin_layout Plain Layout
5409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5412 \begin_layout Plain Layout
5418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5421 \begin_layout Plain Layout
5427 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5430 \begin_layout Plain Layout
5438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5441 \begin_layout Plain Layout
5447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5450 \begin_layout Plain Layout
5456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5459 \begin_layout Plain Layout
5465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5468 \begin_layout Plain Layout
5474 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5477 \begin_layout Plain Layout
5485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5488 \begin_layout Plain Layout
5494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5497 \begin_layout Plain Layout
5503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5506 \begin_layout Plain Layout
5512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5515 \begin_layout Plain Layout
5521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5524 \begin_layout Plain Layout
5532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5535 \begin_layout Plain Layout
5541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5544 \begin_layout Plain Layout
5550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5553 \begin_layout Plain Layout
5559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5562 \begin_layout Plain Layout
5568 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5571 \begin_layout Plain Layout
5579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5582 \begin_layout Plain Layout
5588 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5591 \begin_layout Plain Layout
5597 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5600 \begin_layout Plain Layout
5606 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5609 \begin_layout Plain Layout
5615 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5618 \begin_layout Plain Layout
5633 \begin_layout Plain Layout
5650 \begin_layout Plain Layout
5654 addtocounter{table}{-1}
5660 \begin_inset Note Note
5663 \begin_layout Plain Layout
5664 See the first greyed-out note in section
5665 \begin_inset space ~
5669 \begin_inset CommandInset ref
5671 reference "sub:Longtable-Captions"
5675 for an explanation of this command.
5683 \begin_layout Subsection
5688 \begin_layout Plain Layout
5689 Longtables ! Captions
5695 \begin_inset CommandInset label
5697 name "sub:Longtable-Captions"
5704 \begin_layout Standard
5705 A longtable cannot be put into a table float because floats can only be
5707 But the caption environment of floats can also be used for longtables when
5708 you use the longtable option
5712 as described in sec.
5713 \begin_inset space \thinspace{}
5717 \begin_inset CommandInset ref
5719 reference "sec:Longtables"
5724 Only one table row can contain the caption.
5727 \begin_layout Standard
5728 Here is a short longtable to see how it works:
5731 \begin_layout Standard
5732 \begin_inset Tabular
5733 <lyxtabular version="3" rows="6" columns="5">
5734 <features islongtable="true">
5735 <column alignment="center" valignment="top" width="0">
5736 <column alignment="center" valignment="top" width="0">
5737 <column alignment="center" valignment="top" width="0">
5738 <column alignment="center" valignment="top" width="0">
5739 <column alignment="center" valignment="top" width="0">
5740 <row caption="true">
5741 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5744 \begin_layout Plain Layout
5745 \begin_inset Caption
5747 \begin_layout Plain Layout
5748 Longtable with caption
5752 \begin_layout Plain Layout
5768 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5771 \begin_layout Plain Layout
5777 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5780 \begin_layout Plain Layout
5786 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5789 \begin_layout Plain Layout
5795 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5798 \begin_layout Plain Layout
5806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5809 \begin_layout Plain Layout
5815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5818 \begin_layout Plain Layout
5824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5827 \begin_layout Plain Layout
5833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5836 \begin_layout Plain Layout
5842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5845 \begin_layout Plain Layout
5853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5856 \begin_layout Plain Layout
5862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5865 \begin_layout Plain Layout
5871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5874 \begin_layout Plain Layout
5880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5883 \begin_layout Plain Layout
5889 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5892 \begin_layout Plain Layout
5900 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5903 \begin_layout Plain Layout
5909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5912 \begin_layout Plain Layout
5918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5921 \begin_layout Plain Layout
5927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5930 \begin_layout Plain Layout
5936 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5939 \begin_layout Plain Layout
5947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5950 \begin_layout Plain Layout
5956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5959 \begin_layout Plain Layout
5965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5968 \begin_layout Plain Layout
5974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5977 \begin_layout Plain Layout
5983 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5986 \begin_layout Plain Layout
5994 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5997 \begin_layout Plain Layout
6003 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6006 \begin_layout Plain Layout
6012 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6015 \begin_layout Plain Layout
6021 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6024 \begin_layout Plain Layout
6030 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6033 \begin_layout Plain Layout
6047 \begin_layout Standard
6048 \begin_inset VSpace medskip
6052 \begin_inset Note Greyedout
6055 \begin_layout Plain Layout
6059 \begin_inset space ~
6064 The table number is increased for for every longtable, even if you did
6065 not set a caption for it.
6066 For this reason you could have the case that e.
6067 \begin_inset space \thinspace{}
6071 \begin_inset space \space{}
6075 \begin_inset space ~
6079 \begin_inset space ~
6082 2.1 in the list of tables if there are two longtables without captions.
6083 To avoid this you can add the following command in TeX-Code after every
6084 longtable without a caption:
6087 \begin_layout Plain Layout
6092 addtocounter{table}{-1}
6095 \begin_layout Plain Layout
6096 This is not needed when none of your longtables have a caption and you add
6097 the following code to the document preamble:
6100 \begin_layout Plain Layout
6110 \begin_inset Newline newline
6121 addtocounter{table}{-1}}
6129 \begin_layout Standard
6130 \begin_inset Note Greyedout
6133 \begin_layout Plain Layout
6137 \begin_inset space ~
6150 \begin_layout Plain Layout
6151 LaTeX-packages ! hyperref
6164 dialog to link cross-references, the link to a longtable caption will always
6165 point to the beginning of the document.
6173 \begin_layout Subsubsection
6174 References to Longtables
6178 \begin_layout Plain Layout
6179 Longtables ! References
6187 \begin_layout Standard
6188 \begin_inset Tabular
6189 <lyxtabular version="3" rows="6" columns="5">
6190 <features islongtable="true">
6191 <column alignment="center" valignment="top" width="0">
6192 <column alignment="center" valignment="top" width="0">
6193 <column alignment="center" valignment="top" width="0">
6194 <column alignment="center" valignment="top" width="0">
6195 <column alignment="center" valignment="top" width="0">
6196 <row caption="true">
6197 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6200 \begin_layout Plain Layout
6201 \begin_inset Caption
6203 \begin_layout Plain Layout
6204 Referenced longtable
6205 \begin_inset CommandInset label
6207 name "tab:RefExample"
6221 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6224 \begin_layout Plain Layout
6230 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6233 \begin_layout Plain Layout
6239 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6242 \begin_layout Plain Layout
6248 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6251 \begin_layout Plain Layout
6259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6262 \begin_layout Plain Layout
6268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6271 \begin_layout Plain Layout
6277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6280 \begin_layout Plain Layout
6286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6289 \begin_layout Plain Layout
6295 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6298 \begin_layout Plain Layout
6306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6309 \begin_layout Plain Layout
6315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6318 \begin_layout Plain Layout
6324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6327 \begin_layout Plain Layout
6333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6336 \begin_layout Plain Layout
6342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6345 \begin_layout Plain Layout
6353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6356 \begin_layout Plain Layout
6362 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6365 \begin_layout Plain Layout
6371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6374 \begin_layout Plain Layout
6380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6383 \begin_layout Plain Layout
6389 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6392 \begin_layout Plain Layout
6400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6403 \begin_layout Plain Layout
6409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6412 \begin_layout Plain Layout
6418 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6421 \begin_layout Plain Layout
6427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6430 \begin_layout Plain Layout
6436 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6439 \begin_layout Plain Layout
6447 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6450 \begin_layout Plain Layout
6456 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6459 \begin_layout Plain Layout
6465 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6468 \begin_layout Plain Layout
6474 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6477 \begin_layout Plain Layout
6483 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6486 \begin_layout Plain Layout
6500 \begin_layout Standard
6501 To reference a longtable, insert a label into the caption.
6504 \begin_layout Standard
6505 This is a reference to Table
6506 \begin_inset space ~
6510 \begin_inset CommandInset ref
6512 reference "tab:RefExample"
6519 \begin_layout Standard
6520 The caption layout can be set together with all other captions of your document
6521 using the LaTeX-package
6529 \begin_layout Plain Layout
6530 LaTeX-packages ! caption
6536 \begin_inset space ~
6540 \begin_inset CommandInset ref
6542 reference "sec:Caption-Formatting"
6549 \begin_layout Subsubsection
6554 \begin_layout Plain Layout
6555 Longtables ! Caption Width
6563 \begin_layout Standard
6564 The maximal width of of caption lines is defined by the length
6571 Its default value is 4
6572 \begin_inset space \thinspace{}
6576 To change it add the following command to your document preamble or as
6577 TeX-Code into your document before the longtable that should be affected
6580 \begin_layout Standard
6590 \begin_layout Standard
6591 where the width could have one of the units listed in appendix
6592 \begin_inset space ~
6596 \begin_inset CommandInset ref
6598 reference "cha:Units-available-in"
6605 \begin_layout Standard
6606 The following tables show the difference:
6609 \begin_layout Standard
6610 \begin_inset Tabular
6611 <lyxtabular version="3" rows="6" columns="5">
6612 <features islongtable="true">
6613 <column alignment="center" valignment="top" width="0">
6614 <column alignment="center" valignment="top" width="0">
6615 <column alignment="center" valignment="top" width="0">
6616 <column alignment="center" valignment="top" width="0">
6617 <column alignment="center" valignment="top" width="0">
6618 <row caption="true">
6619 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6622 \begin_layout Plain Layout
6623 \begin_inset Caption
6625 \begin_layout Plain Layout
6626 long full title with default width long full title with default width long
6627 full title with default width
6631 \begin_layout Plain Layout
6632 caption with default width
6647 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6650 \begin_layout Plain Layout
6656 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6659 \begin_layout Plain Layout
6665 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6668 \begin_layout Plain Layout
6674 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6677 \begin_layout Plain Layout
6685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6688 \begin_layout Plain Layout
6694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6697 \begin_layout Plain Layout
6703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6706 \begin_layout Plain Layout
6712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6715 \begin_layout Plain Layout
6721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6724 \begin_layout Plain Layout
6732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6735 \begin_layout Plain Layout
6741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6744 \begin_layout Plain Layout
6750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6753 \begin_layout Plain Layout
6759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6762 \begin_layout Plain Layout
6768 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6771 \begin_layout Plain Layout
6779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6782 \begin_layout Plain Layout
6788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6791 \begin_layout Plain Layout
6797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6800 \begin_layout Plain Layout
6806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6809 \begin_layout Plain Layout
6815 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6818 \begin_layout Plain Layout
6826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6829 \begin_layout Plain Layout
6835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6838 \begin_layout Plain Layout
6844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6847 \begin_layout Plain Layout
6853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6856 \begin_layout Plain Layout
6862 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6865 \begin_layout Plain Layout
6873 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6876 \begin_layout Plain Layout
6882 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6885 \begin_layout Plain Layout
6891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6894 \begin_layout Plain Layout
6900 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6903 \begin_layout Plain Layout
6909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6912 \begin_layout Plain Layout
6926 \begin_layout Standard
6930 \begin_layout Plain Layout
6942 \begin_inset Tabular
6943 <lyxtabular version="3" rows="6" columns="5">
6944 <features islongtable="true">
6945 <column alignment="center" valignment="top" width="0">
6946 <column alignment="center" valignment="top" width="0">
6947 <column alignment="center" valignment="top" width="0">
6948 <column alignment="center" valignment="top" width="0">
6949 <column alignment="center" valignment="top" width="0">
6950 <row caption="true">
6951 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6954 \begin_layout Plain Layout
6955 \begin_inset Caption
6957 \begin_layout Plain Layout
6958 long full title with width set to 5
6959 \begin_inset space \thinspace{}
6962 cm long full title with width set to 5
6963 \begin_inset space \thinspace{}
6966 cm long full title with width set to 5
6967 \begin_inset space \thinspace{}
6974 \begin_layout Plain Layout
6976 \begin_inset space \thinspace{}
6980 \begin_inset space \thinspace{}
6984 \begin_inset space \thinspace{}
7002 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7005 \begin_layout Plain Layout
7011 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7014 \begin_layout Plain Layout
7020 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7023 \begin_layout Plain Layout
7029 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7032 \begin_layout Plain Layout
7040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7043 \begin_layout Plain Layout
7049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7052 \begin_layout Plain Layout
7058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7061 \begin_layout Plain Layout
7067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7070 \begin_layout Plain Layout
7076 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7079 \begin_layout Plain Layout
7087 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7090 \begin_layout Plain Layout
7096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7099 \begin_layout Plain Layout
7105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7108 \begin_layout Plain Layout
7114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7117 \begin_layout Plain Layout
7123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7126 \begin_layout Plain Layout
7134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7137 \begin_layout Plain Layout
7143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7146 \begin_layout Plain Layout
7152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7155 \begin_layout Plain Layout
7161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7164 \begin_layout Plain Layout
7170 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7173 \begin_layout Plain Layout
7181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7184 \begin_layout Plain Layout
7190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7193 \begin_layout Plain Layout
7199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7202 \begin_layout Plain Layout
7208 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7211 \begin_layout Plain Layout
7217 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7220 \begin_layout Plain Layout
7228 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7231 \begin_layout Plain Layout
7237 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7240 \begin_layout Plain Layout
7246 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7249 \begin_layout Plain Layout
7255 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7258 \begin_layout Plain Layout
7264 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7267 \begin_layout Plain Layout
7281 \begin_layout Standard
7285 \begin_layout Plain Layout
7299 \begin_layout Standard
7300 \begin_inset Note Greyedout
7303 \begin_layout Plain Layout
7308 When the LaTeX-package
7316 \begin_layout Plain Layout
7317 LaTeX-packages ! caption
7322 is used, as in this document, the full page width is used for the caption
7323 when you use the default value of 4
7324 \begin_inset space \thinspace{}
7334 To get in this case exactly a 4
7335 \begin_inset space \thinspace{}
7338 in wide caption, you can either use a value slightly different from 4.0
7339 \begin_inset space \thinspace{}
7343 \begin_inset space \thinspace{}
7347 \begin_inset space \space{}
7351 \begin_inset space \thinspace{}
7354 in, or the LaTeX-command
7358 captionsetup{width=value}
7360 that is provided by the
7372 \begin_layout Subsubsection
7373 Different Captions for Table Pages
7377 \begin_layout Plain Layout
7378 Longtables ! Different Captions for Pages
7386 \begin_layout Standard
7387 When the table captions for the following pages should differ from the one
7388 of the first table page, insert a caption with the TeX code command
7391 \begin_layout Standard
7396 caption*{caption text}
7403 \begin_layout Standard
7404 in a dummy caption row that is marked as a header.
7406 \begin_inset space ~
7410 \begin_inset CommandInset ref
7412 reference "tab:DiffCaptions"
7416 is an example of a longtable with different heading where the second caption
7417 doesn't include the table number.
7420 \begin_layout Standard
7422 \begin_inset Tabular
7423 <lyxtabular version="3" rows="59" columns="3">
7424 <features islongtable="true" lastFootEmpty="true">
7425 <column alignment="left" valignment="top" width="0cm">
7426 <column alignment="left" valignment="top" width="0pt">
7427 <column alignment="center" valignment="top" width="0pt">
7428 <row caption="true">
7429 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7432 \begin_layout Plain Layout
7433 \begin_inset Caption
7435 \begin_layout Plain Layout
7437 \begin_inset CommandInset label
7439 name "tab:DiffCaptions"
7447 \begin_layout Plain Layout
7463 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7466 \begin_layout Plain Layout
7472 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7475 \begin_layout Plain Layout
7482 <row endfirsthead="true">
7483 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7486 \begin_layout Plain Layout
7489 Example Phone List (ignore the names)
7494 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7497 \begin_layout Plain Layout
7503 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7506 \begin_layout Plain Layout
7513 <row endfirsthead="true">
7514 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7517 \begin_layout Plain Layout
7525 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7528 \begin_layout Plain Layout
7534 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7537 \begin_layout Plain Layout
7546 <row endhead="true">
7547 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7550 \begin_layout Plain Layout
7554 \begin_layout Plain Layout
7558 caption*{Continued Example Phone List}
7572 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7575 \begin_layout Plain Layout
7581 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7584 \begin_layout Plain Layout
7591 <row endhead="true">
7592 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7595 \begin_layout Plain Layout
7603 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7606 \begin_layout Plain Layout
7612 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7615 \begin_layout Plain Layout
7622 <row endhead="true">
7623 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7626 \begin_layout Plain Layout
7634 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7637 \begin_layout Plain Layout
7643 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7646 \begin_layout Plain Layout
7655 <row endfoot="true">
7656 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7659 \begin_layout Plain Layout
7660 continued on next page
7665 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7668 \begin_layout Plain Layout
7674 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7677 \begin_layout Plain Layout
7685 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7688 \begin_layout Plain Layout
7696 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7699 \begin_layout Plain Layout
7705 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7708 \begin_layout Plain Layout
7716 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7719 \begin_layout Plain Layout
7727 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7730 \begin_layout Plain Layout
7736 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7739 \begin_layout Plain Layout
7747 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7750 \begin_layout Plain Layout
7758 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7761 \begin_layout Plain Layout
7767 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7770 \begin_layout Plain Layout
7778 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7781 \begin_layout Plain Layout
7789 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7792 \begin_layout Plain Layout
7798 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7801 \begin_layout Plain Layout
7809 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7812 \begin_layout Plain Layout
7820 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7823 \begin_layout Plain Layout
7829 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7832 \begin_layout Plain Layout
7840 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7843 \begin_layout Plain Layout
7851 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7854 \begin_layout Plain Layout
7860 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7863 \begin_layout Plain Layout
7871 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7874 \begin_layout Plain Layout
7882 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7885 \begin_layout Plain Layout
7891 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7894 \begin_layout Plain Layout
7902 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7905 \begin_layout Plain Layout
7913 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7916 \begin_layout Plain Layout
7922 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7925 \begin_layout Plain Layout
7933 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7936 \begin_layout Plain Layout
7944 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7947 \begin_layout Plain Layout
7953 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7956 \begin_layout Plain Layout
7964 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7967 \begin_layout Plain Layout
7975 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7978 \begin_layout Plain Layout
7984 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7987 \begin_layout Plain Layout
7995 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7998 \begin_layout Plain Layout
8006 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8009 \begin_layout Plain Layout
8015 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8018 \begin_layout Plain Layout
8026 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8029 \begin_layout Plain Layout
8037 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8040 \begin_layout Plain Layout
8046 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8049 \begin_layout Plain Layout
8057 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8060 \begin_layout Plain Layout
8068 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8071 \begin_layout Plain Layout
8077 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8080 \begin_layout Plain Layout
8088 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8091 \begin_layout Plain Layout
8099 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8102 \begin_layout Plain Layout
8108 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8111 \begin_layout Plain Layout
8119 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8122 \begin_layout Plain Layout
8131 \begin_layout Plain Layout
8142 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8145 \begin_layout Plain Layout
8151 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8154 \begin_layout Plain Layout
8162 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8165 \begin_layout Plain Layout
8173 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8176 \begin_layout Plain Layout
8182 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8185 \begin_layout Plain Layout
8193 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8196 \begin_layout Plain Layout
8204 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8207 \begin_layout Plain Layout
8213 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8216 \begin_layout Plain Layout
8224 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8227 \begin_layout Plain Layout
8235 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8238 \begin_layout Plain Layout
8244 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8247 \begin_layout Plain Layout
8255 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8258 \begin_layout Plain Layout
8266 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8269 \begin_layout Plain Layout
8275 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8278 \begin_layout Plain Layout
8286 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8289 \begin_layout Plain Layout
8297 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8300 \begin_layout Plain Layout
8306 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8309 \begin_layout Plain Layout
8317 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8320 \begin_layout Plain Layout
8328 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8331 \begin_layout Plain Layout
8337 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8340 \begin_layout Plain Layout
8348 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8351 \begin_layout Plain Layout
8359 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8362 \begin_layout Plain Layout
8368 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8371 \begin_layout Plain Layout
8379 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8382 \begin_layout Plain Layout
8390 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8393 \begin_layout Plain Layout
8399 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8402 \begin_layout Plain Layout
8410 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8413 \begin_layout Plain Layout
8421 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8424 \begin_layout Plain Layout
8430 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8433 \begin_layout Plain Layout
8441 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8444 \begin_layout Plain Layout
8452 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8455 \begin_layout Plain Layout
8461 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8464 \begin_layout Plain Layout
8472 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8475 \begin_layout Plain Layout
8483 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8486 \begin_layout Plain Layout
8492 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8495 \begin_layout Plain Layout
8503 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8506 \begin_layout Plain Layout
8514 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8517 \begin_layout Plain Layout
8523 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8526 \begin_layout Plain Layout
8534 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8537 \begin_layout Plain Layout
8545 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8548 \begin_layout Plain Layout
8554 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8557 \begin_layout Plain Layout
8565 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8568 \begin_layout Plain Layout
8576 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8579 \begin_layout Plain Layout
8585 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8588 \begin_layout Plain Layout
8596 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8599 \begin_layout Plain Layout
8607 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8610 \begin_layout Plain Layout
8616 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8619 \begin_layout Plain Layout
8627 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8630 \begin_layout Plain Layout
8638 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8641 \begin_layout Plain Layout
8647 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8650 \begin_layout Plain Layout
8658 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8661 \begin_layout Plain Layout
8667 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8670 \begin_layout Plain Layout
8676 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8679 \begin_layout Plain Layout
8687 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8690 \begin_layout Plain Layout
8698 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8701 \begin_layout Plain Layout
8707 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8710 \begin_layout Plain Layout
8718 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8721 \begin_layout Plain Layout
8729 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8732 \begin_layout Plain Layout
8738 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8741 \begin_layout Plain Layout
8749 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8752 \begin_layout Plain Layout
8760 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8763 \begin_layout Plain Layout
8769 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8772 \begin_layout Plain Layout
8780 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8783 \begin_layout Plain Layout
8791 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8794 \begin_layout Plain Layout
8800 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8803 \begin_layout Plain Layout
8811 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8814 \begin_layout Plain Layout
8822 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8825 \begin_layout Plain Layout
8831 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8834 \begin_layout Plain Layout
8842 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8845 \begin_layout Plain Layout
8853 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8856 \begin_layout Plain Layout
8862 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8865 \begin_layout Plain Layout
8873 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8876 \begin_layout Plain Layout
8884 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8887 \begin_layout Plain Layout
8893 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8896 \begin_layout Plain Layout
8904 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8907 \begin_layout Plain Layout
8915 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8918 \begin_layout Plain Layout
8924 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8927 \begin_layout Plain Layout
8935 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8938 \begin_layout Plain Layout
8946 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8949 \begin_layout Plain Layout
8955 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8958 \begin_layout Plain Layout
8966 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8969 \begin_layout Plain Layout
8977 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8980 \begin_layout Plain Layout
8986 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8989 \begin_layout Plain Layout
8997 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9000 \begin_layout Plain Layout
9008 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9011 \begin_layout Plain Layout
9017 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9020 \begin_layout Plain Layout
9028 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9031 \begin_layout Plain Layout
9039 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9042 \begin_layout Plain Layout
9048 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9051 \begin_layout Plain Layout
9059 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9062 \begin_layout Plain Layout
9070 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9073 \begin_layout Plain Layout
9079 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9082 \begin_layout Plain Layout
9090 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9093 \begin_layout Plain Layout
9101 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9104 \begin_layout Plain Layout
9110 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9113 \begin_layout Plain Layout
9121 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9124 \begin_layout Plain Layout
9132 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9135 \begin_layout Plain Layout
9141 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9144 \begin_layout Plain Layout
9152 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9155 \begin_layout Plain Layout
9163 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9166 \begin_layout Plain Layout
9172 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9175 \begin_layout Plain Layout
9183 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9186 \begin_layout Plain Layout
9194 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9197 \begin_layout Plain Layout
9203 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9206 \begin_layout Plain Layout
9214 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9217 \begin_layout Plain Layout
9225 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9228 \begin_layout Plain Layout
9234 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9237 \begin_layout Plain Layout
9245 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9248 \begin_layout Plain Layout
9256 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9259 \begin_layout Plain Layout
9265 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9268 \begin_layout Plain Layout
9276 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9279 \begin_layout Plain Layout
9287 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9290 \begin_layout Plain Layout
9296 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9299 \begin_layout Plain Layout
9313 \begin_layout Section
9314 Special Longtable Issues
9315 \begin_inset CommandInset label
9317 name "sec:Special-Longtable-Issues"
9324 \begin_layout Subsection
9325 Longtable Calculation
9329 \begin_layout Plain Layout
9330 Longtables ! Calculation
9338 \begin_layout Standard
9339 LaTeX calculates the height of table pages and their page breaks using so
9341 Chunks are parts of tables that held at the same time in LaTeX's memory.
9342 The default value was historically set to only 20 table rows.
9343 If you are using longtables with many pages this may slow down the creation
9345 You can safely increase the chunk size to values of 100-1000 by adding
9346 this command line to your document preamble:
9349 \begin_layout Standard
9354 setcounter{LTchunksize}{100}
9357 \begin_layout Subsection
9358 Floats and Longtables
9362 \begin_layout Plain Layout
9371 \begin_layout Standard
9372 There might be problems when a float appears on the same page where a longtable
9374 To avoid such a situation, insert a
9375 \begin_inset Quotes eld
9379 \begin_inset Quotes erd
9384 Insert\SpecialChar \menuseparator
9385 Formatting\SpecialChar \menuseparator
9387 \begin_inset space ~
9392 ) before your longtable.
9395 \begin_layout Subsection
9400 \begin_layout Plain Layout
9401 Longtables ! Forced Page Breaks
9409 \begin_layout Standard
9410 By default tables are only broken between rows.
9411 If you have a cell with multiples lines and want to have a page break within
9412 the cell, insert the new line command
9413 \begin_inset Quotes eld
9425 \begin_inset Quotes erd
9428 as TeX-Code at the point of the cell where it can be broken.
9437 command you have to insert in TeX-Code as many
9438 \begin_inset Quotes eld
9446 \begin_inset Quotes erd
9449 characters as the number of the following table columns.
9454 is the character to separate table cells.
9455 Write in TeX-Code after each
9459 the content of the corresponding following cell and delete the content
9461 \begin_inset Newline newline
9472 command, insert as many
9476 characters as the number of table columns before the current column.
9478 \begin_inset space ~
9482 \begin_inset CommandInset ref
9484 reference "tab:ForcedPagebreak"
9488 the cell that should be broken is in the second column followed by another
9490 Therefore the following command was inserted in the cell as TeX-Code after
9492 \begin_inset Quotes eld
9500 \begin_inset Quotes erd
9506 \begin_layout Standard
9516 \begin_inset Newline newline
9522 \begin_layout Standard
9524 \begin_inset Quotes eld
9528 \begin_inset Quotes erd
9531 in the third column of the row was deleted.
9538 is only needed when a page break should definitely occur at this position,
9539 otherwise it would be a conditional break.
9540 If your footer row of the longtable has for a certain reason no upper line
9541 but you would have a horizontal line where the cell is broken, use this
9545 \begin_layout Standard
9553 \begin_inset Newline newline
9561 \begin_layout Standard
9562 When the cell to be broken is in the last column, the command
9565 \begin_layout Standard
9575 \begin_layout Standard
9576 must be inserted as TeX-Code at the beginning of the cell.
9577 This ensures that the part of the cell that will be displayed on the new
9578 page appears with the full width.
9581 \begin_layout Standard
9583 \begin_inset Tabular
9584 <lyxtabular version="3" rows="38" columns="3">
9585 <features islongtable="true" lastFootEmpty="true">
9586 <column alignment="left" valignment="top" width="0cm">
9587 <column alignment="left" valignment="top" width="3cm">
9588 <column alignment="center" valignment="top" width="0pt">
9589 <row caption="true">
9590 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9593 \begin_layout Plain Layout
9594 \begin_inset Caption
9596 \begin_layout Plain Layout
9597 Table with forced page break in table cell
9598 \begin_inset CommandInset label
9600 name "tab:ForcedPagebreak"
9608 \begin_layout Plain Layout
9609 Table with forced page break in table cell
9624 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9627 \begin_layout Plain Layout
9633 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9636 \begin_layout Plain Layout
9643 <row endfirsthead="true">
9644 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9647 \begin_layout Plain Layout
9650 Example Phone List (ignore the names)
9655 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9658 \begin_layout Plain Layout
9664 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9667 \begin_layout Plain Layout
9674 <row endfirsthead="true">
9675 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9678 \begin_layout Plain Layout
9686 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9689 \begin_layout Plain Layout
9695 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9698 \begin_layout Plain Layout
9707 <row endhead="true">
9708 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9711 \begin_layout Plain Layout
9715 \begin_layout Plain Layout
9719 caption*{Continued Example Phone List}
9733 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9736 \begin_layout Plain Layout
9742 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9745 \begin_layout Plain Layout
9752 <row endhead="true">
9753 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9756 \begin_layout Plain Layout
9764 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9767 \begin_layout Plain Layout
9773 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9776 \begin_layout Plain Layout
9783 <row endhead="true">
9784 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9787 \begin_layout Plain Layout
9795 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9798 \begin_layout Plain Layout
9804 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9807 \begin_layout Plain Layout
9816 <row endfoot="true">
9817 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9820 \begin_layout Plain Layout
9821 continued on next page
9826 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9829 \begin_layout Plain Layout
9835 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9838 \begin_layout Plain Layout
9846 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9849 \begin_layout Plain Layout
9857 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9860 \begin_layout Plain Layout
9866 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9869 \begin_layout Plain Layout
9877 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9880 \begin_layout Plain Layout
9888 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9891 \begin_layout Plain Layout
9897 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9900 \begin_layout Plain Layout
9908 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9911 \begin_layout Plain Layout
9919 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9922 \begin_layout Plain Layout
9928 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9931 \begin_layout Plain Layout
9939 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9942 \begin_layout Plain Layout
9950 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9953 \begin_layout Plain Layout
9959 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9962 \begin_layout Plain Layout
9970 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9973 \begin_layout Plain Layout
9981 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9984 \begin_layout Plain Layout
9990 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9993 \begin_layout Plain Layout
10001 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10004 \begin_layout Plain Layout
10012 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10015 \begin_layout Plain Layout
10021 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10024 \begin_layout Plain Layout
10032 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10035 \begin_layout Plain Layout
10043 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10046 \begin_layout Plain Layout
10052 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10055 \begin_layout Plain Layout
10063 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10066 \begin_layout Plain Layout
10074 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10077 \begin_layout Plain Layout
10083 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10086 \begin_layout Plain Layout
10094 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10097 \begin_layout Plain Layout
10105 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10108 \begin_layout Plain Layout
10114 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10117 \begin_layout Plain Layout
10125 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10128 \begin_layout Plain Layout
10136 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10139 \begin_layout Plain Layout
10145 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10148 \begin_layout Plain Layout
10156 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10159 \begin_layout Plain Layout
10167 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10170 \begin_layout Plain Layout
10176 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10179 \begin_layout Plain Layout
10187 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10190 \begin_layout Plain Layout
10198 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10201 \begin_layout Plain Layout
10207 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10210 \begin_layout Plain Layout
10218 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10221 \begin_layout Plain Layout
10229 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10232 \begin_layout Plain Layout
10238 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10241 \begin_layout Plain Layout
10249 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10252 \begin_layout Plain Layout
10260 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10263 \begin_layout Plain Layout
10269 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10272 \begin_layout Plain Layout
10280 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10283 \begin_layout Plain Layout
10291 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10294 \begin_layout Plain Layout
10300 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10303 \begin_layout Plain Layout
10311 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10314 \begin_layout Plain Layout
10322 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10325 \begin_layout Plain Layout
10331 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10334 \begin_layout Plain Layout
10342 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10345 \begin_layout Plain Layout
10353 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10356 \begin_layout Plain Layout
10362 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10365 \begin_layout Plain Layout
10373 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10376 \begin_layout Plain Layout
10384 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10387 \begin_layout Plain Layout
10393 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10396 \begin_layout Plain Layout
10404 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10407 \begin_layout Plain Layout
10415 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10418 \begin_layout Plain Layout
10424 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10427 \begin_layout Plain Layout
10435 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10438 \begin_layout Plain Layout
10446 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10449 \begin_layout Plain Layout
10455 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10458 \begin_layout Plain Layout
10466 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10469 \begin_layout Plain Layout
10477 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10480 \begin_layout Plain Layout
10486 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10489 \begin_layout Plain Layout
10497 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10500 \begin_layout Plain Layout
10508 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10511 \begin_layout Plain Layout
10517 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10520 \begin_layout Plain Layout
10528 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10531 \begin_layout Plain Layout
10539 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10542 \begin_layout Plain Layout
10544 Fürst von Montecompatri, 11.
10545 Fürst von Sulmona und Vivaro, 10.
10546 Fürst von Rossano, 5.
10547 Herzog von Canemorte, 11.
10548 Herzog von Palombara, 5.
10549 Herzog von Castelchiodato,
10553 \begin_layout Plain Layout
10564 \begin_layout Plain Layout
10572 Herzog von Poggionativo, 11.
10573 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10574 Graf von Valinfreda, 11.
10575 Baron von Cropalati, 11.
10576 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10581 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10584 \begin_layout Plain Layout
10592 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10595 \begin_layout Plain Layout
10603 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10606 \begin_layout Plain Layout
10612 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10615 \begin_layout Plain Layout
10623 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10626 \begin_layout Plain Layout
10634 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10637 \begin_layout Plain Layout
10643 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10646 \begin_layout Plain Layout
10654 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10657 \begin_layout Plain Layout
10665 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10668 \begin_layout Plain Layout
10674 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10677 \begin_layout Plain Layout
10685 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10688 \begin_layout Plain Layout
10696 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10699 \begin_layout Plain Layout
10705 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10708 \begin_layout Plain Layout
10716 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10719 \begin_layout Plain Layout
10727 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10730 \begin_layout Plain Layout
10736 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10739 \begin_layout Plain Layout
10747 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10750 \begin_layout Plain Layout
10758 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10761 \begin_layout Plain Layout
10767 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10770 \begin_layout Plain Layout
10778 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10781 \begin_layout Plain Layout
10789 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10792 \begin_layout Plain Layout
10798 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10801 \begin_layout Plain Layout
10809 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10812 \begin_layout Plain Layout
10820 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10823 \begin_layout Plain Layout
10829 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10832 \begin_layout Plain Layout
10846 \begin_layout Section
10847 Multiple Lines Columns and Rows
10850 \begin_layout Subsection
10851 Multiple Lines in Table Cells
10852 \begin_inset CommandInset label
10854 name "sub:Multiple-Lines-in"
10862 \begin_layout Plain Layout
10863 Multiple Lines in Table Cells
10872 \begin_layout Plain Layout
10881 \begin_layout Standard
10883 \begin_inset Float table
10889 \begin_layout Plain Layout
10890 \begin_inset Caption
10892 \begin_layout Plain Layout
10893 \begin_inset CommandInset label
10895 name "tab:Table-with-multiple"
10899 Table with multiple lines in cells
10907 \begin_layout Plain Layout
10909 \begin_inset Tabular
10910 <lyxtabular version="3" rows="3" columns="3">
10912 <column alignment="center" valignment="middle" width="2.5cm">
10913 <column alignment="center" valignment="middle" width="0">
10914 <column alignment="center" valignment="middle" width="0">
10916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10919 \begin_layout Plain Layout
10921 \begin_inset Newline linebreak
10929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10932 \begin_layout Plain Layout
10938 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10941 \begin_layout Plain Layout
10949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10952 \begin_layout Plain Layout
10958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10961 \begin_layout Plain Layout
10967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10970 \begin_layout Plain Layout
10978 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10981 \begin_layout Plain Layout
10987 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10990 \begin_layout Plain Layout
10996 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10999 \begin_layout Plain Layout
11018 \begin_layout Standard
11019 Setting a fixed width for a column enables you to enter text as a paragraph
11020 with multiple lines and hyphenation.
11023 \begin_layout Standard
11025 \begin_inset space ~
11029 \begin_inset CommandInset ref
11031 reference "tab:Table-with-multiple"
11035 , create a 3×3 table, mark the first cell and right-click on it.
11036 In the appearing table dialog we set a cell width of 2.5
11037 \begin_inset space \thinspace{}
11040 cm and choose centered for the vertical and horizontal alignment.
11041 The vertical alignment is used for all cells of the row.
11042 As our text is smaller than 2.5
11043 \begin_inset space \thinspace{}
11046 cm, only one line will appear.
11047 To get two lines, a justified line break (shortcut
11050 arg "newline-insert linebreak"
11054 If the text is wider than the set cell width, it will automatically be
11055 broken to several lines.
11058 \begin_layout Standard
11059 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11060 by LaTeX if it is the first entry.
11061 Therefore you need to insert something to prevent the word not being the
11063 So add a horizontal space of 0
11064 \begin_inset space \thinspace{}
11067 pt before the word.
11068 As the space is zero, it doesn't change the output.
11070 \begin_inset space ~
11074 \begin_inset CommandInset ref
11076 reference "tab:Table-with-and"
11083 \begin_layout Standard
11084 \begin_inset Float table
11090 \begin_layout Plain Layout
11091 \begin_inset Caption
11093 \begin_layout Plain Layout
11094 \begin_inset CommandInset label
11096 name "tab:Table-with-and"
11100 Table with and without hyphenation
11108 \begin_layout Plain Layout
11109 \begin_inset space \hfill{}
11113 \begin_inset Tabular
11114 <lyxtabular version="3" rows="3" columns="3">
11116 <column alignment="center" valignment="middle" width="2.5cm">
11117 <column alignment="center" valignment="middle" width="0">
11118 <column alignment="center" valignment="middle" width="0">
11120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11123 \begin_layout Plain Layout
11124 verylongtablecellword
11129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11132 \begin_layout Plain Layout
11138 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11141 \begin_layout Plain Layout
11149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11152 \begin_layout Plain Layout
11158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11161 \begin_layout Plain Layout
11167 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11170 \begin_layout Plain Layout
11178 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11181 \begin_layout Plain Layout
11187 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11190 \begin_layout Plain Layout
11196 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11199 \begin_layout Plain Layout
11211 \begin_inset space \hfill{}
11215 \begin_inset Tabular
11216 <lyxtabular version="3" rows="3" columns="3">
11218 <column alignment="center" valignment="middle" width="2.5cm">
11219 <column alignment="center" valignment="middle" width="0">
11220 <column alignment="center" valignment="middle" width="0">
11222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11225 \begin_layout Plain Layout
11226 \begin_inset space \hspace{}
11230 verylongtablecellword
11235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11238 \begin_layout Plain Layout
11244 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11247 \begin_layout Plain Layout
11255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11258 \begin_layout Plain Layout
11264 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11267 \begin_layout Plain Layout
11273 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11276 \begin_layout Plain Layout
11284 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11287 \begin_layout Plain Layout
11293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11296 \begin_layout Plain Layout
11302 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11305 \begin_layout Plain Layout
11317 \begin_inset space \hfill{}
11328 \begin_layout Subsection
11330 \begin_inset CommandInset label
11332 name "sub:Multicolumns"
11340 \begin_layout Plain Layout
11350 \begin_layout Plain Layout
11351 Table ! Multicolumns
11359 \begin_layout Subsubsection
11363 \begin_layout Standard
11364 To merge cells over multiple columns, select as many cells within a row
11365 as you want to merge and use either the table-toolbar button
11366 \begin_inset Graphics
11367 filename ../images/tabular-feature_multicolumn.png
11369 scaleBeforeRotation
11375 Edit\SpecialChar \menuseparator
11376 Table\SpecialChar \menuseparator
11379 , or right click on the marked cells and choose
11383 in the appearing context menu.
11386 \begin_layout Standard
11387 Multicolumns have there own cell settings.
11388 That means changing cell borders, cell alignment, and the width only affects
11390 Here is an example table with a multicolumn cell in the first row and one
11391 in the last row without the upper border:
11394 \begin_layout Standard
11396 \begin_inset Tabular
11397 <lyxtabular version="3" rows="3" columns="4">
11398 <features firstHeadTopDL="true" firstHeadBottomDL="true">
11399 <column alignment="center" valignment="top" width="0pt">
11400 <column alignment="center" valignment="middle" width="0">
11401 <column alignment="center" valignment="top" width="0in">
11402 <column alignment="center" valignment="top" width="0pt">
11404 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11407 \begin_layout Plain Layout
11413 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11416 \begin_layout Plain Layout
11422 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11425 \begin_layout Plain Layout
11431 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11434 \begin_layout Plain Layout
11442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11445 \begin_layout Plain Layout
11460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11463 \begin_layout Plain Layout
11469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11472 \begin_layout Plain Layout
11478 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11481 \begin_layout Plain Layout
11489 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11492 \begin_layout Plain Layout
11498 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11501 \begin_layout Plain Layout
11507 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11510 \begin_layout Plain Layout
11516 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11519 \begin_layout Plain Layout
11533 \begin_layout Subsubsection
11534 Multicolumn Calculations
11535 \begin_inset CommandInset label
11537 name "sub:Multicolumn-Calculations"
11545 \begin_layout Plain Layout
11546 Multicolumns ! Calculations
11554 \begin_layout Standard
11555 LyX supports multicolumns directly, but we have to take account of the cell
11556 width of the columns spanned by the multicolumn cell.
11559 \begin_layout Standard
11560 \begin_inset Float table
11566 \begin_layout Plain Layout
11567 \begin_inset Caption
11569 \begin_layout Plain Layout
11570 \begin_inset CommandInset label
11572 name "tab:Table-with-centered"
11576 Table with centered multicolumn text above two columns that have exactly
11577 half the width of the multicolumn cell
11578 \begin_inset OptArg
11581 \begin_layout Plain Layout
11582 Perfect multicolumn table
11595 \begin_layout Plain Layout
11597 \begin_inset Tabular
11598 <lyxtabular version="3" rows="3" columns="3">
11600 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11601 <column alignment="center" valignment="middle" width="0">
11602 <column alignment="center" valignment="top" width="0">
11604 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11607 \begin_layout Plain Layout
11608 multiple lines multicolumn
11613 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11616 \begin_layout Plain Layout
11622 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11625 \begin_layout Plain Layout
11633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11636 \begin_layout Plain Layout
11642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11645 \begin_layout Plain Layout
11651 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11654 \begin_layout Plain Layout
11662 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11665 \begin_layout Plain Layout
11671 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11674 \begin_layout Plain Layout
11680 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11683 \begin_layout Plain Layout
11702 \begin_layout Standard
11703 To create for example Table
11704 \begin_inset space ~
11708 \begin_inset CommandInset ref
11710 reference "tab:Table-with-centered"
11714 , mark the first two cells in the first row of a 3×3 table and right-click
11716 Now choose for this cell
11725 \begin_inset space \thinspace{}
11728 cm in the table dialog.
11729 The merged columns should have exactly half the width of the multicolumn
11730 cell, so that you would set a width of 1.25
11731 \begin_inset space \thinspace{}
11734 cm for the first column.
11735 The second column has then automatically a width of 1.25
11736 \begin_inset space \thinspace{}
11739 cm (multicolumn width - width of first column).
11740 This was done for Table
11741 \begin_inset space ~
11745 \begin_inset CommandInset ref
11747 reference "tab:Table-without-half"
11754 \begin_layout Standard
11755 \begin_inset Float table
11760 \begin_layout Plain Layout
11761 \begin_inset Caption
11763 \begin_layout Plain Layout
11764 \begin_inset CommandInset label
11766 name "tab:Table-without-half"
11770 Table where the spanned table columns are 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 is not half the width of the multicolumn
11898 cell, it is a bit bigger.
11899 The reason is that the specified 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 specified.
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}$
11927 which the user needs to set when
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 Unlike normal tables, formal tables have no vertical table lines.
12888 The horizontal table lines can be set as for normal tables but they appear
12889 with different widths 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 do not span all table columns can be created by setting a table
12970 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 currently not supported by LyX so you have to use TeX-Code to be able
13004 s can manually be created by inserting the command as TeX-Code as the 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 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 features, refer to the manual of the LaTeX-pack
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 will see, the content of the first and last table row is not correctly
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 After 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 required value for 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 contained 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, as 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 after 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 in 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 being loaded twice the command
16342 is used in the above command.)
16345 \begin_layout Standard
16346 If you are using font sizes larger than the normal size, the table borders
16347 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 illustrates 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, the following
16873 LaTeX-argument was used 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 as you would want.
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 required width for spanned columns as 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 required width so that each spanned cell has the same
17744 \begin_layout Standard
17748 \begin_layout Standard
17751 S{width of multicolumn cell}{number of spanned columns}
17754 \begin_layout Standard
17755 as LaTeX-argument of the column.
17758 \begin_layout Standard
17759 \begin_inset VSpace bigskip
17765 \begin_layout Standard
17766 For colored columns, you can define
17769 \begin_layout Standard
17774 newcolumntype{K}[1]{>{
17781 \begin_layout Standard
17783 \begin_inset Quotes eld
17787 \begin_inset Quotes erd
17790 at the end creates a column with a flexible width whose text is horizontally
17795 \begin_layout Standard
17801 \begin_layout Standard
17805 \begin_layout Standard
17806 \begin_inset VSpace bigskip
17812 \begin_layout Standard
17814 \begin_inset space ~
17818 \begin_inset CommandInset ref
17820 reference "tab:Table-using-user-defined"
17824 use the LaTeX-arguments
17827 \begin_layout Standard
17833 \begin_layout Standard
17834 for the first column and the multicolumn,
17837 \begin_layout Standard
17843 \begin_layout Standard
17844 for the last column, and
17847 \begin_layout Standard
17853 \begin_layout Standard
17854 for the cells in the second column.
17857 \begin_layout Standard
17858 \begin_inset Float table
17864 \begin_layout Plain Layout
17865 \begin_inset Caption
17867 \begin_layout Plain Layout
17868 \begin_inset CommandInset label
17870 name "tab:Table-using-user-defined"
17874 Table using user-defined table formats
17882 \begin_layout Plain Layout
17884 \begin_inset Tabular
17885 <lyxtabular version="3" rows="3" columns="4">
17887 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17888 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17889 <column alignment="center" valignment="middle" width="0">
17890 <column alignment="center" valignment="middle" width="0" special="K{red}">
17892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17895 \begin_layout Plain Layout
17896 verylongtablecellword
17901 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17904 \begin_layout Plain Layout
17905 multiple lines multicolumn
17910 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17913 \begin_layout Plain Layout
17919 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17922 \begin_layout Plain Layout
17930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17933 \begin_layout Plain Layout
17939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17942 \begin_layout Plain Layout
17948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17951 \begin_layout Plain Layout
17957 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17960 \begin_layout Plain Layout
17968 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17971 \begin_layout Plain Layout
17977 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17980 \begin_layout Plain Layout
17986 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17989 \begin_layout Plain Layout
17995 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17998 \begin_layout Plain Layout
18017 \begin_layout Subsection
18019 \begin_inset CommandInset label
18021 name "sub:Line-Thickness"
18029 \begin_layout Plain Layout
18030 Table Customization ! Line Thickness
18038 \begin_layout Standard
18039 The line thickness for all lines in a table can be adjusted with the length
18047 To set for example a line thickness of 1.5
18048 \begin_inset space \thinspace{}
18052 \begin_inset space ~
18056 \begin_inset CommandInset ref
18058 reference "tab:Table-with-1.5"
18062 , insert the command
18065 \begin_layout Standard
18072 arrayrulewidth}{1.5pt}
18075 \begin_layout Standard
18076 in TeX-Code before the table or table float.
18077 The changed thickness is valid for all subsequent tables.
18078 To use the default value again, set
18085 \begin_inset space \thinspace{}
18088 pt in TeX-Code after the table or table float.
18091 \begin_layout Standard
18095 \begin_layout Plain Layout
18101 arrayrulewidth}{1.5pt}
18107 \begin_inset Float table
18112 \begin_layout Plain Layout
18113 \begin_inset Caption
18115 \begin_layout Plain Layout
18116 \begin_inset CommandInset label
18118 name "tab:Table-with-1.5"
18123 \begin_inset space \thinspace{}
18134 \begin_layout Plain Layout
18136 \begin_inset Tabular
18137 <lyxtabular version="3" rows="3" columns="3">
18139 <column alignment="center" valignment="top" width="0">
18140 <column alignment="center" valignment="top" width="0">
18141 <column alignment="center" valignment="top" width="0">
18143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18146 \begin_layout Plain Layout
18152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18155 \begin_layout Plain Layout
18161 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18164 \begin_layout Plain Layout
18172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18175 \begin_layout Plain Layout
18181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18184 \begin_layout Plain Layout
18190 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18193 \begin_layout Plain Layout
18201 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18204 \begin_layout Plain Layout
18210 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18213 \begin_layout Plain Layout
18219 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18222 \begin_layout Plain Layout
18242 \begin_layout Plain Layout
18248 arrayrulewidth}{0.4pt}
18256 \begin_layout Standard
18257 \begin_inset VSpace bigskip
18260 To set the line thickness to 1.5
18261 \begin_inset space \thinspace{}
18264 pt only for horizontal lines, as in Table
18265 \begin_inset space ~
18269 \begin_inset CommandInset ref
18271 reference "tab:Table-with-horizontal"
18275 , insert these commands in TeX-Code before the table or table float:
18278 \begin_layout Standard
18288 \begin_inset Newline newline
18296 \begin_inset Newline newline
18305 arrayrulewidth 1.5pt}
18306 \begin_inset Newline newline
18317 arrayrulewidth 0.4pt}}
18320 \begin_layout Standard
18321 To return to the default line thickness, insert this command in TeX-Code
18322 after the table or table float:
18325 \begin_layout Standard
18337 \begin_layout Standard
18341 \begin_layout Plain Layout
18352 \begin_layout Plain Layout
18361 \begin_layout Plain Layout
18369 arrayrulewidth 1.5pt}
18372 \begin_layout Plain Layout
18382 arrayrulewidth 0.4pt}}
18388 \begin_inset Float table
18393 \begin_layout Plain Layout
18394 \begin_inset Caption
18396 \begin_layout Plain Layout
18397 \begin_inset CommandInset label
18399 name "tab:Table-with-horizontal"
18404 \begin_inset space \thinspace{}
18407 pt thick horizontal lines
18415 \begin_layout Plain Layout
18417 \begin_inset Tabular
18418 <lyxtabular version="3" rows="3" columns="3">
18420 <column alignment="center" valignment="top" width="0">
18421 <column alignment="center" valignment="top" width="0">
18422 <column alignment="center" valignment="top" width="0">
18424 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18427 \begin_layout Plain Layout
18433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18436 \begin_layout Plain Layout
18442 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18445 \begin_layout Plain Layout
18453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18456 \begin_layout Plain Layout
18462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18465 \begin_layout Plain Layout
18471 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18474 \begin_layout Plain Layout
18482 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18485 \begin_layout Plain Layout
18491 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18494 \begin_layout Plain Layout
18500 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18503 \begin_layout Plain Layout
18523 \begin_layout Plain Layout
18539 \begin_layout Standard
18540 \begin_inset VSpace bigskip
18543 To set the line thickness to 1.5
18544 \begin_inset space \thinspace{}
18547 pt only for vertical lines, create the following column format in the document
18548 preamble, according to the description in section
18549 \begin_inset space ~
18553 \begin_inset CommandInset ref
18555 reference "sub:Customized-Format"
18562 \begin_layout Standard
18567 newcolumntype{V}{!{
18569 vrule width 1.5pt}}
18572 \begin_layout Standard
18574 \begin_inset space ~
18578 \begin_inset CommandInset ref
18580 reference "tab:Table-with-vertical"
18587 \begin_layout Standard
18593 \begin_layout Standard
18594 was used for the last column and
18597 \begin_layout Standard
18603 \begin_layout Standard
18604 for the other columns.
18607 \begin_layout Standard
18608 \begin_inset Float table
18613 \begin_layout Plain Layout
18614 \begin_inset Caption
18616 \begin_layout Plain Layout
18617 \begin_inset CommandInset label
18619 name "tab:Table-with-vertical"
18624 \begin_inset space \thinspace{}
18627 pt thick vertical lines
18635 \begin_layout Plain Layout
18637 \begin_inset Tabular
18638 <lyxtabular version="3" rows="3" columns="3">
18640 <column alignment="center" valignment="top" width="0" special="Vc">
18641 <column alignment="center" valignment="top" width="0" special="Vc">
18642 <column alignment="center" valignment="top" width="0" special="VcV">
18644 <cell alignment="center" valignment="top" topline="true" usebox="none">
18647 \begin_layout Plain Layout
18653 <cell alignment="center" valignment="top" topline="true" usebox="none">
18656 \begin_layout Plain Layout
18662 <cell alignment="center" valignment="top" topline="true" usebox="none">
18665 \begin_layout Plain Layout
18673 <cell alignment="center" valignment="top" topline="true" usebox="none">
18676 \begin_layout Plain Layout
18682 <cell alignment="center" valignment="top" topline="true" usebox="none">
18685 \begin_layout Plain Layout
18691 <cell alignment="center" valignment="top" topline="true" usebox="none">
18694 \begin_layout Plain Layout
18702 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18705 \begin_layout Plain Layout
18711 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18714 \begin_layout Plain Layout
18720 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18723 \begin_layout Plain Layout
18742 \begin_layout Subsection
18747 \begin_layout Plain Layout
18748 Table Customization ! Dashed Lines
18756 \begin_layout Standard
18760 \begin_layout Plain Layout
18770 \begin_inset Note Note
18773 \begin_layout Plain Layout
18774 The following section will only be displayed when the LaTeX-package
18786 \begin_layout Standard
18787 \begin_inset Float table
18793 \begin_layout Plain Layout
18794 \begin_inset Caption
18796 \begin_layout Plain Layout
18797 \begin_inset CommandInset label
18799 name "tab:Table-with-dashed"
18803 Table with dashed lines
18811 \begin_layout Plain Layout
18813 \begin_inset Tabular
18814 <lyxtabular version="3" rows="5" columns="5">
18816 <column alignment="center" valignment="top" width="0">
18817 <column alignment="center" valignment="top" width="0">
18818 <column alignment="center" valignment="top" width="0" special=":c">
18819 <column alignment="center" valignment="top" width="0">
18820 <column alignment="center" valignment="top" width="0">
18822 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18825 \begin_layout Plain Layout
18831 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18834 \begin_layout Plain Layout
18840 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18843 \begin_layout Plain Layout
18849 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18852 \begin_layout Plain Layout
18858 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18861 \begin_layout Plain Layout
18869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18872 \begin_layout Plain Layout
18878 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18881 \begin_layout Plain Layout
18887 <cell alignment="center" valignment="top" topline="true" usebox="none">
18890 \begin_layout Plain Layout
18896 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18899 \begin_layout Plain Layout
18905 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18908 \begin_layout Plain Layout
18916 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18919 \begin_layout Plain Layout
18923 \begin_layout Plain Layout
18937 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18940 \begin_layout Plain Layout
18946 <cell alignment="center" valignment="top" usebox="none">
18949 \begin_layout Plain Layout
18955 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18958 \begin_layout Plain Layout
18964 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18967 \begin_layout Plain Layout
18975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18978 \begin_layout Plain Layout
18982 \begin_layout Plain Layout
18996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18999 \begin_layout Plain Layout
19005 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
19008 \begin_layout Plain Layout
19014 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19017 \begin_layout Plain Layout
19023 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19026 \begin_layout Plain Layout
19034 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19037 \begin_layout Plain Layout
19043 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19046 \begin_layout Plain Layout
19052 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19055 \begin_layout Plain Layout
19061 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19064 \begin_layout Plain Layout
19070 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19073 \begin_layout Plain Layout
19092 \begin_layout Standard
19093 LyX does not natively support dashed lines, so you have to use TeX-Code.
19094 As a prerequisite the LaTeX-package
19102 \begin_layout Plain Layout
19103 LaTeX-packages ! arydshln
19108 must be loaded in the document preamble with the command
19111 \begin_layout Standard
19116 usepackage{arydshln}
19119 \begin_layout Standard
19120 To make a vertical line dashed, enter the colon
19121 \begin_inset Quotes eld
19125 \begin_inset Quotes erd
19128 together with the character for the horizontal alignment as LaTeX-argument
19129 in the table cell dialog.
19132 \begin_layout Standard
19133 For a horizontal dashed line add the command
19136 \begin_layout Standard
19144 \begin_layout Standard
19145 in TeX-Code as first element of the first cell in the table row.
19148 \begin_layout Standard
19149 For dashed multicolumn lines use the command
19152 \begin_layout Standard
19157 cdashline{line number
19162 \begin_layout Standard
19163 in TeX-Code as the first element of the first cell in the table row.
19164 If you have for example a multicolumn spanning columns 2 to 4 and you want
19165 to have a dashed line above, add the command
19168 \begin_layout Standard
19176 \begin_layout Standard
19177 as the first element of the first cell in the row of the multicolumn.
19180 \begin_layout Standard
19181 \begin_inset VSpace bigskip
19187 \begin_layout Standard
19189 \begin_inset space ~
19193 \begin_inset CommandInset ref
19195 reference "tab:Table-with-dashed"
19200 \begin_inset Quotes eld
19208 \begin_inset Quotes erd
19211 as LaTeX-argument of the third column.
19212 The TeX-Code command
19218 was inserted in the first cell of the third row and the TeX-Code command
19219 \begin_inset Newline newline
19228 was inserted in the first cell of the fourth row.
19231 \begin_layout Standard
19232 \begin_inset Note Greyedout
19235 \begin_layout Plain Layout
19244 is apparently not compatible with the LaTeX-package
19252 \begin_layout Plain Layout
19253 LaTeX-packages ! colortbl
19258 that is used for colored tables in section
19259 \begin_inset space ~
19263 \begin_inset CommandInset ref
19265 reference "sec:Colored-Tables"
19270 That means colored tables cannot have dashed lines.
19278 \begin_layout Standard
19282 \begin_layout Plain Layout
19292 \begin_inset Note Note
19295 \begin_layout Plain Layout
19296 The following will be displayed when the LaTeX-package
19308 \begin_layout Standard
19309 You need to install the package
19313 to see the content of this section in the output.
19316 \begin_layout Standard
19320 \begin_layout Plain Layout
19332 \begin_layout Chapter
19337 \begin_layout Plain Layout
19346 \begin_layout Section
19348 \begin_inset CommandInset label
19350 name "sec:FloatIntroduction"
19358 \begin_layout Plain Layout
19359 Floats ! Introduction
19367 \begin_layout Standard
19368 A float is a block of text associated with some sort of label, which doesn't
19369 have a fixed location.
19371 \begin_inset Quotes eld
19375 \begin_inset Quotes erd
19378 forward or backward a page or two, to wherever it fits best.
19386 \begin_inset space ~
19391 are also floats, because they can float to the next page when there are
19392 too many notes on the page.
19395 \begin_layout Standard
19396 Floats allow a high quality layout.
19397 Images and tables can be spread evenly to the pages to avoid white space
19398 and pages without text.
19399 As the floating often destroys the context between the text and the image/table
19400 , every float can be referenced in the text.
19401 Floats are therefore numbered.
19402 Referencing is described in section
19403 \begin_inset space ~
19407 \begin_inset CommandInset ref
19409 reference "sec:Referencing-Floats"
19416 \begin_layout Standard
19417 To insert a float, use the menu
19419 Insert\SpecialChar \menuseparator
19427 inset, a box with a label.
19428 The label will automatically be translated to the document language in
19430 After the label you can insert the caption text.
19431 The image or table is inserted above or below the caption in a separate
19432 paragraph within the float.
19433 More about the caption placement is contained in section
19434 \begin_inset space ~
19438 \begin_inset CommandInset ref
19440 reference "sec:Caption-Placement"
19445 To keep your LyX-document readable, you can open and close the float box
19446 by left-clicking on the box label.
19447 A closed float box looks like this:
19448 \begin_inset Graphics
19449 filename clipart/floatQt4.png
19451 scaleBeforeRotation
19455 – a gray button with a red label.
19458 \begin_layout Standard
19459 It is recommended that you insert floats as a separate standard paragraph
19460 to avoid possible LaTeX-errors that can occur when the surrounding text
19461 is specially formatted.
19464 \begin_layout Standard
19465 Existing figures or tables can be put into a float by highlighting them
19466 and then pressing the corresponding toolbar button for a new float.
19469 \begin_layout Section
19473 \begin_layout Standard
19474 Besides figure and table floats that are described in sections
19475 \begin_inset space ~
19479 \begin_inset CommandInset ref
19481 reference "sec:Figure-Floats"
19486 \begin_inset CommandInset ref
19488 reference "sec:Table-Floats"
19492 respectively, LyX offers the float types
19503 \begin_layout Subsection
19508 \begin_layout Plain Layout
19509 Floats ! Algorithms
19517 \begin_layout Standard
19518 \begin_inset Float algorithm
19524 \begin_layout Plain Layout
19525 \begin_inset Caption
19527 \begin_layout Plain Layout
19528 \begin_inset CommandInset label
19530 name "alg:Example-Algorithm-float"
19534 Example Algorithm float
19542 \begin_layout LyX-Code
19544 \begin_inset Newline newline
19547 Sum:= Sum + A(I); /*comment*/
19548 \begin_inset Newline newline
19552 \begin_inset VSpace -4mm
19563 \begin_layout Standard
19564 This float type is inserted with the menu
19566 Insert\SpecialChar \menuseparator
19567 Floats\SpecialChar \menuseparator
19571 It is used for program codes and descriptions of algorithms and can be
19572 seen as an alternative to program code listings that are explained in chapter
19573 \begin_inset space ~
19577 \begin_inset CommandInset ref
19579 reference "cha:Program-Code-Listings"
19584 A possible environment for algorithms is the
19588 , described in LyX's
19594 \begin_inset space ~
19598 \begin_inset CommandInset ref
19600 reference "alg:Example-Algorithm-float"
19604 is an example of an algorithm float where -4
19605 \begin_inset space \thinspace{}
19608 mm vertical space was added at the end of the float to have the bottom rule
19609 exactly below the last text line.
19612 \begin_layout Standard
19613 The float label is not automatically translated into the document language.
19614 If your document is not in English, you have to do this manually by adding
19615 the following line to the document preamble
19620 \begin_layout Standard
19625 floatname{algorithm}{your
19626 \begin_inset space ~
19632 \begin_layout Standard
19636 \begin_inset space ~
19642 \begin_inset Quotes eld
19650 \begin_inset Quotes erd
19656 \begin_layout Standard
19657 To insert the list of algorithms you can use the menu
19659 Insert\SpecialChar \menuseparator
19661 \begin_inset space \thinspace{}
19665 \begin_inset space \thinspace{}
19668 TOC\SpecialChar \menuseparator
19671 when your document has the same language as LyX's menu names.
19672 In other cases use this command in TeX-Code instead:
19675 \begin_layout Standard
19680 listof{algorithm}{your
19681 \begin_inset space ~
19687 \begin_layout Standard
19691 \begin_inset space ~
19697 \begin_inset Quotes eld
19705 \begin_inset Quotes erd
19711 \begin_layout Standard
19712 Algorithm floats are not by default numbered in the scheme
19713 \begin_inset Quotes eld
19717 \begin_inset Quotes erd
19720 as is the case for table and figure floats in many document-classes.
19721 To number algorithm floats in the same scheme, add this command to your
19725 \begin_layout Standard
19730 numberwithin{algorithm}{chapter}
19733 \begin_layout Standard
19734 To be able to use the command
19743 \begin_inset space ~
19748 in the document settings the option
19751 \begin_inset space ~
19755 \begin_inset space ~
19759 \begin_inset space ~
19767 \begin_layout Subsection
19772 \begin_layout Plain Layout
19773 Floats ! Wrap Floats
19781 \begin_layout Standard
19782 \begin_inset Wrap figure
19789 \begin_layout Plain Layout
19790 \begin_inset Graphics
19791 filename clipart/mobius.eps
19793 scaleBeforeRotation
19794 rotateOrigin center
19801 \begin_layout Plain Layout
19802 \begin_inset Caption
19804 \begin_layout Plain Layout
19805 \begin_inset CommandInset label
19807 name "fig:This-is-a"
19811 This is a figure wrap float.
19821 This float type is used if you want to wrap text around a figure or table
19822 so that it only occupies some fraction of the column width.
19823 It can be inserted using the menu
19825 Insert\SpecialChar \menuseparator
19826 Floats\SpecialChar \menuseparator
19828 \begin_inset space ~
19832 \begin_inset space ~
19840 \begin_inset space ~
19844 \begin_inset space ~
19849 if the LaTeX-package
19857 \begin_layout Plain Layout
19858 LaTeX-packages ! wrapfig
19862 \begin_layout Plain Layout
19880 \begin_layout Plain Layout
19881 Installing a LaTeX-package is explained it in the
19884 \begin_inset space ~
19894 The settings of the float can be modified by right-clicking on the float
19896 The mandatory settings are the float
19909 that specifies how much the float is set into the paragraph
19910 \begin_inset space \thinspace{}
19914 \begin_inset space \thinspace{}
19917 page margin, and the
19920 \begin_inset space ~
19925 that specifies how many text lines the float will approximately need.
19926 The line span is often hard to approximate; so it is better only to use
19927 it when you encounter float placement problems.
19928 You can furthermore decide if LaTeX is allowed to let the float float within
19929 the paragraph or to surrounding paragraphs.
19931 \begin_inset space ~
19935 \begin_inset CommandInset ref
19937 reference "fig:This-is-a"
19941 is an example text wrap float with a width of 40
19942 \begin_inset space \thinspace{}
19946 \begin_inset space \thinspace{}
19949 cm overhang, set to the left.
19953 \begin_layout Plain Layout
19954 Available units are explained in appendix
19955 \begin_inset space ~
19959 \begin_inset CommandInset ref
19961 reference "cha:Units-available-in"
19973 \begin_layout Standard
19974 \begin_inset Note Greyedout
19977 \begin_layout Plain Layout
19983 \begin_inset space ~
19986 wrap float floats are fragile! E.
19987 \begin_inset space \thinspace{}
19991 \begin_inset space \space{}
19994 having a figure too close to the bottom of the page can mess things up in
19995 such a way that the float does not appear in the output or that it is placed
19996 over some other text.
20004 \begin_layout Standard
20008 \begin_layout Itemize
20009 Wrap floats should not be placed in paragraphs that run over a page break.
20010 That means that wrap floats are better inserted in their exact place when
20011 the document is almost finished and you are able to estimate where page
20012 breaks will appear.
20015 \begin_layout Itemize
20016 Wrap floats should either be placed in their own paragraph before the paragraph
20017 where they should wrap into or within a paragraph.
20020 \begin_layout Itemize
20021 Wrap floats in consecutive paragraphs may cause troubles, so ensure that
20022 there is a text paragraph between them as separator.
20025 \begin_layout Itemize
20026 Wrap floats are not allowed in section headings or tables.
20029 \begin_layout Section
20034 \begin_layout Plain Layout
20043 \begin_layout Standard
20044 Floats are usually numbered either independently from the sections the floats
20045 are in, or in the scheme
20046 \begin_inset Quotes eld
20050 \begin_inset Quotes erd
20054 \begin_inset Quotes eld
20058 \begin_inset Quotes erd
20062 This depends on the document class used.
20065 \begin_layout Standard
20066 To change section-independent numbering, you can use this command in the
20070 \begin_layout Standard
20082 \begin_layout Standard
20089 is the command that prints the table number, for figure floats, the command
20103 in the command above prints the table number as small roman number.
20106 \begin_layout Standard
20107 To change the numbering scheme for example to
20108 \begin_inset Quotes eld
20112 \begin_inset Quotes erd
20115 , use this command in the preamble:
20118 \begin_layout Standard
20123 numberwithin{table}{subsection}
20126 \begin_layout Standard
20127 To be able to use the command
20136 \begin_inset space ~
20141 in the document settings the option
20144 \begin_inset space ~
20148 \begin_inset space ~
20152 \begin_inset space ~
20160 \begin_layout Standard
20161 Please also have a look at section
20162 \begin_inset space ~
20166 \begin_inset CommandInset ref
20168 reference "sub:Footnote-Numbering"
20172 for the details and important notes about the numbering commands.
20175 \begin_layout Section
20177 \begin_inset CommandInset label
20179 name "sec:Referencing-Floats"
20187 \begin_layout Plain Layout
20188 Floats ! References
20197 \begin_layout Plain Layout
20198 References ! to Floats
20206 \begin_layout Standard
20207 To reference a float, insert a label into its caption using the menu
20209 Insert\SpecialChar \menuseparator
20212 or the toolbar button
20213 \begin_inset Graphics
20214 filename ../images/label-insert.png
20216 scaleBeforeRotation
20221 A grey label box like this one:
20222 \begin_inset Graphics
20223 filename clipart/labelQt4.png
20225 scaleBeforeRotation
20229 will be inserted and the label window pops up asking for the label text.
20230 LyX offers as text the first words of the caption with a prefix.
20231 The prefix depends on the float type, e.
20232 \begin_inset space \thinspace{}
20236 \begin_inset space \space{}
20239 for figure floats the prefix will be "
20246 \begin_layout Standard
20247 The label is used as anchor and name for the reference.
20248 You can refer to the label using the menu
20250 Insert\SpecialChar \menuseparator
20253 or the toolbar button
20254 \begin_inset Graphics
20255 filename ../images/dialog-show-new-inset_ref.png
20257 scaleBeforeRotation
20262 A grey cross-reference box like this one:
20263 \begin_inset Graphics
20264 filename clipart/referenceQt4.png
20266 scaleBeforeRotation
20270 will be inserted and the cross-reference window appear showing all labels
20272 If you have multiple LyX-documents opened, choose the one you are working
20273 on from the drop-list at the top of the dialog.
20274 You can now sort the labels alphabetically and then choose one.
20275 At the position of the cross-reference box the float number will appear
20279 \begin_layout Standard
20280 It is recommended that you use a protected space between the cross-reference
20281 name and its number to avoid line breaks between them.
20282 If a cross-reference refers to a non-existing label, you will see two question
20283 marks in the output instead of the reference.
20286 \begin_layout Standard
20287 You can change labels at any time by clicking on the label box.
20288 References to the changed label will automatically change its link to the
20289 new label text, so that you don't need to take care about this.
20292 \begin_layout Standard
20296 \begin_inset space ~
20300 \begin_inset space ~
20305 in the cross-reference window sets the cursor before the referred label.
20306 The button text changes then to Go
20307 \begin_inset space ~
20310 Back and you can use it to set the cursor back to the cross-reference.
20311 Right-clicking on a cross-reference box also sets the cursor before the
20312 referenced label but without the possibility of going back.
20315 \begin_layout Subsection
20316 Cross-Reference Formats
20317 \begin_inset CommandInset label
20319 name "sub:Cross-Reference-Formats"
20327 \begin_layout Plain Layout
20328 References ! Formats
20336 \begin_layout Standard
20337 There are six varieties of cross-references:
20340 \begin_layout Description
20341 <reference>: prints the float number, this is the default:
20342 \begin_inset CommandInset ref
20344 reference "fig:Two-distorted-images"
20351 \begin_layout Description
20352 (<reference>): prints the float number within two parentheses, this is the
20353 style normally used to reference formulas, especially when the reference
20355 \begin_inset Quotes eld
20359 \begin_inset Quotes erd
20363 \begin_inset CommandInset ref
20372 \begin_layout Description
20373 <page>: prints the page number: Page
20374 \begin_inset space ~
20378 \begin_inset CommandInset ref
20379 LatexCommand pageref
20380 reference "fig:Two-distorted-images"
20387 \begin_layout Description
20389 \begin_inset space ~
20393 \begin_inset space ~
20396 <page>: prints the text "on page" and the page number:
20397 \begin_inset CommandInset ref
20398 LatexCommand vpageref
20399 reference "fig:Two-distorted-images"
20406 \begin_layout Description
20408 \begin_inset space ~
20412 \begin_inset space ~
20416 \begin_inset space ~
20419 <page>: prints the float number, the text "on page", and the page number:
20421 \begin_inset CommandInset ref
20423 reference "fig:Two-distorted-images"
20430 \begin_layout Description
20432 \begin_inset space ~
20435 reference: prints a self defined cross-reference format.
20436 \begin_inset Newline newline
20440 \begin_inset Note Greyedout
20443 \begin_layout Plain Layout
20448 This feature is only available when you have the LaTeX-package
20456 \begin_layout Plain Layout
20457 LaTeX-packages ! prettyref
20470 \begin_layout Standard
20475 will not print the page number if the label is on the previous, the same,
20478 \begin_inset space \thinspace{}
20482 \begin_inset space \space{}
20486 \begin_inset Quotes eld
20494 \begin_inset Quotes erd
20500 <reference> on page <page>
20502 will not print anything about the page if the label is on the same page.
20505 \begin_layout Standard
20506 The number and current page of the part of the document referred to in the
20507 output is automatically calculated by LaTeX.
20508 The varieties are adjusted in the field
20512 of the cross-reference window that appears when you click on the cross-referenc
20516 \begin_layout Standard
20517 \begin_inset Note Greyedout
20520 \begin_layout Plain Layout
20533 \begin_layout Plain Layout
20534 LaTeX-packages ! prettyref
20539 does not know all of LyX's possible label shortcuts
20543 \begin_layout Plain Layout
20544 \begin_inset Quotes eld
20548 \begin_inset Quotes erd
20551 is for example LyX's shortcut for labels in figure captions.
20556 and is not internationalized.
20557 To find out how to tell
20561 new shortcuts and translations, have a look at its documentation
20562 \begin_inset CommandInset citation
20576 \begin_layout Standard
20577 \begin_inset Note Greyedout
20580 \begin_layout Plain Layout
20585 Due to a bug in the LaTeX-package
20589 version 1.4w, some cross-reference formats will cause LaTeX errors for document
20590 languages that make the period character active (like French).
20591 For a workaround, see
20592 \begin_inset Newline newline
20596 \begin_inset CommandInset href
20598 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
20610 \begin_layout Subsection
20611 Automatic Reference Naming
20615 \begin_layout Plain Layout
20616 References ! Automatic Reference Naming
20624 \begin_layout Standard
20633 \begin_layout Plain Layout
20634 LaTeX-packages ! hyperref
20639 , that is enabled in the
20647 dialog, provides a very useful feature that cross-references automatically
20648 include the name of the referenced floats (or text parts like
20653 So you will save having to write e.
20654 \begin_inset space \thinspace{}
20658 \begin_inset space \space{}
20662 \begin_inset Quotes eld
20666 \begin_inset Quotes erd
20669 before every reference to a figure.
20670 To use this feature, enable
20674 and insert this line to the LaTeX preamble:
20677 \begin_layout Standard
20693 \begin_layout Standard
20694 When you prefer other reference names than the default ones, for example
20695 you want instead of
20696 \begin_inset Quotes eld
20700 \begin_inset Quotes erd
20704 \begin_inset Quotes eld
20708 \begin_inset space \thinspace{}
20712 \begin_inset Quotes eld
20715 , you can redefine the name by inserting this in the preamble:
20718 \begin_layout Standard
20729 sectionautorefname}
20730 \begin_inset Newline newline
20737 \begin_layout Plain Layout
20751 \begin_layout Standard
20752 When you are using another document language than English, replace
20753 \begin_inset Newline newline
20768 , where *** is the name of the language used.
20771 \begin_layout Standard
20772 To get automatic names, but not for certain reference types, for example
20773 not for equations, use this preamble code:
20776 \begin_layout Standard
20784 \begin_inset Newline newline
20794 \begin_inset Newline newline
20805 equationautorefname}
20806 \begin_inset Newline newline
20813 \begin_layout Plain Layout
20829 \begin_layout Standard
20830 More about this topic can be found in
20835 \begin_inset CommandInset citation
20844 \begin_layout Standard
20845 \begin_inset Note Greyedout
20848 \begin_layout Plain Layout
20853 Automatic reference naming cannot be used when you use cross-references
20857 \begin_inset space ~
20862 style, as described in section
20863 \begin_inset space ~
20867 \begin_inset CommandInset ref
20869 reference "sub:Cross-Reference-Formats"
20881 \begin_layout Standard
20886 manual is an example where automatic reference naming is used.
20889 \begin_layout Subsection
20891 \begin_inset CommandInset label
20893 name "sub:Reference-Position"
20901 \begin_layout Plain Layout
20902 References ! Reference Position
20910 \begin_layout Standard
20919 \begin_layout Plain Layout
20920 LaTeX-packages ! hyperref
20933 dialog to link cross-references in the output, you will see that clicking
20934 on an image float reference jumps to the image label.
20935 The caption will be the first text part on the screen, so that you cannot
20936 see the image without scrolling.
20937 This is because the reference link anchor is placed at the position of
20939 With the use of the package
20947 \begin_layout Plain Layout
20948 LaTeX-packages ! hypcap
20953 , which is part of the LaTeX-package
20961 \begin_layout Plain Layout
20962 LaTeX-packages ! oberdiek
20967 , the link anchor is placed at the beginning of a float.
20968 To use this feature for figure floats, load
20972 in the document preamble with the line
20975 \begin_layout Standard
20980 usepackage[figure]{hypcap}
20983 \begin_layout Standard
20988 for all float types but this is not recommended for stability reasons.
20989 For more information, have a look at
20994 \begin_inset CommandInset citation
21003 \begin_layout Standard
21004 \begin_inset Note Greyedout
21007 \begin_layout Plain Layout
21016 has no effect on references to subfigures.
21024 \begin_layout Section
21026 \begin_inset CommandInset label
21028 name "sec:Float-Placement"
21036 \begin_layout Plain Layout
21045 \begin_layout Standard
21046 Right-clicking on a float-box opens a dialog where you can alter the placement
21047 options that LaTeX uses for positioning the float.
21048 \begin_inset Newline newline
21054 \begin_inset space ~
21059 is only useful for two-column documents: If you select it, the float will
21060 span both columns on the page instead of being confined to just one.
21061 \begin_inset Newline newline
21067 \begin_inset space ~
21072 is used to rotate floats, see section
21073 \begin_inset CommandInset ref
21075 reference "sec:Rotated-Floats"
21082 \begin_layout Standard
21083 You can use one ore more of the following options in the float dialog to
21084 set the placement for a particular float when you uncheck the option
21087 \begin_inset space ~
21091 \begin_inset space ~
21099 \begin_layout Description
21101 \begin_inset space ~
21105 \begin_inset space ~
21108 possible try to place the float on the position where it has been inserted
21111 \begin_layout Description
21113 \begin_inset space ~
21117 \begin_inset space ~
21120 page try to place the float at the top of the current page
21123 \begin_layout Description
21125 \begin_inset space ~
21129 \begin_inset space ~
21132 page try to place the float at the bottom of the current page
21135 \begin_layout Description
21137 \begin_inset space ~
21141 \begin_inset space ~
21144 floats try to place the float on its own page
21147 \begin_layout Standard
21148 The order of the above option is
21153 That means, if you use the default placement, LaTeX will first try out
21157 \begin_inset space ~
21161 \begin_inset space ~
21169 \begin_inset space ~
21173 \begin_inset space ~
21178 , and then the others.
21179 If you do not use the default, LaTeX will try only the checked options
21180 but in the same order.
21182 \begin_inset space ~
21185 placements are possible the procedure is internally repeated but it is tried
21186 to put the float on the following page.
21189 \begin_layout Standard
21190 By default, each option has its own rules:
21193 \begin_layout Labeling
21194 \labelwidthstring 00.00.0000
21198 \begin_inset space ~
21202 \begin_inset space ~
21207 only floats occupying less than 70
21208 \begin_inset space \thinspace{}
21211 % of the page can be placed at the top of a page (
21220 \begin_layout Labeling
21221 \labelwidthstring 00.00.0000
21225 \begin_inset space ~
21229 \begin_inset space ~
21234 : only floats occupying less than 30
21235 \begin_inset space \thinspace{}
21238 % of the page can be placed at the bottom of a page.
21248 \begin_layout Labeling
21249 \labelwidthstring 00.00.0000
21253 \begin_inset space ~
21257 \begin_inset space ~
21262 : only if more than 50
21263 \begin_inset space \thinspace{}
21266 % of the page are occupied by floats, several floats can be set together
21277 \begin_layout Standard
21278 If you don't like these rules, you can ignore them by using the additional
21282 \begin_inset space ~
21286 \begin_inset space ~
21292 \begin_inset Newline newline
21295 You can also redefine the rules with LaTeX-commands that are given in parenthese
21296 s after the rules description above.
21297 To increase for example the often too small default of the bottom-rule
21299 \begin_inset space \thinspace{}
21302 % of the page, add this line to your document preamble:
21305 \begin_layout Standard
21312 bottomfraction}{0.5}
21315 \begin_layout Standard
21316 Sometimes you might need, under all circumstances, a float to be placed
21317 exactly at the position where it is inserted.
21318 For this case you can use the option
21321 \begin_inset space ~
21327 Use this option very rarely and only if the document is almost ready to
21328 be printed, because the float is then no longer able to
21329 \begin_inset Quotes eld
21333 \begin_inset Quotes erd
21336 when you change your document and this will often destroy the page layout.
21339 \begin_layout Standard
21340 There are no placement options for text wrap floats, because they are always
21341 surrounded by the text of a certain paragraph.
21342 \begin_inset VSpace bigskip
21348 \begin_layout Standard
21349 Sometimes you have the problem that a float is placed at the top of a page
21350 while its corresponding section starts at the middle of the page, so that
21351 the reader could think the float is part of the previous section.
21352 To avoid this the LaTeX-command
21359 It suppresses a given float placement for the page where it is inserted
21360 and can therefore be used to avoid floats being set before a section starts.
21361 To get this, add these commands to your document preamble:
21364 \begin_layout Standard
21374 \begin_inset Newline newline
21388 \begin_layout Standard
21389 You can define the same for all section headings, like chapters and subsections.
21390 This definition is not recommended to be used for small text parts like
21391 subsubsections because LaTeX may then have problems finding a suitable
21395 \begin_layout Standard
21396 \begin_inset VSpace bigskip
21399 In some cases it is required to have all figures/tables at the end of the
21401 For this purpose the LaTeX-package
21409 \begin_layout Plain Layout
21410 LaTeX-packages ! endfloat
21416 It puts all figure and table floats at the end of the document into their
21418 At the original float position a text hint like
21419 \begin_inset Quotes eld
21425 \begin_inset space ~
21431 \begin_inset Quotes erd
21435 The endfloat-package is loaded in the preamble with the line
21438 \begin_layout Standard
21443 usepackage[options]{endfloat}
21446 \begin_layout Standard
21447 There are various package options to format the created figure/table sections.
21448 For more information we refer to the
21453 \begin_inset CommandInset citation
21460 \begin_inset Newline newline
21464 \begin_inset Note Greyedout
21467 \begin_layout Plain Layout
21472 doesn't provide an automatic translation for the text hint, you have to
21473 do this manually, see section
21474 \begin_inset space ~
21478 \begin_inset CommandInset citation
21490 \begin_inset Newline newline
21494 \begin_inset Note Greyedout
21497 \begin_layout Plain Layout
21502 There is currently a bug in
21506 when the caption contains a German
21507 \begin_inset Quotes eld
21511 \begin_inset Quotes erd
21515 Use in this case the command
21516 \begin_inset Quotes eld
21526 \begin_inset Quotes erd
21529 in TeX-Code instead of
21530 \begin_inset Quotes eld
21534 \begin_inset Quotes erd
21545 \begin_layout Standard
21546 \begin_inset VSpace bigskip
21549 For more details about float placements, have a look at LaTeX books,
21550 \begin_inset CommandInset citation
21552 key "latexcompanion,latexguide,latexbook"
21559 \begin_layout Section
21561 \begin_inset CommandInset label
21563 name "sec:Rotated-Floats"
21571 \begin_layout Plain Layout
21580 \begin_layout Standard
21581 Especially for wide tables you might have floats rotated.
21582 To rotate a whole float including the caption, right-click on the float-box
21586 \begin_inset space ~
21594 \begin_layout Standard
21595 Rotated floats are always placed on a page of their own (or column of their
21596 own; in case you have a multi-column document).
21597 You can let them span several columns using the float settings option
21600 \begin_inset space ~
21606 Floats are rotated so that you can read them from the outside margin.
21607 To force a certain rotation direction for all pages, you can add either
21616 to the document class options.
21619 \begin_layout Standard
21620 Referencing rotated floats is the same as for normal floats, the caption
21621 format is also the same: Table
21622 \begin_inset space ~
21626 \begin_inset CommandInset ref
21628 reference "tab:Rotated-table"
21632 is an example of a rotated table float.
21635 \begin_layout Standard
21636 \begin_inset Note Greyedout
21639 \begin_layout Plain Layout
21644 Not all DVI-viewers are able to display rotated floats.
21652 \begin_layout Standard
21653 \begin_inset Float table
21658 \begin_layout Plain Layout
21659 \begin_inset Caption
21661 \begin_layout Plain Layout
21662 \begin_inset CommandInset label
21664 name "tab:Rotated-table"
21676 \begin_layout Plain Layout
21678 \begin_inset Tabular
21679 <lyxtabular version="3" rows="1" columns="5">
21681 <column alignment="center" valignment="top" width="0">
21682 <column alignment="center" valignment="top" width="0">
21683 <column alignment="center" valignment="top" width="0">
21684 <column alignment="center" valignment="top" width="0">
21685 <column alignment="center" valignment="top" width="0">
21687 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21690 \begin_layout Plain Layout
21696 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21699 \begin_layout Plain Layout
21705 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21708 \begin_layout Plain Layout
21714 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21717 \begin_layout Plain Layout
21723 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21726 \begin_layout Plain Layout
21745 \begin_layout Section
21750 \begin_layout Plain Layout
21759 \begin_layout Standard
21760 Subfloats are for example used when a figure consists of several images.
21761 They are created by inserting a float into an existing float.
21762 The placement of the subfloats can be controlled in the same way as for
21763 paragraphs as shown in table
21764 \begin_inset space ~
21768 \begin_inset CommandInset ref
21770 reference "tab:Two-subtables-side"
21775 \begin_inset CommandInset ref
21777 reference "tab:Two-subtables-upon"
21784 \begin_layout Standard
21785 Referencing subfloats works as for normal floats: Table
21786 \begin_inset space ~
21790 \begin_inset CommandInset ref
21792 reference "tab:This-is-subtable-a"
21797 \begin_inset CommandInset ref
21799 reference "tab:This-is-subtable-b"
21803 are subtables of table
21804 \begin_inset space ~
21808 \begin_inset CommandInset ref
21810 reference "tab:Two-subtables-side"
21817 \begin_layout Standard
21818 \begin_inset Float table
21823 \begin_layout Plain Layout
21824 \begin_inset Caption
21826 \begin_layout Plain Layout
21827 \begin_inset CommandInset label
21829 name "tab:Two-subtables-side"
21833 Two subtables placed side by side.
21841 \begin_layout Plain Layout
21843 \begin_inset space \hfill{}
21847 \begin_inset Float table
21852 \begin_layout Plain Layout
21853 \begin_inset Caption
21855 \begin_layout Plain Layout
21856 \begin_inset CommandInset label
21858 name "tab:This-is-subtable-a"
21862 This is subtable a.
21870 \begin_layout Plain Layout
21872 \begin_inset Tabular
21873 <lyxtabular version="3" rows="1" columns="5">
21875 <column alignment="center" valignment="top" width="0">
21876 <column alignment="center" valignment="top" width="0">
21877 <column alignment="center" valignment="top" width="0">
21878 <column alignment="center" valignment="top" width="0">
21879 <column alignment="center" valignment="top" width="0">
21881 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21884 \begin_layout Plain Layout
21890 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21893 \begin_layout Plain Layout
21899 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21902 \begin_layout Plain Layout
21908 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21911 \begin_layout Plain Layout
21917 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21920 \begin_layout Plain Layout
21937 \begin_inset space \hfill{}
21941 \begin_inset Float table
21946 \begin_layout Plain Layout
21947 \begin_inset Caption
21949 \begin_layout Plain Layout
21950 \begin_inset CommandInset label
21952 name "tab:This-is-subtable-b"
21956 This is subtable b.
21964 \begin_layout Plain Layout
21966 \begin_inset Tabular
21967 <lyxtabular version="3" rows="1" columns="5">
21969 <column alignment="center" valignment="top" width="0">
21970 <column alignment="center" valignment="top" width="0">
21971 <column alignment="center" valignment="top" width="0">
21972 <column alignment="center" valignment="top" width="0">
21973 <column alignment="center" valignment="top" width="0">
21975 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21978 \begin_layout Plain Layout
21984 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21987 \begin_layout Plain Layout
21993 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21996 \begin_layout Plain Layout
22002 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22005 \begin_layout Plain Layout
22011 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22014 \begin_layout Plain Layout
22031 \begin_inset space \hfill{}
22042 \begin_layout Standard
22043 \begin_inset Float table
22048 \begin_layout Plain Layout
22049 \begin_inset Caption
22051 \begin_layout Plain Layout
22052 \begin_inset CommandInset label
22054 name "tab:Two-subtables-upon"
22058 Two subtables placed one above the other.
22059 (a) table with 4 cells, (b) table with 5 cells.
22067 \begin_layout Plain Layout
22069 \begin_inset Float table
22074 \begin_layout Plain Layout
22075 \begin_inset Caption
22077 \begin_layout Plain Layout
22086 \begin_layout Plain Layout
22088 \begin_inset Tabular
22089 <lyxtabular version="3" rows="1" columns="4">
22091 <column alignment="center" valignment="top" width="0">
22092 <column alignment="center" valignment="top" width="0">
22093 <column alignment="center" valignment="top" width="0">
22094 <column alignment="center" valignment="top" width="0">
22096 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22099 \begin_layout Plain Layout
22105 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22108 \begin_layout Plain Layout
22114 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22117 \begin_layout Plain Layout
22123 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22126 \begin_layout Plain Layout
22145 \begin_layout Plain Layout
22147 \begin_inset Float table
22152 \begin_layout Plain Layout
22153 \begin_inset Caption
22155 \begin_layout Plain Layout
22164 \begin_layout Plain Layout
22166 \begin_inset Tabular
22167 <lyxtabular version="3" rows="1" columns="5">
22169 <column alignment="center" valignment="top" width="0">
22170 <column alignment="center" valignment="top" width="0">
22171 <column alignment="center" valignment="top" width="0">
22172 <column alignment="center" valignment="top" width="0">
22173 <column alignment="center" valignment="top" width="0">
22175 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22178 \begin_layout Plain Layout
22184 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22187 \begin_layout Plain Layout
22193 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22196 \begin_layout Plain Layout
22202 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22205 \begin_layout Plain Layout
22211 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22214 \begin_layout Plain Layout
22238 \begin_layout Section
22239 Floats Side by Side
22243 \begin_layout Plain Layout
22244 Floats ! Side by side
22252 \begin_layout Standard
22253 To place floats side by side, as in Figures
22254 \begin_inset space ~
22258 \begin_inset CommandInset ref
22260 reference "fig:Float-left"
22265 \begin_inset CommandInset ref
22267 reference "fig:Float-right"
22276 In it two minipage boxes are inserted.
22280 \begin_layout Plain Layout
22281 Minipages are explained in section
22282 \begin_inset space ~
22286 \begin_inset CommandInset ref
22288 reference "sec:Minipages"
22297 The width is set to 45
22298 \begin_inset space \thinspace{}
22302 \begin_inset space \thinspace{}
22305 column% and the box alignment to
22310 The minipage boxes contain the image and the caption in the same way as
22311 they are in a float.
22312 The only difference is that the image unit
22315 \begin_inset space ~
22319 \begin_inset space ~
22324 is now calculated according to the width of the minipage boxes.
22327 \begin_layout Standard
22328 \begin_inset Float figure
22333 \begin_layout Plain Layout
22334 \begin_inset Box Frameless
22343 height_special "totalheight"
22346 \begin_layout Plain Layout
22348 \begin_inset Graphics
22349 filename clipart/mobius.eps
22352 scaleBeforeRotation
22359 \begin_layout Plain Layout
22360 \begin_inset Caption
22362 \begin_layout Plain Layout
22363 \begin_inset CommandInset label
22365 name "fig:Float-left"
22369 Float on the left side.
22380 \begin_inset space \hfill{}
22384 \begin_inset Box Frameless
22393 height_special "totalheight"
22396 \begin_layout Plain Layout
22398 \begin_inset Graphics
22399 filename clipart/platypus.eps
22402 scaleBeforeRotation
22409 \begin_layout Plain Layout
22410 \begin_inset Caption
22412 \begin_layout Plain Layout
22413 \begin_inset CommandInset label
22415 name "fig:Float-right"
22419 Float on the right side.
22432 \begin_layout Plain Layout
22441 \begin_layout Section
22446 \begin_layout Plain Layout
22447 Caption ! Formatting
22456 \begin_layout Plain Layout
22457 Floats ! Caption Formatting
22463 \begin_inset CommandInset label
22465 name "sec:Caption-Formatting"
22472 \begin_layout Standard
22477 environment is the default paragraph environment for
22482 On the LyX screen captions appear as label, e.
22483 \begin_inset space \thinspace{}
22487 \begin_inset space \space{}
22491 \begin_inset Quotes eld
22499 \begin_inset Quotes erd
22502 followed by the caption text.
22504 \begin_inset Quotes eld
22508 \begin_inset Quotes erd
22511 is the actual reference number.
22512 By default the label and the number are in the same font as the caption
22513 text and a colon follows the number to divide the label from the text.
22514 This caption format is not suitable for all document formats.
22518 \begin_layout Standard
22519 To change the default caption format, load the LaTeX-package
22527 \begin_layout Plain Layout
22528 LaTeX-packages ! caption
22533 in the document preamble with this line:
22536 \begin_layout Standard
22541 usepackage[format definition]{caption}
22544 \begin_layout Standard
22545 To have for example the label and the number in sans-serif bold font and
22546 the table captions always above the table as in this document, use the
22550 \begin_layout Standard
22555 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22558 \begin_layout Standard
22559 You can also define different caption formats for the different float types.
22560 In this case load the
22564 package without format specific options and define the different formats
22565 with the help of the command
22568 \begin_layout Standard
22573 captionsetup[float type]{format definition}
22576 \begin_layout Standard
22577 in the document preamble.
22578 For example the caption formats of Figure
22579 \begin_inset space ~
22583 \begin_inset CommandInset ref
22585 reference "fig:This-is-an-fig"
22590 \begin_inset space ~
22594 \begin_inset CommandInset ref
22596 reference "tab:This-is-an-tab"
22600 can be created using these commands in the document preamble:
22603 \begin_layout Standard
22608 usepackage[tableposition=top]{caption}
22611 \begin_inset Newline newline
22618 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22619 \begin_inset Newline newline
22626 \begin_layout Plain Layout
22634 captionsetup[figure]
22642 \begin_inset Newline newline
22647 captionsetup[table]{labelfont={bf,sf}}
22650 \begin_layout Standard
22651 \begin_inset Note Greyedout
22654 \begin_layout Plain Layout
22663 has no effect when a
22671 \begin_layout Plain Layout
22672 LaTeX-packages ! KOMA-Script
22677 document class is used.
22678 In this case the document class option
22690 \begin_layout Standard
22691 For more information about the package
22695 we refer to its documentation
22696 \begin_inset CommandInset citation
22705 \begin_layout Standard
22706 To change the label name from e.
22707 \begin_inset space \thinspace{}
22711 \begin_inset space \space{}
22715 \begin_inset Quotes eld
22719 \begin_inset Quotes erd
22723 \begin_inset Quotes eld
22727 \begin_inset Quotes erd
22730 use this preamble command:
22733 \begin_layout Standard
22740 fnum@figure}{Image~
22745 \begin_layout Standard
22752 inserts the figure number and
22755 \begin_inset Quotes eld
22761 \begin_inset Quotes erd
22764 creates a protected space.
22767 \begin_layout Standard
22768 \begin_inset VSpace bigskip
22779 \begin_layout Plain Layout
22780 LaTeX-packages ! KOMA-Script
22787 article (KOMA-Script)
22795 letter (KOMA-Script)
22799 report (KOMA-Script)
22802 \begin_inset space \thinspace{}
22805 ), you can alternatively to the
22813 's built-in command
22820 For example, to have the caption label in bold, add this command to your
22824 \begin_layout Standard
22829 setkomafont{captionlabel}{
22834 \begin_layout Standard
22835 For more information about
22846 \begin_inset CommandInset citation
22855 \begin_layout Standard
22859 \begin_layout Plain Layout
22863 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
22870 \begin_inset Note Note
22873 \begin_layout Plain Layout
22874 The caption format is changed only for this example.
22882 \begin_layout Standard
22883 \begin_inset Float figure
22889 \begin_layout Plain Layout
22891 \begin_inset Graphics
22892 filename clipart/mobius.eps
22895 scaleBeforeRotation
22902 \begin_layout Plain Layout
22903 \begin_inset Caption
22905 \begin_layout Plain Layout
22906 \begin_inset CommandInset label
22908 name "fig:This-is-an-fig"
22912 This is an example figure caption that is longer than one line to show the
22913 different caption format.
22914 Here a self-defined caption format is used.
22927 \begin_layout Standard
22931 \begin_layout Plain Layout
22935 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
22944 \begin_layout Standard
22945 \begin_inset Float table
22951 \begin_layout Plain Layout
22952 \begin_inset Caption
22954 \begin_layout Plain Layout
22955 \begin_inset CommandInset label
22957 name "tab:This-is-an-tab"
22961 This is an example table caption that is longer than one line to show the
22962 different caption format.
22963 Here the standard caption format for tables in this document is used.
22971 \begin_layout Plain Layout
22973 \begin_inset Tabular
22974 <lyxtabular version="3" rows="1" columns="5">
22976 <column alignment="center" valignment="top" width="0">
22977 <column alignment="center" valignment="top" width="0">
22978 <column alignment="center" valignment="top" width="0">
22979 <column alignment="center" valignment="top" width="0">
22980 <column alignment="center" valignment="top" width="0">
22982 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22985 \begin_layout Plain Layout
22991 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22994 \begin_layout Plain Layout
23000 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23003 \begin_layout Plain Layout
23009 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23012 \begin_layout Plain Layout
23018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23021 \begin_layout Plain Layout
23040 \begin_layout Section
23045 \begin_layout Plain Layout
23046 Caption ! Placement
23055 \begin_layout Plain Layout
23056 Floats ! Caption Placement
23062 \begin_inset CommandInset label
23064 name "sec:Caption-Placement"
23071 \begin_layout Standard
23072 The common caption placement rule is:
23075 \begin_layout Description
23076 Figure: Caption is set below the figure
23079 \begin_layout Description
23080 Table: Caption is set above the table
23083 \begin_layout Standard
23084 Having the caption above the table is unfortunately not supported in LaTeX's
23086 That means if you are using the document classes
23102 there will be no space between the caption and the table.
23103 To insert the necessary space, add the following option to the load command
23104 of the LaTeX-package
23108 in your document preamble
23112 \begin_layout Plain Layout
23114 \begin_inset space ~
23118 \begin_inset CommandInset ref
23120 reference "sec:Caption-Formatting"
23124 for more information of the package
23136 \begin_layout Standard
23142 \begin_layout Standard
23151 \begin_layout Plain Layout
23152 LaTeX-packages ! KOMA-Script
23159 article (KOMA-Script)
23167 letter (KOMA-Script)
23171 report (KOMA-Script)
23174 \begin_inset space \thinspace{}
23177 ), you can alternatively to the
23181 package set the document class option
23188 \begin_layout Standard
23189 \begin_inset VSpace bigskip
23192 It is also possible to set the caption beside a figure or table.
23193 To get this the LaTeX-package
23201 \begin_layout Plain Layout
23202 LaTeX-packages ! sidecap
23207 has to be loaded in the document preamble with the line
23210 \begin_layout Standard
23215 usepackage[option]{sidecap}
23218 \begin_layout Standard
23219 If you set no option, the caption is placed on the side of the outer page
23220 margin – to the right on odd pages, to the left on even pages.
23221 You can change the placement to inner margin with the option
23226 To force the placement always to the right or left, use the option
23237 \begin_layout Standard
23241 \begin_layout Plain Layout
23251 \begin_inset Note Note
23254 \begin_layout Plain Layout
23255 The following section will only be displayed when the LaTeX-package
23267 \begin_layout Standard
23268 To place in LyX the caption of a float on the side, it is necessary to add
23269 these commands to the document preamble:
23272 \begin_layout Standard
23278 \begin_layout Standard
23286 \begin_inset Newline newline
23293 \begin_layout Plain Layout
23309 \begin_inset Newline newline
23316 \begin_layout Plain Layout
23332 \begin_inset Newline newline
23339 \begin_layout Plain Layout
23350 renewenvironment{table}{
23357 \begin_layout Standard
23365 \begin_inset Newline newline
23372 \begin_layout Plain Layout
23388 \begin_inset Newline newline
23395 \begin_layout Plain Layout
23413 \begin_layout Standard
23421 \begin_inset Newline newline
23428 \begin_layout Plain Layout
23444 \begin_inset Newline newline
23451 \begin_layout Plain Layout
23467 \begin_inset Newline newline
23474 \begin_layout Plain Layout
23485 renewenvironment{figure}{
23492 \begin_layout Standard
23500 \begin_inset Newline newline
23507 \begin_layout Plain Layout
23523 \begin_inset Newline newline
23530 \begin_layout Plain Layout
23548 \begin_layout Standard
23554 \begin_layout Standard
23555 The commands allow you to redefine the floats so that the caption is set
23557 For figure floats use the command
23560 \begin_layout Standard
23568 \begin_layout Standard
23569 in TeX-Code before the float.
23570 After the float insert the command
23573 \begin_layout Standard
23581 \begin_layout Standard
23582 in TeX-Code to get back to the original float definition.
23585 \begin_layout Standard
23586 For table floats use the corresponding commands
23589 \begin_layout Standard
23603 \begin_layout Standard
23605 \begin_inset space ~
23609 \begin_inset CommandInset ref
23611 reference "fig:cap-beside-fig"
23616 \begin_inset space ~
23620 \begin_inset CommandInset ref
23622 reference "tab:cap-beside-tab"
23626 are examples where the caption is set beside.
23629 \begin_layout Standard
23630 You can see in the examples that the caption text appears at the top of
23631 the floats for table floats and at the bottom for figure floats.
23632 To change this, you can use the command
23635 \begin_layout Standard
23640 sidecaptionvpos{float type}{placement}
23643 \begin_layout Standard
23644 in the document preamble or in TeX-Code before the float.
23645 The float type is either
23653 , the placement can be
23654 \begin_inset Quotes eld
23662 \begin_inset Quotes erd
23666 \begin_inset Quotes eld
23674 \begin_inset Quotes erd
23678 \begin_inset Quotes eld
23686 \begin_inset Quotes erd
23690 To have for example the caption of figure floats vertically centered, use
23694 \begin_layout Standard
23699 sidecaptionvpos{figure}{c}
23702 \begin_layout Standard
23703 This was used for Figure
23704 \begin_inset space ~
23708 \begin_inset CommandInset ref
23710 reference "fig:cap-beside-fig-2"
23717 \begin_layout Standard
23718 \begin_inset VSpace medskip
23721 For more information about the package
23725 we refer to its documentation
23726 \begin_inset CommandInset citation
23735 \begin_layout Standard
23736 \begin_inset Note Greyedout
23739 \begin_layout Plain Layout
23752 \begin_layout Plain Layout
23753 LaTeX-packages ! hypcap
23758 , described in section
23759 \begin_inset space ~
23763 \begin_inset CommandInset ref
23765 reference "sub:Reference-Position"
23769 , has no effect on floats with the caption set beside.
23777 \begin_layout Standard
23781 \begin_layout Plain Layout
23793 \begin_layout Standard
23794 \begin_inset Float figure
23799 \begin_layout Plain Layout
23800 \begin_inset Graphics
23801 filename clipart/escher-lsd.eps
23803 scaleBeforeRotation
23810 \begin_layout Plain Layout
23811 \begin_inset Caption
23813 \begin_layout Plain Layout
23814 \begin_inset CommandInset label
23816 name "fig:cap-beside-fig"
23820 This is a caption beside a figure.
23833 \begin_layout Standard
23837 \begin_layout Plain Layout
23849 \begin_layout Standard
23850 \begin_inset Float table
23855 \begin_layout Plain Layout
23856 \begin_inset Caption
23858 \begin_layout Plain Layout
23859 \begin_inset CommandInset label
23861 name "tab:cap-beside-tab"
23865 This is a caption beside a table.
23873 \begin_layout Plain Layout
23874 \begin_inset Tabular
23875 <lyxtabular version="3" rows="4" columns="5">
23877 <column alignment="center" valignment="top" width="0">
23878 <column alignment="center" valignment="top" width="0">
23879 <column alignment="center" valignment="top" width="0">
23880 <column alignment="center" valignment="top" width="0">
23881 <column alignment="center" valignment="top" width="0">
23883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23886 \begin_layout Plain Layout
23892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23895 \begin_layout Plain Layout
23901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23904 \begin_layout Plain Layout
23910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23913 \begin_layout Plain Layout
23919 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23922 \begin_layout Plain Layout
23930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23933 \begin_layout Plain Layout
23939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23942 \begin_layout Plain Layout
23948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23951 \begin_layout Plain Layout
23957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23960 \begin_layout Plain Layout
23966 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23969 \begin_layout Plain Layout
23977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23980 \begin_layout Plain Layout
23986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23989 \begin_layout Plain Layout
23995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23998 \begin_layout Plain Layout
24004 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24007 \begin_layout Plain Layout
24013 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24016 \begin_layout Plain Layout
24024 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24027 \begin_layout Plain Layout
24033 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24036 \begin_layout Plain Layout
24042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24045 \begin_layout Plain Layout
24051 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24054 \begin_layout Plain Layout
24060 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24063 \begin_layout Plain Layout
24082 \begin_layout Standard
24086 \begin_layout Plain Layout
24098 \begin_layout Standard
24102 \begin_layout Plain Layout
24106 sidecaptionvpos{figure}{c}
24112 \begin_inset Float figure
24117 \begin_layout Plain Layout
24118 \begin_inset Graphics
24119 filename clipart/escher-lsd.eps
24121 scaleBeforeRotation
24128 \begin_layout Plain Layout
24129 \begin_inset Caption
24131 \begin_layout Plain Layout
24132 \begin_inset CommandInset label
24134 name "fig:cap-beside-fig-2"
24138 This is a vertically centered caption beside a figure.
24151 \begin_layout Standard
24155 \begin_layout Plain Layout
24167 \begin_layout Standard
24171 \begin_layout Plain Layout
24181 \begin_inset Note Note
24184 \begin_layout Plain Layout
24185 The following will be displayed when the LaTeX-package
24197 \begin_layout Standard
24198 You need to install the LaTeX-package
24202 to see the following part of this section in the output.
24205 \begin_layout Standard
24209 \begin_layout Plain Layout
24221 \begin_layout Section
24226 \begin_layout Plain Layout
24227 Floats ! Float Lists
24235 \begin_layout Standard
24236 Similar to the table of contents where the sections of the document are
24237 listed, there are listings for all float types, like the figures of the
24239 You can insert them via the
24241 Insert\SpecialChar \menuseparator
24243 \begin_inset space ~
24247 \begin_inset space ~
24255 \begin_layout Standard
24256 The list entries are the float captions or its short title, the float number,
24257 and the page number where they appear in the document.
24260 \begin_layout Standard
24261 You can find the list of figures and tables at the end of this document.
24264 \begin_layout Chapter
24268 \begin_layout Section
24273 \begin_layout Plain Layout
24282 \begin_layout Standard
24283 Notes are inserted with the toolbar button
24284 \begin_inset Graphics
24285 filename ../images/note-insert.png
24287 scaleBeforeRotation
24293 Insert\SpecialChar \menuseparator
24297 There are three types of notes:
24300 \begin_layout Description
24302 \begin_inset space ~
24305 Note This note type is for internal notes that won't appear in the output.
24306 Its note-box looks like this:
24307 \begin_inset Newline newline
24311 \begin_inset Newline newline
24315 \begin_inset Graphics
24316 filename clipart/LyXNoteImageQt4.png
24319 scaleBeforeRotation
24324 \begin_inset Note Note
24327 \begin_layout Plain Layout
24328 This is text in a note box that doesn't appear in the output.
24336 \begin_layout Description
24337 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24338 ent, when you export the document to LaTeX via the menu
24340 File\SpecialChar \menuseparator
24341 Export\SpecialChar \menuseparator
24342 LaTeX (pdflatex) / (plain)
24345 Its note-box looks like this:
24346 \begin_inset Newline newline
24350 \begin_inset Newline newline
24354 \begin_inset Graphics
24355 filename clipart/CommentNoteImageQt4.png
24358 scaleBeforeRotation
24363 \begin_inset Note Comment
24366 \begin_layout Plain Layout
24367 This is text in a note box that only appears as comment in LaTeX-files.
24375 \begin_layout Description
24377 \begin_inset space ~
24380 Out This note will appear in the output as grey text.
24381 Its note-box looks like this:
24382 \begin_inset Newline newline
24386 \begin_inset Newline newline
24390 \begin_inset Graphics
24391 filename clipart/GreyedOutNoteImageQt4.png
24394 scaleBeforeRotation
24399 \begin_inset Newline newline
24406 \begin_layout Plain Layout
24410 renewenvironment{lyxgreyedout}
24413 \begin_layout Plain Layout
24417 textcolor[gray]{0.8}
24427 \begin_inset Note Greyedout
24430 \begin_layout Plain Layout
24435 \begin_layout Plain Layout
24436 This is an example footnote within a greyed out note.
24441 of a comment that appears in the output as grey text.
24450 \begin_layout Plain Layout
24454 renewenvironment{lyxgreyedout}
24457 \begin_layout Plain Layout
24471 \begin_inset Note Note
24474 \begin_layout Plain Layout
24475 The greyed out note is here redefined to show it with the original LyX definitio
24476 n because greyed out notes are redefined in the preamble of this document,
24477 as described below, to have blue text.
24483 \begin_inset Newline newline
24487 \begin_inset Newline newline
24490 As you can see in the example, the first line of greyed out notes is a bit
24491 indented and greyed out notes can have footnotes.
24494 \begin_layout Standard
24495 \begin_inset VSpace bigskip
24498 When you use the toolbar button
24499 \begin_inset Graphics
24500 filename ../images/note-insert.png
24502 scaleBeforeRotation
24509 \begin_inset space ~
24515 You can switch between the five note types by right-clicking on the note-box.
24520 If you want to turn existing text into a note, mark it and click on the
24534 To change a note to text, press the backspace key when the cursor is in
24535 the first position of a note, or press the delete key when the cursor is
24536 in the very last position of the note, respectively.
24539 \begin_layout Standard
24540 \begin_inset VSpace bigskip
24543 You can change the text color of the greyed out notes in the preamble with
24544 the following command:
24547 \begin_layout Standard
24552 renewenvironment{lyxgreyedout}
24553 \begin_inset Newline newline
24560 \begin_layout Plain Layout
24578 \begin_layout Standard
24579 The available colors and the method to define colors is explained in section
24580 \begin_inset space ~
24584 \begin_inset CommandInset ref
24586 reference "sec:Colored-Tables"
24593 \begin_layout Standard
24594 Notes that appear in blue in this document are set using greyed out notes
24598 \begin_layout Section
24600 \begin_inset CommandInset label
24602 name "sec:Footnotes"
24610 \begin_layout Plain Layout
24620 \begin_layout Plain Layout
24629 \begin_layout Standard
24630 Footnotes can be inserted using the toolbar button
24631 \begin_inset Graphics
24632 filename ../images/footnote-insert.png
24634 scaleBeforeRotation
24640 Insert\SpecialChar \menuseparator
24652 then the following footnote-box:
24653 \begin_inset Graphics
24654 filename clipart/footnoteQt4.png
24656 scaleBeforeRotation
24664 where you can enter the footnote text.
24665 If you want to turn existing text into a footnote, mark it and click on
24687 to text, press the Backspace key when the cursor is in the first position
24696 , or press the Delete key when the cursor is in the very last position of
24708 \begin_layout Standard
24709 Here is an example footnote:
24717 \begin_layout Plain Layout
24718 \begin_inset CommandInset label
24720 name "foot:This-is-an"
24724 This is an example footnote.
24737 \begin_layout Plain Layout
24741 newcounter{MyRepeatFoot}
24744 \begin_layout Plain Layout
24748 setcounter{MyRepeatFoot}{
24758 \begin_layout Standard
24759 The footnote will appear in the output as a superscript number at the text
24760 position where the footnote box is placed.
24761 The footnote text is placed at the bottom of the current page.
24762 The footnote number is calculated by LaTeX; the numbers are consecutive.
24763 It depends on your document-class, whether the footnote number is reset
24767 \begin_layout Standard
24768 Footnotes can be referenced like floats: Insert a label into the footnote
24769 and cross-reference this label in the text as described in section
24770 \begin_inset space ~
24774 \begin_inset CommandInset ref
24776 reference "sec:Referencing-Floats"
24781 \begin_inset Newline newline
24784 This is a cross-reference of Footnote
24785 \begin_inset space ~
24789 \begin_inset CommandInset ref
24791 reference "foot:This-is-an"
24798 \begin_layout Standard
24799 \begin_inset VSpace defskip
24802 Footnotes in tables are not printed by LaTeX due to technical reasons.
24803 However there exists another method to print them: Instead of the footnote
24810 is inserted as TeX-code.
24811 The text of the footnote is entered as an argument of the TeX-code command
24819 \begin_inset Newline newline
24822 This was done for the following table with the command
24825 \begin_layout Standard
24832 Printed table footnote.
24837 \begin_layout Standard
24838 \begin_inset Tabular
24839 <lyxtabular version="3" rows="2" columns="1">
24841 <column alignment="center" valignment="top" width="0">
24843 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24846 \begin_layout Plain Layout
24847 This an example text.
24851 \begin_layout Plain Layout
24852 This footnote will not be printed!
24864 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24867 \begin_layout Plain Layout
24868 This an example text.
24872 \begin_layout Plain Layout
24895 \begin_layout Plain Layout
24904 Printed table footnote.
24908 \begin_layout Plain Layout
24918 \begin_layout Standard
24919 Footnotes in longtables are described in section
24920 \begin_inset space ~
24924 \begin_inset CommandInset ref
24926 reference "sub:Footnotes-in-Longtables"
24933 \begin_layout Standard
24934 Footnotes in minipage boxes are printed, but inside the box and with a different
24935 numbering because a minipage box is like a page inside a page.
24936 (For more about minipages, see section
24937 \begin_inset space ~
24941 \begin_inset CommandInset ref
24943 reference "sec:Minipages"
24947 .) To get a footnote in the minipage that is output at the bottom of the
24948 page like normal footnotes, also use the method of
24963 \begin_layout Standard
24964 \begin_inset Box Frameless
24973 height_special "totalheight"
24976 \begin_layout Plain Layout
24977 This an example text in a minipage.
24981 \begin_layout Plain Layout
24982 Footnote in the minipage.
24990 \begin_layout Plain Layout
24991 This an example text in a minipage.
24995 \begin_layout Plain Layout
25012 \begin_layout Standard
25016 \begin_layout Plain Layout
25025 Footnote outside the minipage.
25029 \begin_layout Plain Layout
25039 \begin_layout Standard
25040 \begin_inset VSpace defskip
25046 \begin_layout Standard
25047 To refer to the same footnote several times without printing the footnote
25048 text every time, use the command
25052 footnotemark[number]
25055 \begin_inset Newline newline
25058 As you do not know the number of the repeating footnote while you are writing
25059 the text, you have to store its number.
25060 For the following footnote mark example, these commands were inserted in
25061 TeX-code after Footnote
25062 \begin_inset space ~
25066 \begin_inset CommandInset ref
25068 reference "foot:This-is-an"
25072 to store the footnote number:
25075 \begin_layout Standard
25080 newcounter{MyRepeatFoot}
25081 \begin_inset Newline newline
25086 setcounter{MyRepeatFoot}{
25091 \begin_layout Standard
25092 The footnote mark was then created with this command:
25095 \begin_layout Standard
25105 \begin_layout Standard
25106 Here is a repeated footnote:
25114 \begin_layout Plain Layout
25128 \begin_layout Standard
25129 If you want to repeat the previous footnote, you can omit the storage of
25130 the footnote number and just use this command instead:
25133 \begin_layout Standard
25143 \begin_layout Standard
25144 Here is another repeated footnote:
25152 \begin_layout Plain Layout
25166 \begin_layout Subsection
25168 \begin_inset CommandInset label
25170 name "sub:Footnote-Numbering"
25178 \begin_layout Plain Layout
25179 Footnotes ! Numbering
25187 \begin_layout Standard
25188 To reset the footnote number back to 1 after each section
25190 , add this command to your document preamble:
25193 \begin_layout Standard
25198 @addtoreset{footnote}{section}
25201 \begin_layout Standard
25202 \begin_inset VSpace bigskip
25205 The following preamble command changes the footnote numbering style to small
25209 \begin_layout Standard
25221 \begin_layout Standard
25225 \begin_layout Plain Layout
25238 This is a footnote with roman numbering:
25242 \begin_layout Plain Layout
25243 This is an example footnote with roman numbering.
25251 \begin_layout Standard
25252 To change the numbering style to capital roman numerals replace in the command
25267 \begin_inset Quotes eld
25271 \begin_inset Quotes erd
25274 footnotes with capital or small Latin letters use
25288 \begin_inset Quotes eld
25292 \begin_inset Quotes erd
25295 footnotes with symbols use
25304 \begin_layout Standard
25305 \begin_inset Note Greyedout
25308 \begin_layout Plain Layout
25313 You can only number 26 footnotes with Latin letters, because this numbering
25314 is limited to single letters.
25320 \begin_inset Newline newline
25324 \begin_inset Note Greyedout
25327 \begin_layout Plain Layout
25332 You can only number 9 footnotes with symbols.
25340 \begin_layout Standard
25341 To return to the default numbering style after you have changed to another
25354 in the command above.
25358 \begin_layout Plain Layout
25374 \begin_layout Standard
25375 \begin_inset VSpace bigskip
25381 \begin_layout Standard
25382 If you want to have footnotes numbered in the scheme
25383 \begin_inset Quotes eld
25387 \begin_inset Quotes erd
25390 , add the following command to your document preamble:
25393 \begin_layout Standard
25398 numberwithin{footnote}{chapter}
25401 \begin_layout Standard
25402 To be able to use the command
25411 \begin_inset space ~
25416 in the document settings the option
25419 \begin_inset space ~
25423 \begin_inset space ~
25427 \begin_inset space ~
25435 \begin_layout Standard
25439 \begin_layout Plain Layout
25443 numberwithin{footnote}{chapter}
25448 This is another example footnote:
25454 \begin_layout Plain Layout
25455 This is a footnote numbered in the scheme
25456 \begin_inset Quotes eld
25460 \begin_inset Quotes erd
25474 \begin_layout Plain Layout
25490 \begin_layout Standard
25491 \begin_inset Note Greyedout
25494 \begin_layout Plain Layout
25505 always prints out the footnote number as arabic number; previous redefinitions
25506 to get non-arabic numbers are overwritten.
25514 \begin_layout Standard
25515 So to get for example the scheme
25516 \begin_inset Quotes eld
25522 \begin_inset Quotes erd
25525 , use this command instead of
25534 \begin_layout Standard
25548 \begin_layout Subsection
25553 \begin_layout Plain Layout
25554 Footnotes ! Placement
25562 \begin_layout Standard
25563 If you have several footnotes in one page, they appear without vertical
25564 space between them at the bottom of the page.
25565 To make them more readable you can e.
25566 \begin_inset space \thinspace{}
25570 \begin_inset space \space{}
25574 \begin_inset space \thinspace{}
25577 mm space with the following preamble command:
25580 \begin_layout Standard
25590 \begin_inset Newline newline
25604 \begin_layout Standard
25605 \begin_inset VSpace bigskip
25608 In a two-column document the footnotes appear at the bottom of every column,
25610 \begin_inset space ~
25614 \begin_inset CommandInset ref
25616 reference "fig:Standard-footnote-placement"
25621 If the footnotes should only appear at the bottom of the right column,
25623 \begin_inset space ~
25627 \begin_inset CommandInset ref
25629 reference "fig:Footnote-placement-in"
25633 , use the LaTeX-package
25641 \begin_layout Plain Layout
25642 LaTeX-packages ! ftnright
25647 with this command in the document preamble:
25650 \begin_layout Standard
25655 usepackage{ftnright}
25658 \begin_layout Standard
25659 \begin_inset Float figure
25665 \begin_layout Plain Layout
25669 \begin_layout Plain Layout
25679 \begin_inset Graphics
25680 filename clipart/without_fntright.pdf
25682 scaleBeforeRotation
25690 \begin_layout Plain Layout
25700 \begin_layout Plain Layout
25701 \begin_inset Caption
25703 \begin_layout Plain Layout
25704 \begin_inset CommandInset label
25706 name "fig:Standard-footnote-placement"
25710 Standard footnote placement in two-column documents.
25723 \begin_layout Standard
25724 \begin_inset Float figure
25730 \begin_layout Plain Layout
25734 \begin_layout Plain Layout
25744 \begin_inset Graphics
25745 filename clipart/with_fntright.pdf
25747 scaleBeforeRotation
25755 \begin_layout Plain Layout
25765 \begin_layout Plain Layout
25766 \begin_inset Caption
25768 \begin_layout Plain Layout
25769 \begin_inset CommandInset label
25771 name "fig:Footnote-placement-in"
25775 Footnote placement in two-column documents when the LaTeX-package
25792 \begin_layout Standard
25793 \begin_inset VSpace bigskip
25796 In some scientific literature it is usual to collect the footnotes and print
25797 them in a separate paragraph at the end of a section, as in Figure
25798 \begin_inset space ~
25802 \begin_inset CommandInset ref
25804 reference "fig:Endnotes"
25809 They are then called
25810 \begin_inset Quotes eld
25814 \begin_inset Quotes erd
25821 \begin_layout Plain Layout
25827 To use endnotes instead of footnotes in your document, load in the menu
25830 Document\SpecialChar \menuseparator
25831 Settings\SpecialChar \menuseparator
25837 \begin_inset space ~
25841 \begin_inset space ~
25847 To insert the collected footnotes, insert the command
25850 \begin_layout Standard
25858 \begin_layout Standard
25859 in TeX-Code at the end of a section or chapter.
25862 \begin_layout Standard
25863 \begin_inset Float figure
25868 \begin_layout Plain Layout
25873 \begin_layout Plain Layout
25883 \begin_inset Graphics
25884 filename clipart/endnotes.pdf
25885 scaleBeforeRotation
25893 \begin_layout Plain Layout
25903 \begin_layout Plain Layout
25904 \begin_inset Caption
25906 \begin_layout Plain Layout
25907 \begin_inset CommandInset label
25909 name "fig:Endnotes"
25913 Endnotes – footnotes are printed in a separate paragraph at the end of sections
25927 \begin_layout Standard
25928 \begin_inset VSpace medskip
25931 The paragraph heading for the endnotes isn't automatically translated into
25932 the document language, this must be done manually.
25933 The following preamble command translates the default English
25934 \begin_inset Quotes eld
25938 \begin_inset Quotes erd
25942 \begin_inset Quotes eld
25946 \begin_inset Quotes erd
25952 \begin_layout Standard
25959 notesname}{Anmerkungen}
25962 \begin_layout Standard
25963 \begin_inset VSpace medskip
25966 The numbering of endnotes can be changed like the footnote numbering as
25967 described in section
25968 \begin_inset space ~
25972 \begin_inset CommandInset ref
25974 reference "sub:Footnote-Numbering"
25978 ; just replace the command
25991 To reset the endnote number use the command
25997 as described in section
25998 \begin_inset space ~
26002 \begin_inset CommandInset ref
26004 reference "sub:Footnote-Numbering"
26008 and replace the command parameter
26019 \begin_layout Standard
26020 For endnotes there is the command
26024 endnotemark[number]
26026 similar to the command
26032 , that is described in section
26033 \begin_inset space ~
26037 \begin_inset CommandInset ref
26039 reference "sec:Footnotes"
26046 \begin_layout Standard
26047 \begin_inset VSpace bigskip
26050 Footnotes can also be placed in the page margin and the footnote text alignment
26051 can be changed, see the LaTeX-package
26059 \begin_layout Plain Layout
26060 LaTeX-packages ! footmisc
26066 \begin_inset CommandInset citation
26072 for more information about this.
26075 \begin_layout Standard
26076 For various further footnote formatting issues have a look at LaTeX-books,
26078 \begin_inset CommandInset citation
26080 key "latexcompanion,latexguide,latexbook"
26087 \begin_layout Section
26092 \begin_layout Plain Layout
26093 Notes ! Margin Notes
26101 \begin_layout Standard
26102 Margin notes look and behave in LyX like footnotes.
26103 They are inserted via the menu
26105 Insert\SpecialChar \menuseparator
26107 \begin_inset space ~
26112 or the toolbar button
26113 \begin_inset Graphics
26114 filename ../images/marginalnote-insert.png
26116 scaleBeforeRotation
26131 \begin_inset Quotes eld
26135 \begin_inset Quotes erd
26138 appears where you can enter the text of the margin note.
26141 \begin_layout Standard
26142 At the side is an example margin note.
26147 \begin_inset Marginal
26150 \begin_layout Plain Layout
26151 This is a margin note.
26159 \begin_layout Standard
26160 Margin notes appear at the right side in single-sided documents.
26161 In double-sided documents they appear in the outer margin – left on even
26162 pages, right on odd pages.
26163 The text of margin notes is aligned opposite to the outer margin – right-aligne
26164 d when the note appears in the left margin.
26165 The first line of the margin note is placed at the position of the text
26166 line where it is inserted in the document.
26169 \begin_layout Standard
26170 \begin_inset VSpace bigskip
26173 To place the margin note in the inner margin, add the command
26176 \begin_layout Standard
26184 \begin_layout Standard
26185 in TeX-Code before a margin note.
26186 The new placement is valid for all subsequent margin notes.
26191 \begin_layout Plain Layout
26201 \begin_inset Marginal
26204 \begin_layout Plain Layout
26205 This is a margin note in the inner margin.
26213 \begin_inset Newline newline
26219 \begin_inset Note Greyedout
26222 \begin_layout Plain Layout
26227 There is often not enough space in the inner margin so that the notes are
26228 not correctly displayed in the output.
26236 \begin_layout Standard
26237 To return to the default placement insert the command
26240 \begin_layout Standard
26248 \begin_layout Standard
26253 \begin_layout Plain Layout
26263 \begin_inset Note Greyedout
26266 \begin_layout Plain Layout
26271 The command is ignored when it is within a paragraph where also the command
26286 \begin_layout Standard
26287 \begin_inset VSpace bigskip
26294 \begin_inset Marginal
26297 \begin_layout Plain Layout
26298 AVeryLongMarginParWord that isn't hyphenated.
26306 Similar to the case described in section
26307 \begin_inset space ~
26311 \begin_inset CommandInset ref
26313 reference "sub:Multiple-Lines-in"
26317 , long words cannot be hyphenated when they are the first word in a margin
26319 To avoid this, insert 0
26320 \begin_inset space \thinspace{}
26323 pt horizontal space before the word
26328 \begin_inset Marginal
26331 \begin_layout Plain Layout
26332 \begin_inset space \hspace*{}
26336 AVeryLongMarginParWord that is hyphenated.
26344 \begin_layout Standard
26345 \begin_inset VSpace bigskip
26351 \begin_layout Standard
26352 \begin_inset Note Greyedout
26355 \begin_layout Plain Layout
26360 Margin notes can normally not be used inside tables, floats, and footnotes.
26368 \begin_layout Standard
26369 \begin_inset VSpace bigskip
26375 \begin_layout Standard
26379 \begin_layout Plain Layout
26389 \begin_inset Note Note
26392 \begin_layout Plain Layout
26393 The following section will only be displayed when the LaTeX-package
26405 \begin_layout Standard
26406 This restriction can be evaded by using the LaTeX-package
26414 \begin_layout Plain Layout
26415 LaTeX-packages ! marginnote
26421 By adding these two lines to your document preamble, the command used by
26422 LyX for margin notes is redefined to use the command provided by the
26429 \begin_layout Standard
26434 usepackage{marginnote}
26435 \begin_inset Newline newline
26447 \begin_layout Standard
26448 This is also used in this document because
26452 has another useful feature: You can set a vertical offset for the note.
26453 This is often needed when too many margin notes are too close together
26454 or for a better page layout.
26455 The offset is set in LyX as TeX-Code directly after the margin note in
26459 \begin_layout Standard
26465 \begin_layout Standard
26466 where the offset is a length with one of the units listed in Table
26467 \begin_inset space ~
26471 \begin_inset CommandInset ref
26473 reference "tab:Units"
26478 A negative value shifts the note up, a positive value shifts it down.
26482 For example the margin note beside this text line is shifted up 1.5
26483 \begin_inset space \thinspace{}
26486 cm with the TeX-Code-command
26487 \begin_inset Quotes eld
26497 \begin_inset Quotes erd
26501 \begin_inset Marginal
26504 \begin_layout Plain Layout
26505 This margin note is shifted up 1.5
26506 \begin_inset space \thinspace{}
26509 cm from its original position.
26521 \begin_layout Plain Layout
26531 \begin_layout Standard
26532 \begin_inset VSpace medskip
26539 you can also change the alignment of the text in the margin note.
26540 For example the commands
26543 \begin_layout Standard
26550 raggedleftmarginnote}{
26553 \begin_inset Newline newline
26560 raggedrightmarginnote}{
26565 \begin_layout Standard
26566 set the alignment to centered.
26571 raggedleftmarginnote
26573 denotes margin notes that appear at the left side.
26580 \begin_layout Plain Layout
26586 raggedleftmarginnote}{
26591 \begin_layout Plain Layout
26597 raggedrightmarginnote}{
26605 \begin_inset Marginal
26608 \begin_layout Plain Layout
26609 The text of this margin note is centered.
26620 \begin_layout Standard
26627 raggedleftmarginnote}{
26630 \begin_inset Newline newline
26637 raggedrightmarginnote}{
26646 \begin_layout Plain Layout
26652 raggedleftmarginnote}{
26657 \begin_layout Plain Layout
26663 raggedrightmarginnote}{
26673 \begin_layout Standard
26674 \begin_inset VSpace medskip
26677 For the other features of
26681 refer to its documentation
26682 \begin_inset CommandInset citation
26691 \begin_layout Standard
26692 \begin_inset VSpace bigskip
26695 You can adjust the layout of margin notes by changing its definition.
26696 To create for example a header for all margin notes with the underlined,
26697 sans-serif, and bold header text
26698 \begin_inset Quotes eld
26710 \begin_inset Quotes erd
26713 , add this to your document preamble:
26716 \begin_layout Standard
26726 \begin_inset Newline newline
26736 \begin_inset Newline newline
26743 \begin_layout Plain Layout
26760 underbar{Attention!}}}%
26761 \begin_inset Newline newline
26768 \begin_layout Plain Layout
26786 \begin_layout Standard
26793 \begin_layout Plain Layout
26804 \begin_layout Plain Layout
26815 \begin_layout Plain Layout
26823 underbar{Attention!}}}%
26826 \begin_layout Plain Layout
26840 \begin_inset Marginal
26843 \begin_layout Plain Layout
26844 This is a margin note with a defined heading.
26856 \begin_layout Plain Layout
26870 \begin_layout Plain Layout
26887 \begin_inset Note Note
26890 \begin_layout Plain Layout
26891 The margin note format is changed only for this example.
26899 \begin_layout Standard
26903 \begin_layout Plain Layout
26913 \begin_inset Note Note
26916 \begin_layout Plain Layout
26917 The following will be displayed when the LaTeX-package
26929 \begin_layout Standard
26930 You need to install the LaTeX-package
26934 to see the following part of this section in the output.
26937 \begin_layout Standard
26941 \begin_layout Plain Layout
26953 \begin_layout Chapter
26957 \begin_layout Section
26962 \begin_layout Plain Layout
26963 Boxes ! Introduction
26971 \begin_layout Standard
26972 Boxes are used to format a block of text.
26973 Boxes can be used to write documents with multiple languages, see section
26974 \begin_inset space ~
26978 \begin_inset CommandInset ref
26980 reference "sec:Minipages"
26984 , to frame texts, see section
26985 \begin_inset space ~
26989 \begin_inset CommandInset ref
26991 reference "sec:Decoration"
26995 , to prevent words to be hyphenated, see section
26996 \begin_inset space ~
27000 \begin_inset CommandInset ref
27002 reference "sec:Prevent-Hyphenation"
27006 , to align text, see section
27007 \begin_inset space ~
27011 \begin_inset CommandInset ref
27013 reference "sub:Vertical-Alignment"
27017 , or to set the background color of texts, see section
27018 \begin_inset space ~
27022 \begin_inset CommandInset ref
27024 reference "sec:Colored-Boxes"
27031 \begin_layout Standard
27032 Boxes can be inserted with the menu
27034 Insert\SpecialChar \menuseparator
27037 or the toolbar button
27038 \begin_inset Graphics
27039 filename ../images/box-insert.png
27041 scaleBeforeRotation
27046 A grey box with the label
27051 \begin_inset Graphics
27052 filename clipart/BoxInsetDefaultQt4.png
27054 scaleBeforeRotation
27059 The box type can be specified by right-clicking on the box.
27060 The appearing box dialog offers the
27063 \begin_inset space ~
27081 is the default for new boxes and is explained in section
27082 \begin_inset space ~
27086 \begin_inset CommandInset ref
27088 reference "sec:Minipages"
27096 is described in section
27097 \begin_inset space ~
27101 \begin_inset CommandInset ref
27103 reference "sec:Parboxes"
27110 \begin_layout Standard
27111 Boxes are not numbered and can therefore not be referenced like floats or
27115 \begin_layout Standard
27116 \begin_inset Note Greyedout
27119 \begin_layout Plain Layout
27124 Boxes must not be the item in an
27140 \begin_layout Standard
27141 \begin_inset Note Greyedout
27144 \begin_layout Plain Layout
27149 For an unknown reason you can only set the
27152 \begin_inset space ~
27161 when you use a framed box.
27165 \begin_inset space ~
27170 type and without frames are explained in section
27171 \begin_inset space ~
27175 \begin_inset CommandInset ref
27177 reference "sec:Prevent-Hyphenation"
27189 \begin_layout Section
27191 \begin_inset CommandInset label
27193 name "sec:Box-Dialog"
27201 \begin_layout Plain Layout
27210 \begin_layout Subsection
27215 \begin_layout Plain Layout
27224 \begin_layout Standard
27225 In the box dialog you can adjust the box geometry in the fields
27234 The available units for the geometry are explained in Table
27235 \begin_inset space ~
27239 \begin_inset CommandInset ref
27241 reference "tab:Units"
27250 offers the following additional sizes:
27253 \begin_layout Description
27254 Depth This is the plain text
27255 \begin_inset Quotes eld
27259 \begin_inset Quotes erd
27263 It ignores the total depth when there are multiple text lines in the box:
27264 \begin_inset Newline newline
27268 \begin_inset Newline newline
27272 \begin_inset Newline newline
27276 \begin_inset Box Boxed
27285 height_special "depth"
27288 \begin_layout Plain Layout
27290 Box height set to 1
27291 \begin_inset space \thinspace{}
27300 \begin_inset Newline newline
27304 \begin_inset Newline newline
27310 \begin_layout Description
27311 Height This is the height of the text that is inside the box.
27313 \begin_inset space \thinspace{}
27317 \begin_inset space \space{}
27320 2 for this size will set the box height to 2
27321 \begin_inset space ~
27324 times the text height:
27325 \begin_inset Box Boxed
27334 height_special "height"
27337 \begin_layout Plain Layout
27339 Box height set to 2
27340 \begin_inset space \thinspace{}
27351 \begin_layout Description
27353 \begin_inset space ~
27356 Height This is the Height
27357 \begin_inset space \thinspace{}
27361 \begin_inset space \thinspace{}
27365 \begin_inset Box Boxed
27374 height_special "totalheight"
27377 \begin_layout Plain Layout
27379 Box height set to 1
27380 \begin_inset space \thinspace{}
27384 \begin_inset space ~
27395 \begin_layout Description
27396 Width This sets the width of the box as height:
27397 \begin_inset Box Boxed
27406 height_special "width"
27409 \begin_layout Plain Layout
27411 Box height set to 1
27412 \begin_inset space \thinspace{}
27423 \begin_layout Subsection
27428 \begin_layout Plain Layout
27437 \begin_layout Standard
27438 When you have chosen an
27441 \begin_inset space ~
27446 , the vertical box alignment can be:
27449 \begin_layout Description
27450 Top This is an example text line.
27452 \begin_inset Box Boxed
27461 height_special "totalheight"
27464 \begin_layout Plain Layout
27466 This box is top-aligned.
27471 This is an example text line.
27474 \begin_layout Description
27475 Middle This is an example text line.
27477 \begin_inset Box Boxed
27486 height_special "totalheight"
27489 \begin_layout Plain Layout
27491 This box is middle-aligned.
27496 This is an example text line.
27499 \begin_layout Description
27500 Bottom This is an example text line.
27502 \begin_inset Box Boxed
27511 height_special "totalheight"
27514 \begin_layout Plain Layout
27516 This box is bottom-aligned.
27521 This is an example text line.
27524 \begin_layout Standard
27525 \begin_inset Note Greyedout
27528 \begin_layout Plain Layout
27533 The vertical box alignment can be lost in the output when you have two
27534 boxes in a line and one has e.
27535 \begin_inset space \thinspace{}
27539 \begin_inset space \space{}
27542 a shadow and the other one not.
27550 \begin_layout Standard
27551 The horizontal box alignment can be set via LyX's paragraph dialog when
27552 you set the box into its own paragraph.
27555 \begin_layout Standard
27556 \begin_inset VSpace bigskip
27559 When you have chosen an
27562 \begin_inset space ~
27567 , the box content can be aligned vertically to:
27570 \begin_layout Description
27571 top This is an example text line.
27573 \begin_inset Box Boxed
27582 height_special "totalheight"
27585 \begin_layout Plain Layout
27587 This box text is top-aligned.
27592 This is an example text line.
27595 \begin_layout Description
27596 middle This is an example text line.
27598 \begin_inset Box Boxed
27607 height_special "totalheight"
27610 \begin_layout Plain Layout
27612 This box text is middle-aligned.
27617 This is an example text line.
27620 \begin_layout Description
27621 bottom This is an example text line.
27623 \begin_inset Box Boxed
27632 height_special "totalheight"
27635 \begin_layout Plain Layout
27637 This box text is bottom-aligned.
27642 This is an example text line.
27645 \begin_layout Description
27646 stretch This is an example text line.
27648 \begin_inset Box Boxed
27657 height_special "totalheight"
27660 \begin_layout Plain Layout
27665 \begin_layout Plain Layout
27670 \begin_layout Plain Layout
27677 This is an example text line.
27680 \begin_layout Standard
27681 To stretch the box content, it must consist of more than one paragraph.
27682 In the example above every text line is in an own paragraph.
27685 \begin_layout Standard
27686 \begin_inset VSpace bigskip
27689 To align the box content horizontally you can use LyX's paragraph dialog
27690 when you have chosen an
27693 \begin_inset space ~
27701 \begin_layout Standard
27703 \begin_inset Box Boxed
27712 height_special "totalheight"
27715 \begin_layout Plain Layout
27720 \begin_layout Plain Layout
27725 \begin_layout Plain Layout
27735 \begin_layout Standard
27736 If you have not set an
27739 \begin_inset space ~
27744 , you can align the box content horizontally in the box dialog.
27747 \begin_layout Standard
27749 \begin_inset Box Boxed
27758 height_special "totalheight"
27761 \begin_layout Plain Layout
27763 This box text is horizontally stretched.
27771 \begin_layout Subsection
27773 \begin_inset CommandInset label
27775 name "sec:Decoration"
27783 \begin_layout Plain Layout
27792 \begin_layout Standard
27793 The type of the box can be specified in the box dialog in the drop-down
27799 The following types are possible:
27802 \begin_layout Description
27804 \begin_inset space ~
27808 \begin_inset space ~
27811 frame This draws a rectangular frame around the box.
27812 The frame line thickness has the size of
27820 \begin_inset Box Boxed
27829 height_special "totalheight"
27832 \begin_layout Plain Layout
27842 \begin_layout Description
27844 \begin_inset space ~
27848 \begin_inset space ~
27851 break When you use the decoration
27853 simple rectangular frame
27855 and no inner box, you can allow page breaks within a box.
27856 Note that then, in contrary to other framed boxes, the frame always uses
27857 the whole column width, the box is set as its own paragraph, and
27869 have no effect on this box type.
27870 The frame line thickness has the size of
27878 \begin_inset Box Framed
27887 height_special "totalheight"
27890 \begin_layout Plain Layout
27891 Allow page break box
27899 \begin_layout Description
27901 \begin_inset space ~
27905 \begin_inset space ~
27908 thin This draws an oval frame around the box.
27909 The frame line thickness has the size 0.4
27910 \begin_inset space \thinspace{}
27915 \begin_inset Box ovalbox
27924 height_special "totalheight"
27927 \begin_layout Plain Layout
27937 \begin_layout Description
27939 \begin_inset space ~
27943 \begin_inset space ~
27946 thick This draws an oval frame around the box.
27947 The frame line thickness has the size 0.8
27948 \begin_inset space \thinspace{}
27953 \begin_inset Box Ovalbox
27962 height_special "totalheight"
27965 \begin_layout Plain Layout
27975 \begin_layout Description
27977 \begin_inset space ~
27980 shadow This draws a rectangular frame with a shadow around the box.
27981 The frame line thickness has the size of
27987 , the shadow has a width of 4
27988 \begin_inset space \thinspace{}
27993 \begin_inset Box Shadowbox
28002 height_special "totalheight"
28005 \begin_layout Plain Layout
28015 \begin_layout Description
28017 \begin_inset space ~
28020 background This draws a box with red background color.
28021 In contrary to colored boxes
28025 \begin_layout Plain Layout
28027 \begin_inset space \thinspace{}
28031 \begin_inset CommandInset ref
28033 reference "sec:Colored-Boxes"
28042 , it always uses the whole column width and the box is set as its own paragraph.
28044 \begin_inset Box Shaded
28053 height_special "totalheight"
28056 \begin_layout Plain Layout
28057 Shaded background box
28065 \begin_layout Description
28067 \begin_inset space ~
28071 \begin_inset space ~
28074 frame This draws a double-line rectangular frame around the box.
28075 The line thickness of the inner frame is 0.75
28076 \begin_inset space \thinspace{}
28085 , the thickness of the outer frame is 1.5
28086 \begin_inset space \thinspace{}
28096 The distance between the lines is 1.5
28097 \begin_inset space \thinspace{}
28107 \begin_inset space \thinspace{}
28111 \begin_inset space \thinspace{}
28115 \begin_inset space \thinspace{}
28120 \begin_inset Box Doublebox
28129 height_special "totalheight"
28132 \begin_layout Plain Layout
28134 Double rectangular box
28142 \begin_layout Standard
28143 \begin_inset VSpace bigskip
28146 LyX's box label will reflect the different frame types.
28147 To be able to use all types, the LaTeX-package
28155 \begin_layout Plain Layout
28156 LaTeX-packages ! fancybox
28164 \begin_layout Section
28169 \begin_layout Plain Layout
28170 Boxes ! Customization
28178 \begin_layout Standard
28179 The default value for the size
28186 \begin_inset space \thinspace{}
28190 It can be changed with the following command in TeX-Code to e.
28191 \begin_inset space \thinspace{}
28195 \begin_inset space \space{}
28199 \begin_inset space \thinspace{}
28205 \begin_layout Standard
28215 \begin_layout Standard
28219 \begin_layout Plain Layout
28231 \begin_inset Box Boxed
28240 height_special "totalheight"
28243 \begin_layout Plain Layout
28245 Rectangular box with
28252 \begin_inset space \thinspace{}
28256 \begin_inset space \thinspace{}
28260 \begin_inset space \thinspace{}
28272 \begin_layout Plain Layout
28286 \begin_layout Standard
28287 \begin_inset VSpace bigskip
28290 The space between the frame and the box content is for all frame styles
28292 \begin_inset space \thinspace{}
28296 You can change it by setting the length
28303 For example the command
28306 \begin_layout Standard
28316 \begin_layout Standard
28317 sets the value to 10
28318 \begin_inset space \thinspace{}
28321 pt, like for the following box:
28324 \begin_layout Standard
28328 \begin_layout Plain Layout
28340 \begin_inset Box Boxed
28349 height_special "totalheight"
28352 \begin_layout Plain Layout
28354 Rectangular box with
28361 \begin_inset space \thinspace{}
28365 \begin_inset space \thinspace{}
28369 \begin_inset space \thinspace{}
28381 \begin_layout Plain Layout
28395 \begin_layout Standard
28396 \begin_inset VSpace bigskip
28399 The diameter of the round corners of the oval boxes can be set with the
28410 \begin_layout Standard
28418 \begin_layout Standard
28419 sets the diameter to 1
28420 \begin_inset space \thinspace{}
28427 \begin_layout Standard
28435 \begin_layout Standard
28436 sets the diameter to
28439 \begin_inset space \thinspace{}
28443 \begin_inset space \thinspace{}
28446 minimum(width and heigth of box)
28458 \begin_layout Standard
28462 \begin_layout Plain Layout
28472 \begin_inset Box Ovalbox
28481 height_special "totalheight"
28484 \begin_layout Plain Layout
28493 \begin_inset space \thinspace{}
28497 \begin_inset space \thinspace{}
28501 \begin_inset space \thinspace{}
28513 \begin_layout Plain Layout
28525 \begin_layout Standard
28526 \begin_inset VSpace bigskip
28529 The size of the shadow can be adjusted by changing the length
28537 \begin_inset space \thinspace{}
28540 pt for the following box by this command:
28543 \begin_layout Standard
28553 \begin_layout Standard
28557 \begin_layout Plain Layout
28569 \begin_inset Box Shadowbox
28578 height_special "totalheight"
28581 \begin_layout Plain Layout
28590 \begin_inset space \thinspace{}
28594 \begin_inset space \thinspace{}
28598 \begin_inset space \thinspace{}
28610 \begin_layout Plain Layout
28624 \begin_layout Standard
28625 \begin_inset VSpace bigskip
28631 \begin_layout Standard
28632 The default value for the size
28639 \begin_inset space \thinspace{}
28643 The default space between the note content and the frame is 9
28644 \begin_inset space \thinspace{}
28647 pt and can be changed with the value of
28654 For example the frame appearance of the following
28658 is set with the TeX-Code commands
28661 \begin_layout Standard
28669 \begin_inset Newline newline
28679 \begin_layout Standard
28683 \begin_layout Plain Layout
28692 \begin_layout Plain Layout
28704 \begin_inset Box Framed
28713 height_special "totalheight"
28716 \begin_layout Plain Layout
28730 \begin_layout Plain Layout
28739 \begin_layout Plain Layout
28753 \begin_layout Standard
28754 \begin_inset VSpace bigskip
28760 \begin_layout Standard
28765 boxes the default space between the box content and the box border is 3
28766 \begin_inset space \thinspace{}
28769 pt and can be changed with the value of
28776 The default background color red can either be changed locally with the
28781 definecolor{shadecolor}
28783 or globally with the menu
28785 Tools\SpecialChar \menuseparator
28786 Preferences\SpecialChar \menuseparator
28787 Colors\SpecialChar \menuseparator
28789 \begin_inset space ~
28801 command is explained in section
28802 \begin_inset space ~
28806 \begin_inset CommandInset ref
28808 reference "sec:Colored-Tables"
28816 \begin_layout Plain Layout
28823 requires the LaTeX-package
28827 in the preamble, see section
28828 \begin_inset space ~
28832 \begin_inset CommandInset ref
28834 reference "sec:Colored-Boxes"
28843 For example the appearance of the following shaded background box is set
28844 with the TeX-Code commands
28847 \begin_layout Standard
28857 \begin_inset Newline newline
28864 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28867 \begin_layout Standard
28871 \begin_layout Plain Layout
28880 \begin_layout Plain Layout
28884 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28890 \begin_inset Box Shaded
28899 height_special "totalheight"
28902 \begin_layout Plain Layout
28905 This is yellow text in a
28915 box with dark green background.
28924 \begin_layout Plain Layout
28933 \begin_layout Plain Layout
28937 definecolor{shadecolor}{rgb}{1,0,0}
28945 \begin_layout Standard
28946 \begin_inset VSpace bigskip
28949 Changed lengths and widths are valid for all boxes following the commands
28953 \begin_layout Section
28955 \begin_inset CommandInset label
28957 name "sec:Minipages"
28965 \begin_layout Plain Layout
28974 \begin_layout Standard
28975 Minipages are treated by LaTeX as pages within pages and can therefore for
28976 example have their own footnotes.
28979 \begin_layout Standard
28980 Minipages are useful when you write documents with different languages.
28983 \begin_layout Standard
28984 Below are two example minipages side by side.
28985 Their width is set to 45
28986 \begin_inset space \thinspace{}
28989 col% and they are separated by a horizontal fill, that was inserted via
28992 Insert\SpecialChar \menuseparator
28994 \begin_inset space ~
28997 Formatting\SpecialChar \menuseparator
28999 \begin_inset space ~
29005 \begin_inset Newpage newpage
29011 \begin_layout Standard
29012 \begin_inset Box Frameless
29021 height_special "totalheight"
29024 \begin_layout Plain Layout
29027 Dies ist ein deutscher Text.
29028 Dies ist ein deutscher Text.
29029 Dies ist ein deutscher Text.
29030 Dies ist ein deutscher Text.
29031 Dies ist ein deutscher Text.
29032 Dies ist ein deutscher Text.
29033 Dies ist ein deutscher Text.
29034 Dies ist ein deutscher Text.
29035 Dies ist ein deutscher Text.
29036 Dies ist ein deutscher Text.
29037 Dies ist ein deutscher Text.
29038 Dies ist ein deutscher Text.
29039 Dies ist ein deutscher Text
29043 \begin_layout Plain Layout
29046 Dies ist eine deutsche Fußnote.
29052 Dies ist ein deutscher Text.
29053 Dies ist ein deutscher Text.
29059 \begin_inset space \hfill{}
29063 \begin_inset Box Frameless
29072 height_special "totalheight"
29075 \begin_layout Plain Layout
29076 This is an English Text.
29077 This is an English Text.
29078 This is an English Text.
29079 This is an English Text.
29080 This is an English Text.
29081 This is an English Text.
29082 This is an English Text.
29083 This is an English Text.
29084 This is an English Text.
29085 This is an English Text.
29086 This is an English Text.
29087 This is an English Text.
29088 This is an English Text.
29089 This is an English Text.
29090 This is an English Text.
29091 This is an English Text.
29095 \begin_layout Plain Layout
29096 This is an English footnote.
29101 This is an English Text.
29110 \begin_layout Standard
29111 \begin_inset VSpace bigskip
29114 The document-wide paragraph settings are ignored within minipages.
29115 That means that there will be no space between paragraphs in minipages
29116 although you set it to e.
29117 \begin_inset space \thinspace{}
29121 \begin_inset space \space{}
29128 in the document settings.
29131 \begin_layout Standard
29132 Minipages can also be used to set a background color for text parts, see
29134 \begin_inset space ~
29138 \begin_inset CommandInset ref
29140 reference "sub:Color-for-Paragraphs"
29147 \begin_layout Standard
29148 \begin_inset Note Greyedout
29151 \begin_layout Plain Layout
29156 You cannot have floats or margin notes inside minipages but minipages can
29157 be used inside tables, floats, and other boxes.
29165 \begin_layout Section
29167 \begin_inset CommandInset label
29169 name "sec:Parboxes"
29177 \begin_layout Plain Layout
29186 \begin_layout Standard
29187 Parboxes are very similar to minipages with the difference that they cannot
29189 The main difference to minipages is that minipages are in contrary to parboxes
29190 no real boxes but LaTeX-environments.
29193 \begin_layout Standard
29195 \begin_inset Box Frameless
29204 height_special "totalheight"
29207 \begin_layout Plain Layout
29208 This a text within a parbox.
29209 This a text within a parbox.
29212 \begin_layout Plain Layout
29213 This footnote won't appear:
29217 \begin_layout Plain Layout
29218 This footnote is inside a parbox and will therefore not appear.
29231 \begin_layout Section
29232 Boxes for Words and Characters
29236 \begin_layout Plain Layout
29237 Boxes ! for Characters
29245 \begin_layout Subsection
29246 Prevent Hyphenation
29247 \begin_inset CommandInset label
29249 name "sec:Prevent-Hyphenation"
29257 \begin_layout Plain Layout
29258 Boxes ! to Prevent Hyphenation
29266 \begin_layout Standard
29267 You can use a special kind of boxes to prevent words or text to be hyphenated.
29268 \begin_inset Newline newline
29271 Here is an example text:
29274 \begin_layout Standard
29275 This line is an example to show how you can prevent the hyphenation of
29276 \begin_inset Quotes eld
29280 \begin_inset Quotes erd
29286 \begin_layout Standard
29287 To prevent the hyphenation of the word
29288 \begin_inset Quotes eld
29292 \begin_inset Quotes erd
29298 \begin_layout Standard
29306 \begin_layout Standard
29307 in TeX-Code before the word.
29308 Behind the word insert a closing brace
29309 \begin_inset Quotes eld
29317 \begin_inset Quotes erd
29323 \begin_layout Standard
29324 This is the result:
29327 \begin_layout Standard
29328 This line is an example to show how you can prevent the hyphenation of
29332 \begin_layout Plain Layout
29342 \begin_inset Quotes eld
29346 \begin_inset Quotes erd
29353 \begin_layout Plain Layout
29363 \begin_layout Standard
29364 You can alternatively set the command
29365 \begin_inset Quotes eld
29375 \begin_inset Quotes grd
29378 as TeX-Code directly before the word:
29381 \begin_layout Standard
29382 This line is an example to show how you can prevent the hyphenation of
29383 \begin_inset Quotes eld
29390 \begin_layout Plain Layout
29400 \begin_inset Quotes erd
29406 \begin_layout Standard
29407 Of course the word now protrudes over the side margin.
29408 To avoid this, add via the menu
29410 Insert\SpecialChar \menuseparator
29412 \begin_inset space ~
29415 Formatting\SpecialChar \menuseparator
29417 \begin_inset space ~
29425 arg "newline-insert newline"
29428 ) a line break before the word:
29431 \begin_layout Standard
29432 This line is an example to show how you can prevent the hyphenation of
29433 \begin_inset Newline newline
29440 \begin_layout Plain Layout
29450 \begin_inset Quotes eld
29454 \begin_inset Quotes erd
29461 \begin_layout Plain Layout
29471 \begin_layout Subsection
29473 \begin_inset CommandInset label
29475 name "sub:Vertical-Alignment"
29483 \begin_layout Plain Layout
29484 Boxes ! for Vertical Alignment
29493 \begin_layout Plain Layout
29502 \begin_layout Standard
29503 With the help of the command
29509 you can align words, characters or other boxes vertically to the surrounding
29517 is used with the following scheme:
29520 \begin_layout Standard
29525 raisebox{lift}[height][depth]{box content}
29528 \begin_layout Standard
29529 The lift can be a positive value to raise the box or a negative value to
29533 \begin_layout Standard
29534 To align for example the word
29535 \begin_inset Quotes eld
29539 \begin_inset Quotes erd
29542 so that the bottom of the
29543 \begin_inset Quotes eld
29547 \begin_inset Quotes erd
29551 \begin_inset Quotes eld
29555 \begin_inset Quotes erd
29558 is at the baseline, insert the command
29561 \begin_layout Standard
29571 \begin_layout Standard
29572 in TeX-Code before the word.
29573 Behind the word insert a closing brace
29574 \begin_inset Quotes eld
29582 \begin_inset Quotes erd
29586 \begin_inset Newline newline
29589 This is the result:
29592 \begin_layout Standard
29593 This is a text line with the word
29597 \begin_layout Plain Layout
29609 \begin_inset Quotes eld
29613 \begin_inset Quotes erd
29620 \begin_layout Plain Layout
29630 \begin_layout Standard
29631 \begin_inset VSpace bigskip
29634 When you raise or lower characters in a line, the line distance will be
29638 \begin_layout Standard
29639 This is a text line with the word
29643 \begin_layout Plain Layout
29655 \begin_inset Quotes eld
29659 \begin_inset Quotes erd
29666 \begin_layout Plain Layout
29674 \begin_inset Newline newline
29677 This is a text line with the word
29681 \begin_layout Plain Layout
29691 \begin_inset Quotes eld
29695 \begin_inset Quotes erd
29702 \begin_layout Plain Layout
29712 \begin_layout Standard
29713 If you want to prevent this for a certain reason, set the box height to
29718 \begin_layout Standard
29728 \begin_layout Standard
29729 This is a text line with the word
29733 \begin_layout Plain Layout
29745 \begin_inset Quotes eld
29749 \begin_inset Quotes erd
29756 \begin_layout Plain Layout
29764 \begin_inset Newline newline
29767 This is a text line with the word
29771 \begin_layout Plain Layout
29775 raisebox{0.5cm}[0pt]{
29781 \begin_inset Quotes eld
29785 \begin_inset Quotes erd
29792 \begin_layout Plain Layout
29802 \begin_layout Section
29804 \begin_inset CommandInset label
29806 name "sec:Colored-Boxes"
29814 \begin_layout Plain Layout
29823 \begin_layout Subsection
29828 \begin_layout Plain Layout
29837 \begin_layout Standard
29838 To color the background of text the text must be put into a so called
29839 \begin_inset Quotes eld
29843 \begin_inset Quotes erd
29847 This requires that the LaTeX-package
29855 \begin_layout Plain Layout
29856 LaTeX-packages ! color
29861 is loaded in the document preamble with the command
29864 \begin_layout Standard
29869 @ifundefined{textcolor}
29870 \begin_inset Newline newline
29877 \begin_layout Plain Layout
29888 usepackage{color}}{}
29891 \begin_layout Standard
29896 will be loaded automatically by LyX when you color text
29900 \begin_layout Plain Layout
29901 To avoid that it is loaded twice the command
29915 \begin_layout Standard
29916 \begin_inset VSpace medskip
29919 Colorboxes are created with the command
29926 This will be used with the following scheme:
29929 \begin_layout Standard
29934 colorbox{color}{box content}
29937 \begin_layout Standard
29938 The box content can also be a box and colorboxes can also be within other
29942 \begin_layout Standard
29943 The following colors are predefined:
29944 \begin_inset Newline newline
29983 \begin_inset Newline newline
29986 You can also define your own color as described in section
29987 \begin_inset space ~
29991 \begin_inset CommandInset ref
29993 reference "sec:Colored-Tables"
30000 \begin_layout Standard
30002 \begin_inset space \thinspace{}
30006 \begin_inset space \space{}
30009 a red background for a word, insert the command
30012 \begin_layout Standard
30020 \begin_layout Standard
30021 before the word in TeX-Code.
30022 Behind the word insert a closing brace
30023 \begin_inset Quotes eld
30031 \begin_inset Quotes erd
30035 \begin_inset Newline newline
30038 This is the result:
30041 \begin_layout Standard
30042 This is a line where the word
30046 \begin_layout Plain Layout
30056 \begin_inset Quotes eld
30060 \begin_inset Quotes erd
30067 \begin_layout Plain Layout
30074 has a red background.
30077 \begin_layout Standard
30078 \begin_inset VSpace bigskip
30081 If you would have the box frame in a different color, you can use the command
30088 with the following scheme:
30091 \begin_layout Standard
30096 fcolorbox{frame color}{box color}{box content}
30099 \begin_layout Standard
30113 The frame thickness and the space between the frame and the box content
30114 can be adjusted with the lengths
30126 , respectively, as described in section
30127 \begin_inset space ~
30131 \begin_inset CommandInset ref
30133 reference "sec:Decoration"
30140 \begin_layout Standard
30141 For the following example the command
30144 \begin_layout Standard
30149 fcolorbox{cyan}{magenta}{
30152 \begin_layout Standard
30156 \begin_layout Standard
30157 Here is an example where the frame line thickness was set to 1
30158 \begin_inset space \thinspace{}
30162 \begin_inset Newline newline
30169 \begin_layout Plain Layout
30184 \begin_layout Plain Layout
30188 fcolorbox{cyan}{magenta}{
30193 This is text within a colored, framed box.
30197 \begin_layout Plain Layout
30207 \begin_layout Standard
30208 \begin_inset VSpace bigskip
30211 Of course you can also have colored text inside a colorbox:
30212 \begin_inset Newline newline
30219 \begin_layout Plain Layout
30223 fcolorbox{cyan}{magenta}{
30230 This is colored text within a colored, framed box.
30236 \begin_layout Plain Layout
30247 \begin_layout Plain Layout
30261 \begin_layout Standard
30264 \begin_inset VSpace medskip
30270 \begin_layout Standard
30271 \begin_inset Note Greyedout
30274 \begin_layout Plain Layout
30279 Text in colorboxes cannot have line breaks.
30280 To color multiple text lines or paragraphs, use a box inside a colorbox
30281 as described in the following.
30289 \begin_layout Subsection
30290 Color for Paragraphs
30291 \begin_inset CommandInset label
30293 name "sub:Color-for-Paragraphs"
30301 \begin_layout Plain Layout
30302 Color ! for Paragraphs
30310 \begin_layout Standard
30311 To set the background color for more than one text line, put the text into
30313 Before the minipage insert the
30322 \begin_layout Standard
30330 \begin_layout Standard
30332 Behind the minipage insert a closing brace
30333 \begin_inset Quotes eld
30341 \begin_inset Quotes erd
30347 \begin_layout Standard
30351 \begin_layout Plain Layout
30355 colorbox{lightgrey}{
30361 \begin_inset Box Frameless
30370 height_special "totalheight"
30373 \begin_layout Plain Layout
30374 This is text with background color.
30375 This is text with background color.
30378 \begin_layout Plain Layout
30379 \begin_inset VSpace defskip
30382 The text can have footnotes
30386 \begin_layout Plain Layout
30387 Another example footnote
30392 and can include tables and figures.
30395 \begin_layout Plain Layout
30397 \begin_inset Tabular
30398 <lyxtabular version="3" rows="3" columns="3">
30400 <column alignment="center" valignment="top" width="0">
30401 <column alignment="center" valignment="top" width="0">
30402 <column alignment="center" valignment="top" width="0">
30404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30407 \begin_layout Plain Layout
30413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30416 \begin_layout Plain Layout
30422 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30425 \begin_layout Plain Layout
30433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30436 \begin_layout Plain Layout
30442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30445 \begin_layout Plain Layout
30447 \begin_inset Quotes erd
30455 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30458 \begin_layout Plain Layout
30466 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30469 \begin_layout Plain Layout
30475 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30478 \begin_layout Plain Layout
30484 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30487 \begin_layout Plain Layout
30507 \begin_layout Plain Layout
30517 \begin_layout Section
30518 Rotated and Scaled Boxes
30521 \begin_layout Standard
30522 To use the commands described in this section, the LaTeX-package
30530 \begin_layout Plain Layout
30531 LaTeX-packages ! graphicx
30536 needs to be loaded in the document preamble with the command
30539 \begin_layout Standard
30544 @ifundefined{rotatebox}
30545 \begin_inset Newline newline
30552 \begin_layout Plain Layout
30563 usepackage{graphicx}}{}
30566 \begin_layout Standard
30567 \begin_inset Note Greyedout
30570 \begin_layout Plain Layout
30575 Some DVI-viewers can't display rotated or scaled material.
30583 \begin_layout Standard
30584 \begin_inset Note Greyedout
30587 \begin_layout Plain Layout
30592 Floats mustn't be inside a rotated or scaled box.
30600 \begin_layout Subsection
30605 \begin_layout Plain Layout
30615 \begin_layout Plain Layout
30625 \begin_layout Plain Layout
30635 \begin_layout Plain Layout
30636 Table Customization ! Rotating
30644 \begin_layout Standard
30645 To rotate material, you can put it into a rotated box.
30646 Such a box is created using the command
30652 in TeX-Code with the following scheme:
30655 \begin_layout Standard
30660 rotatebox[rotation origin]{rotation angle}{box content}
30663 \begin_layout Standard
30664 The rotation origin is specified in the form
30669 The following positions are possible:
30689 (top), and also expedient combinations of the four base positions.
30694 means, that the rotation origin is at the top left corner of the box.
30695 When no rotation origin is specified, the position
30700 The rotation angle is a number that can be negative that specifies the
30702 The rotation direction is counterclockwise.
30705 \begin_layout Standard
30706 In the following example the command
30710 rotatebox[origin=c]{60}{
30712 was inserted as TeX-Code before the text
30713 \begin_inset Quotes eld
30717 \begin_inset Quotes erd
30720 ; after the text the box was closed by a closing brace
30727 \begin_layout Standard
30732 \begin_layout Plain Layout
30736 rotatebox[origin=c]{60}{
30745 \begin_layout Plain Layout
30755 \begin_layout Standard
30756 The box content can also be another box or an inline formula:
30759 \begin_layout Standard
30764 \begin_layout Plain Layout
30768 rotatebox[origin=r]{-60}{
30774 \begin_inset Box Doublebox
30783 height_special "totalheight"
30786 \begin_layout Plain Layout
30796 \begin_layout Plain Layout
30807 \begin_layout Plain Layout
30811 rotatebox[origin=lb]{60}{
30817 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30824 \begin_layout Plain Layout
30834 \begin_layout Standard
30835 or an image or table:
30838 \begin_layout Standard
30843 \begin_layout Plain Layout
30847 rotatebox[origin=lb]{90}{
30853 \begin_inset Graphics
30854 filename clipart/platypus.eps
30864 \begin_layout Plain Layout
30871 with a rotated image
30875 \begin_layout Plain Layout
30879 rotatebox[origin=l]{-90}{
30885 \begin_inset Tabular
30886 <lyxtabular version="3" rows="2" columns="2">
30888 <column alignment="center" valignment="top" width="0">
30889 <column alignment="center" valignment="top" width="0">
30891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30894 \begin_layout Plain Layout
30900 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30903 \begin_layout Plain Layout
30911 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30914 \begin_layout Plain Layout
30920 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30923 \begin_layout Plain Layout
30938 \begin_layout Plain Layout
30948 \begin_layout Subsection
30953 \begin_layout Plain Layout
30963 \begin_layout Plain Layout
30973 \begin_layout Plain Layout
30983 \begin_layout Plain Layout
30984 Table Customization ! Scaling
30992 \begin_layout Standard
30993 To scale material the commands
31005 can be used as TeX-Code.
31008 \begin_layout Standard
31015 is used with the following scheme:
31018 \begin_layout Standard
31023 scalebox{horizontal}[vertical]{box content}
31026 \begin_layout Standard
31027 Horizontal and vertical are the corresponding scaling factors.
31028 If no vertical scaling factor is given, the horizontal factor will also
31029 be used as vertical one.
31032 \begin_layout Standard
31039 creates for example a double size
31043 \begin_layout Plain Layout
31056 \begin_layout Plain Layout
31063 , compared to the document text size.
31066 \begin_layout Standard
31071 scalebox{2}[1]{Hello}
31073 in contrary distorts the
31077 \begin_layout Plain Layout
31090 \begin_layout Plain Layout
31100 \begin_layout Standard
31101 If a the scaling factor is negative, the box content will be mirrored.
31102 Therefore the command
31106 scalebox{-1}[1]{Hello}
31108 can be used to create mirror writing:
31112 \begin_layout Plain Layout
31125 \begin_layout Plain Layout
31135 \begin_layout Standard
31140 scalebox{1}[-1]{Hello}
31146 \begin_layout Plain Layout
31159 \begin_layout Plain Layout
31169 \begin_layout Standard
31174 scalebox{-1}[1]{box content}
31176 there exists the command
31177 \begin_inset Newline newline
31184 reflectbox{box content}
31189 \begin_layout Standard
31190 \begin_inset VSpace bigskip
31199 is used to scale the box to a defined width and height.
31200 The command scheme is:
31203 \begin_layout Standard
31208 resizebox{width}{height}{box content}
31211 \begin_layout Standard
31212 Is one of the two command arguments given as exclamation mark
31216 , the size is set so that the aspect ratio of the box content is kept.
31219 \begin_layout Standard
31224 resizebox{2cm}{1cm}{Hello}
31230 \begin_layout Plain Layout
31234 resizebox{2cm}{1cm}{
31243 \begin_layout Plain Layout
31251 \begin_inset Newline newline
31258 resizebox{2cm}{!}{Hello}
31264 \begin_layout Plain Layout
31277 \begin_layout Plain Layout
31287 \begin_layout Standard
31288 \begin_inset VSpace bigskip
31292 \begin_inset Note Greyedout
31295 \begin_layout Plain Layout
31312 are set to zero, no LaTeX-errors occur when exporting the document but
31313 the exported files can not or only partly be displayed.
31321 \begin_layout Standard
31322 \begin_inset VSpace bigskip
31328 \begin_layout Standard
31329 The boxes can be combined in any order.
31331 \begin_inset space \thinspace{}
31335 \begin_inset space \space{}
31339 \begin_inset Newline newline
31346 rotatebox[origin=c]{-45}{
31350 reflectbox{Hello}}}
31351 \begin_inset Newline newline
31359 \begin_layout Standard
31364 \begin_layout Plain Layout
31368 rotatebox[origin=c]{-45}{
31381 \begin_layout Plain Layout
31391 \begin_layout Standard
31393 Images, tables, and inline formulas are allowed as box content:
31396 \begin_layout Standard
31401 \begin_layout Plain Layout
31405 rotatebox[origin=c]{-30}{
31415 \begin_inset Graphics
31416 filename clipart/platypus.eps
31426 \begin_layout Plain Layout
31437 \begin_layout Plain Layout
31441 rotatebox[origin=c]{-45}{
31451 \begin_inset Tabular
31452 <lyxtabular version="3" rows="2" columns="2">
31454 <column alignment="center" valignment="top" width="0">
31455 <column alignment="center" valignment="top" width="0">
31457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31460 \begin_layout Plain Layout
31466 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31469 \begin_layout Plain Layout
31477 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31480 \begin_layout Plain Layout
31486 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31489 \begin_layout Plain Layout
31504 \begin_layout Plain Layout
31515 \begin_layout Plain Layout
31519 rotatebox[origin=c]{-45}{
31529 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31536 \begin_layout Plain Layout
31546 \begin_layout Standard
31547 When the global formula style
31551 is used in the document
31555 \begin_layout Plain Layout
31557 \begin_inset Quotes eld
31561 \begin_inset Quotes erd
31564 is added to the document class options.
31569 , also display formulas can be scaled.
31572 \begin_layout Chapter
31573 External Document Parts
31577 \begin_layout Plain Layout
31578 External Document Parts
31586 \begin_layout Standard
31589 Insert\SpecialChar \menuseparator
31592 you can insert external material to your document.
31596 \begin_layout Description
31598 \begin_inset space ~
31601 Document Another LyX document; its content is directly inserted to your
31605 \begin_layout Description
31607 \begin_inset space ~
31610 Text A text document; every of its text lines is inserted to your document
31614 \begin_layout Description
31616 \begin_inset space ~
31620 \begin_inset space ~
31624 \begin_inset space ~
31627 Lines A text document; its text lines are inserted as they are.
31628 Empty text lines creates a new paragraph in your document.
31631 \begin_layout Description
31633 \begin_inset space ~
31636 Material Files in various formats.
31639 \begin_layout Description
31641 \begin_inset space ~
31644 Document LyX or LaTeX-documents.
31647 \begin_layout Section
31652 \begin_layout Plain Layout
31653 External Document Parts ! External Material
31661 \begin_layout Standard
31662 The external material feature allows you to insert files to your document
31663 without converting them previously to a format that can be read by the
31664 document output format because LyX takes care of needed conversions.
31665 This is similar to images that can be inserted in various image formats
31667 When you have enabled Instant Preview in LyX's preferences under
31670 \begin_inset space ~
31674 \begin_inset space ~
31677 feel\SpecialChar \menuseparator
31680 , the external material types Dia and Xfig is directly shown in LyX.
31683 \begin_layout Standard
31684 External material can be inserted via the
31688 dialog that is accessible with the menu
31690 Insert\SpecialChar \menuseparator
31691 File\SpecialChar \menuseparator
31693 \begin_inset space ~
31699 Currently the following file types (
31706 \begin_layout Description
31707 ChessDiagram This template supports chess position diagrams made with the
31711 \begin_inset CommandInset href
31714 target "http://en.wikipedia.org/wiki/XBoard"
31723 \begin_layout Description
31724 Date This inserts the date in the form
31729 This is a date inserted as external material:
31730 \begin_inset External
31737 \begin_inset space ~
31741 \begin_inset Note Note
31744 \begin_layout Plain Layout
31745 Remove the protected space when bug 4398 is fixed!
31751 \begin_inset Newline newline
31754 The date is not shown within LyX, only in the output.
31755 There are two other methods of inserting a date: Via menu
31757 Insert\SpecialChar \menuseparator
31760 and with the LaTeX command
31767 The different methods are compared in Table
31768 \begin_inset space ~
31772 \begin_inset CommandInset ref
31774 reference "tab:Comparison-of-the"
31781 \begin_layout Description
31782 Dia This template supports diagrams created with the program
31785 \begin_inset CommandInset href
31788 target "http://en.wikipedia.org/wiki/Dia_(software)"
31797 \begin_layout Description
31798 LilyPond This template is used for music notation typeset with the program
31799 \begin_inset Newline linebreak
31805 \begin_inset CommandInset href
31808 target "http://en.wikipedia.org/wiki/LilyPond"
31817 \begin_layout Description
31818 PDFPages With this template you can insert PDF documents to your document.
31819 To insert certain or all pages of a PDF, use the
31829 LaTeX and LyX options
31831 tab according to the template description in the dialog.
31836 option is given, only the first page of the PDF will be inserted.
31839 \begin_layout Description
31840 RasterImage This can be used for bitmap images.
31841 Nearly all popular image formats are supported.
31842 The image can be treated in the
31846 dialog like the images that are usually included via the
31850 dialog as described in section
31851 \begin_inset space ~
31855 \begin_inset CommandInset ref
31857 reference "sec:Graphics-Dialog"
31862 The difference is that only raster images are allowed, that means that
31863 PDF and EPS-images are not supported.
31866 \begin_layout Description
31867 XFig This template supports images created with the program
31870 \begin_inset CommandInset href
31873 target "http://en.wikipedia.org/wiki/Xfig"
31882 \begin_layout Standard
31883 \begin_inset Float table
31889 \begin_layout Plain Layout
31890 \begin_inset Caption
31892 \begin_layout Plain Layout
31893 \begin_inset CommandInset label
31895 name "tab:Comparison-of-the"
31899 Comparison of the date input methods.
31907 \begin_layout Plain Layout
31909 \begin_inset Tabular
31910 <lyxtabular version="3" rows="4" columns="4">
31912 <column alignment="center" valignment="top" width="0">
31913 <column alignment="center" valignment="top" width="0">
31914 <column alignment="center" valignment="top" width="0">
31915 <column alignment="center" valignment="top" width="0">
31917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31920 \begin_layout Plain Layout
31926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31929 \begin_layout Plain Layout
31932 External Material\SpecialChar \menuseparator
31938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31941 \begin_layout Plain Layout
31944 Insert\SpecialChar \menuseparator
31950 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31953 \begin_layout Plain Layout
31965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31968 \begin_layout Plain Layout
31974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31977 \begin_layout Plain Layout
31983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31986 \begin_layout Plain Layout
31992 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31995 \begin_layout Plain Layout
31996 as TeX-Code inset box
32003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32006 \begin_layout Plain Layout
32012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32015 \begin_layout Plain Layout
32021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32024 \begin_layout Plain Layout
32030 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32033 \begin_layout Plain Layout
32041 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32044 \begin_layout Plain Layout
32050 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32053 \begin_layout Plain Layout
32059 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32062 \begin_layout Plain Layout
32068 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32071 \begin_layout Plain Layout
32090 \begin_layout Standard
32091 When you use the option
32103 dialog, only the path to the inserted file is shown in the output.
32104 \begin_inset Newline newline
32107 External material is displayed in LyX either as box like this:
32108 \begin_inset Graphics
32109 filename clipart/ExternalMaterialQt4.png
32111 scaleBeforeRotation
32115 or as image, depending on the option
32121 LaTeX and LyX options
32126 \begin_layout Standard
32133 manual explains how you can define your own templates.
32136 \begin_layout Section
32138 \begin_inset CommandInset label
32140 name "sec:Child-Documents"
32148 \begin_layout Plain Layout
32149 External Document Parts ! Child Documents
32158 \begin_layout Plain Layout
32167 \begin_layout Standard
32168 Child documents are used when you have a long document consisting of several
32169 larger parts or sections.
32170 For maintenance it is often useful and sometimes even required to split
32171 the document in several files that can be revised separately.
32172 The different documents are then the so called child documents and a master
32173 document connects them to print the full document or parts of it.
32174 A child documents inherits contents of its master, for example the LaTeX
32175 preamble, the bibliography, and labels for cross-references.
32178 \begin_layout Standard
32179 To be able to work on child documents without the need to open its master,
32180 specify in the child document the master in the menu
32182 Document\SpecialChar \menuseparator
32183 Settings\SpecialChar \menuseparator
32185 \begin_inset space ~
32191 This master document will then be used in the background by LyX when you
32192 edit the child document.
32195 \begin_layout Standard
32196 Included documents are displayed in LyX as a box like this:
32197 \begin_inset Graphics
32198 filename clipart/ChildDocumentQt4.png
32200 scaleBeforeRotation
32204 To include child documents to a master document use the menu
32206 Insert\SpecialChar \menuseparator
32207 File\SpecialChar \menuseparator
32209 \begin_inset space ~
32215 A dialog pops up where you can choose between four include methods:
32218 \begin_layout Description
32219 Include You can include LyX and LaTeX-documents.
32228 dialog, the included documents will be opened in LyX in a new file tab
32229 so that you can modify it.
32230 \begin_inset Newline newline
32236 \begin_layout Standard
32237 Here is a child document inserted using
32242 \begin_inset CommandInset include
32243 LatexCommand include
32244 filename "DummyDocument1.lyx"
32251 \begin_layout Standard
32252 The section numbering includes the sections of the included files in the
32253 order they are inserted in the master document.
32254 The included example document has for example a subsection that is numbered
32255 as subsection of this section.
32256 Labels of included documents can be referenced: Subsection
32257 \begin_inset space ~
32261 \begin_inset CommandInset ref
32263 reference "sub:External-Subsection-1"
32270 \begin_layout Standard
32271 The preamble of the child document is ignored, only the preamble of the
32272 master document is used.
32273 Branches in child documents will be ignored by the master document when
32274 the master document does not have a branch with the same name.
32275 Included documents are inserted starting on a new page and end with a page
32279 \begin_layout Standard
32280 In case you are only working on a certain chapter of a large document and
32281 want to save compiling time, you can put each included file into a branch.
32285 \begin_layout Plain Layout
32286 Branches are described in section
32299 By enabling/disabling branches you can decide what included files will
32300 appear in the output.
32303 \begin_layout Standard
32304 \begin_inset Note Greyedout
32307 \begin_layout Plain Layout
32312 Due to a bug in LyX the LaTeX command
32318 can currently not be used as alternative to decide what files should be
32327 \begin_layout Standard
32328 \begin_inset Note Greyedout
32331 \begin_layout Plain Layout
32336 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
32337 w the document in case that the child document uses another document class
32338 than the master document as this will lead to unexpected outputs.
32346 \begin_layout Description
32347 Input This method is very similar to the Include method.
32348 The differences are:
32352 \begin_layout Itemize
32353 Input files don't start with a new page and don't end with a page break.
32356 \begin_layout Itemize
32357 Input files can be previewed in LyX when
32360 \begin_inset space ~
32365 is enabled in LyX's preferences under
32368 \begin_inset space ~
32372 \begin_inset space ~
32375 feel\SpecialChar \menuseparator
32381 \begin_layout Itemize
32392 \begin_layout Standard
32393 Here is a child document inserted using
32398 \begin_inset CommandInset include
32400 filename "DummyDocument2.lyx"
32407 \begin_layout Description
32408 Verbatim With this method every text file can be included.
32409 The file is shown in the output with its source code, no command used in
32410 the text is invoked.
32411 You can use the option
32413 Mark spaces in output
32415 that displays the character
32416 \begin_inset Quotes eld
32423 \begin_layout Plain Layout
32433 \begin_inset Quotes erd
32436 for every space character in the source code.
32437 The difference to the method via the menu
32439 Insert\SpecialChar \menuseparator
32440 File\SpecialChar \menuseparator
32442 \begin_inset space ~
32447 is that the document content is not shown in LyX.
32450 \begin_layout Standard
32451 Here is a child document inserted as Verbatim:
32452 \begin_inset CommandInset include
32453 LatexCommand verbatiminput
32454 filename "DummyTextDocument.txt"
32459 \begin_inset VSpace bigskip
32462 Here is a child document inserted as Verbatim using the
32464 Mark spaces in output
32467 \begin_inset CommandInset include
32468 LatexCommand verbatiminput*
32469 filename "DummyTextDocument.txt"
32476 \begin_layout Standard
32477 \begin_inset VSpace bigskip
32483 \begin_layout Standard
32484 \begin_inset Note Greyedout
32487 \begin_layout Plain Layout
32492 As you can see in the examples above, the text of the documents included
32497 is not broken at the end of the document lines.
32505 \begin_layout Description
32506 Listings This type is described in chapter
32507 \begin_inset space ~
32511 \begin_inset CommandInset ref
32513 reference "cha:Program-Code-Listings"
32520 \begin_layout Standard
32521 \begin_inset Note Greyedout
32524 \begin_layout Plain Layout
32529 Including the same document twice in a document using different methods
32530 could cause LaTeX-problems.
32538 \begin_layout Chapter
32539 Program Code Listings
32540 \begin_inset CommandInset label
32542 name "cha:Program-Code-Listings"
32550 \begin_layout Plain Layout
32560 \begin_layout Plain Layout
32570 \begin_layout Plain Layout
32579 \begin_layout Standard
32580 To include and typeset program code you can use the
32584 inset that can be inserted via the menu
32586 Insert\SpecialChar \menuseparator
32598 \begin_layout Plain Layout
32599 LaTeX-packages ! listings
32604 provides a powerful and flexible way to insert program source code to your
32608 \begin_layout Standard
32609 Right-clicking on a listings inset opens the context menu containing where
32610 you can set the listings format.
32613 \begin_layout Standard
32614 By default, a listing starts a new paragraph in the output.
32615 The placement option
32618 \begin_inset space ~
32623 prints the listing inline like this:
32624 \begin_inset listings
32625 lstparams "language={C++}"
32629 \begin_layout Plain Layout
32637 \begin_inset Newline newline
32644 creates a listings float where you can specify the placement options
32645 \begin_inset Quotes eld
32653 \begin_inset Quotes erd
32657 \begin_inset Quotes eld
32665 \begin_inset Quotes erd
32669 \begin_inset Quotes eld
32677 \begin_inset Quotes erd
32681 \begin_inset Quotes eld
32689 \begin_inset Quotes erd
32692 corresponding to the float placement options described in section
32693 \begin_inset space ~
32697 \begin_inset CommandInset ref
32699 reference "sec:Float-Placement"
32704 The placement options can be mixed and are inserted without any separation,
32706 \begin_inset space \thinspace{}
32710 \begin_inset space \space{}
32714 \begin_inset Quotes eld
32722 \begin_inset Quotes erd
32727 \begin_inset Quotes eld
32731 \begin_inset Quotes erd
32734 has sometimes no effect, but you don't need to use the
32738 option in this case as also non-float listings can have captions and be
32742 \begin_layout Standard
32743 You can add captions to listings with the menu
32745 Insert\SpecialChar \menuseparator
32749 Listings can be referenced like floats: Listing
32750 \begin_inset space ~
32754 \begin_inset CommandInset ref
32756 reference "lst:Example-Listing"
32763 \begin_layout Standard
32764 \begin_inset listings
32765 lstparams "language=Python"
32769 \begin_layout Plain Layout
32771 \begin_inset Caption
32773 \begin_layout Plain Layout
32774 \begin_inset CommandInset label
32776 name "lst:Example-Listing"
32780 Example Listing float
32785 # Example listing float
32788 \begin_layout Plain Layout
32793 \begin_layout Plain Layout
32795 'this is a python function'
32798 \begin_layout Plain Layout
32808 \begin_layout Standard
32809 When you have set a programming language in the listings dialog, the keywords
32810 of this language will be recognized and specially typeset in the output.
32811 In the example listings the Python keyword
32812 \begin_inset Quotes eld
32816 \begin_inset Quotes erd
32819 is recognized and printed bold in the output.
32822 \begin_layout Standard
32823 \begin_inset Note Greyedout
32826 \begin_layout Plain Layout
32831 If you don't get bold keywords when using typewriter fonts, your
32835 font probably doesn't provide a bold shape.
32836 In this case select a different one in the menu
32838 Document\SpecialChar \menuseparator
32839 Settings\SpecialChar \menuseparator
32851 provide bold shapes.)
32859 \begin_layout Standard
32863 \begin_inset space ~
32868 of the listings dialog you can specify the line numbering style.
32869 You can insert a number to specify which lines are numbered to the field
32876 \begin_inset space \thinspace{}
32880 \begin_inset space \space{}
32884 \begin_inset Quotes eld
32888 \begin_inset Quotes erd
32891 , only every 3rd line will be numbered.
32894 \begin_layout Standard
32895 You can furthermore specify a range of lines, only these will then appear
32899 Extended character table
32901 should be used when you use national characters like the German umlauts
32903 \begin_inset Newline newline
32906 Here is an example listing with left line numbering, step
32907 \begin_inset Quotes eld
32911 \begin_inset Quotes erd
32915 \begin_inset Quotes eld
32919 \begin_inset Quotes erd
32923 \begin_inset Quotes eld
32926 Extended character table
32927 \begin_inset Quotes erd
32931 \begin_inset Quotes eld
32935 \begin_inset space ~
32939 \begin_inset space ~
32943 \begin_inset Quotes erd
32947 \begin_inset space \thinspace{}
32951 \begin_inset space \thinspace{}
32957 \begin_layout Standard
32958 \begin_inset listings
32959 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
32963 \begin_layout Plain Layout
32968 \begin_layout Plain Layout
32970 'this is a python function'
32973 \begin_layout Plain Layout
32978 \begin_layout Plain Layout
32983 \begin_layout Plain Layout
32985 'This is a German word: Tschüß'
32988 \begin_layout Plain Layout
32993 \begin_layout Plain Layout
32998 \begin_layout Plain Layout
33000 'this is a python function'
33003 \begin_layout Plain Layout
33013 \begin_layout Standard
33014 When you have tabulators in your listing, you can specify the number of
33015 characters that are spanned by a tabulator in the field
33018 \begin_inset space ~
33026 \begin_layout Standard
33027 \begin_inset Note Greyedout
33030 \begin_layout Plain Layout
33035 Due to a bug in the
33039 package the line numbering is shifted by a line by every previous listing.
33040 That's the reason why the lines 2 and 5 are numbered in the above listing
33041 and not the lines 3 and 6.
33049 \begin_layout Standard
33050 \begin_inset VSpace bigskip
33056 \begin_layout Standard
33057 It is also possible to print lines from a file as listing.
33058 To do this, use the menu
33060 Insert\SpecialChar \menuseparator
33061 File\SpecialChar \menuseparator
33064 and choose the type
33072 \begin_layout Plain Layout
33073 The other child document types are described in section
33074 \begin_inset space ~
33078 \begin_inset CommandInset ref
33080 reference "sec:Child-Documents"
33089 In the child document dialog you can specify the listing parameters in
33091 To show a list of all available parameters, type in a question mark
33092 \begin_inset Quotes eld
33096 \begin_inset Quotes erd
33102 \begin_layout Standard
33103 To reference child document listings, write a label text into the corresponding
33104 field of the child document dialog.
33105 The label can then be referenced using the menu
33107 Insert\SpecialChar \menuseparator
33113 \begin_layout Standard
33115 \begin_inset space ~
33119 \begin_inset CommandInset ref
33121 reference "lst:file-listing"
33125 is an example for a listing of a file; there the lines 10
33126 \begin_inset space \thinspace{}
33130 \begin_inset space \thinspace{}
33133 15 of this LyX file are listed.
33136 \begin_layout Standard
33137 \begin_inset CommandInset include
33138 LatexCommand lstinputlisting
33139 filename "EmbeddedObjects.lyx"
33140 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
33147 \begin_layout Standard
33148 \begin_inset VSpace bigskip
33154 \begin_layout Standard
33155 Global listings settings can be set in the
33157 Document\SpecialChar \menuseparator
33158 Settings\SpecialChar \menuseparator
33162 To get there a list of available options, type in a question mark
33163 \begin_inset Quotes eld
33167 \begin_inset Quotes erd
33173 \begin_inset space ~
33181 \begin_layout Standard
33182 For more information about the
33186 package, we refer to its documentation
33187 \begin_inset CommandInset citation
33196 \begin_layout Standard
33197 \begin_inset Newpage newpage
33203 \begin_layout Chapter
33205 Units available in LyX
33209 \begin_layout Plain Layout
33216 \begin_inset CommandInset label
33218 name "cha:Units-available-in"
33225 \begin_layout Standard
33226 To understand the units described in this documentation, Table
33227 \begin_inset space ~
33231 \begin_inset CommandInset ref
33233 reference "tab:Units"
33237 explains all units available in LyX.
33240 \begin_layout Standard
33241 \begin_inset Float table
33247 \begin_layout Plain Layout
33248 \begin_inset Caption
33250 \begin_layout Plain Layout
33251 \begin_inset CommandInset label
33265 \begin_layout Plain Layout
33266 \begin_inset VSpace medskip
33272 \begin_layout Plain Layout
33274 \begin_inset Tabular
33275 <lyxtabular version="3" rows="20" columns="2">
33277 <column alignment="center" valignment="top" width="0">
33278 <column alignment="center" valignment="top" width="0">
33280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33283 \begin_layout Plain Layout
33289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33292 \begin_layout Plain Layout
33300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33303 \begin_layout Plain Layout
33309 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33312 \begin_layout Plain Layout
33320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33323 \begin_layout Plain Layout
33329 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33332 \begin_layout Plain Layout
33340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33343 \begin_layout Plain Layout
33349 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33352 \begin_layout Plain Layout
33360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33363 \begin_layout Plain Layout
33369 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33372 \begin_layout Plain Layout
33374 \begin_inset space \thinspace{}
33378 \begin_inset space \thinspace{}
33388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33391 \begin_layout Plain Layout
33397 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33400 \begin_layout Plain Layout
33402 \begin_inset space \thinspace{}
33406 \begin_inset space \thinspace{}
33416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33419 \begin_layout Plain Layout
33425 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33428 \begin_layout Plain Layout
33429 scaled point (65536
33430 \begin_inset space \thinspace{}
33434 \begin_inset space \thinspace{}
33444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33447 \begin_layout Plain Layout
33453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33456 \begin_layout Plain Layout
33458 \begin_inset space \thinspace{}
33462 \begin_inset space \thinspace{}
33472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33475 \begin_layout Plain Layout
33481 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33484 \begin_layout Plain Layout
33486 \begin_inset space \thinspace{}
33490 \begin_inset Formula $\approx$
33494 \begin_inset space \thinspace{}
33504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33507 \begin_layout Plain Layout
33513 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33516 \begin_layout Plain Layout
33518 \begin_inset space \thinspace{}
33522 \begin_inset space \thinspace{}
33532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33535 \begin_layout Plain Layout
33541 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33544 \begin_layout Plain Layout
33545 % of original image width
33552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33555 \begin_layout Plain Layout
33561 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33564 \begin_layout Plain Layout
33572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33575 \begin_layout Plain Layout
33581 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33584 \begin_layout Plain Layout
33592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33595 \begin_layout Plain Layout
33601 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33604 \begin_layout Plain Layout
33612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33615 \begin_layout Plain Layout
33621 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33624 \begin_layout Plain Layout
33632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33635 \begin_layout Plain Layout
33641 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33644 \begin_layout Plain Layout
33652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33655 \begin_layout Plain Layout
33661 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33664 \begin_layout Plain Layout
33672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33675 \begin_layout Plain Layout
33681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33684 \begin_layout Plain Layout
33696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33699 \begin_layout Plain Layout
33705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33708 \begin_layout Plain Layout
33720 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33723 \begin_layout Plain Layout
33729 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33732 \begin_layout Plain Layout
33734 \begin_inset space \thinspace{}
33738 \begin_inset space \thinspace{}
33759 \begin_layout Chapter
33760 Output File Formats with Graphics
33761 \begin_inset CommandInset label
33763 name "cha:Output-File-Formats"
33770 \begin_layout Section
33775 \begin_layout Plain Layout
33785 \begin_layout Plain Layout
33790 \begin_layout Plain Layout
33801 \begin_layout Plain Layout
33816 \begin_layout Standard
33817 This file type has the extension
33818 \begin_inset Quotes eld
33826 \begin_inset Quotes erd
33831 \begin_inset Quotes eld
33835 \begin_inset Quotes erd
33838 (DVI), because it is completely portable; you can move them from one machine
33839 to another without needing to do any sort of conversion.
33840 At the time when this file-format was developed, this was no matter of
33842 DVIs are used for quick previews and as pre-stage for other output formats,
33846 \begin_layout Standard
33847 \begin_inset Note Greyedout
33850 \begin_layout Plain Layout
33855 DVI-files doesn't contain images, they will only be a linked.
33860 So don't forget this, if you move your
33864 file to another computer.
33865 This property can also slow down your computer when you view the DVI.
33866 Because the DVI-viewer has to convert the image in the background to make
33867 it visible when you scroll in the DVI.
33868 So we recommend to use PDF for files with many images.
33871 \begin_layout Standard
33872 You can export your document to DVI by using the menu
33874 File\SpecialChar \menuseparator
33875 Export\SpecialChar \menuseparator
33879 You can view your document as DVI via the
33883 menu or by using the toolbar button
33884 \begin_inset Graphics
33885 filename ../images/buffer-view_dvi.png
33887 scaleBeforeRotation
33894 \begin_layout Section
33896 \begin_inset CommandInset label
33898 name "sec:PostScript"
33906 \begin_layout Plain Layout
33907 File Formats ! PostScript
33916 \begin_layout Plain Layout
33921 \begin_layout Plain Layout
33932 \begin_layout Plain Layout
33947 \begin_layout Standard
33948 This file type has the extension
33949 \begin_inset Quotes eld
33957 \begin_inset Quotes erd
33961 PostScript was developed by the company
33965 as printer language.
33966 The file contains therefore commands that the printer uses to print the
33968 PostScript can be seen as
33969 \begin_inset Quotes eld
33972 programming language
33973 \begin_inset Quotes erd
33976 ; you can calculate with it and draw diagrams and images
33980 \begin_layout Plain Layout
33981 If you are interested to learn more about this, have a look at the LaTeX-package
33987 \begin_inset CommandInset citation
33999 Due to this ability, the files are often bigger than PDFs.
34002 \begin_layout Standard
34003 PostScript can only contain images in the format
34004 \begin_inset Quotes eld
34007 Encapsulated PostScript
34008 \begin_inset Quotes erd
34011 (EPS, file extension
34012 \begin_inset Quotes eld
34020 \begin_inset Quotes erd
34024 As LyX allows you to use any known image format in your document, it has
34025 to convert images in the background to EPS.
34026 If you have e.g 50 images in your document, LyX has to do 50 conversions
34027 whenever you view or export your document.
34028 This will slow down your work flow with LyX drastically.
34029 So if you plan to use PostScript, you can insert your images directly as
34030 EPS to avoid this problem.
34033 \begin_layout Standard
34034 You can export your document to PostScript using the menu
34036 File\SpecialChar \menuseparator
34037 Export\SpecialChar \menuseparator
34041 You can view your document as PostScript via the
34045 menu or by using the toolbar button
34046 \begin_inset Graphics
34047 filename ../images/buffer-view_ps.png
34049 scaleBeforeRotation
34056 \begin_layout Section
34061 \begin_layout Plain Layout
34071 \begin_layout Plain Layout
34080 \begin_layout Standard
34081 This file type has the extension
34082 \begin_inset Quotes eld
34090 \begin_inset Quotes erd
34095 \begin_inset Quotes eld
34098 Portable Document Format
34099 \begin_inset Quotes erd
34102 (PDF) is developed by
34106 as derivative from PostScript.
34107 It is more compressed and it uses much less commands than PostScript.
34109 \begin_inset Quotes eld
34113 \begin_inset Quotes erd
34116 implies, it can be processed at any computer system and the printed output
34117 looks exactly the same.
34120 \begin_layout Standard
34121 PDF can contain images in its own PDF format, in the format
34122 \begin_inset Quotes eld
34125 Joint Photographic Experts Group
34126 \begin_inset Quotes erd
34129 (JPG, file extension
34130 \begin_inset Quotes eld
34138 \begin_inset Quotes erd
34142 \begin_inset Quotes eld
34150 \begin_inset Quotes erd
34153 ), and in the format
34154 \begin_inset Quotes eld
34157 Portable Network Graphics
34158 \begin_inset Quotes erd
34161 (PNG, file extension
34162 \begin_inset Quotes eld
34170 \begin_inset Quotes erd
34174 Nevertheless you can use any other image format, because LyX converts them
34175 in the background to one of these formats.
34176 But as described in the section about PostScript, the image conversion
34177 will slow down your work flow.
34178 So it is recommended to use images in one of the three mentioned formats.
34181 \begin_layout Standard
34182 You can export your document to PDF via the menu
34184 File\SpecialChar \menuseparator
34187 in three different ways:
34190 \begin_layout Description
34192 \begin_inset space ~
34195 (ps2pdf) This uses the program
34199 that creates a PDF from a PostScript-version of your file.
34200 The PostScript-version is produced by the program
34204 which uses a DVI-version as intermediate step.
34205 So this export variant consist of three conversions.
34208 \begin_layout Description
34210 \begin_inset space ~
34213 (dvipdfm) This uses the program
34217 that converts your file in the background to DVI and in a second step to
34221 \begin_layout Description
34223 \begin_inset space ~
34226 (pdflatex) This uses the program
34230 that converts your file directly to PDF.
34233 \begin_layout Standard
34234 It is recommended to use
34237 \begin_inset space ~
34246 supports all features of actual PDF-versions, is quick and works stable
34252 is not under development and therefore a bit outdated.
34255 \begin_layout Standard
34256 You can view your document as PDF via the
34260 menu or by using the toolbar button
34261 \begin_inset Graphics
34262 filename ../images/buffer-view_pdf2.png
34264 scaleBeforeRotation
34275 \begin_inset space ~
34283 \begin_layout Chapter
34284 Explanation of Equation
34285 \begin_inset space ~
34289 \begin_inset CommandInset ref
34296 \begin_inset CommandInset label
34298 name "cha:Explanation-of-Equation"
34305 \begin_layout Standard
34311 \begin_inset Formula $W_{\mathrm{tot\, n}}$
34314 can be calculated to
34317 \begin_layout Standard
34318 \begin_inset Formula \begin{equation}
34319 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}
34326 \begin_layout Standard
34328 \begin_inset Formula $W_{g\, n}$
34331 is the given width of all cells.
34338 is the LaTeX-length between the cell text and the cell border, its default
34340 \begin_inset space \thinspace{}
34350 is the thickness of the cell border line, the default is 0.4
34351 \begin_inset space \thinspace{}
34357 \begin_layout Standard
34359 \begin_inset space ~
34363 \begin_inset CommandInset ref
34365 reference "eq:Wtot_n"
34369 , the total width of a multicolumn
34370 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
34376 \begin_layout Standard
34377 \begin_inset Formula \begin{equation}
34378 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
34385 \begin_layout Standard
34386 By setting equation
34387 \begin_inset space ~
34391 \begin_inset CommandInset ref
34393 reference "eq:Wtot_n"
34398 \begin_inset CommandInset ref
34400 reference "eq:Wtot_mult"
34404 equal we can calculate the needed given width
34405 \begin_inset Formula $W_{g\, n}$
34412 columns are spanned, so that each column has a total width of
34413 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
34419 \begin_layout Standard
34420 \begin_inset Formula \begin{equation}
34421 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
34428 \begin_layout Bibliography
34429 \begin_inset CommandInset bibitem
34430 LatexCommand bibitem
34431 key "latexcompanion"
34435 Frank Mittelbach and Michel Goossens:
34437 The LaTeX Companion Second Edition.
34440 Addison-Wesley, 2004
34443 \begin_layout Bibliography
34444 \begin_inset CommandInset bibitem
34445 LatexCommand bibitem
34450 Helmut Kopka and Patrick W.
34453 A Guide to LaTeX Fourth Edition.
34456 Addison-Wesley, 2003
34459 \begin_layout Bibliography
34460 \begin_inset CommandInset bibitem
34461 LatexCommand bibitem
34468 LaTeX: A Document Preparation System.
34471 Addison-Wesley, second edition, 1994
34474 \begin_layout Bibliography
34475 \begin_inset CommandInset bibitem
34476 LatexCommand bibitem
34481 Documentation of the LaTeX-package
34484 \begin_inset CommandInset href
34487 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
34497 \begin_layout Plain Layout
34498 LaTeX-packages ! booktabs
34506 \begin_layout Bibliography
34507 \begin_inset CommandInset bibitem
34508 LatexCommand bibitem
34513 Documentation of the LaTeX-package
34516 \begin_inset CommandInset href
34519 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
34529 \begin_layout Plain Layout
34530 LaTeX-packages ! caption
34538 \begin_layout Bibliography
34539 \begin_inset CommandInset bibitem
34540 LatexCommand bibitem
34545 Documentation of the LaTeX-package
34548 \begin_inset CommandInset href
34551 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
34561 \begin_layout Plain Layout
34562 LaTeX-packages ! endfloat
34570 \begin_layout Bibliography
34571 \begin_inset CommandInset bibitem
34572 LatexCommand bibitem
34577 Documentation of the LaTeX-package
34580 \begin_inset CommandInset href
34583 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
34593 \begin_layout Plain Layout
34594 LaTeX-packages ! wrapfig
34598 \begin_layout Plain Layout
34615 \begin_layout Bibliography
34616 \begin_inset CommandInset bibitem
34617 LatexCommand bibitem
34622 Documentation of the LaTeX-package
34625 \begin_inset CommandInset href
34628 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
34638 \begin_layout Plain Layout
34639 LaTeX-packages ! footmisc
34647 \begin_layout Bibliography
34648 \begin_inset CommandInset bibitem
34649 LatexCommand bibitem
34654 Documentation of the LaTeX-package
34657 \begin_inset CommandInset href
34660 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
34670 \begin_layout Plain Layout
34671 LaTeX-packages ! hyperref
34679 \begin_layout Bibliography
34680 \begin_inset CommandInset bibitem
34681 LatexCommand bibitem
34686 Documentation of the LaTeX-package
34689 \begin_inset CommandInset href
34692 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
34702 \begin_layout Plain Layout
34703 LaTeX-packages ! hyperref
34711 \begin_layout Bibliography
34712 \begin_inset CommandInset bibitem
34713 LatexCommand bibitem
34718 Documentation of the LaTeX-package
34721 \begin_inset CommandInset href
34724 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
34734 \begin_layout Plain Layout
34735 LaTeX-packages ! KOMA-Script
34743 \begin_layout Bibliography
34744 \begin_inset CommandInset bibitem
34745 LatexCommand bibitem
34750 Documentation of the LaTeX-package
34753 \begin_inset CommandInset href
34756 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
34766 \begin_layout Plain Layout
34767 LaTeX-packages ! listings
34775 \begin_layout Bibliography
34776 \begin_inset CommandInset bibitem
34777 LatexCommand bibitem
34782 Documentation of the LaTeX-package
34785 \begin_inset CommandInset href
34788 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
34798 \begin_layout Plain Layout
34799 LaTeX-packages ! marginnote
34807 \begin_layout Bibliography
34808 \begin_inset CommandInset bibitem
34809 LatexCommand bibitem
34814 Web page of the LaTeX-package
34817 \begin_inset CommandInset href
34820 target "http://tug.org/PSTricks/"
34830 \begin_layout Plain Layout
34831 LaTeX-packages ! PSTricks
34839 \begin_layout Bibliography
34840 \begin_inset CommandInset bibitem
34841 LatexCommand bibitem
34846 Documentation of the LaTeX-package
34849 \begin_inset CommandInset href
34852 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
34862 \begin_layout Plain Layout
34863 LaTeX-packages ! sidecap
34871 \begin_layout Bibliography
34872 \begin_inset CommandInset bibitem
34873 LatexCommand bibitem
34878 Documentation of the LaTeX-package
34881 \begin_inset CommandInset href
34884 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
34894 \begin_layout Plain Layout
34895 LaTeX-packages ! prettyref
34903 \begin_layout Bibliography
34904 \begin_inset CommandInset bibitem
34905 LatexCommand bibitem
34911 \begin_inset CommandInset href
34914 target "http://wiki.lyx.org/LyX/NewInLyX16"
34918 about new features in
34925 \begin_layout Standard
34926 \begin_inset CommandInset index_print
34927 LatexCommand printindex
34934 \begin_layout Standard
34935 \begin_inset FloatList figure
34942 \begin_layout Standard
34943 \begin_inset FloatList table
34950 \begin_layout Standard
34951 \begin_inset FloatList algorithm