1 #LyX 1.6.6svn created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
38 \newcommand{\TabBesBeg}{%
40 \let\MyEndtable\endtable
41 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
43 \newcommand{\TabBesEnd}{%
45 \let\endtable\MyEndtable}
47 \newcommand{\FigBesBeg}{%
49 \let\MyEndfigure\endfigure
50 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
52 \newcommand{\FigBesEnd}{%
54 \let\endfigure\MyEndfigure}
56 % enables calculation of values,
59 % provides special table cell alignments
62 % increase the bottom float placement fraction
63 \renewcommand{\bottomfraction}{0.5}
65 % avoids that floats are placed before their
66 % corresponding section starts
67 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
69 % speed up the longtable calculation
70 \setcounter{LTchunksize}{100}
72 % used for scaled and rotated boxes
73 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
75 % used for colored tables
76 \@ifundefined{textcolor}
77 {\usepackage{color}}{}
78 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
79 \definecolor{lightgrey}{gray}{0.8}
81 % check for package colortbl
82 % used for colored table cells
84 \IfFileExists{colortbl.sty}
85 {\usepackage{colortbl}
86 \setboolean{colortbl}{true}}
87 {\setboolean{colortbl}{false}}
91 %\renewcommand{\multirowsetup}{\centering}
93 % used for book-style tables
96 % used to have extra space in table cells
97 \@ifundefined{extrarowheight}
98 {\usepackage{array}}{}
99 \setlength{\extrarowheight}{2pt}
101 % used for customized tables
104 {>{\centering\hspace{0pt}}m{#1}}
107 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
110 {>{\columncolor{#1}\hspace{0pt}}c}
112 \newcolumntype{V}{!{\vrule width 1.5pt}}
114 \newcolumntype{W}{!{\color{green}\vline}}
117 % insert additional vertical space of
118 % 1.5 mm between footnotes
120 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
122 % number algorithm floats within chapters
123 \numberwithin{algorithm}{chapter}
125 % redefine the greyed out note
126 \renewenvironment{lyxgreyedout}
127 {\textcolor{blue}\bgroup}{\egroup}
129 % ------------------------------------
130 % used to check for needed LaTeX packages
133 % check for package arydshln
134 % used for tables with dashed lines
135 \newboolean{arydshln}
136 \IfFileExists{arydshln.sty}
137 {\usepackage{arydshln}
138 \setboolean{arydshln}{true}}
139 {\setboolean{arydshln}{false}}
141 % check for package marginnote
142 % used for margin notes
143 \newboolean{marginnote}
144 \IfFileExists{marginnote.sty}
145 {\usepackage{marginnote}
146 \let\marginpar\marginnote
147 \setboolean{marginnote}{true}}
148 {\setboolean{marginnote}{false}}
150 % check for package sidecap
151 % used for captions on the side
153 \IfFileExists{sidecap.sty}
154 {\usepackage{sidecap}
155 \setboolean{sidecap}{true}}
156 {\setboolean{sidecap}{false}}
158 % redefine the \LyX macro for PDF bookmarks
159 \def\LyX{\texorpdfstring{%
160 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
163 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
164 \use_default_options false
169 \font_typewriter default
170 \font_default_family default
180 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
181 \pdf_author "LyX Team, Uwe Stöhr"
182 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
183 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
185 \pdf_bookmarksnumbered true
186 \pdf_bookmarksopen true
187 \pdf_bookmarksopenlevel 1
188 \pdf_breaklinks false
192 \pdf_pdfusetitle false
193 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
200 \paperorientation portrait
203 \paragraph_separation skip
205 \quotes_language english
208 \paperpagestyle default
212 \tracking_changes true
213 \output_changes false
214 \author "Vincent" vfr@lyx.org
220 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
229 \begin_layout Plain Layout
231 If you have comments or error corrections, please send them to the LyX Documenta
233 \begin_inset CommandInset href
235 name "lyx-docs@lists.lyx.org"
236 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
247 \begin_inset Note Note
250 \begin_layout Plain Layout
257 \begin_inset Newline newline
261 \begin_inset Newline newline
269 \begin_layout Standard
270 \begin_inset CommandInset toc
271 LatexCommand tableofcontents
278 \begin_layout Standard
279 \begin_inset Note Note
282 \begin_layout Plain Layout
283 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
301 If they are not installed you can export the document anyway but the sections
302 where the packages are required won't appear in the output.
305 \begin_layout Plain Layout
306 The latest PDF-version of this document can be found here:
307 \begin_inset Newline newline
312 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
320 \begin_layout Chapter
325 \begin_layout Plain Layout
335 \begin_layout Plain Layout
340 \begin_layout Plain Layout
351 \begin_layout Plain Layout
366 \begin_layout Section
371 \begin_layout Plain Layout
372 Figures ! Graphics Dialog
378 \begin_inset CommandInset label
380 name "sec:Graphics-Dialog"
387 \begin_layout Standard
388 To insert an image into your document, place the cursor at the text position
389 you want and click on the toolbar icon
390 \begin_inset Graphics
391 filename ../images/dialog-show-new-inset_graphics.png
399 Insert\SpecialChar \menuseparator
403 Then a dialog will appear to choose the file to load.
404 The image will appear in the output exactly at the position where it is
408 \begin_layout Standard
409 The graphics dialog can be called at any time by clicking on an image.
410 This dialog has three tabs:
413 \begin_layout Description
418 Here you can choose an image file and adjust its appearance in the output.
419 The available units for the image size are explained in appendix
424 \begin_inset CommandInset ref
426 reference "cha:Units-available-in"
431 \begin_inset Newline newline
438 \begin_layout Plain Layout
444 You can rotate images counter-clockwise by setting a rotation angle and
446 The image will also be rotated inside LyX.
447 \begin_inset Newline newline
454 \begin_layout Plain Layout
460 Images can be scaled by using a percentage value or by setting the width
461 and height explicitly.
462 If you set only the width or only the height, the other size will be determined
464 If you set both, then the image will be transformed to the given size,
465 possibly distorting it.
466 To prevent the image from distortion, use the option
468 Maintain aspect ratio
471 The image will then be scaled so that its width and height don't exceed
472 the specified dimensions.
473 \begin_inset Newline newline
476 Images can be opened in a program of your choice by right-clicking on it
485 in the appearing context menu.
486 The program can be set for every image format in the file format settings
487 in LyX's preferences.
490 \begin_layout Description
495 Alternatively to the usage of scaling units it is possible to set image
496 coordinates to adjust the height and width of the image in the output.
497 The coordinates can also be calculated automatically by pressing the button
527 will only print the image region within the given coordinates.
528 Normally you don't need to take care about image coordinates and can ignore
532 \begin_layout Description
549 In this tab you can modify the appearance of the image within LyX and LaTeX
550 experts can specify additional LaTeX options.
551 \begin_inset Newline newline
562 makes the image appear in the output only as a frame with the size of the
564 \begin_inset Newline newline
583 option only affects zipped EPS-graphics, e.
584 \begin_inset space \thinspace{}
588 \begin_inset space \space{}
596 When the option is used the images will not be unzipped on export, since
597 LaTeX can handle them as they are.
598 \begin_inset Newline newline
601 Zipped EPS-graphics are useful to save disk space when you choose PostScript
602 as output format, see appendix
607 \begin_inset CommandInset ref
609 reference "sec:PostScript"
614 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
616 \begin_inset Newline newline
624 \begin_inset Newline newline
629 zgrep %%Bounding x.eps.gz > x.eps.bb
632 \begin_inset Newline newline
635 The second command creates the bounding box file
636 \begin_inset Quotes eld
640 \begin_inset Quotes erd
643 that is needed by LaTeX for zipped graphics.
644 \begin_inset Newline newline
659 allows you define or join an image settings group.
663 \begin_layout Plain Layout
664 Figures ! Settings grouping
669 Images within such a group share their settings, so adjusting one image
670 of the group automatically also adjusts all other images of the group in
672 So you can for example change the size for a bunch of images without the
673 need to manually change each of them.
674 Joining an existing group can also be done using the context menu of the
675 image by checking the name of the desired group.
678 \begin_layout Standard
679 \begin_inset VSpace bigskip
685 \begin_layout Standard
686 This is an example image in EPS format
690 \begin_layout Plain Layout
691 Image formats are explained in section
696 \begin_inset CommandInset ref
698 reference "sec:Image-Formats"
707 within a separate, horizontally centered paragraph:
710 \begin_layout Standard
712 \begin_inset Graphics
713 filename clipart/mobius.eps
723 \begin_layout Standard
724 This is the same image like the one above but in draft mode:
727 \begin_layout Standard
729 \begin_inset Graphics
730 filename clipart/mobius.eps
741 \begin_layout Standard
742 \begin_inset Newpage newpage
748 \begin_layout Section
750 \begin_inset CommandInset label
752 name "sec:Figure-Floats"
760 \begin_layout Plain Layout
770 \begin_layout Plain Layout
779 \begin_layout Standard
780 For general explanations about floats, have a look at section
785 \begin_inset CommandInset ref
787 reference "sec:FloatIntroduction"
794 \begin_layout Standard
796 \begin_inset Graphics
797 filename ../images/float-insert_figure.png
805 Insert\SpecialChar \menuseparator
806 Float\SpecialChar \menuseparator
809 inserts a float with a caption that has the label
810 \begin_inset Quotes eld
818 \begin_inset Quotes erd
821 (# is the actual number).
822 You can insert the image above the caption, like in Figure
827 \begin_inset CommandInset ref
829 reference "fig:kill-plat"
833 or below the caption, like in Figure
838 \begin_inset CommandInset ref
840 reference "fig:escher"
845 More about the caption placement is described in section
850 \begin_inset CommandInset ref
852 reference "sec:Caption-Placement"
859 \begin_layout Standard
860 \begin_inset Float figure
865 \begin_layout Plain Layout
867 \begin_inset Graphics
868 filename clipart/platypus.eps
878 \begin_layout Plain Layout
881 \begin_layout Plain Layout
882 \begin_inset CommandInset label
888 A severely distorted platypus in a float.
901 \begin_layout Standard
902 \begin_inset Float figure
907 \begin_layout Plain Layout
910 \begin_layout Plain Layout
911 \begin_inset CommandInset label
926 \begin_layout Plain Layout
928 \begin_inset Graphics
929 filename clipart/escher-lsd.eps
944 \begin_layout Standard
948 \begin_layout Plain Layout
949 References ! to Figures
959 \begin_inset CommandInset ref
961 reference "fig:kill-plat"
966 \begin_inset CommandInset ref
968 reference "fig:escher"
972 are examples of referenced figures.
973 Figures can be referenced in the text by referencing their label.
974 To do this insert a label in the caption using the menu
976 Insert\SpecialChar \menuseparator
979 or the toolbar button
980 \begin_inset Graphics
981 filename ../images/label-insert.png
988 You can now refer to the label using the menu
990 Insert\SpecialChar \menuseparator
997 or the toolbar button
998 \begin_inset Graphics
999 filename ../images/dialog-show-new-inset_ref.png
1006 It is important to use references to floats, rather than using vague references
1008 \begin_inset Quotes eld
1012 \begin_inset Quotes erd
1015 , because as LaTeX will reposition the floats in the final document, it
1017 \begin_inset Quotes eld
1021 \begin_inset Quotes erd
1025 \begin_inset Newline newline
1028 Referencing is explained in detail in section
1029 \begin_inset space ~
1033 \begin_inset CommandInset ref
1035 reference "sec:Referencing-Floats"
1042 \begin_layout Standard
1043 Normally only one image is inserted to a figure float, but sometimes you
1044 might want to use two images with separate subcaptions.
1045 This can be done by inserting image floats into existing image floats.
1046 Note that only the main caption of the float is added to the List of Figures.
1048 \begin_inset space ~
1052 \begin_inset CommandInset ref
1054 reference "fig:Two-distorted-images"
1058 is an example of a figure float with two images set side by side.
1059 You can also set the images one below the other.
1061 \begin_inset space ~
1065 \begin_inset CommandInset ref
1067 reference "fig:Undefinable-structure"
1072 \begin_inset CommandInset ref
1074 reference "fig:A-Platypus"
1081 \begin_layout Standard
1082 \begin_inset Float figure
1087 \begin_layout Plain Layout
1088 \begin_inset space \hfill{}
1092 \begin_inset Float figure
1097 \begin_layout Plain Layout
1098 \begin_inset Caption
1100 \begin_layout Plain Layout
1101 \begin_inset CommandInset label
1103 name "fig:Undefinable-structure"
1107 Undefinable structure.
1115 \begin_layout Plain Layout
1116 \begin_inset Graphics
1117 filename clipart/escher-lsd.eps
1130 \begin_inset space \hfill{}
1134 \begin_inset Float figure
1139 \begin_layout Plain Layout
1140 \begin_inset Caption
1142 \begin_layout Plain Layout
1143 \begin_inset CommandInset label
1145 name "fig:A-Platypus"
1157 \begin_layout Plain Layout
1158 \begin_inset Graphics
1159 filename clipart/platypus.eps
1172 \begin_inset space \hfill{}
1178 \begin_layout Plain Layout
1179 \begin_inset Caption
1181 \begin_layout Plain Layout
1182 \begin_inset CommandInset label
1184 name "fig:Two-distorted-images"
1188 Two distorted images.
1189 Both images are in the image settings group named
1190 \begin_inset Quotes eld
1194 \begin_inset Quotes erd
1210 \begin_layout Standard
1211 \begin_inset Newpage newpage
1217 \begin_layout Section
1219 \begin_inset CommandInset label
1221 name "sec:Image-Formats"
1229 \begin_layout Plain Layout
1239 \begin_layout Plain Layout
1240 Figures ! Image Formats
1248 \begin_layout Standard
1249 You can insert images in any known file format.
1250 But as explained in appendix
1251 \begin_inset space ~
1255 \begin_inset CommandInset ref
1257 reference "cha:Output-File-Formats"
1261 , every output document format allows only a few image formats.
1262 LyX uses therefore the program
1266 in the background to convert the images to the right format.
1267 To increase your work flow by avoiding these conversions in the background,
1268 you can use only the image formats that can directly be embedded in the
1270 The output file formats are explained in appendix
1271 \begin_inset space ~
1275 \begin_inset CommandInset ref
1277 reference "cha:Output-File-Formats"
1284 \begin_layout Standard
1285 Similar to fonts there are two types of image formats:
1288 \begin_layout Description
1290 \begin_inset space ~
1293 images consist of pixel values, often in a compressed form.
1294 They are therefore not fully scalable and look pixeled in large zooms.
1295 Well-known bitmap image formats are
1296 \begin_inset Quotes eld
1299 Graphics Interchange Format
1300 \begin_inset Quotes erd
1303 (GIF, file extension
1304 \begin_inset Quotes eld
1312 \begin_inset Quotes erd
1319 \begin_layout Plain Layout
1324 \begin_layout Plain Layout
1335 \begin_layout Plain Layout
1348 \begin_inset Quotes eld
1351 Portable Network Graphics
1352 \begin_inset Quotes erd
1355 (PNG, file extension
1356 \begin_inset Quotes eld
1364 \begin_inset Quotes erd
1371 \begin_layout Plain Layout
1376 \begin_layout Plain Layout
1387 \begin_layout Plain Layout
1400 \begin_inset Quotes eld
1403 Joint Photographic Experts Group
1404 \begin_inset Quotes erd
1407 (JPG, file extension
1408 \begin_inset Quotes eld
1416 \begin_inset Quotes erd
1420 \begin_inset Quotes eld
1428 \begin_inset Quotes erd
1435 \begin_layout Plain Layout
1440 \begin_layout Plain Layout
1451 \begin_layout Plain Layout
1466 \begin_layout Description
1468 \begin_inset space ~
1471 images consist of vectors and can therefore be scaled to any size without
1473 The scaling ability is necessary if you want to create presentations, because
1474 presentations are always scaled by the video projector.
1475 Scaling is also useful for online documents to let the user zoom into diagrams.
1476 \begin_inset Newline newline
1479 Well-known scalable image formats are
1480 \begin_inset Quotes eld
1483 Scalable Vector Graphics
1484 \begin_inset Quotes erd
1487 (SVG, file extension
1488 \begin_inset Quotes eld
1496 \begin_inset Quotes erd
1503 \begin_layout Plain Layout
1508 \begin_layout Plain Layout
1519 \begin_layout Plain Layout
1532 \begin_inset Quotes eld
1535 Encapsulated PostScript
1536 \begin_inset Quotes erd
1539 (EPS, file extension
1540 \begin_inset Quotes eld
1548 \begin_inset Quotes erd
1555 \begin_layout Plain Layout
1560 \begin_layout Plain Layout
1571 \begin_layout Plain Layout
1584 \begin_inset Quotes eld
1587 Portable Document Format
1588 \begin_inset Quotes erd
1591 (PDF, file extension
1592 \begin_inset Quotes eld
1600 \begin_inset Quotes erd
1607 \begin_layout Plain Layout
1614 \begin_inset Quotes eld
1618 \begin_inset Quotes erd
1621 (WMF, file extension
1622 \begin_inset Quotes eld
1630 \begin_inset Quotes erd
1637 \begin_layout Plain Layout
1642 \begin_layout Plain Layout
1653 \begin_layout Plain Layout
1667 \begin_inset Quotes eld
1671 \begin_inset Quotes erd
1674 , because you can convert any bitmap image to a PDF or EPS-image and the
1675 result will still be a bitmap image.
1676 In this cases only a header with the image properties is added to the original
1681 \begin_layout Plain Layout
1682 In the case of PDF, the original image is additionally compressed.
1688 The PDF-files generated by
1692 are for example bitmap images.
1695 \begin_layout Standard
1696 Normally it is not possible to convert a bitmap image into a scalable one,
1698 Only the image formats PDF and EPS can directly be embedded to PDF and
1699 PostScript output files, respectively.
1700 SVG and WMF-images are recalculated to bitmaps when the output file is
1701 generated because there is currently no adequate WMF/SVG
1702 \begin_inset Formula $\to$
1705 PDF/EPS converter available.
1708 \begin_layout Chapter
1713 \begin_layout Plain Layout
1722 \begin_layout Section
1727 \begin_layout Plain Layout
1728 Table ! Introduction
1736 \begin_layout Standard
1737 You can insert a table using either the toolbar button
1738 \begin_inset Graphics
1739 filename ../images/tabular-insert.png
1747 Insert\SpecialChar \menuseparator
1751 The toolbar button offers you a graphical selection: Move the mouse to
1752 set the column/row number of the table that should be created and then
1753 press a mouse button.
1754 When you use the menu to create a table, a dialog will appear, asking you
1755 for the number of rows and columns.
1756 \begin_inset Newline newline
1759 The default table has lines around any cell and the first row appears separated
1760 from the rest of the table.
1761 This separation occurs due to a double line: The cells of the first row
1762 have a line below them and the cells of the second row have a line above
1764 Here is an example table:
1767 \begin_layout Standard
1769 \begin_inset Tabular
1770 <lyxtabular version="3" rows="4" columns="4">
1772 <column alignment="center" valignment="top" width="0">
1773 <column alignment="center" valignment="top" width="0">
1774 <column alignment="center" valignment="top" width="0">
1775 <column alignment="center" valignment="top" width="0">
1777 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1780 \begin_layout Plain Layout
1786 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1789 \begin_layout Plain Layout
1804 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1807 \begin_layout Plain Layout
1813 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1816 \begin_layout Plain Layout
1824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1827 \begin_layout Plain Layout
1842 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1845 \begin_layout Plain Layout
1851 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1854 \begin_layout Plain Layout
1860 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1863 \begin_layout Plain Layout
1871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1874 \begin_layout Plain Layout
1889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1892 \begin_layout Plain Layout
1898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1901 \begin_layout Plain Layout
1907 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1910 \begin_layout Plain Layout
1918 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1921 \begin_layout Plain Layout
1936 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1939 \begin_layout Plain Layout
1945 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1948 \begin_layout Plain Layout
1954 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1957 \begin_layout Plain Layout
1971 \begin_layout Section
1976 \begin_layout Plain Layout
1985 \begin_layout Standard
1986 You can alter a table by clicking on it with the right mouse button, which
1987 brings up the table dialog.
1988 Here you can adjust the settings of that cell and row/column respectively
1989 where the cursor is currently placed.
1990 Most of the dialog options also work on selections.
1991 This means if you select more cells, columns or rows, the action is done
1992 for the whole selection.
1993 Note that there is a difference between selecting the
1997 of the cell, and the cell itself.
1998 You can alter tables with the following tabs of the table dialog:
2001 \begin_layout Description
2005 \begin_inset space ~
2010 Here you can set the horizontal alignment and the width of the current
2012 When you have set a width you can also adjust the vertical alignment of
2014 A given width will allow the cell to have line breaks and multiple paragraphs
2015 of text, see section
2016 \begin_inset space ~
2020 \begin_inset CommandInset ref
2022 reference "sub:Multiple-Lines-in"
2027 If you set no width, the column is as wide as their widest cell content
2029 \begin_inset Newline newline
2032 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2034 \begin_inset space ~
2038 \begin_inset CommandInset ref
2040 reference "sub:Multicolumns"
2045 \begin_inset Newline newline
2048 The rotate check boxes rotates the current cell, a selection, or the whole
2049 table counter-clockwise by 90°.
2050 The rotation is not shown within LyX, only in the output.
2051 \begin_inset Newline newline
2055 \begin_inset Note Greyedout
2058 \begin_layout Plain Layout
2063 Not all DVI-viewers are able to display rotations.
2069 \begin_inset Newline newline
2072 It is also possible to enter a LaTeX-argument which is needed for special
2073 table formattings, see section
2074 \begin_inset space ~
2078 \begin_inset CommandInset ref
2080 reference "sub:Multicolumn-Calculations"
2085 \begin_inset CommandInset ref
2087 reference "sec:Colored-Tables"
2094 \begin_layout Description
2099 In this tab you can add and delete border lines for the current row/column.
2100 \begin_inset Newline newline
2103 Using the style option
2107 will convert the table to a formal table as described in section
2108 \begin_inset space ~
2112 \begin_inset CommandInset ref
2114 reference "sec:Formal-Tables"
2119 \begin_inset Newline newline
2122 You can also add here space to table rows as decribed in section
2123 \begin_inset space ~
2127 \begin_inset CommandInset ref
2129 reference "sub:Row-Spacing"
2136 \begin_layout Description
2141 This tab is to make a table a so called
2142 \begin_inset Quotes eld
2150 \begin_inset Quotes erd
2153 that can run over several pages.
2155 \begin_inset space ~
2159 \begin_inset CommandInset ref
2161 reference "sec:Longtables"
2166 \begin_inset CommandInset ref
2168 reference "sec:Special-Longtable-Issues"
2172 describe the longtable features in detail.
2175 \begin_layout Standard
2176 When the table dialog is open, you can move the cursor with the arrow keys
2177 from cell to cell and the property of the current cell will immediately
2178 be displayed in the dialog.
2181 \begin_layout Section
2186 \begin_layout Plain Layout
2195 \begin_layout Standard
2196 The table toolbar is an alternative to the table dialog to be able to alter
2198 It should normally appear at the bottom of LyX's main window when the cursor
2200 You can alternatively switch it on to appear always, by right-clicking
2201 in LyX's main menu bar.
2204 \begin_layout Standard
2205 The toolbar has the following icons:
2208 \begin_layout Labeling
2209 \labelwidthstring 00.00.0000
2210 \begin_inset Graphics
2211 filename ../images/tabular-feature_append-row.png
2216 adds a row below the current cell or selection
2219 \begin_layout Labeling
2220 \labelwidthstring 00.00.0000
2221 \begin_inset Graphics
2222 filename ../images/tabular-feature_append-column.png
2227 adds a column right beside the current cell or selection
2230 \begin_layout Labeling
2231 \labelwidthstring 00.00.0000
2232 \begin_inset Graphics
2233 filename ../images/tabular-feature_delete-row.png
2238 deletes the current row or selection
2241 \begin_layout Labeling
2242 \labelwidthstring 00.00.0000
2243 \begin_inset Graphics
2244 filename ../images/tabular-feature_delete-column.png
2249 deletes the current column or selection
2252 \begin_layout Labeling
2253 \labelwidthstring 00.00.0000
2254 \begin_inset Graphics
2255 filename ../images/tabular-feature_toggle-line-top.png
2260 adds a line at the top of the current cell / row or of a selection
2263 \begin_layout Labeling
2264 \labelwidthstring 00.00.0000
2265 \begin_inset Graphics
2266 filename ../images/tabular-feature_toggle-line-bottom.png
2271 adds a line at the bottom of the current cell / row or of a selection
2274 \begin_layout Labeling
2275 \labelwidthstring 00.00.0000
2276 \begin_inset Graphics
2277 filename ../images/tabular-feature_toggle-line-left.png
2282 adds a line at the left side of the current cell / row or of a selection
2285 \begin_layout Labeling
2286 \labelwidthstring 00.00.0000
2287 \begin_inset Graphics
2288 filename ../images/tabular-feature_toggle-line-right.png
2293 adds a line at the right side of the current cell / row or of a selection
2296 \begin_layout Labeling
2297 \labelwidthstring 00.00.0000
2298 \begin_inset Graphics
2299 filename ../images/tabular-feature_set-all-lines.png
2304 adds lines around the current or selected cells - if the current cell no
2305 multicolumn this also affects the current row and column
2308 \begin_layout Labeling
2309 \labelwidthstring 00.00.0000
2310 \begin_inset Graphics
2311 filename ../images/tabular-feature_unset-all-lines.png
2316 deletes all lines of the current or selected cells - if the current cell
2317 no multicolumn this also affects the current row and column
2320 \begin_layout Labeling
2321 \labelwidthstring 00.00.0000
2322 \begin_inset Graphics
2323 filename ../images/tabular-feature_m-align-left.png
2328 left-aligns the content of the current cell / column
2331 \begin_layout Labeling
2332 \labelwidthstring 00.00.0000
2333 \begin_inset Graphics
2334 filename ../images/tabular-feature_m-align-center.png
2339 centers the content of the current cell / column horizontally
2342 \begin_layout Labeling
2343 \labelwidthstring 00.00.0000
2344 \begin_inset Graphics
2345 filename ../images/tabular-feature_m-align-right.png
2350 right-aligns the content of the current cell / column
2353 \begin_layout Labeling
2354 \labelwidthstring 00.00.0000
2355 \begin_inset Graphics
2356 filename ../images/tabular-feature_m-valign-top.png
2361 aligns the content of the current cell vertically to the top
2364 \begin_layout Labeling
2365 \labelwidthstring 00.00.0000
2366 \begin_inset Graphics
2367 filename ../images/tabular-feature_m-valign-middle.png
2372 centers the content of the current cell vertically
2375 \begin_layout Labeling
2376 \labelwidthstring 00.00.0000
2377 \begin_inset Graphics
2378 filename ../images/tabular-feature_m-valign-bottom.png
2383 aligns the content of the current cell vertically to the bottom
2386 \begin_layout Labeling
2387 \labelwidthstring 00.00.0000
2388 \begin_inset Graphics
2389 filename ../images/tabular-feature_set-rotate-cell.png
2394 rotates the current cell or selection counter-clockwise by 90°
2397 \begin_layout Labeling
2398 \labelwidthstring 00.00.0000
2399 \begin_inset Graphics
2400 filename ../images/tabular-feature_set-rotate-tabular.png
2405 rotates the whole table counter-clockwise by 90°
2408 \begin_layout Labeling
2409 \labelwidthstring 00.00.0000
2410 \begin_inset Graphics
2411 filename ../images/tabular-feature_multicolumn.png
2416 sets the current cell or selection as a multicolumn
2419 \begin_layout Standard
2420 \begin_inset Note Greyedout
2423 \begin_layout Plain Layout
2428 For the output the vertical alignment of the first cell in a row is used
2429 for all following cells in the row.
2437 \begin_layout Section
2442 \begin_layout Plain Layout
2451 \begin_layout Standard
2452 Additionally to the table dialog and toolbar, the menu
2454 Edit\SpecialChar \menuseparator
2457 allows you to add and delete border lines for the current row/column and
2458 to set the current selection as multicolumn.
2459 The menu is only available when the cursor is inside a table.
2462 \begin_layout Section
2464 \begin_inset CommandInset label
2466 name "sec:Table-Floats"
2474 \begin_layout Plain Layout
2484 \begin_layout Plain Layout
2493 \begin_layout Standard
2494 For general explanations about floats, have a look at section
2495 \begin_inset space ~
2499 \begin_inset CommandInset ref
2501 reference "sec:FloatIntroduction"
2508 \begin_layout Standard
2509 \begin_inset Float table
2515 \begin_layout Plain Layout
2516 \begin_inset Caption
2518 \begin_layout Plain Layout
2519 \begin_inset CommandInset label
2521 name "tab:a table float"
2533 \begin_layout Plain Layout
2535 \begin_inset Tabular
2536 <lyxtabular version="3" rows="3" columns="3">
2538 <column alignment="center" valignment="top" width="0pt">
2539 <column alignment="center" valignment="top" width="0pt">
2540 <column alignment="center" valignment="top" width="0pt">
2542 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2545 \begin_layout Plain Layout
2560 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2563 \begin_layout Plain Layout
2578 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2581 \begin_layout Plain Layout
2598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2601 \begin_layout Plain Layout
2616 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2619 \begin_layout Plain Layout
2634 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2637 \begin_layout Plain Layout
2654 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2657 \begin_layout Plain Layout
2667 \begin_inset Formula $\int x^{2}dx$
2675 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2678 \begin_layout Plain Layout
2688 \begin_inset Formula $\left[\begin{array}{cc}
2690 c & d\end{array}\right]$
2698 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2701 \begin_layout Plain Layout
2711 \begin_inset Formula $1+1=2$
2732 \begin_layout Standard
2733 Table floats can be inserted using the menu
2735 Insert\SpecialChar \menuseparator
2736 Float\SpecialChar \menuseparator
2739 or the toolbar button
2740 \begin_inset Graphics
2741 filename ../images/float-insert_table.png
2750 \begin_layout Standard
2751 The float appears as a collapsible box with a caption that has the label
2753 \begin_inset Quotes eld
2757 \begin_inset space ~
2761 \begin_inset Quotes erd
2764 (# is the actual table number).
2765 You can insert tables to the float above or below the caption.
2768 \begin_layout Standard
2770 \begin_inset space ~
2774 \begin_inset CommandInset ref
2776 reference "tab:a table float"
2780 is an example table within a table float.
2783 \begin_layout Standard
2784 Having the caption above the table is the common rule that is unfortunately
2785 not supported in LaTeX's standard classes.
2786 That means if you are using the document classes
2802 there will be no space between the caption and the table.
2803 To insert the needed space, add the following option to the load command
2804 of the LaTeX-package
2812 \begin_layout Plain Layout
2813 LaTeX-packages ! caption
2818 in your document preamble
2822 \begin_layout Plain Layout
2823 For more information have a look at section
2824 \begin_inset space ~
2828 \begin_inset CommandInset ref
2830 reference "sec:Caption-Placement"
2842 \begin_layout Standard
2848 \begin_layout Standard
2853 , which is described in section
2854 \begin_inset space ~
2858 \begin_inset CommandInset ref
2860 reference "sec:Caption-Formatting"
2864 , is used to adjust the caption format.
2867 \begin_layout Standard
2871 \begin_layout Plain Layout
2872 References ! to Tables
2877 Tables can be cross-referenced in the text by referencing their label.
2878 To do this insert a label in the caption using the menu
2880 Insert\SpecialChar \menuseparator
2883 or the toolbar button
2884 \begin_inset Graphics
2885 filename ../images/label-insert.png
2892 You can now refer to the label using the menu
2894 Insert\SpecialChar \menuseparator
2896 \begin_inset space ~
2901 or the toolbar button
2902 \begin_inset Graphics
2903 filename ../images/dialog-show-new-inset_ref.png
2910 \begin_inset Newline newline
2913 Referencing is explained in detail in section
2914 \begin_inset space ~
2918 \begin_inset CommandInset ref
2920 reference "sec:Referencing-Floats"
2927 \begin_layout Section
2929 \begin_inset CommandInset label
2931 name "sec:Longtables"
2939 \begin_layout Plain Layout
2949 \begin_layout Plain Layout
2958 \begin_layout Standard
2959 If the table is too long to fit on one page, you can use the option
2962 \begin_inset space ~
2966 \begin_inset space ~
2975 of the table dialog to split the table automatically over more pages.
2976 Doing this enables the following options:
2979 \begin_layout Description
2980 Header: The current row is defined to be a header row that appears on all
2981 pages of the longtable; except for the first page, if
2984 \begin_inset space ~
2990 This therefore called the main header.
2993 \begin_layout Description
2995 \begin_inset space ~
2998 header: The current row is defined to be a header row that appears on the
2999 first page of the longtable.
3002 \begin_layout Description
3003 Footer: The current row is defined to be a footer row that appears on all
3004 pages of the longtable; except for the last page, if
3007 \begin_inset space ~
3015 \begin_layout Description
3017 \begin_inset space ~
3020 footer: The current row is defined to be a footer row that appear on the
3021 last page of the longtable.
3024 \begin_layout Description
3025 Caption: The current row contains the table caption.
3026 The row is reset as single column and a caption is inserted.
3027 More about longtable captions is explained in sec.
3028 \begin_inset space \thinspace{}
3032 \begin_inset CommandInset ref
3034 reference "sub:Longtable-Captions"
3041 \begin_layout Standard
3042 You can also specify a row where the table is split.
3043 See the following longtable to see how it works:
3046 \begin_layout Standard
3048 \begin_inset Tabular
3049 <lyxtabular version="3" rows="69" columns="3">
3050 <features islongtable="true">
3051 <column alignment="left" valignment="top" width="0cm">
3052 <column alignment="left" valignment="top" width="0pt">
3053 <column alignment="center" valignment="top" width="0pt">
3054 <row endfirsthead="true">
3055 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3058 \begin_layout Plain Layout
3061 Example Phone List (ignore the names)
3066 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3069 \begin_layout Plain Layout
3075 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3078 \begin_layout Plain Layout
3085 <row endfirsthead="true">
3086 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3089 \begin_layout Plain Layout
3097 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3100 \begin_layout Plain Layout
3106 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3109 \begin_layout Plain Layout
3118 <row endhead="true">
3119 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3122 \begin_layout Plain Layout
3130 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3133 \begin_layout Plain Layout
3139 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3142 \begin_layout Plain Layout
3149 <row endhead="true">
3150 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3153 \begin_layout Plain Layout
3161 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3164 \begin_layout Plain Layout
3170 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3173 \begin_layout Plain Layout
3182 <row endfoot="true">
3183 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3186 \begin_layout Plain Layout
3187 continued on next page
3192 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3195 \begin_layout Plain Layout
3201 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3204 \begin_layout Plain Layout
3212 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3215 \begin_layout Plain Layout
3223 <cell alignment="center" valignment="top" usebox="none">
3226 \begin_layout Plain Layout
3232 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3235 \begin_layout Plain Layout
3243 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3246 \begin_layout Plain Layout
3254 <cell alignment="center" valignment="top" usebox="none">
3257 \begin_layout Plain Layout
3263 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3266 \begin_layout Plain Layout
3274 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3277 \begin_layout Plain Layout
3285 <cell alignment="center" valignment="top" usebox="none">
3288 \begin_layout Plain Layout
3294 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3297 \begin_layout Plain Layout
3305 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3308 \begin_layout Plain Layout
3316 <cell alignment="center" valignment="top" usebox="none">
3319 \begin_layout Plain Layout
3325 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3328 \begin_layout Plain Layout
3336 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3339 \begin_layout Plain Layout
3347 <cell alignment="center" valignment="top" usebox="none">
3350 \begin_layout Plain Layout
3356 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3359 \begin_layout Plain Layout
3367 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3370 \begin_layout Plain Layout
3378 <cell alignment="center" valignment="top" usebox="none">
3381 \begin_layout Plain Layout
3387 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3390 \begin_layout Plain Layout
3398 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3401 \begin_layout Plain Layout
3409 <cell alignment="center" valignment="top" usebox="none">
3412 \begin_layout Plain Layout
3418 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3421 \begin_layout Plain Layout
3429 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3432 \begin_layout Plain Layout
3440 <cell alignment="center" valignment="top" usebox="none">
3443 \begin_layout Plain Layout
3449 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3452 \begin_layout Plain Layout
3460 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3463 \begin_layout Plain Layout
3471 <cell alignment="center" valignment="top" usebox="none">
3474 \begin_layout Plain Layout
3480 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3483 \begin_layout Plain Layout
3491 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3494 \begin_layout Plain Layout
3502 <cell alignment="center" valignment="top" usebox="none">
3505 \begin_layout Plain Layout
3511 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3514 \begin_layout Plain Layout
3522 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3525 \begin_layout Plain Layout
3533 <cell alignment="center" valignment="top" usebox="none">
3536 \begin_layout Plain Layout
3542 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3545 \begin_layout Plain Layout
3553 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3556 \begin_layout Plain Layout
3564 <cell alignment="center" valignment="top" usebox="none">
3567 \begin_layout Plain Layout
3573 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3576 \begin_layout Plain Layout
3584 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3587 \begin_layout Plain Layout
3595 <cell alignment="center" valignment="top" usebox="none">
3598 \begin_layout Plain Layout
3604 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3607 \begin_layout Plain Layout
3615 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3618 \begin_layout Plain Layout
3626 <cell alignment="center" valignment="top" usebox="none">
3629 \begin_layout Plain Layout
3635 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3638 \begin_layout Plain Layout
3646 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3649 \begin_layout Plain Layout
3657 <cell alignment="center" valignment="top" usebox="none">
3660 \begin_layout Plain Layout
3666 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3669 \begin_layout Plain Layout
3677 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3680 \begin_layout Plain Layout
3688 <cell alignment="center" valignment="top" usebox="none">
3691 \begin_layout Plain Layout
3697 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3700 \begin_layout Plain Layout
3708 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3711 \begin_layout Plain Layout
3719 <cell alignment="center" valignment="top" usebox="none">
3722 \begin_layout Plain Layout
3728 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3731 \begin_layout Plain Layout
3739 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3742 \begin_layout Plain Layout
3750 <cell alignment="center" valignment="top" usebox="none">
3753 \begin_layout Plain Layout
3759 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3762 \begin_layout Plain Layout
3770 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3773 \begin_layout Plain Layout
3781 <cell alignment="center" valignment="top" usebox="none">
3784 \begin_layout Plain Layout
3790 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3793 \begin_layout Plain Layout
3801 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3804 \begin_layout Plain Layout
3812 <cell alignment="center" valignment="top" usebox="none">
3815 \begin_layout Plain Layout
3821 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3824 \begin_layout Plain Layout
3832 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3835 \begin_layout Plain Layout
3843 <cell alignment="center" valignment="top" usebox="none">
3846 \begin_layout Plain Layout
3852 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3855 \begin_layout Plain Layout
3863 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3866 \begin_layout Plain Layout
3874 <cell alignment="center" valignment="top" usebox="none">
3877 \begin_layout Plain Layout
3883 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3886 \begin_layout Plain Layout
3894 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3897 \begin_layout Plain Layout
3905 <cell alignment="center" valignment="top" usebox="none">
3908 \begin_layout Plain Layout
3914 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3917 \begin_layout Plain Layout
3925 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3928 \begin_layout Plain Layout
3936 <cell alignment="center" valignment="top" usebox="none">
3939 \begin_layout Plain Layout
3945 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3948 \begin_layout Plain Layout
3956 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3959 \begin_layout Plain Layout
3967 <cell alignment="center" valignment="top" usebox="none">
3970 \begin_layout Plain Layout
3976 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3979 \begin_layout Plain Layout
3987 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3990 \begin_layout Plain Layout
3998 <cell alignment="center" valignment="top" usebox="none">
4001 \begin_layout Plain Layout
4007 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4010 \begin_layout Plain Layout
4018 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4021 \begin_layout Plain Layout
4029 <cell alignment="center" valignment="top" usebox="none">
4032 \begin_layout Plain Layout
4038 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4041 \begin_layout Plain Layout
4049 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4052 \begin_layout Plain Layout
4060 <cell alignment="center" valignment="top" usebox="none">
4063 \begin_layout Plain Layout
4069 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4072 \begin_layout Plain Layout
4080 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4083 \begin_layout Plain Layout
4091 <cell alignment="center" valignment="top" usebox="none">
4094 \begin_layout Plain Layout
4100 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4103 \begin_layout Plain Layout
4111 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4114 \begin_layout Plain Layout
4122 <cell alignment="center" valignment="top" usebox="none">
4125 \begin_layout Plain Layout
4131 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4134 \begin_layout Plain Layout
4142 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4145 \begin_layout Plain Layout
4153 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4156 \begin_layout Plain Layout
4162 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4165 \begin_layout Plain Layout
4173 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4176 \begin_layout Plain Layout
4182 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4185 \begin_layout Plain Layout
4191 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4194 \begin_layout Plain Layout
4202 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4205 \begin_layout Plain Layout
4213 <cell alignment="center" valignment="top" usebox="none">
4216 \begin_layout Plain Layout
4222 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4225 \begin_layout Plain Layout
4233 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4236 \begin_layout Plain Layout
4244 <cell alignment="center" valignment="top" usebox="none">
4247 \begin_layout Plain Layout
4253 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4256 \begin_layout Plain Layout
4264 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4267 \begin_layout Plain Layout
4275 <cell alignment="center" valignment="top" usebox="none">
4278 \begin_layout Plain Layout
4284 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4287 \begin_layout Plain Layout
4295 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4298 \begin_layout Plain Layout
4306 <cell alignment="center" valignment="top" usebox="none">
4309 \begin_layout Plain Layout
4315 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4318 \begin_layout Plain Layout
4326 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4329 \begin_layout Plain Layout
4337 <cell alignment="center" valignment="top" usebox="none">
4340 \begin_layout Plain Layout
4346 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4349 \begin_layout Plain Layout
4357 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4360 \begin_layout Plain Layout
4368 <cell alignment="center" valignment="top" usebox="none">
4371 \begin_layout Plain Layout
4377 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4380 \begin_layout Plain Layout
4388 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4391 \begin_layout Plain Layout
4399 <cell alignment="center" valignment="top" usebox="none">
4402 \begin_layout Plain Layout
4408 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4411 \begin_layout Plain Layout
4419 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4422 \begin_layout Plain Layout
4430 <cell alignment="center" valignment="top" usebox="none">
4433 \begin_layout Plain Layout
4439 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4442 \begin_layout Plain Layout
4450 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4453 \begin_layout Plain Layout
4461 <cell alignment="center" valignment="top" usebox="none">
4464 \begin_layout Plain Layout
4470 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4473 \begin_layout Plain Layout
4481 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4484 \begin_layout Plain Layout
4492 <cell alignment="center" valignment="top" usebox="none">
4495 \begin_layout Plain Layout
4501 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4504 \begin_layout Plain Layout
4512 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4515 \begin_layout Plain Layout
4523 <cell alignment="center" valignment="top" usebox="none">
4526 \begin_layout Plain Layout
4532 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4535 \begin_layout Plain Layout
4543 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4546 \begin_layout Plain Layout
4554 <cell alignment="center" valignment="top" usebox="none">
4557 \begin_layout Plain Layout
4563 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4566 \begin_layout Plain Layout
4574 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4577 \begin_layout Plain Layout
4585 <cell alignment="center" valignment="top" usebox="none">
4588 \begin_layout Plain Layout
4594 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4597 \begin_layout Plain Layout
4605 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4608 \begin_layout Plain Layout
4616 <cell alignment="center" valignment="top" usebox="none">
4619 \begin_layout Plain Layout
4625 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4628 \begin_layout Plain Layout
4636 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4639 \begin_layout Plain Layout
4647 <cell alignment="center" valignment="top" usebox="none">
4650 \begin_layout Plain Layout
4656 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4659 \begin_layout Plain Layout
4667 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4670 \begin_layout Plain Layout
4678 <cell alignment="center" valignment="top" usebox="none">
4681 \begin_layout Plain Layout
4687 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4690 \begin_layout Plain Layout
4698 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4701 \begin_layout Plain Layout
4709 <cell alignment="center" valignment="top" usebox="none">
4712 \begin_layout Plain Layout
4718 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4721 \begin_layout Plain Layout
4729 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4732 \begin_layout Plain Layout
4740 <cell alignment="center" valignment="top" usebox="none">
4743 \begin_layout Plain Layout
4749 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4752 \begin_layout Plain Layout
4760 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4763 \begin_layout Plain Layout
4771 <cell alignment="center" valignment="top" usebox="none">
4774 \begin_layout Plain Layout
4780 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4783 \begin_layout Plain Layout
4791 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4794 \begin_layout Plain Layout
4802 <cell alignment="center" valignment="top" usebox="none">
4805 \begin_layout Plain Layout
4811 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4814 \begin_layout Plain Layout
4822 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4825 \begin_layout Plain Layout
4833 <cell alignment="center" valignment="top" usebox="none">
4836 \begin_layout Plain Layout
4842 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4845 \begin_layout Plain Layout
4853 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4856 \begin_layout Plain Layout
4864 <cell alignment="center" valignment="top" usebox="none">
4867 \begin_layout Plain Layout
4873 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4876 \begin_layout Plain Layout
4884 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4887 \begin_layout Plain Layout
4895 <cell alignment="center" valignment="top" usebox="none">
4898 \begin_layout Plain Layout
4904 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4907 \begin_layout Plain Layout
4915 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4918 \begin_layout Plain Layout
4926 <cell alignment="center" valignment="top" usebox="none">
4929 \begin_layout Plain Layout
4935 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4938 \begin_layout Plain Layout
4946 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4949 \begin_layout Plain Layout
4957 <cell alignment="center" valignment="top" usebox="none">
4960 \begin_layout Plain Layout
4966 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4969 \begin_layout Plain Layout
4977 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4980 \begin_layout Plain Layout
4988 <cell alignment="center" valignment="top" usebox="none">
4991 \begin_layout Plain Layout
4997 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5000 \begin_layout Plain Layout
5008 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5011 \begin_layout Plain Layout
5019 <cell alignment="center" valignment="top" usebox="none">
5022 \begin_layout Plain Layout
5028 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5031 \begin_layout Plain Layout
5039 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5042 \begin_layout Plain Layout
5050 <cell alignment="center" valignment="top" usebox="none">
5053 \begin_layout Plain Layout
5059 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5062 \begin_layout Plain Layout
5070 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5073 \begin_layout Plain Layout
5081 <cell alignment="center" valignment="top" usebox="none">
5084 \begin_layout Plain Layout
5090 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5093 \begin_layout Plain Layout
5101 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5104 \begin_layout Plain Layout
5112 <cell alignment="center" valignment="top" usebox="none">
5115 \begin_layout Plain Layout
5121 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5124 \begin_layout Plain Layout
5132 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5135 \begin_layout Plain Layout
5143 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5146 \begin_layout Plain Layout
5152 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5155 \begin_layout Plain Layout
5162 <row endlastfoot="true">
5163 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5166 \begin_layout Plain Layout
5172 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5175 \begin_layout Plain Layout
5181 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5184 \begin_layout Plain Layout
5199 \begin_layout Plain Layout
5203 addtocounter{table}{-1}
5209 \begin_inset Note Note
5212 \begin_layout Plain Layout
5213 See the first greyed-out note in section
5214 \begin_inset space ~
5218 \begin_inset CommandInset ref
5220 reference "sub:Longtable-Captions"
5224 for an explanation of this command.
5232 \begin_layout Subsection
5233 Footnotes in Longtables
5234 \begin_inset CommandInset label
5236 name "sub:Footnotes-in-Longtables"
5244 \begin_layout Plain Layout
5245 Longtables ! Footnotes
5253 \begin_layout Standard
5254 Footnotes can be inserted to every longtable cell.
5255 They appear at the bottom of the page where the table cell with the footnote
5258 \begin_inset space ~
5262 \begin_inset CommandInset ref
5264 reference "tab:DiffCaptions"
5268 has for example a footnote.
5271 \begin_layout Subsection
5276 \begin_layout Plain Layout
5277 Longtables ! Alignment
5285 \begin_layout Standard
5286 Longtables are by default centered.
5287 In contrary to the alignment of the table columns and row, the table alignment
5288 can currently not be changed in the table dialog.
5289 To change the alignment of longtables you have to change the value of the
5302 by inserting this line as TeX-Code before the corresponding longtable:
5305 \begin_layout Standard
5315 \begin_layout Standard
5316 Where the value can have any of the units listed in Table
5317 \begin_inset space ~
5321 \begin_inset CommandInset ref
5323 reference "tab:Units"
5334 controls the horizontal distance from the left page border to the longtable,
5341 the distance from the right side.
5342 The default value for both lengths is
5348 , which is in this case the same as an horizontal fill in LyX.
5351 \begin_layout Standard
5352 The following longtable was left-aligned by setting
5359 \begin_inset space \thinspace{}
5366 \begin_layout Plain Layout
5380 \begin_layout Standard
5381 \begin_inset Tabular
5382 <lyxtabular version="3" rows="5" columns="5">
5383 <features islongtable="true">
5384 <column alignment="center" valignment="top" width="0">
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">
5390 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5393 \begin_layout Plain Layout
5399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5402 \begin_layout Plain Layout
5408 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5411 \begin_layout Plain Layout
5417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5420 \begin_layout Plain Layout
5426 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5429 \begin_layout Plain Layout
5437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5440 \begin_layout Plain Layout
5446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5449 \begin_layout Plain Layout
5455 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5458 \begin_layout Plain Layout
5464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5467 \begin_layout Plain Layout
5473 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5476 \begin_layout Plain Layout
5484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5487 \begin_layout Plain Layout
5493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5496 \begin_layout Plain Layout
5502 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5505 \begin_layout Plain Layout
5511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5514 \begin_layout Plain Layout
5520 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5523 \begin_layout Plain Layout
5531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5534 \begin_layout Plain Layout
5540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5543 \begin_layout Plain Layout
5549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5552 \begin_layout Plain Layout
5558 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5561 \begin_layout Plain Layout
5567 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5570 \begin_layout Plain Layout
5578 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5581 \begin_layout Plain Layout
5587 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5590 \begin_layout Plain Layout
5596 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5599 \begin_layout Plain Layout
5605 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5608 \begin_layout Plain Layout
5614 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5617 \begin_layout Plain Layout
5632 \begin_layout Plain Layout
5649 \begin_layout Plain Layout
5653 addtocounter{table}{-1}
5659 \begin_inset Note Note
5662 \begin_layout Plain Layout
5663 See the first greyed-out note in section
5664 \begin_inset space ~
5668 \begin_inset CommandInset ref
5670 reference "sub:Longtable-Captions"
5674 for an explanation of this command.
5682 \begin_layout Subsection
5687 \begin_layout Plain Layout
5688 Longtables ! Captions
5694 \begin_inset CommandInset label
5696 name "sub:Longtable-Captions"
5703 \begin_layout Standard
5704 A longtable cannot be put into a table float because floats can only be
5706 But the caption environment of floats can also be used for longtables when
5707 you use for a table row the longtable option
5711 as described in sec.
5712 \begin_inset space \thinspace{}
5716 \begin_inset CommandInset ref
5718 reference "sec:Longtables"
5723 Only one table row can contain the caption.
5726 \begin_layout Standard
5727 Here is a short longtable to see how it works:
5730 \begin_layout Standard
5731 \begin_inset Tabular
5732 <lyxtabular version="3" rows="6" columns="5">
5733 <features islongtable="true">
5734 <column alignment="center" valignment="top" width="0">
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 <row caption="true">
5740 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5743 \begin_layout Plain Layout
5744 \begin_inset Caption
5746 \begin_layout Plain Layout
5747 Longtable with caption
5751 \begin_layout Plain Layout
5767 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5770 \begin_layout Plain Layout
5776 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5779 \begin_layout Plain Layout
5785 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5788 \begin_layout Plain Layout
5794 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5797 \begin_layout Plain Layout
5805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5808 \begin_layout Plain Layout
5814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5817 \begin_layout Plain Layout
5823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5826 \begin_layout Plain Layout
5832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5835 \begin_layout Plain Layout
5841 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5844 \begin_layout Plain Layout
5852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5855 \begin_layout Plain Layout
5861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5864 \begin_layout Plain Layout
5870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5873 \begin_layout Plain Layout
5879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5882 \begin_layout Plain Layout
5888 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5891 \begin_layout Plain Layout
5899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5902 \begin_layout Plain Layout
5908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5911 \begin_layout Plain Layout
5917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5920 \begin_layout Plain Layout
5926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5929 \begin_layout Plain Layout
5935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5938 \begin_layout Plain Layout
5946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5949 \begin_layout Plain Layout
5955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5958 \begin_layout Plain Layout
5964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5967 \begin_layout Plain Layout
5973 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5976 \begin_layout Plain Layout
5982 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5985 \begin_layout Plain Layout
5993 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5996 \begin_layout Plain Layout
6002 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6005 \begin_layout Plain Layout
6011 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6014 \begin_layout Plain Layout
6020 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6023 \begin_layout Plain Layout
6029 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6032 \begin_layout Plain Layout
6046 \begin_layout Standard
6047 \begin_inset VSpace medskip
6051 \begin_inset Note Greyedout
6054 \begin_layout Plain Layout
6058 \begin_inset space ~
6063 The table number is increased for every longtable, also if you didn't set
6065 For this reason you could have the case that e.
6066 \begin_inset space \thinspace{}
6070 \begin_inset space \space{}
6074 \begin_inset space ~
6077 2.4 follows on Table
6078 \begin_inset space ~
6081 2.1 in the list of tables if there are two longtables without captions.
6082 To avoid this you can add the following command in TeX-Code behind every
6083 longtable without a caption:
6086 \begin_layout Plain Layout
6091 addtocounter{table}{-1}
6094 \begin_layout Plain Layout
6095 This is not needed when none of your longtables have a caption and you add
6096 the following code to the document preamble:
6099 \begin_layout Plain Layout
6109 \begin_inset Newline newline
6120 addtocounter{table}{-1}}
6128 \begin_layout Standard
6129 \begin_inset Note Greyedout
6132 \begin_layout Plain Layout
6136 \begin_inset space ~
6149 \begin_layout Plain Layout
6150 LaTeX-packages ! hyperref
6163 dialog to link cross-references, the link to a longtable caption will always
6164 point to the beginning of the document.
6172 \begin_layout Subsubsection
6173 References to Longtables
6177 \begin_layout Plain Layout
6178 Longtables ! References
6186 \begin_layout Standard
6187 \begin_inset Tabular
6188 <lyxtabular version="3" rows="6" columns="5">
6189 <features islongtable="true">
6190 <column alignment="center" valignment="top" width="0">
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 <row caption="true">
6196 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6199 \begin_layout Plain Layout
6200 \begin_inset Caption
6202 \begin_layout Plain Layout
6203 Referenced longtable
6204 \begin_inset CommandInset label
6206 name "tab:RefExample"
6220 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6223 \begin_layout Plain Layout
6229 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6232 \begin_layout Plain Layout
6238 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6241 \begin_layout Plain Layout
6247 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6250 \begin_layout Plain Layout
6258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6261 \begin_layout Plain Layout
6267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6270 \begin_layout Plain Layout
6276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6279 \begin_layout Plain Layout
6285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6288 \begin_layout Plain Layout
6294 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6297 \begin_layout Plain Layout
6305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6308 \begin_layout Plain Layout
6314 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6317 \begin_layout Plain Layout
6323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6326 \begin_layout Plain Layout
6332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6335 \begin_layout Plain Layout
6341 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6344 \begin_layout Plain Layout
6352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6355 \begin_layout Plain Layout
6361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6364 \begin_layout Plain Layout
6370 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6373 \begin_layout Plain Layout
6379 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6382 \begin_layout Plain Layout
6388 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6391 \begin_layout Plain Layout
6399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6402 \begin_layout Plain Layout
6408 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6411 \begin_layout Plain Layout
6417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6420 \begin_layout Plain Layout
6426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6429 \begin_layout Plain Layout
6435 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6438 \begin_layout Plain Layout
6446 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6449 \begin_layout Plain Layout
6455 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6458 \begin_layout Plain Layout
6464 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6467 \begin_layout Plain Layout
6473 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6476 \begin_layout Plain Layout
6482 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6485 \begin_layout Plain Layout
6499 \begin_layout Standard
6500 To reference a longtable, insert a label into the caption.
6503 \begin_layout Standard
6504 This is a reference to Table
6505 \begin_inset space ~
6509 \begin_inset CommandInset ref
6511 reference "tab:RefExample"
6518 \begin_layout Standard
6519 The caption layout can be set together with all other captions of your document
6520 using the LaTeX-package
6528 \begin_layout Plain Layout
6529 LaTeX-packages ! caption
6535 \begin_inset space ~
6539 \begin_inset CommandInset ref
6541 reference "sec:Caption-Formatting"
6548 \begin_layout Subsubsection
6553 \begin_layout Plain Layout
6554 Longtables ! Caption Width
6562 \begin_layout Standard
6563 The maximal width of of caption lines is defined by the length
6570 Its default value is 4
6571 \begin_inset space \thinspace{}
6575 To change it add the following command to your document preamble or as
6576 TeX-Code into your document before the longtable that should be affected
6579 \begin_layout Standard
6589 \begin_layout Standard
6590 where the width could have one of the units listed in appendix
6591 \begin_inset space ~
6595 \begin_inset CommandInset ref
6597 reference "cha:Units-available-in"
6604 \begin_layout Standard
6605 The following tables show the difference:
6608 \begin_layout Standard
6609 \begin_inset Tabular
6610 <lyxtabular version="3" rows="6" columns="5">
6611 <features islongtable="true">
6612 <column alignment="center" valignment="top" width="0">
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 <row caption="true">
6618 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6621 \begin_layout Plain Layout
6622 \begin_inset Caption
6624 \begin_layout Plain Layout
6625 long full title with default width long full title with default width long
6626 full title with default width
6630 \begin_layout Plain Layout
6631 caption with default width
6646 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6649 \begin_layout Plain Layout
6655 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6658 \begin_layout Plain Layout
6664 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6667 \begin_layout Plain Layout
6673 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6676 \begin_layout Plain Layout
6684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6687 \begin_layout Plain Layout
6693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6696 \begin_layout Plain Layout
6702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6705 \begin_layout Plain Layout
6711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6714 \begin_layout Plain Layout
6720 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6723 \begin_layout Plain Layout
6731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6734 \begin_layout Plain Layout
6740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6743 \begin_layout Plain Layout
6749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6752 \begin_layout Plain Layout
6758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6761 \begin_layout Plain Layout
6767 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6770 \begin_layout Plain Layout
6778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6781 \begin_layout Plain Layout
6787 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6790 \begin_layout Plain Layout
6796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6799 \begin_layout Plain Layout
6805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6808 \begin_layout Plain Layout
6814 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6817 \begin_layout Plain Layout
6825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6828 \begin_layout Plain Layout
6834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6837 \begin_layout Plain Layout
6843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6846 \begin_layout Plain Layout
6852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6855 \begin_layout Plain Layout
6861 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6864 \begin_layout Plain Layout
6872 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6875 \begin_layout Plain Layout
6881 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6884 \begin_layout Plain Layout
6890 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6893 \begin_layout Plain Layout
6899 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6902 \begin_layout Plain Layout
6908 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6911 \begin_layout Plain Layout
6925 \begin_layout Standard
6929 \begin_layout Plain Layout
6941 \begin_inset Tabular
6942 <lyxtabular version="3" rows="6" columns="5">
6943 <features islongtable="true">
6944 <column alignment="center" valignment="top" width="0">
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 <row caption="true">
6950 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6953 \begin_layout Plain Layout
6954 \begin_inset Caption
6956 \begin_layout Plain Layout
6957 long full title with width set to 5
6958 \begin_inset space \thinspace{}
6961 cm long full title with width set to 5
6962 \begin_inset space \thinspace{}
6965 cm long full title with width set to 5
6966 \begin_inset space \thinspace{}
6973 \begin_layout Plain Layout
6975 \begin_inset space \thinspace{}
6979 \begin_inset space \thinspace{}
6983 \begin_inset space \thinspace{}
7001 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7004 \begin_layout Plain Layout
7010 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7013 \begin_layout Plain Layout
7019 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7022 \begin_layout Plain Layout
7028 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7031 \begin_layout Plain Layout
7039 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7042 \begin_layout Plain Layout
7048 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7051 \begin_layout Plain Layout
7057 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7060 \begin_layout Plain Layout
7066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7069 \begin_layout Plain Layout
7075 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7078 \begin_layout Plain Layout
7086 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7089 \begin_layout Plain Layout
7095 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7098 \begin_layout Plain Layout
7104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7107 \begin_layout Plain Layout
7113 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7116 \begin_layout Plain Layout
7122 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7125 \begin_layout Plain Layout
7133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7136 \begin_layout Plain Layout
7142 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7145 \begin_layout Plain Layout
7151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7154 \begin_layout Plain Layout
7160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7163 \begin_layout Plain Layout
7169 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7172 \begin_layout Plain Layout
7180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7183 \begin_layout Plain Layout
7189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7192 \begin_layout Plain Layout
7198 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7201 \begin_layout Plain Layout
7207 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7210 \begin_layout Plain Layout
7216 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7219 \begin_layout Plain Layout
7227 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7230 \begin_layout Plain Layout
7236 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7239 \begin_layout Plain Layout
7245 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7248 \begin_layout Plain Layout
7254 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7257 \begin_layout Plain Layout
7263 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7266 \begin_layout Plain Layout
7280 \begin_layout Standard
7284 \begin_layout Plain Layout
7298 \begin_layout Standard
7299 \begin_inset Note Greyedout
7302 \begin_layout Plain Layout
7307 When the LaTeX-package
7315 \begin_layout Plain Layout
7316 LaTeX-packages ! caption
7321 is used, as in this document, the full page width is used for the caption
7322 when you use the default value of 4
7323 \begin_inset space \thinspace{}
7333 To get in this case exactly a 4
7334 \begin_inset space \thinspace{}
7337 in wide caption, you can either use a value slightly different from 4.0
7338 \begin_inset space \thinspace{}
7342 \begin_inset space \thinspace{}
7346 \begin_inset space \space{}
7350 \begin_inset space \thinspace{}
7353 in, or the LaTeX-command
7357 captionsetup{width=value}
7359 that is provided by the
7371 \begin_layout Subsubsection
7372 Different Captions for Table Pages
7376 \begin_layout Plain Layout
7377 Longtables ! Different Captions for Pages
7385 \begin_layout Standard
7386 When the table captions for the following pages should differ from the one
7387 of the first table page, insert a caption with the TeX code command
7390 \begin_layout Standard
7395 caption*{caption text}
7402 \begin_layout Standard
7403 in a dummy caption row that is marked as header.
7405 \begin_inset space ~
7409 \begin_inset CommandInset ref
7411 reference "tab:DiffCaptions"
7415 is an example for a longtable with different heading where the second caption
7416 doesn't include the table number.
7419 \begin_layout Standard
7421 \begin_inset Tabular
7422 <lyxtabular version="3" rows="59" columns="3">
7423 <features islongtable="true" lastFootEmpty="true">
7424 <column alignment="left" valignment="top" width="0cm">
7425 <column alignment="left" valignment="top" width="0pt">
7426 <column alignment="center" valignment="top" width="0pt">
7427 <row caption="true">
7428 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7431 \begin_layout Plain Layout
7432 \begin_inset Caption
7434 \begin_layout Plain Layout
7436 \begin_inset CommandInset label
7438 name "tab:DiffCaptions"
7446 \begin_layout Plain Layout
7462 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7465 \begin_layout Plain Layout
7471 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7474 \begin_layout Plain Layout
7481 <row endfirsthead="true">
7482 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7485 \begin_layout Plain Layout
7488 Example Phone List (ignore the names)
7493 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7496 \begin_layout Plain Layout
7502 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7505 \begin_layout Plain Layout
7512 <row endfirsthead="true">
7513 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7516 \begin_layout Plain Layout
7524 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7527 \begin_layout Plain Layout
7533 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7536 \begin_layout Plain Layout
7545 <row endhead="true">
7546 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7549 \begin_layout Plain Layout
7553 \begin_layout Plain Layout
7557 caption*{Continued Example Phone List}
7571 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7574 \begin_layout Plain Layout
7580 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7583 \begin_layout Plain Layout
7590 <row endhead="true">
7591 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7594 \begin_layout Plain Layout
7602 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7605 \begin_layout Plain Layout
7611 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7614 \begin_layout Plain Layout
7621 <row endhead="true">
7622 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7625 \begin_layout Plain Layout
7633 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7636 \begin_layout Plain Layout
7642 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7645 \begin_layout Plain Layout
7654 <row endfoot="true">
7655 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7658 \begin_layout Plain Layout
7659 continued on next page
7664 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7667 \begin_layout Plain Layout
7673 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7676 \begin_layout Plain Layout
7684 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7687 \begin_layout Plain Layout
7695 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7698 \begin_layout Plain Layout
7704 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7707 \begin_layout Plain Layout
7715 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7718 \begin_layout Plain Layout
7726 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7729 \begin_layout Plain Layout
7735 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7738 \begin_layout Plain Layout
7746 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7749 \begin_layout Plain Layout
7757 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7760 \begin_layout Plain Layout
7766 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7769 \begin_layout Plain Layout
7777 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7780 \begin_layout Plain Layout
7788 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7791 \begin_layout Plain Layout
7797 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7800 \begin_layout Plain Layout
7808 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7811 \begin_layout Plain Layout
7819 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7822 \begin_layout Plain Layout
7828 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7831 \begin_layout Plain Layout
7839 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7842 \begin_layout Plain Layout
7850 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7853 \begin_layout Plain Layout
7859 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7862 \begin_layout Plain Layout
7870 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7873 \begin_layout Plain Layout
7881 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7884 \begin_layout Plain Layout
7890 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7893 \begin_layout Plain Layout
7901 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7904 \begin_layout Plain Layout
7912 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7915 \begin_layout Plain Layout
7921 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7924 \begin_layout Plain Layout
7932 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7935 \begin_layout Plain Layout
7943 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7946 \begin_layout Plain Layout
7952 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7955 \begin_layout Plain Layout
7963 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7966 \begin_layout Plain Layout
7974 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7977 \begin_layout Plain Layout
7983 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7986 \begin_layout Plain Layout
7994 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7997 \begin_layout Plain Layout
8005 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8008 \begin_layout Plain Layout
8014 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8017 \begin_layout Plain Layout
8025 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8028 \begin_layout Plain Layout
8036 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8039 \begin_layout Plain Layout
8045 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8048 \begin_layout Plain Layout
8056 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8059 \begin_layout Plain Layout
8067 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8070 \begin_layout Plain Layout
8076 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8079 \begin_layout Plain Layout
8087 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8090 \begin_layout Plain Layout
8098 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8101 \begin_layout Plain Layout
8107 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8110 \begin_layout Plain Layout
8118 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8121 \begin_layout Plain Layout
8130 \begin_layout Plain Layout
8141 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8144 \begin_layout Plain Layout
8150 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8153 \begin_layout Plain Layout
8161 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8164 \begin_layout Plain Layout
8172 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8175 \begin_layout Plain Layout
8181 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8184 \begin_layout Plain Layout
8192 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8195 \begin_layout Plain Layout
8203 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8206 \begin_layout Plain Layout
8212 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8215 \begin_layout Plain Layout
8223 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8226 \begin_layout Plain Layout
8234 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8237 \begin_layout Plain Layout
8243 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8246 \begin_layout Plain Layout
8254 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8257 \begin_layout Plain Layout
8265 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8268 \begin_layout Plain Layout
8274 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8277 \begin_layout Plain Layout
8285 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8288 \begin_layout Plain Layout
8296 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8299 \begin_layout Plain Layout
8305 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8308 \begin_layout Plain Layout
8316 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8319 \begin_layout Plain Layout
8327 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8330 \begin_layout Plain Layout
8336 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8339 \begin_layout Plain Layout
8347 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8350 \begin_layout Plain Layout
8358 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8361 \begin_layout Plain Layout
8367 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8370 \begin_layout Plain Layout
8378 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8381 \begin_layout Plain Layout
8389 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8392 \begin_layout Plain Layout
8398 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8401 \begin_layout Plain Layout
8409 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8412 \begin_layout Plain Layout
8420 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8423 \begin_layout Plain Layout
8429 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8432 \begin_layout Plain Layout
8440 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8443 \begin_layout Plain Layout
8451 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8454 \begin_layout Plain Layout
8460 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8463 \begin_layout Plain Layout
8471 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8474 \begin_layout Plain Layout
8482 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8485 \begin_layout Plain Layout
8491 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8494 \begin_layout Plain Layout
8502 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8505 \begin_layout Plain Layout
8513 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8516 \begin_layout Plain Layout
8522 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8525 \begin_layout Plain Layout
8533 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8536 \begin_layout Plain Layout
8544 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8547 \begin_layout Plain Layout
8553 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8556 \begin_layout Plain Layout
8564 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8567 \begin_layout Plain Layout
8575 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8578 \begin_layout Plain Layout
8584 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8587 \begin_layout Plain Layout
8595 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8598 \begin_layout Plain Layout
8606 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8609 \begin_layout Plain Layout
8615 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8618 \begin_layout Plain Layout
8626 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8629 \begin_layout Plain Layout
8637 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8640 \begin_layout Plain Layout
8646 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8649 \begin_layout Plain Layout
8657 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8660 \begin_layout Plain Layout
8666 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8669 \begin_layout Plain Layout
8675 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8678 \begin_layout Plain Layout
8686 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8689 \begin_layout Plain Layout
8697 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8700 \begin_layout Plain Layout
8706 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8709 \begin_layout Plain Layout
8717 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8720 \begin_layout Plain Layout
8728 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8731 \begin_layout Plain Layout
8737 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8740 \begin_layout Plain Layout
8748 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8751 \begin_layout Plain Layout
8759 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8762 \begin_layout Plain Layout
8768 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8771 \begin_layout Plain Layout
8779 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8782 \begin_layout Plain Layout
8790 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8793 \begin_layout Plain Layout
8799 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8802 \begin_layout Plain Layout
8810 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8813 \begin_layout Plain Layout
8821 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8824 \begin_layout Plain Layout
8830 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8833 \begin_layout Plain Layout
8841 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8844 \begin_layout Plain Layout
8852 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8855 \begin_layout Plain Layout
8861 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8864 \begin_layout Plain Layout
8872 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8875 \begin_layout Plain Layout
8883 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8886 \begin_layout Plain Layout
8892 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8895 \begin_layout Plain Layout
8903 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8906 \begin_layout Plain Layout
8914 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8917 \begin_layout Plain Layout
8923 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8926 \begin_layout Plain Layout
8934 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8937 \begin_layout Plain Layout
8945 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8948 \begin_layout Plain Layout
8954 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8957 \begin_layout Plain Layout
8965 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8968 \begin_layout Plain Layout
8976 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8979 \begin_layout Plain Layout
8985 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8988 \begin_layout Plain Layout
8996 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8999 \begin_layout Plain Layout
9007 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9010 \begin_layout Plain Layout
9016 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9019 \begin_layout Plain Layout
9027 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9030 \begin_layout Plain Layout
9038 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9041 \begin_layout Plain Layout
9047 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9050 \begin_layout Plain Layout
9058 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9061 \begin_layout Plain Layout
9069 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9072 \begin_layout Plain Layout
9078 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9081 \begin_layout Plain Layout
9089 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9092 \begin_layout Plain Layout
9100 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9103 \begin_layout Plain Layout
9109 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9112 \begin_layout Plain Layout
9120 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9123 \begin_layout Plain Layout
9131 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9134 \begin_layout Plain Layout
9140 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9143 \begin_layout Plain Layout
9151 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9154 \begin_layout Plain Layout
9162 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9165 \begin_layout Plain Layout
9171 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9174 \begin_layout Plain Layout
9182 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9185 \begin_layout Plain Layout
9193 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9196 \begin_layout Plain Layout
9202 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9205 \begin_layout Plain Layout
9213 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9216 \begin_layout Plain Layout
9224 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9227 \begin_layout Plain Layout
9233 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9236 \begin_layout Plain Layout
9244 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9247 \begin_layout Plain Layout
9255 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9258 \begin_layout Plain Layout
9264 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9267 \begin_layout Plain Layout
9275 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9278 \begin_layout Plain Layout
9286 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9289 \begin_layout Plain Layout
9295 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9298 \begin_layout Plain Layout
9312 \begin_layout Section
9313 Special Longtable Issues
9314 \begin_inset CommandInset label
9316 name "sec:Special-Longtable-Issues"
9323 \begin_layout Subsection
9324 Longtable Calculation
9328 \begin_layout Plain Layout
9329 Longtables ! Calculation
9337 \begin_layout Standard
9338 LaTeX calculates the height of table pages and their page breaks using so
9340 Chunks are pieces of the tables that are at once in LaTeX's memory.
9341 The default value is historically set to only 20 table rows.
9342 If you are using longtables with many pages this may slow down the creation
9344 You can safely increase the chunk size to values of 100-1000 by adding
9345 this command line to your document preamble:
9348 \begin_layout Standard
9353 setcounter{LTchunksize}{100}
9356 \begin_layout Subsection
9357 Floats and Longtables
9361 \begin_layout Plain Layout
9370 \begin_layout Standard
9371 There might be problems when a float appears on the same page where a longtable
9373 To avoid such situation, add the command
9379 as TeX-Code before your longtable.
9382 \begin_layout Subsection
9387 \begin_layout Plain Layout
9388 Longtables ! Forced Page Breaks
9396 \begin_layout Standard
9397 By default tables are only broken between rows.
9398 If you have a cell with multiples lines and want to have a page break within
9399 the cell, insert the new line command
9400 \begin_inset Quotes eld
9412 \begin_inset Quotes erd
9415 as TeX-Code at this point of the cell where it can be broken.
9424 command you have to insert in TeX-Code so many
9425 \begin_inset Quotes eld
9433 \begin_inset Quotes erd
9436 characters like the number of the following table columns.
9441 is the character to separate table cells.
9442 Write in TeX-Code after each
9446 the content of the corresponding following cell and delete the content
9448 \begin_inset Newline newline
9459 command, insert so many
9463 characters like the number of table columns before the current column.
9465 \begin_inset space ~
9469 \begin_inset CommandInset ref
9471 reference "tab:ForcedPagebreak"
9475 the cell that should be broken is in the second column followed by another
9477 Therefore the following command was inserted in the cell as TeX-Code behind
9479 \begin_inset Quotes eld
9487 \begin_inset Quotes erd
9493 \begin_layout Standard
9503 \begin_inset Newline newline
9509 \begin_layout Standard
9511 \begin_inset Quotes eld
9515 \begin_inset Quotes erd
9518 in the third columns of the row was deleted.
9525 is only needed when a page break should definitively occur at this position,
9526 otherwise it is only a possibility to break.
9527 If your footer row of the longtable has for a certain reason no upper line
9528 but you would have a horizontal line where the cell is broken, use this
9532 \begin_layout Standard
9540 \begin_inset Newline newline
9548 \begin_layout Standard
9549 When the cell to be broken is in the last column, the command
9552 \begin_layout Standard
9562 \begin_layout Standard
9563 must be inserted as TeX-Code at the beginning of the cell.
9564 This assures that the part of the cell that will be displayed on the new
9565 page appears with the full width.
9568 \begin_layout Standard
9570 \begin_inset Tabular
9571 <lyxtabular version="3" rows="38" columns="3">
9572 <features islongtable="true" lastFootEmpty="true">
9573 <column alignment="left" valignment="top" width="0cm">
9574 <column alignment="left" valignment="top" width="3cm">
9575 <column alignment="center" valignment="top" width="0pt">
9576 <row caption="true">
9577 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9580 \begin_layout Plain Layout
9581 \begin_inset Caption
9583 \begin_layout Plain Layout
9584 Table with forced page break in table cell
9585 \begin_inset CommandInset label
9587 name "tab:ForcedPagebreak"
9595 \begin_layout Plain Layout
9596 Table with forced page break in table cell
9611 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9614 \begin_layout Plain Layout
9620 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9623 \begin_layout Plain Layout
9630 <row endfirsthead="true">
9631 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9634 \begin_layout Plain Layout
9637 Example Phone List (ignore the names)
9642 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9645 \begin_layout Plain Layout
9651 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9654 \begin_layout Plain Layout
9661 <row endfirsthead="true">
9662 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9665 \begin_layout Plain Layout
9673 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9676 \begin_layout Plain Layout
9682 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9685 \begin_layout Plain Layout
9694 <row endhead="true">
9695 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9698 \begin_layout Plain Layout
9702 \begin_layout Plain Layout
9706 caption*{Continued Example Phone List}
9720 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9723 \begin_layout Plain Layout
9729 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9732 \begin_layout Plain Layout
9739 <row endhead="true">
9740 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9743 \begin_layout Plain Layout
9751 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9754 \begin_layout Plain Layout
9760 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9763 \begin_layout Plain Layout
9770 <row endhead="true">
9771 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9774 \begin_layout Plain Layout
9782 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9785 \begin_layout Plain Layout
9791 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9794 \begin_layout Plain Layout
9803 <row endfoot="true">
9804 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9807 \begin_layout Plain Layout
9808 continued on next page
9813 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9816 \begin_layout Plain Layout
9822 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9825 \begin_layout Plain Layout
9833 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9836 \begin_layout Plain Layout
9844 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9847 \begin_layout Plain Layout
9853 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9856 \begin_layout Plain Layout
9864 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9867 \begin_layout Plain Layout
9875 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9878 \begin_layout Plain Layout
9884 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9887 \begin_layout Plain Layout
9895 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9898 \begin_layout Plain Layout
9906 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9909 \begin_layout Plain Layout
9915 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9918 \begin_layout Plain Layout
9926 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9929 \begin_layout Plain Layout
9937 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9940 \begin_layout Plain Layout
9946 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9949 \begin_layout Plain Layout
9957 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9960 \begin_layout Plain Layout
9968 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9971 \begin_layout Plain Layout
9977 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9980 \begin_layout Plain Layout
9988 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9991 \begin_layout Plain Layout
9999 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10002 \begin_layout Plain Layout
10008 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10011 \begin_layout Plain Layout
10019 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10022 \begin_layout Plain Layout
10030 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10033 \begin_layout Plain Layout
10039 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10042 \begin_layout Plain Layout
10050 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10053 \begin_layout Plain Layout
10061 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10064 \begin_layout Plain Layout
10070 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10073 \begin_layout Plain Layout
10081 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10084 \begin_layout Plain Layout
10092 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10095 \begin_layout Plain Layout
10101 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10104 \begin_layout Plain Layout
10112 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10115 \begin_layout Plain Layout
10123 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10126 \begin_layout Plain Layout
10132 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10135 \begin_layout Plain Layout
10143 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10146 \begin_layout Plain Layout
10154 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10157 \begin_layout Plain Layout
10163 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10166 \begin_layout Plain Layout
10174 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10177 \begin_layout Plain Layout
10185 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10188 \begin_layout Plain Layout
10194 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10197 \begin_layout Plain Layout
10205 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10208 \begin_layout Plain Layout
10216 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10219 \begin_layout Plain Layout
10225 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10228 \begin_layout Plain Layout
10236 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10239 \begin_layout Plain Layout
10247 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10250 \begin_layout Plain Layout
10256 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10259 \begin_layout Plain Layout
10267 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10270 \begin_layout Plain Layout
10278 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10281 \begin_layout Plain Layout
10287 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10290 \begin_layout Plain Layout
10298 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10301 \begin_layout Plain Layout
10309 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10312 \begin_layout Plain Layout
10318 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10321 \begin_layout Plain Layout
10329 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10332 \begin_layout Plain Layout
10340 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10343 \begin_layout Plain Layout
10349 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10352 \begin_layout Plain Layout
10360 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10363 \begin_layout Plain Layout
10371 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10374 \begin_layout Plain Layout
10380 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10383 \begin_layout Plain Layout
10391 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10394 \begin_layout Plain Layout
10402 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10405 \begin_layout Plain Layout
10411 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10414 \begin_layout Plain Layout
10422 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10425 \begin_layout Plain Layout
10433 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10436 \begin_layout Plain Layout
10442 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10445 \begin_layout Plain Layout
10453 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10456 \begin_layout Plain Layout
10464 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10467 \begin_layout Plain Layout
10473 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10476 \begin_layout Plain Layout
10484 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10487 \begin_layout Plain Layout
10495 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10498 \begin_layout Plain Layout
10504 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10507 \begin_layout Plain Layout
10515 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10518 \begin_layout Plain Layout
10526 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10529 \begin_layout Plain Layout
10531 Fürst von Montecompatri, 11.
10532 Fürst von Sulmona und Vivaro, 10.
10533 Fürst von Rossano, 5.
10534 Herzog von Canemorte, 11.
10535 Herzog von Palombara, 5.
10536 Herzog von Castelchiodato,
10540 \begin_layout Plain Layout
10551 \begin_layout Plain Layout
10559 Herzog von Poggionativo, 11.
10560 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10561 Graf von Valinfreda, 11.
10562 Baron von Cropalati, 11.
10563 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10568 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10571 \begin_layout Plain Layout
10579 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10582 \begin_layout Plain Layout
10590 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10593 \begin_layout Plain Layout
10599 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10602 \begin_layout Plain Layout
10610 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10613 \begin_layout Plain Layout
10621 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10624 \begin_layout Plain Layout
10630 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10633 \begin_layout Plain Layout
10641 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10644 \begin_layout Plain Layout
10652 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10655 \begin_layout Plain Layout
10661 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10664 \begin_layout Plain Layout
10672 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10675 \begin_layout Plain Layout
10683 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10686 \begin_layout Plain Layout
10692 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10695 \begin_layout Plain Layout
10703 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10706 \begin_layout Plain Layout
10714 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10717 \begin_layout Plain Layout
10723 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10726 \begin_layout Plain Layout
10734 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10737 \begin_layout Plain Layout
10745 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10748 \begin_layout Plain Layout
10754 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10757 \begin_layout Plain Layout
10765 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10768 \begin_layout Plain Layout
10776 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10779 \begin_layout Plain Layout
10785 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10788 \begin_layout Plain Layout
10796 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10799 \begin_layout Plain Layout
10807 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10810 \begin_layout Plain Layout
10816 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10819 \begin_layout Plain Layout
10833 \begin_layout Section
10834 Multiple Lines Columns and Rows
10837 \begin_layout Subsection
10838 Multiple Lines in Table Cells
10839 \begin_inset CommandInset label
10841 name "sub:Multiple-Lines-in"
10849 \begin_layout Plain Layout
10850 Multiple Lines in Table Cells
10859 \begin_layout Plain Layout
10868 \begin_layout Standard
10870 \begin_inset Float table
10876 \begin_layout Plain Layout
10877 \begin_inset Caption
10879 \begin_layout Plain Layout
10880 \begin_inset CommandInset label
10882 name "tab:Table-with-multiple"
10886 Table with multiple lines in cells
10894 \begin_layout Plain Layout
10896 \begin_inset Tabular
10897 <lyxtabular version="3" rows="3" columns="3">
10899 <column alignment="center" valignment="middle" width="2.5cm">
10900 <column alignment="center" valignment="middle" width="0">
10901 <column alignment="center" valignment="middle" width="0">
10903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10906 \begin_layout Plain Layout
10908 \begin_inset Newline linebreak
10916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10919 \begin_layout Plain Layout
10925 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10928 \begin_layout Plain Layout
10936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10939 \begin_layout Plain Layout
10945 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10948 \begin_layout Plain Layout
10954 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10957 \begin_layout Plain Layout
10965 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10968 \begin_layout Plain Layout
10974 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10977 \begin_layout Plain Layout
10983 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10986 \begin_layout Plain Layout
11005 \begin_layout Standard
11006 Adjusting a fixed width for a column, enables to enter text as a paragraph
11007 with multiple lines and hyphenations.
11010 \begin_layout Standard
11012 \begin_inset space ~
11016 \begin_inset CommandInset ref
11018 reference "tab:Table-with-multiple"
11022 , create a 3×3 table, mark the first cell and right-click on it.
11023 In the appearing table dialog we set a cell width of 2.5
11024 \begin_inset space \thinspace{}
11027 cm and choose centered for the vertical and horizontal alignment.
11028 The vertical alignment is used for all cells of the row.
11029 As our text is smaller than than 2.5
11030 \begin_inset space \thinspace{}
11033 cm, only one line will appear.
11034 To get two lines, a justified line break (shortcut
11037 arg "newline-insert linebreak"
11041 If the text is wider than the set cell width, it will automatically be
11042 broken to several lines.
11045 \begin_layout Standard
11046 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11047 by LaTeX if it is the first entry.
11048 Therefore you need to insert something, to make the word not being the
11050 So add a horizontal space of 0
11051 \begin_inset space \thinspace{}
11054 pt before the word.
11055 As the space is zero, it doesn't change the output.
11057 \begin_inset space ~
11061 \begin_inset CommandInset ref
11063 reference "tab:Table-with-and"
11070 \begin_layout Standard
11071 \begin_inset Float table
11077 \begin_layout Plain Layout
11078 \begin_inset Caption
11080 \begin_layout Plain Layout
11081 \begin_inset CommandInset label
11083 name "tab:Table-with-and"
11087 Table with and without hyphenation
11095 \begin_layout Plain Layout
11096 \begin_inset space \hfill{}
11100 \begin_inset Tabular
11101 <lyxtabular version="3" rows="3" columns="3">
11103 <column alignment="center" valignment="middle" width="2.5cm">
11104 <column alignment="center" valignment="middle" width="0">
11105 <column alignment="center" valignment="middle" width="0">
11107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11110 \begin_layout Plain Layout
11111 verylongtablecellword
11116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11119 \begin_layout Plain Layout
11125 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11128 \begin_layout Plain Layout
11136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11139 \begin_layout Plain Layout
11145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11148 \begin_layout Plain Layout
11154 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11157 \begin_layout Plain Layout
11165 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11168 \begin_layout Plain Layout
11174 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11177 \begin_layout Plain Layout
11183 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11186 \begin_layout Plain Layout
11198 \begin_inset space \hfill{}
11202 \begin_inset Tabular
11203 <lyxtabular version="3" rows="3" columns="3">
11205 <column alignment="center" valignment="middle" width="2.5cm">
11206 <column alignment="center" valignment="middle" width="0">
11207 <column alignment="center" valignment="middle" width="0">
11209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11212 \begin_layout Plain Layout
11213 \begin_inset space \hspace{}
11217 verylongtablecellword
11222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11225 \begin_layout Plain Layout
11231 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11234 \begin_layout Plain Layout
11242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11245 \begin_layout Plain Layout
11251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11254 \begin_layout Plain Layout
11260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11263 \begin_layout Plain Layout
11271 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11274 \begin_layout Plain Layout
11280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11283 \begin_layout Plain Layout
11289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11292 \begin_layout Plain Layout
11304 \begin_inset space \hfill{}
11315 \begin_layout Subsection
11317 \begin_inset CommandInset label
11319 name "sub:Multicolumns"
11327 \begin_layout Plain Layout
11337 \begin_layout Plain Layout
11338 Table ! Multicolumns
11346 \begin_layout Subsubsection
11350 \begin_layout Standard
11351 To span a cell over multiple columns, mark as much cells within a line that
11352 should be one spanned cell and use either the table-toolbar button
11353 \begin_inset Graphics
11354 filename ../images/tabular-feature_multicolumn.png
11356 scaleBeforeRotation
11362 Edit\SpecialChar \menuseparator
11363 Table\SpecialChar \menuseparator
11366 , or right click on the marked cells and choose multicolumn in the appearing
11367 table dialog under the tab
11374 \begin_layout Standard
11375 Multicolumns have there own cell settings.
11376 That means changing cell borders, cell alignment, and the width only affects
11378 Here is an example table with a multicolumn cell in the first row and one
11379 in the last row without the upper border:
11382 \begin_layout Standard
11384 \begin_inset Tabular
11385 <lyxtabular version="3" rows="3" columns="4">
11386 <features firstHeadTopDL="true" firstHeadBottomDL="true">
11387 <column alignment="center" valignment="top" width="0pt">
11388 <column alignment="center" valignment="middle" width="0">
11389 <column alignment="center" valignment="top" width="0in">
11390 <column alignment="center" valignment="top" width="0pt">
11392 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11395 \begin_layout Plain Layout
11401 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11404 \begin_layout Plain Layout
11410 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11413 \begin_layout Plain Layout
11419 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11422 \begin_layout Plain Layout
11430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11433 \begin_layout Plain Layout
11448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11451 \begin_layout Plain Layout
11457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11460 \begin_layout Plain Layout
11466 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11469 \begin_layout Plain Layout
11477 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11480 \begin_layout Plain Layout
11486 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11489 \begin_layout Plain Layout
11495 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11498 \begin_layout Plain Layout
11504 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11507 \begin_layout Plain Layout
11521 \begin_layout Subsubsection
11522 Multicolumn Calculations
11523 \begin_inset CommandInset label
11525 name "sub:Multicolumn-Calculations"
11533 \begin_layout Plain Layout
11534 Multicolumns ! Calculations
11542 \begin_layout Standard
11543 LyX supports multicolumns directly, but we have to take notice of the cell
11544 width of the columns spanned by the multicolumn cell.
11547 \begin_layout Standard
11548 \begin_inset Float table
11554 \begin_layout Plain Layout
11555 \begin_inset Caption
11557 \begin_layout Plain Layout
11558 \begin_inset CommandInset label
11560 name "tab:Table-with-centered"
11564 Table with centered multicolumn text above two columns that have exactly
11565 half the width of the multicolumn cell
11566 \begin_inset OptArg
11569 \begin_layout Plain Layout
11570 Perfect multicolumn table
11583 \begin_layout Plain Layout
11585 \begin_inset Tabular
11586 <lyxtabular version="3" rows="3" columns="3">
11588 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11589 <column alignment="center" valignment="middle" width="0">
11590 <column alignment="center" valignment="top" width="0">
11592 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11595 \begin_layout Plain Layout
11596 multiple lines multicolumn
11601 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11604 \begin_layout Plain Layout
11610 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11613 \begin_layout Plain Layout
11621 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11624 \begin_layout Plain Layout
11630 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11633 \begin_layout Plain Layout
11639 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11642 \begin_layout Plain Layout
11650 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11653 \begin_layout Plain Layout
11659 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11662 \begin_layout Plain Layout
11668 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11671 \begin_layout Plain Layout
11690 \begin_layout Standard
11691 To create for example Table
11692 \begin_inset space ~
11696 \begin_inset CommandInset ref
11698 reference "tab:Table-with-centered"
11702 , mark the first two cells in the first row of a 3×3 table and right-click
11704 Now choose for this cell
11713 \begin_inset space \thinspace{}
11716 cm in the table dialog.
11717 The spanned columns should have exactly half the width of the multicolumn
11718 cell, so that you would adjust a width of 1.25
11719 \begin_inset space \thinspace{}
11722 cm for the first column.
11723 The second column has then automatically a width of 1.25
11724 \begin_inset space \thinspace{}
11727 cm (multicolumn width - width of first column).
11728 This was done for Table
11729 \begin_inset space ~
11733 \begin_inset CommandInset ref
11735 reference "tab:Table-without-half"
11742 \begin_layout Standard
11743 \begin_inset Float table
11748 \begin_layout Plain Layout
11749 \begin_inset Caption
11751 \begin_layout Plain Layout
11752 \begin_inset CommandInset label
11754 name "tab:Table-without-half"
11758 Table where the spanned table columns have not exactly half the width of
11759 the multicolumn cell
11760 \begin_inset OptArg
11763 \begin_layout Plain Layout
11764 Imperfect multicolumn table
11777 \begin_layout Plain Layout
11779 \begin_inset Tabular
11780 <lyxtabular version="3" rows="3" columns="3">
11782 <column alignment="center" valignment="top" width="1.25cm">
11783 <column alignment="center" valignment="top" width="0">
11784 <column alignment="center" valignment="top" width="0">
11786 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11789 \begin_layout Plain Layout
11790 multiple lines multicolumn
11795 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11798 \begin_layout Plain Layout
11804 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11807 \begin_layout Plain Layout
11815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11818 \begin_layout Plain Layout
11824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11827 \begin_layout Plain Layout
11833 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11836 \begin_layout Plain Layout
11844 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11847 \begin_layout Plain Layout
11853 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11856 \begin_layout Plain Layout
11862 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11865 \begin_layout Plain Layout
11884 \begin_layout Standard
11885 You can see that the first column has not the half width of the multicolumn
11886 cell, it is a bit bigger.
11887 The reason is that the given width of a cell
11888 \begin_inset Formula $W_{g}$
11891 is not its total width
11892 \begin_inset Formula $W_{\mathrm{tot}}$
11895 because a cell is always a bit larger than its given width.
11897 \begin_inset space ~
11901 \begin_inset CommandInset ref
11903 reference "cha:Explanation-of-Equation"
11907 explains it in detail.
11910 \begin_layout Standard
11911 The needed given width
11912 \begin_inset Formula $W_{g\, n}$
11919 columns are spanned can be calculated, so that each column has a total
11921 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11925 \begin_inset Formula \begin{equation}
11926 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11933 \begin_layout Standard
11934 In our case we have
11935 \begin_inset Formula $n=2$
11939 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11942 cm and the default values for the lengths, so that equation
11943 \begin_inset CommandInset ref
11950 \begin_inset Formula \begin{equation}
11951 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11958 \begin_layout Standard
11959 To enable calculations in LaTeX, the LaTeX-package
11963 must be loaded with the document preamble line
11967 \begin_layout Plain Layout
11968 LaTeX-packages ! calc
11976 \begin_layout Standard
11984 \begin_layout Standard
11985 LyX does not allow to calculate lengths in the width-field of the table
11987 Therefore you have to format the column by inserting a LaTeX-argument in
11989 Here is an overview about the arguments:
11992 \begin_layout Itemize
11997 creates cell with a fixed width, its text is vertically top-aligned
12000 \begin_layout Itemize
12005 creates cell with a fixed width, its text is vertically centered
12008 \begin_layout Itemize
12013 creates cell with a fixed width, its text is vertically bottom-aligned
12016 \begin_layout Standard
12017 By entering a LaTeX-argument, all cell settings set in the table dialog
12021 \begin_layout Standard
12022 \begin_inset Note Greyedout
12025 \begin_layout Plain Layout
12030 Due to a bug, LyX shows the overwritten settings anyway.
12038 \begin_layout Standard
12039 As the text should be horizontally centered, the command
12046 You can now enter the following LaTeX-argument for the first spanned column:
12049 \begin_layout Standard
12054 centering}m{1.25cm-6.2pt}
12057 \begin_layout Standard
12062 means, that the commands inside the braces are applied before the cell
12066 \begin_layout Standard
12067 Although we have chosen centered alignment for the text of the multicolumn
12068 cell, it is still left aligned.
12069 This is because LyX only applies the alignment to single columns.
12070 So we have to use for the multicolumn the LaTeX-argument
12073 \begin_layout Standard
12081 \begin_layout Subsection
12086 \begin_layout Plain Layout
12096 \begin_layout Plain Layout
12105 \begin_layout Standard
12106 In contrary to multicolumns multirows are not yet supported by LyX so a
12107 bit of TeX-Code needs to be used.
12108 To use multirows load the LaTeX-package
12116 \begin_layout Plain Layout
12117 LaTeX-packages ! multirow
12122 in your document preamble with the command
12125 \begin_layout Standard
12130 usepackage{multirow}
12133 \begin_layout Standard
12134 Multirows are created with the command
12137 \begin_layout Standard
12142 multirow{number of rows}{cell width}{cell entry}
12145 \begin_layout Standard
12146 To create the following table:
12149 \begin_layout Standard
12154 \begin_layout Plain Layout
12168 \begin_inset Tabular
12169 <lyxtabular version="3" rows="3" columns="3">
12171 <column alignment="center" valignment="top" width="0">
12172 <column alignment="center" valignment="top" width="0">
12173 <column alignment="center" valignment="top" width="0">
12175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12178 \begin_layout Plain Layout
12184 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12187 \begin_layout Plain Layout
12193 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12196 \begin_layout Plain Layout
12204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12207 \begin_layout Plain Layout
12211 \begin_layout Plain Layout
12215 multirow{2}{2.5cm}{
12224 \begin_layout Plain Layout
12236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12239 \begin_layout Plain Layout
12245 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12248 \begin_layout Plain Layout
12256 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12259 \begin_layout Plain Layout
12265 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12268 \begin_layout Plain Layout
12274 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12277 \begin_layout Plain Layout
12292 \begin_layout Plain Layout
12308 \begin_layout Standard
12309 create a 3×3 table.
12310 Unset the upper border of the last cell in the first column.
12311 The multirow is now created in the second row of the first column by inserting
12315 \begin_layout Standard
12320 multirow{2}{2.5cm}{
12323 \begin_layout Standard
12325 According to the command parameters the multirow spans now two rows and
12327 \begin_inset space \thinspace{}
12331 The content of the multirow cell follows outside the TeX-Code box and the
12332 command is finished with a right brace
12336 in another TeX-Code-box behind the text.
12339 \begin_layout Standard
12346 left-aligns its content by default.
12347 To override the default, renew the command
12356 \begin_layout Standard
12368 \begin_layout Standard
12369 in TeX-Code in the document preamble.
12370 Then all entries of multirow cells in the document are centered.
12371 If centering is only needed for several tables, you can renew the command
12372 in an TeX-Code box just before the table instead of the preamble.
12373 If the text should be right-aligned, replace
12386 To return to left-alignment
12395 \begin_layout Section
12397 \begin_inset CommandInset label
12399 name "sec:Formal-Tables"
12407 \begin_layout Plain Layout
12416 \begin_layout Standard
12417 Tables are often typeset in books similar to Table
12418 \begin_inset space ~
12422 \begin_inset CommandInset ref
12424 reference "tab:Example-booktabs-table"
12429 This kind of tables is called
12430 \begin_inset Quotes eld
12438 \begin_inset Quotes erd
12442 To make a table a formal table use the option
12450 tab of the table dialog.
12453 \begin_layout Standard
12454 \begin_inset Float table
12460 \begin_layout Plain Layout
12461 \begin_inset Caption
12463 \begin_layout Plain Layout
12464 \begin_inset CommandInset label
12466 name "tab:Example-booktabs-table"
12470 Example booktabs-table
12478 \begin_layout Plain Layout
12480 \begin_inset Tabular
12481 <lyxtabular version="3" rows="8" columns="4">
12482 <features booktabs="true">
12483 <column alignment="center" valignment="top" width="0">
12484 <column alignment="center" valignment="top" width="0">
12485 <column alignment="center" valignment="top" width="0">
12486 <column alignment="center" valignment="top" width="0">
12488 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12491 \begin_layout Plain Layout
12497 <cell alignment="center" valignment="top" topline="true" usebox="none">
12500 \begin_layout Plain Layout
12502 \begin_inset space \thinspace{}
12510 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
12513 \begin_layout Plain Layout
12515 \begin_inset space \thinspace{}
12523 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12526 \begin_layout Plain Layout
12534 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12537 \begin_layout Plain Layout
12541 \begin_layout Plain Layout
12554 \begin_layout Plain Layout
12563 Detector thickness [µm]
12568 <cell alignment="center" valignment="top" usebox="none">
12571 \begin_layout Plain Layout
12577 <cell alignment="center" valignment="top" usebox="none">
12580 \begin_layout Plain Layout
12586 <cell alignment="center" valignment="top" usebox="none">
12589 \begin_layout Plain Layout
12597 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12600 \begin_layout Plain Layout
12606 <cell alignment="center" valignment="top" topline="true" usebox="none">
12609 \begin_layout Plain Layout
12615 <cell alignment="center" valignment="top" topline="true" usebox="none">
12618 \begin_layout Plain Layout
12624 <cell alignment="center" valignment="top" topline="true" usebox="none">
12627 \begin_layout Plain Layout
12634 <row topspace="default">
12635 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12638 \begin_layout Plain Layout
12639 Spatial resolution [µm]
12644 <cell alignment="center" valignment="top" usebox="none">
12647 \begin_layout Plain Layout
12653 <cell alignment="center" valignment="top" usebox="none">
12656 \begin_layout Plain Layout
12662 <cell alignment="center" valignment="top" usebox="none">
12665 \begin_layout Plain Layout
12672 <row topspace="default">
12673 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12676 \begin_layout Plain Layout
12678 \begin_inset Formula $f_{\mathrm{max}}$
12686 <cell alignment="center" valignment="top" usebox="none">
12689 \begin_layout Plain Layout
12695 <cell alignment="center" valignment="top" usebox="none">
12698 \begin_layout Plain Layout
12704 <cell alignment="center" valignment="top" usebox="none">
12707 \begin_layout Plain Layout
12714 <row topspace="default">
12715 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12718 \begin_layout Plain Layout
12722 \begin_layout Plain Layout
12726 cmidrule(l{10pt}){1-1}
12731 LSF-spatial resolution
12736 <cell alignment="center" valignment="top" usebox="none">
12739 \begin_layout Plain Layout
12745 <cell alignment="center" valignment="top" usebox="none">
12748 \begin_layout Plain Layout
12754 <cell alignment="center" valignment="top" usebox="none">
12757 \begin_layout Plain Layout
12765 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12768 \begin_layout Plain Layout
12774 <cell alignment="center" valignment="top" usebox="none">
12777 \begin_layout Plain Layout
12783 <cell alignment="center" valignment="top" usebox="none">
12786 \begin_layout Plain Layout
12792 <cell alignment="center" valignment="top" usebox="none">
12795 \begin_layout Plain Layout
12803 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12806 \begin_layout Plain Layout
12812 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12815 \begin_layout Plain Layout
12821 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12824 \begin_layout Plain Layout
12830 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12833 \begin_layout Plain Layout
12852 \begin_layout Standard
12853 Spaces to table rows can be added using the
12857 tab of the table dialog as described in section
12858 \begin_inset space ~
12862 \begin_inset CommandInset ref
12864 reference "sub:Row-Spacing"
12871 \begin_layout Standard
12872 In contrary to normal tables, formal tables have no vertical table lines.
12873 The horizontal table lines can be set like for normal tables but they appear
12874 with different width in the output:
12875 \begin_inset Newline newline
12878 The first and the last table line have a default width of 0.08
12879 \begin_inset space \thinspace{}
12882 em while the other lines have a default width of 0.05
12883 \begin_inset space \thinspace{}
12889 \begin_layout Standard
12890 The default widths can be changed with the following preamble lines
12893 \begin_layout Standard
12903 \begin_inset Newline newline
12915 \begin_layout Standard
12916 This example is for the first line, the so called
12921 If you want to change the width for the last line, replace
12930 To change the width for the other lines replace
12939 You can use all units listed in appendix
12940 \begin_inset space ~
12944 \begin_inset CommandInset ref
12946 reference "cha:Units-available-in"
12953 \begin_layout Standard
12954 Lines that don't span over all table columns can be created by setting a
12955 table line for multicolumn cells.
12956 LyX will then internally use the command
12962 to create this line.
12966 \begin_layout Standard
12971 cmidrule[width](trim){startcol-endcol}
12974 \begin_layout Standard
12981 are are currently not supported by LyX so you have to use TeX-Code to be
12989 s can manually be created by inserting the command as TeX-Code as first
12990 cell entry of the first cell of a row.
12991 The line is then drawn in the output above the current row.
12994 \begin_layout Standard
12995 The default for the width is 0.03
12996 \begin_inset space \thinspace{}
13000 Startcol is the number of the column where the line starts and endcol the
13001 column number where the line ends.
13002 The endcol always needs to be specified, also when the line should span
13004 The optional parameter trim could be either
13012 where the trimwidth is also optional.
13013 Using for example the parameter
13017 means that the line is trimmed from its left end by 2
13018 \begin_inset space \thinspace{}
13022 If you don't specify the trimwidth the lines are trimmed by the default
13024 \begin_inset space \thinspace{}
13030 \begin_layout Standard
13031 \begin_inset VSpace bigskip
13035 \begin_inset space ~
13039 \begin_inset CommandInset ref
13041 reference "tab:Example-booktabs-table"
13045 was created using the commands
13048 \begin_layout Standard
13058 \begin_layout Standard
13059 at the beginning of the in the second row and
13062 \begin_layout Standard
13067 cmidrule(l{10pt}){1-1}
13070 \begin_layout Standard
13074 \begin_layout Standard
13075 \begin_inset VSpace bigskip
13081 \begin_layout Standard
13082 You might want to have overlapping
13089 \begin_inset space ~
13093 \begin_inset CommandInset ref
13095 reference "tab:Special-booktabs-table"
13100 This can be achieved with the TeX-Code command
13103 \begin_layout Standard
13111 \begin_layout Standard
13112 The command that was used for the second row of Table
13113 \begin_inset space ~
13117 \begin_inset CommandInset ref
13119 reference "tab:Special-booktabs-table"
13126 \begin_layout Standard
13140 \begin_layout Standard
13141 The command for the sixth row is
13144 \begin_layout Standard
13156 \begin_layout Standard
13157 \begin_inset VSpace bigskip
13163 \begin_layout Standard
13164 If you are anyway not satisfied with the border line spacing, you can use
13165 the following command to produce lines that span over all table columns
13170 \begin_layout Standard
13175 specialrule{width}{space above}{space below}
13178 \begin_layout Standard
13179 For more information about these specialties, we refer to the manual of
13185 \begin_inset CommandInset citation
13195 \begin_layout Plain Layout
13196 LaTeX-packages ! booktabs
13204 \begin_layout Standard
13205 \begin_inset Float table
13211 \begin_layout Plain Layout
13212 \begin_inset Caption
13214 \begin_layout Plain Layout
13215 \begin_inset CommandInset label
13217 name "tab:Special-booktabs-table"
13221 Special booktabs-table
13229 \begin_layout Plain Layout
13231 \begin_inset Tabular
13232 <lyxtabular version="3" rows="8" columns="4">
13233 <features booktabs="true">
13234 <column alignment="center" valignment="top" width="0">
13235 <column alignment="center" valignment="top" width="0">
13236 <column alignment="center" valignment="top" width="0">
13237 <column alignment="center" valignment="top" width="0">
13239 <cell alignment="center" valignment="top" topline="true" usebox="none">
13242 \begin_layout Plain Layout
13248 <cell alignment="center" valignment="top" topline="true" usebox="none">
13251 \begin_layout Plain Layout
13253 \begin_inset space \thinspace{}
13261 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
13264 \begin_layout Plain Layout
13266 \begin_inset space \thinspace{}
13274 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13277 \begin_layout Plain Layout
13285 <cell alignment="center" valignment="top" usebox="none">
13288 \begin_layout Plain Layout
13292 \begin_layout Plain Layout
13305 \begin_layout Plain Layout
13318 \begin_layout Plain Layout
13331 \begin_layout Plain Layout
13340 Detector thickness [µm]
13345 <cell alignment="center" valignment="top" usebox="none">
13348 \begin_layout Plain Layout
13354 <cell alignment="center" valignment="top" usebox="none">
13357 \begin_layout Plain Layout
13363 <cell alignment="center" valignment="top" usebox="none">
13366 \begin_layout Plain Layout
13374 <cell alignment="center" valignment="top" topline="true" usebox="none">
13377 \begin_layout Plain Layout
13383 <cell alignment="center" valignment="top" topline="true" usebox="none">
13386 \begin_layout Plain Layout
13392 <cell alignment="center" valignment="top" topline="true" usebox="none">
13395 \begin_layout Plain Layout
13401 <cell alignment="center" valignment="top" topline="true" usebox="none">
13404 \begin_layout Plain Layout
13411 <row topspace="default">
13412 <cell alignment="center" valignment="top" usebox="none">
13415 \begin_layout Plain Layout
13416 Spatial resolution [µm]
13421 <cell alignment="center" valignment="top" usebox="none">
13424 \begin_layout Plain Layout
13430 <cell alignment="center" valignment="top" usebox="none">
13433 \begin_layout Plain Layout
13439 <cell alignment="center" valignment="top" usebox="none">
13442 \begin_layout Plain Layout
13449 <row topspace="default">
13450 <cell alignment="center" valignment="top" usebox="none">
13453 \begin_layout Plain Layout
13455 \begin_inset Formula $f_{\mathrm{max}}$
13463 <cell alignment="center" valignment="top" usebox="none">
13466 \begin_layout Plain Layout
13472 <cell alignment="center" valignment="top" usebox="none">
13475 \begin_layout Plain Layout
13481 <cell alignment="center" valignment="top" usebox="none">
13484 \begin_layout Plain Layout
13492 <cell alignment="center" valignment="top" topline="true" usebox="none">
13495 \begin_layout Plain Layout
13499 \begin_layout Plain Layout
13512 \begin_layout Plain Layout
13521 LSF-spatial resolution
13526 <cell alignment="center" valignment="top" topline="true" usebox="none">
13529 \begin_layout Plain Layout
13535 <cell alignment="center" valignment="top" topline="true" usebox="none">
13538 \begin_layout Plain Layout
13544 <cell alignment="center" valignment="top" topline="true" usebox="none">
13547 \begin_layout Plain Layout
13555 <cell alignment="center" valignment="top" usebox="none">
13558 \begin_layout Plain Layout
13564 <cell alignment="center" valignment="top" usebox="none">
13567 \begin_layout Plain Layout
13573 <cell alignment="center" valignment="top" usebox="none">
13576 \begin_layout Plain Layout
13582 <cell alignment="center" valignment="top" usebox="none">
13585 \begin_layout Plain Layout
13593 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13596 \begin_layout Plain Layout
13602 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13605 \begin_layout Plain Layout
13611 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13614 \begin_layout Plain Layout
13620 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13623 \begin_layout Plain Layout
13642 \begin_layout Section
13643 Vertical Table Alignment
13647 \begin_layout Plain Layout
13656 \begin_layout Standard
13657 To align tables vertically in a text line the table must be inside a box.
13658 The box can then be vertically aligned as described in section
13659 \begin_inset space ~
13663 \begin_inset CommandInset ref
13665 reference "sec:Box-Dialog"
13672 \begin_layout Standard
13673 In the following example the tables are inside a minipage
13677 \begin_layout Plain Layout
13678 Minipages are described in section
13679 \begin_inset space ~
13683 \begin_inset CommandInset ref
13685 reference "sec:Minipages"
13694 box that has a width of 15
13695 \begin_inset space \thinspace{}
13701 \begin_layout Itemize
13703 \begin_inset Box Frameless
13712 height_special "totalheight"
13715 \begin_layout Plain Layout
13716 \begin_inset Tabular
13717 <lyxtabular version="3" rows="3" columns="3">
13719 <column alignment="center" valignment="top" width="0">
13720 <column alignment="center" valignment="top" width="0">
13721 <column alignment="center" valignment="top" width="0">
13723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13726 \begin_layout Plain Layout
13732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13735 \begin_layout Plain Layout
13741 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13744 \begin_layout Plain Layout
13752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13755 \begin_layout Plain Layout
13761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13764 \begin_layout Plain Layout
13770 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13773 \begin_layout Plain Layout
13781 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13784 \begin_layout Plain Layout
13790 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13793 \begin_layout Plain Layout
13799 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13802 \begin_layout Plain Layout
13822 \begin_layout Plain Layout
13834 \begin_inset Box Frameless
13843 height_special "totalheight"
13846 \begin_layout Plain Layout
13847 \begin_inset Tabular
13848 <lyxtabular version="3" rows="3" columns="3">
13850 <column alignment="center" valignment="top" width="0">
13851 <column alignment="center" valignment="top" width="0">
13852 <column alignment="center" valignment="top" width="0">
13854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13857 \begin_layout Plain Layout
13863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13866 \begin_layout Plain Layout
13872 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13875 \begin_layout Plain Layout
13883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13886 \begin_layout Plain Layout
13892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13895 \begin_layout Plain Layout
13901 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13904 \begin_layout Plain Layout
13912 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13915 \begin_layout Plain Layout
13921 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13924 \begin_layout Plain Layout
13930 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13933 \begin_layout Plain Layout
13953 \begin_layout Plain Layout
13963 \begin_layout Itemize
13965 \begin_inset Box Frameless
13974 height_special "totalheight"
13977 \begin_layout Plain Layout
13978 \begin_inset Tabular
13979 <lyxtabular version="3" rows="3" columns="3">
13981 <column alignment="center" valignment="top" width="0">
13982 <column alignment="center" valignment="top" width="0">
13983 <column alignment="center" valignment="top" width="0">
13985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13988 \begin_layout Plain Layout
13994 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13997 \begin_layout Plain Layout
14003 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14006 \begin_layout Plain Layout
14014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14017 \begin_layout Plain Layout
14023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14026 \begin_layout Plain Layout
14032 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14035 \begin_layout Plain Layout
14043 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14046 \begin_layout Plain Layout
14052 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14055 \begin_layout Plain Layout
14061 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14064 \begin_layout Plain Layout
14083 \begin_layout Itemize
14085 \begin_inset Box Frameless
14094 height_special "totalheight"
14097 \begin_layout Plain Layout
14098 \begin_inset Tabular
14099 <lyxtabular version="3" rows="3" columns="3">
14101 <column alignment="center" valignment="top" width="0">
14102 <column alignment="center" valignment="top" width="0">
14103 <column alignment="center" valignment="top" width="0">
14105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14108 \begin_layout Plain Layout
14114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14117 \begin_layout Plain Layout
14123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14126 \begin_layout Plain Layout
14134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14137 \begin_layout Plain Layout
14143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14146 \begin_layout Plain Layout
14152 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14155 \begin_layout Plain Layout
14163 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14166 \begin_layout Plain Layout
14172 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14175 \begin_layout Plain Layout
14181 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14184 \begin_layout Plain Layout
14204 \begin_layout Plain Layout
14216 \begin_inset Box Frameless
14225 height_special "totalheight"
14228 \begin_layout Plain Layout
14229 \begin_inset Tabular
14230 <lyxtabular version="3" rows="3" columns="3">
14232 <column alignment="center" valignment="top" width="0">
14233 <column alignment="center" valignment="top" width="0">
14234 <column alignment="center" valignment="top" width="0">
14236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14239 \begin_layout Plain Layout
14245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14248 \begin_layout Plain Layout
14254 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14257 \begin_layout Plain Layout
14265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14268 \begin_layout Plain Layout
14274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14277 \begin_layout Plain Layout
14283 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14286 \begin_layout Plain Layout
14294 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14297 \begin_layout Plain Layout
14303 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14306 \begin_layout Plain Layout
14312 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14315 \begin_layout Plain Layout
14335 \begin_layout Plain Layout
14345 \begin_layout Standard
14346 As you can see, the content of the first and last table row is not correctly
14347 aligned with the text line where the table is in.
14348 To get this alignment, the minipage box must be set into a raisebox
14352 \begin_layout Plain Layout
14353 Raiseboxes are described in section
14354 \begin_inset space ~
14358 \begin_inset CommandInset ref
14360 reference "sub:Vertical-Alignment"
14370 In the example above the second table in the first item is aligned using
14371 the TeX-Code-command
14374 \begin_layout Standard
14384 \begin_layout Standard
14386 Behind the box the closing brace
14390 is inserted as TeX-Code.
14391 For the second table in the last item the command
14394 \begin_layout Standard
14404 \begin_layout Standard
14408 \begin_layout Standard
14409 \begin_inset Note Greyedout
14412 \begin_layout Plain Layout
14417 The alignment of the table row content to the surrounding text line is
14419 The needed factor of the
14425 command for this alignment depends on the document font, the font size,
14426 and the table line thickness.
14434 \begin_layout Section
14436 \begin_inset CommandInset label
14438 name "sec:Colored-Tables"
14446 \begin_layout Plain Layout
14455 \begin_layout Subsection
14460 \begin_layout Plain Layout
14461 Table Color ! for Cells
14470 \begin_layout Plain Layout
14471 Color ! for Table Cells
14479 \begin_layout Standard
14480 \begin_inset Float table
14486 \begin_layout Plain Layout
14487 \begin_inset Caption
14489 \begin_layout Plain Layout
14490 \begin_inset CommandInset label
14492 name "tab:Table-colored-without"
14496 Table colored without using the package
14501 \begin_inset OptArg
14504 \begin_layout Plain Layout
14505 Table without colortbl
14518 \begin_layout Plain Layout
14520 \begin_inset Tabular
14521 <lyxtabular version="3" rows="3" columns="3">
14523 <column alignment="center" valignment="top" width="0">
14524 <column alignment="center" valignment="top" width="0">
14525 <column alignment="center" valignment="top" width="0">
14527 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14530 \begin_layout Plain Layout
14538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14541 \begin_layout Plain Layout
14549 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14552 \begin_layout Plain Layout
14562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14565 \begin_layout Plain Layout
14573 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14576 \begin_layout Plain Layout
14584 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14587 \begin_layout Plain Layout
14597 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14600 \begin_layout Plain Layout
14608 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14611 \begin_layout Plain Layout
14619 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14622 \begin_layout Plain Layout
14643 \begin_layout Standard
14644 If you only need colored text, mark the cells and choose a color in the
14647 Edit\SpecialChar \menuseparator
14649 \begin_inset space ~
14655 This was used to create Table
14656 \begin_inset space ~
14660 \begin_inset CommandInset ref
14662 reference "tab:Table-colored-without"
14667 In any other case you have to use the LaTeX-package
14675 \begin_layout Plain Layout
14676 LaTeX-packages ! colortbl
14684 \begin_layout Standard
14688 \begin_layout Plain Layout
14698 \begin_inset Note Note
14701 \begin_layout Plain Layout
14702 The following section part will only be displayed when the LaTeX-package
14715 \begin_layout Standard
14716 To create colored tables,
14720 must be loaded in the preamble with the line
14723 \begin_layout Standard
14728 usepackage{colortbl}
14731 \begin_layout Standard
14732 The color of a column is adjusted with the command
14735 \begin_layout Standard
14740 columncolor{name of color}
14743 \begin_layout Standard
14749 More about the command
14753 is described in section
14754 \begin_inset space ~
14758 \begin_inset CommandInset ref
14760 reference "sub:Multicolumn-Calculations"
14767 \begin_layout Standard
14768 The following color names are predefined:
14771 \begin_layout Standard
14805 \begin_layout Standard
14806 \begin_inset VSpace medskip
14812 \begin_layout Standard
14813 You can also define your own color with the command
14816 \begin_layout Standard
14821 definecolor{color name}{color model}{color values}
14824 \begin_layout Standard
14825 The color model can be
14828 \begin_layout Labeling
14829 \labelwidthstring 00.00.0000
14830 cmyk: cyan, magenta, yellow, black
14833 \begin_layout Labeling
14834 \labelwidthstring 00.00.0000
14835 rgb: red, green blue
14838 \begin_layout Labeling
14839 \labelwidthstring 00.00.0000
14843 \begin_layout Standard
14844 and the color values are comma separated numbers between 0 and 1 describing
14845 the factor for the corresponding color of the color model.
14848 \begin_layout Standard
14850 \begin_inset space \thinspace{}
14854 \begin_inset space \space{}
14861 " in the preamble with
14864 \begin_layout Standard
14869 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14872 \begin_layout Standard
14880 \begin_layout Standard
14885 definecolor{lightgray}{gray}{0.8}
14888 \begin_layout Standard
14889 \begin_inset VSpace medskip
14895 \begin_layout Standard
14896 Lines are colored with the command
14899 \begin_layout Standard
14904 rowcolor{name of color}
14907 \begin_layout Standard
14908 and cells are colored with the command
14911 \begin_layout Standard
14916 cellcolor{name of color}
14919 \begin_layout Standard
14920 Both commands are inserted at the beginning of a cell as TeX-Code.
14923 \begin_layout Standard
14924 To color characters in the table, mark the cells and use the LyX menu
14926 Edit\SpecialChar \menuseparator
14928 \begin_inset space ~
14934 If a cell contains TeX-Code mark only the characters, otherwise the colored
14935 TeX-Code will cause LaTeX-errors.
14938 \begin_layout Standard
14939 \begin_inset Note Greyedout
14942 \begin_layout Plain Layout
14947 Not all DVI-viewers are able to display self-defined colors.
14955 \begin_layout Standard
14956 \begin_inset VSpace bigskip
14962 \begin_layout Standard
14964 \begin_inset space ~
14968 \begin_inset CommandInset ref
14970 reference "tab:Table-colored-using"
14974 do the following: The color of the first column should be
14982 \begin_layout Standard
14987 columncolor{darkgreen}
14992 \begin_layout Standard
14993 as LaTeX-argument for this column.
14994 The first row should be blue, therefore the TeX-Code command
14997 \begin_layout Standard
15005 \begin_layout Standard
15006 is inserted to the first cell of this row.
15007 Note that this overwrites the column color for the first cell.
15008 The last cell of the last row is colored magenta by inserting the TeX-Code
15012 \begin_layout Standard
15020 \begin_layout Standard
15021 The characters could now be colored using the menu
15023 Edit\SpecialChar \menuseparator
15025 \begin_inset space ~
15033 \begin_layout Standard
15034 \begin_inset Float table
15040 \begin_layout Plain Layout
15041 \begin_inset Caption
15043 \begin_layout Plain Layout
15044 \begin_inset CommandInset label
15046 name "tab:Table-colored-using"
15050 Table colored using the package
15055 \begin_inset OptArg
15058 \begin_layout Plain Layout
15059 Table with colortbl
15072 \begin_layout Plain Layout
15074 \begin_inset Tabular
15075 <lyxtabular version="3" rows="3" columns="3">
15077 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15078 <column alignment="center" valignment="top" width="0">
15079 <column alignment="center" valignment="top" width="0">
15081 <cell alignment="center" valignment="top" usebox="none">
15084 \begin_layout Plain Layout
15088 \begin_layout Plain Layout
15104 <cell alignment="center" valignment="top" usebox="none">
15107 \begin_layout Plain Layout
15115 <cell alignment="center" valignment="top" usebox="none">
15118 \begin_layout Plain Layout
15128 <cell alignment="center" valignment="top" usebox="none">
15131 \begin_layout Plain Layout
15139 <cell alignment="center" valignment="top" usebox="none">
15142 \begin_layout Plain Layout
15150 <cell alignment="center" valignment="top" usebox="none">
15153 \begin_layout Plain Layout
15163 <cell alignment="center" valignment="top" usebox="none">
15166 \begin_layout Plain Layout
15174 <cell alignment="center" valignment="top" usebox="none">
15177 \begin_layout Plain Layout
15185 <cell alignment="center" valignment="top" usebox="none">
15188 \begin_layout Plain Layout
15192 \begin_layout Plain Layout
15221 \begin_layout Standard
15225 \begin_layout Plain Layout
15235 \begin_inset Note Note
15238 \begin_layout Plain Layout
15239 The following will be displayed when the LaTeX-package
15251 \begin_layout Standard
15252 You need to install the package
15256 to see the content of this section in the output.
15259 \begin_layout Standard
15263 \begin_layout Plain Layout
15275 \begin_layout Subsection
15280 \begin_layout Plain Layout
15281 Table Color ! for Lines
15290 \begin_layout Plain Layout
15291 Color ! for Table Lines
15299 \begin_layout Standard
15300 As described in section
15301 \begin_inset space ~
15305 \begin_inset CommandInset ref
15307 reference "sub:Line-Thickness"
15311 , the line thickness for all lines in a table can be adjusted with the length
15320 \begin_inset space \thinspace{}
15323 pt for all tables of this section.
15327 \begin_layout Plain Layout
15333 arrayrulewidth}{1.5pt}
15341 \begin_layout Standard
15342 To color vertical lines for example with green, create the following column
15343 format in the document preamble, according to the description in section
15344 \begin_inset space ~
15348 \begin_inset CommandInset ref
15350 reference "sub:Customized-Format"
15357 \begin_layout Standard
15362 newcolumntype{W}{!{
15369 \begin_layout Standard
15371 \begin_inset space ~
15375 \begin_inset CommandInset ref
15377 reference "tab:Table-with-vertical-colored"
15385 was used for the last column and
15389 for the other columns.
15392 \begin_layout Standard
15393 If you want to have several colors, define more column formats.
15396 \begin_layout Standard
15397 \begin_inset Float table
15403 \begin_layout Plain Layout
15404 \begin_inset Caption
15406 \begin_layout Plain Layout
15407 \begin_inset CommandInset label
15409 name "tab:Table-with-vertical-colored"
15413 Table with colored vertical lines
15421 \begin_layout Plain Layout
15423 \begin_inset Tabular
15424 <lyxtabular version="3" rows="3" columns="3">
15426 <column alignment="center" valignment="top" width="0" special="Wc">
15427 <column alignment="center" valignment="top" width="0" special="Wc">
15428 <column alignment="center" valignment="top" width="0" special="WcW">
15430 <cell alignment="center" valignment="top" topline="true" usebox="none">
15433 \begin_layout Plain Layout
15439 <cell alignment="center" valignment="top" topline="true" usebox="none">
15442 \begin_layout Plain Layout
15448 <cell alignment="center" valignment="top" topline="true" usebox="none">
15451 \begin_layout Plain Layout
15459 <cell alignment="center" valignment="top" topline="true" usebox="none">
15462 \begin_layout Plain Layout
15468 <cell alignment="center" valignment="top" topline="true" usebox="none">
15471 \begin_layout Plain Layout
15477 <cell alignment="center" valignment="top" topline="true" usebox="none">
15480 \begin_layout Plain Layout
15488 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15491 \begin_layout Plain Layout
15497 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15500 \begin_layout Plain Layout
15506 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15509 \begin_layout Plain Layout
15528 \begin_layout Standard
15529 \begin_inset VSpace bigskip
15532 To color horizontal lines for example with red, like in Table
15533 \begin_inset space ~
15537 \begin_inset CommandInset ref
15539 reference "tab:Table-with-horizontal-colored"
15543 , insert these commands in TeX-Code before the table or table float:
15546 \begin_layout Standard
15556 \begin_inset Newline newline
15564 \begin_inset Newline newline
15571 \begin_layout Plain Layout
15582 arrayrulecolor{red}
15586 arrayrulecolor{black}}
15589 \begin_layout Standard
15593 \begin_layout Plain Layout
15604 \begin_layout Plain Layout
15613 \begin_layout Plain Layout
15617 arrayrulecolor{red}
15621 arrayrulecolor{black}}
15627 \begin_inset Float table
15633 \begin_layout Plain Layout
15634 \begin_inset Caption
15636 \begin_layout Plain Layout
15637 \begin_inset CommandInset label
15639 name "tab:Table-with-horizontal-colored"
15643 Table with colored horizontal lines
15651 \begin_layout Plain Layout
15653 \begin_inset Tabular
15654 <lyxtabular version="3" rows="3" columns="3">
15656 <column alignment="center" valignment="top" width="0">
15657 <column alignment="center" valignment="top" width="0">
15658 <column alignment="center" valignment="top" width="0">
15660 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15663 \begin_layout Plain Layout
15669 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15672 \begin_layout Plain Layout
15678 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15681 \begin_layout Plain Layout
15689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15692 \begin_layout Plain Layout
15698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15701 \begin_layout Plain Layout
15707 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15710 \begin_layout Plain Layout
15718 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15721 \begin_layout Plain Layout
15727 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15730 \begin_layout Plain Layout
15736 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15739 \begin_layout Plain Layout
15758 \begin_layout Standard
15759 To return to the default line color black, insert this command in TeX-Code
15760 behind the table or table float:
15763 \begin_layout Standard
15775 \begin_layout Standard
15777 \begin_inset space ~
15781 \begin_inset CommandInset ref
15783 reference "tab:Table-with-colored"
15787 is an example with colored vertical and horizontal lines.
15790 \begin_layout Standard
15791 \begin_inset Float table
15797 \begin_layout Plain Layout
15798 \begin_inset Caption
15800 \begin_layout Plain Layout
15801 \begin_inset CommandInset label
15803 name "tab:Table-with-colored"
15807 Table with colored lines
15815 \begin_layout Plain Layout
15817 \begin_inset Tabular
15818 <lyxtabular version="3" rows="3" columns="3">
15820 <column alignment="center" valignment="top" width="0" special="Wc">
15821 <column alignment="center" valignment="top" width="0" special="Wc">
15822 <column alignment="center" valignment="top" width="0" special="WcW">
15824 <cell alignment="center" valignment="top" topline="true" usebox="none">
15827 \begin_layout Plain Layout
15833 <cell alignment="center" valignment="top" topline="true" usebox="none">
15836 \begin_layout Plain Layout
15842 <cell alignment="center" valignment="top" topline="true" usebox="none">
15845 \begin_layout Plain Layout
15853 <cell alignment="center" valignment="top" topline="true" usebox="none">
15856 \begin_layout Plain Layout
15862 <cell alignment="center" valignment="top" topline="true" usebox="none">
15865 \begin_layout Plain Layout
15871 <cell alignment="center" valignment="top" topline="true" usebox="none">
15874 \begin_layout Plain Layout
15881 <row topspace="default">
15882 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15885 \begin_layout Plain Layout
15891 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15894 \begin_layout Plain Layout
15900 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15903 \begin_layout Plain Layout
15922 \begin_layout Standard
15926 \begin_layout Plain Layout
15942 \begin_layout Standard
15946 \begin_layout Plain Layout
15952 arrayrulewidth}{0.4pt}
15960 \begin_layout Section
15961 Table Customization
15965 \begin_layout Plain Layout
15966 Table Customization
15975 \begin_layout Plain Layout
15976 Table ! Customization
15984 \begin_layout Subsection
15986 \begin_inset CommandInset label
15988 name "sub:Row-Spacing"
15996 \begin_layout Plain Layout
15997 Table Customization ! Row Spacing
16005 \begin_layout Standard
16006 You can add vertical space to table rows in the
16010 tab of the table dialog.
16011 You find there three possibilities:
16014 \begin_layout Description
16016 \begin_inset space ~
16020 \begin_inset space ~
16023 row will add space above the characters of the table row.
16024 If the table is a formal table
16028 \begin_layout Plain Layout
16029 Formal tables are explained in section
16030 \begin_inset space ~
16034 \begin_inset CommandInset ref
16036 reference "sec:Formal-Tables"
16045 LyX will insert as default 0.5
16046 \begin_inset space \thinspace{}
16050 For normal tables the inserted space will unfortunately destroy the vertical
16051 table lines as in the following table:
16052 \begin_inset VSpace medskip
16056 \begin_inset Newline newline
16060 \begin_inset space \hspace*{}
16065 \begin_inset space \hfill{}
16069 \begin_inset Tabular
16070 <lyxtabular version="3" rows="3" columns="1">
16072 <column alignment="center" valignment="top" width="0">
16074 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16077 \begin_layout Plain Layout
16084 <row topspace="3mm">
16085 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16088 \begin_layout Plain Layout
16090 \begin_inset space \thinspace{}
16093 mm space top of row
16100 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16103 \begin_layout Plain Layout
16115 \begin_inset space \hfill{}
16119 \begin_inset space \hspace*{}
16124 \begin_inset VSpace medskip
16128 \begin_inset Newline newline
16131 So inserting space to the top of row for normal tables is only useful when
16132 you don't have vertical lines.
16135 \begin_layout Description
16137 \begin_inset space ~
16141 \begin_inset space ~
16144 row will add space below the characters of the table row.
16145 If the table is a formal table LyX will insert as default 0.5
16146 \begin_inset space \thinspace{}
16149 em space, for normal tables the default size is 2
16150 \begin_inset space \thinspace{}
16156 \begin_layout Description
16158 \begin_inset space ~
16161 rows adds space between the current and the following row.
16162 If the table is a formal table LyX will insert as default 0.5
16163 \begin_inset space \thinspace{}
16167 For normal tables the inserted space will unfortunately destroy the vertical
16168 table lines as in the following table:
16169 \begin_inset VSpace medskip
16173 \begin_inset Newline newline
16177 \begin_inset space \hspace*{}
16182 \begin_inset space \hfill{}
16186 \begin_inset Tabular
16187 <lyxtabular version="3" rows="3" columns="1">
16189 <column alignment="center" valignment="top" width="0">
16191 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16194 \begin_layout Plain Layout
16201 <row interlinespace="3mm">
16202 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16205 \begin_layout Plain Layout
16206 \begin_inset Formula $\downarrow$
16210 \begin_inset space \thinspace{}
16213 mm space between row
16214 \begin_inset Formula $\downarrow$
16224 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16227 \begin_layout Plain Layout
16228 \begin_inset Formula $\uparrow$
16232 \begin_inset space \thinspace{}
16235 mm space between row
16236 \begin_inset Formula $\uparrow$
16250 \begin_inset space \hfill{}
16254 \begin_inset space \hspace*{}
16259 \begin_inset VSpace medskip
16263 \begin_inset Newline newline
16266 So inserting space between rows for normal tables is only useful when you
16267 don't have vertical lines.
16270 \begin_layout Standard
16271 \begin_inset VSpace bigskip
16274 When you want to add extra height to all cells of all tables, you can do
16275 this with the following preamble lines:
16278 \begin_layout Standard
16283 @ifundefined{extrarowheight}
16284 \begin_inset Newline newline
16291 \begin_layout Plain Layout
16302 usepackage{array}}{}
16303 \begin_inset Newline newline
16310 extrarowheight}{height}
16313 \begin_layout Standard
16314 But this has the disadvantage that the cell texts are no longer exactly
16315 vertically centered.
16320 will be loaded automatically by LyX when you use self defined table formats.
16321 To avoid that it is loaded twice the command
16327 is used in the above command.)
16330 \begin_layout Standard
16331 In case you are using font sizes larger than the normal size, the table
16332 borders are often too close to the letters.
16333 This can be corrected by inserting the command
16339 in TeX code at the beginning of a table row.
16341 \begin_inset space ~
16345 \begin_inset CommandInset ref
16347 reference "tab:Vertical-alignment-of"
16351 visualizes the effect.
16354 \begin_layout Standard
16356 \begin_inset Float table
16362 \begin_layout Plain Layout
16363 \begin_inset Caption
16365 \begin_layout Plain Layout
16366 \begin_inset CommandInset label
16368 name "tab:Vertical-alignment-of"
16372 Vertical alignment of text with large font sizes.
16380 \begin_layout Plain Layout
16381 \begin_inset space \hfill{}
16385 \begin_inset Float table
16390 \begin_layout Plain Layout
16391 \begin_inset Caption
16393 \begin_layout Plain Layout
16402 \begin_layout Plain Layout
16405 \begin_inset Tabular
16406 <lyxtabular version="3" rows="6" columns="1">
16408 <column alignment="left" valignment="top" width="0">
16410 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16413 \begin_layout Plain Layout
16421 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16424 \begin_layout Plain Layout
16434 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16437 \begin_layout Plain Layout
16447 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16450 \begin_layout Plain Layout
16460 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16463 \begin_layout Plain Layout
16473 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16476 \begin_layout Plain Layout
16495 \begin_inset space \hfill{}
16499 \begin_inset Float table
16504 \begin_layout Plain Layout
16505 \begin_inset Caption
16507 \begin_layout Plain Layout
16508 Table using the command
16522 \begin_layout Plain Layout
16525 \begin_inset Tabular
16526 <lyxtabular version="3" rows="6" columns="1">
16528 <column alignment="left" valignment="top" width="0">
16530 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16533 \begin_layout Plain Layout
16541 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16544 \begin_layout Plain Layout
16550 \begin_layout Plain Layout
16566 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16569 \begin_layout Plain Layout
16575 \begin_layout Plain Layout
16591 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16594 \begin_layout Plain Layout
16600 \begin_layout Plain Layout
16616 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16619 \begin_layout Plain Layout
16625 \begin_layout Plain Layout
16641 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16644 \begin_layout Plain Layout
16650 \begin_layout Plain Layout
16677 \begin_inset space \hfill{}
16688 \begin_layout Subsection
16689 Special Cell Alignment
16693 \begin_layout Plain Layout
16694 Table Customization ! Special Cell Alignment
16702 \begin_layout Standard
16703 Sometimes it looks better when the cell entries of a column are aligned
16704 with a special character, e.
16705 \begin_inset space \thinspace{}
16709 \begin_inset space \space{}
16712 with the decimal separator as in Table
16713 \begin_inset space ~
16717 \begin_inset CommandInset ref
16719 reference "tab:Table-cells-of"
16726 \begin_layout Standard
16727 \begin_inset Float table
16733 \begin_layout Plain Layout
16734 \begin_inset Caption
16736 \begin_layout Plain Layout
16737 \begin_inset CommandInset label
16739 name "tab:Table-cells-of"
16743 Table cells of a column aligned with the decimal separator.
16751 \begin_layout Plain Layout
16753 \begin_inset Tabular
16754 <lyxtabular version="3" rows="4" columns="2">
16756 <column alignment="right" valignment="top" width="0">
16757 <column alignment="left" valignment="top" width="0" special="@{}l">
16759 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16762 \begin_layout Plain Layout
16768 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16771 \begin_layout Plain Layout
16779 <cell alignment="center" valignment="top" usebox="none">
16782 \begin_layout Plain Layout
16788 <cell alignment="center" valignment="top" usebox="none">
16791 \begin_layout Plain Layout
16799 <cell alignment="center" valignment="top" usebox="none">
16802 \begin_layout Plain Layout
16808 <cell alignment="center" valignment="top" usebox="none">
16811 \begin_layout Plain Layout
16819 <cell alignment="center" valignment="top" usebox="none">
16822 \begin_layout Plain Layout
16828 <cell alignment="center" valignment="top" usebox="none">
16831 \begin_layout Plain Layout
16850 \begin_layout Standard
16851 This table was created with a 4×2 table.
16852 The heading is a centered multicolumn.
16853 The first column is right-aligned and contains the digits before the decimal
16854 point and the decimal point.
16855 The second column is left aligned and contains the digits after the decimal
16857 To omit the space that is normally between two table columns, use the following
16858 LaTeX-argument for the second column:
16861 \begin_layout Standard
16867 \begin_layout Standard
16869 \begin_inset space ~
16873 \begin_inset CommandInset ref
16875 reference "tab:Several-table-cell"
16879 shows some example alignments.
16880 For the alignment with the relation sign, you must add the second smallest
16881 math-space at the beginning of the last column to get the correct space
16882 surrounding the relation sign.
16885 \begin_layout Standard
16886 \begin_inset Float table
16892 \begin_layout Plain Layout
16893 \begin_inset Caption
16895 \begin_layout Plain Layout
16896 \begin_inset CommandInset label
16898 name "tab:Several-table-cell"
16902 Several table cell alignments.
16910 \begin_layout Plain Layout
16912 \begin_inset Tabular
16913 <lyxtabular version="3" rows="4" columns="6">
16915 <column alignment="right" valignment="top" width="0">
16916 <column alignment="left" valignment="top" width="0" special="@{}l">
16917 <column alignment="right" valignment="top" width="0">
16918 <column alignment="left" valignment="top" width="0" special="@{}l">
16919 <column alignment="right" valignment="top" width="0">
16920 <column alignment="left" valignment="top" width="0" special="@{}l">
16922 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16925 \begin_layout Plain Layout
16931 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16934 \begin_layout Plain Layout
16940 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16943 \begin_layout Plain Layout
16949 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16952 \begin_layout Plain Layout
16958 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16961 \begin_layout Plain Layout
16967 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16970 \begin_layout Plain Layout
16978 <cell alignment="center" valignment="top" usebox="none">
16981 \begin_layout Plain Layout
16987 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16990 \begin_layout Plain Layout
16992 \begin_inset space \thinspace{}
17000 <cell alignment="center" valignment="top" usebox="none">
17003 \begin_layout Plain Layout
17004 \begin_inset Formula $10\cdot$
17012 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17015 \begin_layout Plain Layout
17016 \begin_inset Formula $10^{\mbox{-}17}$
17024 <cell alignment="center" valignment="top" usebox="none">
17027 \begin_layout Plain Layout
17028 \begin_inset Formula $\Gamma(t)\propto$
17036 <cell alignment="center" valignment="top" usebox="none">
17039 \begin_layout Plain Layout
17040 \begin_inset Formula $\:\Upsilon(t)$
17050 <cell alignment="center" valignment="top" usebox="none">
17053 \begin_layout Plain Layout
17059 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17062 \begin_layout Plain Layout
17064 \begin_inset space \thinspace{}
17072 <cell alignment="center" valignment="top" usebox="none">
17075 \begin_layout Plain Layout
17076 \begin_inset Formula $5.78\cdot$
17084 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17087 \begin_layout Plain Layout
17088 \begin_inset Formula $10^{7}$
17096 <cell alignment="center" valignment="top" usebox="none">
17099 \begin_layout Plain Layout
17100 \begin_inset Formula $A\ne$
17108 <cell alignment="center" valignment="top" usebox="none">
17111 \begin_layout Plain Layout
17112 \begin_inset Formula $\: B_{\mathrm{red}}$
17122 <cell alignment="center" valignment="top" usebox="none">
17125 \begin_layout Plain Layout
17131 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17134 \begin_layout Plain Layout
17136 \begin_inset space \thinspace{}
17144 <cell alignment="center" valignment="top" usebox="none">
17147 \begin_layout Plain Layout
17149 \begin_inset Formula $33.5\cdot$
17157 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17160 \begin_layout Plain Layout
17161 \begin_inset Formula $10^{4}$
17169 <cell alignment="center" valignment="top" usebox="none">
17172 \begin_layout Plain Layout
17173 \begin_inset Formula $\sin(\alpha)\ge$
17181 <cell alignment="center" valignment="top" usebox="none">
17184 \begin_layout Plain Layout
17185 \begin_inset Formula $\:\sin(\beta)$
17206 \begin_layout Standard
17207 \begin_inset VSpace bigskip
17210 There is also the LaTeX-package
17218 \begin_layout Plain Layout
17219 LaTeX-packages ! dcolumn
17224 that provides table cell alignments.
17225 But this unfortunately treats the cell entries as math and does not allow
17226 formulas in table cells: The first column of Table
17227 \begin_inset space ~
17231 \begin_inset CommandInset ref
17233 reference "tab:Several-table-cell"
17241 like the first column in Table
17242 \begin_inset space ~
17246 \begin_inset CommandInset ref
17248 reference "tab:Alignments-when"
17252 and only with some tricks like the expected.
17253 The alignment of the second and third column of Table
17254 \begin_inset space ~
17258 \begin_inset CommandInset ref
17260 reference "tab:Several-table-cell"
17264 is not possible with
17271 \begin_layout Standard
17272 \begin_inset Newpage newpage
17278 \begin_layout Standard
17279 \begin_inset Float table
17285 \begin_layout Plain Layout
17286 \begin_inset Caption
17288 \begin_layout Plain Layout
17289 \begin_inset CommandInset label
17291 name "tab:Alignments-when"
17295 Alignments when LaTeX-package dcolumn is used.
17296 For all column alignments tricks have to be used to get the output.
17304 \begin_layout Plain Layout
17306 \begin_inset Tabular
17307 <lyxtabular version="3" rows="4" columns="3">
17309 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
17310 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
17311 <column alignment="center" valignment="top" width="0" special="D{+}{\,}{9.7}">
17313 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17316 \begin_layout Plain Layout
17322 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17325 \begin_layout Plain Layout
17331 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17334 \begin_layout Plain Layout
17342 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17345 \begin_layout Plain Layout
17347 \begin_inset space \thinspace{}
17355 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17358 \begin_layout Plain Layout
17360 \begin_inset space \thinspace{}
17364 \begin_inset Formula $\mbox{bottles}$
17372 <cell alignment="center" valignment="top" usebox="none">
17375 \begin_layout Plain Layout
17380 \begin_layout Plain Layout
17390 \begin_inset Formula $\mbox{bottles}$
17400 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17403 \begin_layout Plain Layout
17405 \begin_inset space \thinspace{}
17413 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17416 \begin_layout Plain Layout
17418 \begin_inset space \thinspace{}
17422 \begin_inset Formula $\mbox{Pixels}$
17430 <cell alignment="center" valignment="top" usebox="none">
17433 \begin_layout Plain Layout
17438 \begin_layout Plain Layout
17448 \begin_inset Formula $\mbox{Pixels}$
17458 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17461 \begin_layout Plain Layout
17463 \begin_inset space \thinspace{}
17471 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17474 \begin_layout Plain Layout
17476 \begin_inset space \thinspace{}
17480 \begin_inset Formula $\mbox{cm}$
17488 <cell alignment="center" valignment="top" usebox="none">
17491 \begin_layout Plain Layout
17496 \begin_layout Plain Layout
17506 \begin_inset Formula $\mbox{cm}$
17527 \begin_layout Subsection
17528 Customized Cell/Column Format
17529 \begin_inset CommandInset label
17531 name "sub:Customized-Format"
17539 \begin_layout Plain Layout
17540 Table Customization ! Cell/Column Format
17548 \begin_layout Standard
17549 Calculating the needed width for spanned columns like in section
17550 \begin_inset space ~
17554 \begin_inset CommandInset ref
17556 reference "sub:Multicolumn-Calculations"
17560 is very annoying if you have several tables with multicolumn cells.
17561 To make life easier, you can define a cell/column format in the preamble,
17562 so that it can be used in all tables of the document.
17563 The format is defined with the command
17566 \begin_layout Standard
17571 newcolumntype{name of format}[number of arguments]{commands}
17574 \begin_layout Standard
17575 The format name may only consist of one letter.
17600 are predefined and cannot be used.
17601 But all letters are allowed as capitals.
17604 \begin_layout Standard
17605 \begin_inset VSpace medskip
17611 \begin_layout Standard
17612 For vertically and horizontally centered multicolumn cells with a fixed
17613 width you can define the cell format
17616 \begin_layout Standard
17621 newcolumntype{M}[1]{>{
17628 \begin_layout Standard
17635 avoids the problem of hyphenating the first word, as described in section
17636 \begin_inset space ~
17640 \begin_inset CommandInset ref
17642 reference "sub:Multiple-Lines-in"
17647 Now you can simply enter
17650 \begin_layout Standard
17656 \begin_layout Standard
17657 as LaTeX-argument in the table dialog to create a multicolumn.
17660 \begin_layout Standard
17661 \begin_inset VSpace bigskip
17667 \begin_layout Standard
17668 For cells spanned by a multicolumn cell, you can define the format
17671 \begin_layout Standard
17676 newcolumntype{S}[2]{>{
17681 \begin_inset Newline newline
17688 \begin_layout Plain Layout
17703 \begin_layout Plain Layout
17714 arrayrulewidth)*(1-#2))/#2}}
17717 \begin_layout Standard
17718 This format uses equation
17719 \begin_inset CommandInset ref
17725 to calculate the needed width so that each spanned cell has the same width.
17728 \begin_layout Standard
17732 \begin_layout Standard
17735 S{width of multicolumn cell}{number of spanned columns}
17738 \begin_layout Standard
17739 as LaTeX-argument of the column.
17742 \begin_layout Standard
17743 \begin_inset VSpace bigskip
17749 \begin_layout Standard
17750 For colored columns, you can define
17753 \begin_layout Standard
17758 newcolumntype{K}[1]{>{
17765 \begin_layout Standard
17767 \begin_inset Quotes eld
17771 \begin_inset Quotes erd
17774 at the end creates a column with a flexible width whose text is horizontally
17779 \begin_layout Standard
17785 \begin_layout Standard
17789 \begin_layout Standard
17790 \begin_inset VSpace bigskip
17796 \begin_layout Standard
17798 \begin_inset space ~
17802 \begin_inset CommandInset ref
17804 reference "tab:Table-using-user-defined"
17808 use the LaTeX-arguments
17811 \begin_layout Standard
17817 \begin_layout Standard
17818 for the first column and the multicolumn,
17821 \begin_layout Standard
17827 \begin_layout Standard
17828 for the the last column, and
17831 \begin_layout Standard
17837 \begin_layout Standard
17838 for the cells in the second column.
17841 \begin_layout Standard
17842 \begin_inset Float table
17848 \begin_layout Plain Layout
17849 \begin_inset Caption
17851 \begin_layout Plain Layout
17852 \begin_inset CommandInset label
17854 name "tab:Table-using-user-defined"
17858 Table using user-defined table formats
17866 \begin_layout Plain Layout
17868 \begin_inset Tabular
17869 <lyxtabular version="3" rows="3" columns="4">
17871 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17872 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17873 <column alignment="center" valignment="middle" width="0">
17874 <column alignment="center" valignment="middle" width="0" special="K{red}">
17876 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17879 \begin_layout Plain Layout
17880 verylongtablecellword
17885 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17888 \begin_layout Plain Layout
17889 multiple lines multicolumn
17894 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17897 \begin_layout Plain Layout
17903 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17906 \begin_layout Plain Layout
17914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17917 \begin_layout Plain Layout
17923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17926 \begin_layout Plain Layout
17932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17935 \begin_layout Plain Layout
17941 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17944 \begin_layout Plain Layout
17952 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17955 \begin_layout Plain Layout
17961 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17964 \begin_layout Plain Layout
17970 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17973 \begin_layout Plain Layout
17979 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17982 \begin_layout Plain Layout
18001 \begin_layout Subsection
18003 \begin_inset CommandInset label
18005 name "sub:Line-Thickness"
18013 \begin_layout Plain Layout
18014 Table Customization ! Line Thickness
18022 \begin_layout Standard
18023 The line thickness for all lines in a table can be adjusted with the length
18031 To set for example a line thickness of 1.5
18032 \begin_inset space \thinspace{}
18036 \begin_inset space ~
18040 \begin_inset CommandInset ref
18042 reference "tab:Table-with-1.5"
18046 , insert the command
18049 \begin_layout Standard
18056 arrayrulewidth}{1.5pt}
18059 \begin_layout Standard
18060 in TeX-Code before the table or table float.
18061 The changed thickness is valid for all following tables.
18062 To use the default value again, set
18069 \begin_inset space \thinspace{}
18072 pt in TeX-Code behind the table or table float.
18075 \begin_layout Standard
18079 \begin_layout Plain Layout
18085 arrayrulewidth}{1.5pt}
18091 \begin_inset Float table
18096 \begin_layout Plain Layout
18097 \begin_inset Caption
18099 \begin_layout Plain Layout
18100 \begin_inset CommandInset label
18102 name "tab:Table-with-1.5"
18107 \begin_inset space \thinspace{}
18118 \begin_layout Plain Layout
18120 \begin_inset Tabular
18121 <lyxtabular version="3" rows="3" columns="3">
18123 <column alignment="center" valignment="top" width="0">
18124 <column alignment="center" valignment="top" width="0">
18125 <column alignment="center" valignment="top" width="0">
18127 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18130 \begin_layout Plain Layout
18136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18139 \begin_layout Plain Layout
18145 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18148 \begin_layout Plain Layout
18156 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18159 \begin_layout Plain Layout
18165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18168 \begin_layout Plain Layout
18174 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18177 \begin_layout Plain Layout
18185 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18188 \begin_layout Plain Layout
18194 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18197 \begin_layout Plain Layout
18203 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18206 \begin_layout Plain Layout
18226 \begin_layout Plain Layout
18232 arrayrulewidth}{0.4pt}
18240 \begin_layout Standard
18241 \begin_inset VSpace bigskip
18244 To set the line thickness to 1.5
18245 \begin_inset space \thinspace{}
18248 pt only for horizontal lines, like in Table
18249 \begin_inset space ~
18253 \begin_inset CommandInset ref
18255 reference "tab:Table-with-horizontal"
18259 , insert these commands in TeX-Code before the table or table float:
18262 \begin_layout Standard
18272 \begin_inset Newline newline
18280 \begin_inset Newline newline
18289 arrayrulewidth 1.5pt}
18290 \begin_inset Newline newline
18301 arrayrulewidth 0.4pt}}
18304 \begin_layout Standard
18305 To return to the default line thickness, insert this command in TeX-Code
18306 behind the table or table float:
18309 \begin_layout Standard
18321 \begin_layout Standard
18325 \begin_layout Plain Layout
18336 \begin_layout Plain Layout
18345 \begin_layout Plain Layout
18353 arrayrulewidth 1.5pt}
18356 \begin_layout Plain Layout
18366 arrayrulewidth 0.4pt}}
18372 \begin_inset Float table
18377 \begin_layout Plain Layout
18378 \begin_inset Caption
18380 \begin_layout Plain Layout
18381 \begin_inset CommandInset label
18383 name "tab:Table-with-horizontal"
18388 \begin_inset space \thinspace{}
18391 pt thick horizontal lines
18399 \begin_layout Plain Layout
18401 \begin_inset Tabular
18402 <lyxtabular version="3" rows="3" columns="3">
18404 <column alignment="center" valignment="top" width="0">
18405 <column alignment="center" valignment="top" width="0">
18406 <column alignment="center" valignment="top" width="0">
18408 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18411 \begin_layout Plain Layout
18417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18420 \begin_layout Plain Layout
18426 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18429 \begin_layout Plain Layout
18437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18440 \begin_layout Plain Layout
18446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18449 \begin_layout Plain Layout
18455 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18458 \begin_layout Plain Layout
18466 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18469 \begin_layout Plain Layout
18475 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18478 \begin_layout Plain Layout
18484 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18487 \begin_layout Plain Layout
18507 \begin_layout Plain Layout
18523 \begin_layout Standard
18524 \begin_inset VSpace bigskip
18527 To set the line thickness to 1.5
18528 \begin_inset space \thinspace{}
18531 pt only for vertical lines, create the following column format in the document
18532 preamble, according to the description in section
18533 \begin_inset space ~
18537 \begin_inset CommandInset ref
18539 reference "sub:Customized-Format"
18546 \begin_layout Standard
18551 newcolumntype{V}{!{
18553 vrule width 1.5pt}}
18556 \begin_layout Standard
18558 \begin_inset space ~
18562 \begin_inset CommandInset ref
18564 reference "tab:Table-with-vertical"
18571 \begin_layout Standard
18577 \begin_layout Standard
18578 was used for the last column and
18581 \begin_layout Standard
18587 \begin_layout Standard
18588 for the other columns.
18591 \begin_layout Standard
18592 \begin_inset Float table
18597 \begin_layout Plain Layout
18598 \begin_inset Caption
18600 \begin_layout Plain Layout
18601 \begin_inset CommandInset label
18603 name "tab:Table-with-vertical"
18608 \begin_inset space \thinspace{}
18611 pt thick vertical lines
18619 \begin_layout Plain Layout
18621 \begin_inset Tabular
18622 <lyxtabular version="3" rows="3" columns="3">
18624 <column alignment="center" valignment="top" width="0" special="Vc">
18625 <column alignment="center" valignment="top" width="0" special="Vc">
18626 <column alignment="center" valignment="top" width="0" special="VcV">
18628 <cell alignment="center" valignment="top" topline="true" usebox="none">
18631 \begin_layout Plain Layout
18637 <cell alignment="center" valignment="top" topline="true" usebox="none">
18640 \begin_layout Plain Layout
18646 <cell alignment="center" valignment="top" topline="true" usebox="none">
18649 \begin_layout Plain Layout
18657 <cell alignment="center" valignment="top" topline="true" usebox="none">
18660 \begin_layout Plain Layout
18666 <cell alignment="center" valignment="top" topline="true" usebox="none">
18669 \begin_layout Plain Layout
18675 <cell alignment="center" valignment="top" topline="true" usebox="none">
18678 \begin_layout Plain Layout
18686 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18689 \begin_layout Plain Layout
18695 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18698 \begin_layout Plain Layout
18704 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18707 \begin_layout Plain Layout
18726 \begin_layout Subsection
18731 \begin_layout Plain Layout
18732 Table Customization ! Dashed Lines
18740 \begin_layout Standard
18744 \begin_layout Plain Layout
18754 \begin_inset Note Note
18757 \begin_layout Plain Layout
18758 The following section will only be displayed when the LaTeX-package
18770 \begin_layout Standard
18771 \begin_inset Float table
18777 \begin_layout Plain Layout
18778 \begin_inset Caption
18780 \begin_layout Plain Layout
18781 \begin_inset CommandInset label
18783 name "tab:Table-with-dashed"
18787 Table with dashed lines
18795 \begin_layout Plain Layout
18797 \begin_inset Tabular
18798 <lyxtabular version="3" rows="5" columns="5">
18800 <column alignment="center" valignment="top" width="0">
18801 <column alignment="center" valignment="top" width="0">
18802 <column alignment="center" valignment="top" width="0" special=":c">
18803 <column alignment="center" valignment="top" width="0">
18804 <column alignment="center" valignment="top" width="0">
18806 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18809 \begin_layout Plain Layout
18815 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18818 \begin_layout Plain Layout
18824 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18827 \begin_layout Plain Layout
18833 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18836 \begin_layout Plain Layout
18842 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18845 \begin_layout Plain Layout
18853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18856 \begin_layout Plain Layout
18862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18865 \begin_layout Plain Layout
18871 <cell alignment="center" valignment="top" topline="true" usebox="none">
18874 \begin_layout Plain Layout
18880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18883 \begin_layout Plain Layout
18889 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18892 \begin_layout Plain Layout
18900 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18903 \begin_layout Plain Layout
18907 \begin_layout Plain Layout
18921 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18924 \begin_layout Plain Layout
18930 <cell alignment="center" valignment="top" usebox="none">
18933 \begin_layout Plain Layout
18939 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18942 \begin_layout Plain Layout
18948 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18951 \begin_layout Plain Layout
18959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18962 \begin_layout Plain Layout
18966 \begin_layout Plain Layout
18980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18983 \begin_layout Plain Layout
18989 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
18992 \begin_layout Plain Layout
18998 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19001 \begin_layout Plain Layout
19007 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19010 \begin_layout Plain Layout
19018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19021 \begin_layout Plain Layout
19027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19030 \begin_layout Plain Layout
19036 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19039 \begin_layout Plain Layout
19045 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19048 \begin_layout Plain Layout
19054 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19057 \begin_layout Plain Layout
19076 \begin_layout Standard
19077 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
19078 As prerequisite the LaTeX-package
19086 \begin_layout Plain Layout
19087 LaTeX-packages ! arydshln
19092 must be loaded in the document preamble with the command
19095 \begin_layout Standard
19100 usepackage{arydshln}
19103 \begin_layout Standard
19104 To make a vertical line dashed, enter the colon
19105 \begin_inset Quotes eld
19109 \begin_inset Quotes erd
19112 together with the character for the horizontal alignment as LaTeX-argument
19113 in the table cell dialog.
19116 \begin_layout Standard
19117 For a horizontal dashed line add the command
19120 \begin_layout Standard
19128 \begin_layout Standard
19129 in TeX-Code as first element of the first cell in the table row.
19132 \begin_layout Standard
19133 For dashed multicolumn lines use the command
19136 \begin_layout Standard
19141 cdashline{line number
19146 \begin_layout Standard
19147 in TeX-Code as first element of the first cell in the table row.
19148 If you have for example a multicolumn spanning over columns 2 to 4 and
19149 you want to have a dashed line above, add the command
19152 \begin_layout Standard
19160 \begin_layout Standard
19161 as first element of the first cell in the row of the multicolumn.
19164 \begin_layout Standard
19165 \begin_inset VSpace bigskip
19171 \begin_layout Standard
19173 \begin_inset space ~
19177 \begin_inset CommandInset ref
19179 reference "tab:Table-with-dashed"
19184 \begin_inset Quotes eld
19192 \begin_inset Quotes erd
19195 as LaTeX-argument of the third column.
19196 The TeX-Code command
19202 was inserted to the first cell of the third row and the the TeX-Code command
19203 \begin_inset Newline newline
19212 was inserted to the first cell of the fourth row.
19215 \begin_layout Standard
19216 \begin_inset Note Greyedout
19219 \begin_layout Plain Layout
19224 The used LaTeX-package
19228 is apparently not compatible with the LaTeX-package
19236 \begin_layout Plain Layout
19237 LaTeX-packages ! colortbl
19242 that is used for colored tables in section
19243 \begin_inset space ~
19247 \begin_inset CommandInset ref
19249 reference "sec:Colored-Tables"
19254 That means colored tables cannot have dashed lines.
19262 \begin_layout Standard
19266 \begin_layout Plain Layout
19276 \begin_inset Note Note
19279 \begin_layout Plain Layout
19280 The following will be displayed when the LaTeX-package
19292 \begin_layout Standard
19293 You need to install the package
19297 to see the content of this section in the output.
19300 \begin_layout Standard
19304 \begin_layout Plain Layout
19316 \begin_layout Chapter
19321 \begin_layout Plain Layout
19330 \begin_layout Section
19332 \begin_inset CommandInset label
19334 name "sec:FloatIntroduction"
19342 \begin_layout Plain Layout
19343 Floats ! Introduction
19351 \begin_layout Standard
19352 A float is a block of text associated with some sort of label, which doesn't
19353 have a fixed location.
19355 \begin_inset Quotes eld
19359 \begin_inset Quotes erd
19362 forward or backward a page or two, to wherever it fits best.
19370 \begin_inset space ~
19375 are also floats, because they can float to the next page when there are
19376 too many notes at the page.
19379 \begin_layout Standard
19380 Floats allow a high quality layout.
19381 Images and tables can evenly be spread to the pages to avoid white space
19382 and pages without text.
19383 As the floating often destroys the context between the text and the image/table
19384 , every float can be referenced in the text.
19385 Floats are therefore numbered.
19386 Referencing is described in section
19387 \begin_inset space ~
19391 \begin_inset CommandInset ref
19393 reference "sec:Referencing-Floats"
19400 \begin_layout Standard
19401 To insert a float, use the menu
19403 Insert\SpecialChar \menuseparator
19411 inset, a box with a label.
19412 The label will automatically be translated to the document language in
19414 Behind the label you can insert the caption text.
19415 The image or table is inserted above or below the caption in a separate
19416 paragraph within the float.
19417 More about the caption placement is described in section
19418 \begin_inset space ~
19422 \begin_inset CommandInset ref
19424 reference "sec:Caption-Placement"
19429 To keep your LyX-document readable, you can open and close the float box
19430 by left-clicking on the box label.
19431 A closed float box looks like this:
19432 \begin_inset Graphics
19433 filename clipart/floatQt4.png
19435 scaleBeforeRotation
19439 – a gray button with a red label.
19442 \begin_layout Standard
19443 It is recommended to insert floats as a separate paragraph to avoid possible
19444 LaTeX-errors that can occur when the surrounding text is specially formatted.
19447 \begin_layout Standard
19448 Existing figures or tables can be put into a float by marking them and then
19449 pressing the corresponding toolbar button for a new float.
19452 \begin_layout Section
19456 \begin_layout Standard
19457 Besides figure and table floats that are described in section
19458 \begin_inset space ~
19462 \begin_inset CommandInset ref
19464 reference "sec:Figure-Floats"
19469 \begin_inset CommandInset ref
19471 reference "sec:Table-Floats"
19475 , respectively, LyX offers the float types
19486 \begin_layout Subsection
19491 \begin_layout Plain Layout
19492 Floats ! Algorithms
19500 \begin_layout Standard
19501 \begin_inset Float algorithm
19507 \begin_layout Plain Layout
19508 \begin_inset Caption
19510 \begin_layout Plain Layout
19511 \begin_inset CommandInset label
19513 name "alg:Example-Algorithm-float"
19517 Example Algorithm float
19525 \begin_layout LyX-Code
19527 \begin_inset Newline newline
19530 Sum:= Sum + A(I); /*comment*/
19531 \begin_inset Newline newline
19535 \begin_inset VSpace -4mm
19546 \begin_layout Standard
19547 This float type is inserted with the menu
19549 Insert\SpecialChar \menuseparator
19550 Floats\SpecialChar \menuseparator
19554 It is used for program codes and descriptions of algorithms and can be
19555 seen as an alternative to program code listings that are explained in chapter
19556 \begin_inset space ~
19560 \begin_inset CommandInset ref
19562 reference "cha:Program-Code-Listings"
19567 A possible environment for algorithms is the
19571 , described in LyX's
19577 \begin_inset space ~
19581 \begin_inset CommandInset ref
19583 reference "alg:Example-Algorithm-float"
19587 is an example of an algorithm float where -4
19588 \begin_inset space \thinspace{}
19591 mm vertical space was added at the end of the float to have the bottom rule
19592 exactly below the last text line.
19595 \begin_layout Standard
19596 The float label is not automatically translated into the document language.
19597 If your document is not in English, you have to do this manually by adding
19598 the following line to the document preamble
19603 \begin_layout Standard
19608 floatname{algorithm}{your
19609 \begin_inset space ~
19615 \begin_layout Standard
19619 \begin_inset space ~
19625 \begin_inset Quotes eld
19633 \begin_inset Quotes erd
19639 \begin_layout Standard
19640 To insert the list of algorithms you can use the menu
19642 Insert\SpecialChar \menuseparator
19644 \begin_inset space \thinspace{}
19648 \begin_inset space \thinspace{}
19651 TOC\SpecialChar \menuseparator
19654 when your document has the same language as LyX's menu names.
19655 In other cases use this command in TeX-Code instead:
19658 \begin_layout Standard
19663 listof{algorithm}{your
19664 \begin_inset space ~
19670 \begin_layout Standard
19674 \begin_inset space ~
19680 \begin_inset Quotes eld
19688 \begin_inset Quotes erd
19694 \begin_layout Standard
19695 Algorithm floats are not by default numbered in the scheme
19696 \begin_inset Quotes eld
19700 \begin_inset Quotes erd
19703 like it is the case for table and figure floats in many document-classes.
19704 To number algorithm floats in the same scheme, add this command to your
19708 \begin_layout Standard
19713 numberwithin{algorithm}{chapter}
19716 \begin_layout Standard
19717 To be able to use the command
19726 \begin_inset space ~
19731 in the document settings the option
19734 \begin_inset space ~
19738 \begin_inset space ~
19742 \begin_inset space ~
19750 \begin_layout Subsection
19755 \begin_layout Plain Layout
19756 Floats ! Wrap Floats
19764 \begin_layout Standard
19765 \begin_inset Wrap figure
19772 \begin_layout Plain Layout
19773 \begin_inset Graphics
19774 filename clipart/mobius.eps
19776 scaleBeforeRotation
19777 rotateOrigin center
19784 \begin_layout Plain Layout
19785 \begin_inset Caption
19787 \begin_layout Plain Layout
19788 \begin_inset CommandInset label
19790 name "fig:This-is-a"
19794 This is a figure wrap float.
19804 This float type is used if you want to wrap text around a figure or table
19805 so that it only occupies some fraction of the column width.
19806 It can be inserted using the menu
19808 Insert\SpecialChar \menuseparator
19809 Floats\SpecialChar \menuseparator
19811 \begin_inset space ~
19815 \begin_inset space ~
19823 \begin_inset space ~
19827 \begin_inset space ~
19832 if the LaTeX-package
19840 \begin_layout Plain Layout
19841 LaTeX-packages ! wrapfig
19845 \begin_layout Plain Layout
19863 \begin_layout Plain Layout
19864 Installing a LaTeX-package is explained it in the
19867 \begin_inset space ~
19877 The settings of the float can be modified by right-clicking on the float
19879 The mandatory settings are the float
19892 that specifies how much the float is set into the paragraph
19893 \begin_inset space \thinspace{}
19897 \begin_inset space \thinspace{}
19900 page margin, and the
19903 \begin_inset space ~
19908 that specifies how many text lines the float will approximately need.
19909 The line span is often hard to be approximated, so better only use it when
19910 you encounter float placement problems.
19911 You can furthermore decide if LaTeX is allowed to let the float float within
19912 the paragraph or to surrounding paragraphs.
19914 \begin_inset space ~
19918 \begin_inset CommandInset ref
19920 reference "fig:This-is-a"
19924 is an example text wrap float with a width of 40
19925 \begin_inset space \thinspace{}
19929 \begin_inset space \thinspace{}
19932 cm overhang, set to the left.
19936 \begin_layout Plain Layout
19937 Available units are explained in appendix
19938 \begin_inset space ~
19942 \begin_inset CommandInset ref
19944 reference "cha:Units-available-in"
19956 \begin_layout Standard
19957 \begin_inset Note Greyedout
19960 \begin_layout Plain Layout
19966 \begin_inset space ~
19969 wrap float floats are fragile! E.
19970 \begin_inset space \thinspace{}
19974 \begin_inset space \space{}
19977 having a figure too close to the bottom of the page can mess things up in
19978 the way that the float doesn't appear in the output or that it is placed
19979 over some other text.
19987 \begin_layout Standard
19991 \begin_layout Itemize
19992 Wrap floats should not be placed in paragraphs that run over a page break.
19993 That means that wrap floats should better be inserted to the exact place
19994 when the document is nearly finished and you are able to estimate where
19995 page breaks will appear.
19998 \begin_layout Itemize
19999 Wrap floats should either be placed in an own paragraph before the paragraph
20000 where they should wrap into or within a paragraph.
20003 \begin_layout Itemize
20004 Wrap floats in consecutive paragraphs may cause troubles, so assure that
20005 there is a text paragraph between them as separator.
20008 \begin_layout Itemize
20009 Wrap floats are not allowed in section headings or tables.
20012 \begin_layout Section
20017 \begin_layout Plain Layout
20026 \begin_layout Standard
20027 Floats are usually numbered either independent from the sections the floats
20028 are in, or in the scheme
20029 \begin_inset Quotes eld
20033 \begin_inset Quotes erd
20037 \begin_inset Quotes eld
20041 \begin_inset Quotes erd
20045 This depends on the used document class.
20048 \begin_layout Standard
20049 To change the section independent numbering, you can use this command in
20050 the document preamble:
20053 \begin_layout Standard
20065 \begin_layout Standard
20072 is the command that prints the table number, for figure floats, the command
20086 prints in the command above the table number as small roman number.
20089 \begin_layout Standard
20090 To change the numbering scheme for example to
20091 \begin_inset Quotes eld
20095 \begin_inset Quotes erd
20098 , use this command in the preamble:
20101 \begin_layout Standard
20106 numberwithin{table}{subsection}
20109 \begin_layout Standard
20110 To be able to use the command
20119 \begin_inset space ~
20124 in the document settings the option
20127 \begin_inset space ~
20131 \begin_inset space ~
20135 \begin_inset space ~
20143 \begin_layout Standard
20144 Please also have a look at section
20145 \begin_inset space ~
20149 \begin_inset CommandInset ref
20151 reference "sub:Footnote-Numbering"
20155 for the details and important notes about the numbering commands.
20158 \begin_layout Section
20160 \begin_inset CommandInset label
20162 name "sec:Referencing-Floats"
20170 \begin_layout Plain Layout
20171 Floats ! References
20180 \begin_layout Plain Layout
20181 References ! to Floats
20189 \begin_layout Standard
20190 To reference a float, insert a label into its caption using the menu
20192 Insert\SpecialChar \menuseparator
20195 or the toolbar button
20196 \begin_inset Graphics
20197 filename ../images/label-insert.png
20199 scaleBeforeRotation
20204 A grey label box like this one:
20205 \begin_inset Graphics
20206 filename clipart/labelQt4.png
20208 scaleBeforeRotation
20212 will be inserted and the label window pops up asking for the label text.
20213 LyX offers as text the first words of the caption with a prefix.
20214 The prefix depends on the float type, e.
20215 \begin_inset space \thinspace{}
20219 \begin_inset space \space{}
20222 for figure floats the prefix will be "
20229 \begin_layout Standard
20230 The label is used as anchor and name for the reference.
20231 You can refer to the label using the menu
20233 Insert\SpecialChar \menuseparator
20236 or the toolbar button
20237 \begin_inset Graphics
20238 filename ../images/dialog-show-new-inset_ref.png
20240 scaleBeforeRotation
20245 A grey cross-reference box like this one:
20246 \begin_inset Graphics
20247 filename clipart/referenceQt4.png
20249 scaleBeforeRotation
20253 will be inserted and the cross-reference window appear showing all labels
20255 If you have multiple LyX-documents opened, choose the one you are working
20256 on from the drop-list at the top of the dialog.
20257 You can now sort the labels alphabetically and then choose one.
20258 At the position of the cross-reference box the float number will appear
20262 \begin_layout Standard
20263 It is recommended to use a protected space between the cross-reference name
20264 and its number to avoid line breaks between them.
20265 If a cross-reference refers to a non-existing label, you will see two question
20266 marks in the output instead of the reference.
20269 \begin_layout Standard
20270 You can change labels at any time by clicking on the label box.
20271 References to the changed label will automatically change its link to the
20272 new label text, so that you don't need to take care about this.
20275 \begin_layout Standard
20279 \begin_inset space ~
20283 \begin_inset space ~
20288 in the cross-reference window sets the cursor before the referred label.
20289 The button text changes then to Go
20290 \begin_inset space ~
20293 Back and you can use it to set the cursor back to the cross-reference.
20294 Right-clicking on a cross-reference box also sets the cursor before the
20295 referenced label but without a possibility to go back.
20298 \begin_layout Subsection
20299 Cross-Reference Formats
20300 \begin_inset CommandInset label
20302 name "sub:Cross-Reference-Formats"
20310 \begin_layout Plain Layout
20311 References ! Formats
20319 \begin_layout Standard
20320 There are six varieties of cross-references:
20323 \begin_layout Description
20324 <reference>: prints the float number, this is the default:
20325 \begin_inset CommandInset ref
20327 reference "fig:Two-distorted-images"
20334 \begin_layout Description
20335 (<reference>): prints the float number within two parentheses, this is the
20336 style normally used to reference formulas, especially when the reference
20338 \begin_inset Quotes eld
20342 \begin_inset Quotes erd
20346 \begin_inset CommandInset ref
20355 \begin_layout Description
20356 <page>: prints the page number: Page
20357 \begin_inset space ~
20361 \begin_inset CommandInset ref
20362 LatexCommand pageref
20363 reference "fig:Two-distorted-images"
20370 \begin_layout Description
20372 \begin_inset space ~
20376 \begin_inset space ~
20379 <page>: prints the text "on page" and the page number:
20380 \begin_inset CommandInset ref
20381 LatexCommand vpageref
20382 reference "fig:Two-distorted-images"
20389 \begin_layout Description
20391 \begin_inset space ~
20395 \begin_inset space ~
20399 \begin_inset space ~
20402 <page>: prints the float number, the text "on page", and the page number:
20404 \begin_inset CommandInset ref
20406 reference "fig:Two-distorted-images"
20413 \begin_layout Description
20415 \begin_inset space ~
20418 reference: prints a self defined cross-reference format.
20420 \begin_inset Note Greyedout
20423 \begin_layout Plain Layout
20428 This feature is only available when you have the LaTeX-package
20440 \begin_layout Standard
20441 Note that the style <page> won't print the page number if the label is on
20442 the previous, the same, or the next page.
20444 \begin_inset space \thinspace{}
20448 \begin_inset space \space{}
20452 \begin_inset Quotes eld
20460 \begin_inset Quotes erd
20466 \begin_layout Standard
20467 The number and current page of the referred document part in the output,
20468 is automatically calculated by LaTeX.
20469 The varieties are adjusted in the field
20473 of the cross-reference window, that appear when you click on the cross-referenc
20477 \begin_layout Subsection
20478 Automatic Reference Naming
20482 \begin_layout Plain Layout
20483 References ! Automatic Reference Naming
20491 \begin_layout Standard
20500 \begin_layout Plain Layout
20501 LaTeX-packages ! hyperref
20506 , that is enabled in the
20514 dialog, provides a very useful feature that cross-references automatically
20515 include the name of the referenced floats (or text parts like
20520 So you will save to write e.
20521 \begin_inset space \thinspace{}
20525 \begin_inset space \space{}
20529 \begin_inset Quotes eld
20533 \begin_inset Quotes erd
20536 before every reference to a figure.
20537 To use this feature, enable
20541 and insert this line to the LaTeX preamble:
20544 \begin_layout Standard
20560 \begin_layout Standard
20561 When you prefer other reference names than the default ones, for example
20562 you want instead of
20563 \begin_inset Quotes eld
20567 \begin_inset Quotes erd
20571 \begin_inset Quotes eld
20575 \begin_inset space \thinspace{}
20579 \begin_inset Quotes eld
20582 , you can redefine the name by inserting this to the preamble:
20585 \begin_layout Standard
20596 sectionautorefname}
20597 \begin_inset Newline newline
20604 \begin_layout Plain Layout
20618 \begin_layout Standard
20619 When you are using another document language than English, replace
20620 \begin_inset Newline newline
20635 , where *** is the name of the used language.
20638 \begin_layout Standard
20639 To get automatic names, but not for certain reference types, for example
20640 not for equations, use this preamble code:
20643 \begin_layout Standard
20651 \begin_inset Newline newline
20661 \begin_inset Newline newline
20672 equationautorefname}
20673 \begin_inset Newline newline
20680 \begin_layout Plain Layout
20696 \begin_layout Standard
20697 More about this topic can be found in
20702 \begin_inset CommandInset citation
20711 \begin_layout Standard
20712 \begin_inset Note Greyedout
20715 \begin_layout Plain Layout
20720 Automatic reference naming cannot be used when you use cross-references
20724 \begin_inset space ~
20729 style, as described in section
20730 \begin_inset space ~
20734 \begin_inset CommandInset ref
20736 reference "sub:Cross-Reference-Formats"
20748 \begin_layout Standard
20753 manual is an example where automatic reference naming is used.
20756 \begin_layout Subsection
20758 \begin_inset CommandInset label
20760 name "sub:Reference-Position"
20768 \begin_layout Plain Layout
20769 References ! Reference Position
20777 \begin_layout Standard
20786 \begin_layout Plain Layout
20787 LaTeX-packages ! hyperref
20800 dialog to link cross-references in the output, you will see that clicking
20801 on an image float reference jumps to the image label.
20802 The caption will be the first text part on the screen, so that you cannot
20803 see the image without scrolling.
20804 This is because the reference link anchor is placed at the position of
20806 With the use of the package
20814 \begin_layout Plain Layout
20815 LaTeX-packages ! hypcap
20820 , which is part of the LaTeX-package
20828 \begin_layout Plain Layout
20829 LaTeX-packages ! oberdiek
20834 , the link anchor is placed at the beginning of a float.
20835 To use this feature for figure floats, load
20839 in the document preamble with the line
20842 \begin_layout Standard
20847 usepackage[figure]{hypcap}
20850 \begin_layout Standard
20855 for all float types but this is not recommended for stability reasons.
20856 For more information, have a look at
20861 \begin_inset CommandInset citation
20870 \begin_layout Standard
20871 \begin_inset Note Greyedout
20874 \begin_layout Plain Layout
20883 has no effect for references to subfigures.
20891 \begin_layout Section
20893 \begin_inset CommandInset label
20895 name "sec:Float-Placement"
20903 \begin_layout Plain Layout
20912 \begin_layout Standard
20913 Right-clicking on a float-box opens a dialog where you can alter the placement
20914 options that LaTeX uses for positioning the float.
20915 \begin_inset Newline newline
20921 \begin_inset space ~
20926 is only useful for two-column documents: If you select it, the float will
20927 span across both columns on the page instead of being confined to just
20929 \begin_inset Newline newline
20935 \begin_inset space ~
20940 is used to rotate floats, see section
20941 \begin_inset CommandInset ref
20943 reference "sec:Rotated-Floats"
20950 \begin_layout Standard
20951 You can use one ore more of the following options in the float dialog to
20952 set the placement for a particular float when you uncheck the option
20955 \begin_inset space ~
20959 \begin_inset space ~
20967 \begin_layout Description
20969 \begin_inset space ~
20973 \begin_inset space ~
20976 possible try to place the float on the position where it is inserted
20979 \begin_layout Description
20981 \begin_inset space ~
20985 \begin_inset space ~
20988 page try to place the float on the top of the current page
20991 \begin_layout Description
20993 \begin_inset space ~
20997 \begin_inset space ~
21000 page try to place the float on the bottom of the current page
21003 \begin_layout Description
21005 \begin_inset space ~
21009 \begin_inset space ~
21012 floats try to place the float on an own page
21015 \begin_layout Standard
21016 The order of the above option is
21021 That means, if you use the default placement, LaTeX will first try out
21025 \begin_inset space ~
21029 \begin_inset space ~
21037 \begin_inset space ~
21041 \begin_inset space ~
21046 , and then the others.
21047 If you don't use the default, LaTeX will try only the checked options but
21049 If none of the 4 placements are possible the procedure is internally repeated
21050 but it is tried to put the float on the following page.
21053 \begin_layout Standard
21054 By default, each option has its own rules:
21057 \begin_layout Labeling
21058 \labelwidthstring 00.00.0000
21062 \begin_inset space ~
21066 \begin_inset space ~
21071 only floats occupying less than 70
21072 \begin_inset space \thinspace{}
21075 % of the page can be placed at the top of a page (
21084 \begin_layout Labeling
21085 \labelwidthstring 00.00.0000
21089 \begin_inset space ~
21093 \begin_inset space ~
21098 : only floats occupying less than 30
21099 \begin_inset space \thinspace{}
21102 % of the page can be placed at the bottom of a page.
21112 \begin_layout Labeling
21113 \labelwidthstring 00.00.0000
21117 \begin_inset space ~
21121 \begin_inset space ~
21126 : only if more than 50
21127 \begin_inset space \thinspace{}
21130 % of the page are occupied by floats, several floats can be set together
21141 \begin_layout Standard
21142 If you don't like these rules, you can ignore them by using the additional
21146 \begin_inset space ~
21150 \begin_inset space ~
21156 \begin_inset Newline newline
21159 You can also redefine the rules with LaTeX-commands that are given in parenthese
21160 s behind the rules description above.
21161 To increase for example the often too small default of the bottom-rule
21163 \begin_inset space \thinspace{}
21166 % of the page, add this line to your document preamble:
21169 \begin_layout Standard
21176 bottomfraction}{0.5}
21179 \begin_layout Standard
21180 Sometimes you might need, under all circumstances, a float to be placed
21181 exactly at the position where it is inserted.
21182 For this case you can use the option
21185 \begin_inset space ~
21191 Use this option very rarely and only if the document is nearly ready to
21193 Because the float is then no longer able to
21194 \begin_inset Quotes eld
21198 \begin_inset Quotes erd
21201 when you change your document and this will often destroy the page layout.
21204 \begin_layout Standard
21205 There are no placement options for text wrap floats, because they are always
21206 surrounded by the text of a certain paragraph.
21207 \begin_inset VSpace bigskip
21213 \begin_layout Standard
21214 Sometimes you have the problem that a float is placed at the top of a page
21215 while its corresponding section starts at the middle of the page, so that
21216 the reader could think the float is part of the previous section.
21217 To avoid this the LaTeX-command
21224 It suppresses a given float placement for the page where it is inserted
21225 and can therefore be used to avoid that floats could be set before a section
21227 To get this, add these commands to your document preamble:
21230 \begin_layout Standard
21240 \begin_inset Newline newline
21254 \begin_layout Standard
21255 You can define the same for all section headings, like chapters and subsections.
21256 This definition is not recommended to be used for small text parts like
21257 subsubsections because LaTeX may then have problems to find a suitable
21261 \begin_layout Standard
21262 \begin_inset VSpace bigskip
21265 In some cases it is required to have all figures/tables at the end of the
21267 For this purpose the LaTeX-package
21275 \begin_layout Plain Layout
21276 LaTeX-packages ! endfloat
21282 It puts all figure and table floats at the end of the document into own
21284 At the original float position a text hint like
21285 \begin_inset Quotes eld
21291 \begin_inset space ~
21297 \begin_inset Quotes erd
21301 The endfloat-package is loaded in the preamble with the line
21304 \begin_layout Standard
21309 usepackage[options]{endfloat}
21312 \begin_layout Standard
21313 There are various package options to format the created figure/table sections.
21314 For more information we refer to the
21319 \begin_inset CommandInset citation
21326 \begin_inset Newline newline
21330 \begin_inset Note Greyedout
21333 \begin_layout Plain Layout
21338 doesn't provide an automatic translation for the text hint, you have to
21339 do this manually, see section
21340 \begin_inset space ~
21344 \begin_inset CommandInset citation
21356 \begin_inset Newline newline
21360 \begin_inset Note Greyedout
21363 \begin_layout Plain Layout
21368 There is currently a bug in
21372 when the caption contains a German
21373 \begin_inset Quotes eld
21377 \begin_inset Quotes erd
21381 Use in this case the command
21382 \begin_inset Quotes eld
21392 \begin_inset Quotes erd
21395 in TeX-Code instead of
21396 \begin_inset Quotes eld
21400 \begin_inset Quotes erd
21411 \begin_layout Standard
21412 \begin_inset VSpace bigskip
21415 For more details about float placements, have a look at LaTeX books,
21416 \begin_inset CommandInset citation
21418 key "latexcompanion,latexguide,latexbook"
21425 \begin_layout Section
21427 \begin_inset CommandInset label
21429 name "sec:Rotated-Floats"
21437 \begin_layout Plain Layout
21446 \begin_layout Standard
21447 Especially for wide tables you might have floats rotated.
21448 To rotate a whole float including the caption, right-click on the float-box
21452 \begin_inset space ~
21460 \begin_layout Standard
21461 Rotated floats are always placed on its own page (or column, in case you
21462 have a multi-column document).
21463 You can let them span several columns using the float settings option
21466 \begin_inset space ~
21472 Floats are rotated so that you can read them from the outside margin.
21473 To force a certain rotation direction for all pages, you can add either
21482 to the document class options.
21485 \begin_layout Standard
21486 Referencing rotated floats is the same like for normal floats, the caption
21487 format is also the same: Table
21488 \begin_inset space ~
21492 \begin_inset CommandInset ref
21494 reference "tab:Rotated-table"
21498 is an example of a rotated table float.
21501 \begin_layout Standard
21502 \begin_inset Note Greyedout
21505 \begin_layout Plain Layout
21510 Not all DVI-viewers are able to display rotated floats.
21518 \begin_layout Standard
21519 \begin_inset Float table
21524 \begin_layout Plain Layout
21525 \begin_inset Caption
21527 \begin_layout Plain Layout
21528 \begin_inset CommandInset label
21530 name "tab:Rotated-table"
21542 \begin_layout Plain Layout
21544 \begin_inset Tabular
21545 <lyxtabular version="3" rows="1" columns="5">
21547 <column alignment="center" valignment="top" width="0">
21548 <column alignment="center" valignment="top" width="0">
21549 <column alignment="center" valignment="top" width="0">
21550 <column alignment="center" valignment="top" width="0">
21551 <column alignment="center" valignment="top" width="0">
21553 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21556 \begin_layout Plain Layout
21562 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21565 \begin_layout Plain Layout
21571 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21574 \begin_layout Plain Layout
21580 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21583 \begin_layout Plain Layout
21589 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21592 \begin_layout Plain Layout
21611 \begin_layout Section
21616 \begin_layout Plain Layout
21625 \begin_layout Standard
21626 Subfloats are for example used when a figure consists of several images.
21627 They are created by inserting a float to an existing float.
21628 The placement of the subfloats can be controlled like for paragraphs as
21630 \begin_inset space ~
21634 \begin_inset CommandInset ref
21636 reference "tab:Two-subtables-side"
21641 \begin_inset CommandInset ref
21643 reference "tab:Two-subtables-upon"
21650 \begin_layout Standard
21651 Referencing subfloats works as for normal floats: Table
21652 \begin_inset space ~
21656 \begin_inset CommandInset ref
21658 reference "tab:This-is-subtable-a"
21663 \begin_inset CommandInset ref
21665 reference "tab:This-is-subtable-b"
21669 are subtables of table
21670 \begin_inset space ~
21674 \begin_inset CommandInset ref
21676 reference "tab:Two-subtables-side"
21683 \begin_layout Standard
21684 \begin_inset Float table
21689 \begin_layout Plain Layout
21690 \begin_inset Caption
21692 \begin_layout Plain Layout
21693 \begin_inset CommandInset label
21695 name "tab:Two-subtables-side"
21699 Two subtables placed side by side.
21707 \begin_layout Plain Layout
21709 \begin_inset space \hfill{}
21713 \begin_inset Float table
21718 \begin_layout Plain Layout
21719 \begin_inset Caption
21721 \begin_layout Plain Layout
21722 \begin_inset CommandInset label
21724 name "tab:This-is-subtable-a"
21728 This is subtable a.
21736 \begin_layout Plain Layout
21738 \begin_inset Tabular
21739 <lyxtabular version="3" rows="1" columns="5">
21741 <column alignment="center" valignment="top" width="0">
21742 <column alignment="center" valignment="top" width="0">
21743 <column alignment="center" valignment="top" width="0">
21744 <column alignment="center" valignment="top" width="0">
21745 <column alignment="center" valignment="top" width="0">
21747 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21750 \begin_layout Plain Layout
21756 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21759 \begin_layout Plain Layout
21765 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21768 \begin_layout Plain Layout
21774 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21777 \begin_layout Plain Layout
21783 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21786 \begin_layout Plain Layout
21803 \begin_inset space \hfill{}
21807 \begin_inset Float table
21812 \begin_layout Plain Layout
21813 \begin_inset Caption
21815 \begin_layout Plain Layout
21816 \begin_inset CommandInset label
21818 name "tab:This-is-subtable-b"
21822 This is subtable b.
21830 \begin_layout Plain Layout
21832 \begin_inset Tabular
21833 <lyxtabular version="3" rows="1" columns="5">
21835 <column alignment="center" valignment="top" width="0">
21836 <column alignment="center" valignment="top" width="0">
21837 <column alignment="center" valignment="top" width="0">
21838 <column alignment="center" valignment="top" width="0">
21839 <column alignment="center" valignment="top" width="0">
21841 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21844 \begin_layout Plain Layout
21850 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21853 \begin_layout Plain Layout
21859 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21862 \begin_layout Plain Layout
21868 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21871 \begin_layout Plain Layout
21877 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21880 \begin_layout Plain Layout
21897 \begin_inset space \hfill{}
21908 \begin_layout Standard
21909 \begin_inset Float table
21914 \begin_layout Plain Layout
21915 \begin_inset Caption
21917 \begin_layout Plain Layout
21918 \begin_inset CommandInset label
21920 name "tab:Two-subtables-upon"
21924 Two subtables placed one upon the other.
21925 (a) table with 4 cells, (b) table with 5 cells.
21933 \begin_layout Plain Layout
21935 \begin_inset Float table
21940 \begin_layout Plain Layout
21941 \begin_inset Caption
21943 \begin_layout Plain Layout
21952 \begin_layout Plain Layout
21954 \begin_inset Tabular
21955 <lyxtabular version="3" rows="1" columns="4">
21957 <column alignment="center" valignment="top" width="0">
21958 <column alignment="center" valignment="top" width="0">
21959 <column alignment="center" valignment="top" width="0">
21960 <column alignment="center" valignment="top" width="0">
21962 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21965 \begin_layout Plain Layout
21971 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21974 \begin_layout Plain Layout
21980 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21983 \begin_layout Plain Layout
21989 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21992 \begin_layout Plain Layout
22011 \begin_layout Plain Layout
22013 \begin_inset Float table
22018 \begin_layout Plain Layout
22019 \begin_inset Caption
22021 \begin_layout Plain Layout
22030 \begin_layout Plain Layout
22032 \begin_inset Tabular
22033 <lyxtabular version="3" rows="1" columns="5">
22035 <column alignment="center" valignment="top" width="0">
22036 <column alignment="center" valignment="top" width="0">
22037 <column alignment="center" valignment="top" width="0">
22038 <column alignment="center" valignment="top" width="0">
22039 <column alignment="center" valignment="top" width="0">
22041 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22044 \begin_layout Plain Layout
22050 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22053 \begin_layout Plain Layout
22059 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22062 \begin_layout Plain Layout
22068 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22071 \begin_layout Plain Layout
22077 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22080 \begin_layout Plain Layout
22104 \begin_layout Section
22105 Floats Side by Side
22109 \begin_layout Plain Layout
22110 Floats ! Side by side
22118 \begin_layout Standard
22119 To place floats side by side, like for Figure
22120 \begin_inset space ~
22124 \begin_inset CommandInset ref
22126 reference "fig:Float-left"
22131 \begin_inset CommandInset ref
22133 reference "fig:Float-right"
22142 In it two minipage boxes are inserted.
22146 \begin_layout Plain Layout
22147 Minipages are explained in section
22148 \begin_inset space ~
22152 \begin_inset CommandInset ref
22154 reference "sec:Minipages"
22163 The width is set to 45
22164 \begin_inset space \thinspace{}
22168 \begin_inset space \thinspace{}
22171 column% and the box alignment to
22176 The minipage boxes contain the image and the caption in the same way as
22177 they are in a float.
22178 The only difference is that the image unit
22181 \begin_inset space ~
22185 \begin_inset space ~
22190 is now calculated according to the width of the minipage boxes.
22193 \begin_layout Standard
22194 \begin_inset Float figure
22199 \begin_layout Plain Layout
22200 \begin_inset Box Frameless
22209 height_special "totalheight"
22212 \begin_layout Plain Layout
22214 \begin_inset Graphics
22215 filename clipart/mobius.eps
22218 scaleBeforeRotation
22225 \begin_layout Plain Layout
22226 \begin_inset Caption
22228 \begin_layout Plain Layout
22229 \begin_inset CommandInset label
22231 name "fig:Float-left"
22235 Float on the left side.
22246 \begin_inset space \hfill{}
22250 \begin_inset Box Frameless
22259 height_special "totalheight"
22262 \begin_layout Plain Layout
22264 \begin_inset Graphics
22265 filename clipart/platypus.eps
22268 scaleBeforeRotation
22275 \begin_layout Plain Layout
22276 \begin_inset Caption
22278 \begin_layout Plain Layout
22279 \begin_inset CommandInset label
22281 name "fig:Float-right"
22285 Float on the right side.
22298 \begin_layout Plain Layout
22307 \begin_layout Section
22312 \begin_layout Plain Layout
22313 Caption ! Formatting
22322 \begin_layout Plain Layout
22323 Floats ! Caption Formatting
22329 \begin_inset CommandInset label
22331 name "sec:Caption-Formatting"
22338 \begin_layout Standard
22343 environment is the default paragraph environment for
22348 On the LyX screen captions appear as label, e.
22349 \begin_inset space \thinspace{}
22353 \begin_inset space \space{}
22357 \begin_inset Quotes eld
22365 \begin_inset Quotes erd
22368 followed by the caption text.
22370 \begin_inset Quotes eld
22374 \begin_inset Quotes erd
22377 is the actual reference number.
22378 By default the label and the number are in the same font as the caption
22379 text and a colon follows the number to divide the label from the text.
22380 This caption format is not suitable for all document formats.
22384 \begin_layout Standard
22385 To change the default caption format, load the LaTeX-package
22393 \begin_layout Plain Layout
22394 LaTeX-packages ! caption
22399 in the document preamble with this line:
22402 \begin_layout Standard
22407 usepackage[format definition]{caption}
22410 \begin_layout Standard
22411 To have for example the label and the number in sans-serif bold font and
22412 the table captions always above the table like in this document, use the
22416 \begin_layout Standard
22421 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22424 \begin_layout Standard
22425 You can also define different caption formats for the different float types.
22426 In this case load the
22430 package without format specific options and define the different formats
22431 with the help of the command
22434 \begin_layout Standard
22439 captionsetup[float type]{format definition}
22442 \begin_layout Standard
22443 in the document preamble.
22444 For example the caption formats of Figure
22445 \begin_inset space ~
22449 \begin_inset CommandInset ref
22451 reference "fig:This-is-an-fig"
22456 \begin_inset space ~
22460 \begin_inset CommandInset ref
22462 reference "tab:This-is-an-tab"
22466 can be created using these commands in the document preamble:
22469 \begin_layout Standard
22474 usepackage[tableposition=top]{caption}
22477 \begin_inset Newline newline
22484 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22485 \begin_inset Newline newline
22492 \begin_layout Plain Layout
22500 captionsetup[figure]
22508 \begin_inset Newline newline
22513 captionsetup[table]{labelfont={bf,sf}}
22516 \begin_layout Standard
22517 \begin_inset Note Greyedout
22520 \begin_layout Plain Layout
22529 has no effect when a
22537 \begin_layout Plain Layout
22538 LaTeX-packages ! KOMA-script
22543 document class is used.
22544 In this case the document class option
22556 \begin_layout Standard
22557 For more information about the package
22561 we refer to its documentation
22562 \begin_inset CommandInset citation
22571 \begin_layout Standard
22572 To change the label name from e.
22573 \begin_inset space \thinspace{}
22577 \begin_inset space \space{}
22581 \begin_inset Quotes eld
22585 \begin_inset Quotes erd
22589 \begin_inset Quotes eld
22593 \begin_inset Quotes erd
22596 use this preamble command:
22599 \begin_layout Standard
22606 fnum@figure}{Image~
22611 \begin_layout Standard
22618 inserts the figure number and
22621 \begin_inset Quotes eld
22627 \begin_inset Quotes erd
22630 creates a protected space.
22633 \begin_layout Standard
22634 \begin_inset VSpace bigskip
22645 \begin_layout Plain Layout
22646 LaTeX-packages ! KOMA-script
22653 article (KOMA-script)
22661 letter (KOMA-script)
22665 report (KOMA-script)
22668 \begin_inset space \thinspace{}
22671 ), you can alternatively to the
22679 's built-in command
22686 For example, to have the caption label in bold, add this command to your
22690 \begin_layout Standard
22695 setkomafont{captionlabel}{
22700 \begin_layout Standard
22701 For more information about
22712 \begin_inset CommandInset citation
22721 \begin_layout Standard
22725 \begin_layout Plain Layout
22729 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
22736 \begin_inset Note Note
22739 \begin_layout Plain Layout
22740 The caption format is changed only for this example.
22748 \begin_layout Standard
22749 \begin_inset Float figure
22755 \begin_layout Plain Layout
22757 \begin_inset Graphics
22758 filename clipart/mobius.eps
22761 scaleBeforeRotation
22768 \begin_layout Plain Layout
22769 \begin_inset Caption
22771 \begin_layout Plain Layout
22772 \begin_inset CommandInset label
22774 name "fig:This-is-an-fig"
22778 This is an example figure caption that is longer than one line to show the
22779 different caption format.
22780 Here a self-defined caption format is used.
22793 \begin_layout Standard
22797 \begin_layout Plain Layout
22801 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
22810 \begin_layout Standard
22811 \begin_inset Float table
22817 \begin_layout Plain Layout
22818 \begin_inset Caption
22820 \begin_layout Plain Layout
22821 \begin_inset CommandInset label
22823 name "tab:This-is-an-tab"
22827 This is an example table caption that is longer than one line to show the
22828 different caption format.
22829 Here the standard caption format for tables in this document is used.
22837 \begin_layout Plain Layout
22839 \begin_inset Tabular
22840 <lyxtabular version="3" rows="1" columns="5">
22842 <column alignment="center" valignment="top" width="0">
22843 <column alignment="center" valignment="top" width="0">
22844 <column alignment="center" valignment="top" width="0">
22845 <column alignment="center" valignment="top" width="0">
22846 <column alignment="center" valignment="top" width="0">
22848 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22851 \begin_layout Plain Layout
22857 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22860 \begin_layout Plain Layout
22866 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22869 \begin_layout Plain Layout
22875 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22878 \begin_layout Plain Layout
22884 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22887 \begin_layout Plain Layout
22906 \begin_layout Section
22911 \begin_layout Plain Layout
22912 Caption ! Placement
22921 \begin_layout Plain Layout
22922 Floats ! Caption Placement
22928 \begin_inset CommandInset label
22930 name "sec:Caption-Placement"
22937 \begin_layout Standard
22938 The common caption placement rule is:
22941 \begin_layout Description
22942 Figure: Caption is set below the figure
22945 \begin_layout Description
22946 Table: Caption is set above the table
22949 \begin_layout Standard
22950 Having the caption above the table is unfortunately not supported in LaTeX's
22952 That means if you are using the document classes
22968 there will be no space between the caption and the table.
22969 To insert the needed space, add the following option to the load command
22970 of the LaTeX-package
22974 in your document preamble
22978 \begin_layout Plain Layout
22980 \begin_inset space ~
22984 \begin_inset CommandInset ref
22986 reference "sec:Caption-Formatting"
22990 for more information of the package
23002 \begin_layout Standard
23008 \begin_layout Standard
23017 \begin_layout Plain Layout
23018 LaTeX-packages ! KOMA-script
23025 article (KOMA-script)
23033 letter (KOMA-script)
23037 report (KOMA-script)
23040 \begin_inset space \thinspace{}
23043 ), you can alternatively to the
23047 package set the document class option
23054 \begin_layout Standard
23055 \begin_inset VSpace bigskip
23058 It is also possible to set the caption beside a figure or table.
23059 To get this the LaTeX-package
23067 \begin_layout Plain Layout
23068 LaTeX-packages ! sidecap
23073 has to be loaded in the document preamble with the line
23076 \begin_layout Standard
23081 usepackage[option]{sidecap}
23084 \begin_layout Standard
23085 If you set no option, the caption is placed on the side of the outer page
23086 margin – to the right on odd pages, to the left on even pages.
23087 You can change the placement to inner margin with the option
23092 To force the placement always to the right or left, use the option
23103 \begin_layout Standard
23107 \begin_layout Plain Layout
23117 \begin_inset Note Note
23120 \begin_layout Plain Layout
23121 The following section will only be displayed when the LaTeX-package
23133 \begin_layout Standard
23134 To place in LyX the caption of a float on the side, it is necessary to add
23135 these commands to the document preamble:
23138 \begin_layout Standard
23144 \begin_layout Standard
23152 \begin_inset Newline newline
23159 \begin_layout Plain Layout
23175 \begin_inset Newline newline
23182 \begin_layout Plain Layout
23198 \begin_inset Newline newline
23205 \begin_layout Plain Layout
23216 renewenvironment{table}{
23223 \begin_layout Standard
23231 \begin_inset Newline newline
23238 \begin_layout Plain Layout
23254 \begin_inset Newline newline
23261 \begin_layout Plain Layout
23279 \begin_layout Standard
23287 \begin_inset Newline newline
23294 \begin_layout Plain Layout
23310 \begin_inset Newline newline
23317 \begin_layout Plain Layout
23333 \begin_inset Newline newline
23340 \begin_layout Plain Layout
23351 renewenvironment{figure}{
23358 \begin_layout Standard
23366 \begin_inset Newline newline
23373 \begin_layout Plain Layout
23389 \begin_inset Newline newline
23396 \begin_layout Plain Layout
23414 \begin_layout Standard
23420 \begin_layout Standard
23421 The commands allow you to redefine the floats so that the caption is set
23423 For figure floats use the command
23426 \begin_layout Standard
23434 \begin_layout Standard
23435 in TeX-Code before the float.
23436 Behind the float insert the command
23439 \begin_layout Standard
23447 \begin_layout Standard
23448 in TeX-Code to get back to the original float definition.
23451 \begin_layout Standard
23452 For table floats use the corresponding commands
23455 \begin_layout Standard
23469 \begin_layout Standard
23471 \begin_inset space ~
23475 \begin_inset CommandInset ref
23477 reference "fig:cap-beside-fig"
23482 \begin_inset space ~
23486 \begin_inset CommandInset ref
23488 reference "tab:cap-beside-tab"
23492 are examples where the caption is set beside.
23495 \begin_layout Standard
23496 You can see in the examples that the caption text appears at the top of
23497 the floats for table floats and at the bottom for figure floats.
23498 To change this, you can use the command
23501 \begin_layout Standard
23506 sidecaptionvpos{float type}{placement}
23509 \begin_layout Standard
23510 in the document preamble or in TeX-Code before the float.
23511 The float type is either
23519 , the placement can be
23520 \begin_inset Quotes eld
23528 \begin_inset Quotes erd
23532 \begin_inset Quotes eld
23540 \begin_inset Quotes erd
23544 \begin_inset Quotes eld
23552 \begin_inset Quotes erd
23556 To have for example the caption of figure floats vertically centered, use
23560 \begin_layout Standard
23565 sidecaptionvpos{figure}{c}
23568 \begin_layout Standard
23569 This was used for Figure
23570 \begin_inset space ~
23574 \begin_inset CommandInset ref
23576 reference "fig:cap-beside-fig-2"
23583 \begin_layout Standard
23584 \begin_inset VSpace medskip
23587 For more information about the package
23591 we refer to its documentation
23592 \begin_inset CommandInset citation
23601 \begin_layout Standard
23602 \begin_inset Note Greyedout
23605 \begin_layout Plain Layout
23618 \begin_layout Plain Layout
23619 LaTeX-packages ! hypcap
23624 , described in section
23625 \begin_inset space ~
23629 \begin_inset CommandInset ref
23631 reference "sub:Reference-Position"
23635 , has no effect on floats with the caption set beside.
23643 \begin_layout Standard
23647 \begin_layout Plain Layout
23659 \begin_layout Standard
23660 \begin_inset Float figure
23665 \begin_layout Plain Layout
23666 \begin_inset Graphics
23667 filename clipart/escher-lsd.eps
23669 scaleBeforeRotation
23676 \begin_layout Plain Layout
23677 \begin_inset Caption
23679 \begin_layout Plain Layout
23680 \begin_inset CommandInset label
23682 name "fig:cap-beside-fig"
23686 This is a caption beside a figure.
23699 \begin_layout Standard
23703 \begin_layout Plain Layout
23715 \begin_layout Standard
23716 \begin_inset Float table
23721 \begin_layout Plain Layout
23722 \begin_inset Caption
23724 \begin_layout Plain Layout
23725 \begin_inset CommandInset label
23727 name "tab:cap-beside-tab"
23731 This is a caption beside a table.
23739 \begin_layout Plain Layout
23740 \begin_inset Tabular
23741 <lyxtabular version="3" rows="4" columns="5">
23743 <column alignment="center" valignment="top" width="0">
23744 <column alignment="center" valignment="top" width="0">
23745 <column alignment="center" valignment="top" width="0">
23746 <column alignment="center" valignment="top" width="0">
23747 <column alignment="center" valignment="top" width="0">
23749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23752 \begin_layout Plain Layout
23758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23761 \begin_layout Plain Layout
23767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23770 \begin_layout Plain Layout
23776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23779 \begin_layout Plain Layout
23785 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23788 \begin_layout Plain Layout
23796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23799 \begin_layout Plain Layout
23805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23808 \begin_layout Plain Layout
23814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23817 \begin_layout Plain Layout
23823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23826 \begin_layout Plain Layout
23832 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23835 \begin_layout Plain Layout
23843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23846 \begin_layout Plain Layout
23852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23855 \begin_layout Plain Layout
23861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23864 \begin_layout Plain Layout
23870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23873 \begin_layout Plain Layout
23879 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23882 \begin_layout Plain Layout
23890 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23893 \begin_layout Plain Layout
23899 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23902 \begin_layout Plain Layout
23908 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23911 \begin_layout Plain Layout
23917 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23920 \begin_layout Plain Layout
23926 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23929 \begin_layout Plain Layout
23948 \begin_layout Standard
23952 \begin_layout Plain Layout
23964 \begin_layout Standard
23968 \begin_layout Plain Layout
23972 sidecaptionvpos{figure}{c}
23978 \begin_inset Float figure
23983 \begin_layout Plain Layout
23984 \begin_inset Graphics
23985 filename clipart/escher-lsd.eps
23987 scaleBeforeRotation
23994 \begin_layout Plain Layout
23995 \begin_inset Caption
23997 \begin_layout Plain Layout
23998 \begin_inset CommandInset label
24000 name "fig:cap-beside-fig-2"
24004 This is a vertically centered caption beside a figure.
24017 \begin_layout Standard
24021 \begin_layout Plain Layout
24033 \begin_layout Standard
24037 \begin_layout Plain Layout
24047 \begin_inset Note Note
24050 \begin_layout Plain Layout
24051 The following will be displayed when the LaTeX-package
24063 \begin_layout Standard
24064 You need to install the LaTeX-package
24068 to see the following part of this section in the output.
24071 \begin_layout Standard
24075 \begin_layout Plain Layout
24087 \begin_layout Section
24092 \begin_layout Plain Layout
24093 Floats ! Float Lists
24101 \begin_layout Standard
24102 Similar to the the table of contents where the sections of the document
24103 are listed, there are listings for all float types, like the figures of
24105 You can insert them via the
24107 Insert\SpecialChar \menuseparator
24109 \begin_inset space ~
24113 \begin_inset space ~
24121 \begin_layout Standard
24122 The list entries are the float captions or its short title, the float number,
24123 and the page number where they appear in the document.
24126 \begin_layout Standard
24127 You can find the list of figures and tables at the end of this document.
24130 \begin_layout Chapter
24134 \begin_layout Section
24139 \begin_layout Plain Layout
24148 \begin_layout Standard
24149 Notes are inserted with the toolbar button
24150 \begin_inset Graphics
24151 filename ../images/note-insert.png
24153 scaleBeforeRotation
24159 Insert\SpecialChar \menuseparator
24163 There are three types of notes:
24166 \begin_layout Description
24168 \begin_inset space ~
24171 Note This note type is for internal notes that won't appear in the output.
24172 Its note-box looks like this:
24173 \begin_inset Newline newline
24177 \begin_inset Newline newline
24181 \begin_inset Graphics
24182 filename clipart/LyXNoteImageQt4.png
24185 scaleBeforeRotation
24190 \begin_inset Note Note
24193 \begin_layout Plain Layout
24194 This is text in a note box that doesn't appear in the output.
24202 \begin_layout Description
24203 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24204 ent, when you export the document to LaTeX via the menu
24206 File\SpecialChar \menuseparator
24207 Export\SpecialChar \menuseparator
24208 LaTeX (pdflatex) / (plain)
24211 Its note-box looks like this:
24212 \begin_inset Newline newline
24216 \begin_inset Newline newline
24220 \begin_inset Graphics
24221 filename clipart/CommentNoteImageQt4.png
24224 scaleBeforeRotation
24229 \begin_inset Note Comment
24232 \begin_layout Plain Layout
24233 This is text in a note box that only appears as comment in LaTeX-files.
24241 \begin_layout Description
24243 \begin_inset space ~
24246 Out This note will appear in the output as grey text.
24247 Its note-box looks like this:
24248 \begin_inset Newline newline
24252 \begin_inset Newline newline
24256 \begin_inset Graphics
24257 filename clipart/GreyedOutNoteImageQt4.png
24260 scaleBeforeRotation
24265 \begin_inset Newline newline
24272 \begin_layout Plain Layout
24276 renewenvironment{lyxgreyedout}
24279 \begin_layout Plain Layout
24283 textcolor[gray]{0.8}
24293 \begin_inset Note Greyedout
24296 \begin_layout Plain Layout
24301 \begin_layout Plain Layout
24302 This is an example footnote within a greyed out note.
24307 of a comment that appears in the output as grey text.
24316 \begin_layout Plain Layout
24320 renewenvironment{lyxgreyedout}
24323 \begin_layout Plain Layout
24337 \begin_inset Note Note
24340 \begin_layout Plain Layout
24341 The greyed out note is here redefined to show it with the original LyX definitio
24342 n because greyed out notes are redefined in the preamble of this document,
24343 as described below, to have blue text.
24349 \begin_inset Newline newline
24353 \begin_inset Newline newline
24356 As you can see in the example, the first line of greyed out notes is a bit
24357 indented and greyed out notes can have footnotes.
24360 \begin_layout Standard
24361 \begin_inset VSpace bigskip
24364 When you use the toolbar button
24365 \begin_inset Graphics
24366 filename ../images/note-insert.png
24368 scaleBeforeRotation
24375 \begin_inset space ~
24381 You can switch between the five note types by right-clicking on the note-box.
24386 If you want to turn existing text into a note, mark it and click on the
24400 To change a note to text, press the backspace key when the cursor is in
24401 the first position of a note, or press the deletey key when the cursor
24402 is in the very last position of the note, respectively.
24405 \begin_layout Standard
24406 \begin_inset VSpace bigskip
24409 You can change the text color of the greyed out notes in the preamble with
24410 the following command:
24413 \begin_layout Standard
24418 renewenvironment{lyxgreyedout}
24419 \begin_inset Newline newline
24426 \begin_layout Plain Layout
24444 \begin_layout Standard
24445 The available colors and the method to define own colors is explained in
24447 \begin_inset space ~
24451 \begin_inset CommandInset ref
24453 reference "sec:Colored-Tables"
24460 \begin_layout Standard
24461 Notes that appear in blue in this document are set using greyed out notes
24465 \begin_layout Section
24467 \begin_inset CommandInset label
24469 name "sec:Footnotes"
24477 \begin_layout Plain Layout
24487 \begin_layout Plain Layout
24496 \begin_layout Standard
24497 Footnotes can be inserted using the toolbar button
24498 \begin_inset Graphics
24499 filename ../images/footnote-insert.png
24501 scaleBeforeRotation
24507 Insert\SpecialChar \menuseparator
24519 then the following footnote-box:
24520 \begin_inset Graphics
24521 filename clipart/footnoteQt4.png
24523 scaleBeforeRotation
24531 where you can enter the footnote text.
24532 If you want to turn existing text into a footnote, mark it and click on
24554 to text, press the Backspace key when the cursor is in the first position
24563 , or press the Delete key when the cursor is in the very last position of
24575 \begin_layout Standard
24576 Here is an example footnote:
24584 \begin_layout Plain Layout
24585 \begin_inset CommandInset label
24587 name "foot:This-is-an"
24591 This is an example footnote.
24604 \begin_layout Plain Layout
24608 newcounter{MyRepeatFoot}
24611 \begin_layout Plain Layout
24615 setcounter{MyRepeatFoot}{
24625 \begin_layout Standard
24626 The footnote will appear in the output as a superscript number at the text
24627 position where the footnote box is placed.
24628 The footnote text is placed at the bottom of the current page.
24629 The footnote number is calculated by LaTeX, the numbers are consecutive.
24630 It depends on your document-class, if the footnote number is reset for
24634 \begin_layout Standard
24635 Footnotes can be referenced like floats: Insert a label into the footnote
24636 and cross-reference this label in the text as described in section
24637 \begin_inset space ~
24641 \begin_inset CommandInset ref
24643 reference "sec:Referencing-Floats"
24648 \begin_inset Newline newline
24651 This is a cross-reference of Footnote
24652 \begin_inset space ~
24656 \begin_inset CommandInset ref
24658 reference "foot:This-is-an"
24665 \begin_layout Standard
24666 \begin_inset VSpace defskip
24669 To use footnotes within tables, you have to use minipages, see section
24670 \begin_inset space ~
24674 \begin_inset CommandInset ref
24676 reference "sec:Minipages"
24681 Footnotes within longtables are described in section
24682 \begin_inset space ~
24686 \begin_inset CommandInset ref
24688 reference "sub:Footnotes-in-Longtables"
24695 \begin_layout Standard
24696 \begin_inset VSpace defskip
24699 To create only a mark for a footnote, use the command
24703 footnotemark[number]
24706 This is used when you have the same annotation several times in a text
24707 but doesn't want to print the footnote text every time.
24708 \begin_inset Newline newline
24711 As you don't know the number of the repeating footnote while you are writing
24712 the text, you have to store its number.
24713 For the following footnote mark example, these commands were inserted in
24714 TeX-Code behind Footnote
24715 \begin_inset space ~
24719 \begin_inset CommandInset ref
24721 reference "foot:This-is-an"
24725 to store the footnote number:
24728 \begin_layout Standard
24733 newcounter{MyRepeatFoot}
24734 \begin_inset Newline newline
24739 setcounter{MyRepeatFoot}{
24744 \begin_layout Standard
24745 The footnote mark was then created with this command:
24748 \begin_layout Standard
24758 \begin_layout Standard
24759 Here is an example footnote mark:
24767 \begin_layout Plain Layout
24781 \begin_layout Subsection
24783 \begin_inset CommandInset label
24785 name "sub:Footnote-Numbering"
24793 \begin_layout Plain Layout
24794 Footnotes ! Numbering
24802 \begin_layout Standard
24803 To reset the footnote number back to 1 after each section
24805 , add this command to your document preamble:
24808 \begin_layout Standard
24813 @addtoreset{footnote}{section}
24816 \begin_layout Standard
24817 \begin_inset VSpace bigskip
24820 The following preamble command changes the footnote numbering style to small
24824 \begin_layout Standard
24836 \begin_layout Standard
24840 \begin_layout Plain Layout
24853 This is a footnote with roman numbering:
24857 \begin_layout Plain Layout
24858 This is an example footnote with roman numbering.
24866 \begin_layout Standard
24867 To change the numbering style to capital roman numerals replace in the command
24882 \begin_inset Quotes eld
24886 \begin_inset Quotes erd
24889 footnotes with capital or small Latin letters use
24903 \begin_inset Quotes eld
24907 \begin_inset Quotes erd
24910 footnotes with symbols use
24919 \begin_layout Standard
24920 \begin_inset Note Greyedout
24923 \begin_layout Plain Layout
24928 You can only number 26 footnotes with Latin letters, because this numbering
24929 is limited to single letters.
24935 \begin_inset Newline newline
24939 \begin_inset Note Greyedout
24942 \begin_layout Plain Layout
24947 You can only number 9 footnotes with symbols.
24955 \begin_layout Standard
24956 To return to the default numbering style when you changed to another one,
24969 in the command above.
24973 \begin_layout Plain Layout
24989 \begin_layout Standard
24990 \begin_inset VSpace bigskip
24996 \begin_layout Standard
24997 If you want to have footnotes numbered in the scheme
24998 \begin_inset Quotes eld
25002 \begin_inset Quotes erd
25005 , add the following command to your document preamble:
25008 \begin_layout Standard
25013 numberwithin{footnote}{chapter}
25016 \begin_layout Standard
25017 To be able to use the command
25026 \begin_inset space ~
25031 in the document settings the option
25034 \begin_inset space ~
25038 \begin_inset space ~
25042 \begin_inset space ~
25050 \begin_layout Standard
25054 \begin_layout Plain Layout
25058 numberwithin{footnote}{chapter}
25063 This is another example footnote:
25069 \begin_layout Plain Layout
25070 This is a footnote numbered in the scheme
25071 \begin_inset Quotes eld
25075 \begin_inset Quotes erd
25089 \begin_layout Plain Layout
25105 \begin_layout Standard
25106 \begin_inset Note Greyedout
25109 \begin_layout Plain Layout
25120 always prints out the footnote number as arabic number; previous redefinitions
25121 to get non-arabic numbers are overwritten.
25129 \begin_layout Standard
25130 So to get for example the scheme
25131 \begin_inset Quotes eld
25137 \begin_inset Quotes erd
25140 , use this command instead of
25149 \begin_layout Standard
25163 \begin_layout Subsection
25168 \begin_layout Plain Layout
25169 Footnotes ! Placement
25177 \begin_layout Standard
25178 If you have several footnotes in one page, they appear without vertical
25179 space between them at the bottom of the page.
25180 To make them better readable you can e.
25181 \begin_inset space \thinspace{}
25185 \begin_inset space \space{}
25189 \begin_inset space \thinspace{}
25192 mm space with the following preamble command:
25195 \begin_layout Standard
25205 \begin_inset Newline newline
25219 \begin_layout Standard
25220 \begin_inset VSpace bigskip
25223 In a two-column document the footnotes appear at the bottom of every column,
25225 \begin_inset space ~
25229 \begin_inset CommandInset ref
25231 reference "fig:Standard-footnote-placement"
25236 If the footnotes should only appear at the bottom of the right column,
25238 \begin_inset space ~
25242 \begin_inset CommandInset ref
25244 reference "fig:Footnote-placement-in"
25248 , use the LaTeX-package
25256 \begin_layout Plain Layout
25257 LaTeX-packages ! ftnright
25262 with this command in the document preamble:
25265 \begin_layout Standard
25270 usepackage{ftnright}
25273 \begin_layout Standard
25274 \begin_inset Float figure
25280 \begin_layout Plain Layout
25284 \begin_layout Plain Layout
25294 \begin_inset Graphics
25295 filename clipart/without_fntright.pdf
25297 scaleBeforeRotation
25305 \begin_layout Plain Layout
25315 \begin_layout Plain Layout
25316 \begin_inset Caption
25318 \begin_layout Plain Layout
25319 \begin_inset CommandInset label
25321 name "fig:Standard-footnote-placement"
25325 Standard footnote placement in two-column documents.
25338 \begin_layout Standard
25339 \begin_inset Float figure
25345 \begin_layout Plain Layout
25349 \begin_layout Plain Layout
25359 \begin_inset Graphics
25360 filename clipart/with_fntright.pdf
25362 scaleBeforeRotation
25370 \begin_layout Plain Layout
25380 \begin_layout Plain Layout
25381 \begin_inset Caption
25383 \begin_layout Plain Layout
25384 \begin_inset CommandInset label
25386 name "fig:Footnote-placement-in"
25390 Footnote placement in two-column documents when the LaTeX-package
25407 \begin_layout Standard
25408 \begin_inset VSpace bigskip
25411 In some scientific literature it is usual to collect the footnotes and print
25412 them in a separate paragraph at the the end of a section, like in Figure
25413 \begin_inset space ~
25417 \begin_inset CommandInset ref
25419 reference "fig:Endnotes"
25424 They are then so called
25425 \begin_inset Quotes eld
25429 \begin_inset Quotes erd
25436 \begin_layout Plain Layout
25442 To use endnotes instead of footnotes in your document, load in the menu
25445 Document\SpecialChar \menuseparator
25446 Settings\SpecialChar \menuseparator
25452 \begin_inset space ~
25456 \begin_inset space ~
25462 To insert the collected footnotes, insert the command
25465 \begin_layout Standard
25473 \begin_layout Standard
25474 in TeX-Code at the the end of a section or chapter.
25477 \begin_layout Standard
25478 \begin_inset Float figure
25483 \begin_layout Plain Layout
25488 \begin_layout Plain Layout
25498 \begin_inset Graphics
25499 filename clipart/endnotes.pdf
25500 scaleBeforeRotation
25508 \begin_layout Plain Layout
25518 \begin_layout Plain Layout
25519 \begin_inset Caption
25521 \begin_layout Plain Layout
25522 \begin_inset CommandInset label
25524 name "fig:Endnotes"
25528 Endnotes – footnotes are printed in a separate paragraph at the end of sections
25542 \begin_layout Standard
25543 \begin_inset VSpace medskip
25546 The paragraph heading for the endnotes isn't automatically translated into
25547 the document language, this must be done manually.
25548 The following preamble command translate the default English name
25549 \begin_inset Quotes eld
25553 \begin_inset Quotes erd
25556 to the German translation
25557 \begin_inset Quotes eld
25561 \begin_inset Quotes erd
25567 \begin_layout Standard
25574 notesname}{Anmerkungen}
25577 \begin_layout Standard
25578 \begin_inset VSpace medskip
25581 The numbering of endnotes can be changed like the footnote numbering as
25582 described in section
25583 \begin_inset space ~
25587 \begin_inset CommandInset ref
25589 reference "sub:Footnote-Numbering"
25593 ; just replace the command
25606 To reset the endnote number use the command
25612 as described in section
25613 \begin_inset space ~
25617 \begin_inset CommandInset ref
25619 reference "sub:Footnote-Numbering"
25623 and replace the command parameter
25634 \begin_layout Standard
25635 To create only a mark for an endnote, use the command
25639 endnotemark[number]
25641 similar to the command
25647 , described in section
25648 \begin_inset space ~
25652 \begin_inset CommandInset ref
25654 reference "sec:Footnotes"
25661 \begin_layout Standard
25662 \begin_inset VSpace bigskip
25665 Footnotes can also be placed in the page margin and the footnote text alignment
25666 can be changed, see the LaTeX-package
25674 \begin_layout Plain Layout
25675 LaTeX-packages ! footmisc
25681 \begin_inset CommandInset citation
25687 for more information about this.
25690 \begin_layout Standard
25691 For various further footnote formatting issues have a look at LaTeX-books,
25693 \begin_inset CommandInset citation
25695 key "latexcompanion,latexguide,latexbook"
25702 \begin_layout Section
25707 \begin_layout Plain Layout
25708 Notes ! Margin Notes
25716 \begin_layout Standard
25717 Margin notes look and behave in LyX like footnotes.
25718 They are inserted via the menu
25720 Insert\SpecialChar \menuseparator
25722 \begin_inset space ~
25727 or the toolbar button
25728 \begin_inset Graphics
25729 filename ../images/marginalnote-insert.png
25731 scaleBeforeRotation
25746 \begin_inset Quotes eld
25750 \begin_inset Quotes erd
25753 appears where you can enter the text of the margin note.
25756 \begin_layout Standard
25757 At the side is an example margin note.
25762 \begin_inset Marginal
25765 \begin_layout Plain Layout
25766 This is a margin note.
25774 \begin_layout Standard
25775 Margin notes appear at the right side in single-sided documents.
25776 In double-sided documents they appear in the outer margin – left on even
25777 pages, right on odd pages.
25778 The text of margin notes is aligned opposite to the outer margin – right-aligne
25779 d when the note appears in the left margin.
25780 The first line of the margin note is placed at the position of the text
25781 line where it is inserted in the document.
25784 \begin_layout Standard
25785 \begin_inset VSpace bigskip
25788 To place the margin note in the inner margin, add the command
25791 \begin_layout Standard
25799 \begin_layout Standard
25800 in TeX-Code before a margin note.
25801 The new placement is valid for all following margin notes.
25806 \begin_layout Plain Layout
25816 \begin_inset Marginal
25819 \begin_layout Plain Layout
25820 This is a margin note in the inner margin.
25828 \begin_inset Newline newline
25834 \begin_inset Note Greyedout
25837 \begin_layout Plain Layout
25842 There is often not enough space in the inner margin so that the notes are
25843 not correctly displayed in the output.
25851 \begin_layout Standard
25852 To return to the default placement insert the command
25855 \begin_layout Standard
25863 \begin_layout Standard
25868 \begin_layout Plain Layout
25878 \begin_inset Note Greyedout
25881 \begin_layout Plain Layout
25886 The command is ignored when it is within a paragraph where also the command
25901 \begin_layout Standard
25902 \begin_inset VSpace bigskip
25909 \begin_inset Marginal
25912 \begin_layout Plain Layout
25913 AVeryLongMarginParWord that isn't hyphenated.
25921 Similar to the case described in section
25922 \begin_inset space ~
25926 \begin_inset CommandInset ref
25928 reference "sub:Multiple-Lines-in"
25932 , long words cannot be hyphenated when they are the first word in a margin
25934 To avoid this, insert 0
25935 \begin_inset space \thinspace{}
25938 pt horizontal space before the word
25943 \begin_inset Marginal
25946 \begin_layout Plain Layout
25947 \begin_inset space \hspace*{}
25951 AVeryLongMarginParWord that is hyphenated.
25959 \begin_layout Standard
25960 \begin_inset VSpace bigskip
25966 \begin_layout Standard
25967 \begin_inset Note Greyedout
25970 \begin_layout Plain Layout
25975 Margin notes can normally not be used inside tables, floats, and footnotes.
25983 \begin_layout Standard
25984 \begin_inset VSpace bigskip
25990 \begin_layout Standard
25994 \begin_layout Plain Layout
26004 \begin_inset Note Note
26007 \begin_layout Plain Layout
26008 The following section will only be displayed when the LaTeX-package
26020 \begin_layout Standard
26021 This restriction can be evaded by using the LaTeX-package
26029 \begin_layout Plain Layout
26030 LaTeX-packages ! marginnote
26036 By adding these two lines to your document preamble, the command used by
26037 LyX for margin notes is redefined to use the command provided by the
26044 \begin_layout Standard
26049 usepackage{marginnote}
26050 \begin_inset Newline newline
26062 \begin_layout Standard
26063 This is also used in this document because
26067 has another useful feature: You can set a vertical offset for the note.
26068 This is often needed when too many margin notes are too close together
26069 or for a better page layout.
26070 The offset is set in LyX as TeX-Code directly behind the margin note in
26074 \begin_layout Standard
26080 \begin_layout Standard
26081 where the offset is a length with one of the units listed in Table
26082 \begin_inset space ~
26086 \begin_inset CommandInset ref
26088 reference "tab:Units"
26093 A negative value shifts the note up, a positive value shifts it down.
26097 For example the margin note beside this text line is shifted up 1.5
26098 \begin_inset space \thinspace{}
26101 cm with the TeX-Code-command
26102 \begin_inset Quotes eld
26112 \begin_inset Quotes erd
26116 \begin_inset Marginal
26119 \begin_layout Plain Layout
26120 This margin note is shifted up 1.5
26121 \begin_inset space \thinspace{}
26124 cm from its original position.
26136 \begin_layout Plain Layout
26146 \begin_layout Standard
26147 \begin_inset VSpace medskip
26154 you can also change the alignment of the text in the margin note.
26155 For example the commands
26158 \begin_layout Standard
26165 raggedleftmarginnote}{
26168 \begin_inset Newline newline
26175 raggedrightmarginnote}{
26180 \begin_layout Standard
26181 set the alignment to centered.
26186 raggedleftmarginnote
26188 denotes margin notes that appear at the left side.
26195 \begin_layout Plain Layout
26201 raggedleftmarginnote}{
26206 \begin_layout Plain Layout
26212 raggedrightmarginnote}{
26220 \begin_inset Marginal
26223 \begin_layout Plain Layout
26224 The text of this margin note is centered.
26235 \begin_layout Standard
26242 raggedleftmarginnote}{
26245 \begin_inset Newline newline
26252 raggedrightmarginnote}{
26261 \begin_layout Plain Layout
26267 raggedleftmarginnote}{
26272 \begin_layout Plain Layout
26278 raggedrightmarginnote}{
26288 \begin_layout Standard
26289 \begin_inset VSpace medskip
26292 For the other features of
26296 we refer to its documentation
26297 \begin_inset CommandInset citation
26306 \begin_layout Standard
26307 \begin_inset VSpace bigskip
26310 You can adjust the layout of margin notes by changing its definition.
26311 To create for example a header for all margin notes with the underlined,
26312 sans-serif, and bold header text
26313 \begin_inset Quotes eld
26325 \begin_inset Quotes erd
26328 , add this to your document preamble:
26331 \begin_layout Standard
26341 \begin_inset Newline newline
26351 \begin_inset Newline newline
26358 \begin_layout Plain Layout
26375 underbar{Attention!}}}%
26376 \begin_inset Newline newline
26383 \begin_layout Plain Layout
26401 \begin_layout Standard
26408 \begin_layout Plain Layout
26419 \begin_layout Plain Layout
26430 \begin_layout Plain Layout
26438 underbar{Attention!}}}%
26441 \begin_layout Plain Layout
26455 \begin_inset Marginal
26458 \begin_layout Plain Layout
26459 This is a margin note with a defined heading.
26471 \begin_layout Plain Layout
26485 \begin_layout Plain Layout
26502 \begin_inset Note Note
26505 \begin_layout Plain Layout
26506 The margin note format is changed only for this example.
26514 \begin_layout Standard
26518 \begin_layout Plain Layout
26528 \begin_inset Note Note
26531 \begin_layout Plain Layout
26532 The following will be displayed when the LaTeX-package
26544 \begin_layout Standard
26545 You need to install the LaTeX-package
26549 to see the following part of this section in the output.
26552 \begin_layout Standard
26556 \begin_layout Plain Layout
26568 \begin_layout Chapter
26572 \begin_layout Section
26577 \begin_layout Plain Layout
26578 Boxes ! Introduction
26586 \begin_layout Standard
26587 Boxes are used to format a block of text.
26588 Boxes can be used to write documents with multiple languages, see section
26589 \begin_inset space ~
26593 \begin_inset CommandInset ref
26595 reference "sec:Minipages"
26599 , to frame texts, see section
26600 \begin_inset space ~
26604 \begin_inset CommandInset ref
26606 reference "sec:Decoration"
26610 , to prevent words to be hyphenated, see section
26611 \begin_inset space ~
26615 \begin_inset CommandInset ref
26617 reference "sec:Prevent-Hyphenation"
26621 , to align text, see section
26622 \begin_inset space ~
26626 \begin_inset CommandInset ref
26628 reference "sub:Vertical-Alignment"
26632 , or to set the background color of texts, see section
26633 \begin_inset space ~
26637 \begin_inset CommandInset ref
26639 reference "sec:Colored-Boxes"
26646 \begin_layout Standard
26647 Boxes can be inserted with the menu
26649 Insert\SpecialChar \menuseparator
26652 or the toolbar button
26653 \begin_inset Graphics
26654 filename ../images/box-insert.png
26656 scaleBeforeRotation
26661 A grey box with the label
26666 \begin_inset Graphics
26667 filename clipart/BoxInsetDefaultQt4.png
26669 scaleBeforeRotation
26674 The box type can be specified by right-clicking on the box.
26675 The appearing box dialog offers the
26678 \begin_inset space ~
26696 is the default for new boxes and is explained in section
26697 \begin_inset space ~
26701 \begin_inset CommandInset ref
26703 reference "sec:Minipages"
26711 is described in section
26712 \begin_inset space ~
26716 \begin_inset CommandInset ref
26718 reference "sec:Parboxes"
26725 \begin_layout Standard
26727 \change_inserted 0 1264349164
26731 \change_inserted 0 1264349165
26733 \change_deleted 0 1264349164
26736 t numbered and can therefore not be referenced like floats or footnotes.
26739 \begin_layout Standard
26740 \begin_inset Note Greyedout
26743 \begin_layout Plain Layout
26748 Boxes must not be the item in an
26764 \begin_layout Standard
26765 \begin_inset Note Greyedout
26768 \begin_layout Plain Layout
26773 For an unknown reason you can only set the
26776 \begin_inset space ~
26785 when you use a framed box.
26789 \begin_inset space ~
26794 type and without frames are explained in section
26795 \begin_inset space ~
26799 \begin_inset CommandInset ref
26801 reference "sec:Prevent-Hyphenation"
26813 \begin_layout Section
26815 \begin_inset CommandInset label
26817 name "sec:Box-Dialog"
26825 \begin_layout Plain Layout
26834 \begin_layout Subsection
26839 \begin_layout Plain Layout
26848 \begin_layout Standard
26849 In the box dialog you can adjust the box geometry in the fields
26858 The available units for the geometry are explained in Table
26859 \begin_inset space ~
26863 \begin_inset CommandInset ref
26865 reference "tab:Units"
26873 \change_deleted 0 1264349254
26877 \change_inserted 0 1264349253
26882 offers the following additional sizes:
26885 \begin_layout Description
26886 Depth This is the plain text
26887 \begin_inset Quotes eld
26891 \begin_inset Quotes erd
26895 It ignores the total depth when there are multiple text lines in the box:
26896 \begin_inset Newline newline
26900 \begin_inset Newline newline
26904 \begin_inset Newline newline
26908 \begin_inset Box Boxed
26917 height_special "depth"
26920 \begin_layout Plain Layout
26922 Box height set to 1
26923 \begin_inset space \thinspace{}
26932 \begin_inset Newline newline
26936 \begin_inset Newline newline
26942 \begin_layout Description
26943 Height This is the heig
26944 \change_inserted 0 1264349040
26948 \change_deleted 0 1264349041
26951 of the text that is inside the box.
26953 \begin_inset space \thinspace{}
26957 \begin_inset space \space{}
26960 2 for this size will set the box heig
26961 \change_deleted 0 1264349019
26965 \change_inserted 0 1264349028
26968 to 2 times the text height:
26969 \begin_inset Box Boxed
26978 height_special "height"
26981 \begin_layout Plain Layout
26983 Box height set to 2
26984 \begin_inset space \thinspace{}
26995 \begin_layout Description
26997 \begin_inset space ~
27000 Height This is the Height
27001 \begin_inset space \thinspace{}
27005 \begin_inset space \thinspace{}
27009 \begin_inset Box Boxed
27018 height_special "totalheight"
27021 \begin_layout Plain Layout
27023 Box height set to 1
27024 \begin_inset space \thinspace{}
27028 \begin_inset space ~
27039 \begin_layout Description
27040 Width This sets the width of the box as heig
27041 \change_inserted 0 1264349059
27045 \change_deleted 0 1264349061
27049 \begin_inset Box Boxed
27058 height_special "width"
27061 \begin_layout Plain Layout
27063 Box height set to 1
27064 \begin_inset space \thinspace{}
27075 \begin_layout Subsection
27080 \begin_layout Plain Layout
27089 \begin_layout Standard
27090 When you have chosen an
27093 \begin_inset space ~
27098 , the vertical box alignment can be:
27101 \begin_layout Description
27102 Top This is an example text line.
27104 \begin_inset Box Boxed
27113 height_special "totalheight"
27116 \begin_layout Plain Layout
27118 This box is top-aligned.
27123 This is an example text line.
27126 \begin_layout Description
27127 Middle This is an example text line.
27129 \begin_inset Box Boxed
27138 height_special "totalheight"
27141 \begin_layout Plain Layout
27143 This box is middle-aligned.
27148 This is an example text line.
27151 \begin_layout Description
27152 Bottom This is an example text line.
27154 \begin_inset Box Boxed
27163 height_special "totalheight"
27166 \begin_layout Plain Layout
27168 This box is bottom-aligned.
27173 This is an example text line.
27176 \begin_layout Standard
27177 \begin_inset Note Greyedout
27180 \begin_layout Plain Layout
27185 The vertical box alig
27186 \change_inserted 0 1264349304
27189 ment can be lost in the output when you have two boxes in a line and one
27191 \begin_inset space \thinspace{}
27195 \begin_inset space \space{}
27198 a shadow and the other one not.
27206 \begin_layout Standard
27207 The horizontal box alignment can be set via LyX's paragraph dialog when
27208 you set the box into its own paragraph.
27211 \begin_layout Standard
27212 \begin_inset VSpace bigskip
27215 When you have chosen an
27218 \begin_inset space ~
27223 , the box content can be vertical
27224 \change_inserted 0 1264349345
27230 \begin_layout Description
27231 top This is an example text line.
27233 \begin_inset Box Boxed
27242 height_special "totalheight"
27245 \begin_layout Plain Layout
27247 This box text is top-aligned.
27252 This is an example text line.
27255 \begin_layout Description
27256 middle This is an example text line.
27258 \begin_inset Box Boxed
27267 height_special "totalheight"
27270 \begin_layout Plain Layout
27272 This box text is middle-aligned.
27277 This is an example text line.
27280 \begin_layout Description
27281 bottom This is an example text line.
27283 \begin_inset Box Boxed
27292 height_special "totalheight"
27295 \begin_layout Plain Layout
27297 This box text is bottom-aligned.
27302 This is an example text line.
27305 \begin_layout Description
27306 stretch This is an example text line.
27308 \begin_inset Box Boxed
27317 height_special "totalheight"
27320 \begin_layout Plain Layout
27325 \begin_layout Plain Layout
27330 \begin_layout Plain Layout
27337 This is an example text line.
27340 \begin_layout Standard
27341 To stretch the box content, it must consist of more than one paragraph.
27342 In the example above every text line is in an own paragraph.
27345 \begin_layout Standard
27346 \begin_inset VSpace bigskip
27349 To align the box content horizontally you can use LyX's paragraph dialog
27350 when you have chosen an
27353 \begin_inset space ~
27361 \begin_layout Standard
27363 \begin_inset Box Boxed
27372 height_special "totalheight"
27375 \begin_layout Plain Layout
27380 \begin_layout Plain Layout
27385 \begin_layout Plain Layout
27395 \begin_layout Standard
27397 \change_inserted 0 1264349404
27401 \change_inserted 0 1264349405
27403 \change_deleted 0 1264349404
27409 \begin_inset space ~
27414 , you can align the box content horizontally in the box dialog.
27417 \begin_layout Standard
27419 \begin_inset Box Boxed
27428 height_special "totalheight"
27431 \begin_layout Plain Layout
27433 This box text is horizontally stretched.
27441 \begin_layout Subsection
27443 \begin_inset CommandInset label
27445 name "sec:Decoration"
27453 \begin_layout Plain Layout
27462 \begin_layout Standard
27463 The type of the box can be specified in the box
27464 \change_inserted 0 1264349426
27466 \change_deleted 0 1264349425
27469 dialog in the drop-down list
27474 The following types are possible:
27477 \begin_layout Description
27479 \begin_inset space ~
27483 \begin_inset space ~
27487 \change_deleted 0 1264349464
27489 \change_inserted 0 1264349464
27492 frame around the box.
27493 The frame line thickness has the size of
27501 \begin_inset Box Boxed
27510 height_special "totalheight"
27513 \begin_layout Plain Layout
27523 \begin_layout Description
27525 \begin_inset space ~
27529 \begin_inset space ~
27532 break When you use the decoration
27534 simple rectangular frame
27536 and no inner box, you can allow page breaks within a box.
27537 Note that then, in contrary to other framed boxes, the frame always uses
27538 the whole column width, the box is set as its own paragraph, and
27551 \change_deleted 0 1264349516
27553 \change_inserted 0 1264349516
27556 no effect on this box type.
27557 The frame line thickness has the size of
27565 \begin_inset Box Framed
27574 height_special "totalheight"
27577 \begin_layout Plain Layout
27578 Allow page break box
27586 \begin_layout Description
27588 \begin_inset space ~
27592 \begin_inset space ~
27595 thin This draws an oval frame around the box.
27596 The frame line thickness has the size 0.4
27597 \begin_inset space \thinspace{}
27602 \begin_inset Box ovalbox
27611 height_special "totalheight"
27614 \begin_layout Plain Layout
27624 \begin_layout Description
27626 \begin_inset space ~
27630 \begin_inset space ~
27633 thick This draws an oval frame around the box.
27634 The frame line thickness has the size 0.8
27635 \begin_inset space \thinspace{}
27640 \begin_inset Box Ovalbox
27649 height_special "totalheight"
27652 \begin_layout Plain Layout
27662 \begin_layout Description
27664 \begin_inset space ~
27667 shadow This draws a
27668 \change_deleted 0 1264349586
27670 \change_inserted 0 1264349586
27673 frame with a shadow around the box.
27674 The frame line thickness has the size of
27680 , the shadow has a width of 4
27681 \begin_inset space \thinspace{}
27686 \begin_inset Box Shadowbox
27695 height_special "totalheight"
27698 \begin_layout Plain Layout
27708 \begin_layout Description
27710 \begin_inset space ~
27713 background This draws a box with red background color.
27714 In contrary to colored boxes
27718 \begin_layout Plain Layout
27720 \begin_inset space \thinspace{}
27724 \begin_inset CommandInset ref
27726 reference "sec:Colored-Boxes"
27735 , it always uses the whole column width and the box is set as its own paragraph.
27737 \begin_inset Box Shaded
27746 height_special "totalheight"
27749 \begin_layout Plain Layout
27750 Shaded background box
27758 \begin_layout Description
27760 \begin_inset space ~
27764 \begin_inset space ~
27767 frame This draws a double-line
27768 \change_deleted 0 1264349612
27770 \change_inserted 0 1264349612
27773 frame around the box.
27774 The line thickness of the inner frame is 0.75
27775 \begin_inset space \thinspace{}
27784 , the thickness of the outer frame is 1.5
27785 \begin_inset space \thinspace{}
27795 The distance between the lines is 1.5
27796 \begin_inset space \thinspace{}
27806 \begin_inset space \thinspace{}
27810 \begin_inset space \thinspace{}
27814 \begin_inset space \thinspace{}
27819 \begin_inset Box Doublebox
27828 height_special "totalheight"
27831 \begin_layout Plain Layout
27833 Double rectangular box
27841 \begin_layout Standard
27842 \begin_inset VSpace bigskip
27845 LyX's box label will reflect the different frame types.
27846 To be able to use all types, the LaTeX-package
27854 \begin_layout Plain Layout
27855 LaTeX-packages ! fancybox
27863 \begin_layout Section
27865 \change_deleted 0 1264349661
27867 \change_inserted 0 1264349661
27874 \begin_layout Plain Layout
27875 Boxes ! Customization
27883 \begin_layout Standard
27884 The default value for the size
27891 \begin_inset space \thinspace{}
27895 It can be changed with the following command in TeX-Code to e.
27896 \begin_inset space \thinspace{}
27900 \begin_inset space \space{}
27904 \begin_inset space \thinspace{}
27910 \begin_layout Standard
27920 \begin_layout Standard
27924 \begin_layout Plain Layout
27936 \begin_inset Box Boxed
27945 height_special "totalheight"
27948 \begin_layout Plain Layout
27950 Rectangular box with
27957 \begin_inset space \thinspace{}
27961 \begin_inset space \thinspace{}
27965 \begin_inset space \thinspace{}
27977 \begin_layout Plain Layout
27991 \begin_layout Standard
27992 \begin_inset VSpace bigskip
27995 The space between the frame and the box content is for all frame styles
27997 \begin_inset space \thinspace{}
28001 You can change it by setting the length
28008 For example the command
28011 \begin_layout Standard
28021 \begin_layout Standard
28022 sets the value to 10
28023 \begin_inset space \thinspace{}
28026 pt, like for the following box:
28029 \begin_layout Standard
28033 \begin_layout Plain Layout
28045 \begin_inset Box Boxed
28054 height_special "totalheight"
28057 \begin_layout Plain Layout
28059 Rectangular box with
28066 \begin_inset space \thinspace{}
28070 \begin_inset space \thinspace{}
28074 \begin_inset space \thinspace{}
28086 \begin_layout Plain Layout
28100 \begin_layout Standard
28101 \begin_inset VSpace bigskip
28104 The diameter of the round corners of the oval boxes can be set with the
28115 \begin_layout Standard
28123 \begin_layout Standard
28124 sets the diameter to 1
28125 \begin_inset space \thinspace{}
28132 \begin_layout Standard
28140 \begin_layout Standard
28141 sets the diameter to
28144 \begin_inset space \thinspace{}
28148 \begin_inset space \thinspace{}
28151 minimum(width and heigth of box)
28163 \begin_layout Standard
28167 \begin_layout Plain Layout
28177 \begin_inset Box Ovalbox
28186 height_special "totalheight"
28189 \begin_layout Plain Layout
28198 \begin_inset space \thinspace{}
28202 \begin_inset space \thinspace{}
28206 \begin_inset space \thinspace{}
28218 \begin_layout Plain Layout
28230 \begin_layout Standard
28231 \begin_inset VSpace bigskip
28234 The size of the shadow can be adjusted by changing the length
28242 \begin_inset space \thinspace{}
28245 pt for the following box by this command:
28248 \begin_layout Standard
28258 \begin_layout Standard
28262 \begin_layout Plain Layout
28274 \begin_inset Box Shadowbox
28283 height_special "totalheight"
28286 \begin_layout Plain Layout
28295 \begin_inset space \thinspace{}
28299 \begin_inset space \thinspace{}
28303 \begin_inset space \thinspace{}
28315 \begin_layout Plain Layout
28329 \begin_layout Standard
28330 \begin_inset VSpace bigskip
28336 \begin_layout Standard
28337 The default value for the size
28344 \begin_inset space \thinspace{}
28348 The default space between the note content and the frame is 9
28349 \begin_inset space \thinspace{}
28352 pt and can be changed with the value of
28359 For example the frame appearance of the following
28363 is set with the TeX-Code commands
28364 \change_inserted 0 1264350396
28370 \begin_layout Standard
28378 \begin_inset Newline newline
28388 \begin_layout Standard
28392 \begin_layout Plain Layout
28401 \begin_layout Plain Layout
28413 \begin_inset Box Framed
28422 height_special "totalheight"
28425 \begin_layout Plain Layout
28439 \begin_layout Plain Layout
28448 \begin_layout Plain Layout
28462 \begin_layout Standard
28463 \begin_inset VSpace bigskip
28469 \begin_layout Standard
28474 boxes the default space between the box content and the box border is 3
28475 \begin_inset space \thinspace{}
28478 pt and can be changed with the value of
28485 The default background color red can either be changed locally with the
28490 definecolor{shadebox}
28492 or globally with the menu
28494 Tools\SpecialChar \menuseparator
28495 Preferences\SpecialChar \menuseparator
28496 Colors\SpecialChar \menuseparator
28498 \begin_inset space ~
28510 command is explained in section
28511 \begin_inset space ~
28515 \begin_inset CommandInset ref
28517 reference "sec:Colored-Tables"
28525 \begin_layout Plain Layout
28532 requires the LaTeX-package
28536 in the preamble, see section
28537 \begin_inset space ~
28541 \begin_inset CommandInset ref
28543 reference "sec:Colored-Boxes"
28552 For example the appearance of the following
28557 \change_deleted 0 1264349764
28559 \change_inserted 0 1264349764
28562 is set with the TeX-Code commands
28563 \change_inserted 0 1264349836
28569 \begin_layout Standard
28579 \begin_inset Newline newline
28586 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28589 \begin_layout Standard
28593 \begin_layout Plain Layout
28602 \begin_layout Plain Layout
28606 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28612 \begin_inset Box Shaded
28621 height_special "totalheight"
28624 \begin_layout Plain Layout
28627 This is yellow text in a
28637 box with dark green background.
28646 \begin_layout Plain Layout
28655 \begin_layout Plain Layout
28659 definecolor{shadecolor}{rgb}{1,0,0}
28667 \begin_layout Standard
28668 \begin_inset VSpace bigskip
28671 Changed lengths and widths are valid for all boxes following the commands
28675 \begin_layout Section
28677 \begin_inset CommandInset label
28679 name "sec:Minipages"
28687 \begin_layout Plain Layout
28696 \begin_layout Standard
28697 Minipages are treated by LaTeX as pages within pages and can therefore for
28698 example have their own footnotes.
28701 \begin_layout Standard
28702 Minipages are useful when you write documents with different languages.
28705 \begin_layout Standard
28706 Below are two example minipages side by side.
28707 Their width is set to 45
28708 \begin_inset space \thinspace{}
28711 col% and they are separated by a horizontal fill, that was inserted via
28714 Insert\SpecialChar \menuseparator
28716 \begin_inset space ~
28719 Formatting\SpecialChar \menuseparator
28721 \begin_inset space ~
28727 \begin_inset Newpage newpage
28733 \begin_layout Standard
28734 \begin_inset Box Frameless
28743 height_special "totalheight"
28746 \begin_layout Plain Layout
28749 Dies ist ein deutscher Text.
28750 Dies ist ein deutscher Text.
28751 Dies ist ein deutscher Text.
28752 Dies ist ein deutscher Text.
28753 Dies ist ein deutscher Text.
28754 Dies ist ein deutscher Text.
28755 Dies ist ein deutscher Text.
28756 Dies ist ein deutscher Text.
28757 Dies ist ein deutscher Text.
28758 Dies ist ein deutscher Text.
28759 Dies ist ein deutscher Text.
28760 Dies ist ein deutscher Text.
28761 Dies ist ein deutscher Text
28765 \begin_layout Plain Layout
28768 Dies ist eine deutsche Fußnote.
28774 Dies ist ein deutscher Text.
28775 Dies ist ein deutscher Text.
28781 \begin_inset space \hfill{}
28785 \begin_inset Box Frameless
28794 height_special "totalheight"
28797 \begin_layout Plain Layout
28798 This is an English Text.
28799 This is an English Text.
28800 This is an English Text.
28801 This is an English Text.
28802 This is an English Text.
28803 This is an English Text.
28804 This is an English Text.
28805 This is an English Text.
28806 This is an English Text.
28807 This is an English Text.
28808 This is an English Text.
28809 This is an English Text.
28810 This is an English Text.
28811 This is an English Text.
28812 This is an English Text.
28813 This is an English Text.
28817 \begin_layout Plain Layout
28818 This is an English footnote.
28823 This is an English Text.
28832 \begin_layout Standard
28833 \begin_inset VSpace bigskip
28836 Another application for minipages are footnotes within tables.
28837 Due to a LaTeX restriction footnotes within tables doesn't appear at the
28838 bottom of the current page.
28839 But when you put the table with the footnote to a minipage, the footnote
28840 will appear at its bottom, numbered with Latin letters.
28841 The footnote number is reset to 1 in every minipage but not outside the
28845 \begin_layout Standard
28846 The footnote of this table doesn't appear:
28847 \begin_inset Tabular
28848 <lyxtabular version="3" rows="3" columns="4">
28850 <column alignment="center" valignment="top" width="0pt">
28851 <column alignment="center" valignment="top" width="0pt">
28852 <column alignment="center" valignment="top" width="0pt">
28853 <column alignment="center" valignment="top" width="0pt">
28855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28858 \begin_layout Plain Layout
28864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28867 \begin_layout Plain Layout
28873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28876 \begin_layout Plain Layout
28881 \begin_layout Plain Layout
28882 This is a footnote within a table.
28892 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28895 \begin_layout Plain Layout
28903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28906 \begin_layout Plain Layout
28912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28915 \begin_layout Plain Layout
28921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28924 \begin_layout Plain Layout
28930 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28933 \begin_layout Plain Layout
28941 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28944 \begin_layout Plain Layout
28950 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28953 \begin_layout Plain Layout
28959 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28962 \begin_layout Plain Layout
28968 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28971 \begin_layout Plain Layout
28985 \begin_layout Standard
28987 \begin_inset Box Frameless
28996 height_special "totalheight"
28999 \begin_layout Plain Layout
29001 \begin_inset Tabular
29002 <lyxtabular version="3" rows="3" columns="4">
29004 <column alignment="center" valignment="top" width="0pt">
29005 <column alignment="center" valignment="top" width="0pt">
29006 <column alignment="center" valignment="top" width="0pt">
29007 <column alignment="center" valignment="top" width="0pt">
29009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29012 \begin_layout Plain Layout
29018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29021 \begin_layout Plain Layout
29027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29030 \begin_layout Plain Layout
29035 \begin_layout Plain Layout
29036 This is a footnote within a table.
29046 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29049 \begin_layout Plain Layout
29057 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29060 \begin_layout Plain Layout
29066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29069 \begin_layout Plain Layout
29075 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29078 \begin_layout Plain Layout
29084 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29087 \begin_layout Plain Layout
29095 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29098 \begin_layout Plain Layout
29104 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29107 \begin_layout Plain Layout
29113 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29116 \begin_layout Plain Layout
29122 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29125 \begin_layout Plain Layout
29144 \begin_layout Standard
29145 \begin_inset VSpace bigskip
29148 The document-wide paragraph settings are ignored within minipages.
29149 That means that there will be no space between paragraphs in minipages
29150 although you set it to e.
29151 \begin_inset space \thinspace{}
29155 \begin_inset space \space{}
29162 in the document settings.
29165 \begin_layout Standard
29166 Minipages can also be used to set a background color for text parts, see
29168 \begin_inset space ~
29172 \begin_inset CommandInset ref
29174 reference "sub:Color-for-Paragraphs"
29181 \begin_layout Standard
29182 \begin_inset Note Greyedout
29185 \begin_layout Plain Layout
29190 You cannot have floats or margin notes inside minipages but minipages can
29191 be used inside tables, floats, and other boxes.
29199 \begin_layout Section
29201 \begin_inset CommandInset label
29203 name "sec:Parboxes"
29211 \begin_layout Plain Layout
29220 \begin_layout Standard
29221 Parboxes are very similar to minipages with the difference that they cannot
29223 The main difference to minipages is that minipages are in contrary to parboxes
29224 no real boxes but LaTeX-environments.
29227 \begin_layout Standard
29229 \begin_inset Box Frameless
29238 height_special "totalheight"
29241 \begin_layout Plain Layout
29242 This a text within a parbox.
29243 This a text within a parbox.
29246 \begin_layout Plain Layout
29247 This footnote won't appear:
29251 \begin_layout Plain Layout
29252 This footnote is inside a parbox and will therefore not appear.
29265 \begin_layout Section
29266 Boxes for Words and Characters
29270 \begin_layout Plain Layout
29271 Boxes ! for Characters
29279 \begin_layout Subsection
29280 Prevent Hyphenation
29281 \begin_inset CommandInset label
29283 name "sec:Prevent-Hyphenation"
29291 \begin_layout Plain Layout
29292 Boxes ! to Prevent Hyphenation
29300 \begin_layout Standard
29301 You can use a special kind of boxes to prevent words or text to be hyphenated.
29302 \begin_inset Newline newline
29305 Here is an example text:
29308 \begin_layout Standard
29309 This line is an example to show how you can prevent the hyphenation of
29310 \begin_inset Quotes eld
29314 \begin_inset Quotes erd
29320 \begin_layout Standard
29321 To prevent the hyphenation of the word
29322 \begin_inset Quotes eld
29326 \begin_inset Quotes erd
29332 \begin_layout Standard
29340 \begin_layout Standard
29341 in TeX-Code before the word.
29342 Behind the word insert a closing brace
29343 \begin_inset Quotes eld
29351 \begin_inset Quotes erd
29357 \begin_layout Standard
29358 This is the result:
29361 \begin_layout Standard
29362 This line is an example to show how you can prevent the hyphenation of
29366 \begin_layout Plain Layout
29376 \begin_inset Quotes eld
29380 \begin_inset Quotes erd
29387 \begin_layout Plain Layout
29397 \begin_layout Standard
29398 You can alternatively set the command
29399 \begin_inset Quotes eld
29409 \begin_inset Quotes grd
29412 as TeX-Code directly before the word:
29415 \begin_layout Standard
29416 This line is an example to show how you can prevent the hyphenation of
29417 \begin_inset Quotes eld
29424 \begin_layout Plain Layout
29434 \begin_inset Quotes erd
29440 \begin_layout Standard
29441 Of course the word now protrudes over the side margin.
29442 To avoid this, add via the menu
29444 Insert\SpecialChar \menuseparator
29446 \begin_inset space ~
29449 Formatting\SpecialChar \menuseparator
29451 \begin_inset space ~
29459 arg "newline-insert newline"
29462 ) a line break before the word:
29465 \begin_layout Standard
29466 This line is an example to show how you can prevent the hyphenation of
29467 \begin_inset Newline newline
29474 \begin_layout Plain Layout
29484 \begin_inset Quotes eld
29488 \begin_inset Quotes erd
29495 \begin_layout Plain Layout
29505 \begin_layout Subsection
29507 \begin_inset CommandInset label
29509 name "sub:Vertical-Alignment"
29517 \begin_layout Plain Layout
29518 Boxes ! for Vertical Alignment
29527 \begin_layout Plain Layout
29536 \begin_layout Standard
29537 With the help of the command
29543 you can align words, characters or other boxes vertically to the surrounding
29551 is used with the following scheme:
29554 \begin_layout Standard
29559 raisebox{lift}[height][depth]{box content}
29562 \begin_layout Standard
29563 The lift can be a positive value to raise the box or a negative value to
29567 \begin_layout Standard
29568 To align for example the word
29569 \begin_inset Quotes eld
29573 \begin_inset Quotes erd
29576 so that the bottom of the
29577 \begin_inset Quotes eld
29581 \begin_inset Quotes erd
29585 \begin_inset Quotes eld
29589 \begin_inset Quotes erd
29592 is at the baseline, insert the command
29595 \begin_layout Standard
29605 \begin_layout Standard
29606 in TeX-Code before the word.
29607 Behind the word insert a closing brace
29608 \begin_inset Quotes eld
29616 \begin_inset Quotes erd
29620 \begin_inset Newline newline
29623 This is the result:
29626 \begin_layout Standard
29627 This is a text line with the word
29631 \begin_layout Plain Layout
29643 \begin_inset Quotes eld
29647 \begin_inset Quotes erd
29654 \begin_layout Plain Layout
29664 \begin_layout Standard
29665 \begin_inset VSpace bigskip
29668 When you raise or lower characters in a line, the line distance will be
29672 \begin_layout Standard
29673 This is a text line with the word
29677 \begin_layout Plain Layout
29689 \begin_inset Quotes eld
29693 \begin_inset Quotes erd
29700 \begin_layout Plain Layout
29708 \begin_inset Newline newline
29711 This is a text line with the word
29715 \begin_layout Plain Layout
29725 \begin_inset Quotes eld
29729 \begin_inset Quotes erd
29736 \begin_layout Plain Layout
29746 \begin_layout Standard
29747 If you want to prevent this for a certain reason, set the box height to
29752 \begin_layout Standard
29762 \begin_layout Standard
29763 This is a text line with the word
29767 \begin_layout Plain Layout
29779 \begin_inset Quotes eld
29783 \begin_inset Quotes erd
29790 \begin_layout Plain Layout
29798 \begin_inset Newline newline
29801 This is a text line with the word
29805 \begin_layout Plain Layout
29809 raisebox{0.5cm}[0pt]{
29815 \begin_inset Quotes eld
29819 \begin_inset Quotes erd
29826 \begin_layout Plain Layout
29836 \begin_layout Section
29838 \begin_inset CommandInset label
29840 name "sec:Colored-Boxes"
29848 \begin_layout Plain Layout
29857 \begin_layout Subsection
29862 \begin_layout Plain Layout
29871 \begin_layout Standard
29872 To color the background of text the text must be put into a so called
29873 \begin_inset Quotes eld
29877 \begin_inset Quotes erd
29881 This requires that the LaTeX-package
29889 \begin_layout Plain Layout
29890 LaTeX-packages ! color
29895 is loaded in the document preamble with the command
29898 \begin_layout Standard
29903 @ifundefined{textcolor}
29904 \begin_inset Newline newline
29911 \begin_layout Plain Layout
29922 usepackage{color}}{}
29925 \begin_layout Standard
29930 will be loaded automatically by LyX when you color text
29934 \begin_layout Plain Layout
29935 To avoid that it is loaded twice the command
29949 \begin_layout Standard
29950 \begin_inset VSpace medskip
29953 Colorboxes are created with the command
29960 This will be used with the following scheme:
29963 \begin_layout Standard
29968 colorbox{color}{box content}
29971 \begin_layout Standard
29972 The box content can also be a box and colorboxes can also be within other
29976 \begin_layout Standard
29977 The following colors are predefined:
29978 \begin_inset Newline newline
30017 \begin_inset Newline newline
30020 You can also define your own color as described in section
30021 \begin_inset space ~
30025 \begin_inset CommandInset ref
30027 reference "sec:Colored-Tables"
30034 \begin_layout Standard
30036 \begin_inset space \thinspace{}
30040 \begin_inset space \space{}
30043 a red background for a word, insert the command
30046 \begin_layout Standard
30054 \begin_layout Standard
30055 before the word in TeX-Code.
30056 Behind the word insert a closing brace
30057 \begin_inset Quotes eld
30065 \begin_inset Quotes erd
30069 \begin_inset Newline newline
30072 This is the result:
30075 \begin_layout Standard
30076 This is a line where the word
30080 \begin_layout Plain Layout
30090 \begin_inset Quotes eld
30094 \begin_inset Quotes erd
30101 \begin_layout Plain Layout
30108 has a red background.
30111 \begin_layout Standard
30112 \begin_inset VSpace bigskip
30115 If you would have the box frame in a different color, you can use the command
30122 with the following scheme:
30125 \begin_layout Standard
30130 fcolorbox{frame color}{box color}{box content}
30133 \begin_layout Standard
30147 The frame thickness and the space between the frame and the box content
30148 can be adjusted with the lengths
30160 , respectively, as described in section
30161 \begin_inset space ~
30165 \begin_inset CommandInset ref
30167 reference "sec:Decoration"
30174 \begin_layout Standard
30175 For the following example the command
30178 \begin_layout Standard
30183 fcolorbox{cyan}{magenta}{
30186 \begin_layout Standard
30190 \begin_layout Standard
30191 Here is an example where the frame line thickness was set to 1
30192 \begin_inset space \thinspace{}
30196 \begin_inset Newline newline
30203 \begin_layout Plain Layout
30218 \begin_layout Plain Layout
30222 fcolorbox{cyan}{magenta}{
30227 This is text within a colored, framed box.
30231 \begin_layout Plain Layout
30241 \begin_layout Standard
30242 \begin_inset VSpace bigskip
30245 Of course you can also have colored text inside a colorbox:
30246 \begin_inset Newline newline
30253 \begin_layout Plain Layout
30257 fcolorbox{cyan}{magenta}{
30264 This is colored text within a colored, framed box.
30270 \begin_layout Plain Layout
30281 \begin_layout Plain Layout
30295 \begin_layout Standard
30298 \begin_inset VSpace medskip
30304 \begin_layout Standard
30305 \begin_inset Note Greyedout
30308 \begin_layout Plain Layout
30313 Text in colorboxes cannot have line breaks.
30314 To color multiple text lines or paragraphs, use a box inside a colorbox
30315 as described in the following.
30323 \begin_layout Subsection
30324 Color for Paragraphs
30325 \begin_inset CommandInset label
30327 name "sub:Color-for-Paragraphs"
30335 \begin_layout Plain Layout
30336 Color ! for Paragraphs
30344 \begin_layout Standard
30345 To set the background color for more than one text line, put the text into
30347 Before the minipage insert the
30356 \begin_layout Standard
30364 \begin_layout Standard
30366 Behind the minipage insert a closing brace
30367 \begin_inset Quotes eld
30375 \begin_inset Quotes erd
30381 \begin_layout Standard
30385 \begin_layout Plain Layout
30389 colorbox{lightgrey}{
30395 \begin_inset Box Frameless
30404 height_special "totalheight"
30407 \begin_layout Plain Layout
30408 This is text with background color.
30409 This is text with background color.
30412 \begin_layout Plain Layout
30413 \begin_inset VSpace defskip
30416 The text can have footnotes
30420 \begin_layout Plain Layout
30421 Another example footnote
30426 and can include tables and figures.
30429 \begin_layout Plain Layout
30431 \begin_inset Tabular
30432 <lyxtabular version="3" rows="3" columns="3">
30434 <column alignment="center" valignment="top" width="0">
30435 <column alignment="center" valignment="top" width="0">
30436 <column alignment="center" valignment="top" width="0">
30438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30441 \begin_layout Plain Layout
30447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30450 \begin_layout Plain Layout
30456 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30459 \begin_layout Plain Layout
30467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30470 \begin_layout Plain Layout
30476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30479 \begin_layout Plain Layout
30481 \begin_inset Quotes erd
30489 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30492 \begin_layout Plain Layout
30500 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30503 \begin_layout Plain Layout
30509 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30512 \begin_layout Plain Layout
30518 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30521 \begin_layout Plain Layout
30541 \begin_layout Plain Layout
30551 \begin_layout Section
30552 Rotated and Scaled Boxes
30555 \begin_layout Standard
30556 To use the the commands described in this section, the LaTeX-package
30564 \begin_layout Plain Layout
30565 LaTeX-packages ! graphicx
30570 needs to be loaded in the document preamble with the command
30573 \begin_layout Standard
30578 @ifundefined{rotatebox}
30579 \begin_inset Newline newline
30586 \begin_layout Plain Layout
30597 usepackage{graphicx}}{}
30600 \begin_layout Standard
30601 \begin_inset Note Greyedout
30604 \begin_layout Plain Layout
30609 Some DVI-viewers can't display rotated or scaled material.
30617 \begin_layout Standard
30618 \begin_inset Note Greyedout
30621 \begin_layout Plain Layout
30626 Floats mustn't be inside a rotated or scaled box.
30634 \begin_layout Subsection
30639 \begin_layout Plain Layout
30649 \begin_layout Plain Layout
30659 \begin_layout Plain Layout
30669 \begin_layout Plain Layout
30670 Table Customization ! Rotating
30678 \begin_layout Standard
30679 To rotate material, you can put it into a rotated box.
30680 Such a box is created using the command
30686 in TeX-Code with the following scheme:
30689 \begin_layout Standard
30694 rotatebox[rotation origin]{rotation angle}{box content}
30697 \begin_layout Standard
30698 The rotation origin is specified in the form
30703 The following positions are possible:
30723 (top), and also expedient combinations of the four base positions.
30728 means, that the rotation origin is at the top left corner of the box.
30729 When no rotation origin is specified, the position
30734 The rotation angle is a number that can be negative that specifies the
30736 The rotation direction is counterclockwise.
30739 \begin_layout Standard
30740 In the following example the command
30744 rotatebox[origin=c]{60}{
30746 was inserted as TeX-Code before the text
30747 \begin_inset Quotes eld
30751 \begin_inset Quotes erd
30754 ; after the text the box was closed by a closing brace
30761 \begin_layout Standard
30766 \begin_layout Plain Layout
30770 rotatebox[origin=c]{60}{
30779 \begin_layout Plain Layout
30789 \begin_layout Standard
30790 The box content can also be another box or an inline formula:
30793 \begin_layout Standard
30798 \begin_layout Plain Layout
30802 rotatebox[origin=r]{-60}{
30808 \begin_inset Box Doublebox
30817 height_special "totalheight"
30820 \begin_layout Plain Layout
30830 \begin_layout Plain Layout
30841 \begin_layout Plain Layout
30845 rotatebox[origin=lb]{60}{
30851 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30858 \begin_layout Plain Layout
30868 \begin_layout Standard
30869 or an image or table:
30872 \begin_layout Standard
30877 \begin_layout Plain Layout
30881 rotatebox[origin=lb]{90}{
30887 \begin_inset Graphics
30888 filename clipart/platypus.eps
30898 \begin_layout Plain Layout
30905 with a rotated image
30909 \begin_layout Plain Layout
30913 rotatebox[origin=l]{-90}{
30919 \begin_inset Tabular
30920 <lyxtabular version="3" rows="2" columns="2">
30922 <column alignment="center" valignment="top" width="0">
30923 <column alignment="center" valignment="top" width="0">
30925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30928 \begin_layout Plain Layout
30934 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30937 \begin_layout Plain Layout
30945 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30948 \begin_layout Plain Layout
30954 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30957 \begin_layout Plain Layout
30972 \begin_layout Plain Layout
30982 \begin_layout Subsection
30987 \begin_layout Plain Layout
30997 \begin_layout Plain Layout
31007 \begin_layout Plain Layout
31017 \begin_layout Plain Layout
31018 Table Customization ! Scaling
31026 \begin_layout Standard
31027 To scale material the commands
31039 can be used as TeX-Code.
31042 \begin_layout Standard
31049 is used with the following scheme:
31052 \begin_layout Standard
31057 scalebox{horizontal}[vertical]{box content}
31060 \begin_layout Standard
31061 Horizontal and vertical are the corresponding scaling factors.
31062 If no vertical scaling factor is given, the horizontal factor will also
31063 be used as vertical one.
31066 \begin_layout Standard
31073 creates for example a double size
31077 \begin_layout Plain Layout
31090 \begin_layout Plain Layout
31097 , compared to the document text size.
31100 \begin_layout Standard
31105 scalebox{2}[1]{Hello}
31107 in contrary distorts the
31111 \begin_layout Plain Layout
31124 \begin_layout Plain Layout
31134 \begin_layout Standard
31135 If a the scaling factor is negative, the box content will be mirrored.
31136 Therefore the command
31140 scalebox{-1}[1]{Hello}
31142 can be used to create mirror writing:
31146 \begin_layout Plain Layout
31159 \begin_layout Plain Layout
31169 \begin_layout Standard
31174 scalebox{1}[-1]{Hello}
31180 \begin_layout Plain Layout
31193 \begin_layout Plain Layout
31203 \begin_layout Standard
31208 scalebox{-1}[1]{box content}
31210 there exists the command
31211 \begin_inset Newline newline
31218 reflectbox{box content}
31223 \begin_layout Standard
31224 \begin_inset VSpace bigskip
31233 is used to scale the box to a defined width and height.
31234 The command scheme is:
31237 \begin_layout Standard
31242 resizebox{width}{height}{box content}
31245 \begin_layout Standard
31246 Is one of the two command arguments given as exclamation mark
31250 , the size is set so that the aspect ratio of the box content is kept.
31253 \begin_layout Standard
31258 resizebox{2cm}{1cm}{Hello}
31264 \begin_layout Plain Layout
31268 resizebox{2cm}{1cm}{
31277 \begin_layout Plain Layout
31285 \begin_inset Newline newline
31292 resizebox{2cm}{!}{Hello}
31298 \begin_layout Plain Layout
31311 \begin_layout Plain Layout
31321 \begin_layout Standard
31322 \begin_inset VSpace bigskip
31326 \begin_inset Note Greyedout
31329 \begin_layout Plain Layout
31346 are set to zero, no LaTeX-errors occur when exporting the document but
31347 the exported files can not or only partly be displayed.
31355 \begin_layout Standard
31356 \begin_inset VSpace bigskip
31362 \begin_layout Standard
31363 The boxes can be combined in any order.
31365 \begin_inset space \thinspace{}
31369 \begin_inset space \space{}
31373 \begin_inset Newline newline
31380 rotatebox[origin=c]{-45}{
31384 reflectbox{Hello}}}
31385 \begin_inset Newline newline
31393 \begin_layout Standard
31398 \begin_layout Plain Layout
31402 rotatebox[origin=c]{-45}{
31415 \begin_layout Plain Layout
31425 \begin_layout Standard
31427 Images, tables, and inline formulas are allowed as box content:
31430 \begin_layout Standard
31435 \begin_layout Plain Layout
31439 rotatebox[origin=c]{-30}{
31449 \begin_inset Graphics
31450 filename clipart/platypus.eps
31460 \begin_layout Plain Layout
31471 \begin_layout Plain Layout
31475 rotatebox[origin=c]{-45}{
31485 \begin_inset Tabular
31486 <lyxtabular version="3" rows="2" columns="2">
31488 <column alignment="center" valignment="top" width="0">
31489 <column alignment="center" valignment="top" width="0">
31491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31494 \begin_layout Plain Layout
31500 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31503 \begin_layout Plain Layout
31511 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31514 \begin_layout Plain Layout
31520 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31523 \begin_layout Plain Layout
31538 \begin_layout Plain Layout
31549 \begin_layout Plain Layout
31553 rotatebox[origin=c]{-45}{
31563 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31570 \begin_layout Plain Layout
31580 \begin_layout Standard
31581 When the global formula style
31585 is used in the document
31589 \begin_layout Plain Layout
31591 \begin_inset Quotes eld
31595 \begin_inset Quotes erd
31598 is added to the document class options.
31603 , also display formulas can be scaled.
31606 \begin_layout Chapter
31607 External Document Parts
31611 \begin_layout Plain Layout
31612 External Document Parts
31620 \begin_layout Standard
31623 Insert\SpecialChar \menuseparator
31626 you can insert external material to your document.
31630 \begin_layout Description
31632 \begin_inset space ~
31635 Document Another LyX document; its content is directly inserted to your
31639 \begin_layout Description
31641 \begin_inset space ~
31644 Text A text document; every of its text lines is inserted to your document
31648 \begin_layout Description
31650 \begin_inset space ~
31654 \begin_inset space ~
31658 \begin_inset space ~
31661 Lines A text document; its text lines are inserted as they are.
31662 Empty text lines creates a new paragraph in your document.
31665 \begin_layout Description
31667 \begin_inset space ~
31670 Material Files in various formats.
31673 \begin_layout Description
31675 \begin_inset space ~
31678 Document LyX or LaTeX-documents.
31681 \begin_layout Section
31686 \begin_layout Plain Layout
31687 External Document Parts ! External Material
31695 \begin_layout Standard
31696 The external material feature allows you to insert files to your document
31697 without converting them previously to a format that can be read by the
31698 document output format because LyX takes care of needed conversions.
31699 This is similar to images that can be inserted in various image formats
31701 When you have enabled Instant Preview in LyX's preferences under
31704 \begin_inset space ~
31708 \begin_inset space ~
31711 feel\SpecialChar \menuseparator
31714 , the external material types Dia and Xfig is directly shown in LyX.
31717 \begin_layout Standard
31718 External material can be inserted via the
31722 dialog that is accessible with the menu
31724 Insert\SpecialChar \menuseparator
31725 File\SpecialChar \menuseparator
31727 \begin_inset space ~
31733 Currently the following file types (
31740 \begin_layout Description
31741 ChessDiagram This template supports chess position diagrams made with the
31745 \begin_inset CommandInset href
31748 target "http://en.wikipedia.org/wiki/XBoard"
31757 \begin_layout Description
31758 Date This inserts the date in the form
31763 This is a date inserted as external material:
31764 \begin_inset External
31771 \begin_inset space ~
31775 \begin_inset Note Note
31778 \begin_layout Plain Layout
31779 Remove the protected space when bug 4398 is fixed!
31785 \begin_inset Newline newline
31788 The date is not shown within LyX, only in the output.
31789 There are two other methods of inserting a date: Via menu
31791 Insert\SpecialChar \menuseparator
31794 and with the LaTeX command
31801 The different methods are compared in Table
31802 \begin_inset space ~
31806 \begin_inset CommandInset ref
31808 reference "tab:Comparison-of-the"
31815 \begin_layout Description
31816 Dia This template supports diagrams created with the program
31819 \begin_inset CommandInset href
31822 target "http://en.wikipedia.org/wiki/Dia_(software)"
31831 \begin_layout Description
31832 LilyPond This template is used for music notation typeset with the program
31833 \begin_inset Newline linebreak
31839 \begin_inset CommandInset href
31842 target "http://en.wikipedia.org/wiki/LilyPond"
31851 \begin_layout Description
31852 PDFPages With this template you can insert PDF documents to your document.
31853 To insert certain or all pages of a PDF, use the
31863 LaTeX and LyX options
31865 tab according to the template description in the dialog.
31870 option is given, only the first page of the PDF will be inserted.
31873 \begin_layout Description
31874 RasterImage This can be used for bitmap images.
31875 Nearly all popular image formats are supported.
31876 The image can be treated in the
31880 dialog like the images that are usually included via the
31884 dialog as described in section
31885 \begin_inset space ~
31889 \begin_inset CommandInset ref
31891 reference "sec:Graphics-Dialog"
31896 The difference is that only raster images are allowed, that means that
31897 PDF and EPS-images are not supported.
31900 \begin_layout Description
31901 XFig This template supports images created with the program
31904 \begin_inset CommandInset href
31907 target "http://en.wikipedia.org/wiki/Xfig"
31916 \begin_layout Standard
31917 \begin_inset Float table
31923 \begin_layout Plain Layout
31924 \begin_inset Caption
31926 \begin_layout Plain Layout
31927 \begin_inset CommandInset label
31929 name "tab:Comparison-of-the"
31933 Comparison of the date input methods.
31941 \begin_layout Plain Layout
31943 \begin_inset Tabular
31944 <lyxtabular version="3" rows="4" columns="4">
31946 <column alignment="center" valignment="top" width="0">
31947 <column alignment="center" valignment="top" width="0">
31948 <column alignment="center" valignment="top" width="0">
31949 <column alignment="center" valignment="top" width="0">
31951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31954 \begin_layout Plain Layout
31960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31963 \begin_layout Plain Layout
31966 External Material\SpecialChar \menuseparator
31972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31975 \begin_layout Plain Layout
31978 Insert\SpecialChar \menuseparator
31984 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31987 \begin_layout Plain Layout
31999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32002 \begin_layout Plain Layout
32008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32011 \begin_layout Plain Layout
32017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32020 \begin_layout Plain Layout
32026 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32029 \begin_layout Plain Layout
32030 as TeX-Code inset box
32037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32040 \begin_layout Plain Layout
32046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32049 \begin_layout Plain Layout
32055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32058 \begin_layout Plain Layout
32064 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32067 \begin_layout Plain Layout
32075 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32078 \begin_layout Plain Layout
32084 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32087 \begin_layout Plain Layout
32093 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32096 \begin_layout Plain Layout
32102 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32105 \begin_layout Plain Layout
32124 \begin_layout Standard
32125 When you use the option
32137 dialog, only the path to the inserted file is shown in the output.
32138 \begin_inset Newline newline
32141 External material is displayed in LyX either as box like this:
32142 \begin_inset Graphics
32143 filename clipart/ExternalMaterialQt4.png
32145 scaleBeforeRotation
32149 or as image, depending on the option
32155 LaTeX and LyX options
32160 \begin_layout Standard
32167 manual explains how you can define your own templates.
32170 \begin_layout Section
32172 \begin_inset CommandInset label
32174 name "sec:Child-Documents"
32182 \begin_layout Plain Layout
32183 External Document Parts ! Child Documents
32192 \begin_layout Plain Layout
32201 \begin_layout Standard
32202 Child documents are used when you have a long document consisting of several
32203 larger parts or sections.
32204 For maintenance it is often useful and sometimes even required to split
32205 the document in several files that can be revised separately.
32206 The different documents are then the so called child documents and a master
32207 document connects them to print the full document or parts of it.
32208 A child documents inherits contents of its master, for example the LaTeX
32209 preamble, the bibliography, and labels for cross-references.
32212 \begin_layout Standard
32213 To be able to work on child documents without the need to open its master,
32214 specify in the child document the master in the menu
32216 Document\SpecialChar \menuseparator
32217 Settings\SpecialChar \menuseparator
32219 \begin_inset space ~
32225 This master document will then be used in the background by LyX when you
32226 edit the child document.
32229 \begin_layout Standard
32230 Included documents are displayed in LyX as a box like this:
32231 \begin_inset Graphics
32232 filename clipart/ChildDocumentQt4.png
32234 scaleBeforeRotation
32238 To include child documents to a master document use the menu
32240 Insert\SpecialChar \menuseparator
32241 File\SpecialChar \menuseparator
32243 \begin_inset space ~
32249 A dialog pops up where you can choose between four include methods:
32252 \begin_layout Description
32253 Include You can include LyX and LaTeX-documents.
32262 dialog, the included documents will be opened in LyX in a new file tab
32263 so that you can modify it.
32264 \begin_inset Newline newline
32270 \begin_layout Standard
32271 Here is a child document inserted using
32276 \begin_inset CommandInset include
32277 LatexCommand include
32278 filename "DummyDocument1.lyx"
32285 \begin_layout Standard
32286 The section numbering includes the sections of the included files in the
32287 order they are inserted in the master document.
32288 The included example document has for example a subsection that is numbered
32289 as subsection of this section.
32290 Labels of included documents can be referenced: Subsection
32291 \begin_inset space ~
32295 \begin_inset CommandInset ref
32297 reference "sub:External-Subsection-1"
32304 \begin_layout Standard
32305 The preamble of the child document is ignored, only the preamble of the
32306 master document is used.
32307 Branches in child documents will be ignored by the master document when
32308 the master document does not have a branch with the same name.
32309 Included documents are inserted starting on a new page and end with a page
32313 \begin_layout Standard
32314 In case you are only working on a certain chapter of a large document and
32315 want to save compiling time, you can put each included file into a branch.
32319 \begin_layout Plain Layout
32320 Branches are described in section
32333 By enabling/disabling branches you can decide what included files will
32334 appear in the output.
32337 \begin_layout Standard
32338 \begin_inset Note Greyedout
32341 \begin_layout Plain Layout
32346 Due to a bug in LyX the LaTeX command
32352 can currently not be used as alternative to decide what files should be
32361 \begin_layout Standard
32362 \begin_inset Note Greyedout
32365 \begin_layout Plain Layout
32370 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
32371 w the document in case that the child document uses another document class
32372 than the master document as this will lead to unexpected outputs.
32380 \begin_layout Description
32381 Input This method is very similar to the Include method.
32382 The differences are:
32386 \begin_layout Itemize
32387 Input files don't start with a new page and don't end with a page break.
32390 \begin_layout Itemize
32391 Input files can be previewed in LyX when
32394 \begin_inset space ~
32399 is enabled in LyX's preferences under
32402 \begin_inset space ~
32406 \begin_inset space ~
32409 feel\SpecialChar \menuseparator
32415 \begin_layout Itemize
32426 \begin_layout Standard
32427 Here is a child document inserted using
32432 \begin_inset CommandInset include
32434 filename "DummyDocument2.lyx"
32441 \begin_layout Description
32442 Verbatim With this method every text file can be included.
32443 The file is shown in the output with its source code, no command used in
32444 the text is invoked.
32445 You can use the option
32447 Mark spaces in output
32449 that displays the character
32450 \begin_inset Quotes eld
32457 \begin_layout Plain Layout
32467 \begin_inset Quotes erd
32470 for every space character in the source code.
32471 The difference to the method via the menu
32473 Insert\SpecialChar \menuseparator
32474 File\SpecialChar \menuseparator
32476 \begin_inset space ~
32481 is that the document content is not shown in LyX.
32484 \begin_layout Standard
32485 Here is a child document inserted as Verbatim:
32486 \begin_inset CommandInset include
32487 LatexCommand verbatiminput
32488 filename "DummyTextDocument.txt"
32493 \begin_inset VSpace bigskip
32496 Here is a child document inserted as Verbatim using the
32498 Mark spaces in output
32501 \begin_inset CommandInset include
32502 LatexCommand verbatiminput*
32503 filename "DummyTextDocument.txt"
32510 \begin_layout Standard
32511 \begin_inset VSpace bigskip
32517 \begin_layout Standard
32518 \begin_inset Note Greyedout
32521 \begin_layout Plain Layout
32526 As you can see in the examples above, the text of the documents included
32531 is not broken at the end of the document lines.
32539 \begin_layout Description
32540 Listings This type is described in chapter
32541 \begin_inset space ~
32545 \begin_inset CommandInset ref
32547 reference "cha:Program-Code-Listings"
32554 \begin_layout Standard
32555 \begin_inset Note Greyedout
32558 \begin_layout Plain Layout
32563 Including the same document twice in a document using different methods
32564 could cause LaTeX-problems.
32572 \begin_layout Chapter
32573 Program Code Listings
32574 \begin_inset CommandInset label
32576 name "cha:Program-Code-Listings"
32584 \begin_layout Plain Layout
32594 \begin_layout Plain Layout
32604 \begin_layout Plain Layout
32613 \begin_layout Standard
32614 To include and typeset program code you can use the
32618 inset that can be inserted via the menu
32620 Insert\SpecialChar \menuseparator
32632 \begin_layout Plain Layout
32633 LaTeX-packages ! listings
32638 provides a powerful and flexible way to insert program source code to your
32642 \begin_layout Standard
32643 Right-clicking on a listings inset opens the context menu containing where
32644 you can set the listings format.
32647 \begin_layout Standard
32648 By default, a listing starts a new paragraph in the output.
32649 The placement option
32652 \begin_inset space ~
32657 prints the listing inline like this:
32658 \begin_inset listings
32659 lstparams "language={C++}"
32663 \begin_layout Plain Layout
32671 \begin_inset Newline newline
32678 creates a listings float where you can specify the placement options
32679 \begin_inset Quotes eld
32687 \begin_inset Quotes erd
32691 \begin_inset Quotes eld
32699 \begin_inset Quotes erd
32703 \begin_inset Quotes eld
32711 \begin_inset Quotes erd
32715 \begin_inset Quotes eld
32723 \begin_inset Quotes erd
32726 corresponding to the float placement options described in section
32727 \begin_inset space ~
32731 \begin_inset CommandInset ref
32733 reference "sec:Float-Placement"
32738 The placement options can be mixed and are inserted without any separation,
32740 \begin_inset space \thinspace{}
32744 \begin_inset space \space{}
32748 \begin_inset Quotes eld
32756 \begin_inset Quotes erd
32761 \begin_inset Quotes eld
32765 \begin_inset Quotes erd
32768 has sometimes no effect, but you don't need to use the
32772 option in this case as also non-float listings can have captions and be
32776 \begin_layout Standard
32777 You can add captions to listings with the menu
32779 Insert\SpecialChar \menuseparator
32783 Listings can be referenced like floats: Listing
32784 \begin_inset space ~
32788 \begin_inset CommandInset ref
32790 reference "lst:Example-Listing"
32797 \begin_layout Standard
32798 \begin_inset listings
32799 lstparams "language=Python"
32803 \begin_layout Plain Layout
32805 \begin_inset Caption
32807 \begin_layout Plain Layout
32808 \begin_inset CommandInset label
32810 name "lst:Example-Listing"
32814 Example Listing float
32819 # Example listing float
32822 \begin_layout Plain Layout
32827 \begin_layout Plain Layout
32829 'this is a python function'
32832 \begin_layout Plain Layout
32842 \begin_layout Standard
32843 When you have set a programming language in the listings dialog, the keywords
32844 of this language will be recognized and specially typeset in the output.
32845 In the example listings the Python keyword
32846 \begin_inset Quotes eld
32850 \begin_inset Quotes erd
32853 is recognized and printed bold in the output.
32856 \begin_layout Standard
32857 \begin_inset Note Greyedout
32860 \begin_layout Plain Layout
32865 If you don't get bold keywords when using typewriter fonts, your
32869 font probably doesn't provide a bold shape.
32870 In this case select a different one in the menu
32872 Document\SpecialChar \menuseparator
32873 Settings\SpecialChar \menuseparator
32885 provide bold shapes.)
32893 \begin_layout Standard
32897 \begin_inset space ~
32902 of the listings dialog you can specify the line numbering style.
32903 You can insert a number to specify which lines are numbered to the field
32910 \begin_inset space \thinspace{}
32914 \begin_inset space \space{}
32918 \begin_inset Quotes eld
32922 \begin_inset Quotes erd
32925 , only every 3rd line will be numbered.
32928 \begin_layout Standard
32929 You can furthermore specify a range of lines, only these will then appear
32933 Extended character table
32935 should be used when you use national characters like the German umlauts
32937 \begin_inset Newline newline
32940 Here is an example listing with left line numbering, step
32941 \begin_inset Quotes eld
32945 \begin_inset Quotes erd
32949 \begin_inset Quotes eld
32953 \begin_inset Quotes erd
32957 \begin_inset Quotes eld
32960 Extended character table
32961 \begin_inset Quotes erd
32965 \begin_inset Quotes eld
32969 \begin_inset space ~
32973 \begin_inset space ~
32977 \begin_inset Quotes erd
32981 \begin_inset space \thinspace{}
32985 \begin_inset space \thinspace{}
32991 \begin_layout Standard
32992 \begin_inset listings
32993 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
32997 \begin_layout Plain Layout
33002 \begin_layout Plain Layout
33004 'this is a python function'
33007 \begin_layout Plain Layout
33012 \begin_layout Plain Layout
33017 \begin_layout Plain Layout
33019 'This is a German word: Tschüß'
33022 \begin_layout Plain Layout
33027 \begin_layout Plain Layout
33032 \begin_layout Plain Layout
33034 'this is a python function'
33037 \begin_layout Plain Layout
33047 \begin_layout Standard
33048 When you have tabulators in your listing, you can specify the number of
33049 characters that are spanned by a tabulator in the field
33052 \begin_inset space ~
33060 \begin_layout Standard
33061 \begin_inset Note Greyedout
33064 \begin_layout Plain Layout
33069 Due to a bug in the
33073 package the line numbering is shifted by a line by every previous listing.
33074 That's the reason why the lines 2 and 5 are numbered in the above listing
33075 and not the lines 3 and 6.
33083 \begin_layout Standard
33084 \begin_inset VSpace bigskip
33090 \begin_layout Standard
33091 It is also possible to print lines from a file as listing.
33092 To do this, use the menu
33094 Insert\SpecialChar \menuseparator
33095 File\SpecialChar \menuseparator
33098 and choose the type
33106 \begin_layout Plain Layout
33107 The other child document types are described in section
33108 \begin_inset space ~
33112 \begin_inset CommandInset ref
33114 reference "sec:Child-Documents"
33123 In the child document dialog you can specify the listing parameters in
33125 To show a list of all available parameters, type in a question mark
33126 \begin_inset Quotes eld
33130 \begin_inset Quotes erd
33136 \begin_layout Standard
33137 To reference child document listings, write a label text into the corresponding
33138 field of the child document dialog.
33139 The label can then be referenced using the menu
33141 Insert\SpecialChar \menuseparator
33147 \begin_layout Standard
33149 \begin_inset space ~
33153 \begin_inset CommandInset ref
33155 reference "lst:file-listing"
33159 is an example for a listing of a file; there the lines 10
33160 \begin_inset space \thinspace{}
33164 \begin_inset space \thinspace{}
33167 15 of this LyX file are listed.
33170 \begin_layout Standard
33171 \begin_inset CommandInset include
33172 LatexCommand lstinputlisting
33173 filename "EmbeddedObjects.lyx"
33174 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
33181 \begin_layout Standard
33182 \begin_inset VSpace bigskip
33188 \begin_layout Standard
33189 Global listings settings can be set in the
33191 Document\SpecialChar \menuseparator
33192 Settings\SpecialChar \menuseparator
33196 To get there a list of available options, type in a question mark
33197 \begin_inset Quotes eld
33201 \begin_inset Quotes erd
33207 \begin_inset space ~
33215 \begin_layout Standard
33216 For more information about the
33220 package, we refer to its documentation
33221 \begin_inset CommandInset citation
33230 \begin_layout Standard
33231 \begin_inset Newpage newpage
33237 \begin_layout Chapter
33239 Units available in LyX
33243 \begin_layout Plain Layout
33250 \begin_inset CommandInset label
33252 name "cha:Units-available-in"
33259 \begin_layout Standard
33260 To understand the units described in this documentation, Table
33261 \begin_inset space ~
33265 \begin_inset CommandInset ref
33267 reference "tab:Units"
33271 explains all units available in LyX.
33274 \begin_layout Standard
33275 \begin_inset Float table
33281 \begin_layout Plain Layout
33282 \begin_inset Caption
33284 \begin_layout Plain Layout
33285 \begin_inset CommandInset label
33299 \begin_layout Plain Layout
33300 \begin_inset VSpace medskip
33306 \begin_layout Plain Layout
33308 \begin_inset Tabular
33309 <lyxtabular version="3" rows="20" columns="2">
33311 <column alignment="center" valignment="top" width="0">
33312 <column alignment="center" valignment="top" width="0">
33314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33317 \begin_layout Plain Layout
33323 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33326 \begin_layout Plain Layout
33334 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33337 \begin_layout Plain Layout
33343 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33346 \begin_layout Plain Layout
33354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33357 \begin_layout Plain Layout
33363 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33366 \begin_layout Plain Layout
33374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33377 \begin_layout Plain Layout
33383 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33386 \begin_layout Plain Layout
33394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33397 \begin_layout Plain Layout
33403 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33406 \begin_layout Plain Layout
33408 \begin_inset space \thinspace{}
33412 \begin_inset space \thinspace{}
33422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33425 \begin_layout Plain Layout
33431 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33434 \begin_layout Plain Layout
33436 \begin_inset space \thinspace{}
33440 \begin_inset space \thinspace{}
33450 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33453 \begin_layout Plain Layout
33459 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33462 \begin_layout Plain Layout
33463 scaled point (65536
33464 \begin_inset space \thinspace{}
33468 \begin_inset space \thinspace{}
33478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33481 \begin_layout Plain Layout
33487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33490 \begin_layout Plain Layout
33492 \begin_inset space \thinspace{}
33496 \begin_inset space \thinspace{}
33506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33509 \begin_layout Plain Layout
33515 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33518 \begin_layout Plain Layout
33520 \begin_inset space \thinspace{}
33524 \begin_inset Formula $\approx$
33528 \begin_inset space \thinspace{}
33538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33541 \begin_layout Plain Layout
33547 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33550 \begin_layout Plain Layout
33552 \begin_inset space \thinspace{}
33556 \begin_inset space \thinspace{}
33566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33569 \begin_layout Plain Layout
33575 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33578 \begin_layout Plain Layout
33579 % of original image width
33586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33589 \begin_layout Plain Layout
33595 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33598 \begin_layout Plain Layout
33606 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33609 \begin_layout Plain Layout
33615 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33618 \begin_layout Plain Layout
33626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33629 \begin_layout Plain Layout
33635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33638 \begin_layout Plain Layout
33646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33649 \begin_layout Plain Layout
33655 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33658 \begin_layout Plain Layout
33666 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33669 \begin_layout Plain Layout
33675 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33678 \begin_layout Plain Layout
33686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33689 \begin_layout Plain Layout
33695 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33698 \begin_layout Plain Layout
33706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33709 \begin_layout Plain Layout
33715 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33718 \begin_layout Plain Layout
33730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33733 \begin_layout Plain Layout
33739 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33742 \begin_layout Plain Layout
33754 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33757 \begin_layout Plain Layout
33763 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33766 \begin_layout Plain Layout
33768 \begin_inset space \thinspace{}
33772 \begin_inset space \thinspace{}
33793 \begin_layout Chapter
33794 Output File Formats with Graphics
33795 \begin_inset CommandInset label
33797 name "cha:Output-File-Formats"
33804 \begin_layout Section
33809 \begin_layout Plain Layout
33819 \begin_layout Plain Layout
33824 \begin_layout Plain Layout
33835 \begin_layout Plain Layout
33850 \begin_layout Standard
33851 This file type has the extension
33852 \begin_inset Quotes eld
33860 \begin_inset Quotes erd
33865 \begin_inset Quotes eld
33869 \begin_inset Quotes erd
33872 (DVI), because it is completely portable; you can move them from one machine
33873 to another without needing to do any sort of conversion.
33874 At the time when this file-format was developed, this was no matter of
33876 DVIs are used for quick previews and as pre-stage for other output formats,
33880 \begin_layout Standard
33881 \begin_inset Note Greyedout
33884 \begin_layout Plain Layout
33889 DVI-files doesn't contain images, they will only be a linked.
33894 So don't forget this, if you move your
33898 file to another computer.
33899 This property can also slow down your computer when you view the DVI.
33900 Because the DVI-viewer has to convert the image in the background to make
33901 it visible when you scroll in the DVI.
33902 So we recommend to use PDF for files with many images.
33905 \begin_layout Standard
33906 You can export your document to DVI by using the menu
33908 File\SpecialChar \menuseparator
33909 Export\SpecialChar \menuseparator
33913 You can view your document as DVI via the
33917 menu or by using the toolbar button
33918 \begin_inset Graphics
33919 filename ../images/buffer-view_dvi.png
33921 scaleBeforeRotation
33928 \begin_layout Section
33930 \begin_inset CommandInset label
33932 name "sec:PostScript"
33940 \begin_layout Plain Layout
33941 File Formats ! PostScript
33950 \begin_layout Plain Layout
33955 \begin_layout Plain Layout
33966 \begin_layout Plain Layout
33981 \begin_layout Standard
33982 This file type has the extension
33983 \begin_inset Quotes eld
33991 \begin_inset Quotes erd
33995 PostScript was developed by the company
33999 as printer language.
34000 The file contains therefore commands that the printer uses to print the
34002 PostScript can be seen as
34003 \begin_inset Quotes eld
34006 programming language
34007 \begin_inset Quotes erd
34010 ; you can calculate with it and draw diagrams and images
34014 \begin_layout Plain Layout
34015 If you are interested to learn more about this, have a look at the LaTeX-package
34021 \begin_inset CommandInset citation
34033 Due to this ability, the files are often bigger than PDFs.
34036 \begin_layout Standard
34037 PostScript can only contain images in the format
34038 \begin_inset Quotes eld
34041 Encapsulated PostScript
34042 \begin_inset Quotes erd
34045 (EPS, file extension
34046 \begin_inset Quotes eld
34054 \begin_inset Quotes erd
34058 As LyX allows you to use any known image format in your document, it has
34059 to convert images in the background to EPS.
34060 If you have e.g 50 images in your document, LyX has to do 50 conversions
34061 whenever you view or export your document.
34062 This will slow down your work flow with LyX drastically.
34063 So if you plan to use PostScript, you can insert your images directly as
34064 EPS to avoid this problem.
34067 \begin_layout Standard
34068 You can export your document to PostScript using the menu
34070 File\SpecialChar \menuseparator
34071 Export\SpecialChar \menuseparator
34075 You can view your document as PostScript via the
34079 menu or by using the toolbar button
34080 \begin_inset Graphics
34081 filename ../images/buffer-view_ps.png
34083 scaleBeforeRotation
34090 \begin_layout Section
34095 \begin_layout Plain Layout
34105 \begin_layout Plain Layout
34114 \begin_layout Standard
34115 This file type has the extension
34116 \begin_inset Quotes eld
34124 \begin_inset Quotes erd
34129 \begin_inset Quotes eld
34132 Portable Document Format
34133 \begin_inset Quotes erd
34136 (PDF) is developed by
34140 as derivative from PostScript.
34141 It is more compressed and it uses much less commands than PostScript.
34143 \begin_inset Quotes eld
34147 \begin_inset Quotes erd
34150 implies, it can be processed at any computer system and the printed output
34151 looks exactly the same.
34154 \begin_layout Standard
34155 PDF can contain images in its own PDF format, in the format
34156 \begin_inset Quotes eld
34159 Joint Photographic Experts Group
34160 \begin_inset Quotes erd
34163 (JPG, file extension
34164 \begin_inset Quotes eld
34172 \begin_inset Quotes erd
34176 \begin_inset Quotes eld
34184 \begin_inset Quotes erd
34187 ), and in the format
34188 \begin_inset Quotes eld
34191 Portable Network Graphics
34192 \begin_inset Quotes erd
34195 (PNG, file extension
34196 \begin_inset Quotes eld
34204 \begin_inset Quotes erd
34208 Nevertheless you can use any other image format, because LyX converts them
34209 in the background to one of these formats.
34210 But as described in the section about PostScript, the image conversion
34211 will slow down your work flow.
34212 So it is recommended to use images in one of the three mentioned formats.
34215 \begin_layout Standard
34216 You can export your document to PDF via the menu
34218 File\SpecialChar \menuseparator
34221 in three different ways:
34224 \begin_layout Description
34226 \begin_inset space ~
34229 (ps2pdf) This uses the program
34233 that creates a PDF from a PostScript-version of your file.
34234 The PostScript-version is produced by the program
34238 which uses a DVI-version as intermediate step.
34239 So this export variant consist of three conversions.
34242 \begin_layout Description
34244 \begin_inset space ~
34247 (dvipdfm) This uses the program
34251 that converts your file in the background to DVI and in a second step to
34255 \begin_layout Description
34257 \begin_inset space ~
34260 (pdflatex) This uses the program
34264 that converts your file directly to PDF.
34267 \begin_layout Standard
34268 It is recommended to use
34271 \begin_inset space ~
34280 supports all features of actual PDF-versions, is quick and works stable
34286 is not under development and therefore a bit outdated.
34289 \begin_layout Standard
34290 You can view your document as PDF via the
34294 menu or by using the toolbar button
34295 \begin_inset Graphics
34296 filename ../images/buffer-view_pdf2.png
34298 scaleBeforeRotation
34309 \begin_inset space ~
34317 \begin_layout Chapter
34318 Explanation of Equation
34319 \begin_inset space ~
34323 \begin_inset CommandInset ref
34330 \begin_inset CommandInset label
34332 name "cha:Explanation-of-Equation"
34339 \begin_layout Standard
34345 \begin_inset Formula $W_{\mathrm{tot\, n}}$
34348 can be calculated to
34351 \begin_layout Standard
34352 \begin_inset Formula \begin{equation}
34353 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}
34360 \begin_layout Standard
34362 \begin_inset Formula $W_{g\, n}$
34365 is the given width of all cells.
34372 is the LaTeX-length between the cell text and the cell border, its default
34374 \begin_inset space \thinspace{}
34384 is the thickness of the cell border line, the default is 0.4
34385 \begin_inset space \thinspace{}
34391 \begin_layout Standard
34393 \begin_inset space ~
34397 \begin_inset CommandInset ref
34399 reference "eq:Wtot_n"
34403 , the total width of a multicolumn
34404 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
34410 \begin_layout Standard
34411 \begin_inset Formula \begin{equation}
34412 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
34419 \begin_layout Standard
34420 By setting equation
34421 \begin_inset space ~
34425 \begin_inset CommandInset ref
34427 reference "eq:Wtot_n"
34432 \begin_inset CommandInset ref
34434 reference "eq:Wtot_mult"
34438 equal we can calculate the needed given width
34439 \begin_inset Formula $W_{g\, n}$
34446 columns are spanned, so that each column has a total width of
34447 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
34453 \begin_layout Standard
34454 \begin_inset Formula \begin{equation}
34455 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
34462 \begin_layout Bibliography
34463 \begin_inset CommandInset bibitem
34464 LatexCommand bibitem
34465 key "latexcompanion"
34469 Frank Mittelbach and Michel Goossens:
34471 The LaTeX Companion Second Edition.
34474 Addison-Wesley, 2004
34477 \begin_layout Bibliography
34478 \begin_inset CommandInset bibitem
34479 LatexCommand bibitem
34484 Helmut Kopka and Patrick W.
34487 A Guide to LaTeX Fourth Edition.
34490 Addison-Wesley, 2003
34493 \begin_layout Bibliography
34494 \begin_inset CommandInset bibitem
34495 LatexCommand bibitem
34502 LaTeX: A Document Preparation System.
34505 Addison-Wesley, second edition, 1994
34508 \begin_layout Bibliography
34509 \begin_inset CommandInset bibitem
34510 LatexCommand bibitem
34515 Documentation of the LaTeX-package
34518 \begin_inset CommandInset href
34521 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
34531 \begin_layout Plain Layout
34532 LaTeX-packages ! booktabs
34540 \begin_layout Bibliography
34541 \begin_inset CommandInset bibitem
34542 LatexCommand bibitem
34547 Documentation of the LaTeX-package
34550 \begin_inset CommandInset href
34553 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
34563 \begin_layout Plain Layout
34564 LaTeX-packages ! caption
34572 \begin_layout Bibliography
34573 \begin_inset CommandInset bibitem
34574 LatexCommand bibitem
34579 Documentation of the LaTeX-package
34582 \begin_inset CommandInset href
34585 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
34595 \begin_layout Plain Layout
34596 LaTeX-packages ! endfloat
34604 \begin_layout Bibliography
34605 \begin_inset CommandInset bibitem
34606 LatexCommand bibitem
34611 Documentation of the LaTeX-package
34614 \begin_inset CommandInset href
34617 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
34627 \begin_layout Plain Layout
34628 LaTeX-packages ! wrapfig
34632 \begin_layout Plain Layout
34649 \begin_layout Bibliography
34650 \begin_inset CommandInset bibitem
34651 LatexCommand bibitem
34656 Documentation of the LaTeX-package
34659 \begin_inset CommandInset href
34662 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
34672 \begin_layout Plain Layout
34673 LaTeX-packages ! footmisc
34681 \begin_layout Bibliography
34682 \begin_inset CommandInset bibitem
34683 LatexCommand bibitem
34688 Documentation of the LaTeX-package
34691 \begin_inset CommandInset href
34694 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
34704 \begin_layout Plain Layout
34705 LaTeX-packages ! hyperref
34713 \begin_layout Bibliography
34714 \begin_inset CommandInset bibitem
34715 LatexCommand bibitem
34720 Documentation of the LaTeX-package
34723 \begin_inset CommandInset href
34726 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
34736 \begin_layout Plain Layout
34737 LaTeX-packages ! hyperref
34745 \begin_layout Bibliography
34746 \begin_inset CommandInset bibitem
34747 LatexCommand bibitem
34752 Documentation of the LaTeX-package
34755 \begin_inset CommandInset href
34758 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
34768 \begin_layout Plain Layout
34769 LaTeX-packages ! KOMA-script
34777 \begin_layout Bibliography
34778 \begin_inset CommandInset bibitem
34779 LatexCommand bibitem
34784 Documentation of the LaTeX-package
34787 \begin_inset CommandInset href
34790 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
34800 \begin_layout Plain Layout
34801 LaTeX-packages ! listings
34809 \begin_layout Bibliography
34810 \begin_inset CommandInset bibitem
34811 LatexCommand bibitem
34816 Documentation of the LaTeX-package
34819 \begin_inset CommandInset href
34822 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
34832 \begin_layout Plain Layout
34833 LaTeX-packages ! marginnote
34841 \begin_layout Bibliography
34842 \begin_inset CommandInset bibitem
34843 LatexCommand bibitem
34848 Web page of the LaTeX-package
34851 \begin_inset CommandInset href
34854 target "http://tug.org/PSTricks/"
34864 \begin_layout Plain Layout
34865 LaTeX-packages ! PSTricks
34873 \begin_layout Bibliography
34874 \begin_inset CommandInset bibitem
34875 LatexCommand bibitem
34880 Documentation of the LaTeX-package
34883 \begin_inset CommandInset href
34886 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
34896 \begin_layout Plain Layout
34897 LaTeX-packages ! sidecap
34905 \begin_layout Bibliography
34906 \begin_inset CommandInset bibitem
34907 LatexCommand bibitem
34913 \begin_inset CommandInset href
34916 target "http://wiki.lyx.org/LyX/NewInLyX16"
34920 about new features in
34927 \begin_layout Standard
34928 \begin_inset CommandInset index_print
34929 LatexCommand printindex
34936 \begin_layout Standard
34937 \begin_inset FloatList figure
34944 \begin_layout Standard
34945 \begin_inset FloatList table
34952 \begin_layout Standard
34953 \begin_inset FloatList algorithm