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, use the following
16873 LaTeX-argument for the second column:
16876 \begin_layout Standard
16882 \begin_layout Standard
16884 \begin_inset space ~
16888 \begin_inset CommandInset ref
16890 reference "tab:Several-table-cell"
16894 shows some example alignments.
16895 For the alignment with the relation sign, you must add the second smallest
16896 math-space at the beginning of the last column to get the correct space
16897 surrounding the relation sign.
16900 \begin_layout Standard
16901 \begin_inset Float table
16907 \begin_layout Plain Layout
16908 \begin_inset Caption
16910 \begin_layout Plain Layout
16911 \begin_inset CommandInset label
16913 name "tab:Several-table-cell"
16917 Several table cell alignments.
16925 \begin_layout Plain Layout
16927 \begin_inset Tabular
16928 <lyxtabular version="3" rows="4" columns="6">
16930 <column alignment="right" valignment="top" width="0">
16931 <column alignment="left" valignment="top" width="0" special="@{}l">
16932 <column alignment="right" valignment="top" width="0">
16933 <column alignment="left" valignment="top" width="0" special="@{}l">
16934 <column alignment="right" valignment="top" width="0">
16935 <column alignment="left" valignment="top" width="0" special="@{}l">
16937 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16940 \begin_layout Plain Layout
16946 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16949 \begin_layout Plain Layout
16955 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16958 \begin_layout Plain Layout
16964 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16967 \begin_layout Plain Layout
16973 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16976 \begin_layout Plain Layout
16982 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16985 \begin_layout Plain Layout
16993 <cell alignment="center" valignment="top" usebox="none">
16996 \begin_layout Plain Layout
17002 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17005 \begin_layout Plain Layout
17007 \begin_inset space \thinspace{}
17015 <cell alignment="center" valignment="top" usebox="none">
17018 \begin_layout Plain Layout
17019 \begin_inset Formula $10\cdot$
17027 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17030 \begin_layout Plain Layout
17031 \begin_inset Formula $10^{\mbox{-}17}$
17039 <cell alignment="center" valignment="top" usebox="none">
17042 \begin_layout Plain Layout
17043 \begin_inset Formula $\Gamma(t)\propto$
17051 <cell alignment="center" valignment="top" usebox="none">
17054 \begin_layout Plain Layout
17055 \begin_inset Formula $\:\Upsilon(t)$
17065 <cell alignment="center" valignment="top" usebox="none">
17068 \begin_layout Plain Layout
17074 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17077 \begin_layout Plain Layout
17079 \begin_inset space \thinspace{}
17087 <cell alignment="center" valignment="top" usebox="none">
17090 \begin_layout Plain Layout
17091 \begin_inset Formula $5.78\cdot$
17099 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17102 \begin_layout Plain Layout
17103 \begin_inset Formula $10^{7}$
17111 <cell alignment="center" valignment="top" usebox="none">
17114 \begin_layout Plain Layout
17115 \begin_inset Formula $A\ne$
17123 <cell alignment="center" valignment="top" usebox="none">
17126 \begin_layout Plain Layout
17127 \begin_inset Formula $\: B_{\mathrm{red}}$
17137 <cell alignment="center" valignment="top" usebox="none">
17140 \begin_layout Plain Layout
17146 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17149 \begin_layout Plain Layout
17151 \begin_inset space \thinspace{}
17159 <cell alignment="center" valignment="top" usebox="none">
17162 \begin_layout Plain Layout
17164 \begin_inset Formula $33.5\cdot$
17172 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17175 \begin_layout Plain Layout
17176 \begin_inset Formula $10^{4}$
17184 <cell alignment="center" valignment="top" usebox="none">
17187 \begin_layout Plain Layout
17188 \begin_inset Formula $\sin(\alpha)\ge$
17196 <cell alignment="center" valignment="top" usebox="none">
17199 \begin_layout Plain Layout
17200 \begin_inset Formula $\:\sin(\beta)$
17221 \begin_layout Standard
17222 \begin_inset VSpace bigskip
17225 There is also the LaTeX-package
17233 \begin_layout Plain Layout
17234 LaTeX-packages ! dcolumn
17239 that provides table cell alignments.
17240 But this unfortunately treats the cell entries as math and does not allow
17241 formulas in table cells: The first column of Table
17242 \begin_inset space ~
17246 \begin_inset CommandInset ref
17248 reference "tab:Several-table-cell"
17256 like the first column in Table
17257 \begin_inset space ~
17261 \begin_inset CommandInset ref
17263 reference "tab:Alignments-when"
17267 and only with some tricks like the expected.
17268 The alignment of the second and third column of Table
17269 \begin_inset space ~
17273 \begin_inset CommandInset ref
17275 reference "tab:Several-table-cell"
17279 is not possible with
17286 \begin_layout Standard
17287 \begin_inset Newpage newpage
17293 \begin_layout Standard
17294 \begin_inset Float table
17300 \begin_layout Plain Layout
17301 \begin_inset Caption
17303 \begin_layout Plain Layout
17304 \begin_inset CommandInset label
17306 name "tab:Alignments-when"
17310 Alignments when LaTeX-package dcolumn is used.
17311 For all column alignments tricks have to be used to get the output.
17319 \begin_layout Plain Layout
17321 \begin_inset Tabular
17322 <lyxtabular version="3" rows="4" columns="3">
17324 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
17325 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
17326 <column alignment="center" valignment="top" width="0" special="D{+}{\,}{9.7}">
17328 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17331 \begin_layout Plain Layout
17337 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17340 \begin_layout Plain Layout
17346 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17349 \begin_layout Plain Layout
17357 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17360 \begin_layout Plain Layout
17362 \begin_inset space \thinspace{}
17370 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17373 \begin_layout Plain Layout
17375 \begin_inset space \thinspace{}
17379 \begin_inset Formula $\mbox{bottles}$
17387 <cell alignment="center" valignment="top" usebox="none">
17390 \begin_layout Plain Layout
17395 \begin_layout Plain Layout
17405 \begin_inset Formula $\mbox{bottles}$
17415 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17418 \begin_layout Plain Layout
17420 \begin_inset space \thinspace{}
17428 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17431 \begin_layout Plain Layout
17433 \begin_inset space \thinspace{}
17437 \begin_inset Formula $\mbox{Pixels}$
17445 <cell alignment="center" valignment="top" usebox="none">
17448 \begin_layout Plain Layout
17453 \begin_layout Plain Layout
17463 \begin_inset Formula $\mbox{Pixels}$
17473 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17476 \begin_layout Plain Layout
17478 \begin_inset space \thinspace{}
17486 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17489 \begin_layout Plain Layout
17491 \begin_inset space \thinspace{}
17495 \begin_inset Formula $\mbox{cm}$
17503 <cell alignment="center" valignment="top" usebox="none">
17506 \begin_layout Plain Layout
17511 \begin_layout Plain Layout
17521 \begin_inset Formula $\mbox{cm}$
17542 \begin_layout Subsection
17543 Customized Cell/Column Format
17544 \begin_inset CommandInset label
17546 name "sub:Customized-Format"
17554 \begin_layout Plain Layout
17555 Table Customization ! Cell/Column Format
17563 \begin_layout Standard
17564 Calculating the 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 doesn't natively support dashed lines, so you have to use TeX-Code.
19094 As 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 first element of the first cell in the table row.
19164 If you have for example a multicolumn spanning over columns 2 to 4 and
19165 you want to have a dashed line above, add the command
19168 \begin_layout Standard
19176 \begin_layout Standard
19177 as 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 to the first cell of the third row and the TeX-Code command
19219 \begin_inset Newline newline
19228 was inserted to the first cell of the fourth row.
19231 \begin_layout Standard
19232 \begin_inset Note Greyedout
19235 \begin_layout Plain Layout
19240 The used LaTeX-package
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 at the page.
19395 \begin_layout Standard
19396 Floats allow a high quality layout.
19397 Images and tables can evenly be spread 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 Behind 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 described 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 to insert floats as a separate paragraph to avoid possible
19460 LaTeX-errors that can occur when the surrounding text is specially formatted.
19463 \begin_layout Standard
19464 Existing figures or tables can be put into a float by marking them and then
19465 pressing the corresponding toolbar button for a new float.
19468 \begin_layout Section
19472 \begin_layout Standard
19473 Besides figure and table floats that are described in sections
19474 \begin_inset space ~
19478 \begin_inset CommandInset ref
19480 reference "sec:Figure-Floats"
19485 \begin_inset CommandInset ref
19487 reference "sec:Table-Floats"
19491 respectively, LyX offers the float types
19502 \begin_layout Subsection
19507 \begin_layout Plain Layout
19508 Floats ! Algorithms
19516 \begin_layout Standard
19517 \begin_inset Float algorithm
19523 \begin_layout Plain Layout
19524 \begin_inset Caption
19526 \begin_layout Plain Layout
19527 \begin_inset CommandInset label
19529 name "alg:Example-Algorithm-float"
19533 Example Algorithm float
19541 \begin_layout LyX-Code
19543 \begin_inset Newline newline
19546 Sum:= Sum + A(I); /*comment*/
19547 \begin_inset Newline newline
19551 \begin_inset VSpace -4mm
19562 \begin_layout Standard
19563 This float type is inserted with the menu
19565 Insert\SpecialChar \menuseparator
19566 Floats\SpecialChar \menuseparator
19570 It is used for program codes and descriptions of algorithms and can be
19571 seen as an alternative to program code listings that are explained in chapter
19572 \begin_inset space ~
19576 \begin_inset CommandInset ref
19578 reference "cha:Program-Code-Listings"
19583 A possible environment for algorithms is the
19587 , described in LyX's
19593 \begin_inset space ~
19597 \begin_inset CommandInset ref
19599 reference "alg:Example-Algorithm-float"
19603 is an example of an algorithm float where -4
19604 \begin_inset space \thinspace{}
19607 mm vertical space was added at the end of the float to have the bottom rule
19608 exactly below the last text line.
19611 \begin_layout Standard
19612 The float label is not automatically translated into the document language.
19613 If your document is not in English, you have to do this manually by adding
19614 the following line to the document preamble
19619 \begin_layout Standard
19624 floatname{algorithm}{your
19625 \begin_inset space ~
19631 \begin_layout Standard
19635 \begin_inset space ~
19641 \begin_inset Quotes eld
19649 \begin_inset Quotes erd
19655 \begin_layout Standard
19656 To insert the list of algorithms you can use the menu
19658 Insert\SpecialChar \menuseparator
19660 \begin_inset space \thinspace{}
19664 \begin_inset space \thinspace{}
19667 TOC\SpecialChar \menuseparator
19670 when your document has the same language as LyX's menu names.
19671 In other cases use this command in TeX-Code instead:
19674 \begin_layout Standard
19679 listof{algorithm}{your
19680 \begin_inset space ~
19686 \begin_layout Standard
19690 \begin_inset space ~
19696 \begin_inset Quotes eld
19704 \begin_inset Quotes erd
19710 \begin_layout Standard
19711 Algorithm floats are not by default numbered in the scheme
19712 \begin_inset Quotes eld
19716 \begin_inset Quotes erd
19719 as is the case for table and figure floats in many document-classes.
19720 To number algorithm floats in the same scheme, add this command to your
19724 \begin_layout Standard
19729 numberwithin{algorithm}{chapter}
19732 \begin_layout Standard
19733 To be able to use the command
19742 \begin_inset space ~
19747 in the document settings the option
19750 \begin_inset space ~
19754 \begin_inset space ~
19758 \begin_inset space ~
19766 \begin_layout Subsection
19771 \begin_layout Plain Layout
19772 Floats ! Wrap Floats
19780 \begin_layout Standard
19781 \begin_inset Wrap figure
19788 \begin_layout Plain Layout
19789 \begin_inset Graphics
19790 filename clipart/mobius.eps
19792 scaleBeforeRotation
19793 rotateOrigin center
19800 \begin_layout Plain Layout
19801 \begin_inset Caption
19803 \begin_layout Plain Layout
19804 \begin_inset CommandInset label
19806 name "fig:This-is-a"
19810 This is a figure wrap float.
19820 This float type is used if you want to wrap text around a figure or table
19821 so that it only occupies some fraction of the column width.
19822 It can be inserted using the menu
19824 Insert\SpecialChar \menuseparator
19825 Floats\SpecialChar \menuseparator
19827 \begin_inset space ~
19831 \begin_inset space ~
19839 \begin_inset space ~
19843 \begin_inset space ~
19848 if the LaTeX-package
19856 \begin_layout Plain Layout
19857 LaTeX-packages ! wrapfig
19861 \begin_layout Plain Layout
19879 \begin_layout Plain Layout
19880 Installing a LaTeX-package is explained it in the
19883 \begin_inset space ~
19893 The settings of the float can be modified by right-clicking on the float
19895 The mandatory settings are the float
19908 that specifies how much the float is set into the paragraph
19909 \begin_inset space \thinspace{}
19913 \begin_inset space \thinspace{}
19916 page margin, and the
19919 \begin_inset space ~
19924 that specifies how many text lines the float will approximately need.
19925 The line span is often hard to be approximated, so better only use it when
19926 you encounter float placement problems.
19927 You can furthermore decide if LaTeX is allowed to let the float float within
19928 the paragraph or to surrounding paragraphs.
19930 \begin_inset space ~
19934 \begin_inset CommandInset ref
19936 reference "fig:This-is-a"
19940 is an example text wrap float with a width of 40
19941 \begin_inset space \thinspace{}
19945 \begin_inset space \thinspace{}
19948 cm overhang, set to the left.
19952 \begin_layout Plain Layout
19953 Available units are explained in appendix
19954 \begin_inset space ~
19958 \begin_inset CommandInset ref
19960 reference "cha:Units-available-in"
19972 \begin_layout Standard
19973 \begin_inset Note Greyedout
19976 \begin_layout Plain Layout
19982 \begin_inset space ~
19985 wrap float floats are fragile! E.
19986 \begin_inset space \thinspace{}
19990 \begin_inset space \space{}
19993 having a figure too close to the bottom of the page can mess things up in
19994 the way that the float doesn't appear in the output or that it is placed
19995 over some other text.
20003 \begin_layout Standard
20007 \begin_layout Itemize
20008 Wrap floats should not be placed in paragraphs that run over a page break.
20009 That means that wrap floats should better be inserted to the exact place
20010 when the document is nearly finished and you are able to estimate where
20011 page breaks will appear.
20014 \begin_layout Itemize
20015 Wrap floats should either be placed in an own paragraph before the paragraph
20016 where they should wrap into or within a paragraph.
20019 \begin_layout Itemize
20020 Wrap floats in consecutive paragraphs may cause troubles, so assure that
20021 there is a text paragraph between them as separator.
20024 \begin_layout Itemize
20025 Wrap floats are not allowed in section headings or tables.
20028 \begin_layout Section
20033 \begin_layout Plain Layout
20042 \begin_layout Standard
20043 Floats are usually numbered either independent from the sections the floats
20044 are in, or in the scheme
20045 \begin_inset Quotes eld
20049 \begin_inset Quotes erd
20053 \begin_inset Quotes eld
20057 \begin_inset Quotes erd
20061 This depends on the used document class.
20064 \begin_layout Standard
20065 To change the section independent numbering, you can use this command in
20066 the document preamble:
20069 \begin_layout Standard
20081 \begin_layout Standard
20088 is the command that prints the table number, for figure floats, the command
20102 prints in the command above the table number as small roman number.
20105 \begin_layout Standard
20106 To change the numbering scheme for example to
20107 \begin_inset Quotes eld
20111 \begin_inset Quotes erd
20114 , use this command in the preamble:
20117 \begin_layout Standard
20122 numberwithin{table}{subsection}
20125 \begin_layout Standard
20126 To be able to use the command
20135 \begin_inset space ~
20140 in the document settings the option
20143 \begin_inset space ~
20147 \begin_inset space ~
20151 \begin_inset space ~
20159 \begin_layout Standard
20160 Please also have a look at section
20161 \begin_inset space ~
20165 \begin_inset CommandInset ref
20167 reference "sub:Footnote-Numbering"
20171 for the details and important notes about the numbering commands.
20174 \begin_layout Section
20176 \begin_inset CommandInset label
20178 name "sec:Referencing-Floats"
20186 \begin_layout Plain Layout
20187 Floats ! References
20196 \begin_layout Plain Layout
20197 References ! to Floats
20205 \begin_layout Standard
20206 To reference a float, insert a label into its caption using the menu
20208 Insert\SpecialChar \menuseparator
20211 or the toolbar button
20212 \begin_inset Graphics
20213 filename ../images/label-insert.png
20215 scaleBeforeRotation
20220 A grey label box like this one:
20221 \begin_inset Graphics
20222 filename clipart/labelQt4.png
20224 scaleBeforeRotation
20228 will be inserted and the label window pops up asking for the label text.
20229 LyX offers as text the first words of the caption with a prefix.
20230 The prefix depends on the float type, e.
20231 \begin_inset space \thinspace{}
20235 \begin_inset space \space{}
20238 for figure floats the prefix will be "
20245 \begin_layout Standard
20246 The label is used as anchor and name for the reference.
20247 You can refer to the label using the menu
20249 Insert\SpecialChar \menuseparator
20252 or the toolbar button
20253 \begin_inset Graphics
20254 filename ../images/dialog-show-new-inset_ref.png
20256 scaleBeforeRotation
20261 A grey cross-reference box like this one:
20262 \begin_inset Graphics
20263 filename clipart/referenceQt4.png
20265 scaleBeforeRotation
20269 will be inserted and the cross-reference window appear showing all labels
20271 If you have multiple LyX-documents opened, choose the one you are working
20272 on from the drop-list at the top of the dialog.
20273 You can now sort the labels alphabetically and then choose one.
20274 At the position of the cross-reference box the float number will appear
20278 \begin_layout Standard
20279 It is recommended that you use a protected space between the cross-reference
20280 name and its number to avoid line breaks between them.
20281 If a cross-reference refers to a non-existing label, you will see two question
20282 marks in the output instead of the reference.
20285 \begin_layout Standard
20286 You can change labels at any time by clicking on the label box.
20287 References to the changed label will automatically change its link to the
20288 new label text, so that you don't need to take care about this.
20291 \begin_layout Standard
20295 \begin_inset space ~
20299 \begin_inset space ~
20304 in the cross-reference window sets the cursor before the referred label.
20305 The button text changes then to Go
20306 \begin_inset space ~
20309 Back and you can use it to set the cursor back to the cross-reference.
20310 Right-clicking on a cross-reference box also sets the cursor before the
20311 referenced label but without the possibility of going back.
20314 \begin_layout Subsection
20315 Cross-Reference Formats
20316 \begin_inset CommandInset label
20318 name "sub:Cross-Reference-Formats"
20326 \begin_layout Plain Layout
20327 References ! Formats
20335 \begin_layout Standard
20336 There are six varieties of cross-references:
20339 \begin_layout Description
20340 <reference>: prints the float number, this is the default:
20341 \begin_inset CommandInset ref
20343 reference "fig:Two-distorted-images"
20350 \begin_layout Description
20351 (<reference>): prints the float number within two parentheses, this is the
20352 style normally used to reference formulas, especially when the reference
20354 \begin_inset Quotes eld
20358 \begin_inset Quotes erd
20362 \begin_inset CommandInset ref
20371 \begin_layout Description
20372 <page>: prints the page number: Page
20373 \begin_inset space ~
20377 \begin_inset CommandInset ref
20378 LatexCommand pageref
20379 reference "fig:Two-distorted-images"
20386 \begin_layout Description
20388 \begin_inset space ~
20392 \begin_inset space ~
20395 <page>: prints the text "on page" and the page number:
20396 \begin_inset CommandInset ref
20397 LatexCommand vpageref
20398 reference "fig:Two-distorted-images"
20405 \begin_layout Description
20407 \begin_inset space ~
20411 \begin_inset space ~
20415 \begin_inset space ~
20418 <page>: prints the float number, the text "on page", and the page number:
20420 \begin_inset CommandInset ref
20422 reference "fig:Two-distorted-images"
20429 \begin_layout Description
20431 \begin_inset space ~
20434 reference: prints a self defined cross-reference format.
20435 \begin_inset Newline newline
20439 \begin_inset Note Greyedout
20442 \begin_layout Plain Layout
20447 This feature is only available when you have the LaTeX-package
20455 \begin_layout Plain Layout
20456 LaTeX-packages ! prettyref
20469 \begin_layout Standard
20474 will not print the page number if the label is on the previous, the same,
20477 \begin_inset space \thinspace{}
20481 \begin_inset space \space{}
20485 \begin_inset Quotes eld
20493 \begin_inset Quotes erd
20499 <reference> on page <page>
20501 will not print anything about the page if the label is on the same page.
20504 \begin_layout Standard
20505 The number and current page of the referred document part in the output,
20506 is automatically calculated by LaTeX.
20507 The varieties are adjusted in the field
20511 of the cross-reference window, that appear when you click on the cross-referenc
20515 \begin_layout Standard
20516 \begin_inset Note Greyedout
20519 \begin_layout Plain Layout
20532 \begin_layout Plain Layout
20533 LaTeX-packages ! prettyref
20538 does not know all of LyX's possible label shortcuts
20542 \begin_layout Plain Layout
20543 \begin_inset Quotes eld
20547 \begin_inset Quotes erd
20550 is for example LyX's shortcut for labels in figure captions.
20555 and is not internationalized.
20560 new shortcuts and translations, have a look at its documentation
20561 \begin_inset CommandInset citation
20575 \begin_layout Standard
20576 \begin_inset Note Greyedout
20579 \begin_layout Plain Layout
20584 Due to a bug in the LaTeX-package
20588 version 1.4w, some cross-reference formats will cause LaTeX errors for document
20589 languages that make the period character active (like French).
20590 For a workaround, see
20591 \begin_inset Newline newline
20595 \begin_inset CommandInset href
20597 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
20609 \begin_layout Subsection
20610 Automatic Reference Naming
20614 \begin_layout Plain Layout
20615 References ! Automatic Reference Naming
20623 \begin_layout Standard
20632 \begin_layout Plain Layout
20633 LaTeX-packages ! hyperref
20638 , that is enabled in the
20646 dialog, provides a very useful feature that cross-references automatically
20647 include the name of the referenced floats (or text parts like
20652 So you will save to write e.
20653 \begin_inset space \thinspace{}
20657 \begin_inset space \space{}
20661 \begin_inset Quotes eld
20665 \begin_inset Quotes erd
20668 before every reference to a figure.
20669 To use this feature, enable
20673 and insert this line to the LaTeX preamble:
20676 \begin_layout Standard
20692 \begin_layout Standard
20693 When you prefer other reference names than the default ones, for example
20694 you want instead of
20695 \begin_inset Quotes eld
20699 \begin_inset Quotes erd
20703 \begin_inset Quotes eld
20707 \begin_inset space \thinspace{}
20711 \begin_inset Quotes eld
20714 , you can redefine the name by inserting this to the preamble:
20717 \begin_layout Standard
20728 sectionautorefname}
20729 \begin_inset Newline newline
20736 \begin_layout Plain Layout
20750 \begin_layout Standard
20751 When you are using another document language than English, replace
20752 \begin_inset Newline newline
20767 , where *** is the name of the used language.
20770 \begin_layout Standard
20771 To get automatic names, but not for certain reference types, for example
20772 not for equations, use this preamble code:
20775 \begin_layout Standard
20783 \begin_inset Newline newline
20793 \begin_inset Newline newline
20804 equationautorefname}
20805 \begin_inset Newline newline
20812 \begin_layout Plain Layout
20828 \begin_layout Standard
20829 More about this topic can be found in
20834 \begin_inset CommandInset citation
20843 \begin_layout Standard
20844 \begin_inset Note Greyedout
20847 \begin_layout Plain Layout
20852 Automatic reference naming cannot be used when you use cross-references
20856 \begin_inset space ~
20861 style, as described in section
20862 \begin_inset space ~
20866 \begin_inset CommandInset ref
20868 reference "sub:Cross-Reference-Formats"
20880 \begin_layout Standard
20885 manual is an example where automatic reference naming is used.
20888 \begin_layout Subsection
20890 \begin_inset CommandInset label
20892 name "sub:Reference-Position"
20900 \begin_layout Plain Layout
20901 References ! Reference Position
20909 \begin_layout Standard
20918 \begin_layout Plain Layout
20919 LaTeX-packages ! hyperref
20932 dialog to link cross-references in the output, you will see that clicking
20933 on an image float reference jumps to the image label.
20934 The caption will be the first text part on the screen, so that you cannot
20935 see the image without scrolling.
20936 This is because the reference link anchor is placed at the position of
20938 With the use of the package
20946 \begin_layout Plain Layout
20947 LaTeX-packages ! hypcap
20952 , which is part of the LaTeX-package
20960 \begin_layout Plain Layout
20961 LaTeX-packages ! oberdiek
20966 , the link anchor is placed at the beginning of a float.
20967 To use this feature for figure floats, load
20971 in the document preamble with the line
20974 \begin_layout Standard
20979 usepackage[figure]{hypcap}
20982 \begin_layout Standard
20987 for all float types but this is not recommended for stability reasons.
20988 For more information, have a look at
20993 \begin_inset CommandInset citation
21002 \begin_layout Standard
21003 \begin_inset Note Greyedout
21006 \begin_layout Plain Layout
21015 has no effect for references to subfigures.
21023 \begin_layout Section
21025 \begin_inset CommandInset label
21027 name "sec:Float-Placement"
21035 \begin_layout Plain Layout
21044 \begin_layout Standard
21045 Right-clicking on a float-box opens a dialog where you can alter the placement
21046 options that LaTeX uses for positioning the float.
21047 \begin_inset Newline newline
21053 \begin_inset space ~
21058 is only useful for two-column documents: If you select it, the float will
21059 span across both columns on the page instead of being confined to just
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 is inserted
21111 \begin_layout Description
21113 \begin_inset space ~
21117 \begin_inset space ~
21120 page try to place the float on 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 on 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 an 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 don't use the default, LaTeX will try only the checked options but
21181 If none of the 4 placements are possible the procedure is internally repeated
21182 but it is tried to put the float on the following page.
21185 \begin_layout Standard
21186 By default, each option has its own rules:
21189 \begin_layout Labeling
21190 \labelwidthstring 00.00.0000
21194 \begin_inset space ~
21198 \begin_inset space ~
21203 only floats occupying less than 70
21204 \begin_inset space \thinspace{}
21207 % of the page can be placed at the top of a page (
21216 \begin_layout Labeling
21217 \labelwidthstring 00.00.0000
21221 \begin_inset space ~
21225 \begin_inset space ~
21230 : only floats occupying less than 30
21231 \begin_inset space \thinspace{}
21234 % of the page can be placed at the bottom of a page.
21244 \begin_layout Labeling
21245 \labelwidthstring 00.00.0000
21249 \begin_inset space ~
21253 \begin_inset space ~
21258 : only if more than 50
21259 \begin_inset space \thinspace{}
21262 % of the page are occupied by floats, several floats can be set together
21273 \begin_layout Standard
21274 If you don't like these rules, you can ignore them by using the additional
21278 \begin_inset space ~
21282 \begin_inset space ~
21288 \begin_inset Newline newline
21291 You can also redefine the rules with LaTeX-commands that are given in parenthese
21292 s behind the rules description above.
21293 To increase for example the often too small default of the bottom-rule
21295 \begin_inset space \thinspace{}
21298 % of the page, add this line to your document preamble:
21301 \begin_layout Standard
21308 bottomfraction}{0.5}
21311 \begin_layout Standard
21312 Sometimes you might need, under all circumstances, a float to be placed
21313 exactly at the position where it is inserted.
21314 For this case you can use the option
21317 \begin_inset space ~
21323 Use this option very rarely and only if the document is nearly ready to
21325 Because the float is then no longer able to
21326 \begin_inset Quotes eld
21330 \begin_inset Quotes erd
21333 when you change your document and this will often destroy the page layout.
21336 \begin_layout Standard
21337 There are no placement options for text wrap floats, because they are always
21338 surrounded by the text of a certain paragraph.
21339 \begin_inset VSpace bigskip
21345 \begin_layout Standard
21346 Sometimes you have the problem that a float is placed at the top of a page
21347 while its corresponding section starts at the middle of the page, so that
21348 the reader could think the float is part of the previous section.
21349 To avoid this the LaTeX-command
21356 It suppresses a given float placement for the page where it is inserted
21357 and can therefore be used to avoid that floats could be set before a section
21359 To get this, add these commands to your document preamble:
21362 \begin_layout Standard
21372 \begin_inset Newline newline
21386 \begin_layout Standard
21387 You can define the same for all section headings, like chapters and subsections.
21388 This definition is not recommended to be used for small text parts like
21389 subsubsections because LaTeX may then have problems to find a suitable
21393 \begin_layout Standard
21394 \begin_inset VSpace bigskip
21397 In some cases it is required to have all figures/tables at the end of the
21399 For this purpose the LaTeX-package
21407 \begin_layout Plain Layout
21408 LaTeX-packages ! endfloat
21414 It puts all figure and table floats at the end of the document into own
21416 At the original float position a text hint like
21417 \begin_inset Quotes eld
21423 \begin_inset space ~
21429 \begin_inset Quotes erd
21433 The endfloat-package is loaded in the preamble with the line
21436 \begin_layout Standard
21441 usepackage[options]{endfloat}
21444 \begin_layout Standard
21445 There are various package options to format the created figure/table sections.
21446 For more information we refer to the
21451 \begin_inset CommandInset citation
21458 \begin_inset Newline newline
21462 \begin_inset Note Greyedout
21465 \begin_layout Plain Layout
21470 doesn't provide an automatic translation for the text hint, you have to
21471 do this manually, see section
21472 \begin_inset space ~
21476 \begin_inset CommandInset citation
21488 \begin_inset Newline newline
21492 \begin_inset Note Greyedout
21495 \begin_layout Plain Layout
21500 There is currently a bug in
21504 when the caption contains a German
21505 \begin_inset Quotes eld
21509 \begin_inset Quotes erd
21513 Use in this case the command
21514 \begin_inset Quotes eld
21524 \begin_inset Quotes erd
21527 in TeX-Code instead of
21528 \begin_inset Quotes eld
21532 \begin_inset Quotes erd
21543 \begin_layout Standard
21544 \begin_inset VSpace bigskip
21547 For more details about float placements, have a look at LaTeX books,
21548 \begin_inset CommandInset citation
21550 key "latexcompanion,latexguide,latexbook"
21557 \begin_layout Section
21559 \begin_inset CommandInset label
21561 name "sec:Rotated-Floats"
21569 \begin_layout Plain Layout
21578 \begin_layout Standard
21579 Especially for wide tables you might have floats rotated.
21580 To rotate a whole float including the caption, right-click on the float-box
21584 \begin_inset space ~
21592 \begin_layout Standard
21593 Rotated floats are always placed on a page of their own (or column of their
21594 own; in case you have a multi-column document).
21595 You can let them span several columns using the float settings option
21598 \begin_inset space ~
21604 Floats are rotated so that you can read them from the outside margin.
21605 To force a certain rotation direction for all pages, you can add either
21614 to the document class options.
21617 \begin_layout Standard
21618 Referencing rotated floats is the same as for normal floats, the caption
21619 format is also the same: Table
21620 \begin_inset space ~
21624 \begin_inset CommandInset ref
21626 reference "tab:Rotated-table"
21630 is an example of a rotated table float.
21633 \begin_layout Standard
21634 \begin_inset Note Greyedout
21637 \begin_layout Plain Layout
21642 Not all DVI-viewers are able to display rotated floats.
21650 \begin_layout Standard
21651 \begin_inset Float table
21656 \begin_layout Plain Layout
21657 \begin_inset Caption
21659 \begin_layout Plain Layout
21660 \begin_inset CommandInset label
21662 name "tab:Rotated-table"
21674 \begin_layout Plain Layout
21676 \begin_inset Tabular
21677 <lyxtabular version="3" rows="1" columns="5">
21679 <column alignment="center" valignment="top" width="0">
21680 <column alignment="center" valignment="top" width="0">
21681 <column alignment="center" valignment="top" width="0">
21682 <column alignment="center" valignment="top" width="0">
21683 <column alignment="center" valignment="top" width="0">
21685 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21688 \begin_layout Plain Layout
21694 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21697 \begin_layout Plain Layout
21703 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21706 \begin_layout Plain Layout
21712 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21715 \begin_layout Plain Layout
21721 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21724 \begin_layout Plain Layout
21743 \begin_layout Section
21748 \begin_layout Plain Layout
21757 \begin_layout Standard
21758 Subfloats are for example used when a figure consists of several images.
21759 They are created by inserting a float into an existing float.
21760 The placement of the subfloats can be controlled in the same way as for
21761 paragraphs as shown in table
21762 \begin_inset space ~
21766 \begin_inset CommandInset ref
21768 reference "tab:Two-subtables-side"
21773 \begin_inset CommandInset ref
21775 reference "tab:Two-subtables-upon"
21782 \begin_layout Standard
21783 Referencing subfloats works as for normal floats: Table
21784 \begin_inset space ~
21788 \begin_inset CommandInset ref
21790 reference "tab:This-is-subtable-a"
21795 \begin_inset CommandInset ref
21797 reference "tab:This-is-subtable-b"
21801 are subtables of table
21802 \begin_inset space ~
21806 \begin_inset CommandInset ref
21808 reference "tab:Two-subtables-side"
21815 \begin_layout Standard
21816 \begin_inset Float table
21821 \begin_layout Plain Layout
21822 \begin_inset Caption
21824 \begin_layout Plain Layout
21825 \begin_inset CommandInset label
21827 name "tab:Two-subtables-side"
21831 Two subtables placed side by side.
21839 \begin_layout Plain Layout
21841 \begin_inset space \hfill{}
21845 \begin_inset Float table
21850 \begin_layout Plain Layout
21851 \begin_inset Caption
21853 \begin_layout Plain Layout
21854 \begin_inset CommandInset label
21856 name "tab:This-is-subtable-a"
21860 This is subtable a.
21868 \begin_layout Plain Layout
21870 \begin_inset Tabular
21871 <lyxtabular version="3" rows="1" columns="5">
21873 <column alignment="center" valignment="top" width="0">
21874 <column alignment="center" valignment="top" width="0">
21875 <column alignment="center" valignment="top" width="0">
21876 <column alignment="center" valignment="top" width="0">
21877 <column alignment="center" valignment="top" width="0">
21879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21882 \begin_layout Plain Layout
21888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21891 \begin_layout Plain Layout
21897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21900 \begin_layout Plain Layout
21906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21909 \begin_layout Plain Layout
21915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21918 \begin_layout Plain Layout
21935 \begin_inset space \hfill{}
21939 \begin_inset Float table
21944 \begin_layout Plain Layout
21945 \begin_inset Caption
21947 \begin_layout Plain Layout
21948 \begin_inset CommandInset label
21950 name "tab:This-is-subtable-b"
21954 This is subtable b.
21962 \begin_layout Plain Layout
21964 \begin_inset Tabular
21965 <lyxtabular version="3" rows="1" columns="5">
21967 <column alignment="center" valignment="top" width="0">
21968 <column alignment="center" valignment="top" width="0">
21969 <column alignment="center" valignment="top" width="0">
21970 <column alignment="center" valignment="top" width="0">
21971 <column alignment="center" valignment="top" width="0">
21973 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21976 \begin_layout Plain Layout
21982 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21985 \begin_layout Plain Layout
21991 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21994 \begin_layout Plain Layout
22000 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22003 \begin_layout Plain Layout
22009 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22012 \begin_layout Plain Layout
22029 \begin_inset space \hfill{}
22040 \begin_layout Standard
22041 \begin_inset Float table
22046 \begin_layout Plain Layout
22047 \begin_inset Caption
22049 \begin_layout Plain Layout
22050 \begin_inset CommandInset label
22052 name "tab:Two-subtables-upon"
22056 Two subtables placed one above the other.
22057 (a) table with 4 cells, (b) table with 5 cells.
22065 \begin_layout Plain Layout
22067 \begin_inset Float table
22072 \begin_layout Plain Layout
22073 \begin_inset Caption
22075 \begin_layout Plain Layout
22084 \begin_layout Plain Layout
22086 \begin_inset Tabular
22087 <lyxtabular version="3" rows="1" columns="4">
22089 <column alignment="center" valignment="top" width="0">
22090 <column alignment="center" valignment="top" width="0">
22091 <column alignment="center" valignment="top" width="0">
22092 <column alignment="center" valignment="top" width="0">
22094 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22097 \begin_layout Plain Layout
22103 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22106 \begin_layout Plain Layout
22112 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22115 \begin_layout Plain Layout
22121 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22124 \begin_layout Plain Layout
22143 \begin_layout Plain Layout
22145 \begin_inset Float table
22150 \begin_layout Plain Layout
22151 \begin_inset Caption
22153 \begin_layout Plain Layout
22162 \begin_layout Plain Layout
22164 \begin_inset Tabular
22165 <lyxtabular version="3" rows="1" columns="5">
22167 <column alignment="center" valignment="top" width="0">
22168 <column alignment="center" valignment="top" width="0">
22169 <column alignment="center" valignment="top" width="0">
22170 <column alignment="center" valignment="top" width="0">
22171 <column alignment="center" valignment="top" width="0">
22173 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22176 \begin_layout Plain Layout
22182 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22185 \begin_layout Plain Layout
22191 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22194 \begin_layout Plain Layout
22200 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22203 \begin_layout Plain Layout
22209 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22212 \begin_layout Plain Layout
22236 \begin_layout Section
22237 Floats Side by Side
22241 \begin_layout Plain Layout
22242 Floats ! Side by side
22250 \begin_layout Standard
22251 To place floats side by side, as in Figures
22252 \begin_inset space ~
22256 \begin_inset CommandInset ref
22258 reference "fig:Float-left"
22263 \begin_inset CommandInset ref
22265 reference "fig:Float-right"
22274 In it two minipage boxes are inserted.
22278 \begin_layout Plain Layout
22279 Minipages are explained in section
22280 \begin_inset space ~
22284 \begin_inset CommandInset ref
22286 reference "sec:Minipages"
22295 The width is set to 45
22296 \begin_inset space \thinspace{}
22300 \begin_inset space \thinspace{}
22303 column% and the box alignment to
22308 The minipage boxes contain the image and the caption in the same way as
22309 they are in a float.
22310 The only difference is that the image unit
22313 \begin_inset space ~
22317 \begin_inset space ~
22322 is now calculated according to the width of the minipage boxes.
22325 \begin_layout Standard
22326 \begin_inset Float figure
22331 \begin_layout Plain Layout
22332 \begin_inset Box Frameless
22341 height_special "totalheight"
22344 \begin_layout Plain Layout
22346 \begin_inset Graphics
22347 filename clipart/mobius.eps
22350 scaleBeforeRotation
22357 \begin_layout Plain Layout
22358 \begin_inset Caption
22360 \begin_layout Plain Layout
22361 \begin_inset CommandInset label
22363 name "fig:Float-left"
22367 Float on the left side.
22378 \begin_inset space \hfill{}
22382 \begin_inset Box Frameless
22391 height_special "totalheight"
22394 \begin_layout Plain Layout
22396 \begin_inset Graphics
22397 filename clipart/platypus.eps
22400 scaleBeforeRotation
22407 \begin_layout Plain Layout
22408 \begin_inset Caption
22410 \begin_layout Plain Layout
22411 \begin_inset CommandInset label
22413 name "fig:Float-right"
22417 Float on the right side.
22430 \begin_layout Plain Layout
22439 \begin_layout Section
22444 \begin_layout Plain Layout
22445 Caption ! Formatting
22454 \begin_layout Plain Layout
22455 Floats ! Caption Formatting
22461 \begin_inset CommandInset label
22463 name "sec:Caption-Formatting"
22470 \begin_layout Standard
22475 environment is the default paragraph environment for
22480 On the LyX screen captions appear as label, e.
22481 \begin_inset space \thinspace{}
22485 \begin_inset space \space{}
22489 \begin_inset Quotes eld
22497 \begin_inset Quotes erd
22500 followed by the caption text.
22502 \begin_inset Quotes eld
22506 \begin_inset Quotes erd
22509 is the actual reference number.
22510 By default the label and the number are in the same font as the caption
22511 text and a colon follows the number to divide the label from the text.
22512 This caption format is not suitable for all document formats.
22516 \begin_layout Standard
22517 To change the default caption format, load the LaTeX-package
22525 \begin_layout Plain Layout
22526 LaTeX-packages ! caption
22531 in the document preamble with this line:
22534 \begin_layout Standard
22539 usepackage[format definition]{caption}
22542 \begin_layout Standard
22543 To have for example the label and the number in sans-serif bold font and
22544 the table captions always above the table as in this document, use the
22548 \begin_layout Standard
22553 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22556 \begin_layout Standard
22557 You can also define different caption formats for the different float types.
22558 In this case load the
22562 package without format specific options and define the different formats
22563 with the help of the command
22566 \begin_layout Standard
22571 captionsetup[float type]{format definition}
22574 \begin_layout Standard
22575 in the document preamble.
22576 For example the caption formats of Figure
22577 \begin_inset space ~
22581 \begin_inset CommandInset ref
22583 reference "fig:This-is-an-fig"
22588 \begin_inset space ~
22592 \begin_inset CommandInset ref
22594 reference "tab:This-is-an-tab"
22598 can be created using these commands in the document preamble:
22601 \begin_layout Standard
22606 usepackage[tableposition=top]{caption}
22609 \begin_inset Newline newline
22616 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22617 \begin_inset Newline newline
22624 \begin_layout Plain Layout
22632 captionsetup[figure]
22640 \begin_inset Newline newline
22645 captionsetup[table]{labelfont={bf,sf}}
22648 \begin_layout Standard
22649 \begin_inset Note Greyedout
22652 \begin_layout Plain Layout
22661 has no effect when a
22669 \begin_layout Plain Layout
22670 LaTeX-packages ! KOMA-Script
22675 document class is used.
22676 In this case the document class option
22688 \begin_layout Standard
22689 For more information about the package
22693 we refer to its documentation
22694 \begin_inset CommandInset citation
22703 \begin_layout Standard
22704 To change the label name from e.
22705 \begin_inset space \thinspace{}
22709 \begin_inset space \space{}
22713 \begin_inset Quotes eld
22717 \begin_inset Quotes erd
22721 \begin_inset Quotes eld
22725 \begin_inset Quotes erd
22728 use this preamble command:
22731 \begin_layout Standard
22738 fnum@figure}{Image~
22743 \begin_layout Standard
22750 inserts the figure number and
22753 \begin_inset Quotes eld
22759 \begin_inset Quotes erd
22762 creates a protected space.
22765 \begin_layout Standard
22766 \begin_inset VSpace bigskip
22777 \begin_layout Plain Layout
22778 LaTeX-packages ! KOMA-Script
22785 article (KOMA-Script)
22793 letter (KOMA-Script)
22797 report (KOMA-Script)
22800 \begin_inset space \thinspace{}
22803 ), you can alternatively to the
22811 's built-in command
22818 For example, to have the caption label in bold, add this command to your
22822 \begin_layout Standard
22827 setkomafont{captionlabel}{
22832 \begin_layout Standard
22833 For more information about
22844 \begin_inset CommandInset citation
22853 \begin_layout Standard
22857 \begin_layout Plain Layout
22861 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
22868 \begin_inset Note Note
22871 \begin_layout Plain Layout
22872 The caption format is changed only for this example.
22880 \begin_layout Standard
22881 \begin_inset Float figure
22887 \begin_layout Plain Layout
22889 \begin_inset Graphics
22890 filename clipart/mobius.eps
22893 scaleBeforeRotation
22900 \begin_layout Plain Layout
22901 \begin_inset Caption
22903 \begin_layout Plain Layout
22904 \begin_inset CommandInset label
22906 name "fig:This-is-an-fig"
22910 This is an example figure caption that is longer than one line to show the
22911 different caption format.
22912 Here a self-defined caption format is used.
22925 \begin_layout Standard
22929 \begin_layout Plain Layout
22933 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
22942 \begin_layout Standard
22943 \begin_inset Float table
22949 \begin_layout Plain Layout
22950 \begin_inset Caption
22952 \begin_layout Plain Layout
22953 \begin_inset CommandInset label
22955 name "tab:This-is-an-tab"
22959 This is an example table caption that is longer than one line to show the
22960 different caption format.
22961 Here the standard caption format for tables in this document is used.
22969 \begin_layout Plain Layout
22971 \begin_inset Tabular
22972 <lyxtabular version="3" rows="1" columns="5">
22974 <column alignment="center" valignment="top" width="0">
22975 <column alignment="center" valignment="top" width="0">
22976 <column alignment="center" valignment="top" width="0">
22977 <column alignment="center" valignment="top" width="0">
22978 <column alignment="center" valignment="top" width="0">
22980 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22983 \begin_layout Plain Layout
22989 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22992 \begin_layout Plain Layout
22998 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23001 \begin_layout Plain Layout
23007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23010 \begin_layout Plain Layout
23016 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23019 \begin_layout Plain Layout
23038 \begin_layout Section
23043 \begin_layout Plain Layout
23044 Caption ! Placement
23053 \begin_layout Plain Layout
23054 Floats ! Caption Placement
23060 \begin_inset CommandInset label
23062 name "sec:Caption-Placement"
23069 \begin_layout Standard
23070 The common caption placement rule is:
23073 \begin_layout Description
23074 Figure: Caption is set below the figure
23077 \begin_layout Description
23078 Table: Caption is set above the table
23081 \begin_layout Standard
23082 Having the caption above the table is unfortunately not supported in LaTeX's
23084 That means if you are using the document classes
23100 there will be no space between the caption and the table.
23101 To insert the necessary space, add the following option to the load command
23102 of the LaTeX-package
23106 in your document preamble
23110 \begin_layout Plain Layout
23112 \begin_inset space ~
23116 \begin_inset CommandInset ref
23118 reference "sec:Caption-Formatting"
23122 for more information of the package
23134 \begin_layout Standard
23140 \begin_layout Standard
23149 \begin_layout Plain Layout
23150 LaTeX-packages ! KOMA-Script
23157 article (KOMA-Script)
23165 letter (KOMA-Script)
23169 report (KOMA-Script)
23172 \begin_inset space \thinspace{}
23175 ), you can alternatively to the
23179 package set the document class option
23186 \begin_layout Standard
23187 \begin_inset VSpace bigskip
23190 It is also possible to set the caption beside a figure or table.
23191 To get this the LaTeX-package
23199 \begin_layout Plain Layout
23200 LaTeX-packages ! sidecap
23205 has to be loaded in the document preamble with the line
23208 \begin_layout Standard
23213 usepackage[option]{sidecap}
23216 \begin_layout Standard
23217 If you set no option, the caption is placed on the side of the outer page
23218 margin – to the right on odd pages, to the left on even pages.
23219 You can change the placement to inner margin with the option
23224 To force the placement always to the right or left, use the option
23235 \begin_layout Standard
23239 \begin_layout Plain Layout
23249 \begin_inset Note Note
23252 \begin_layout Plain Layout
23253 The following section will only be displayed when the LaTeX-package
23265 \begin_layout Standard
23266 To place in LyX the caption of a float on the side, it is necessary to add
23267 these commands to the document preamble:
23270 \begin_layout Standard
23276 \begin_layout Standard
23284 \begin_inset Newline newline
23291 \begin_layout Plain Layout
23307 \begin_inset Newline newline
23314 \begin_layout Plain Layout
23330 \begin_inset Newline newline
23337 \begin_layout Plain Layout
23348 renewenvironment{table}{
23355 \begin_layout Standard
23363 \begin_inset Newline newline
23370 \begin_layout Plain Layout
23386 \begin_inset Newline newline
23393 \begin_layout Plain Layout
23411 \begin_layout Standard
23419 \begin_inset Newline newline
23426 \begin_layout Plain Layout
23442 \begin_inset Newline newline
23449 \begin_layout Plain Layout
23465 \begin_inset Newline newline
23472 \begin_layout Plain Layout
23483 renewenvironment{figure}{
23490 \begin_layout Standard
23498 \begin_inset Newline newline
23505 \begin_layout Plain Layout
23521 \begin_inset Newline newline
23528 \begin_layout Plain Layout
23546 \begin_layout Standard
23552 \begin_layout Standard
23553 The commands allow you to redefine the floats so that the caption is set
23555 For figure floats use the command
23558 \begin_layout Standard
23566 \begin_layout Standard
23567 in TeX-Code before the float.
23568 After the float insert the command
23571 \begin_layout Standard
23579 \begin_layout Standard
23580 in TeX-Code to get back to the original float definition.
23583 \begin_layout Standard
23584 For table floats use the corresponding commands
23587 \begin_layout Standard
23601 \begin_layout Standard
23603 \begin_inset space ~
23607 \begin_inset CommandInset ref
23609 reference "fig:cap-beside-fig"
23614 \begin_inset space ~
23618 \begin_inset CommandInset ref
23620 reference "tab:cap-beside-tab"
23624 are examples where the caption is set beside.
23627 \begin_layout Standard
23628 You can see in the examples that the caption text appears at the top of
23629 the floats for table floats and at the bottom for figure floats.
23630 To change this, you can use the command
23633 \begin_layout Standard
23638 sidecaptionvpos{float type}{placement}
23641 \begin_layout Standard
23642 in the document preamble or in TeX-Code before the float.
23643 The float type is either
23651 , the placement can be
23652 \begin_inset Quotes eld
23660 \begin_inset Quotes erd
23664 \begin_inset Quotes eld
23672 \begin_inset Quotes erd
23676 \begin_inset Quotes eld
23684 \begin_inset Quotes erd
23688 To have for example the caption of figure floats vertically centered, use
23692 \begin_layout Standard
23697 sidecaptionvpos{figure}{c}
23700 \begin_layout Standard
23701 This was used for Figure
23702 \begin_inset space ~
23706 \begin_inset CommandInset ref
23708 reference "fig:cap-beside-fig-2"
23715 \begin_layout Standard
23716 \begin_inset VSpace medskip
23719 For more information about the package
23723 we refer to its documentation
23724 \begin_inset CommandInset citation
23733 \begin_layout Standard
23734 \begin_inset Note Greyedout
23737 \begin_layout Plain Layout
23750 \begin_layout Plain Layout
23751 LaTeX-packages ! hypcap
23756 , described in section
23757 \begin_inset space ~
23761 \begin_inset CommandInset ref
23763 reference "sub:Reference-Position"
23767 , has no effect on floats with the caption set beside.
23775 \begin_layout Standard
23779 \begin_layout Plain Layout
23791 \begin_layout Standard
23792 \begin_inset Float figure
23797 \begin_layout Plain Layout
23798 \begin_inset Graphics
23799 filename clipart/escher-lsd.eps
23801 scaleBeforeRotation
23808 \begin_layout Plain Layout
23809 \begin_inset Caption
23811 \begin_layout Plain Layout
23812 \begin_inset CommandInset label
23814 name "fig:cap-beside-fig"
23818 This is a caption beside a figure.
23831 \begin_layout Standard
23835 \begin_layout Plain Layout
23847 \begin_layout Standard
23848 \begin_inset Float table
23853 \begin_layout Plain Layout
23854 \begin_inset Caption
23856 \begin_layout Plain Layout
23857 \begin_inset CommandInset label
23859 name "tab:cap-beside-tab"
23863 This is a caption beside a table.
23871 \begin_layout Plain Layout
23872 \begin_inset Tabular
23873 <lyxtabular version="3" rows="4" columns="5">
23875 <column alignment="center" valignment="top" width="0">
23876 <column alignment="center" valignment="top" width="0">
23877 <column alignment="center" valignment="top" width="0">
23878 <column alignment="center" valignment="top" width="0">
23879 <column alignment="center" valignment="top" width="0">
23881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23884 \begin_layout Plain Layout
23890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23893 \begin_layout Plain Layout
23899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23902 \begin_layout Plain Layout
23908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23911 \begin_layout Plain Layout
23917 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23920 \begin_layout Plain Layout
23928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23931 \begin_layout Plain Layout
23937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23940 \begin_layout Plain Layout
23946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23949 \begin_layout Plain Layout
23955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23958 \begin_layout Plain Layout
23964 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23967 \begin_layout Plain Layout
23975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23978 \begin_layout Plain Layout
23984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23987 \begin_layout Plain Layout
23993 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23996 \begin_layout Plain Layout
24002 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24005 \begin_layout Plain Layout
24011 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24014 \begin_layout Plain Layout
24022 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24025 \begin_layout Plain Layout
24031 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24034 \begin_layout Plain Layout
24040 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24043 \begin_layout Plain Layout
24049 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24052 \begin_layout Plain Layout
24058 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24061 \begin_layout Plain Layout
24080 \begin_layout Standard
24084 \begin_layout Plain Layout
24096 \begin_layout Standard
24100 \begin_layout Plain Layout
24104 sidecaptionvpos{figure}{c}
24110 \begin_inset Float figure
24115 \begin_layout Plain Layout
24116 \begin_inset Graphics
24117 filename clipart/escher-lsd.eps
24119 scaleBeforeRotation
24126 \begin_layout Plain Layout
24127 \begin_inset Caption
24129 \begin_layout Plain Layout
24130 \begin_inset CommandInset label
24132 name "fig:cap-beside-fig-2"
24136 This is a vertically centered caption beside a figure.
24149 \begin_layout Standard
24153 \begin_layout Plain Layout
24165 \begin_layout Standard
24169 \begin_layout Plain Layout
24179 \begin_inset Note Note
24182 \begin_layout Plain Layout
24183 The following will be displayed when the LaTeX-package
24195 \begin_layout Standard
24196 You need to install the LaTeX-package
24200 to see the following part of this section in the output.
24203 \begin_layout Standard
24207 \begin_layout Plain Layout
24219 \begin_layout Section
24224 \begin_layout Plain Layout
24225 Floats ! Float Lists
24233 \begin_layout Standard
24234 Similar to the table of contents where the sections of the document are
24235 listed, there are listings for all float types, like the figures of the
24237 You can insert them via the
24239 Insert\SpecialChar \menuseparator
24241 \begin_inset space ~
24245 \begin_inset space ~
24253 \begin_layout Standard
24254 The list entries are the float captions or its short title, the float number,
24255 and the page number where they appear in the document.
24258 \begin_layout Standard
24259 You can find the list of figures and tables at the end of this document.
24262 \begin_layout Chapter
24266 \begin_layout Section
24271 \begin_layout Plain Layout
24280 \begin_layout Standard
24281 Notes are inserted with the toolbar button
24282 \begin_inset Graphics
24283 filename ../images/note-insert.png
24285 scaleBeforeRotation
24291 Insert\SpecialChar \menuseparator
24295 There are three types of notes:
24298 \begin_layout Description
24300 \begin_inset space ~
24303 Note This note type is for internal notes that won't appear in the output.
24304 Its note-box looks like this:
24305 \begin_inset Newline newline
24309 \begin_inset Newline newline
24313 \begin_inset Graphics
24314 filename clipart/LyXNoteImageQt4.png
24317 scaleBeforeRotation
24322 \begin_inset Note Note
24325 \begin_layout Plain Layout
24326 This is text in a note box that doesn't appear in the output.
24334 \begin_layout Description
24335 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24336 ent, when you export the document to LaTeX via the menu
24338 File\SpecialChar \menuseparator
24339 Export\SpecialChar \menuseparator
24340 LaTeX (pdflatex) / (plain)
24343 Its note-box looks like this:
24344 \begin_inset Newline newline
24348 \begin_inset Newline newline
24352 \begin_inset Graphics
24353 filename clipart/CommentNoteImageQt4.png
24356 scaleBeforeRotation
24361 \begin_inset Note Comment
24364 \begin_layout Plain Layout
24365 This is text in a note box that only appears as comment in LaTeX-files.
24373 \begin_layout Description
24375 \begin_inset space ~
24378 Out This note will appear in the output as grey text.
24379 Its note-box looks like this:
24380 \begin_inset Newline newline
24384 \begin_inset Newline newline
24388 \begin_inset Graphics
24389 filename clipart/GreyedOutNoteImageQt4.png
24392 scaleBeforeRotation
24397 \begin_inset Newline newline
24404 \begin_layout Plain Layout
24408 renewenvironment{lyxgreyedout}
24411 \begin_layout Plain Layout
24415 textcolor[gray]{0.8}
24425 \begin_inset Note Greyedout
24428 \begin_layout Plain Layout
24433 \begin_layout Plain Layout
24434 This is an example footnote within a greyed out note.
24439 of a comment that appears in the output as grey text.
24448 \begin_layout Plain Layout
24452 renewenvironment{lyxgreyedout}
24455 \begin_layout Plain Layout
24469 \begin_inset Note Note
24472 \begin_layout Plain Layout
24473 The greyed out note is here redefined to show it with the original LyX definitio
24474 n because greyed out notes are redefined in the preamble of this document,
24475 as described below, to have blue text.
24481 \begin_inset Newline newline
24485 \begin_inset Newline newline
24488 As you can see in the example, the first line of greyed out notes is a bit
24489 indented and greyed out notes can have footnotes.
24492 \begin_layout Standard
24493 \begin_inset VSpace bigskip
24496 When you use the toolbar button
24497 \begin_inset Graphics
24498 filename ../images/note-insert.png
24500 scaleBeforeRotation
24507 \begin_inset space ~
24513 You can switch between the five note types by right-clicking on the note-box.
24518 If you want to turn existing text into a note, mark it and click on the
24532 To change a note to text, press the backspace key when the cursor is in
24533 the first position of a note, or press the delete key when the cursor is
24534 in the very last position of the note, respectively.
24537 \begin_layout Standard
24538 \begin_inset VSpace bigskip
24541 You can change the text color of the greyed out notes in the preamble with
24542 the following command:
24545 \begin_layout Standard
24550 renewenvironment{lyxgreyedout}
24551 \begin_inset Newline newline
24558 \begin_layout Plain Layout
24576 \begin_layout Standard
24577 The available colors and the method to define colors is explained in section
24578 \begin_inset space ~
24582 \begin_inset CommandInset ref
24584 reference "sec:Colored-Tables"
24591 \begin_layout Standard
24592 Notes that appear in blue in this document are set using greyed out notes
24596 \begin_layout Section
24598 \begin_inset CommandInset label
24600 name "sec:Footnotes"
24608 \begin_layout Plain Layout
24618 \begin_layout Plain Layout
24627 \begin_layout Standard
24628 Footnotes can be inserted using the toolbar button
24629 \begin_inset Graphics
24630 filename ../images/footnote-insert.png
24632 scaleBeforeRotation
24638 Insert\SpecialChar \menuseparator
24650 then the following footnote-box:
24651 \begin_inset Graphics
24652 filename clipart/footnoteQt4.png
24654 scaleBeforeRotation
24662 where you can enter the footnote text.
24663 If you want to turn existing text into a footnote, mark it and click on
24685 to text, press the Backspace key when the cursor is in the first position
24694 , or press the Delete key when the cursor is in the very last position of
24706 \begin_layout Standard
24707 Here is an example footnote:
24715 \begin_layout Plain Layout
24716 \begin_inset CommandInset label
24718 name "foot:This-is-an"
24722 This is an example footnote.
24735 \begin_layout Plain Layout
24739 newcounter{MyRepeatFoot}
24742 \begin_layout Plain Layout
24746 setcounter{MyRepeatFoot}{
24756 \begin_layout Standard
24757 The footnote will appear in the output as a superscript number at the text
24758 position where the footnote box is placed.
24759 The footnote text is placed at the bottom of the current page.
24760 The footnote number is calculated by LaTeX, the numbers are consecutive.
24761 It depends on your document-class, if the footnote number is reset for
24765 \begin_layout Standard
24766 Footnotes can be referenced like floats: Insert a label into the footnote
24767 and cross-reference this label in the text as described in section
24768 \begin_inset space ~
24772 \begin_inset CommandInset ref
24774 reference "sec:Referencing-Floats"
24779 \begin_inset Newline newline
24782 This is a cross-reference of Footnote
24783 \begin_inset space ~
24787 \begin_inset CommandInset ref
24789 reference "foot:This-is-an"
24796 \begin_layout Standard
24797 \begin_inset VSpace defskip
24800 Footnotes in tables are not printed by LaTeX due to technical reasons.
24801 However there exists another method to print them: Instead of the footnote
24808 is inserted as TeX-code.
24809 The text of the footnote is entered as argument of the TeX-code command
24817 \begin_inset Newline newline
24820 This was done for the following table with the command
24823 \begin_layout Standard
24830 Printed table footnote.
24835 \begin_layout Standard
24836 \begin_inset Tabular
24837 <lyxtabular version="3" rows="2" columns="1">
24839 <column alignment="center" valignment="top" width="0">
24841 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24844 \begin_layout Plain Layout
24845 This an example text.
24849 \begin_layout Plain Layout
24850 This footnote will not be printed!
24862 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24865 \begin_layout Plain Layout
24866 This an example text.
24870 \begin_layout Plain Layout
24893 \begin_layout Plain Layout
24902 Printed table footnote.
24906 \begin_layout Plain Layout
24916 \begin_layout Standard
24917 Footnotes in longtables are described in section
24918 \begin_inset space ~
24922 \begin_inset CommandInset ref
24924 reference "sub:Footnotes-in-Longtables"
24931 \begin_layout Standard
24932 Footnotes in minipage boxes are printed, but inside the box and with a different
24933 numbering because a minipage box is like a page inside a page.
24934 (For more about minipages, see section
24935 \begin_inset space ~
24939 \begin_inset CommandInset ref
24941 reference "sec:Minipages"
24945 .) To get a footnote in the minipage that is output at the bottom of the
24946 page like normal footnotes, also use the method of
24961 \begin_layout Standard
24962 \begin_inset Box Frameless
24971 height_special "totalheight"
24974 \begin_layout Plain Layout
24975 This an example text in a minipage.
24979 \begin_layout Plain Layout
24980 Footnote in the minipage.
24988 \begin_layout Plain Layout
24989 This an example text in a minipage.
24993 \begin_layout Plain Layout
25010 \begin_layout Standard
25014 \begin_layout Plain Layout
25023 Footnote outside the minipage.
25027 \begin_layout Plain Layout
25037 \begin_layout Standard
25038 \begin_inset VSpace defskip
25044 \begin_layout Standard
25045 To refer to the same footnote several times without printing the footnote
25046 text every time, use the command
25050 footnotemark[number]
25053 \begin_inset Newline newline
25056 As you do not know the number of the repeating footnote while you are writing
25057 the text, you have to store its number.
25058 For the following footnote mark example, these commands were inserted in
25059 TeX-code after Footnote
25060 \begin_inset space ~
25064 \begin_inset CommandInset ref
25066 reference "foot:This-is-an"
25070 to store the footnote number:
25073 \begin_layout Standard
25078 newcounter{MyRepeatFoot}
25079 \begin_inset Newline newline
25084 setcounter{MyRepeatFoot}{
25089 \begin_layout Standard
25090 The footnote mark was then created with this command:
25093 \begin_layout Standard
25103 \begin_layout Standard
25104 Here is a repeated footnote:
25112 \begin_layout Plain Layout
25126 \begin_layout Standard
25127 If you want to repeat the previous footnote, you can omit the storage of
25128 the footnote number and just use this command instead:
25131 \begin_layout Standard
25141 \begin_layout Standard
25142 Here is another repeated footnote:
25150 \begin_layout Plain Layout
25164 \begin_layout Subsection
25166 \begin_inset CommandInset label
25168 name "sub:Footnote-Numbering"
25176 \begin_layout Plain Layout
25177 Footnotes ! Numbering
25185 \begin_layout Standard
25186 To reset the footnote number back to 1 after each section
25188 , add this command to your document preamble:
25191 \begin_layout Standard
25196 @addtoreset{footnote}{section}
25199 \begin_layout Standard
25200 \begin_inset VSpace bigskip
25203 The following preamble command changes the footnote numbering style to small
25207 \begin_layout Standard
25219 \begin_layout Standard
25223 \begin_layout Plain Layout
25236 This is a footnote with roman numbering:
25240 \begin_layout Plain Layout
25241 This is an example footnote with roman numbering.
25249 \begin_layout Standard
25250 To change the numbering style to capital roman numerals replace in the command
25265 \begin_inset Quotes eld
25269 \begin_inset Quotes erd
25272 footnotes with capital or small Latin letters use
25286 \begin_inset Quotes eld
25290 \begin_inset Quotes erd
25293 footnotes with symbols use
25302 \begin_layout Standard
25303 \begin_inset Note Greyedout
25306 \begin_layout Plain Layout
25311 You can only number 26 footnotes with Latin letters, because this numbering
25312 is limited to single letters.
25318 \begin_inset Newline newline
25322 \begin_inset Note Greyedout
25325 \begin_layout Plain Layout
25330 You can only number 9 footnotes with symbols.
25338 \begin_layout Standard
25339 To return to the default numbering style when you changed to another one,
25352 in the command above.
25356 \begin_layout Plain Layout
25372 \begin_layout Standard
25373 \begin_inset VSpace bigskip
25379 \begin_layout Standard
25380 If you want to have footnotes numbered in the scheme
25381 \begin_inset Quotes eld
25385 \begin_inset Quotes erd
25388 , add the following command to your document preamble:
25391 \begin_layout Standard
25396 numberwithin{footnote}{chapter}
25399 \begin_layout Standard
25400 To be able to use the command
25409 \begin_inset space ~
25414 in the document settings the option
25417 \begin_inset space ~
25421 \begin_inset space ~
25425 \begin_inset space ~
25433 \begin_layout Standard
25437 \begin_layout Plain Layout
25441 numberwithin{footnote}{chapter}
25446 This is another example footnote:
25452 \begin_layout Plain Layout
25453 This is a footnote numbered in the scheme
25454 \begin_inset Quotes eld
25458 \begin_inset Quotes erd
25472 \begin_layout Plain Layout
25488 \begin_layout Standard
25489 \begin_inset Note Greyedout
25492 \begin_layout Plain Layout
25503 always prints out the footnote number as arabic number; previous redefinitions
25504 to get non-arabic numbers are overwritten.
25512 \begin_layout Standard
25513 So to get for example the scheme
25514 \begin_inset Quotes eld
25520 \begin_inset Quotes erd
25523 , use this command instead of
25532 \begin_layout Standard
25546 \begin_layout Subsection
25551 \begin_layout Plain Layout
25552 Footnotes ! Placement
25560 \begin_layout Standard
25561 If you have several footnotes in one page, they appear without vertical
25562 space between them at the bottom of the page.
25563 To make them more readable you can e.
25564 \begin_inset space \thinspace{}
25568 \begin_inset space \space{}
25572 \begin_inset space \thinspace{}
25575 mm space with the following preamble command:
25578 \begin_layout Standard
25588 \begin_inset Newline newline
25602 \begin_layout Standard
25603 \begin_inset VSpace bigskip
25606 In a two-column document the footnotes appear at the bottom of every column,
25608 \begin_inset space ~
25612 \begin_inset CommandInset ref
25614 reference "fig:Standard-footnote-placement"
25619 If the footnotes should only appear at the bottom of the right column,
25621 \begin_inset space ~
25625 \begin_inset CommandInset ref
25627 reference "fig:Footnote-placement-in"
25631 , use the LaTeX-package
25639 \begin_layout Plain Layout
25640 LaTeX-packages ! ftnright
25645 with this command in the document preamble:
25648 \begin_layout Standard
25653 usepackage{ftnright}
25656 \begin_layout Standard
25657 \begin_inset Float figure
25663 \begin_layout Plain Layout
25667 \begin_layout Plain Layout
25677 \begin_inset Graphics
25678 filename clipart/without_fntright.pdf
25680 scaleBeforeRotation
25688 \begin_layout Plain Layout
25698 \begin_layout Plain Layout
25699 \begin_inset Caption
25701 \begin_layout Plain Layout
25702 \begin_inset CommandInset label
25704 name "fig:Standard-footnote-placement"
25708 Standard footnote placement in two-column documents.
25721 \begin_layout Standard
25722 \begin_inset Float figure
25728 \begin_layout Plain Layout
25732 \begin_layout Plain Layout
25742 \begin_inset Graphics
25743 filename clipart/with_fntright.pdf
25745 scaleBeforeRotation
25753 \begin_layout Plain Layout
25763 \begin_layout Plain Layout
25764 \begin_inset Caption
25766 \begin_layout Plain Layout
25767 \begin_inset CommandInset label
25769 name "fig:Footnote-placement-in"
25773 Footnote placement in two-column documents when the LaTeX-package
25790 \begin_layout Standard
25791 \begin_inset VSpace bigskip
25794 In some scientific literature it is usual to collect the footnotes and print
25795 them in a separate paragraph at the end of a section, as in Figure
25796 \begin_inset space ~
25800 \begin_inset CommandInset ref
25802 reference "fig:Endnotes"
25807 They are then called
25808 \begin_inset Quotes eld
25812 \begin_inset Quotes erd
25819 \begin_layout Plain Layout
25825 To use endnotes instead of footnotes in your document, load in the menu
25828 Document\SpecialChar \menuseparator
25829 Settings\SpecialChar \menuseparator
25835 \begin_inset space ~
25839 \begin_inset space ~
25845 To insert the collected footnotes, insert the command
25848 \begin_layout Standard
25856 \begin_layout Standard
25857 in TeX-Code at the end of a section or chapter.
25860 \begin_layout Standard
25861 \begin_inset Float figure
25866 \begin_layout Plain Layout
25871 \begin_layout Plain Layout
25881 \begin_inset Graphics
25882 filename clipart/endnotes.pdf
25883 scaleBeforeRotation
25891 \begin_layout Plain Layout
25901 \begin_layout Plain Layout
25902 \begin_inset Caption
25904 \begin_layout Plain Layout
25905 \begin_inset CommandInset label
25907 name "fig:Endnotes"
25911 Endnotes – footnotes are printed in a separate paragraph at the end of sections
25925 \begin_layout Standard
25926 \begin_inset VSpace medskip
25929 The paragraph heading for the endnotes isn't automatically translated into
25930 the document language, this must be done manually.
25931 The following preamble command translates the default English
25932 \begin_inset Quotes eld
25936 \begin_inset Quotes erd
25940 \begin_inset Quotes eld
25944 \begin_inset Quotes erd
25950 \begin_layout Standard
25957 notesname}{Anmerkungen}
25960 \begin_layout Standard
25961 \begin_inset VSpace medskip
25964 The numbering of endnotes can be changed like the footnote numbering as
25965 described in section
25966 \begin_inset space ~
25970 \begin_inset CommandInset ref
25972 reference "sub:Footnote-Numbering"
25976 ; just replace the command
25989 To reset the endnote number use the command
25995 as described in section
25996 \begin_inset space ~
26000 \begin_inset CommandInset ref
26002 reference "sub:Footnote-Numbering"
26006 and replace the command parameter
26017 \begin_layout Standard
26018 For endnotes there is the command
26022 endnotemark[number]
26024 similar to the command
26030 , that is described in section
26031 \begin_inset space ~
26035 \begin_inset CommandInset ref
26037 reference "sec:Footnotes"
26044 \begin_layout Standard
26045 \begin_inset VSpace bigskip
26048 Footnotes can also be placed in the page margin and the footnote text alignment
26049 can be changed, see the LaTeX-package
26057 \begin_layout Plain Layout
26058 LaTeX-packages ! footmisc
26064 \begin_inset CommandInset citation
26070 for more information about this.
26073 \begin_layout Standard
26074 For various further footnote formatting issues have a look at LaTeX-books,
26076 \begin_inset CommandInset citation
26078 key "latexcompanion,latexguide,latexbook"
26085 \begin_layout Section
26090 \begin_layout Plain Layout
26091 Notes ! Margin Notes
26099 \begin_layout Standard
26100 Margin notes look and behave in LyX like footnotes.
26101 They are inserted via the menu
26103 Insert\SpecialChar \menuseparator
26105 \begin_inset space ~
26110 or the toolbar button
26111 \begin_inset Graphics
26112 filename ../images/marginalnote-insert.png
26114 scaleBeforeRotation
26129 \begin_inset Quotes eld
26133 \begin_inset Quotes erd
26136 appears where you can enter the text of the margin note.
26139 \begin_layout Standard
26140 At the side is an example margin note.
26145 \begin_inset Marginal
26148 \begin_layout Plain Layout
26149 This is a margin note.
26157 \begin_layout Standard
26158 Margin notes appear at the right side in single-sided documents.
26159 In double-sided documents they appear in the outer margin – left on even
26160 pages, right on odd pages.
26161 The text of margin notes is aligned opposite to the outer margin – right-aligne
26162 d when the note appears in the left margin.
26163 The first line of the margin note is placed at the position of the text
26164 line where it is inserted in the document.
26167 \begin_layout Standard
26168 \begin_inset VSpace bigskip
26171 To place the margin note in the inner margin, add the command
26174 \begin_layout Standard
26182 \begin_layout Standard
26183 in TeX-Code before a margin note.
26184 The new placement is valid for all subsequent margin notes.
26189 \begin_layout Plain Layout
26199 \begin_inset Marginal
26202 \begin_layout Plain Layout
26203 This is a margin note in the inner margin.
26211 \begin_inset Newline newline
26217 \begin_inset Note Greyedout
26220 \begin_layout Plain Layout
26225 There is often not enough space in the inner margin so that the notes are
26226 not correctly displayed in the output.
26234 \begin_layout Standard
26235 To return to the default placement insert the command
26238 \begin_layout Standard
26246 \begin_layout Standard
26251 \begin_layout Plain Layout
26261 \begin_inset Note Greyedout
26264 \begin_layout Plain Layout
26269 The command is ignored when it is within a paragraph where also the command
26284 \begin_layout Standard
26285 \begin_inset VSpace bigskip
26292 \begin_inset Marginal
26295 \begin_layout Plain Layout
26296 AVeryLongMarginParWord that isn't hyphenated.
26304 Similar to the case described in section
26305 \begin_inset space ~
26309 \begin_inset CommandInset ref
26311 reference "sub:Multiple-Lines-in"
26315 , long words cannot be hyphenated when they are the first word in a margin
26317 To avoid this, insert 0
26318 \begin_inset space \thinspace{}
26321 pt horizontal space before the word
26326 \begin_inset Marginal
26329 \begin_layout Plain Layout
26330 \begin_inset space \hspace*{}
26334 AVeryLongMarginParWord that is hyphenated.
26342 \begin_layout Standard
26343 \begin_inset VSpace bigskip
26349 \begin_layout Standard
26350 \begin_inset Note Greyedout
26353 \begin_layout Plain Layout
26358 Margin notes can normally not be used inside tables, floats, and footnotes.
26366 \begin_layout Standard
26367 \begin_inset VSpace bigskip
26373 \begin_layout Standard
26377 \begin_layout Plain Layout
26387 \begin_inset Note Note
26390 \begin_layout Plain Layout
26391 The following section will only be displayed when the LaTeX-package
26403 \begin_layout Standard
26404 This restriction can be evaded by using the LaTeX-package
26412 \begin_layout Plain Layout
26413 LaTeX-packages ! marginnote
26419 By adding these two lines to your document preamble, the command used by
26420 LyX for margin notes is redefined to use the command provided by the
26427 \begin_layout Standard
26432 usepackage{marginnote}
26433 \begin_inset Newline newline
26445 \begin_layout Standard
26446 This is also used in this document because
26450 has another useful feature: You can set a vertical offset for the note.
26451 This is often needed when too many margin notes are too close together
26452 or for a better page layout.
26453 The offset is set in LyX as TeX-Code directly after the margin note in
26457 \begin_layout Standard
26463 \begin_layout Standard
26464 where the offset is a length with one of the units listed in Table
26465 \begin_inset space ~
26469 \begin_inset CommandInset ref
26471 reference "tab:Units"
26476 A negative value shifts the note up, a positive value shifts it down.
26480 For example the margin note beside this text line is shifted up 1.5
26481 \begin_inset space \thinspace{}
26484 cm with the TeX-Code-command
26485 \begin_inset Quotes eld
26495 \begin_inset Quotes erd
26499 \begin_inset Marginal
26502 \begin_layout Plain Layout
26503 This margin note is shifted up 1.5
26504 \begin_inset space \thinspace{}
26507 cm from its original position.
26519 \begin_layout Plain Layout
26529 \begin_layout Standard
26530 \begin_inset VSpace medskip
26537 you can also change the alignment of the text in the margin note.
26538 For example the commands
26541 \begin_layout Standard
26548 raggedleftmarginnote}{
26551 \begin_inset Newline newline
26558 raggedrightmarginnote}{
26563 \begin_layout Standard
26564 set the alignment to centered.
26569 raggedleftmarginnote
26571 denotes margin notes that appear at the left side.
26578 \begin_layout Plain Layout
26584 raggedleftmarginnote}{
26589 \begin_layout Plain Layout
26595 raggedrightmarginnote}{
26603 \begin_inset Marginal
26606 \begin_layout Plain Layout
26607 The text of this margin note is centered.
26618 \begin_layout Standard
26625 raggedleftmarginnote}{
26628 \begin_inset Newline newline
26635 raggedrightmarginnote}{
26644 \begin_layout Plain Layout
26650 raggedleftmarginnote}{
26655 \begin_layout Plain Layout
26661 raggedrightmarginnote}{
26671 \begin_layout Standard
26672 \begin_inset VSpace medskip
26675 For the other features of
26679 refer to its documentation
26680 \begin_inset CommandInset citation
26689 \begin_layout Standard
26690 \begin_inset VSpace bigskip
26693 You can adjust the layout of margin notes by changing its definition.
26694 To create for example a header for all margin notes with the underlined,
26695 sans-serif, and bold header text
26696 \begin_inset Quotes eld
26708 \begin_inset Quotes erd
26711 , add this to your document preamble:
26714 \begin_layout Standard
26724 \begin_inset Newline newline
26734 \begin_inset Newline newline
26741 \begin_layout Plain Layout
26758 underbar{Attention!}}}%
26759 \begin_inset Newline newline
26766 \begin_layout Plain Layout
26784 \begin_layout Standard
26791 \begin_layout Plain Layout
26802 \begin_layout Plain Layout
26813 \begin_layout Plain Layout
26821 underbar{Attention!}}}%
26824 \begin_layout Plain Layout
26838 \begin_inset Marginal
26841 \begin_layout Plain Layout
26842 This is a margin note with a defined heading.
26854 \begin_layout Plain Layout
26868 \begin_layout Plain Layout
26885 \begin_inset Note Note
26888 \begin_layout Plain Layout
26889 The margin note format is changed only for this example.
26897 \begin_layout Standard
26901 \begin_layout Plain Layout
26911 \begin_inset Note Note
26914 \begin_layout Plain Layout
26915 The following will be displayed when the LaTeX-package
26927 \begin_layout Standard
26928 You need to install the LaTeX-package
26932 to see the following part of this section in the output.
26935 \begin_layout Standard
26939 \begin_layout Plain Layout
26951 \begin_layout Chapter
26955 \begin_layout Section
26960 \begin_layout Plain Layout
26961 Boxes ! Introduction
26969 \begin_layout Standard
26970 Boxes are used to format a block of text.
26971 Boxes can be used to write documents with multiple languages, see section
26972 \begin_inset space ~
26976 \begin_inset CommandInset ref
26978 reference "sec:Minipages"
26982 , to frame texts, see section
26983 \begin_inset space ~
26987 \begin_inset CommandInset ref
26989 reference "sec:Decoration"
26993 , to prevent words to be hyphenated, see section
26994 \begin_inset space ~
26998 \begin_inset CommandInset ref
27000 reference "sec:Prevent-Hyphenation"
27004 , to align text, see section
27005 \begin_inset space ~
27009 \begin_inset CommandInset ref
27011 reference "sub:Vertical-Alignment"
27015 , or to set the background color of texts, see section
27016 \begin_inset space ~
27020 \begin_inset CommandInset ref
27022 reference "sec:Colored-Boxes"
27029 \begin_layout Standard
27030 Boxes can be inserted with the menu
27032 Insert\SpecialChar \menuseparator
27035 or the toolbar button
27036 \begin_inset Graphics
27037 filename ../images/box-insert.png
27039 scaleBeforeRotation
27044 A grey box with the label
27049 \begin_inset Graphics
27050 filename clipart/BoxInsetDefaultQt4.png
27052 scaleBeforeRotation
27057 The box type can be specified by right-clicking on the box.
27058 The appearing box dialog offers the
27061 \begin_inset space ~
27079 is the default for new boxes and is explained in section
27080 \begin_inset space ~
27084 \begin_inset CommandInset ref
27086 reference "sec:Minipages"
27094 is described in section
27095 \begin_inset space ~
27099 \begin_inset CommandInset ref
27101 reference "sec:Parboxes"
27108 \begin_layout Standard
27109 Boxes are not numbered and can therefore not be referenced like floats or
27113 \begin_layout Standard
27114 \begin_inset Note Greyedout
27117 \begin_layout Plain Layout
27122 Boxes must not be the item in an
27138 \begin_layout Standard
27139 \begin_inset Note Greyedout
27142 \begin_layout Plain Layout
27147 For an unknown reason you can only set the
27150 \begin_inset space ~
27159 when you use a framed box.
27163 \begin_inset space ~
27168 type and without frames are explained in section
27169 \begin_inset space ~
27173 \begin_inset CommandInset ref
27175 reference "sec:Prevent-Hyphenation"
27187 \begin_layout Section
27189 \begin_inset CommandInset label
27191 name "sec:Box-Dialog"
27199 \begin_layout Plain Layout
27208 \begin_layout Subsection
27213 \begin_layout Plain Layout
27222 \begin_layout Standard
27223 In the box dialog you can adjust the box geometry in the fields
27232 The available units for the geometry are explained in Table
27233 \begin_inset space ~
27237 \begin_inset CommandInset ref
27239 reference "tab:Units"
27248 offers the following additional sizes:
27251 \begin_layout Description
27252 Depth This is the plain text
27253 \begin_inset Quotes eld
27257 \begin_inset Quotes erd
27261 It ignores the total depth when there are multiple text lines in the box:
27262 \begin_inset Newline newline
27266 \begin_inset Newline newline
27270 \begin_inset Newline newline
27274 \begin_inset Box Boxed
27283 height_special "depth"
27286 \begin_layout Plain Layout
27288 Box height set to 1
27289 \begin_inset space \thinspace{}
27298 \begin_inset Newline newline
27302 \begin_inset Newline newline
27308 \begin_layout Description
27309 Height This is the height of the text that is inside the box.
27311 \begin_inset space \thinspace{}
27315 \begin_inset space \space{}
27318 2 for this size will set the box height to 2
27319 \begin_inset space ~
27322 times the text height:
27323 \begin_inset Box Boxed
27332 height_special "height"
27335 \begin_layout Plain Layout
27337 Box height set to 2
27338 \begin_inset space \thinspace{}
27349 \begin_layout Description
27351 \begin_inset space ~
27354 Height This is the Height
27355 \begin_inset space \thinspace{}
27359 \begin_inset space \thinspace{}
27363 \begin_inset Box Boxed
27372 height_special "totalheight"
27375 \begin_layout Plain Layout
27377 Box height set to 1
27378 \begin_inset space \thinspace{}
27382 \begin_inset space ~
27393 \begin_layout Description
27394 Width This sets the width of the box as height:
27395 \begin_inset Box Boxed
27404 height_special "width"
27407 \begin_layout Plain Layout
27409 Box height set to 1
27410 \begin_inset space \thinspace{}
27421 \begin_layout Subsection
27426 \begin_layout Plain Layout
27435 \begin_layout Standard
27436 When you have chosen an
27439 \begin_inset space ~
27444 , the vertical box alignment can be:
27447 \begin_layout Description
27448 Top This is an example text line.
27450 \begin_inset Box Boxed
27459 height_special "totalheight"
27462 \begin_layout Plain Layout
27464 This box is top-aligned.
27469 This is an example text line.
27472 \begin_layout Description
27473 Middle This is an example text line.
27475 \begin_inset Box Boxed
27484 height_special "totalheight"
27487 \begin_layout Plain Layout
27489 This box is middle-aligned.
27494 This is an example text line.
27497 \begin_layout Description
27498 Bottom This is an example text line.
27500 \begin_inset Box Boxed
27509 height_special "totalheight"
27512 \begin_layout Plain Layout
27514 This box is bottom-aligned.
27519 This is an example text line.
27522 \begin_layout Standard
27523 \begin_inset Note Greyedout
27526 \begin_layout Plain Layout
27531 The vertical box alignment can be lost in the output when you have two
27532 boxes in a line and one has e.
27533 \begin_inset space \thinspace{}
27537 \begin_inset space \space{}
27540 a shadow and the other one not.
27548 \begin_layout Standard
27549 The horizontal box alignment can be set via LyX's paragraph dialog when
27550 you set the box into its own paragraph.
27553 \begin_layout Standard
27554 \begin_inset VSpace bigskip
27557 When you have chosen an
27560 \begin_inset space ~
27565 , the box content can be aligned vertically to:
27568 \begin_layout Description
27569 top This is an example text line.
27571 \begin_inset Box Boxed
27580 height_special "totalheight"
27583 \begin_layout Plain Layout
27585 This box text is top-aligned.
27590 This is an example text line.
27593 \begin_layout Description
27594 middle This is an example text line.
27596 \begin_inset Box Boxed
27605 height_special "totalheight"
27608 \begin_layout Plain Layout
27610 This box text is middle-aligned.
27615 This is an example text line.
27618 \begin_layout Description
27619 bottom This is an example text line.
27621 \begin_inset Box Boxed
27630 height_special "totalheight"
27633 \begin_layout Plain Layout
27635 This box text is bottom-aligned.
27640 This is an example text line.
27643 \begin_layout Description
27644 stretch This is an example text line.
27646 \begin_inset Box Boxed
27655 height_special "totalheight"
27658 \begin_layout Plain Layout
27663 \begin_layout Plain Layout
27668 \begin_layout Plain Layout
27675 This is an example text line.
27678 \begin_layout Standard
27679 To stretch the box content, it must consist of more than one paragraph.
27680 In the example above every text line is in an own paragraph.
27683 \begin_layout Standard
27684 \begin_inset VSpace bigskip
27687 To align the box content horizontally you can use LyX's paragraph dialog
27688 when you have chosen an
27691 \begin_inset space ~
27699 \begin_layout Standard
27701 \begin_inset Box Boxed
27710 height_special "totalheight"
27713 \begin_layout Plain Layout
27718 \begin_layout Plain Layout
27723 \begin_layout Plain Layout
27733 \begin_layout Standard
27734 If you have not set an
27737 \begin_inset space ~
27742 , you can align the box content horizontally in the box dialog.
27745 \begin_layout Standard
27747 \begin_inset Box Boxed
27756 height_special "totalheight"
27759 \begin_layout Plain Layout
27761 This box text is horizontally stretched.
27769 \begin_layout Subsection
27771 \begin_inset CommandInset label
27773 name "sec:Decoration"
27781 \begin_layout Plain Layout
27790 \begin_layout Standard
27791 The type of the box can be specified in the box dialog in the drop-down
27797 The following types are possible:
27800 \begin_layout Description
27802 \begin_inset space ~
27806 \begin_inset space ~
27809 frame This draws a rectangular frame around the box.
27810 The frame line thickness has the size of
27818 \begin_inset Box Boxed
27827 height_special "totalheight"
27830 \begin_layout Plain Layout
27840 \begin_layout Description
27842 \begin_inset space ~
27846 \begin_inset space ~
27849 break When you use the decoration
27851 simple rectangular frame
27853 and no inner box, you can allow page breaks within a box.
27854 Note that then, in contrary to other framed boxes, the frame always uses
27855 the whole column width, the box is set as its own paragraph, and
27867 have no effect on this box type.
27868 The frame line thickness has the size of
27876 \begin_inset Box Framed
27885 height_special "totalheight"
27888 \begin_layout Plain Layout
27889 Allow page break box
27897 \begin_layout Description
27899 \begin_inset space ~
27903 \begin_inset space ~
27906 thin This draws an oval frame around the box.
27907 The frame line thickness has the size 0.4
27908 \begin_inset space \thinspace{}
27913 \begin_inset Box ovalbox
27922 height_special "totalheight"
27925 \begin_layout Plain Layout
27935 \begin_layout Description
27937 \begin_inset space ~
27941 \begin_inset space ~
27944 thick This draws an oval frame around the box.
27945 The frame line thickness has the size 0.8
27946 \begin_inset space \thinspace{}
27951 \begin_inset Box Ovalbox
27960 height_special "totalheight"
27963 \begin_layout Plain Layout
27973 \begin_layout Description
27975 \begin_inset space ~
27978 shadow This draws a rectangular frame with a shadow around the box.
27979 The frame line thickness has the size of
27985 , the shadow has a width of 4
27986 \begin_inset space \thinspace{}
27991 \begin_inset Box Shadowbox
28000 height_special "totalheight"
28003 \begin_layout Plain Layout
28013 \begin_layout Description
28015 \begin_inset space ~
28018 background This draws a box with red background color.
28019 In contrary to colored boxes
28023 \begin_layout Plain Layout
28025 \begin_inset space \thinspace{}
28029 \begin_inset CommandInset ref
28031 reference "sec:Colored-Boxes"
28040 , it always uses the whole column width and the box is set as its own paragraph.
28042 \begin_inset Box Shaded
28051 height_special "totalheight"
28054 \begin_layout Plain Layout
28055 Shaded background box
28063 \begin_layout Description
28065 \begin_inset space ~
28069 \begin_inset space ~
28072 frame This draws a double-line rectangular frame around the box.
28073 The line thickness of the inner frame is 0.75
28074 \begin_inset space \thinspace{}
28083 , the thickness of the outer frame is 1.5
28084 \begin_inset space \thinspace{}
28094 The distance between the lines is 1.5
28095 \begin_inset space \thinspace{}
28105 \begin_inset space \thinspace{}
28109 \begin_inset space \thinspace{}
28113 \begin_inset space \thinspace{}
28118 \begin_inset Box Doublebox
28127 height_special "totalheight"
28130 \begin_layout Plain Layout
28132 Double rectangular box
28140 \begin_layout Standard
28141 \begin_inset VSpace bigskip
28144 LyX's box label will reflect the different frame types.
28145 To be able to use all types, the LaTeX-package
28153 \begin_layout Plain Layout
28154 LaTeX-packages ! fancybox
28162 \begin_layout Section
28167 \begin_layout Plain Layout
28168 Boxes ! Customization
28176 \begin_layout Standard
28177 The default value for the size
28184 \begin_inset space \thinspace{}
28188 It can be changed with the following command in TeX-Code to e.
28189 \begin_inset space \thinspace{}
28193 \begin_inset space \space{}
28197 \begin_inset space \thinspace{}
28203 \begin_layout Standard
28213 \begin_layout Standard
28217 \begin_layout Plain Layout
28229 \begin_inset Box Boxed
28238 height_special "totalheight"
28241 \begin_layout Plain Layout
28243 Rectangular box with
28250 \begin_inset space \thinspace{}
28254 \begin_inset space \thinspace{}
28258 \begin_inset space \thinspace{}
28270 \begin_layout Plain Layout
28284 \begin_layout Standard
28285 \begin_inset VSpace bigskip
28288 The space between the frame and the box content is for all frame styles
28290 \begin_inset space \thinspace{}
28294 You can change it by setting the length
28301 For example the command
28304 \begin_layout Standard
28314 \begin_layout Standard
28315 sets the value to 10
28316 \begin_inset space \thinspace{}
28319 pt, like for the following box:
28322 \begin_layout Standard
28326 \begin_layout Plain Layout
28338 \begin_inset Box Boxed
28347 height_special "totalheight"
28350 \begin_layout Plain Layout
28352 Rectangular box with
28359 \begin_inset space \thinspace{}
28363 \begin_inset space \thinspace{}
28367 \begin_inset space \thinspace{}
28379 \begin_layout Plain Layout
28393 \begin_layout Standard
28394 \begin_inset VSpace bigskip
28397 The diameter of the round corners of the oval boxes can be set with the
28408 \begin_layout Standard
28416 \begin_layout Standard
28417 sets the diameter to 1
28418 \begin_inset space \thinspace{}
28425 \begin_layout Standard
28433 \begin_layout Standard
28434 sets the diameter to
28437 \begin_inset space \thinspace{}
28441 \begin_inset space \thinspace{}
28444 minimum(width and heigth of box)
28456 \begin_layout Standard
28460 \begin_layout Plain Layout
28470 \begin_inset Box Ovalbox
28479 height_special "totalheight"
28482 \begin_layout Plain Layout
28491 \begin_inset space \thinspace{}
28495 \begin_inset space \thinspace{}
28499 \begin_inset space \thinspace{}
28511 \begin_layout Plain Layout
28523 \begin_layout Standard
28524 \begin_inset VSpace bigskip
28527 The size of the shadow can be adjusted by changing the length
28535 \begin_inset space \thinspace{}
28538 pt for the following box by this command:
28541 \begin_layout Standard
28551 \begin_layout Standard
28555 \begin_layout Plain Layout
28567 \begin_inset Box Shadowbox
28576 height_special "totalheight"
28579 \begin_layout Plain Layout
28588 \begin_inset space \thinspace{}
28592 \begin_inset space \thinspace{}
28596 \begin_inset space \thinspace{}
28608 \begin_layout Plain Layout
28622 \begin_layout Standard
28623 \begin_inset VSpace bigskip
28629 \begin_layout Standard
28630 The default value for the size
28637 \begin_inset space \thinspace{}
28641 The default space between the note content and the frame is 9
28642 \begin_inset space \thinspace{}
28645 pt and can be changed with the value of
28652 For example the frame appearance of the following
28656 is set with the TeX-Code commands
28659 \begin_layout Standard
28667 \begin_inset Newline newline
28677 \begin_layout Standard
28681 \begin_layout Plain Layout
28690 \begin_layout Plain Layout
28702 \begin_inset Box Framed
28711 height_special "totalheight"
28714 \begin_layout Plain Layout
28728 \begin_layout Plain Layout
28737 \begin_layout Plain Layout
28751 \begin_layout Standard
28752 \begin_inset VSpace bigskip
28758 \begin_layout Standard
28763 boxes the default space between the box content and the box border is 3
28764 \begin_inset space \thinspace{}
28767 pt and can be changed with the value of
28774 The default background color red can either be changed locally with the
28779 definecolor{shadecolor}
28781 or globally with the menu
28783 Tools\SpecialChar \menuseparator
28784 Preferences\SpecialChar \menuseparator
28785 Colors\SpecialChar \menuseparator
28787 \begin_inset space ~
28799 command is explained in section
28800 \begin_inset space ~
28804 \begin_inset CommandInset ref
28806 reference "sec:Colored-Tables"
28814 \begin_layout Plain Layout
28821 requires the LaTeX-package
28825 in the preamble, see section
28826 \begin_inset space ~
28830 \begin_inset CommandInset ref
28832 reference "sec:Colored-Boxes"
28841 For example the appearance of the following shaded background box is set
28842 with the TeX-Code commands
28845 \begin_layout Standard
28855 \begin_inset Newline newline
28862 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28865 \begin_layout Standard
28869 \begin_layout Plain Layout
28878 \begin_layout Plain Layout
28882 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28888 \begin_inset Box Shaded
28897 height_special "totalheight"
28900 \begin_layout Plain Layout
28903 This is yellow text in a
28913 box with dark green background.
28922 \begin_layout Plain Layout
28931 \begin_layout Plain Layout
28935 definecolor{shadecolor}{rgb}{1,0,0}
28943 \begin_layout Standard
28944 \begin_inset VSpace bigskip
28947 Changed lengths and widths are valid for all boxes following the commands
28951 \begin_layout Section
28953 \begin_inset CommandInset label
28955 name "sec:Minipages"
28963 \begin_layout Plain Layout
28972 \begin_layout Standard
28973 Minipages are treated by LaTeX as pages within pages and can therefore for
28974 example have their own footnotes.
28977 \begin_layout Standard
28978 Minipages are useful when you write documents with different languages.
28981 \begin_layout Standard
28982 Below are two example minipages side by side.
28983 Their width is set to 45
28984 \begin_inset space \thinspace{}
28987 col% and they are separated by a horizontal fill, that was inserted via
28990 Insert\SpecialChar \menuseparator
28992 \begin_inset space ~
28995 Formatting\SpecialChar \menuseparator
28997 \begin_inset space ~
29003 \begin_inset Newpage newpage
29009 \begin_layout Standard
29010 \begin_inset Box Frameless
29019 height_special "totalheight"
29022 \begin_layout Plain Layout
29025 Dies ist ein deutscher Text.
29026 Dies ist ein deutscher Text.
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
29041 \begin_layout Plain Layout
29044 Dies ist eine deutsche Fußnote.
29050 Dies ist ein deutscher Text.
29051 Dies ist ein deutscher Text.
29057 \begin_inset space \hfill{}
29061 \begin_inset Box Frameless
29070 height_special "totalheight"
29073 \begin_layout Plain Layout
29074 This is an English Text.
29075 This is an English Text.
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.
29093 \begin_layout Plain Layout
29094 This is an English footnote.
29099 This is an English Text.
29108 \begin_layout Standard
29109 \begin_inset VSpace bigskip
29112 The document-wide paragraph settings are ignored within minipages.
29113 That means that there will be no space between paragraphs in minipages
29114 although you set it to e.
29115 \begin_inset space \thinspace{}
29119 \begin_inset space \space{}
29126 in the document settings.
29129 \begin_layout Standard
29130 Minipages can also be used to set a background color for text parts, see
29132 \begin_inset space ~
29136 \begin_inset CommandInset ref
29138 reference "sub:Color-for-Paragraphs"
29145 \begin_layout Standard
29146 \begin_inset Note Greyedout
29149 \begin_layout Plain Layout
29154 You cannot have floats or margin notes inside minipages but minipages can
29155 be used inside tables, floats, and other boxes.
29163 \begin_layout Section
29165 \begin_inset CommandInset label
29167 name "sec:Parboxes"
29175 \begin_layout Plain Layout
29184 \begin_layout Standard
29185 Parboxes are very similar to minipages with the difference that they cannot
29187 The main difference to minipages is that minipages are in contrary to parboxes
29188 no real boxes but LaTeX-environments.
29191 \begin_layout Standard
29193 \begin_inset Box Frameless
29202 height_special "totalheight"
29205 \begin_layout Plain Layout
29206 This a text within a parbox.
29207 This a text within a parbox.
29210 \begin_layout Plain Layout
29211 This footnote won't appear:
29215 \begin_layout Plain Layout
29216 This footnote is inside a parbox and will therefore not appear.
29229 \begin_layout Section
29230 Boxes for Words and Characters
29234 \begin_layout Plain Layout
29235 Boxes ! for Characters
29243 \begin_layout Subsection
29244 Prevent Hyphenation
29245 \begin_inset CommandInset label
29247 name "sec:Prevent-Hyphenation"
29255 \begin_layout Plain Layout
29256 Boxes ! to Prevent Hyphenation
29264 \begin_layout Standard
29265 You can use a special kind of boxes to prevent words or text to be hyphenated.
29266 \begin_inset Newline newline
29269 Here is an example text:
29272 \begin_layout Standard
29273 This line is an example to show how you can prevent the hyphenation of
29274 \begin_inset Quotes eld
29278 \begin_inset Quotes erd
29284 \begin_layout Standard
29285 To prevent the hyphenation of the word
29286 \begin_inset Quotes eld
29290 \begin_inset Quotes erd
29296 \begin_layout Standard
29304 \begin_layout Standard
29305 in TeX-Code before the word.
29306 Behind the word insert a closing brace
29307 \begin_inset Quotes eld
29315 \begin_inset Quotes erd
29321 \begin_layout Standard
29322 This is the result:
29325 \begin_layout Standard
29326 This line is an example to show how you can prevent the hyphenation of
29330 \begin_layout Plain Layout
29340 \begin_inset Quotes eld
29344 \begin_inset Quotes erd
29351 \begin_layout Plain Layout
29361 \begin_layout Standard
29362 You can alternatively set the command
29363 \begin_inset Quotes eld
29373 \begin_inset Quotes grd
29376 as TeX-Code directly before the word:
29379 \begin_layout Standard
29380 This line is an example to show how you can prevent the hyphenation of
29381 \begin_inset Quotes eld
29388 \begin_layout Plain Layout
29398 \begin_inset Quotes erd
29404 \begin_layout Standard
29405 Of course the word now protrudes over the side margin.
29406 To avoid this, add via the menu
29408 Insert\SpecialChar \menuseparator
29410 \begin_inset space ~
29413 Formatting\SpecialChar \menuseparator
29415 \begin_inset space ~
29423 arg "newline-insert newline"
29426 ) a line break before the word:
29429 \begin_layout Standard
29430 This line is an example to show how you can prevent the hyphenation of
29431 \begin_inset Newline newline
29438 \begin_layout Plain Layout
29448 \begin_inset Quotes eld
29452 \begin_inset Quotes erd
29459 \begin_layout Plain Layout
29469 \begin_layout Subsection
29471 \begin_inset CommandInset label
29473 name "sub:Vertical-Alignment"
29481 \begin_layout Plain Layout
29482 Boxes ! for Vertical Alignment
29491 \begin_layout Plain Layout
29500 \begin_layout Standard
29501 With the help of the command
29507 you can align words, characters or other boxes vertically to the surrounding
29515 is used with the following scheme:
29518 \begin_layout Standard
29523 raisebox{lift}[height][depth]{box content}
29526 \begin_layout Standard
29527 The lift can be a positive value to raise the box or a negative value to
29531 \begin_layout Standard
29532 To align for example the word
29533 \begin_inset Quotes eld
29537 \begin_inset Quotes erd
29540 so that the bottom of the
29541 \begin_inset Quotes eld
29545 \begin_inset Quotes erd
29549 \begin_inset Quotes eld
29553 \begin_inset Quotes erd
29556 is at the baseline, insert the command
29559 \begin_layout Standard
29569 \begin_layout Standard
29570 in TeX-Code before the word.
29571 Behind the word insert a closing brace
29572 \begin_inset Quotes eld
29580 \begin_inset Quotes erd
29584 \begin_inset Newline newline
29587 This is the result:
29590 \begin_layout Standard
29591 This is a text line with the word
29595 \begin_layout Plain Layout
29607 \begin_inset Quotes eld
29611 \begin_inset Quotes erd
29618 \begin_layout Plain Layout
29628 \begin_layout Standard
29629 \begin_inset VSpace bigskip
29632 When you raise or lower characters in a line, the line distance will be
29636 \begin_layout Standard
29637 This is a text line with the word
29641 \begin_layout Plain Layout
29653 \begin_inset Quotes eld
29657 \begin_inset Quotes erd
29664 \begin_layout Plain Layout
29672 \begin_inset Newline newline
29675 This is a text line with the word
29679 \begin_layout Plain Layout
29689 \begin_inset Quotes eld
29693 \begin_inset Quotes erd
29700 \begin_layout Plain Layout
29710 \begin_layout Standard
29711 If you want to prevent this for a certain reason, set the box height to
29716 \begin_layout Standard
29726 \begin_layout Standard
29727 This is a text line with the word
29731 \begin_layout Plain Layout
29743 \begin_inset Quotes eld
29747 \begin_inset Quotes erd
29754 \begin_layout Plain Layout
29762 \begin_inset Newline newline
29765 This is a text line with the word
29769 \begin_layout Plain Layout
29773 raisebox{0.5cm}[0pt]{
29779 \begin_inset Quotes eld
29783 \begin_inset Quotes erd
29790 \begin_layout Plain Layout
29800 \begin_layout Section
29802 \begin_inset CommandInset label
29804 name "sec:Colored-Boxes"
29812 \begin_layout Plain Layout
29821 \begin_layout Subsection
29826 \begin_layout Plain Layout
29835 \begin_layout Standard
29836 To color the background of text the text must be put into a so called
29837 \begin_inset Quotes eld
29841 \begin_inset Quotes erd
29845 This requires that the LaTeX-package
29853 \begin_layout Plain Layout
29854 LaTeX-packages ! color
29859 is loaded in the document preamble with the command
29862 \begin_layout Standard
29867 @ifundefined{textcolor}
29868 \begin_inset Newline newline
29875 \begin_layout Plain Layout
29886 usepackage{color}}{}
29889 \begin_layout Standard
29894 will be loaded automatically by LyX when you color text
29898 \begin_layout Plain Layout
29899 To avoid that it is loaded twice the command
29913 \begin_layout Standard
29914 \begin_inset VSpace medskip
29917 Colorboxes are created with the command
29924 This will be used with the following scheme:
29927 \begin_layout Standard
29932 colorbox{color}{box content}
29935 \begin_layout Standard
29936 The box content can also be a box and colorboxes can also be within other
29940 \begin_layout Standard
29941 The following colors are predefined:
29942 \begin_inset Newline newline
29981 \begin_inset Newline newline
29984 You can also define your own color as described in section
29985 \begin_inset space ~
29989 \begin_inset CommandInset ref
29991 reference "sec:Colored-Tables"
29998 \begin_layout Standard
30000 \begin_inset space \thinspace{}
30004 \begin_inset space \space{}
30007 a red background for a word, insert the command
30010 \begin_layout Standard
30018 \begin_layout Standard
30019 before the word in TeX-Code.
30020 Behind the word insert a closing brace
30021 \begin_inset Quotes eld
30029 \begin_inset Quotes erd
30033 \begin_inset Newline newline
30036 This is the result:
30039 \begin_layout Standard
30040 This is a line where the word
30044 \begin_layout Plain Layout
30054 \begin_inset Quotes eld
30058 \begin_inset Quotes erd
30065 \begin_layout Plain Layout
30072 has a red background.
30075 \begin_layout Standard
30076 \begin_inset VSpace bigskip
30079 If you would have the box frame in a different color, you can use the command
30086 with the following scheme:
30089 \begin_layout Standard
30094 fcolorbox{frame color}{box color}{box content}
30097 \begin_layout Standard
30111 The frame thickness and the space between the frame and the box content
30112 can be adjusted with the lengths
30124 , respectively, as described in section
30125 \begin_inset space ~
30129 \begin_inset CommandInset ref
30131 reference "sec:Decoration"
30138 \begin_layout Standard
30139 For the following example the command
30142 \begin_layout Standard
30147 fcolorbox{cyan}{magenta}{
30150 \begin_layout Standard
30154 \begin_layout Standard
30155 Here is an example where the frame line thickness was set to 1
30156 \begin_inset space \thinspace{}
30160 \begin_inset Newline newline
30167 \begin_layout Plain Layout
30182 \begin_layout Plain Layout
30186 fcolorbox{cyan}{magenta}{
30191 This is text within a colored, framed box.
30195 \begin_layout Plain Layout
30205 \begin_layout Standard
30206 \begin_inset VSpace bigskip
30209 Of course you can also have colored text inside a colorbox:
30210 \begin_inset Newline newline
30217 \begin_layout Plain Layout
30221 fcolorbox{cyan}{magenta}{
30228 This is colored text within a colored, framed box.
30234 \begin_layout Plain Layout
30245 \begin_layout Plain Layout
30259 \begin_layout Standard
30262 \begin_inset VSpace medskip
30268 \begin_layout Standard
30269 \begin_inset Note Greyedout
30272 \begin_layout Plain Layout
30277 Text in colorboxes cannot have line breaks.
30278 To color multiple text lines or paragraphs, use a box inside a colorbox
30279 as described in the following.
30287 \begin_layout Subsection
30288 Color for Paragraphs
30289 \begin_inset CommandInset label
30291 name "sub:Color-for-Paragraphs"
30299 \begin_layout Plain Layout
30300 Color ! for Paragraphs
30308 \begin_layout Standard
30309 To set the background color for more than one text line, put the text into
30311 Before the minipage insert the
30320 \begin_layout Standard
30328 \begin_layout Standard
30330 Behind the minipage insert a closing brace
30331 \begin_inset Quotes eld
30339 \begin_inset Quotes erd
30345 \begin_layout Standard
30349 \begin_layout Plain Layout
30353 colorbox{lightgrey}{
30359 \begin_inset Box Frameless
30368 height_special "totalheight"
30371 \begin_layout Plain Layout
30372 This is text with background color.
30373 This is text with background color.
30376 \begin_layout Plain Layout
30377 \begin_inset VSpace defskip
30380 The text can have footnotes
30384 \begin_layout Plain Layout
30385 Another example footnote
30390 and can include tables and figures.
30393 \begin_layout Plain Layout
30395 \begin_inset Tabular
30396 <lyxtabular version="3" rows="3" columns="3">
30398 <column alignment="center" valignment="top" width="0">
30399 <column alignment="center" valignment="top" width="0">
30400 <column alignment="center" valignment="top" width="0">
30402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30405 \begin_layout Plain Layout
30411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30414 \begin_layout Plain Layout
30420 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30423 \begin_layout Plain Layout
30431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30434 \begin_layout Plain Layout
30440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30443 \begin_layout Plain Layout
30445 \begin_inset Quotes erd
30453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30456 \begin_layout Plain Layout
30464 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30467 \begin_layout Plain Layout
30473 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30476 \begin_layout Plain Layout
30482 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30485 \begin_layout Plain Layout
30505 \begin_layout Plain Layout
30515 \begin_layout Section
30516 Rotated and Scaled Boxes
30519 \begin_layout Standard
30520 To use the commands described in this section, the LaTeX-package
30528 \begin_layout Plain Layout
30529 LaTeX-packages ! graphicx
30534 needs to be loaded in the document preamble with the command
30537 \begin_layout Standard
30542 @ifundefined{rotatebox}
30543 \begin_inset Newline newline
30550 \begin_layout Plain Layout
30561 usepackage{graphicx}}{}
30564 \begin_layout Standard
30565 \begin_inset Note Greyedout
30568 \begin_layout Plain Layout
30573 Some DVI-viewers can't display rotated or scaled material.
30581 \begin_layout Standard
30582 \begin_inset Note Greyedout
30585 \begin_layout Plain Layout
30590 Floats mustn't be inside a rotated or scaled box.
30598 \begin_layout Subsection
30603 \begin_layout Plain Layout
30613 \begin_layout Plain Layout
30623 \begin_layout Plain Layout
30633 \begin_layout Plain Layout
30634 Table Customization ! Rotating
30642 \begin_layout Standard
30643 To rotate material, you can put it into a rotated box.
30644 Such a box is created using the command
30650 in TeX-Code with the following scheme:
30653 \begin_layout Standard
30658 rotatebox[rotation origin]{rotation angle}{box content}
30661 \begin_layout Standard
30662 The rotation origin is specified in the form
30667 The following positions are possible:
30687 (top), and also expedient combinations of the four base positions.
30692 means, that the rotation origin is at the top left corner of the box.
30693 When no rotation origin is specified, the position
30698 The rotation angle is a number that can be negative that specifies the
30700 The rotation direction is counterclockwise.
30703 \begin_layout Standard
30704 In the following example the command
30708 rotatebox[origin=c]{60}{
30710 was inserted as TeX-Code before the text
30711 \begin_inset Quotes eld
30715 \begin_inset Quotes erd
30718 ; after the text the box was closed by a closing brace
30725 \begin_layout Standard
30730 \begin_layout Plain Layout
30734 rotatebox[origin=c]{60}{
30743 \begin_layout Plain Layout
30753 \begin_layout Standard
30754 The box content can also be another box or an inline formula:
30757 \begin_layout Standard
30762 \begin_layout Plain Layout
30766 rotatebox[origin=r]{-60}{
30772 \begin_inset Box Doublebox
30781 height_special "totalheight"
30784 \begin_layout Plain Layout
30794 \begin_layout Plain Layout
30805 \begin_layout Plain Layout
30809 rotatebox[origin=lb]{60}{
30815 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30822 \begin_layout Plain Layout
30832 \begin_layout Standard
30833 or an image or table:
30836 \begin_layout Standard
30841 \begin_layout Plain Layout
30845 rotatebox[origin=lb]{90}{
30851 \begin_inset Graphics
30852 filename clipart/platypus.eps
30862 \begin_layout Plain Layout
30869 with a rotated image
30873 \begin_layout Plain Layout
30877 rotatebox[origin=l]{-90}{
30883 \begin_inset Tabular
30884 <lyxtabular version="3" rows="2" columns="2">
30886 <column alignment="center" valignment="top" width="0">
30887 <column alignment="center" valignment="top" width="0">
30889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30892 \begin_layout Plain Layout
30898 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30901 \begin_layout Plain Layout
30909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30912 \begin_layout Plain Layout
30918 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30921 \begin_layout Plain Layout
30936 \begin_layout Plain Layout
30946 \begin_layout Subsection
30951 \begin_layout Plain Layout
30961 \begin_layout Plain Layout
30971 \begin_layout Plain Layout
30981 \begin_layout Plain Layout
30982 Table Customization ! Scaling
30990 \begin_layout Standard
30991 To scale material the commands
31003 can be used as TeX-Code.
31006 \begin_layout Standard
31013 is used with the following scheme:
31016 \begin_layout Standard
31021 scalebox{horizontal}[vertical]{box content}
31024 \begin_layout Standard
31025 Horizontal and vertical are the corresponding scaling factors.
31026 If no vertical scaling factor is given, the horizontal factor will also
31027 be used as vertical one.
31030 \begin_layout Standard
31037 creates for example a double size
31041 \begin_layout Plain Layout
31054 \begin_layout Plain Layout
31061 , compared to the document text size.
31064 \begin_layout Standard
31069 scalebox{2}[1]{Hello}
31071 in contrary distorts the
31075 \begin_layout Plain Layout
31088 \begin_layout Plain Layout
31098 \begin_layout Standard
31099 If a the scaling factor is negative, the box content will be mirrored.
31100 Therefore the command
31104 scalebox{-1}[1]{Hello}
31106 can be used to create mirror writing:
31110 \begin_layout Plain Layout
31123 \begin_layout Plain Layout
31133 \begin_layout Standard
31138 scalebox{1}[-1]{Hello}
31144 \begin_layout Plain Layout
31157 \begin_layout Plain Layout
31167 \begin_layout Standard
31172 scalebox{-1}[1]{box content}
31174 there exists the command
31175 \begin_inset Newline newline
31182 reflectbox{box content}
31187 \begin_layout Standard
31188 \begin_inset VSpace bigskip
31197 is used to scale the box to a defined width and height.
31198 The command scheme is:
31201 \begin_layout Standard
31206 resizebox{width}{height}{box content}
31209 \begin_layout Standard
31210 Is one of the two command arguments given as exclamation mark
31214 , the size is set so that the aspect ratio of the box content is kept.
31217 \begin_layout Standard
31222 resizebox{2cm}{1cm}{Hello}
31228 \begin_layout Plain Layout
31232 resizebox{2cm}{1cm}{
31241 \begin_layout Plain Layout
31249 \begin_inset Newline newline
31256 resizebox{2cm}{!}{Hello}
31262 \begin_layout Plain Layout
31275 \begin_layout Plain Layout
31285 \begin_layout Standard
31286 \begin_inset VSpace bigskip
31290 \begin_inset Note Greyedout
31293 \begin_layout Plain Layout
31310 are set to zero, no LaTeX-errors occur when exporting the document but
31311 the exported files can not or only partly be displayed.
31319 \begin_layout Standard
31320 \begin_inset VSpace bigskip
31326 \begin_layout Standard
31327 The boxes can be combined in any order.
31329 \begin_inset space \thinspace{}
31333 \begin_inset space \space{}
31337 \begin_inset Newline newline
31344 rotatebox[origin=c]{-45}{
31348 reflectbox{Hello}}}
31349 \begin_inset Newline newline
31357 \begin_layout Standard
31362 \begin_layout Plain Layout
31366 rotatebox[origin=c]{-45}{
31379 \begin_layout Plain Layout
31389 \begin_layout Standard
31391 Images, tables, and inline formulas are allowed as box content:
31394 \begin_layout Standard
31399 \begin_layout Plain Layout
31403 rotatebox[origin=c]{-30}{
31413 \begin_inset Graphics
31414 filename clipart/platypus.eps
31424 \begin_layout Plain Layout
31435 \begin_layout Plain Layout
31439 rotatebox[origin=c]{-45}{
31449 \begin_inset Tabular
31450 <lyxtabular version="3" rows="2" columns="2">
31452 <column alignment="center" valignment="top" width="0">
31453 <column alignment="center" valignment="top" width="0">
31455 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31458 \begin_layout Plain Layout
31464 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31467 \begin_layout Plain Layout
31475 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31478 \begin_layout Plain Layout
31484 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31487 \begin_layout Plain Layout
31502 \begin_layout Plain Layout
31513 \begin_layout Plain Layout
31517 rotatebox[origin=c]{-45}{
31527 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31534 \begin_layout Plain Layout
31544 \begin_layout Standard
31545 When the global formula style
31549 is used in the document
31553 \begin_layout Plain Layout
31555 \begin_inset Quotes eld
31559 \begin_inset Quotes erd
31562 is added to the document class options.
31567 , also display formulas can be scaled.
31570 \begin_layout Chapter
31571 External Document Parts
31575 \begin_layout Plain Layout
31576 External Document Parts
31584 \begin_layout Standard
31587 Insert\SpecialChar \menuseparator
31590 you can insert external material to your document.
31594 \begin_layout Description
31596 \begin_inset space ~
31599 Document Another LyX document; its content is directly inserted to your
31603 \begin_layout Description
31605 \begin_inset space ~
31608 Text A text document; every of its text lines is inserted to your document
31612 \begin_layout Description
31614 \begin_inset space ~
31618 \begin_inset space ~
31622 \begin_inset space ~
31625 Lines A text document; its text lines are inserted as they are.
31626 Empty text lines creates a new paragraph in your document.
31629 \begin_layout Description
31631 \begin_inset space ~
31634 Material Files in various formats.
31637 \begin_layout Description
31639 \begin_inset space ~
31642 Document LyX or LaTeX-documents.
31645 \begin_layout Section
31650 \begin_layout Plain Layout
31651 External Document Parts ! External Material
31659 \begin_layout Standard
31660 The external material feature allows you to insert files to your document
31661 without converting them previously to a format that can be read by the
31662 document output format because LyX takes care of needed conversions.
31663 This is similar to images that can be inserted in various image formats
31665 When you have enabled Instant Preview in LyX's preferences under
31668 \begin_inset space ~
31672 \begin_inset space ~
31675 feel\SpecialChar \menuseparator
31678 , the external material types Dia and Xfig is directly shown in LyX.
31681 \begin_layout Standard
31682 External material can be inserted via the
31686 dialog that is accessible with the menu
31688 Insert\SpecialChar \menuseparator
31689 File\SpecialChar \menuseparator
31691 \begin_inset space ~
31697 Currently the following file types (
31704 \begin_layout Description
31705 ChessDiagram This template supports chess position diagrams made with the
31709 \begin_inset CommandInset href
31712 target "http://en.wikipedia.org/wiki/XBoard"
31721 \begin_layout Description
31722 Date This inserts the date in the form
31727 This is a date inserted as external material:
31728 \begin_inset External
31735 \begin_inset space ~
31739 \begin_inset Note Note
31742 \begin_layout Plain Layout
31743 Remove the protected space when bug 4398 is fixed!
31749 \begin_inset Newline newline
31752 The date is not shown within LyX, only in the output.
31753 There are two other methods of inserting a date: Via menu
31755 Insert\SpecialChar \menuseparator
31758 and with the LaTeX command
31765 The different methods are compared in Table
31766 \begin_inset space ~
31770 \begin_inset CommandInset ref
31772 reference "tab:Comparison-of-the"
31779 \begin_layout Description
31780 Dia This template supports diagrams created with the program
31783 \begin_inset CommandInset href
31786 target "http://en.wikipedia.org/wiki/Dia_(software)"
31795 \begin_layout Description
31796 LilyPond This template is used for music notation typeset with the program
31797 \begin_inset Newline linebreak
31803 \begin_inset CommandInset href
31806 target "http://en.wikipedia.org/wiki/LilyPond"
31815 \begin_layout Description
31816 PDFPages With this template you can insert PDF documents to your document.
31817 To insert certain or all pages of a PDF, use the
31827 LaTeX and LyX options
31829 tab according to the template description in the dialog.
31834 option is given, only the first page of the PDF will be inserted.
31837 \begin_layout Description
31838 RasterImage This can be used for bitmap images.
31839 Nearly all popular image formats are supported.
31840 The image can be treated in the
31844 dialog like the images that are usually included via the
31848 dialog as described in section
31849 \begin_inset space ~
31853 \begin_inset CommandInset ref
31855 reference "sec:Graphics-Dialog"
31860 The difference is that only raster images are allowed, that means that
31861 PDF and EPS-images are not supported.
31864 \begin_layout Description
31865 XFig This template supports images created with the program
31868 \begin_inset CommandInset href
31871 target "http://en.wikipedia.org/wiki/Xfig"
31880 \begin_layout Standard
31881 \begin_inset Float table
31887 \begin_layout Plain Layout
31888 \begin_inset Caption
31890 \begin_layout Plain Layout
31891 \begin_inset CommandInset label
31893 name "tab:Comparison-of-the"
31897 Comparison of the date input methods.
31905 \begin_layout Plain Layout
31907 \begin_inset Tabular
31908 <lyxtabular version="3" rows="4" columns="4">
31910 <column alignment="center" valignment="top" width="0">
31911 <column alignment="center" valignment="top" width="0">
31912 <column alignment="center" valignment="top" width="0">
31913 <column alignment="center" valignment="top" width="0">
31915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31918 \begin_layout Plain Layout
31924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31927 \begin_layout Plain Layout
31930 External Material\SpecialChar \menuseparator
31936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31939 \begin_layout Plain Layout
31942 Insert\SpecialChar \menuseparator
31948 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31951 \begin_layout Plain Layout
31963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31966 \begin_layout Plain Layout
31972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31975 \begin_layout Plain Layout
31981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31984 \begin_layout Plain Layout
31990 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31993 \begin_layout Plain Layout
31994 as TeX-Code inset box
32001 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32004 \begin_layout Plain Layout
32010 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32013 \begin_layout Plain Layout
32019 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32022 \begin_layout Plain Layout
32028 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32031 \begin_layout Plain Layout
32039 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32042 \begin_layout Plain Layout
32048 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32051 \begin_layout Plain Layout
32057 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32060 \begin_layout Plain Layout
32066 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32069 \begin_layout Plain Layout
32088 \begin_layout Standard
32089 When you use the option
32101 dialog, only the path to the inserted file is shown in the output.
32102 \begin_inset Newline newline
32105 External material is displayed in LyX either as box like this:
32106 \begin_inset Graphics
32107 filename clipart/ExternalMaterialQt4.png
32109 scaleBeforeRotation
32113 or as image, depending on the option
32119 LaTeX and LyX options
32124 \begin_layout Standard
32131 manual explains how you can define your own templates.
32134 \begin_layout Section
32136 \begin_inset CommandInset label
32138 name "sec:Child-Documents"
32146 \begin_layout Plain Layout
32147 External Document Parts ! Child Documents
32156 \begin_layout Plain Layout
32165 \begin_layout Standard
32166 Child documents are used when you have a long document consisting of several
32167 larger parts or sections.
32168 For maintenance it is often useful and sometimes even required to split
32169 the document in several files that can be revised separately.
32170 The different documents are then the so called child documents and a master
32171 document connects them to print the full document or parts of it.
32172 A child documents inherits contents of its master, for example the LaTeX
32173 preamble, the bibliography, and labels for cross-references.
32176 \begin_layout Standard
32177 To be able to work on child documents without the need to open its master,
32178 specify in the child document the master in the menu
32180 Document\SpecialChar \menuseparator
32181 Settings\SpecialChar \menuseparator
32183 \begin_inset space ~
32189 This master document will then be used in the background by LyX when you
32190 edit the child document.
32193 \begin_layout Standard
32194 Included documents are displayed in LyX as a box like this:
32195 \begin_inset Graphics
32196 filename clipart/ChildDocumentQt4.png
32198 scaleBeforeRotation
32202 To include child documents to a master document use the menu
32204 Insert\SpecialChar \menuseparator
32205 File\SpecialChar \menuseparator
32207 \begin_inset space ~
32213 A dialog pops up where you can choose between four include methods:
32216 \begin_layout Description
32217 Include You can include LyX and LaTeX-documents.
32226 dialog, the included documents will be opened in LyX in a new file tab
32227 so that you can modify it.
32228 \begin_inset Newline newline
32234 \begin_layout Standard
32235 Here is a child document inserted using
32240 \begin_inset CommandInset include
32241 LatexCommand include
32242 filename "DummyDocument1.lyx"
32249 \begin_layout Standard
32250 The section numbering includes the sections of the included files in the
32251 order they are inserted in the master document.
32252 The included example document has for example a subsection that is numbered
32253 as subsection of this section.
32254 Labels of included documents can be referenced: Subsection
32255 \begin_inset space ~
32259 \begin_inset CommandInset ref
32261 reference "sub:External-Subsection-1"
32268 \begin_layout Standard
32269 The preamble of the child document is ignored, only the preamble of the
32270 master document is used.
32271 Branches in child documents will be ignored by the master document when
32272 the master document does not have a branch with the same name.
32273 Included documents are inserted starting on a new page and end with a page
32277 \begin_layout Standard
32278 In case you are only working on a certain chapter of a large document and
32279 want to save compiling time, you can put each included file into a branch.
32283 \begin_layout Plain Layout
32284 Branches are described in section
32297 By enabling/disabling branches you can decide what included files will
32298 appear in the output.
32301 \begin_layout Standard
32302 \begin_inset Note Greyedout
32305 \begin_layout Plain Layout
32310 Due to a bug in LyX the LaTeX command
32316 can currently not be used as alternative to decide what files should be
32325 \begin_layout Standard
32326 \begin_inset Note Greyedout
32329 \begin_layout Plain Layout
32334 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
32335 w the document in case that the child document uses another document class
32336 than the master document as this will lead to unexpected outputs.
32344 \begin_layout Description
32345 Input This method is very similar to the Include method.
32346 The differences are:
32350 \begin_layout Itemize
32351 Input files don't start with a new page and don't end with a page break.
32354 \begin_layout Itemize
32355 Input files can be previewed in LyX when
32358 \begin_inset space ~
32363 is enabled in LyX's preferences under
32366 \begin_inset space ~
32370 \begin_inset space ~
32373 feel\SpecialChar \menuseparator
32379 \begin_layout Itemize
32390 \begin_layout Standard
32391 Here is a child document inserted using
32396 \begin_inset CommandInset include
32398 filename "DummyDocument2.lyx"
32405 \begin_layout Description
32406 Verbatim With this method every text file can be included.
32407 The file is shown in the output with its source code, no command used in
32408 the text is invoked.
32409 You can use the option
32411 Mark spaces in output
32413 that displays the character
32414 \begin_inset Quotes eld
32421 \begin_layout Plain Layout
32431 \begin_inset Quotes erd
32434 for every space character in the source code.
32435 The difference to the method via the menu
32437 Insert\SpecialChar \menuseparator
32438 File\SpecialChar \menuseparator
32440 \begin_inset space ~
32445 is that the document content is not shown in LyX.
32448 \begin_layout Standard
32449 Here is a child document inserted as Verbatim:
32450 \begin_inset CommandInset include
32451 LatexCommand verbatiminput
32452 filename "DummyTextDocument.txt"
32457 \begin_inset VSpace bigskip
32460 Here is a child document inserted as Verbatim using the
32462 Mark spaces in output
32465 \begin_inset CommandInset include
32466 LatexCommand verbatiminput*
32467 filename "DummyTextDocument.txt"
32474 \begin_layout Standard
32475 \begin_inset VSpace bigskip
32481 \begin_layout Standard
32482 \begin_inset Note Greyedout
32485 \begin_layout Plain Layout
32490 As you can see in the examples above, the text of the documents included
32495 is not broken at the end of the document lines.
32503 \begin_layout Description
32504 Listings This type is described in chapter
32505 \begin_inset space ~
32509 \begin_inset CommandInset ref
32511 reference "cha:Program-Code-Listings"
32518 \begin_layout Standard
32519 \begin_inset Note Greyedout
32522 \begin_layout Plain Layout
32527 Including the same document twice in a document using different methods
32528 could cause LaTeX-problems.
32536 \begin_layout Chapter
32537 Program Code Listings
32538 \begin_inset CommandInset label
32540 name "cha:Program-Code-Listings"
32548 \begin_layout Plain Layout
32558 \begin_layout Plain Layout
32568 \begin_layout Plain Layout
32577 \begin_layout Standard
32578 To include and typeset program code you can use the
32582 inset that can be inserted via the menu
32584 Insert\SpecialChar \menuseparator
32596 \begin_layout Plain Layout
32597 LaTeX-packages ! listings
32602 provides a powerful and flexible way to insert program source code to your
32606 \begin_layout Standard
32607 Right-clicking on a listings inset opens the context menu containing where
32608 you can set the listings format.
32611 \begin_layout Standard
32612 By default, a listing starts a new paragraph in the output.
32613 The placement option
32616 \begin_inset space ~
32621 prints the listing inline like this:
32622 \begin_inset listings
32623 lstparams "language={C++}"
32627 \begin_layout Plain Layout
32635 \begin_inset Newline newline
32642 creates a listings float where you can specify the placement options
32643 \begin_inset Quotes eld
32651 \begin_inset Quotes erd
32655 \begin_inset Quotes eld
32663 \begin_inset Quotes erd
32667 \begin_inset Quotes eld
32675 \begin_inset Quotes erd
32679 \begin_inset Quotes eld
32687 \begin_inset Quotes erd
32690 corresponding to the float placement options described in section
32691 \begin_inset space ~
32695 \begin_inset CommandInset ref
32697 reference "sec:Float-Placement"
32702 The placement options can be mixed and are inserted without any separation,
32704 \begin_inset space \thinspace{}
32708 \begin_inset space \space{}
32712 \begin_inset Quotes eld
32720 \begin_inset Quotes erd
32725 \begin_inset Quotes eld
32729 \begin_inset Quotes erd
32732 has sometimes no effect, but you don't need to use the
32736 option in this case as also non-float listings can have captions and be
32740 \begin_layout Standard
32741 You can add captions to listings with the menu
32743 Insert\SpecialChar \menuseparator
32747 Listings can be referenced like floats: Listing
32748 \begin_inset space ~
32752 \begin_inset CommandInset ref
32754 reference "lst:Example-Listing"
32761 \begin_layout Standard
32762 \begin_inset listings
32763 lstparams "language=Python"
32767 \begin_layout Plain Layout
32769 \begin_inset Caption
32771 \begin_layout Plain Layout
32772 \begin_inset CommandInset label
32774 name "lst:Example-Listing"
32778 Example Listing float
32783 # Example listing float
32786 \begin_layout Plain Layout
32791 \begin_layout Plain Layout
32793 'this is a python function'
32796 \begin_layout Plain Layout
32806 \begin_layout Standard
32807 When you have set a programming language in the listings dialog, the keywords
32808 of this language will be recognized and specially typeset in the output.
32809 In the example listings the Python keyword
32810 \begin_inset Quotes eld
32814 \begin_inset Quotes erd
32817 is recognized and printed bold in the output.
32820 \begin_layout Standard
32821 \begin_inset Note Greyedout
32824 \begin_layout Plain Layout
32829 If you don't get bold keywords when using typewriter fonts, your
32833 font probably doesn't provide a bold shape.
32834 In this case select a different one in the menu
32836 Document\SpecialChar \menuseparator
32837 Settings\SpecialChar \menuseparator
32849 provide bold shapes.)
32857 \begin_layout Standard
32861 \begin_inset space ~
32866 of the listings dialog you can specify the line numbering style.
32867 You can insert a number to specify which lines are numbered to the field
32874 \begin_inset space \thinspace{}
32878 \begin_inset space \space{}
32882 \begin_inset Quotes eld
32886 \begin_inset Quotes erd
32889 , only every 3rd line will be numbered.
32892 \begin_layout Standard
32893 You can furthermore specify a range of lines, only these will then appear
32897 Extended character table
32899 should be used when you use national characters like the German umlauts
32901 \begin_inset Newline newline
32904 Here is an example listing with left line numbering, step
32905 \begin_inset Quotes eld
32909 \begin_inset Quotes erd
32913 \begin_inset Quotes eld
32917 \begin_inset Quotes erd
32921 \begin_inset Quotes eld
32924 Extended character table
32925 \begin_inset Quotes erd
32929 \begin_inset Quotes eld
32933 \begin_inset space ~
32937 \begin_inset space ~
32941 \begin_inset Quotes erd
32945 \begin_inset space \thinspace{}
32949 \begin_inset space \thinspace{}
32955 \begin_layout Standard
32956 \begin_inset listings
32957 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
32961 \begin_layout Plain Layout
32966 \begin_layout Plain Layout
32968 'this is a python function'
32971 \begin_layout Plain Layout
32976 \begin_layout Plain Layout
32981 \begin_layout Plain Layout
32983 'This is a German word: Tschüß'
32986 \begin_layout Plain Layout
32991 \begin_layout Plain Layout
32996 \begin_layout Plain Layout
32998 'this is a python function'
33001 \begin_layout Plain Layout
33011 \begin_layout Standard
33012 When you have tabulators in your listing, you can specify the number of
33013 characters that are spanned by a tabulator in the field
33016 \begin_inset space ~
33024 \begin_layout Standard
33025 \begin_inset Note Greyedout
33028 \begin_layout Plain Layout
33033 Due to a bug in the
33037 package the line numbering is shifted by a line by every previous listing.
33038 That's the reason why the lines 2 and 5 are numbered in the above listing
33039 and not the lines 3 and 6.
33047 \begin_layout Standard
33048 \begin_inset VSpace bigskip
33054 \begin_layout Standard
33055 It is also possible to print lines from a file as listing.
33056 To do this, use the menu
33058 Insert\SpecialChar \menuseparator
33059 File\SpecialChar \menuseparator
33062 and choose the type
33070 \begin_layout Plain Layout
33071 The other child document types are described in section
33072 \begin_inset space ~
33076 \begin_inset CommandInset ref
33078 reference "sec:Child-Documents"
33087 In the child document dialog you can specify the listing parameters in
33089 To show a list of all available parameters, type in a question mark
33090 \begin_inset Quotes eld
33094 \begin_inset Quotes erd
33100 \begin_layout Standard
33101 To reference child document listings, write a label text into the corresponding
33102 field of the child document dialog.
33103 The label can then be referenced using the menu
33105 Insert\SpecialChar \menuseparator
33111 \begin_layout Standard
33113 \begin_inset space ~
33117 \begin_inset CommandInset ref
33119 reference "lst:file-listing"
33123 is an example for a listing of a file; there the lines 10
33124 \begin_inset space \thinspace{}
33128 \begin_inset space \thinspace{}
33131 15 of this LyX file are listed.
33134 \begin_layout Standard
33135 \begin_inset CommandInset include
33136 LatexCommand lstinputlisting
33137 filename "EmbeddedObjects.lyx"
33138 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
33145 \begin_layout Standard
33146 \begin_inset VSpace bigskip
33152 \begin_layout Standard
33153 Global listings settings can be set in the
33155 Document\SpecialChar \menuseparator
33156 Settings\SpecialChar \menuseparator
33160 To get there a list of available options, type in a question mark
33161 \begin_inset Quotes eld
33165 \begin_inset Quotes erd
33171 \begin_inset space ~
33179 \begin_layout Standard
33180 For more information about the
33184 package, we refer to its documentation
33185 \begin_inset CommandInset citation
33194 \begin_layout Standard
33195 \begin_inset Newpage newpage
33201 \begin_layout Chapter
33203 Units available in LyX
33207 \begin_layout Plain Layout
33214 \begin_inset CommandInset label
33216 name "cha:Units-available-in"
33223 \begin_layout Standard
33224 To understand the units described in this documentation, Table
33225 \begin_inset space ~
33229 \begin_inset CommandInset ref
33231 reference "tab:Units"
33235 explains all units available in LyX.
33238 \begin_layout Standard
33239 \begin_inset Float table
33245 \begin_layout Plain Layout
33246 \begin_inset Caption
33248 \begin_layout Plain Layout
33249 \begin_inset CommandInset label
33263 \begin_layout Plain Layout
33264 \begin_inset VSpace medskip
33270 \begin_layout Plain Layout
33272 \begin_inset Tabular
33273 <lyxtabular version="3" rows="20" columns="2">
33275 <column alignment="center" valignment="top" width="0">
33276 <column alignment="center" valignment="top" width="0">
33278 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33281 \begin_layout Plain Layout
33287 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33290 \begin_layout Plain Layout
33298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33301 \begin_layout Plain Layout
33307 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33310 \begin_layout Plain Layout
33318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33321 \begin_layout Plain Layout
33327 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33330 \begin_layout Plain Layout
33338 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33341 \begin_layout Plain Layout
33347 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33350 \begin_layout Plain Layout
33358 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33361 \begin_layout Plain Layout
33367 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33370 \begin_layout Plain Layout
33372 \begin_inset space \thinspace{}
33376 \begin_inset space \thinspace{}
33386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33389 \begin_layout Plain Layout
33395 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33398 \begin_layout Plain Layout
33400 \begin_inset space \thinspace{}
33404 \begin_inset space \thinspace{}
33414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33417 \begin_layout Plain Layout
33423 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33426 \begin_layout Plain Layout
33427 scaled point (65536
33428 \begin_inset space \thinspace{}
33432 \begin_inset space \thinspace{}
33442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33445 \begin_layout Plain Layout
33451 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33454 \begin_layout Plain Layout
33456 \begin_inset space \thinspace{}
33460 \begin_inset space \thinspace{}
33470 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33473 \begin_layout Plain Layout
33479 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33482 \begin_layout Plain Layout
33484 \begin_inset space \thinspace{}
33488 \begin_inset Formula $\approx$
33492 \begin_inset space \thinspace{}
33502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33505 \begin_layout Plain Layout
33511 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33514 \begin_layout Plain Layout
33516 \begin_inset space \thinspace{}
33520 \begin_inset space \thinspace{}
33530 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33533 \begin_layout Plain Layout
33539 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33542 \begin_layout Plain Layout
33543 % of original image width
33550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33553 \begin_layout Plain Layout
33559 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33562 \begin_layout Plain Layout
33570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33573 \begin_layout Plain Layout
33579 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33582 \begin_layout Plain Layout
33590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33593 \begin_layout Plain Layout
33599 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33602 \begin_layout Plain Layout
33610 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33613 \begin_layout Plain Layout
33619 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33622 \begin_layout Plain Layout
33630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33633 \begin_layout Plain Layout
33639 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33642 \begin_layout Plain Layout
33650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33653 \begin_layout Plain Layout
33659 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33662 \begin_layout Plain Layout
33670 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33673 \begin_layout Plain Layout
33679 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33682 \begin_layout Plain Layout
33694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33697 \begin_layout Plain Layout
33703 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33706 \begin_layout Plain Layout
33718 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33721 \begin_layout Plain Layout
33727 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33730 \begin_layout Plain Layout
33732 \begin_inset space \thinspace{}
33736 \begin_inset space \thinspace{}
33757 \begin_layout Chapter
33758 Output File Formats with Graphics
33759 \begin_inset CommandInset label
33761 name "cha:Output-File-Formats"
33768 \begin_layout Section
33773 \begin_layout Plain Layout
33783 \begin_layout Plain Layout
33788 \begin_layout Plain Layout
33799 \begin_layout Plain Layout
33814 \begin_layout Standard
33815 This file type has the extension
33816 \begin_inset Quotes eld
33824 \begin_inset Quotes erd
33829 \begin_inset Quotes eld
33833 \begin_inset Quotes erd
33836 (DVI), because it is completely portable; you can move them from one machine
33837 to another without needing to do any sort of conversion.
33838 At the time when this file-format was developed, this was no matter of
33840 DVIs are used for quick previews and as pre-stage for other output formats,
33844 \begin_layout Standard
33845 \begin_inset Note Greyedout
33848 \begin_layout Plain Layout
33853 DVI-files doesn't contain images, they will only be a linked.
33858 So don't forget this, if you move your
33862 file to another computer.
33863 This property can also slow down your computer when you view the DVI.
33864 Because the DVI-viewer has to convert the image in the background to make
33865 it visible when you scroll in the DVI.
33866 So we recommend to use PDF for files with many images.
33869 \begin_layout Standard
33870 You can export your document to DVI by using the menu
33872 File\SpecialChar \menuseparator
33873 Export\SpecialChar \menuseparator
33877 You can view your document as DVI via the
33881 menu or by using the toolbar button
33882 \begin_inset Graphics
33883 filename ../images/buffer-view_dvi.png
33885 scaleBeforeRotation
33892 \begin_layout Section
33894 \begin_inset CommandInset label
33896 name "sec:PostScript"
33904 \begin_layout Plain Layout
33905 File Formats ! PostScript
33914 \begin_layout Plain Layout
33919 \begin_layout Plain Layout
33930 \begin_layout Plain Layout
33945 \begin_layout Standard
33946 This file type has the extension
33947 \begin_inset Quotes eld
33955 \begin_inset Quotes erd
33959 PostScript was developed by the company
33963 as printer language.
33964 The file contains therefore commands that the printer uses to print the
33966 PostScript can be seen as
33967 \begin_inset Quotes eld
33970 programming language
33971 \begin_inset Quotes erd
33974 ; you can calculate with it and draw diagrams and images
33978 \begin_layout Plain Layout
33979 If you are interested to learn more about this, have a look at the LaTeX-package
33985 \begin_inset CommandInset citation
33997 Due to this ability, the files are often bigger than PDFs.
34000 \begin_layout Standard
34001 PostScript can only contain images in the format
34002 \begin_inset Quotes eld
34005 Encapsulated PostScript
34006 \begin_inset Quotes erd
34009 (EPS, file extension
34010 \begin_inset Quotes eld
34018 \begin_inset Quotes erd
34022 As LyX allows you to use any known image format in your document, it has
34023 to convert images in the background to EPS.
34024 If you have e.g 50 images in your document, LyX has to do 50 conversions
34025 whenever you view or export your document.
34026 This will slow down your work flow with LyX drastically.
34027 So if you plan to use PostScript, you can insert your images directly as
34028 EPS to avoid this problem.
34031 \begin_layout Standard
34032 You can export your document to PostScript using the menu
34034 File\SpecialChar \menuseparator
34035 Export\SpecialChar \menuseparator
34039 You can view your document as PostScript via the
34043 menu or by using the toolbar button
34044 \begin_inset Graphics
34045 filename ../images/buffer-view_ps.png
34047 scaleBeforeRotation
34054 \begin_layout Section
34059 \begin_layout Plain Layout
34069 \begin_layout Plain Layout
34078 \begin_layout Standard
34079 This file type has the extension
34080 \begin_inset Quotes eld
34088 \begin_inset Quotes erd
34093 \begin_inset Quotes eld
34096 Portable Document Format
34097 \begin_inset Quotes erd
34100 (PDF) is developed by
34104 as derivative from PostScript.
34105 It is more compressed and it uses much less commands than PostScript.
34107 \begin_inset Quotes eld
34111 \begin_inset Quotes erd
34114 implies, it can be processed at any computer system and the printed output
34115 looks exactly the same.
34118 \begin_layout Standard
34119 PDF can contain images in its own PDF format, in the format
34120 \begin_inset Quotes eld
34123 Joint Photographic Experts Group
34124 \begin_inset Quotes erd
34127 (JPG, file extension
34128 \begin_inset Quotes eld
34136 \begin_inset Quotes erd
34140 \begin_inset Quotes eld
34148 \begin_inset Quotes erd
34151 ), and in the format
34152 \begin_inset Quotes eld
34155 Portable Network Graphics
34156 \begin_inset Quotes erd
34159 (PNG, file extension
34160 \begin_inset Quotes eld
34168 \begin_inset Quotes erd
34172 Nevertheless you can use any other image format, because LyX converts them
34173 in the background to one of these formats.
34174 But as described in the section about PostScript, the image conversion
34175 will slow down your work flow.
34176 So it is recommended to use images in one of the three mentioned formats.
34179 \begin_layout Standard
34180 You can export your document to PDF via the menu
34182 File\SpecialChar \menuseparator
34185 in three different ways:
34188 \begin_layout Description
34190 \begin_inset space ~
34193 (ps2pdf) This uses the program
34197 that creates a PDF from a PostScript-version of your file.
34198 The PostScript-version is produced by the program
34202 which uses a DVI-version as intermediate step.
34203 So this export variant consist of three conversions.
34206 \begin_layout Description
34208 \begin_inset space ~
34211 (dvipdfm) This uses the program
34215 that converts your file in the background to DVI and in a second step to
34219 \begin_layout Description
34221 \begin_inset space ~
34224 (pdflatex) This uses the program
34228 that converts your file directly to PDF.
34231 \begin_layout Standard
34232 It is recommended to use
34235 \begin_inset space ~
34244 supports all features of actual PDF-versions, is quick and works stable
34250 is not under development and therefore a bit outdated.
34253 \begin_layout Standard
34254 You can view your document as PDF via the
34258 menu or by using the toolbar button
34259 \begin_inset Graphics
34260 filename ../images/buffer-view_pdf2.png
34262 scaleBeforeRotation
34273 \begin_inset space ~
34281 \begin_layout Chapter
34282 Explanation of Equation
34283 \begin_inset space ~
34287 \begin_inset CommandInset ref
34294 \begin_inset CommandInset label
34296 name "cha:Explanation-of-Equation"
34303 \begin_layout Standard
34309 \begin_inset Formula $W_{\mathrm{tot\, n}}$
34312 can be calculated to
34315 \begin_layout Standard
34316 \begin_inset Formula \begin{equation}
34317 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}
34324 \begin_layout Standard
34326 \begin_inset Formula $W_{g\, n}$
34329 is the given width of all cells.
34336 is the LaTeX-length between the cell text and the cell border, its default
34338 \begin_inset space \thinspace{}
34348 is the thickness of the cell border line, the default is 0.4
34349 \begin_inset space \thinspace{}
34355 \begin_layout Standard
34357 \begin_inset space ~
34361 \begin_inset CommandInset ref
34363 reference "eq:Wtot_n"
34367 , the total width of a multicolumn
34368 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
34374 \begin_layout Standard
34375 \begin_inset Formula \begin{equation}
34376 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
34383 \begin_layout Standard
34384 By setting equation
34385 \begin_inset space ~
34389 \begin_inset CommandInset ref
34391 reference "eq:Wtot_n"
34396 \begin_inset CommandInset ref
34398 reference "eq:Wtot_mult"
34402 equal we can calculate the needed given width
34403 \begin_inset Formula $W_{g\, n}$
34410 columns are spanned, so that each column has a total width of
34411 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
34417 \begin_layout Standard
34418 \begin_inset Formula \begin{equation}
34419 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
34426 \begin_layout Bibliography
34427 \begin_inset CommandInset bibitem
34428 LatexCommand bibitem
34429 key "latexcompanion"
34433 Frank Mittelbach and Michel Goossens:
34435 The LaTeX Companion Second Edition.
34438 Addison-Wesley, 2004
34441 \begin_layout Bibliography
34442 \begin_inset CommandInset bibitem
34443 LatexCommand bibitem
34448 Helmut Kopka and Patrick W.
34451 A Guide to LaTeX Fourth Edition.
34454 Addison-Wesley, 2003
34457 \begin_layout Bibliography
34458 \begin_inset CommandInset bibitem
34459 LatexCommand bibitem
34466 LaTeX: A Document Preparation System.
34469 Addison-Wesley, second edition, 1994
34472 \begin_layout Bibliography
34473 \begin_inset CommandInset bibitem
34474 LatexCommand bibitem
34479 Documentation of the LaTeX-package
34482 \begin_inset CommandInset href
34485 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
34495 \begin_layout Plain Layout
34496 LaTeX-packages ! booktabs
34504 \begin_layout Bibliography
34505 \begin_inset CommandInset bibitem
34506 LatexCommand bibitem
34511 Documentation of the LaTeX-package
34514 \begin_inset CommandInset href
34517 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
34527 \begin_layout Plain Layout
34528 LaTeX-packages ! caption
34536 \begin_layout Bibliography
34537 \begin_inset CommandInset bibitem
34538 LatexCommand bibitem
34543 Documentation of the LaTeX-package
34546 \begin_inset CommandInset href
34549 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
34559 \begin_layout Plain Layout
34560 LaTeX-packages ! endfloat
34568 \begin_layout Bibliography
34569 \begin_inset CommandInset bibitem
34570 LatexCommand bibitem
34575 Documentation of the LaTeX-package
34578 \begin_inset CommandInset href
34581 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
34591 \begin_layout Plain Layout
34592 LaTeX-packages ! wrapfig
34596 \begin_layout Plain Layout
34613 \begin_layout Bibliography
34614 \begin_inset CommandInset bibitem
34615 LatexCommand bibitem
34620 Documentation of the LaTeX-package
34623 \begin_inset CommandInset href
34626 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
34636 \begin_layout Plain Layout
34637 LaTeX-packages ! footmisc
34645 \begin_layout Bibliography
34646 \begin_inset CommandInset bibitem
34647 LatexCommand bibitem
34652 Documentation of the LaTeX-package
34655 \begin_inset CommandInset href
34658 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
34668 \begin_layout Plain Layout
34669 LaTeX-packages ! hyperref
34677 \begin_layout Bibliography
34678 \begin_inset CommandInset bibitem
34679 LatexCommand bibitem
34684 Documentation of the LaTeX-package
34687 \begin_inset CommandInset href
34690 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
34700 \begin_layout Plain Layout
34701 LaTeX-packages ! hyperref
34709 \begin_layout Bibliography
34710 \begin_inset CommandInset bibitem
34711 LatexCommand bibitem
34716 Documentation of the LaTeX-package
34719 \begin_inset CommandInset href
34722 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
34732 \begin_layout Plain Layout
34733 LaTeX-packages ! KOMA-Script
34741 \begin_layout Bibliography
34742 \begin_inset CommandInset bibitem
34743 LatexCommand bibitem
34748 Documentation of the LaTeX-package
34751 \begin_inset CommandInset href
34754 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
34764 \begin_layout Plain Layout
34765 LaTeX-packages ! listings
34773 \begin_layout Bibliography
34774 \begin_inset CommandInset bibitem
34775 LatexCommand bibitem
34780 Documentation of the LaTeX-package
34783 \begin_inset CommandInset href
34786 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
34796 \begin_layout Plain Layout
34797 LaTeX-packages ! marginnote
34805 \begin_layout Bibliography
34806 \begin_inset CommandInset bibitem
34807 LatexCommand bibitem
34812 Web page of the LaTeX-package
34815 \begin_inset CommandInset href
34818 target "http://tug.org/PSTricks/"
34828 \begin_layout Plain Layout
34829 LaTeX-packages ! PSTricks
34837 \begin_layout Bibliography
34838 \begin_inset CommandInset bibitem
34839 LatexCommand bibitem
34844 Documentation of the LaTeX-package
34847 \begin_inset CommandInset href
34850 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
34860 \begin_layout Plain Layout
34861 LaTeX-packages ! sidecap
34869 \begin_layout Bibliography
34870 \begin_inset CommandInset bibitem
34871 LatexCommand bibitem
34876 Documentation of the LaTeX-package
34879 \begin_inset CommandInset href
34882 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
34892 \begin_layout Plain Layout
34893 LaTeX-packages ! prettyref
34901 \begin_layout Bibliography
34902 \begin_inset CommandInset bibitem
34903 LatexCommand bibitem
34909 \begin_inset CommandInset href
34912 target "http://wiki.lyx.org/LyX/NewInLyX16"
34916 about new features in
34923 \begin_layout Standard
34924 \begin_inset CommandInset index_print
34925 LatexCommand printindex
34932 \begin_layout Standard
34933 \begin_inset FloatList figure
34940 \begin_layout Standard
34941 \begin_inset FloatList table
34948 \begin_layout Standard
34949 \begin_inset FloatList algorithm