1 #LyX 1.6.0svn 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 \let\marginpar\marginnote
156 \setboolean{sidecap}{true}}
157 {\setboolean{sidecap}{false}}
159 % redefine the \LyX macro for PDF bookmarks
160 \def\LyX{\texorpdfstring{%
161 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
164 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
165 \use_default_options false
170 \font_typewriter default
171 \font_default_family default
181 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
182 \pdf_author "LyX Team, Uwe Stöhr"
183 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
184 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
186 \pdf_bookmarksnumbered true
187 \pdf_bookmarksopen true
188 \pdf_bookmarksopenlevel 1
189 \pdf_breaklinks false
193 \pdf_pdfusetitle false
194 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false, pdfpagelabels"
201 \paperorientation portrait
204 \paragraph_separation skip
206 \quotes_language english
209 \paperpagestyle default
213 \tracking_changes false
214 \output_changes false
222 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
231 \begin_layout Plain Layout
233 If you have comments or error corrections, please send them to the LyX Documenta
235 \begin_inset CommandInset href
237 name "lyx-docs@lists.lyx.org"
238 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
249 \begin_inset Note Note
252 \begin_layout Plain Layout
259 \begin_inset Newline newline
263 \begin_inset Newline newline
271 \begin_layout Standard
272 \begin_inset CommandInset toc
273 LatexCommand tableofcontents
280 \begin_layout Standard
281 \begin_inset Note Note
284 \begin_layout Plain Layout
285 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
303 If they are not installed you can export the document anyway but the sections
304 where the packages are required won't appear in the output.
307 \begin_layout Plain Layout
308 The latest PDF-version of this document can be found here:
309 \begin_inset Newline newline
314 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
322 \begin_layout Chapter
327 \begin_layout Plain Layout
337 \begin_layout Plain Layout
342 \begin_layout Plain Layout
353 \begin_layout Plain Layout
368 \begin_layout Section
373 \begin_layout Plain Layout
374 Figures ! Graphics Dialog
380 \begin_inset CommandInset label
382 name "sec:Graphics-Dialog"
389 \begin_layout Standard
390 To insert an image into your document, place the cursor at the text position
391 you want and click on the toolbar icon
392 \begin_inset Graphics
393 filename ../images/dialog-show-new-inset_graphics.png
401 Insert\SpecialChar \menuseparator
405 Then a dialog will appear to choose the file to load.
406 The image will appear in the output exactly at the position where it is
410 \begin_layout Standard
411 The graphics dialog can be called at any time by clicking on an image.
412 This dialog has three tabs:
415 \begin_layout Description
420 Here you can choose an image file and adjust its appearance in the output.
421 The available units for the image size are explained in appendix
426 \begin_inset CommandInset ref
428 reference "cha:Units-available-in"
433 \begin_inset Newline newline
440 \begin_layout Plain Layout
446 You can rotate images counter-clockwise by setting a rotation angle and
448 The image will also be rotated inside LyX.
449 \begin_inset Newline newline
456 \begin_layout Plain Layout
462 Images can be scaled by using a percentage value or by setting the width
463 and height explicitly.
464 If you set only the width or only the height, the other size will be determined
466 If you set both, then the image will be transformed to the given size,
467 possibly distorting it.
468 To prevent the image from distortion, use the option
470 Maintain aspect ratio
473 The image will then be scaled so that its width and height don't exceed
474 the specified dimensions.
475 \begin_inset Newline newline
478 Images can be opened in a program of your choice when pressing the
483 The program can be set for every image format in the file format settings
484 in LyX's preferences.
487 \begin_layout Description
492 Alternatively to the usage of scaling units it is possible to set image
493 coordinates to adjust the height and width of the image in the output.
494 The coordinates can also be calculated automatically by pressing the button
524 will only print the image region within the given coordinates.
525 Normally you don't need to take care about image coordinates and can ignore
529 \begin_layout Description
546 In this tab you can modify the appearance of the image within LyX and LaTeX
547 experts can specify additional LaTeX options.
548 \begin_inset Newline newline
559 makes the image appear in the output only as a frame with the size of the
561 \begin_inset Newline newline
580 option only affects zipped EPS-graphics, e.g.
581 \begin_inset space \space{}
589 When the option is used the images will not be unzipped on export, since
590 LaTeX can handle them as they are.
591 \begin_inset Newline newline
594 Zipped EPS-graphics are useful to save disk space when you choose PostScript
595 as output format, see appendix
600 \begin_inset CommandInset ref
602 reference "sec:PostScript"
607 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
609 \begin_inset Newline newline
617 \begin_inset Newline newline
622 zgrep %%Bounding x.eps.gz > x.eps.bb
625 \begin_inset Newline newline
628 The second command creates the bounding box file
629 \begin_inset Quotes eld
633 \begin_inset Quotes erd
636 that is needed by LaTeX for zipped graphics.
637 \begin_inset Newline newline
652 allows you define or join an image settings group.
656 \begin_layout Plain Layout
657 Figures ! Settings grouping
662 Images within such a group share their settings, so adjusting one image
663 of the group automatically also adjusts all other images of the group in
665 So you can for example change the size for a bunch of images without the
666 need to manually change each of them.
667 Joining an existing group can also be done using the context menu of the
668 image by checking the name of the desired group.
671 \begin_layout Standard
672 \begin_inset VSpace bigskip
678 \begin_layout Standard
679 This is an example image in EPS format
683 \begin_layout Plain Layout
684 Image formats are explained in section
689 \begin_inset CommandInset ref
691 reference "sec:Image-Formats"
700 within a separate, horizontally centered paragraph:
703 \begin_layout Standard
705 \begin_inset Graphics
706 filename clipart/mobius.eps
716 \begin_layout Standard
717 This is the same image like the one above but in draft mode:
720 \begin_layout Standard
722 \begin_inset Graphics
723 filename clipart/mobius.eps
734 \begin_layout Standard
735 \begin_inset Newpage newpage
741 \begin_layout Section
743 \begin_inset CommandInset label
745 name "sec:Figure-Floats"
753 \begin_layout Plain Layout
763 \begin_layout Plain Layout
772 \begin_layout Standard
773 For general explanations about floats, have a look at section
778 \begin_inset CommandInset ref
780 reference "sec:FloatIntroduction"
787 \begin_layout Standard
789 \begin_inset Graphics
790 filename ../images/float-insert_figure.png
798 Insert\SpecialChar \menuseparator
799 Float\SpecialChar \menuseparator
802 inserts a float with a caption that has the label
803 \begin_inset Quotes eld
811 \begin_inset Quotes erd
814 (# is the actual number).
815 You can insert the image above the caption, like in Figure
820 \begin_inset CommandInset ref
822 reference "fig:kill-plat"
826 or below the caption, like in Figure
831 \begin_inset CommandInset ref
833 reference "fig:escher"
838 More about the caption placement is described in section
843 \begin_inset CommandInset ref
845 reference "sec:Caption-Placement"
852 \begin_layout Standard
853 \begin_inset Float figure
858 \begin_layout Plain Layout
860 \begin_inset Graphics
861 filename clipart/platypus.eps
871 \begin_layout Plain Layout
874 \begin_layout Plain Layout
875 \begin_inset CommandInset label
881 A severely distorted platypus in a float.
894 \begin_layout Standard
895 \begin_inset Float figure
900 \begin_layout Plain Layout
903 \begin_layout Plain Layout
904 \begin_inset CommandInset label
919 \begin_layout Plain Layout
921 \begin_inset Graphics
922 filename clipart/escher-lsd.eps
937 \begin_layout Standard
941 \begin_layout Plain Layout
942 References ! to Figures
952 \begin_inset CommandInset ref
954 reference "fig:kill-plat"
959 \begin_inset CommandInset ref
961 reference "fig:escher"
965 are examples of referenced figures.
966 Figures can be referenced in the text by referencing their label.
967 To do this insert a label in the caption using the menu
969 Insert\SpecialChar \menuseparator
972 or the toolbar button
973 \begin_inset Graphics
974 filename ../images/label-insert.png
981 You can now refer to the label using the menu
983 Insert\SpecialChar \menuseparator
990 or the toolbar button
991 \begin_inset Graphics
992 filename ../images/dialog-show-new-inset_ref.png
999 It is important to use references to floats, rather than using vague references
1001 \begin_inset Quotes eld
1005 \begin_inset Quotes erd
1008 , because as LaTeX will reposition the floats in the final document, it
1010 \begin_inset Quotes eld
1014 \begin_inset Quotes erd
1018 \begin_inset Newline newline
1021 Referencing is explained in detail in section
1022 \begin_inset space ~
1026 \begin_inset CommandInset ref
1028 reference "sec:Referencing-Floats"
1035 \begin_layout Standard
1036 Normally only one image is inserted to a figure float, but sometimes you
1037 might want to use two images with separate subcaptions.
1038 This can be done by inserting image floats into existing image floats.
1039 Note that only the main caption of the float is added to the List of Figures.
1041 \begin_inset space ~
1045 \begin_inset CommandInset ref
1047 reference "fig:Two-distorted-images"
1051 is an example of a figure float with two images set side by side.
1052 You can also set the images one below the other.
1054 \begin_inset space ~
1058 \begin_inset CommandInset ref
1060 reference "fig:Undefinable-structure"
1065 \begin_inset CommandInset ref
1067 reference "fig:A-Platypus"
1074 \begin_layout Standard
1075 \begin_inset Float figure
1080 \begin_layout Plain Layout
1081 \begin_inset space \hfill{}
1085 \begin_inset Float figure
1090 \begin_layout Plain Layout
1091 \begin_inset Caption
1093 \begin_layout Plain Layout
1094 \begin_inset CommandInset label
1096 name "fig:Undefinable-structure"
1100 Undefinable structure.
1108 \begin_layout Plain Layout
1109 \begin_inset Graphics
1110 filename clipart/escher-lsd.eps
1123 \begin_inset space \hfill{}
1127 \begin_inset Float figure
1132 \begin_layout Plain Layout
1133 \begin_inset Caption
1135 \begin_layout Plain Layout
1136 \begin_inset CommandInset label
1138 name "fig:A-Platypus"
1150 \begin_layout Plain Layout
1151 \begin_inset Graphics
1152 filename clipart/platypus.eps
1165 \begin_inset space \hfill{}
1171 \begin_layout Plain Layout
1172 \begin_inset Caption
1174 \begin_layout Plain Layout
1175 \begin_inset CommandInset label
1177 name "fig:Two-distorted-images"
1181 Two distorted images.
1182 Both images are in the image settings group named
1183 \begin_inset Quotes eld
1187 \begin_inset Quotes erd
1203 \begin_layout Standard
1204 \begin_inset Newpage newpage
1210 \begin_layout Section
1212 \begin_inset CommandInset label
1214 name "sec:Image-Formats"
1222 \begin_layout Plain Layout
1232 \begin_layout Plain Layout
1233 Figures ! Image Formats
1241 \begin_layout Standard
1242 You can insert images in any known file format.
1243 But as explained in appendix
1244 \begin_inset space ~
1248 \begin_inset CommandInset ref
1250 reference "cha:Output-File-Formats"
1254 , every output document format allows only a few image formats.
1255 LyX uses therefore the program
1259 in the background to convert the images to the right format.
1260 To increase your work flow by avoiding these conversions in the background,
1261 you can use only the image formats that can directly be embedded in the
1263 The output file formats are explained in appendix
1264 \begin_inset space ~
1268 \begin_inset CommandInset ref
1270 reference "cha:Output-File-Formats"
1277 \begin_layout Standard
1278 Similar to fonts there are two types of image formats:
1281 \begin_layout Description
1283 \begin_inset space ~
1286 images consist of pixel values, often in a compressed form.
1287 They are therefore not fully scalable and look pixeled in large zooms.
1288 Well-known bitmap image formats are
1289 \begin_inset Quotes eld
1292 Graphics Interchange Format
1293 \begin_inset Quotes erd
1296 (GIF, file extension
1297 \begin_inset Quotes eld
1305 \begin_inset Quotes erd
1312 \begin_layout Plain Layout
1317 \begin_layout Plain Layout
1328 \begin_layout Plain Layout
1341 \begin_inset Quotes eld
1344 Portable Network Graphics
1345 \begin_inset Quotes erd
1348 (PNG, file extension
1349 \begin_inset Quotes eld
1357 \begin_inset Quotes erd
1364 \begin_layout Plain Layout
1369 \begin_layout Plain Layout
1380 \begin_layout Plain Layout
1393 \begin_inset Quotes eld
1396 Joint Photographic Experts Group
1397 \begin_inset Quotes erd
1400 (JPG, file extension
1401 \begin_inset Quotes eld
1409 \begin_inset Quotes erd
1413 \begin_inset Quotes eld
1421 \begin_inset Quotes erd
1428 \begin_layout Plain Layout
1433 \begin_layout Plain Layout
1444 \begin_layout Plain Layout
1459 \begin_layout Description
1461 \begin_inset space ~
1464 images consist of vectors and can therefore be scaled to any size without
1466 The scaling ability is necessary if you want to create presentations, because
1467 presentations are always scaled by the video projector.
1468 Scaling is also useful for online documents to let the user zoom into diagrams.
1469 \begin_inset Newline newline
1472 Well-known scalable image formats are
1473 \begin_inset Quotes eld
1476 Scalable Vector Graphics
1477 \begin_inset Quotes erd
1480 (SVG, file extension
1481 \begin_inset Quotes eld
1489 \begin_inset Quotes erd
1496 \begin_layout Plain Layout
1501 \begin_layout Plain Layout
1512 \begin_layout Plain Layout
1525 \begin_inset Quotes eld
1528 Encapsulated PostScript
1529 \begin_inset Quotes erd
1532 (EPS, file extension
1533 \begin_inset Quotes eld
1541 \begin_inset Quotes erd
1548 \begin_layout Plain Layout
1553 \begin_layout Plain Layout
1564 \begin_layout Plain Layout
1577 \begin_inset Quotes eld
1580 Portable Document Format
1581 \begin_inset Quotes erd
1584 (PDF, file extension
1585 \begin_inset Quotes eld
1593 \begin_inset Quotes erd
1600 \begin_layout Plain Layout
1607 \begin_inset Quotes eld
1611 \begin_inset Quotes erd
1614 (WMF, file extension
1615 \begin_inset Quotes eld
1623 \begin_inset Quotes erd
1630 \begin_layout Plain Layout
1635 \begin_layout Plain Layout
1646 \begin_layout Plain Layout
1660 \begin_inset Quotes eld
1664 \begin_inset Quotes erd
1667 , because you can convert any bitmap image to a PDF or EPS-image and the
1668 result will still be a bitmap image.
1669 In this cases only a header with the image properties is added to the original
1674 \begin_layout Plain Layout
1675 In the case of PDF, the original image is additionally compressed.
1681 The PDF-files generated by
1685 are for example bitmap images.
1688 \begin_layout Standard
1689 Normally it is not possible to convert a bitmap image into a scalable one,
1691 Only the image formats PDF and EPS can directly be embedded to PDF and
1692 PostScript output files, respectively.
1693 SVG and WMF-images are recalculated to bitmaps when the output file is
1694 generated because there is currently no adequate WMF/SVG
1695 \begin_inset Formula $\to$
1698 PDF/EPS converter available.
1701 \begin_layout Chapter
1706 \begin_layout Plain Layout
1715 \begin_layout Section
1720 \begin_layout Plain Layout
1721 Table ! Introduction
1729 \begin_layout Standard
1730 You can insert a table using either the toolbar button
1731 \begin_inset Graphics
1732 filename ../images/tabular-insert.png
1740 Insert\SpecialChar \menuseparator
1744 The toolbar button offers you a graphical selection: Move the mouse to
1745 set the column/row number of the table that should be created and then
1746 press a mouse button.
1747 When you use the menu to create a table, a dialog will appear, asking you
1748 for the number of rows and columns.
1749 \begin_inset Newline newline
1752 The default table has lines around any cell and the first row appears separated
1753 from the rest of the table.
1754 This separation occurs due to a double line: The cells of the first row
1755 have a line below them and the cells of the second row have a line above
1757 Here is an example table:
1760 \begin_layout Standard
1762 \begin_inset Tabular
1763 <lyxtabular version="3" rows="4" columns="4">
1765 <column alignment="center" valignment="top" width="0">
1766 <column alignment="center" valignment="top" width="0">
1767 <column alignment="center" valignment="top" width="0">
1768 <column alignment="center" valignment="top" width="0">
1770 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1773 \begin_layout Plain Layout
1779 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1782 \begin_layout Plain Layout
1797 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1800 \begin_layout Plain Layout
1806 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1809 \begin_layout Plain Layout
1817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1820 \begin_layout Plain Layout
1835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1838 \begin_layout Plain Layout
1844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1847 \begin_layout Plain Layout
1853 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1856 \begin_layout Plain Layout
1864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1867 \begin_layout Plain Layout
1882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1885 \begin_layout Plain Layout
1891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1894 \begin_layout Plain Layout
1900 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1903 \begin_layout Plain Layout
1911 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1914 \begin_layout Plain Layout
1929 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1932 \begin_layout Plain Layout
1938 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1941 \begin_layout Plain Layout
1947 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1950 \begin_layout Plain Layout
1964 \begin_layout Section
1969 \begin_layout Plain Layout
1978 \begin_layout Standard
1979 You can alter a table by clicking on it with the right mouse button, which
1980 brings up the table dialog.
1981 Here you can adjust the settings of that cell and row/column respectively
1982 where the cursor is currently placed.
1983 Most of the dialog options also work on selections.
1984 This means if you select more cells, columns or rows, the action is done
1985 for the whole selection.
1986 Note that there is a difference between selecting the
1990 of the cell, and the cell itself.
1991 You can alter tables with the following tabs of the table dialog:
1994 \begin_layout Description
1998 \begin_inset space ~
2003 Here you can set the horizontal alignment and the width of the current
2005 When you have set a width you can also adjust the vertical alignment of
2007 A given width will allow the cell to have line breaks and multiple paragraphs
2008 of text, see section
2009 \begin_inset space ~
2013 \begin_inset CommandInset ref
2015 reference "sub:Multiple-Lines-in"
2020 If you set no width, the column is as wide as their widest cell content
2022 \begin_inset Newline newline
2025 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2027 \begin_inset space ~
2031 \begin_inset CommandInset ref
2033 reference "sub:Multicolumns"
2038 \begin_inset Newline newline
2041 The rotate check boxes rotates the current cell, a selection, or the whole
2042 table counter-clockwise by 90°.
2043 The rotation is not shown within LyX, only in the output.
2044 \begin_inset Newline newline
2048 \begin_inset Note Greyedout
2051 \begin_layout Plain Layout
2056 Not all DVI-viewers are able to display rotations.
2062 \begin_inset Newline newline
2065 It is also possible to enter a LaTeX-argument which is needed for special
2066 table formattings, see section
2067 \begin_inset space ~
2071 \begin_inset CommandInset ref
2073 reference "sub:Multicolumn-Calculations"
2078 \begin_inset CommandInset ref
2080 reference "sec:Colored-Tables"
2087 \begin_layout Description
2092 In this tab you can add and delete border lines for the current row/column.
2093 \begin_inset Newline newline
2096 Using the style option
2100 will convert the table to a formal table as described in section
2101 \begin_inset space ~
2105 \begin_inset CommandInset ref
2107 reference "sec:Formal-Tables"
2112 \begin_inset Newline newline
2115 You can also add here space to table rows as decribed in section
2116 \begin_inset space ~
2120 \begin_inset CommandInset ref
2122 reference "sub:Row-Spacing"
2129 \begin_layout Description
2134 This tab is to make a table a so called
2135 \begin_inset Quotes eld
2143 \begin_inset Quotes erd
2146 that can run over several pages.
2148 \begin_inset space ~
2152 \begin_inset CommandInset ref
2154 reference "sec:Longtables"
2159 \begin_inset CommandInset ref
2161 reference "sec:Special-Longtable-Issues"
2165 describe the longtable features in detail.
2168 \begin_layout Standard
2169 When the table toolbar is opened, you can move the cursor with the arrow
2170 keys from cell to cell and the property of the current cell will immediately
2171 be displayed in the dialog.
2174 \begin_layout Section
2179 \begin_layout Plain Layout
2188 \begin_layout Standard
2189 The table toolbar is an alternative to the table dialog to be able to alter
2191 It should normally appear at the bottom of LyX's main window when the cursor
2193 You can alternatively switch it on to appear always, by right-clicking
2194 in LyX's main menu bar.
2197 \begin_layout Standard
2198 The toolbar has the following icons:
2201 \begin_layout Labeling
2202 \labelwidthstring 00.00.0000
2203 \begin_inset Graphics
2204 filename ../images/tabular-feature_append-row.png
2209 adds a row below the current cell or selection
2212 \begin_layout Labeling
2213 \labelwidthstring 00.00.0000
2214 \begin_inset Graphics
2215 filename ../images/tabular-feature_append-column.png
2220 adds a column right beside the current cell or selection
2223 \begin_layout Labeling
2224 \labelwidthstring 00.00.0000
2225 \begin_inset Graphics
2226 filename ../images/tabular-feature_delete-row.png
2231 deletes the current row or selection
2234 \begin_layout Labeling
2235 \labelwidthstring 00.00.0000
2236 \begin_inset Graphics
2237 filename ../images/tabular-feature_delete-column.png
2242 deletes the current column or selection
2245 \begin_layout Labeling
2246 \labelwidthstring 00.00.0000
2247 \begin_inset Graphics
2248 filename ../images/tabular-feature_toggle-line-top.png
2253 adds a line at the top of the current cell / row or of a selection
2256 \begin_layout Labeling
2257 \labelwidthstring 00.00.0000
2258 \begin_inset Graphics
2259 filename ../images/tabular-feature_toggle-line-bottom.png
2264 adds a line at the bottom of the current cell / row or of a selection
2267 \begin_layout Labeling
2268 \labelwidthstring 00.00.0000
2269 \begin_inset Graphics
2270 filename ../images/tabular-feature_toggle-line-left.png
2275 adds a line at the left side of the current cell / row or of a selection
2278 \begin_layout Labeling
2279 \labelwidthstring 00.00.0000
2280 \begin_inset Graphics
2281 filename ../images/tabular-feature_toggle-line-right.png
2286 adds a line at the right side of the current cell / row or of a selection
2289 \begin_layout Labeling
2290 \labelwidthstring 00.00.0000
2291 \begin_inset Graphics
2292 filename ../images/tabular-feature_set-all-lines.png
2297 adds lines around the current or selected cells - if the current cell no
2298 multicolumn this also affects the current row and column
2301 \begin_layout Labeling
2302 \labelwidthstring 00.00.0000
2303 \begin_inset Graphics
2304 filename ../images/tabular-feature_unset-all-lines.png
2309 deletes all lines of the current or selected cells - if the current cell
2310 no multicolumn this also affects the current row and column
2313 \begin_layout Labeling
2314 \labelwidthstring 00.00.0000
2315 \begin_inset Graphics
2316 filename ../images/tabular-feature_align-left.png
2321 left-aligns the content of the current cell / column
2324 \begin_layout Labeling
2325 \labelwidthstring 00.00.0000
2326 \begin_inset Graphics
2327 filename ../images/tabular-feature_align-center.png
2332 centers the content of the current cell / column horizontally
2335 \begin_layout Labeling
2336 \labelwidthstring 00.00.0000
2337 \begin_inset Graphics
2338 filename ../images/tabular-feature_align-right.png
2343 right-aligns the content of the current cell / column
2346 \begin_layout Labeling
2347 \labelwidthstring 00.00.0000
2348 \begin_inset Graphics
2349 filename ../images/tabular-feature_valign-top.png
2354 aligns the content of the current cell vertically to the top
2357 \begin_layout Labeling
2358 \labelwidthstring 00.00.0000
2359 \begin_inset Graphics
2360 filename ../images/tabular-feature_valign-middle.png
2365 centers the content of the current cell vertically
2368 \begin_layout Labeling
2369 \labelwidthstring 00.00.0000
2370 \begin_inset Graphics
2371 filename ../images/tabular-feature_valign-bottom.png
2376 aligns the content of the current cell vertically to the bottom
2379 \begin_layout Labeling
2380 \labelwidthstring 00.00.0000
2381 \begin_inset Graphics
2382 filename ../images/tabular-feature_set-rotate-cell.png
2387 rotates the current cell or selection counter-clockwise by 90°
2390 \begin_layout Labeling
2391 \labelwidthstring 00.00.0000
2392 \begin_inset Graphics
2393 filename ../images/tabular-feature_set-rotate-tabular.png
2398 rotates the whole table counter-clockwise by 90°
2401 \begin_layout Labeling
2402 \labelwidthstring 00.00.0000
2403 \begin_inset Graphics
2404 filename ../images/tabular-feature_multicolumn.png
2409 sets the current cell or selection as a multicolumn
2412 \begin_layout Standard
2413 \begin_inset Note Greyedout
2416 \begin_layout Plain Layout
2421 For the output the vertical alignment of the first cell in a row is used
2422 for all following cells in the row.
2430 \begin_layout Section
2435 \begin_layout Plain Layout
2444 \begin_layout Standard
2445 Additionally to the table dialog and toolbar, the menu
2447 Edit\SpecialChar \menuseparator
2450 allows you to add and delete border lines for the current row/column and
2451 to set the current selection as multicolumn.
2452 The menu is only available when the cursor is inside a table.
2455 \begin_layout Section
2457 \begin_inset CommandInset label
2459 name "sec:Table-Floats"
2467 \begin_layout Plain Layout
2477 \begin_layout Plain Layout
2486 \begin_layout Standard
2487 For general explanations about floats, have a look at section
2488 \begin_inset space ~
2492 \begin_inset CommandInset ref
2494 reference "sec:FloatIntroduction"
2501 \begin_layout Standard
2502 \begin_inset Float table
2508 \begin_layout Plain Layout
2509 \begin_inset Caption
2511 \begin_layout Plain Layout
2512 \begin_inset CommandInset label
2514 name "tab:a table float"
2526 \begin_layout Plain Layout
2528 \begin_inset Tabular
2529 <lyxtabular version="3" rows="3" columns="3">
2531 <column alignment="center" valignment="top" width="0pt">
2532 <column alignment="center" valignment="top" width="0pt">
2533 <column alignment="center" valignment="top" width="0pt">
2535 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2538 \begin_layout Plain Layout
2553 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2556 \begin_layout Plain Layout
2571 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2574 \begin_layout Plain Layout
2591 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2594 \begin_layout Plain Layout
2609 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2612 \begin_layout Plain Layout
2627 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2630 \begin_layout Plain Layout
2647 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2650 \begin_layout Plain Layout
2660 \begin_inset Formula $\int x^{2}dx$
2668 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2671 \begin_layout Plain Layout
2681 \begin_inset Formula $\left[\begin{array}{cc}
2683 c & d\end{array}\right]$
2691 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2694 \begin_layout Plain Layout
2704 \begin_inset Formula $1+1=2$
2725 \begin_layout Standard
2726 Table floats can be inserted using the menu
2728 Insert\SpecialChar \menuseparator
2729 Float\SpecialChar \menuseparator
2732 or the toolbar button
2733 \begin_inset Graphics
2734 filename ../images/float-insert_table.png
2743 \begin_layout Standard
2744 The float appears as a collapsible box with a caption that has the label
2746 \begin_inset Quotes eld
2750 \begin_inset space ~
2754 \begin_inset Quotes erd
2757 (# is the actual table number).
2758 You can insert tables to the float above or below the caption.
2761 \begin_layout Standard
2763 \begin_inset space ~
2767 \begin_inset CommandInset ref
2769 reference "tab:a table float"
2773 is an example table within a table float.
2776 \begin_layout Standard
2777 Having the caption above the table is the common rule that is unfortunately
2778 not supported in LaTeX's standard classes.
2779 That means if you are using the document classes
2795 there will be no space between the caption and the table.
2796 To insert the needed space, add the following option to the load command
2797 of the LaTeX-package
2805 \begin_layout Plain Layout
2806 LaTeX-packages ! caption
2811 in your document preamble
2815 \begin_layout Plain Layout
2816 For more information have a look at section
2817 \begin_inset space ~
2821 \begin_inset CommandInset ref
2823 reference "sec:Caption-Placement"
2835 \begin_layout Standard
2841 \begin_layout Standard
2846 , which is described in section
2847 \begin_inset space ~
2851 \begin_inset CommandInset ref
2853 reference "sec:Caption-Formatting"
2857 , is used to adjust the caption format.
2860 \begin_layout Standard
2864 \begin_layout Plain Layout
2865 References ! to Tables
2870 Tables can be cross-referenced in the text by referencing their label.
2871 To do this insert a label in the caption using the menu
2873 Insert\SpecialChar \menuseparator
2876 or the toolbar button
2877 \begin_inset Graphics
2878 filename ../images/label-insert.png
2885 You can now refer to the label using the menu
2887 Insert\SpecialChar \menuseparator
2889 \begin_inset space ~
2894 or the toolbar button
2895 \begin_inset Graphics
2896 filename ../images/dialog-show-new-inset_ref.png
2903 \begin_inset Newline newline
2906 Referencing is explained in detail in section
2907 \begin_inset space ~
2911 \begin_inset CommandInset ref
2913 reference "sec:Referencing-Floats"
2920 \begin_layout Section
2922 \begin_inset CommandInset label
2924 name "sec:Longtables"
2932 \begin_layout Plain Layout
2942 \begin_layout Plain Layout
2951 \begin_layout Standard
2952 If the table is too long to fit on one page, you can use the option
2955 \begin_inset space ~
2959 \begin_inset space ~
2968 of the table dialog to split the table automatically over more pages.
2969 Doing this enables the following options:
2972 \begin_layout Description
2977 : The current row and all rows above, that don't have any special options
2978 defined, are defined to be the header rows of all pages of the longtable;
2979 except for the first page, if
2982 \begin_inset space ~
2988 This therefore called the main header.
2991 \begin_layout Description
2995 \begin_inset space ~
3000 : The current row and all rows above, that don't have any special options
3001 defined, are defined to be the header rows of the first page of the longtable.
3004 \begin_layout Description
3009 : The current row and all rows below, that don't have any special options
3010 defined, are defined to be the footer rows of all pages of the longtable;
3011 except for the last page, if
3014 \begin_inset space ~
3022 \begin_layout Description
3026 \begin_inset space ~
3031 : The current row and all rows below, that don't have any special options
3032 defined, are defined to be the footer rows of the last page of the longtable.
3035 \begin_layout Description
3036 Caption: The first row is reset as single column.
3037 You can now insert there the table caption via the menu
3039 Insert\SpecialChar \menuseparator
3043 More about longtable captions is explained in sec.
3044 \begin_inset space \thinspace{}
3048 \begin_inset CommandInset ref
3050 reference "sub:Longtable-Captions"
3057 \begin_layout Standard
3058 You can also specify a row where the table is splitted.
3059 If you set more than one option in the same table row, you should be aware
3060 of the fact that only the first one is used in the given table row.
3061 The others will then be defined as
3066 In this context, first means first in this order:
3073 \begin_inset space ~
3076 header, Footer, Last
3077 \begin_inset space ~
3083 See the following longtable to see how it works:
3086 \begin_layout Standard
3088 \begin_inset Tabular
3089 <lyxtabular version="3" rows="69" columns="3">
3090 <features islongtable="true">
3091 <column alignment="left" valignment="top" width="0cm">
3092 <column alignment="left" valignment="top" width="0pt">
3093 <column alignment="center" valignment="top" width="0pt">
3094 <row endfirsthead="true">
3095 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3098 \begin_layout Plain Layout
3101 Example Phone List (ignore the names)
3106 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3109 \begin_layout Plain Layout
3115 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3118 \begin_layout Plain Layout
3125 <row endfirsthead="true">
3126 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3129 \begin_layout Plain Layout
3137 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3140 \begin_layout Plain Layout
3146 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3149 \begin_layout Plain Layout
3158 <row endhead="true">
3159 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3162 \begin_layout Plain Layout
3170 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3173 \begin_layout Plain Layout
3179 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3182 \begin_layout Plain Layout
3189 <row endhead="true">
3190 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3193 \begin_layout Plain Layout
3201 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3204 \begin_layout Plain Layout
3210 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3213 \begin_layout Plain Layout
3222 <row endfoot="true">
3223 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
3226 \begin_layout Plain Layout
3227 continued on next page
3232 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3235 \begin_layout Plain Layout
3241 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3244 \begin_layout Plain Layout
3252 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3255 \begin_layout Plain Layout
3263 <cell alignment="center" valignment="top" usebox="none">
3266 \begin_layout Plain Layout
3272 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3275 \begin_layout Plain Layout
3283 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3286 \begin_layout Plain Layout
3294 <cell alignment="center" valignment="top" usebox="none">
3297 \begin_layout Plain Layout
3303 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3306 \begin_layout Plain Layout
3314 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3317 \begin_layout Plain Layout
3325 <cell alignment="center" valignment="top" usebox="none">
3328 \begin_layout Plain Layout
3334 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3337 \begin_layout Plain Layout
3345 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3348 \begin_layout Plain Layout
3356 <cell alignment="center" valignment="top" usebox="none">
3359 \begin_layout Plain Layout
3365 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3368 \begin_layout Plain Layout
3376 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3379 \begin_layout Plain Layout
3387 <cell alignment="center" valignment="top" usebox="none">
3390 \begin_layout Plain Layout
3396 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3399 \begin_layout Plain Layout
3407 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3410 \begin_layout Plain Layout
3418 <cell alignment="center" valignment="top" usebox="none">
3421 \begin_layout Plain Layout
3427 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3430 \begin_layout Plain Layout
3438 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3441 \begin_layout Plain Layout
3449 <cell alignment="center" valignment="top" usebox="none">
3452 \begin_layout Plain Layout
3458 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3461 \begin_layout Plain Layout
3469 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3472 \begin_layout Plain Layout
3480 <cell alignment="center" valignment="top" usebox="none">
3483 \begin_layout Plain Layout
3489 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3492 \begin_layout Plain Layout
3500 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3503 \begin_layout Plain Layout
3511 <cell alignment="center" valignment="top" usebox="none">
3514 \begin_layout Plain Layout
3520 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3523 \begin_layout Plain Layout
3531 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3534 \begin_layout Plain Layout
3542 <cell alignment="center" valignment="top" usebox="none">
3545 \begin_layout Plain Layout
3551 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3554 \begin_layout Plain Layout
3562 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3565 \begin_layout Plain Layout
3573 <cell alignment="center" valignment="top" usebox="none">
3576 \begin_layout Plain Layout
3582 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3585 \begin_layout Plain Layout
3593 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3596 \begin_layout Plain Layout
3604 <cell alignment="center" valignment="top" usebox="none">
3607 \begin_layout Plain Layout
3613 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3616 \begin_layout Plain Layout
3624 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3627 \begin_layout Plain Layout
3635 <cell alignment="center" valignment="top" usebox="none">
3638 \begin_layout Plain Layout
3644 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3647 \begin_layout Plain Layout
3655 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3658 \begin_layout Plain Layout
3666 <cell alignment="center" valignment="top" usebox="none">
3669 \begin_layout Plain Layout
3675 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3678 \begin_layout Plain Layout
3686 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3689 \begin_layout Plain Layout
3697 <cell alignment="center" valignment="top" usebox="none">
3700 \begin_layout Plain Layout
3706 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3709 \begin_layout Plain Layout
3717 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3720 \begin_layout Plain Layout
3728 <cell alignment="center" valignment="top" usebox="none">
3731 \begin_layout Plain Layout
3737 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3740 \begin_layout Plain Layout
3748 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3751 \begin_layout Plain Layout
3759 <cell alignment="center" valignment="top" usebox="none">
3762 \begin_layout Plain Layout
3768 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3771 \begin_layout Plain Layout
3779 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3782 \begin_layout Plain Layout
3790 <cell alignment="center" valignment="top" usebox="none">
3793 \begin_layout Plain Layout
3799 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3802 \begin_layout Plain Layout
3810 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3813 \begin_layout Plain Layout
3821 <cell alignment="center" valignment="top" usebox="none">
3824 \begin_layout Plain Layout
3830 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3833 \begin_layout Plain Layout
3841 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3844 \begin_layout Plain Layout
3852 <cell alignment="center" valignment="top" usebox="none">
3855 \begin_layout Plain Layout
3861 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3864 \begin_layout Plain Layout
3872 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3875 \begin_layout Plain Layout
3883 <cell alignment="center" valignment="top" usebox="none">
3886 \begin_layout Plain Layout
3892 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3895 \begin_layout Plain Layout
3903 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3906 \begin_layout Plain Layout
3914 <cell alignment="center" valignment="top" usebox="none">
3917 \begin_layout Plain Layout
3923 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3926 \begin_layout Plain Layout
3934 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3937 \begin_layout Plain Layout
3945 <cell alignment="center" valignment="top" usebox="none">
3948 \begin_layout Plain Layout
3954 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3957 \begin_layout Plain Layout
3965 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3968 \begin_layout Plain Layout
3976 <cell alignment="center" valignment="top" usebox="none">
3979 \begin_layout Plain Layout
3985 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3988 \begin_layout Plain Layout
3996 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3999 \begin_layout Plain Layout
4007 <cell alignment="center" valignment="top" usebox="none">
4010 \begin_layout Plain Layout
4016 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4019 \begin_layout Plain Layout
4027 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4030 \begin_layout Plain Layout
4038 <cell alignment="center" valignment="top" usebox="none">
4041 \begin_layout Plain Layout
4047 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4050 \begin_layout Plain Layout
4058 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4061 \begin_layout Plain Layout
4069 <cell alignment="center" valignment="top" usebox="none">
4072 \begin_layout Plain Layout
4078 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4081 \begin_layout Plain Layout
4089 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4092 \begin_layout Plain Layout
4100 <cell alignment="center" valignment="top" usebox="none">
4103 \begin_layout Plain Layout
4109 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4112 \begin_layout Plain Layout
4120 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4123 \begin_layout Plain Layout
4131 <cell alignment="center" valignment="top" usebox="none">
4134 \begin_layout Plain Layout
4140 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4143 \begin_layout Plain Layout
4151 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4154 \begin_layout Plain Layout
4162 <cell alignment="center" valignment="top" usebox="none">
4165 \begin_layout Plain Layout
4171 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4174 \begin_layout Plain Layout
4182 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4185 \begin_layout Plain Layout
4193 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4196 \begin_layout Plain Layout
4202 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4205 \begin_layout Plain Layout
4213 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4216 \begin_layout Plain Layout
4222 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4225 \begin_layout Plain Layout
4231 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4234 \begin_layout Plain Layout
4242 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4245 \begin_layout Plain Layout
4253 <cell alignment="center" valignment="top" usebox="none">
4256 \begin_layout Plain Layout
4262 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4265 \begin_layout Plain Layout
4273 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4276 \begin_layout Plain Layout
4284 <cell alignment="center" valignment="top" usebox="none">
4287 \begin_layout Plain Layout
4293 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4296 \begin_layout Plain Layout
4304 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4307 \begin_layout Plain Layout
4315 <cell alignment="center" valignment="top" usebox="none">
4318 \begin_layout Plain Layout
4324 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4327 \begin_layout Plain Layout
4335 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4338 \begin_layout Plain Layout
4346 <cell alignment="center" valignment="top" usebox="none">
4349 \begin_layout Plain Layout
4355 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4358 \begin_layout Plain Layout
4366 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4369 \begin_layout Plain Layout
4377 <cell alignment="center" valignment="top" usebox="none">
4380 \begin_layout Plain Layout
4386 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4389 \begin_layout Plain Layout
4397 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4400 \begin_layout Plain Layout
4408 <cell alignment="center" valignment="top" usebox="none">
4411 \begin_layout Plain Layout
4417 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4420 \begin_layout Plain Layout
4428 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4431 \begin_layout Plain Layout
4439 <cell alignment="center" valignment="top" usebox="none">
4442 \begin_layout Plain Layout
4448 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4451 \begin_layout Plain Layout
4459 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4462 \begin_layout Plain Layout
4470 <cell alignment="center" valignment="top" usebox="none">
4473 \begin_layout Plain Layout
4479 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4482 \begin_layout Plain Layout
4490 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4493 \begin_layout Plain Layout
4501 <cell alignment="center" valignment="top" usebox="none">
4504 \begin_layout Plain Layout
4510 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4513 \begin_layout Plain Layout
4521 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4524 \begin_layout Plain Layout
4532 <cell alignment="center" valignment="top" usebox="none">
4535 \begin_layout Plain Layout
4541 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4544 \begin_layout Plain Layout
4552 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4555 \begin_layout Plain Layout
4563 <cell alignment="center" valignment="top" usebox="none">
4566 \begin_layout Plain Layout
4572 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4575 \begin_layout Plain Layout
4583 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4586 \begin_layout Plain Layout
4594 <cell alignment="center" valignment="top" usebox="none">
4597 \begin_layout Plain Layout
4603 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4606 \begin_layout Plain Layout
4614 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4617 \begin_layout Plain Layout
4625 <cell alignment="center" valignment="top" usebox="none">
4628 \begin_layout Plain Layout
4634 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4637 \begin_layout Plain Layout
4645 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4648 \begin_layout Plain Layout
4656 <cell alignment="center" valignment="top" usebox="none">
4659 \begin_layout Plain Layout
4665 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4668 \begin_layout Plain Layout
4676 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4679 \begin_layout Plain Layout
4687 <cell alignment="center" valignment="top" usebox="none">
4690 \begin_layout Plain Layout
4696 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4699 \begin_layout Plain Layout
4707 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4710 \begin_layout Plain Layout
4718 <cell alignment="center" valignment="top" usebox="none">
4721 \begin_layout Plain Layout
4727 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4730 \begin_layout Plain Layout
4738 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4741 \begin_layout Plain Layout
4749 <cell alignment="center" valignment="top" usebox="none">
4752 \begin_layout Plain Layout
4758 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4761 \begin_layout Plain Layout
4769 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4772 \begin_layout Plain Layout
4780 <cell alignment="center" valignment="top" usebox="none">
4783 \begin_layout Plain Layout
4789 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4792 \begin_layout Plain Layout
4800 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4803 \begin_layout Plain Layout
4811 <cell alignment="center" valignment="top" usebox="none">
4814 \begin_layout Plain Layout
4820 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4823 \begin_layout Plain Layout
4831 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4834 \begin_layout Plain Layout
4842 <cell alignment="center" valignment="top" usebox="none">
4845 \begin_layout Plain Layout
4851 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4854 \begin_layout Plain Layout
4862 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4865 \begin_layout Plain Layout
4873 <cell alignment="center" valignment="top" usebox="none">
4876 \begin_layout Plain Layout
4882 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4885 \begin_layout Plain Layout
4893 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4896 \begin_layout Plain Layout
4904 <cell alignment="center" valignment="top" usebox="none">
4907 \begin_layout Plain Layout
4913 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4916 \begin_layout Plain Layout
4924 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4927 \begin_layout Plain Layout
4935 <cell alignment="center" valignment="top" usebox="none">
4938 \begin_layout Plain Layout
4944 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4947 \begin_layout Plain Layout
4955 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4958 \begin_layout Plain Layout
4966 <cell alignment="center" valignment="top" usebox="none">
4969 \begin_layout Plain Layout
4975 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4978 \begin_layout Plain Layout
4986 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4989 \begin_layout Plain Layout
4997 <cell alignment="center" valignment="top" usebox="none">
5000 \begin_layout Plain Layout
5006 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5009 \begin_layout Plain Layout
5017 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5020 \begin_layout Plain Layout
5028 <cell alignment="center" valignment="top" usebox="none">
5031 \begin_layout Plain Layout
5037 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5040 \begin_layout Plain Layout
5048 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5051 \begin_layout Plain Layout
5059 <cell alignment="center" valignment="top" usebox="none">
5062 \begin_layout Plain Layout
5068 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5071 \begin_layout Plain Layout
5079 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5082 \begin_layout Plain Layout
5090 <cell alignment="center" valignment="top" usebox="none">
5093 \begin_layout Plain Layout
5099 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5102 \begin_layout Plain Layout
5110 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5113 \begin_layout Plain Layout
5121 <cell alignment="center" valignment="top" usebox="none">
5124 \begin_layout Plain Layout
5130 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5133 \begin_layout Plain Layout
5141 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5144 \begin_layout Plain Layout
5152 <cell alignment="center" valignment="top" usebox="none">
5155 \begin_layout Plain Layout
5161 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5164 \begin_layout Plain Layout
5172 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5175 \begin_layout Plain Layout
5183 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5186 \begin_layout Plain Layout
5192 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5195 \begin_layout Plain Layout
5202 <row endlastfoot="true">
5203 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5206 \begin_layout Plain Layout
5212 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5215 \begin_layout Plain Layout
5221 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5224 \begin_layout Plain Layout
5239 \begin_layout Plain Layout
5243 addtocounter{table}{-1}
5249 \begin_inset Note Note
5252 \begin_layout Plain Layout
5253 See greyed-out note in section
5254 \begin_inset space ~
5258 \begin_inset CommandInset ref
5260 reference "sub:Longtable-Captions"
5264 for an explanation of this command.
5272 \begin_layout Subsection
5273 Footnotes in Longtables
5274 \begin_inset CommandInset label
5276 name "sub:Footnotes-in-Longtables"
5284 \begin_layout Plain Layout
5285 Longtables ! Footnotes
5293 \begin_layout Standard
5294 Footnotes can be inserted to every longtable cell.
5295 They appear at the bottom of the page where the table cell with the footnote
5298 \begin_inset space ~
5302 \begin_inset CommandInset ref
5304 reference "tab:DiffCaptions"
5308 has for example a footnote.
5311 \begin_layout Subsection
5316 \begin_layout Plain Layout
5317 Longtables ! Alignment
5325 \begin_layout Standard
5326 Longtables are by default centered.
5327 In contrary to the alignment of the table columns and row, the table alignment
5328 can currently not be changed in the table dialog.
5329 To change the alignment of longtables you have to change the value of the
5342 by inserting this line as TeX-Code before the corresponding longtable:
5345 \begin_layout Standard
5355 \begin_layout Standard
5356 Where the value can have any of the units listed in Table
5357 \begin_inset space ~
5361 \begin_inset CommandInset ref
5363 reference "tab:Units"
5374 controls the horizontal distance from the left page border to the longtable,
5381 the distance from the right side.
5382 The default value for both lengths is
5388 , which is in this case the same as an horizontal fill in LyX.
5391 \begin_layout Standard
5392 The following longtable was left-aligned by setting
5399 \begin_inset space \thinspace{}
5406 \begin_layout Plain Layout
5420 \begin_layout Standard
5421 \begin_inset Tabular
5422 <lyxtabular version="3" rows="5" columns="5">
5423 <features islongtable="true">
5424 <column alignment="center" valignment="top" width="0">
5425 <column alignment="center" valignment="top" width="0">
5426 <column alignment="center" valignment="top" width="0">
5427 <column alignment="center" valignment="top" width="0">
5428 <column alignment="center" valignment="top" width="0">
5430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5433 \begin_layout Plain Layout
5439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5442 \begin_layout Plain Layout
5448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5451 \begin_layout Plain Layout
5457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5460 \begin_layout Plain Layout
5466 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5469 \begin_layout Plain Layout
5477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5480 \begin_layout Plain Layout
5486 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5489 \begin_layout Plain Layout
5495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5498 \begin_layout Plain Layout
5504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5507 \begin_layout Plain Layout
5513 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5516 \begin_layout Plain Layout
5524 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5527 \begin_layout Plain Layout
5533 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5536 \begin_layout Plain Layout
5542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5545 \begin_layout Plain Layout
5551 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5554 \begin_layout Plain Layout
5560 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5563 \begin_layout Plain Layout
5571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5574 \begin_layout Plain Layout
5580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5583 \begin_layout Plain Layout
5589 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5592 \begin_layout Plain Layout
5598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5601 \begin_layout Plain Layout
5607 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5610 \begin_layout Plain Layout
5618 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5621 \begin_layout Plain Layout
5627 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5630 \begin_layout Plain Layout
5636 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5639 \begin_layout Plain Layout
5645 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5648 \begin_layout Plain Layout
5654 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5657 \begin_layout Plain Layout
5672 \begin_layout Plain Layout
5688 \begin_layout Subsection
5693 \begin_layout Plain Layout
5694 Longtables ! Captions
5700 \begin_inset CommandInset label
5702 name "sub:Longtable-Captions"
5709 \begin_layout Standard
5710 A longtable cannot be put into a table float because floats can only be
5711 on one page but the caption environment of floats can also be used for
5713 Therefore the caption is inserted as first row of the table, as explained
5715 \begin_inset space \thinspace{}
5719 \begin_inset CommandInset ref
5721 reference "sec:Longtables"
5726 The first table row is then only a dummy row for the caption, the actual
5727 table starts with the second row.
5730 \begin_layout Standard
5731 Here is a short longtable to see how it works:
5734 \begin_layout Standard
5735 \begin_inset Tabular
5736 <lyxtabular version="3" rows="6" columns="5">
5737 <features islongtable="true">
5738 <column alignment="center" valignment="top" width="0">
5739 <column alignment="center" valignment="top" width="0">
5740 <column alignment="center" valignment="top" width="0">
5741 <column alignment="center" valignment="top" width="0">
5742 <column alignment="center" valignment="top" width="0">
5743 <row caption="true">
5744 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5747 \begin_layout Plain Layout
5748 \begin_inset Caption
5750 \begin_layout Plain Layout
5751 Longtable with caption
5755 \begin_layout Plain Layout
5771 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5774 \begin_layout Plain Layout
5780 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5783 \begin_layout Plain Layout
5789 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5792 \begin_layout Plain Layout
5798 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5801 \begin_layout Plain Layout
5809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5812 \begin_layout Plain Layout
5818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5821 \begin_layout Plain Layout
5827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5830 \begin_layout Plain Layout
5836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5839 \begin_layout Plain Layout
5845 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5848 \begin_layout Plain Layout
5856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5859 \begin_layout Plain Layout
5865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5868 \begin_layout Plain Layout
5874 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5877 \begin_layout Plain Layout
5883 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5886 \begin_layout Plain Layout
5892 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5895 \begin_layout Plain Layout
5903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5906 \begin_layout Plain Layout
5912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5915 \begin_layout Plain Layout
5921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5924 \begin_layout Plain Layout
5930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5933 \begin_layout Plain Layout
5939 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5942 \begin_layout Plain Layout
5950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5953 \begin_layout Plain Layout
5959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5962 \begin_layout Plain Layout
5968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5971 \begin_layout Plain Layout
5977 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5980 \begin_layout Plain Layout
5986 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5989 \begin_layout Plain Layout
5997 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6000 \begin_layout Plain Layout
6006 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6009 \begin_layout Plain Layout
6015 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6018 \begin_layout Plain Layout
6024 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6027 \begin_layout Plain Layout
6033 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6036 \begin_layout Plain Layout
6050 \begin_layout Standard
6051 \begin_inset VSpace medskip
6055 \begin_inset Note Greyedout
6058 \begin_layout Plain Layout
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.g.
6066 \begin_inset space \space{}
6070 \begin_inset space ~
6073 2.4 follows on Table
6074 \begin_inset space ~
6077 2.1 in the list of tables if there are two longtables without captions.
6078 To avoid this you can add the following command in TeX-Code behind every
6079 longtable without a caption:
6082 \begin_layout Plain Layout
6087 addtocounter{table}{-1}
6095 \begin_layout Standard
6096 \begin_inset Note Greyedout
6099 \begin_layout Plain Layout
6112 \begin_layout Plain Layout
6113 LaTeX-packages ! hyperref
6126 dialog to link cross-references, the link to a longtable caption will always
6127 point to the beginning of the document.
6135 \begin_layout Standard
6136 \begin_inset Newpage newpage
6142 \begin_layout Subsubsection
6143 References to Longtables
6147 \begin_layout Plain Layout
6148 Longtables ! References
6156 \begin_layout Standard
6157 \begin_inset Tabular
6158 <lyxtabular version="3" rows="6" columns="5">
6159 <features islongtable="true">
6160 <column alignment="center" valignment="top" width="0">
6161 <column alignment="center" valignment="top" width="0">
6162 <column alignment="center" valignment="top" width="0">
6163 <column alignment="center" valignment="top" width="0">
6164 <column alignment="center" valignment="top" width="0">
6165 <row caption="true">
6166 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6169 \begin_layout Plain Layout
6170 \begin_inset Caption
6172 \begin_layout Plain Layout
6173 Referenced longtable
6174 \begin_inset CommandInset label
6176 name "tab:RefExample"
6190 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6193 \begin_layout Plain Layout
6199 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6202 \begin_layout Plain Layout
6208 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6211 \begin_layout Plain Layout
6217 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6220 \begin_layout Plain Layout
6228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6231 \begin_layout Plain Layout
6237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6240 \begin_layout Plain Layout
6246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6249 \begin_layout Plain Layout
6255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6258 \begin_layout Plain Layout
6264 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6267 \begin_layout Plain Layout
6275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6278 \begin_layout Plain Layout
6284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6287 \begin_layout Plain Layout
6293 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6296 \begin_layout Plain Layout
6302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6305 \begin_layout Plain Layout
6311 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6314 \begin_layout Plain Layout
6322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6325 \begin_layout Plain Layout
6331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6334 \begin_layout Plain Layout
6340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6343 \begin_layout Plain Layout
6349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6352 \begin_layout Plain Layout
6358 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6361 \begin_layout Plain Layout
6369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6372 \begin_layout Plain Layout
6378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6381 \begin_layout Plain Layout
6387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6390 \begin_layout Plain Layout
6396 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6399 \begin_layout Plain Layout
6405 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6408 \begin_layout Plain Layout
6416 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6419 \begin_layout Plain Layout
6425 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6428 \begin_layout Plain Layout
6434 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6437 \begin_layout Plain Layout
6443 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6446 \begin_layout Plain Layout
6452 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6455 \begin_layout Plain Layout
6469 \begin_layout Standard
6470 To reference a longtable, insert a label into the caption.
6473 \begin_layout Standard
6474 This is a reference to Table
6475 \begin_inset space ~
6479 \begin_inset CommandInset ref
6481 reference "tab:RefExample"
6488 \begin_layout Standard
6489 The caption layout can be set together with all other captions of your document
6490 using the LaTeX-package
6498 \begin_layout Plain Layout
6499 LaTeX-packages ! caption
6505 \begin_inset space ~
6509 \begin_inset CommandInset ref
6511 reference "sec:Caption-Formatting"
6518 \begin_layout Subsubsection
6523 \begin_layout Plain Layout
6524 Longtables ! Caption Width
6532 \begin_layout Standard
6533 The maximal width of of caption lines is defined by the length
6540 Its default value is 4
6541 \begin_inset space \thinspace{}
6545 To change it add the following command to your document preamble or as
6546 TeX-Code into your document before the longtable that should be affected
6549 \begin_layout Standard
6559 \begin_layout Standard
6560 where the width could have one of the units listed in appendix
6561 \begin_inset space ~
6565 \begin_inset CommandInset ref
6567 reference "cha:Units-available-in"
6574 \begin_layout Standard
6575 The following tables show the difference:
6578 \begin_layout Standard
6579 \begin_inset Tabular
6580 <lyxtabular version="3" rows="6" columns="5">
6581 <features islongtable="true">
6582 <column alignment="center" valignment="top" width="0">
6583 <column alignment="center" valignment="top" width="0">
6584 <column alignment="center" valignment="top" width="0">
6585 <column alignment="center" valignment="top" width="0">
6586 <column alignment="center" valignment="top" width="0">
6587 <row caption="true">
6588 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6591 \begin_layout Plain Layout
6592 \begin_inset Caption
6594 \begin_layout Plain Layout
6595 long full title with default width long full title with default width long
6596 full title with default width
6600 \begin_layout Plain Layout
6601 caption with default width
6616 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6619 \begin_layout Plain Layout
6625 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6628 \begin_layout Plain Layout
6634 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6637 \begin_layout Plain Layout
6643 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6646 \begin_layout Plain Layout
6654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6657 \begin_layout Plain Layout
6663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6666 \begin_layout Plain Layout
6672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6675 \begin_layout Plain Layout
6681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6684 \begin_layout Plain Layout
6690 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6693 \begin_layout Plain Layout
6701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6704 \begin_layout Plain Layout
6710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6713 \begin_layout Plain Layout
6719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6722 \begin_layout Plain Layout
6728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6731 \begin_layout Plain Layout
6737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6740 \begin_layout Plain Layout
6748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6751 \begin_layout Plain Layout
6757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6760 \begin_layout Plain Layout
6766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6769 \begin_layout Plain Layout
6775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6778 \begin_layout Plain Layout
6784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6787 \begin_layout Plain Layout
6795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6798 \begin_layout Plain Layout
6804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6807 \begin_layout Plain Layout
6813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6816 \begin_layout Plain Layout
6822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6825 \begin_layout Plain Layout
6831 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6834 \begin_layout Plain Layout
6842 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6845 \begin_layout Plain Layout
6851 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6854 \begin_layout Plain Layout
6860 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6863 \begin_layout Plain Layout
6869 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6872 \begin_layout Plain Layout
6878 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6881 \begin_layout Plain Layout
6895 \begin_layout Standard
6899 \begin_layout Plain Layout
6911 \begin_inset Tabular
6912 <lyxtabular version="3" rows="6" columns="5">
6913 <features islongtable="true">
6914 <column alignment="center" valignment="top" width="0">
6915 <column alignment="center" valignment="top" width="0">
6916 <column alignment="center" valignment="top" width="0">
6917 <column alignment="center" valignment="top" width="0">
6918 <column alignment="center" valignment="top" width="0">
6919 <row caption="true">
6920 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6923 \begin_layout Plain Layout
6924 \begin_inset Caption
6926 \begin_layout Plain Layout
6927 long full title with width set to 5
6928 \begin_inset space \thinspace{}
6931 cm long full title with width set to 5
6932 \begin_inset space \thinspace{}
6935 cm long full title with width set to 5
6936 \begin_inset space \thinspace{}
6943 \begin_layout Plain Layout
6945 \begin_inset space \thinspace{}
6949 \begin_inset space \thinspace{}
6953 \begin_inset space \thinspace{}
6971 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6974 \begin_layout Plain Layout
6980 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6983 \begin_layout Plain Layout
6989 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6992 \begin_layout Plain Layout
6998 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7001 \begin_layout Plain Layout
7009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7012 \begin_layout Plain Layout
7018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7021 \begin_layout Plain Layout
7027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7030 \begin_layout Plain Layout
7036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7039 \begin_layout Plain Layout
7045 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7048 \begin_layout Plain Layout
7056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7059 \begin_layout Plain Layout
7065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7068 \begin_layout Plain Layout
7074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7077 \begin_layout Plain Layout
7083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7086 \begin_layout Plain Layout
7092 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7095 \begin_layout Plain Layout
7103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7106 \begin_layout Plain Layout
7112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7115 \begin_layout Plain Layout
7121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7124 \begin_layout Plain Layout
7130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7133 \begin_layout Plain Layout
7139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7142 \begin_layout Plain Layout
7150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7153 \begin_layout Plain Layout
7159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7162 \begin_layout Plain Layout
7168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7171 \begin_layout Plain Layout
7177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7180 \begin_layout Plain Layout
7186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7189 \begin_layout Plain Layout
7197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7200 \begin_layout Plain Layout
7206 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7209 \begin_layout Plain Layout
7215 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7218 \begin_layout Plain Layout
7224 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7227 \begin_layout Plain Layout
7233 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7236 \begin_layout Plain Layout
7250 \begin_layout Standard
7254 \begin_layout Plain Layout
7268 \begin_layout Standard
7269 \begin_inset Note Greyedout
7272 \begin_layout Plain Layout
7277 When the LaTeX-package
7285 \begin_layout Plain Layout
7286 LaTeX-packages ! caption
7291 is used, as in this document, the full page width is used for the caption
7292 when you use the default value of 4
7293 \begin_inset space \thinspace{}
7303 To get in this case exactly a 4
7304 \begin_inset space \thinspace{}
7307 in wide caption, you can either use a value slightly different from 4.0
7308 \begin_inset space \thinspace{}
7312 \begin_inset space \space{}
7316 \begin_inset space \thinspace{}
7319 in, or the LaTeX-command
7323 captionsetup{width=value}
7325 that is provided by the
7337 \begin_layout Subsubsection
7338 Different Captions for Table Pages
7342 \begin_layout Plain Layout
7343 Longtables ! Different Captions for Pages
7351 \begin_layout Standard
7352 When the other captions should differ from the one of the first table page,
7353 insert a caption with a non-empty short title in a dummy caption row marked
7355 The caption used for the other table pages is inserted as caption without
7356 a short title in a dummy caption row that is marked as main header.
7357 When this caption shouldn't include the table number, use the command
7360 \begin_layout Standard
7365 caption*{caption text}
7368 \begin_layout Standard
7369 instead of LyX's caption box.
7370 The label to reference the table is inserted into the caption of the first
7373 \begin_inset space ~
7377 \begin_inset CommandInset ref
7379 reference "tab:DiffCaptions"
7383 is an example for a longtable with different heading where the second caption
7384 doesn't include the table number.
7387 \begin_layout Standard
7389 \begin_inset Tabular
7390 <lyxtabular version="3" rows="60" columns="3">
7391 <features islongtable="true">
7392 <column alignment="left" valignment="top" width="0cm">
7393 <column alignment="left" valignment="top" width="0pt">
7394 <column alignment="center" valignment="top" width="0pt">
7395 <row endfirsthead="true" caption="true">
7396 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7399 \begin_layout Plain Layout
7400 \begin_inset Caption
7402 \begin_layout Plain Layout
7404 \begin_inset CommandInset label
7406 name "tab:DiffCaptions"
7414 \begin_layout Plain Layout
7430 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7433 \begin_layout Plain Layout
7439 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7442 \begin_layout Plain Layout
7449 <row endfirsthead="true">
7450 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7453 \begin_layout Plain Layout
7456 Example Phone List (ignore the names)
7461 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7464 \begin_layout Plain Layout
7470 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7473 \begin_layout Plain Layout
7480 <row endfirsthead="true">
7481 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7484 \begin_layout Plain Layout
7492 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7495 \begin_layout Plain Layout
7501 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7504 \begin_layout Plain Layout
7513 <row endhead="true" caption="true">
7514 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7517 \begin_layout Plain Layout
7521 \begin_layout Plain Layout
7525 caption*{Continued Example Phone List}
7539 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7542 \begin_layout Plain Layout
7548 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7551 \begin_layout Plain Layout
7558 <row endhead="true">
7559 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7562 \begin_layout Plain Layout
7570 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7573 \begin_layout Plain Layout
7579 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7582 \begin_layout Plain Layout
7589 <row endhead="true">
7590 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
7593 \begin_layout Plain Layout
7601 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7604 \begin_layout Plain Layout
7610 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7613 \begin_layout Plain Layout
7622 <row endfoot="true">
7623 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7626 \begin_layout Plain Layout
7627 continued on next page
7632 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7635 \begin_layout Plain Layout
7641 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7644 \begin_layout Plain Layout
7652 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7655 \begin_layout Plain Layout
7663 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7666 \begin_layout Plain Layout
7672 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7675 \begin_layout Plain Layout
7683 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7686 \begin_layout Plain Layout
7694 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7697 \begin_layout Plain Layout
7703 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7706 \begin_layout Plain Layout
7714 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7717 \begin_layout Plain Layout
7725 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7728 \begin_layout Plain Layout
7734 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7737 \begin_layout Plain Layout
7745 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7748 \begin_layout Plain Layout
7756 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7759 \begin_layout Plain Layout
7765 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7768 \begin_layout Plain Layout
7776 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7779 \begin_layout Plain Layout
7787 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7790 \begin_layout Plain Layout
7796 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7799 \begin_layout Plain Layout
7807 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7810 \begin_layout Plain Layout
7818 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7821 \begin_layout Plain Layout
7827 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7830 \begin_layout Plain Layout
7838 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7841 \begin_layout Plain Layout
7849 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7852 \begin_layout Plain Layout
7858 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7861 \begin_layout Plain Layout
7869 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7872 \begin_layout Plain Layout
7880 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7883 \begin_layout Plain Layout
7889 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7892 \begin_layout Plain Layout
7900 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7903 \begin_layout Plain Layout
7911 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7914 \begin_layout Plain Layout
7920 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7923 \begin_layout Plain Layout
7931 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7934 \begin_layout Plain Layout
7942 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7945 \begin_layout Plain Layout
7951 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7954 \begin_layout Plain Layout
7962 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7965 \begin_layout Plain Layout
7973 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7976 \begin_layout Plain Layout
7982 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7985 \begin_layout Plain Layout
7993 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7996 \begin_layout Plain Layout
8004 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8007 \begin_layout Plain Layout
8013 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8016 \begin_layout Plain Layout
8024 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8027 \begin_layout Plain Layout
8035 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8038 \begin_layout Plain Layout
8044 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8047 \begin_layout Plain Layout
8055 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8058 \begin_layout Plain Layout
8066 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8069 \begin_layout Plain Layout
8075 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8078 \begin_layout Plain Layout
8086 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8089 \begin_layout Plain Layout
8098 \begin_layout Plain Layout
8109 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8112 \begin_layout Plain Layout
8118 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8121 \begin_layout Plain Layout
8129 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8132 \begin_layout Plain Layout
8140 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8143 \begin_layout Plain Layout
8149 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8152 \begin_layout Plain Layout
8160 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8163 \begin_layout Plain Layout
8171 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8174 \begin_layout Plain Layout
8180 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8183 \begin_layout Plain Layout
8191 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8194 \begin_layout Plain Layout
8202 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8205 \begin_layout Plain Layout
8211 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8214 \begin_layout Plain Layout
8222 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8225 \begin_layout Plain Layout
8233 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8236 \begin_layout Plain Layout
8242 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8245 \begin_layout Plain Layout
8253 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8256 \begin_layout Plain Layout
8264 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8267 \begin_layout Plain Layout
8273 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8276 \begin_layout Plain Layout
8284 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8287 \begin_layout Plain Layout
8295 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8298 \begin_layout Plain Layout
8304 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8307 \begin_layout Plain Layout
8315 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8318 \begin_layout Plain Layout
8326 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8329 \begin_layout Plain Layout
8335 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8338 \begin_layout Plain Layout
8346 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8349 \begin_layout Plain Layout
8357 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8360 \begin_layout Plain Layout
8366 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8369 \begin_layout Plain Layout
8377 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8380 \begin_layout Plain Layout
8388 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8391 \begin_layout Plain Layout
8397 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8400 \begin_layout Plain Layout
8408 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8411 \begin_layout Plain Layout
8419 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8422 \begin_layout Plain Layout
8428 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8431 \begin_layout Plain Layout
8439 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8442 \begin_layout Plain Layout
8450 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8453 \begin_layout Plain Layout
8459 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8462 \begin_layout Plain Layout
8470 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8473 \begin_layout Plain Layout
8481 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8484 \begin_layout Plain Layout
8490 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8493 \begin_layout Plain Layout
8501 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8504 \begin_layout Plain Layout
8512 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8515 \begin_layout Plain Layout
8521 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8524 \begin_layout Plain Layout
8532 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8535 \begin_layout Plain Layout
8543 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8546 \begin_layout Plain Layout
8552 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8555 \begin_layout Plain Layout
8563 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8566 \begin_layout Plain Layout
8574 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8577 \begin_layout Plain Layout
8583 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8586 \begin_layout Plain Layout
8594 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8597 \begin_layout Plain Layout
8605 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8608 \begin_layout Plain Layout
8614 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8617 \begin_layout Plain Layout
8625 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8628 \begin_layout Plain Layout
8634 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8637 \begin_layout Plain Layout
8643 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8646 \begin_layout Plain Layout
8654 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8657 \begin_layout Plain Layout
8665 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8668 \begin_layout Plain Layout
8674 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8677 \begin_layout Plain Layout
8685 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8688 \begin_layout Plain Layout
8696 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8699 \begin_layout Plain Layout
8705 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8708 \begin_layout Plain Layout
8716 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8719 \begin_layout Plain Layout
8727 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8730 \begin_layout Plain Layout
8736 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8739 \begin_layout Plain Layout
8747 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8750 \begin_layout Plain Layout
8758 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8761 \begin_layout Plain Layout
8767 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8770 \begin_layout Plain Layout
8778 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8781 \begin_layout Plain Layout
8789 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8792 \begin_layout Plain Layout
8798 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8801 \begin_layout Plain Layout
8809 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8812 \begin_layout Plain Layout
8820 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8823 \begin_layout Plain Layout
8829 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8832 \begin_layout Plain Layout
8840 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8843 \begin_layout Plain Layout
8851 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8854 \begin_layout Plain Layout
8860 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8863 \begin_layout Plain Layout
8871 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8874 \begin_layout Plain Layout
8882 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8885 \begin_layout Plain Layout
8891 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8894 \begin_layout Plain Layout
8902 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8905 \begin_layout Plain Layout
8913 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8916 \begin_layout Plain Layout
8922 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8925 \begin_layout Plain Layout
8933 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8936 \begin_layout Plain Layout
8944 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8947 \begin_layout Plain Layout
8953 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8956 \begin_layout Plain Layout
8964 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8967 \begin_layout Plain Layout
8975 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8978 \begin_layout Plain Layout
8984 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8987 \begin_layout Plain Layout
8995 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8998 \begin_layout Plain Layout
9006 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9009 \begin_layout Plain Layout
9015 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9018 \begin_layout Plain Layout
9026 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9029 \begin_layout Plain Layout
9037 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9040 \begin_layout Plain Layout
9046 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9049 \begin_layout Plain Layout
9057 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9060 \begin_layout Plain Layout
9068 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9071 \begin_layout Plain Layout
9077 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9080 \begin_layout Plain Layout
9088 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9091 \begin_layout Plain Layout
9099 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9102 \begin_layout Plain Layout
9108 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9111 \begin_layout Plain Layout
9119 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9122 \begin_layout Plain Layout
9130 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9133 \begin_layout Plain Layout
9139 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9142 \begin_layout Plain Layout
9150 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9153 \begin_layout Plain Layout
9161 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9164 \begin_layout Plain Layout
9170 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9173 \begin_layout Plain Layout
9181 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9184 \begin_layout Plain Layout
9192 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9195 \begin_layout Plain Layout
9201 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9204 \begin_layout Plain Layout
9212 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9215 \begin_layout Plain Layout
9223 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9226 \begin_layout Plain Layout
9232 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9235 \begin_layout Plain Layout
9243 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9246 \begin_layout Plain Layout
9254 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9257 \begin_layout Plain Layout
9263 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9266 \begin_layout Plain Layout
9273 <row endlastfoot="true">
9274 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9277 \begin_layout Plain Layout
9283 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
9286 \begin_layout Plain Layout
9292 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9295 \begin_layout Plain Layout
9309 \begin_layout Section
9310 Special Longtable Issues
9311 \begin_inset CommandInset label
9313 name "sec:Special-Longtable-Issues"
9320 \begin_layout Subsection
9321 Longtable Calculation
9325 \begin_layout Plain Layout
9326 Longtables ! Calculation
9334 \begin_layout Standard
9335 LaTeX calculates the height of table pages and their page breaks using so
9337 Chunks are pieces of the tables that are at once in LaTeX's memory.
9338 The default value is historically set to only 20 table rows.
9339 If you are using longtables with many pages this may slow down the creation
9341 You can safely increase the chunk size to values of 100-1000 by adding
9342 this command line to your document preamble:
9345 \begin_layout Standard
9350 setcounter{LTchunksize}{100}
9353 \begin_layout Subsection
9354 Floats and Longtables
9358 \begin_layout Plain Layout
9367 \begin_layout Standard
9368 There might be problems when a float appears on the same page where a longtable
9370 To avoid such situation, add the command
9376 as TeX-Code before your longtable.
9379 \begin_layout Subsection
9384 \begin_layout Plain Layout
9385 Longtables ! Forced Page Breaks
9393 \begin_layout Standard
9394 By default tables are only broken between rows.
9395 If you have a cell with multiples lines and want to have a page break within
9396 the cell, insert the new line command
9397 \begin_inset Quotes eld
9409 \begin_inset Quotes erd
9412 as TeX-Code at this point of the cell where it should be broken.
9421 command you have to insert in TeX-Code so many
9422 \begin_inset Quotes eld
9430 \begin_inset Quotes erd
9433 characters like the number of the following table columns.
9438 is the character to separate table cells.
9439 Write in TeX-Code after each
9443 the content of the corresponding following cell and delete the content
9445 \begin_inset Newline newline
9456 command, insert so many
9460 characters like the number of table columns before the current column.
9462 \begin_inset space ~
9466 \begin_inset CommandInset ref
9468 reference "tab:ForcedPagebreak"
9472 the cell that should be broken is in the second column followed by another
9474 Therefore the following command was inserted in the cell as TeX-Code behind
9476 \begin_inset Quotes eld
9484 \begin_inset Quotes erd
9490 \begin_layout Standard
9498 \begin_inset Newline newline
9504 \begin_layout Standard
9506 \begin_inset Quotes eld
9510 \begin_inset Quotes erd
9513 in the third columns of the row was deleted.
9514 If your footer row of the longtable has for a certain reason no upper line
9515 but you would have a horizontal line where the cell is broken, use this
9519 \begin_layout Standard
9527 \begin_inset Newline newline
9535 \begin_layout Standard
9536 When the cell to be broken is in the last column, the command
9539 \begin_layout Standard
9549 \begin_layout Standard
9550 must be inserted as TeX-Code at the beginning of the cell.
9551 This assures that the part of the cell that will be displayed on the new
9552 page appears with the full width.
9555 \begin_layout Standard
9557 \begin_inset Tabular
9558 <lyxtabular version="3" rows="39" columns="3">
9559 <features islongtable="true">
9560 <column alignment="left" valignment="top" width="0cm">
9561 <column alignment="left" valignment="top" width="3cm">
9562 <column alignment="center" valignment="top" width="0pt">
9563 <row endfirsthead="true" caption="true">
9564 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9567 \begin_layout Plain Layout
9568 \begin_inset Caption
9570 \begin_layout Plain Layout
9571 Table with forced page break in table cell
9572 \begin_inset CommandInset label
9574 name "tab:ForcedPagebreak"
9582 \begin_layout Plain Layout
9583 Table with forced page break in table cell
9598 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9601 \begin_layout Plain Layout
9607 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9610 \begin_layout Plain Layout
9617 <row endfirsthead="true">
9618 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9621 \begin_layout Plain Layout
9624 Example Phone List (ignore the names)
9629 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9632 \begin_layout Plain Layout
9638 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9641 \begin_layout Plain Layout
9648 <row endfirsthead="true">
9649 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9652 \begin_layout Plain Layout
9660 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9663 \begin_layout Plain Layout
9669 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9672 \begin_layout Plain Layout
9681 <row endhead="true" caption="true">
9682 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9685 \begin_layout Plain Layout
9689 \begin_layout Plain Layout
9693 caption*{Continued table with forced page break in table cell}
9707 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9710 \begin_layout Plain Layout
9716 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9719 \begin_layout Plain Layout
9726 <row endhead="true">
9727 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9730 \begin_layout Plain Layout
9738 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9741 \begin_layout Plain Layout
9747 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9750 \begin_layout Plain Layout
9757 <row endhead="true">
9758 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9761 \begin_layout Plain Layout
9769 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9772 \begin_layout Plain Layout
9778 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9781 \begin_layout Plain Layout
9790 <row endfoot="true">
9791 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9794 \begin_layout Plain Layout
9795 continued on next page
9800 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9803 \begin_layout Plain Layout
9809 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9812 \begin_layout Plain Layout
9820 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9823 \begin_layout Plain Layout
9831 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9834 \begin_layout Plain Layout
9840 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9843 \begin_layout Plain Layout
9851 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9854 \begin_layout Plain Layout
9862 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9865 \begin_layout Plain Layout
9871 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9874 \begin_layout Plain Layout
9882 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9885 \begin_layout Plain Layout
9893 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9896 \begin_layout Plain Layout
9902 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9905 \begin_layout Plain Layout
9913 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9916 \begin_layout Plain Layout
9924 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9927 \begin_layout Plain Layout
9933 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9936 \begin_layout Plain Layout
9944 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9947 \begin_layout Plain Layout
9955 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9958 \begin_layout Plain Layout
9964 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9967 \begin_layout Plain Layout
9975 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9978 \begin_layout Plain Layout
9986 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9989 \begin_layout Plain Layout
9995 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9998 \begin_layout Plain Layout
10006 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10009 \begin_layout Plain Layout
10017 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10020 \begin_layout Plain Layout
10026 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10029 \begin_layout Plain Layout
10037 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10040 \begin_layout Plain Layout
10048 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10051 \begin_layout Plain Layout
10057 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10060 \begin_layout Plain Layout
10068 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10071 \begin_layout Plain Layout
10079 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10082 \begin_layout Plain Layout
10088 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10091 \begin_layout Plain Layout
10099 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10102 \begin_layout Plain Layout
10110 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10113 \begin_layout Plain Layout
10119 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10122 \begin_layout Plain Layout
10130 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10133 \begin_layout Plain Layout
10141 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10144 \begin_layout Plain Layout
10150 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10153 \begin_layout Plain Layout
10161 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10164 \begin_layout Plain Layout
10172 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10175 \begin_layout Plain Layout
10181 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10184 \begin_layout Plain Layout
10192 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10195 \begin_layout Plain Layout
10203 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10206 \begin_layout Plain Layout
10212 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10215 \begin_layout Plain Layout
10223 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10226 \begin_layout Plain Layout
10234 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10237 \begin_layout Plain Layout
10243 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10246 \begin_layout Plain Layout
10254 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10257 \begin_layout Plain Layout
10265 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10268 \begin_layout Plain Layout
10274 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10277 \begin_layout Plain Layout
10285 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10288 \begin_layout Plain Layout
10296 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10299 \begin_layout Plain Layout
10305 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10308 \begin_layout Plain Layout
10316 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10319 \begin_layout Plain Layout
10327 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10330 \begin_layout Plain Layout
10336 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10339 \begin_layout Plain Layout
10347 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10350 \begin_layout Plain Layout
10358 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10361 \begin_layout Plain Layout
10367 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10370 \begin_layout Plain Layout
10378 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10381 \begin_layout Plain Layout
10389 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10392 \begin_layout Plain Layout
10398 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10401 \begin_layout Plain Layout
10409 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10412 \begin_layout Plain Layout
10420 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10423 \begin_layout Plain Layout
10429 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10432 \begin_layout Plain Layout
10440 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10443 \begin_layout Plain Layout
10451 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10454 \begin_layout Plain Layout
10460 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10463 \begin_layout Plain Layout
10471 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10474 \begin_layout Plain Layout
10482 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10485 \begin_layout Plain Layout
10491 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10494 \begin_layout Plain Layout
10502 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10505 \begin_layout Plain Layout
10513 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10516 \begin_layout Plain Layout
10518 Fürst von Montecompatri, 11.
10519 Fürst von Sulmona und Vivaro, 10.
10520 Fürst von Rossano, 5.
10521 Herzog von Canemorte, 11.
10522 Herzog von Palombara, 5.
10523 Herzog von Castelchiodato,
10527 \begin_layout Plain Layout
10536 \begin_layout Plain Layout
10544 Herzog von Poggionativo, 11.
10545 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10546 Graf von Valinfreda, 11.
10547 Baron von Cropalati, 11.
10548 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10553 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10556 \begin_layout Plain Layout
10564 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10567 \begin_layout Plain Layout
10575 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10578 \begin_layout Plain Layout
10584 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10587 \begin_layout Plain Layout
10595 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10598 \begin_layout Plain Layout
10606 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10609 \begin_layout Plain Layout
10615 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10618 \begin_layout Plain Layout
10626 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10629 \begin_layout Plain Layout
10637 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10640 \begin_layout Plain Layout
10646 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10649 \begin_layout Plain Layout
10657 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10660 \begin_layout Plain Layout
10668 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10671 \begin_layout Plain Layout
10677 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10680 \begin_layout Plain Layout
10688 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10691 \begin_layout Plain Layout
10699 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10702 \begin_layout Plain Layout
10708 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10711 \begin_layout Plain Layout
10719 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10722 \begin_layout Plain Layout
10730 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10733 \begin_layout Plain Layout
10739 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10742 \begin_layout Plain Layout
10750 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10753 \begin_layout Plain Layout
10761 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10764 \begin_layout Plain Layout
10770 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10773 \begin_layout Plain Layout
10781 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10784 \begin_layout Plain Layout
10792 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10795 \begin_layout Plain Layout
10801 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10804 \begin_layout Plain Layout
10811 <row endlastfoot="true">
10812 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10815 \begin_layout Plain Layout
10821 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10824 \begin_layout Plain Layout
10830 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10833 \begin_layout Plain Layout
10847 \begin_layout Standard
10848 \begin_inset Newpage newpage
10854 \begin_layout Section
10855 Multiple Lines Columns and Rows
10858 \begin_layout Subsection
10859 Multiple Lines in Table Cells
10860 \begin_inset CommandInset label
10862 name "sub:Multiple-Lines-in"
10870 \begin_layout Plain Layout
10871 Multiple Lines in Table Cells
10880 \begin_layout Plain Layout
10889 \begin_layout Standard
10891 \begin_inset Float table
10897 \begin_layout Plain Layout
10898 \begin_inset Caption
10900 \begin_layout Plain Layout
10901 \begin_inset CommandInset label
10903 name "tab:Table-with-multiple"
10907 Table with multiple lines in cells
10915 \begin_layout Plain Layout
10917 \begin_inset Tabular
10918 <lyxtabular version="3" rows="3" columns="3">
10920 <column alignment="center" valignment="middle" width="2.5cm">
10921 <column alignment="center" valignment="middle" width="0">
10922 <column alignment="center" valignment="middle" width="0">
10924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10927 \begin_layout Plain Layout
10929 \begin_inset Newline linebreak
10937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10940 \begin_layout Plain Layout
10946 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10949 \begin_layout Plain Layout
10957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10960 \begin_layout Plain Layout
10966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10969 \begin_layout Plain Layout
10975 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10978 \begin_layout Plain Layout
10986 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10989 \begin_layout Plain Layout
10995 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10998 \begin_layout Plain Layout
11004 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11007 \begin_layout Plain Layout
11026 \begin_layout Standard
11027 Adjusting a fixed width for a column, enables to enter text as a paragraph
11028 with multiple lines and hyphenations.
11031 \begin_layout Standard
11033 \begin_inset space ~
11037 \begin_inset CommandInset ref
11039 reference "tab:Table-with-multiple"
11043 , create a 3×3 table, mark the first cell and right-click on it.
11044 In the appearing table dialog we set a cell width of 2.5
11045 \begin_inset space \thinspace{}
11048 cm and choose centered for the vertical and horizontal alignment.
11049 The vertical alignment is used for all cells of the row.
11050 As our text is smaller than than 2.5
11051 \begin_inset space \thinspace{}
11054 cm, only one line will appear.
11055 To get two lines, a justified line break (shortcut
11058 arg "newline-insert linebreak"
11062 If the text is wider than the set cell width, it will automatically be
11063 broken to several lines.
11066 \begin_layout Standard
11067 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11068 by LaTeX if it is the first entry.
11069 Therefore you need to insert something, to make the word not being the
11071 So add a horizontal space of 0
11072 \begin_inset space \thinspace{}
11075 pt before the word.
11076 As the space is zero, it doesn't change the output.
11078 \begin_inset space ~
11082 \begin_inset CommandInset ref
11084 reference "tab:Table-with-and"
11091 \begin_layout Standard
11092 \begin_inset Float table
11098 \begin_layout Plain Layout
11099 \begin_inset Caption
11101 \begin_layout Plain Layout
11102 \begin_inset CommandInset label
11104 name "tab:Table-with-and"
11108 Table with and without hyphenation
11116 \begin_layout Plain Layout
11117 \begin_inset space \hfill{}
11121 \begin_inset Tabular
11122 <lyxtabular version="3" rows="3" columns="3">
11124 <column alignment="center" valignment="middle" width="2.5cm">
11125 <column alignment="center" valignment="middle" width="0">
11126 <column alignment="center" valignment="middle" width="0">
11128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11131 \begin_layout Plain Layout
11132 verylongtablecellword
11137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11140 \begin_layout Plain Layout
11146 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11149 \begin_layout Plain Layout
11157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11160 \begin_layout Plain Layout
11166 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11169 \begin_layout Plain Layout
11175 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11178 \begin_layout Plain Layout
11186 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11189 \begin_layout Plain Layout
11195 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11198 \begin_layout Plain Layout
11204 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11207 \begin_layout Plain Layout
11219 \begin_inset space \hfill{}
11223 \begin_inset Tabular
11224 <lyxtabular version="3" rows="3" columns="3">
11226 <column alignment="center" valignment="middle" width="2.5cm">
11227 <column alignment="center" valignment="middle" width="0">
11228 <column alignment="center" valignment="middle" width="0">
11230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11233 \begin_layout Plain Layout
11234 \begin_inset space \hspace{}
11238 verylongtablecellword
11243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11246 \begin_layout Plain Layout
11252 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11255 \begin_layout Plain Layout
11263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11266 \begin_layout Plain Layout
11272 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11275 \begin_layout Plain Layout
11281 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11284 \begin_layout Plain Layout
11292 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11295 \begin_layout Plain Layout
11301 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11304 \begin_layout Plain Layout
11310 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11313 \begin_layout Plain Layout
11325 \begin_inset space \hfill{}
11336 \begin_layout Subsection
11338 \begin_inset CommandInset label
11340 name "sub:Multicolumns"
11348 \begin_layout Plain Layout
11358 \begin_layout Plain Layout
11359 Table ! Multicolumns
11367 \begin_layout Subsubsection
11371 \begin_layout Standard
11372 To span a cell over multiple columns, mark as much cells within a line that
11373 should be one spanned cell and use either the table-toolbar button
11374 \begin_inset Graphics
11375 filename ../images/tabular-feature_multicolumn.png
11377 scaleBeforeRotation
11383 Edit\SpecialChar \menuseparator
11384 Table\SpecialChar \menuseparator
11387 , or right click on the marked cells and choose multicolumn in the appearing
11388 table dialog under the tab
11395 \begin_layout Standard
11396 Multicolumns have there own cell settings.
11397 That means changing cell borders, cell alignment, and the width only affects
11399 Here is an example table with a multicolumn cell in the first row and one
11400 in the last row without the upper border:
11403 \begin_layout Standard
11405 \begin_inset Tabular
11406 <lyxtabular version="3" rows="3" columns="4">
11407 <features firstHeadTopDL="true" firstHeadBottomDL="true">
11408 <column alignment="center" valignment="top" width="0pt">
11409 <column alignment="center" valignment="middle" width="0">
11410 <column alignment="center" valignment="top" width="0in">
11411 <column alignment="center" valignment="top" width="0pt">
11413 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11416 \begin_layout Plain Layout
11422 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11425 \begin_layout Plain Layout
11431 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11434 \begin_layout Plain Layout
11440 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11443 \begin_layout Plain Layout
11451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11454 \begin_layout Plain Layout
11469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11472 \begin_layout Plain Layout
11478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11481 \begin_layout Plain Layout
11487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11490 \begin_layout Plain Layout
11498 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11501 \begin_layout Plain Layout
11507 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11510 \begin_layout Plain Layout
11516 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11519 \begin_layout Plain Layout
11525 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11528 \begin_layout Plain Layout
11542 \begin_layout Subsubsection
11543 Multicolumn Calculations
11544 \begin_inset CommandInset label
11546 name "sub:Multicolumn-Calculations"
11554 \begin_layout Plain Layout
11555 Multicolumns ! Calculations
11563 \begin_layout Standard
11564 LyX supports multicolumns directly, but we have to take notice of the cell
11565 width of the columns spanned by the multicolumn cell.
11568 \begin_layout Standard
11569 \begin_inset Float table
11575 \begin_layout Plain Layout
11576 \begin_inset Caption
11578 \begin_layout Plain Layout
11579 \begin_inset CommandInset label
11581 name "tab:Table-with-centered"
11585 Table with centered multicolumn text above two columns that have exactly
11586 half the width of the multicolumn cell
11587 \begin_inset OptArg
11590 \begin_layout Plain Layout
11591 Perfect multicolumn table
11604 \begin_layout Plain Layout
11606 \begin_inset Tabular
11607 <lyxtabular version="3" rows="3" columns="3">
11609 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11610 <column alignment="center" valignment="middle" width="0">
11611 <column alignment="center" valignment="top" width="0">
11613 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11616 \begin_layout Plain Layout
11617 multiple lines multicolumn
11622 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11625 \begin_layout Plain Layout
11631 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11634 \begin_layout Plain Layout
11642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11645 \begin_layout Plain Layout
11651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11654 \begin_layout Plain Layout
11660 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11663 \begin_layout Plain Layout
11671 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11674 \begin_layout Plain Layout
11680 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11683 \begin_layout Plain Layout
11689 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11692 \begin_layout Plain Layout
11711 \begin_layout Standard
11712 To create for example Table
11713 \begin_inset space ~
11717 \begin_inset CommandInset ref
11719 reference "tab:Table-with-centered"
11723 , mark the first two cells in the first row of a 3×3 table and right-click
11725 Now choose for this cell
11734 \begin_inset space \thinspace{}
11737 cm in the table dialog.
11738 The spanned columns should have exactly half the width of the multicolumn
11739 cell, so that you would adjust a width of 1.25
11740 \begin_inset space \thinspace{}
11743 cm for the first column.
11744 The second column has then automatically a width of 1.25
11745 \begin_inset space \thinspace{}
11748 cm (multicolumn width - width of first column).
11749 This was done for Table
11750 \begin_inset space ~
11754 \begin_inset CommandInset ref
11756 reference "tab:Table-without-half"
11763 \begin_layout Standard
11764 \begin_inset Float table
11769 \begin_layout Plain Layout
11770 \begin_inset Caption
11772 \begin_layout Plain Layout
11773 \begin_inset CommandInset label
11775 name "tab:Table-without-half"
11779 Table where the spanned table columns have not exactly half the width of
11780 the multicolumn cell
11781 \begin_inset OptArg
11784 \begin_layout Plain Layout
11785 Imperfect multicolumn table
11798 \begin_layout Plain Layout
11800 \begin_inset Tabular
11801 <lyxtabular version="3" rows="3" columns="3">
11803 <column alignment="center" valignment="top" width="1.25cm">
11804 <column alignment="center" valignment="top" width="0">
11805 <column alignment="center" valignment="top" width="0">
11807 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11810 \begin_layout Plain Layout
11811 multiple lines multicolumn
11816 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11819 \begin_layout Plain Layout
11825 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11828 \begin_layout Plain Layout
11836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11839 \begin_layout Plain Layout
11845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11848 \begin_layout Plain Layout
11854 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11857 \begin_layout Plain Layout
11865 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11868 \begin_layout Plain Layout
11874 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11877 \begin_layout Plain Layout
11883 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11886 \begin_layout Plain Layout
11905 \begin_layout Standard
11906 You can see that the first column has not the half width of the multicolumn
11907 cell, it is a bit bigger.
11908 The reason is that the given width of a cell
11909 \begin_inset Formula $W_{g}$
11912 is not its total width
11913 \begin_inset Formula $W_{\mathrm{tot}}$
11916 because a cell is always a bit larger than its given width.
11918 \begin_inset space ~
11922 \begin_inset CommandInset ref
11924 reference "cha:Explanation-of-Equation"
11928 explains it in detail.
11931 \begin_layout Standard
11932 The needed given width
11933 \begin_inset Formula $W_{g\, n}$
11940 columns are spanned can be calculated, so that each column has a total
11942 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11946 \begin_inset Formula \begin{equation}
11947 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11954 \begin_layout Standard
11955 In our case we have
11956 \begin_inset Formula $n=2$
11960 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11963 cm and the default values for the lengths, so that equation
11964 \begin_inset CommandInset ref
11971 \begin_inset Formula \begin{equation}
11972 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11979 \begin_layout Standard
11980 To enable calculations in LaTeX, the LaTeX-package
11984 must be loaded with the document preamble line
11988 \begin_layout Plain Layout
11989 LaTeX-packages ! calc
11997 \begin_layout Standard
12005 \begin_layout Standard
12006 LyX does not allow to calculate lengths in the width-field of the table
12008 Therefore you have to format the column by inserting a LaTeX-argument in
12010 Here is an overview about the arguments:
12013 \begin_layout Itemize
12018 creates cell with a fixed width, its text is vertically top-aligned
12021 \begin_layout Itemize
12026 creates cell with a fixed width, its text is vertically centered
12029 \begin_layout Itemize
12034 creates cell with a fixed width, its text is vertically bottom-aligned
12037 \begin_layout Standard
12038 By entering a LaTeX-argument, all cell settings set in the table dialog
12042 \begin_layout Standard
12043 \begin_inset Note Greyedout
12046 \begin_layout Plain Layout
12051 Due to a bug, LyX shows the overwritten settings anyway.
12059 \begin_layout Standard
12060 As the text should be horizontally centered, the command
12067 You can now enter the following LaTeX-argument for the first spanned column:
12070 \begin_layout Standard
12075 centering}m{1.25cm-6.2pt}
12078 \begin_layout Standard
12083 means, that the commands inside the braces are applied before the cell
12087 \begin_layout Standard
12088 Although we have chosen centered alignment for the text of the multicolumn
12089 cell, it is still left aligned.
12090 This is because LyX only applies the alignment to single columns.
12091 So we have to use for the multicolumn the LaTeX-argument
12094 \begin_layout Standard
12102 \begin_layout Subsection
12107 \begin_layout Plain Layout
12117 \begin_layout Plain Layout
12126 \begin_layout Standard
12127 In contrary to multicolumns multirows are not yet supported by LyX so a
12128 bit of TeX-Code needs to be used.
12129 To use multirows load the LaTeX-package
12137 \begin_layout Plain Layout
12138 LaTeX-packages ! multirow
12143 in your document preamble with the command
12146 \begin_layout Standard
12151 usepackage{multirow}
12154 \begin_layout Standard
12155 Multirows are created with the command
12158 \begin_layout Standard
12163 multirow{number of rows}{cell width}{cell entry}
12166 \begin_layout Standard
12167 To create the following table:
12170 \begin_layout Standard
12175 \begin_layout Plain Layout
12189 \begin_inset Tabular
12190 <lyxtabular version="3" rows="3" columns="3">
12192 <column alignment="center" valignment="top" width="0">
12193 <column alignment="center" valignment="top" width="0">
12194 <column alignment="center" valignment="top" width="0">
12196 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12199 \begin_layout Plain Layout
12205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12208 \begin_layout Plain Layout
12214 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12217 \begin_layout Plain Layout
12225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12228 \begin_layout Plain Layout
12232 \begin_layout Plain Layout
12236 multirow{2}{2.5cm}{
12245 \begin_layout Plain Layout
12257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12260 \begin_layout Plain Layout
12266 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12269 \begin_layout Plain Layout
12277 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12280 \begin_layout Plain Layout
12286 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12289 \begin_layout Plain Layout
12295 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12298 \begin_layout Plain Layout
12313 \begin_layout Plain Layout
12329 \begin_layout Standard
12330 create a 3×3 table.
12331 To get rid of the line above the last cell in the first column, the cell
12332 is marked as multicolumn and the upper border is unset.
12333 The multirow is now created in the second row of the first column by inserting
12337 \begin_layout Standard
12342 multirow{2}{2.5cm}{
12345 \begin_layout Standard
12347 According to the command parameters the multirow spans now two rows and
12349 \begin_inset space \thinspace{}
12353 The content of the multirow cell follows outside the TeX-Code box and the
12354 command is finished with a right brace
12358 in another TeX-Code-box behind the text.
12361 \begin_layout Standard
12368 left-aligns its content by default.
12369 To override the default, renew the command
12378 \begin_layout Standard
12390 \begin_layout Standard
12391 in TeX-Code in the document preamble.
12392 Then all entries of multirow cells in the document are centered.
12393 If centering is only needed for several tables, you can renew the command
12394 in an TeX-Code box just before the table instead of the preamble.
12395 If the text should be right-aligned, replace
12408 To return to left-alignment
12417 \begin_layout Section
12419 \begin_inset CommandInset label
12421 name "sec:Formal-Tables"
12429 \begin_layout Plain Layout
12438 \begin_layout Standard
12439 Tables are often typeset in books similar to Table
12440 \begin_inset space ~
12444 \begin_inset CommandInset ref
12446 reference "tab:Example-booktabs-table"
12451 This kind of tables is called
12452 \begin_inset Quotes eld
12460 \begin_inset Quotes erd
12464 To make a table a formal table use the option
12472 tab of the table dialog.
12475 \begin_layout Standard
12476 \begin_inset Float table
12482 \begin_layout Plain Layout
12483 \begin_inset Caption
12485 \begin_layout Plain Layout
12486 \begin_inset CommandInset label
12488 name "tab:Example-booktabs-table"
12492 Example booktabs-table
12500 \begin_layout Plain Layout
12502 \begin_inset Tabular
12503 <lyxtabular version="3" rows="8" columns="4">
12504 <features booktabs="true">
12505 <column alignment="center" valignment="top" width="0">
12506 <column alignment="center" valignment="top" width="0">
12507 <column alignment="center" valignment="top" width="0">
12508 <column alignment="center" valignment="top" width="0">
12510 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12513 \begin_layout Plain Layout
12519 <cell alignment="center" valignment="top" topline="true" usebox="none">
12522 \begin_layout Plain Layout
12524 \begin_inset space \thinspace{}
12532 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
12535 \begin_layout Plain Layout
12537 \begin_inset space \thinspace{}
12545 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12548 \begin_layout Plain Layout
12556 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12559 \begin_layout Plain Layout
12563 \begin_layout Plain Layout
12576 \begin_layout Plain Layout
12585 Detector thickness [µm]
12590 <cell alignment="center" valignment="top" usebox="none">
12593 \begin_layout Plain Layout
12599 <cell alignment="center" valignment="top" usebox="none">
12602 \begin_layout Plain Layout
12608 <cell alignment="center" valignment="top" usebox="none">
12611 \begin_layout Plain Layout
12619 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12622 \begin_layout Plain Layout
12628 <cell alignment="center" valignment="top" topline="true" usebox="none">
12631 \begin_layout Plain Layout
12637 <cell alignment="center" valignment="top" topline="true" usebox="none">
12640 \begin_layout Plain Layout
12646 <cell alignment="center" valignment="top" topline="true" usebox="none">
12649 \begin_layout Plain Layout
12656 <row topspace="default">
12657 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12660 \begin_layout Plain Layout
12661 Spatial resolution [µm]
12666 <cell alignment="center" valignment="top" usebox="none">
12669 \begin_layout Plain Layout
12675 <cell alignment="center" valignment="top" usebox="none">
12678 \begin_layout Plain Layout
12684 <cell alignment="center" valignment="top" usebox="none">
12687 \begin_layout Plain Layout
12694 <row topspace="default">
12695 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12698 \begin_layout Plain Layout
12700 \begin_inset Formula $f_{\mathrm{max}}$
12708 <cell alignment="center" valignment="top" usebox="none">
12711 \begin_layout Plain Layout
12717 <cell alignment="center" valignment="top" usebox="none">
12720 \begin_layout Plain Layout
12726 <cell alignment="center" valignment="top" usebox="none">
12729 \begin_layout Plain Layout
12736 <row topspace="default">
12737 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12740 \begin_layout Plain Layout
12744 \begin_layout Plain Layout
12748 cmidrule(l{10pt}){1-1}
12753 LSF-spatial resolution
12758 <cell alignment="center" valignment="top" usebox="none">
12761 \begin_layout Plain Layout
12767 <cell alignment="center" valignment="top" usebox="none">
12770 \begin_layout Plain Layout
12776 <cell alignment="center" valignment="top" usebox="none">
12779 \begin_layout Plain Layout
12787 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12790 \begin_layout Plain Layout
12796 <cell alignment="center" valignment="top" usebox="none">
12799 \begin_layout Plain Layout
12805 <cell alignment="center" valignment="top" usebox="none">
12808 \begin_layout Plain Layout
12814 <cell alignment="center" valignment="top" usebox="none">
12817 \begin_layout Plain Layout
12825 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12828 \begin_layout Plain Layout
12834 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12837 \begin_layout Plain Layout
12843 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12846 \begin_layout Plain Layout
12852 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12855 \begin_layout Plain Layout
12874 \begin_layout Standard
12875 Spaces to table rows can be added using the
12879 tab of the table dialog as described in section
12880 \begin_inset space ~
12884 \begin_inset CommandInset ref
12886 reference "sub:Row-Spacing"
12893 \begin_layout Standard
12894 In contrary to normal tables, formal tables have no vertical table lines.
12895 The horizontal table lines can be set like for normal tables but they appear
12896 with different width in the output:
12897 \begin_inset Newline newline
12900 The first and the last table line have a default width of 0.08
12901 \begin_inset space \thinspace{}
12904 em while the other lines have a default width of 0.05
12905 \begin_inset space \thinspace{}
12911 \begin_layout Standard
12912 The default widths can be changed with the following preamble lines
12915 \begin_layout Standard
12925 \begin_inset Newline newline
12937 \begin_layout Standard
12938 This example is for the first line, the so called
12943 If you want to change the width for the last line, replace
12952 To change the width for the other lines replace
12961 You can use all units listed in appendix
12962 \begin_inset space ~
12966 \begin_inset CommandInset ref
12968 reference "cha:Units-available-in"
12975 \begin_layout Standard
12976 Lines that don't span over all table columns can be created by setting a
12977 table line for multicolumn cells.
12978 LyX will then internally use the command
12984 to create this line.
12988 \begin_layout Standard
12993 cmidrule[width](trim){startcol-endcol}
12996 \begin_layout Standard
13003 are are currently not supported by LyX so you have to use TeX-Code to be
13011 s can manually be created by inserting the command as TeX-Code as first
13012 cell entry of the first cell of a row.
13013 The line is then drawn in the output above the current row.
13016 \begin_layout Standard
13017 The default for the width is 0.03
13018 \begin_inset space \thinspace{}
13022 Startcol is the number of the column where the line starts and endcol the
13023 column number where the line ends.
13024 The endcol always needs to be specified, also when the line should span
13026 The optional parameter trim could be either
13034 where the trimwidth is also optional.
13035 Using for example the parameter
13039 means that the line is trimmed from its left end by 2
13040 \begin_inset space \thinspace{}
13044 If you don't specify the trimwidth the lines are trimmed by the default
13046 \begin_inset space \thinspace{}
13052 \begin_layout Standard
13053 \begin_inset VSpace bigskip
13057 \begin_inset space ~
13061 \begin_inset CommandInset ref
13063 reference "tab:Example-booktabs-table"
13067 was created using the commands
13070 \begin_layout Standard
13080 \begin_layout Standard
13081 at the beginning of the in the second row and
13084 \begin_layout Standard
13089 cmidrule(l{10pt}){1-1}
13092 \begin_layout Standard
13096 \begin_layout Standard
13097 \begin_inset VSpace bigskip
13103 \begin_layout Standard
13104 You might want to have overlapping
13111 \begin_inset space ~
13115 \begin_inset CommandInset ref
13117 reference "tab:Special-booktabs-table"
13122 This can be achieved with the TeX-Code command
13125 \begin_layout Standard
13133 \begin_layout Standard
13134 The command that was used for the second row of Table
13135 \begin_inset space ~
13139 \begin_inset CommandInset ref
13141 reference "tab:Special-booktabs-table"
13148 \begin_layout Standard
13162 \begin_layout Standard
13163 The command for the sixth row is
13166 \begin_layout Standard
13178 \begin_layout Standard
13179 \begin_inset VSpace bigskip
13185 \begin_layout Standard
13186 If you are anyway not satisfied with the border line spacing, you can use
13187 the following command to produce lines that span over all table columns
13192 \begin_layout Standard
13197 specialrule{width}{space above}{space below}
13200 \begin_layout Standard
13201 For more informations about these specialties, we refer to the manual of
13207 \begin_inset CommandInset citation
13217 \begin_layout Plain Layout
13218 LaTeX-packages ! booktabs
13226 \begin_layout Standard
13227 \begin_inset Float table
13233 \begin_layout Plain Layout
13234 \begin_inset Caption
13236 \begin_layout Plain Layout
13237 \begin_inset CommandInset label
13239 name "tab:Special-booktabs-table"
13243 Special booktabs-table
13251 \begin_layout Plain Layout
13253 \begin_inset Tabular
13254 <lyxtabular version="3" rows="8" columns="4">
13255 <features booktabs="true">
13256 <column alignment="center" valignment="top" width="0">
13257 <column alignment="center" valignment="top" width="0">
13258 <column alignment="center" valignment="top" width="0">
13259 <column alignment="center" valignment="top" width="0">
13261 <cell alignment="center" valignment="top" topline="true" usebox="none">
13264 \begin_layout Plain Layout
13270 <cell alignment="center" valignment="top" topline="true" usebox="none">
13273 \begin_layout Plain Layout
13275 \begin_inset space \thinspace{}
13283 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
13286 \begin_layout Plain Layout
13288 \begin_inset space \thinspace{}
13296 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13299 \begin_layout Plain Layout
13307 <cell alignment="center" valignment="top" usebox="none">
13310 \begin_layout Plain Layout
13314 \begin_layout Plain Layout
13327 \begin_layout Plain Layout
13340 \begin_layout Plain Layout
13353 \begin_layout Plain Layout
13362 Detector thickness [µm]
13367 <cell alignment="center" valignment="top" usebox="none">
13370 \begin_layout Plain Layout
13376 <cell alignment="center" valignment="top" usebox="none">
13379 \begin_layout Plain Layout
13385 <cell alignment="center" valignment="top" usebox="none">
13388 \begin_layout Plain Layout
13396 <cell alignment="center" valignment="top" topline="true" usebox="none">
13399 \begin_layout Plain Layout
13405 <cell alignment="center" valignment="top" topline="true" usebox="none">
13408 \begin_layout Plain Layout
13414 <cell alignment="center" valignment="top" topline="true" usebox="none">
13417 \begin_layout Plain Layout
13423 <cell alignment="center" valignment="top" topline="true" usebox="none">
13426 \begin_layout Plain Layout
13433 <row topspace="default">
13434 <cell alignment="center" valignment="top" usebox="none">
13437 \begin_layout Plain Layout
13438 Spatial resolution [µm]
13443 <cell alignment="center" valignment="top" usebox="none">
13446 \begin_layout Plain Layout
13452 <cell alignment="center" valignment="top" usebox="none">
13455 \begin_layout Plain Layout
13461 <cell alignment="center" valignment="top" usebox="none">
13464 \begin_layout Plain Layout
13471 <row topspace="default">
13472 <cell alignment="center" valignment="top" usebox="none">
13475 \begin_layout Plain Layout
13477 \begin_inset Formula $f_{\mathrm{max}}$
13485 <cell alignment="center" valignment="top" usebox="none">
13488 \begin_layout Plain Layout
13494 <cell alignment="center" valignment="top" usebox="none">
13497 \begin_layout Plain Layout
13503 <cell alignment="center" valignment="top" usebox="none">
13506 \begin_layout Plain Layout
13514 <cell alignment="center" valignment="top" topline="true" usebox="none">
13517 \begin_layout Plain Layout
13521 \begin_layout Plain Layout
13534 \begin_layout Plain Layout
13543 LSF-spatial resolution
13548 <cell alignment="center" valignment="top" topline="true" usebox="none">
13551 \begin_layout Plain Layout
13557 <cell alignment="center" valignment="top" topline="true" usebox="none">
13560 \begin_layout Plain Layout
13566 <cell alignment="center" valignment="top" topline="true" usebox="none">
13569 \begin_layout Plain Layout
13577 <cell alignment="center" valignment="top" usebox="none">
13580 \begin_layout Plain Layout
13586 <cell alignment="center" valignment="top" usebox="none">
13589 \begin_layout Plain Layout
13595 <cell alignment="center" valignment="top" usebox="none">
13598 \begin_layout Plain Layout
13604 <cell alignment="center" valignment="top" usebox="none">
13607 \begin_layout Plain Layout
13615 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13618 \begin_layout Plain Layout
13624 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13627 \begin_layout Plain Layout
13633 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13636 \begin_layout Plain Layout
13642 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13645 \begin_layout Plain Layout
13664 \begin_layout Section
13665 Vertical Table Alignment
13669 \begin_layout Plain Layout
13678 \begin_layout Standard
13679 To align tables vertically in a text line the table must be inside a box.
13680 The box can then be vertically aligned as described in section
13681 \begin_inset space ~
13685 \begin_inset CommandInset ref
13687 reference "sec:Box-Dialog"
13694 \begin_layout Standard
13695 In the following example the tables are inside a minipage
13699 \begin_layout Plain Layout
13700 Minipages are described in section
13701 \begin_inset space ~
13705 \begin_inset CommandInset ref
13707 reference "sec:Minipages"
13716 box that has a width of 15
13717 \begin_inset space \thinspace{}
13723 \begin_layout Itemize
13725 \begin_inset Box Frameless
13734 height_special "totalheight"
13737 \begin_layout Plain Layout
13738 \begin_inset Tabular
13739 <lyxtabular version="3" rows="3" columns="3">
13741 <column alignment="center" valignment="top" width="0">
13742 <column alignment="center" valignment="top" width="0">
13743 <column alignment="center" valignment="top" width="0">
13745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13748 \begin_layout Plain Layout
13754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13757 \begin_layout Plain Layout
13763 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13766 \begin_layout Plain Layout
13774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13777 \begin_layout Plain Layout
13783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13786 \begin_layout Plain Layout
13792 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13795 \begin_layout Plain Layout
13803 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13806 \begin_layout Plain Layout
13812 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13815 \begin_layout Plain Layout
13821 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13824 \begin_layout Plain Layout
13844 \begin_layout Plain Layout
13856 \begin_inset Box Frameless
13865 height_special "totalheight"
13868 \begin_layout Plain Layout
13869 \begin_inset Tabular
13870 <lyxtabular version="3" rows="3" columns="3">
13872 <column alignment="center" valignment="top" width="0">
13873 <column alignment="center" valignment="top" width="0">
13874 <column alignment="center" valignment="top" width="0">
13876 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13879 \begin_layout Plain Layout
13885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13888 \begin_layout Plain Layout
13894 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13897 \begin_layout Plain Layout
13905 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13908 \begin_layout Plain Layout
13914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13917 \begin_layout Plain Layout
13923 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13926 \begin_layout Plain Layout
13934 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13937 \begin_layout Plain Layout
13943 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13946 \begin_layout Plain Layout
13952 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13955 \begin_layout Plain Layout
13975 \begin_layout Plain Layout
13985 \begin_layout Itemize
13987 \begin_inset Box Frameless
13996 height_special "totalheight"
13999 \begin_layout Plain Layout
14000 \begin_inset Tabular
14001 <lyxtabular version="3" rows="3" columns="3">
14003 <column alignment="center" valignment="top" width="0">
14004 <column alignment="center" valignment="top" width="0">
14005 <column alignment="center" valignment="top" width="0">
14007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14010 \begin_layout Plain Layout
14016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14019 \begin_layout Plain Layout
14025 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14028 \begin_layout Plain Layout
14036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14039 \begin_layout Plain Layout
14045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14048 \begin_layout Plain Layout
14054 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14057 \begin_layout Plain Layout
14065 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14068 \begin_layout Plain Layout
14074 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14077 \begin_layout Plain Layout
14083 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14086 \begin_layout Plain Layout
14105 \begin_layout Itemize
14107 \begin_inset Box Frameless
14116 height_special "totalheight"
14119 \begin_layout Plain Layout
14120 \begin_inset Tabular
14121 <lyxtabular version="3" rows="3" columns="3">
14123 <column alignment="center" valignment="top" width="0">
14124 <column alignment="center" valignment="top" width="0">
14125 <column alignment="center" valignment="top" width="0">
14127 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14130 \begin_layout Plain Layout
14136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14139 \begin_layout Plain Layout
14145 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14148 \begin_layout Plain Layout
14156 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14159 \begin_layout Plain Layout
14165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14168 \begin_layout Plain Layout
14174 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14177 \begin_layout Plain Layout
14185 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14188 \begin_layout Plain Layout
14194 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14197 \begin_layout Plain Layout
14203 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14206 \begin_layout Plain Layout
14226 \begin_layout Plain Layout
14238 \begin_inset Box Frameless
14247 height_special "totalheight"
14250 \begin_layout Plain Layout
14251 \begin_inset Tabular
14252 <lyxtabular version="3" rows="3" columns="3">
14254 <column alignment="center" valignment="top" width="0">
14255 <column alignment="center" valignment="top" width="0">
14256 <column alignment="center" valignment="top" width="0">
14258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14261 \begin_layout Plain Layout
14267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14270 \begin_layout Plain Layout
14276 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14279 \begin_layout Plain Layout
14287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14290 \begin_layout Plain Layout
14296 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14299 \begin_layout Plain Layout
14305 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14308 \begin_layout Plain Layout
14316 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14319 \begin_layout Plain Layout
14325 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14328 \begin_layout Plain Layout
14334 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14337 \begin_layout Plain Layout
14357 \begin_layout Plain Layout
14367 \begin_layout Standard
14368 As you can see, the content of the first and last table row is not correctly
14369 aligned with the text line where the table is in.
14370 To get this alignment, the minipage box must be set into a raisebox
14374 \begin_layout Plain Layout
14375 Raiseboxes are described in section
14376 \begin_inset space ~
14380 \begin_inset CommandInset ref
14382 reference "sub:Vertical-Alignment"
14392 In the example above the second table in the first item is aligned using
14393 the TeX-Code-command
14396 \begin_layout Standard
14406 \begin_layout Standard
14408 Behind the box the closing brace
14412 is inserted as TeX-Code.
14413 For the second table in the last item the command
14416 \begin_layout Standard
14426 \begin_layout Standard
14430 \begin_layout Standard
14431 \begin_inset Note Greyedout
14434 \begin_layout Plain Layout
14439 The alignment of the table row content to the surrounding text line is
14441 The needed factor of the
14447 command for this alignment depends on the document font, the font size,
14448 and the table line thickness.
14456 \begin_layout Section
14458 \begin_inset CommandInset label
14460 name "sec:Colored-Tables"
14468 \begin_layout Plain Layout
14477 \begin_layout Subsection
14482 \begin_layout Plain Layout
14483 Table Color ! for Cells
14492 \begin_layout Plain Layout
14493 Color ! for Table Cells
14501 \begin_layout Standard
14502 \begin_inset Float table
14508 \begin_layout Plain Layout
14509 \begin_inset Caption
14511 \begin_layout Plain Layout
14512 \begin_inset CommandInset label
14514 name "tab:Table-colored-without"
14518 Table colored without using the package
14523 \begin_inset OptArg
14526 \begin_layout Plain Layout
14527 Table without colortbl
14540 \begin_layout Plain Layout
14542 \begin_inset Tabular
14543 <lyxtabular version="3" rows="3" columns="3">
14545 <column alignment="center" valignment="top" width="0">
14546 <column alignment="center" valignment="top" width="0">
14547 <column alignment="center" valignment="top" width="0">
14549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14552 \begin_layout Plain Layout
14560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14563 \begin_layout Plain Layout
14571 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14574 \begin_layout Plain Layout
14584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14587 \begin_layout Plain Layout
14595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14598 \begin_layout Plain Layout
14606 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14609 \begin_layout Plain Layout
14619 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14622 \begin_layout Plain Layout
14630 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14633 \begin_layout Plain Layout
14641 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14644 \begin_layout Plain Layout
14665 \begin_layout Standard
14666 If you only need colored text, mark the cells and choose a color in the
14669 Edit\SpecialChar \menuseparator
14671 \begin_inset space ~
14677 This was used to create Table
14678 \begin_inset space ~
14682 \begin_inset CommandInset ref
14684 reference "tab:Table-colored-without"
14689 In any other case you have to use the LaTeX-package
14697 \begin_layout Plain Layout
14698 LaTeX-packages ! colortbl
14706 \begin_layout Standard
14710 \begin_layout Plain Layout
14720 \begin_inset Note Note
14723 \begin_layout Plain Layout
14724 The following section part will only be displayed when the LaTeX-package
14737 \begin_layout Standard
14738 To create colored tables,
14742 must be loaded in the preamble with the line
14745 \begin_layout Standard
14750 usepackage{colortbl}
14753 \begin_layout Standard
14754 The color of a column is adjusted with the command
14757 \begin_layout Standard
14762 columncolor{name of color}
14765 \begin_layout Standard
14771 More about the command
14775 is described in section
14776 \begin_inset space ~
14780 \begin_inset CommandInset ref
14782 reference "sub:Multicolumn-Calculations"
14789 \begin_layout Standard
14790 The following color names are predefined:
14793 \begin_layout Standard
14827 \begin_layout Standard
14828 \begin_inset VSpace medskip
14834 \begin_layout Standard
14835 You can also define your own color with the command
14838 \begin_layout Standard
14843 definecolor{color name}{color model}{color values}
14846 \begin_layout Standard
14847 The color model can be
14850 \begin_layout Labeling
14851 \labelwidthstring 00.00.0000
14852 cmyk: cyan, magenta, yellow, black
14855 \begin_layout Labeling
14856 \labelwidthstring 00.00.0000
14857 rgb: red, green blue
14860 \begin_layout Labeling
14861 \labelwidthstring 00.00.0000
14865 \begin_layout Standard
14866 and the color values are comma separated numbers between 0 and 1 describing
14867 the factor for the corresponding color of the color model.
14870 \begin_layout Standard
14872 \begin_inset space \space{}
14879 " in the preamble with
14882 \begin_layout Standard
14887 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14890 \begin_layout Standard
14898 \begin_layout Standard
14903 definecolor{lightgray}{gray}{0.8}
14906 \begin_layout Standard
14907 \begin_inset VSpace medskip
14913 \begin_layout Standard
14914 Lines are colored with the command
14917 \begin_layout Standard
14922 rowcolor{name of color}
14925 \begin_layout Standard
14926 and cells are colored with the command
14929 \begin_layout Standard
14934 cellcolor{name of color}
14937 \begin_layout Standard
14938 Both commands are inserted at the beginning of a cell as TeX-Code.
14941 \begin_layout Standard
14942 To color characters in the table, mark the cells and use the LyX menu
14944 Edit\SpecialChar \menuseparator
14946 \begin_inset space ~
14952 If a cell contains TeX-Code mark only the characters, otherwise the colored
14953 TeX-Code will cause LaTeX-errors.
14956 \begin_layout Standard
14957 \begin_inset Note Greyedout
14960 \begin_layout Plain Layout
14965 Not all DVI-viewers are able to display self-defined colors.
14973 \begin_layout Standard
14974 \begin_inset VSpace bigskip
14980 \begin_layout Standard
14982 \begin_inset space ~
14986 \begin_inset CommandInset ref
14988 reference "tab:Table-colored-using"
14992 do the following: The color of the first column should be
15000 \begin_layout Standard
15005 columncolor{darkgreen}
15010 \begin_layout Standard
15011 as LaTeX-argument for this column.
15012 The first row should be blue, therefore the TeX-Code command
15015 \begin_layout Standard
15023 \begin_layout Standard
15024 is inserted to the first cell of this row.
15025 Note that this overwrites the column color for the first cell.
15026 The last cell of the last row is colored magenta by inserting the TeX-Code
15030 \begin_layout Standard
15038 \begin_layout Standard
15039 The characters could now be colored using the menu
15041 Edit\SpecialChar \menuseparator
15043 \begin_inset space ~
15051 \begin_layout Standard
15052 \begin_inset Float table
15058 \begin_layout Plain Layout
15059 \begin_inset Caption
15061 \begin_layout Plain Layout
15062 \begin_inset CommandInset label
15064 name "tab:Table-colored-using"
15068 Table colored using the package
15073 \begin_inset OptArg
15076 \begin_layout Plain Layout
15077 Table with colortbl
15090 \begin_layout Plain Layout
15092 \begin_inset Tabular
15093 <lyxtabular version="3" rows="3" columns="3">
15095 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15096 <column alignment="center" valignment="top" width="0">
15097 <column alignment="center" valignment="top" width="0">
15099 <cell alignment="center" valignment="top" usebox="none">
15102 \begin_layout Plain Layout
15106 \begin_layout Plain Layout
15122 <cell alignment="center" valignment="top" usebox="none">
15125 \begin_layout Plain Layout
15133 <cell alignment="center" valignment="top" usebox="none">
15136 \begin_layout Plain Layout
15146 <cell alignment="center" valignment="top" usebox="none">
15149 \begin_layout Plain Layout
15157 <cell alignment="center" valignment="top" usebox="none">
15160 \begin_layout Plain Layout
15168 <cell alignment="center" valignment="top" usebox="none">
15171 \begin_layout Plain Layout
15181 <cell alignment="center" valignment="top" usebox="none">
15184 \begin_layout Plain Layout
15192 <cell alignment="center" valignment="top" usebox="none">
15195 \begin_layout Plain Layout
15203 <cell alignment="center" valignment="top" usebox="none">
15206 \begin_layout Plain Layout
15210 \begin_layout Plain Layout
15239 \begin_layout Standard
15243 \begin_layout Plain Layout
15253 \begin_inset Note Note
15256 \begin_layout Plain Layout
15257 The following will be displayed when the LaTeX-package
15269 \begin_layout Standard
15270 You need to install the package
15274 to see the content of this section in the output.
15277 \begin_layout Standard
15281 \begin_layout Plain Layout
15293 \begin_layout Subsection
15298 \begin_layout Plain Layout
15299 Table Color ! for Lines
15308 \begin_layout Plain Layout
15309 Color ! for Table Lines
15317 \begin_layout Standard
15318 As described in section
15319 \begin_inset space ~
15323 \begin_inset CommandInset ref
15325 reference "sub:Line-Thickness"
15329 , the line thickness for all lines in a table can be adjusted with the length
15338 \begin_inset space \thinspace{}
15341 pt for all tables of this section.
15345 \begin_layout Plain Layout
15351 arrayrulewidth}{1.5pt}
15359 \begin_layout Standard
15360 To color vertical lines for example with green, create the following column
15361 format in the document preamble, according to the description in section
15362 \begin_inset space ~
15366 \begin_inset CommandInset ref
15368 reference "sub:Customized-Format"
15375 \begin_layout Standard
15380 newcolumntype{W}{!{
15387 \begin_layout Standard
15389 \begin_inset space ~
15393 \begin_inset CommandInset ref
15395 reference "tab:Table-with-vertical-colored"
15403 was used for the last column and
15407 for the other columns.
15410 \begin_layout Standard
15411 If you want to have several colors, define more column formats.
15414 \begin_layout Standard
15415 \begin_inset Float table
15421 \begin_layout Plain Layout
15422 \begin_inset Caption
15424 \begin_layout Plain Layout
15425 \begin_inset CommandInset label
15427 name "tab:Table-with-vertical-colored"
15431 Table with colored vertical lines
15439 \begin_layout Plain Layout
15441 \begin_inset Tabular
15442 <lyxtabular version="3" rows="3" columns="3">
15444 <column alignment="center" valignment="top" width="0" special="Wc">
15445 <column alignment="center" valignment="top" width="0" special="Wc">
15446 <column alignment="center" valignment="top" width="0" special="WcW">
15448 <cell alignment="center" valignment="top" topline="true" usebox="none">
15451 \begin_layout Plain Layout
15457 <cell alignment="center" valignment="top" topline="true" usebox="none">
15460 \begin_layout Plain Layout
15466 <cell alignment="center" valignment="top" topline="true" usebox="none">
15469 \begin_layout Plain Layout
15477 <cell alignment="center" valignment="top" topline="true" usebox="none">
15480 \begin_layout Plain Layout
15486 <cell alignment="center" valignment="top" topline="true" usebox="none">
15489 \begin_layout Plain Layout
15495 <cell alignment="center" valignment="top" topline="true" usebox="none">
15498 \begin_layout Plain Layout
15506 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15509 \begin_layout Plain Layout
15515 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15518 \begin_layout Plain Layout
15524 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15527 \begin_layout Plain Layout
15546 \begin_layout Standard
15547 \begin_inset VSpace bigskip
15550 To color horizontal lines for example with red, like in Table
15551 \begin_inset space ~
15555 \begin_inset CommandInset ref
15557 reference "tab:Table-with-horizontal-colored"
15561 , insert these commands in TeX-Code before the table or table float:
15564 \begin_layout Standard
15574 \begin_inset Newline newline
15582 \begin_inset Newline newline
15589 \begin_layout Plain Layout
15600 arrayrulecolor{red}
15604 arrayrulecolor{black}}
15607 \begin_layout Standard
15611 \begin_layout Plain Layout
15622 \begin_layout Plain Layout
15631 \begin_layout Plain Layout
15635 arrayrulecolor{red}
15639 arrayrulecolor{black}}
15645 \begin_inset Float table
15651 \begin_layout Plain Layout
15652 \begin_inset Caption
15654 \begin_layout Plain Layout
15655 \begin_inset CommandInset label
15657 name "tab:Table-with-horizontal-colored"
15661 Table with colored horizontal lines
15669 \begin_layout Plain Layout
15671 \begin_inset Tabular
15672 <lyxtabular version="3" rows="3" columns="3">
15674 <column alignment="center" valignment="top" width="0">
15675 <column alignment="center" valignment="top" width="0">
15676 <column alignment="center" valignment="top" width="0">
15678 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15681 \begin_layout Plain Layout
15687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15690 \begin_layout Plain Layout
15696 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15699 \begin_layout Plain Layout
15707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15710 \begin_layout Plain Layout
15716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15719 \begin_layout Plain Layout
15725 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15728 \begin_layout Plain Layout
15736 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15739 \begin_layout Plain Layout
15745 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15748 \begin_layout Plain Layout
15754 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15757 \begin_layout Plain Layout
15776 \begin_layout Standard
15777 To return to the default line color black, insert this command in TeX-Code
15778 behind the table or table float:
15781 \begin_layout Standard
15793 \begin_layout Standard
15795 \begin_inset space ~
15799 \begin_inset CommandInset ref
15801 reference "tab:Table-with-colored"
15805 is an example with colored vertical and horizontal lines.
15808 \begin_layout Standard
15809 \begin_inset Float table
15815 \begin_layout Plain Layout
15816 \begin_inset Caption
15818 \begin_layout Plain Layout
15819 \begin_inset CommandInset label
15821 name "tab:Table-with-colored"
15825 Table with colored lines
15833 \begin_layout Plain Layout
15835 \begin_inset Tabular
15836 <lyxtabular version="3" rows="3" columns="3">
15838 <column alignment="center" valignment="top" width="0" special="Wc">
15839 <column alignment="center" valignment="top" width="0" special="Wc">
15840 <column alignment="center" valignment="top" width="0" special="WcW">
15842 <cell alignment="center" valignment="top" topline="true" usebox="none">
15845 \begin_layout Plain Layout
15851 <cell alignment="center" valignment="top" topline="true" usebox="none">
15854 \begin_layout Plain Layout
15860 <cell alignment="center" valignment="top" topline="true" usebox="none">
15863 \begin_layout Plain Layout
15871 <cell alignment="center" valignment="top" topline="true" usebox="none">
15874 \begin_layout Plain Layout
15880 <cell alignment="center" valignment="top" topline="true" usebox="none">
15883 \begin_layout Plain Layout
15889 <cell alignment="center" valignment="top" topline="true" usebox="none">
15892 \begin_layout Plain Layout
15899 <row topspace="default">
15900 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15903 \begin_layout Plain Layout
15909 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15912 \begin_layout Plain Layout
15918 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15921 \begin_layout Plain Layout
15940 \begin_layout Standard
15944 \begin_layout Plain Layout
15960 \begin_layout Standard
15964 \begin_layout Plain Layout
15970 arrayrulewidth}{0.4pt}
15978 \begin_layout Section
15979 Table Customization
15983 \begin_layout Plain Layout
15984 Table Customization
15993 \begin_layout Plain Layout
15994 Table ! Customization
16002 \begin_layout Subsection
16004 \begin_inset CommandInset label
16006 name "sub:Row-Spacing"
16014 \begin_layout Plain Layout
16015 Table Customization ! Row Spacing
16023 \begin_layout Standard
16024 You can add vertical space to table rows in the
16028 tab of the table dialog.
16029 You find there three possibilities:
16032 \begin_layout Description
16034 \begin_inset space ~
16038 \begin_inset space ~
16041 row will add space above the characters of the table row.
16042 If the table is a formal table
16046 \begin_layout Plain Layout
16047 Formal tables are explained in section
16048 \begin_inset space ~
16052 \begin_inset CommandInset ref
16054 reference "sec:Formal-Tables"
16063 LyX will insert as default 0.5
16064 \begin_inset space \thinspace{}
16068 For normal tables the inserted space will unfortunately destroy the vertical
16069 table lines as in the following table:
16070 \begin_inset VSpace medskip
16074 \begin_inset Newline newline
16078 \begin_inset space \hspace*{}
16083 \begin_inset space \hfill{}
16087 \begin_inset Tabular
16088 <lyxtabular version="3" rows="3" columns="1">
16090 <column alignment="center" valignment="top" width="0">
16092 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16095 \begin_layout Plain Layout
16102 <row topspace="3mm">
16103 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16106 \begin_layout Plain Layout
16108 \begin_inset space \thinspace{}
16111 mm space top of row
16118 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16121 \begin_layout Plain Layout
16133 \begin_inset space \hfill{}
16137 \begin_inset space \hspace*{}
16142 \begin_inset VSpace medskip
16146 \begin_inset Newline newline
16149 So inserting space to the top of row for normal tables is only useful when
16150 you don't have vertical lines.
16153 \begin_layout Description
16155 \begin_inset space ~
16159 \begin_inset space ~
16162 row will add space below the characters of the table row.
16163 If the table is a formal table LyX will insert as default 0.5
16164 \begin_inset space \thinspace{}
16167 em space, for normal tables the default size is 2
16168 \begin_inset space \thinspace{}
16174 \begin_layout Description
16176 \begin_inset space ~
16179 rows adds space between the current and the following row.
16180 If the table is a formal table LyX will insert as default 0.5
16181 \begin_inset space \thinspace{}
16185 For normal tables the inserted space will unfortunately destroy the vertical
16186 table lines as in the following table:
16187 \begin_inset VSpace medskip
16191 \begin_inset Newline newline
16195 \begin_inset space \hspace*{}
16200 \begin_inset space \hfill{}
16204 \begin_inset Tabular
16205 <lyxtabular version="3" rows="3" columns="1">
16207 <column alignment="center" valignment="top" width="0">
16209 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16212 \begin_layout Plain Layout
16219 <row interlinespace="3mm">
16220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16223 \begin_layout Plain Layout
16224 \begin_inset Formula $\downarrow$
16228 \begin_inset space \thinspace{}
16231 mm space between row
16232 \begin_inset Formula $\downarrow$
16242 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16245 \begin_layout Plain Layout
16246 \begin_inset Formula $\uparrow$
16250 \begin_inset space \thinspace{}
16253 mm space between row
16254 \begin_inset Formula $\uparrow$
16268 \begin_inset space \hfill{}
16272 \begin_inset space \hspace*{}
16277 \begin_inset VSpace medskip
16281 \begin_inset Newline newline
16284 So inserting space between rows for normal tables is only useful when you
16285 don't have vertical lines.
16288 \begin_layout Standard
16289 \begin_inset VSpace bigskip
16292 When you want to add extra height to all cells of all tables, you can do
16293 this with the following preamble lines:
16296 \begin_layout Standard
16301 @ifundefined{extrarowheight}
16302 \begin_inset Newline newline
16309 \begin_layout Plain Layout
16320 usepackage{array}}{}
16321 \begin_inset Newline newline
16328 extrarowheight}{height}
16331 \begin_layout Standard
16332 But this has the disadvantage that the cell texts are no longer exactly
16333 vertically centered.
16338 will be loaded automatically by LyX when you use self defined table formats.
16339 To avoid that it is loaded twice the command
16345 is used in the above command.)
16348 \begin_layout Subsection
16349 Special Cell Alignment
16353 \begin_layout Plain Layout
16354 Table Customization ! Special Cell Alignment
16362 \begin_layout Standard
16363 Sometimes it looks better when the cell entries of a column are aligned
16364 with a special character, e.g.
16365 \begin_inset space \space{}
16368 with the decimal separator as in Table
16369 \begin_inset space ~
16373 \begin_inset CommandInset ref
16375 reference "tab:Table-cells-of"
16382 \begin_layout Standard
16383 \begin_inset Float table
16389 \begin_layout Plain Layout
16390 \begin_inset Caption
16392 \begin_layout Plain Layout
16393 \begin_inset CommandInset label
16395 name "tab:Table-cells-of"
16399 Table cells of a column aligned with the decimal separator.
16407 \begin_layout Plain Layout
16409 \begin_inset Tabular
16410 <lyxtabular version="3" rows="4" columns="2">
16412 <column alignment="right" valignment="top" width="0">
16413 <column alignment="left" valignment="top" width="0" special="@{}l">
16415 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16418 \begin_layout Plain Layout
16424 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16427 \begin_layout Plain Layout
16435 <cell alignment="center" valignment="top" usebox="none">
16438 \begin_layout Plain Layout
16444 <cell alignment="center" valignment="top" usebox="none">
16447 \begin_layout Plain Layout
16455 <cell alignment="center" valignment="top" usebox="none">
16458 \begin_layout Plain Layout
16464 <cell alignment="center" valignment="top" usebox="none">
16467 \begin_layout Plain Layout
16475 <cell alignment="center" valignment="top" usebox="none">
16478 \begin_layout Plain Layout
16484 <cell alignment="center" valignment="top" usebox="none">
16487 \begin_layout Plain Layout
16506 \begin_layout Standard
16507 This table was created with a 4×2 table.
16508 The heading is a centered multicolumn.
16509 The first column is right-aligned and contains the digits before the decimal
16510 point and the decimal point.
16511 The second column is left aligned and contains the digits after the decimal
16513 To omit the space that is normally between two table columns, use the following
16514 LaTeX-argument for the second column:
16517 \begin_layout Standard
16523 \begin_layout Standard
16525 \begin_inset space ~
16529 \begin_inset CommandInset ref
16531 reference "tab:Several-table-cell"
16535 shows some example alignments.
16536 For the alignment with the relation sign, you must add the second smallest
16537 math-space at the beginning of the last column to get the correct space
16538 surrounding the relation sign.
16541 \begin_layout Standard
16542 \begin_inset Float table
16547 \begin_layout Plain Layout
16548 \begin_inset Caption
16550 \begin_layout Plain Layout
16551 \begin_inset CommandInset label
16553 name "tab:Several-table-cell"
16557 Several table cell alignments.
16565 \begin_layout Plain Layout
16567 \begin_inset Tabular
16568 <lyxtabular version="3" rows="4" columns="6">
16570 <column alignment="right" valignment="top" width="0">
16571 <column alignment="left" valignment="top" width="0" special="@{}l">
16572 <column alignment="right" valignment="top" width="0">
16573 <column alignment="left" valignment="top" width="0" special="@{}l">
16574 <column alignment="right" valignment="top" width="0">
16575 <column alignment="left" valignment="top" width="0" special="@{}l">
16577 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16580 \begin_layout Plain Layout
16586 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16589 \begin_layout Plain Layout
16595 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16598 \begin_layout Plain Layout
16604 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16607 \begin_layout Plain Layout
16613 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16616 \begin_layout Plain Layout
16622 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16625 \begin_layout Plain Layout
16633 <cell alignment="center" valignment="top" usebox="none">
16636 \begin_layout Plain Layout
16642 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16645 \begin_layout Plain Layout
16647 \begin_inset space \thinspace{}
16655 <cell alignment="center" valignment="top" usebox="none">
16658 \begin_layout Plain Layout
16659 \begin_inset Formula $10\cdot$
16667 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16670 \begin_layout Plain Layout
16671 \begin_inset Formula $10^{\mbox{-}17}$
16679 <cell alignment="center" valignment="top" usebox="none">
16682 \begin_layout Plain Layout
16683 \begin_inset Formula $\Gamma(t)\propto$
16691 <cell alignment="center" valignment="top" usebox="none">
16694 \begin_layout Plain Layout
16695 \begin_inset Formula $\:\Upsilon(t)$
16705 <cell alignment="center" valignment="top" usebox="none">
16708 \begin_layout Plain Layout
16714 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16717 \begin_layout Plain Layout
16719 \begin_inset space \thinspace{}
16727 <cell alignment="center" valignment="top" usebox="none">
16730 \begin_layout Plain Layout
16731 \begin_inset Formula $5.78\cdot$
16739 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16742 \begin_layout Plain Layout
16743 \begin_inset Formula $10^{7}$
16751 <cell alignment="center" valignment="top" usebox="none">
16754 \begin_layout Plain Layout
16755 \begin_inset Formula $A\ne$
16763 <cell alignment="center" valignment="top" usebox="none">
16766 \begin_layout Plain Layout
16767 \begin_inset Formula $\: B_{\mathrm{red}}$
16777 <cell alignment="center" valignment="top" usebox="none">
16780 \begin_layout Plain Layout
16786 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16789 \begin_layout Plain Layout
16791 \begin_inset space \thinspace{}
16799 <cell alignment="center" valignment="top" usebox="none">
16802 \begin_layout Plain Layout
16804 \begin_inset Formula $33.5\cdot$
16812 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16815 \begin_layout Plain Layout
16816 \begin_inset Formula $10^{4}$
16824 <cell alignment="center" valignment="top" usebox="none">
16827 \begin_layout Plain Layout
16828 \begin_inset Formula $\sin(\alpha)\ge$
16836 <cell alignment="center" valignment="top" usebox="none">
16839 \begin_layout Plain Layout
16840 \begin_inset Formula $\:\sin(\beta)$
16861 \begin_layout Standard
16862 \begin_inset VSpace bigskip
16865 There is also the LaTeX-package
16873 \begin_layout Plain Layout
16874 LaTeX-packages ! dcolumn
16879 that provides table cell alignments.
16880 But this unfortunately treats the cell entries as math and doesn't allow
16881 formulas in table cells: The first column of Table
16882 \begin_inset space ~
16886 \begin_inset CommandInset ref
16888 reference "tab:Several-table-cell"
16896 like the first column in Table
16897 \begin_inset space ~
16901 \begin_inset CommandInset ref
16903 reference "tab:Alignments-when"
16907 and only with some tricks like the expected.
16908 The alignment of the second and third column of Table
16909 \begin_inset space ~
16913 \begin_inset CommandInset ref
16915 reference "tab:Several-table-cell"
16919 is not possible with
16926 \begin_layout Standard
16927 \begin_inset Float table
16933 \begin_layout Plain Layout
16934 \begin_inset Caption
16936 \begin_layout Plain Layout
16937 \begin_inset CommandInset label
16939 name "tab:Alignments-when"
16943 Alignments when LaTeX-package dcolumn is used.
16944 For all column alignments tricks have to be used to get the output.
16952 \begin_layout Plain Layout
16954 \begin_inset Tabular
16955 <lyxtabular version="3" rows="4" columns="3">
16957 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
16958 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
16959 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
16961 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16964 \begin_layout Plain Layout
16970 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16973 \begin_layout Plain Layout
16979 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16982 \begin_layout Plain Layout
16990 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16993 \begin_layout Plain Layout
16995 \begin_inset space \thinspace{}
17003 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17006 \begin_layout Plain Layout
17008 \begin_inset space \thinspace{}
17012 \begin_inset Formula $\mbox{bottles}$
17020 <cell alignment="center" valignment="top" usebox="none">
17023 \begin_layout Plain Layout
17028 \begin_layout Plain Layout
17038 \begin_inset Formula $\mbox{bottles}$
17048 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17051 \begin_layout Plain Layout
17053 \begin_inset space \thinspace{}
17061 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17064 \begin_layout Plain Layout
17066 \begin_inset space \thinspace{}
17070 \begin_inset Formula $\mbox{Pixels}$
17078 <cell alignment="center" valignment="top" usebox="none">
17081 \begin_layout Plain Layout
17086 \begin_layout Plain Layout
17096 \begin_inset Formula $\mbox{Pixels}$
17106 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17109 \begin_layout Plain Layout
17111 \begin_inset space \thinspace{}
17119 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17122 \begin_layout Plain Layout
17124 \begin_inset space \thinspace{}
17128 \begin_inset Formula $\mbox{cm}$
17136 <cell alignment="center" valignment="top" usebox="none">
17139 \begin_layout Plain Layout
17144 \begin_layout Plain Layout
17154 \begin_inset Formula $\mbox{cm}$
17175 \begin_layout Subsection
17176 Customized Cell/Column Format
17177 \begin_inset CommandInset label
17179 name "sub:Customized-Format"
17187 \begin_layout Plain Layout
17188 Table Customization ! Cell/Column Format
17196 \begin_layout Standard
17197 Calculating the needed width for spanned columns like in section
17198 \begin_inset space ~
17202 \begin_inset CommandInset ref
17204 reference "sub:Multicolumn-Calculations"
17208 is very annoying if you have several tables with multicolumn cells.
17209 To make life easier, you can define a cell/column format in the preamble,
17210 so that it can be used in all tables of the document.
17211 The format is defined with the command
17214 \begin_layout Standard
17219 newcolumntype{name of format}[number of arguments]{commands}
17222 \begin_layout Standard
17223 The format name may only consist of one letter.
17248 are predefined and cannot be used.
17249 But all letters are allowed as capitals.
17252 \begin_layout Standard
17253 \begin_inset VSpace medskip
17259 \begin_layout Standard
17260 For vertically and horizontally centered multicolumn cells with a fixed
17261 width you can define the cell format
17264 \begin_layout Standard
17269 newcolumntype{M}[1]{>{
17276 \begin_layout Standard
17283 avoids the problem of hyphenating the first word, as described in section
17284 \begin_inset space ~
17288 \begin_inset CommandInset ref
17290 reference "sub:Multiple-Lines-in"
17295 Now you can simply enter
17298 \begin_layout Standard
17304 \begin_layout Standard
17305 as LaTeX-argument in the table dialog to create a multicolumn.
17308 \begin_layout Standard
17309 \begin_inset VSpace bigskip
17315 \begin_layout Standard
17316 For cells spanned by a multicolumn cell, you can define the format
17319 \begin_layout Standard
17324 newcolumntype{S}[2]{>{
17329 \begin_inset Newline newline
17336 \begin_layout Plain Layout
17351 \begin_layout Plain Layout
17362 arrayrulewidth)*(1-#2))/#2}}
17365 \begin_layout Standard
17366 This format uses equation
17367 \begin_inset CommandInset ref
17373 to calculate the needed width so that each spanned cell has the same width.
17376 \begin_layout Standard
17380 \begin_layout Standard
17383 S{width of multicolumn cell}{number of spanned columns}
17386 \begin_layout Standard
17387 as LaTeX-argument of the column.
17390 \begin_layout Standard
17391 \begin_inset VSpace bigskip
17397 \begin_layout Standard
17398 For colored columns, you can define
17401 \begin_layout Standard
17406 newcolumntype{K}[1]{>{
17413 \begin_layout Standard
17415 \begin_inset Quotes eld
17419 \begin_inset Quotes erd
17422 at the end creates a column with a flexible width whose text is horizontally
17427 \begin_layout Standard
17433 \begin_layout Standard
17437 \begin_layout Standard
17438 \begin_inset VSpace bigskip
17444 \begin_layout Standard
17446 \begin_inset space ~
17450 \begin_inset CommandInset ref
17452 reference "tab:Table-using-user-defined"
17456 use the LaTeX-arguments
17459 \begin_layout Standard
17465 \begin_layout Standard
17466 for the first column and the multicolumn,
17469 \begin_layout Standard
17475 \begin_layout Standard
17476 for the the last column, and
17479 \begin_layout Standard
17485 \begin_layout Standard
17486 for the cells in the second column.
17489 \begin_layout Standard
17490 \begin_inset Float table
17496 \begin_layout Plain Layout
17497 \begin_inset Caption
17499 \begin_layout Plain Layout
17500 \begin_inset CommandInset label
17502 name "tab:Table-using-user-defined"
17506 Table using user-defined table formats
17514 \begin_layout Plain Layout
17516 \begin_inset Tabular
17517 <lyxtabular version="3" rows="3" columns="4">
17519 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17520 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17521 <column alignment="center" valignment="middle" width="0">
17522 <column alignment="center" valignment="middle" width="0" special="K{red}">
17524 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17527 \begin_layout Plain Layout
17528 verylongtablecellword
17533 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17536 \begin_layout Plain Layout
17537 multiple lines multicolumn
17542 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17545 \begin_layout Plain Layout
17551 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17554 \begin_layout Plain Layout
17562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17565 \begin_layout Plain Layout
17571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17574 \begin_layout Plain Layout
17580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17583 \begin_layout Plain Layout
17589 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17592 \begin_layout Plain Layout
17600 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17603 \begin_layout Plain Layout
17609 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17612 \begin_layout Plain Layout
17618 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17621 \begin_layout Plain Layout
17627 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17630 \begin_layout Plain Layout
17649 \begin_layout Subsection
17651 \begin_inset CommandInset label
17653 name "sub:Line-Thickness"
17661 \begin_layout Plain Layout
17662 Table Customization ! Line Thickness
17670 \begin_layout Standard
17671 The line thickness for all lines in a table can be adjusted with the length
17679 To set for example a line thickness of 1.5
17680 \begin_inset space \thinspace{}
17684 \begin_inset space ~
17688 \begin_inset CommandInset ref
17690 reference "tab:Table-with-1.5"
17694 , insert the command
17697 \begin_layout Standard
17704 arrayrulewidth}{1.5pt}
17707 \begin_layout Standard
17708 in TeX-Code before the table or table float.
17709 The changed thickness is valid for all following tables.
17710 To use the default value again, set
17717 \begin_inset space \thinspace{}
17720 pt in TeX-Code behind the table or table float.
17723 \begin_layout Standard
17727 \begin_layout Plain Layout
17733 arrayrulewidth}{1.5pt}
17739 \begin_inset Float table
17744 \begin_layout Plain Layout
17745 \begin_inset Caption
17747 \begin_layout Plain Layout
17748 \begin_inset CommandInset label
17750 name "tab:Table-with-1.5"
17755 \begin_inset space \thinspace{}
17766 \begin_layout Plain Layout
17768 \begin_inset Tabular
17769 <lyxtabular version="3" rows="3" columns="3">
17771 <column alignment="center" valignment="top" width="0">
17772 <column alignment="center" valignment="top" width="0">
17773 <column alignment="center" valignment="top" width="0">
17775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17778 \begin_layout Plain Layout
17784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17787 \begin_layout Plain Layout
17793 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17796 \begin_layout Plain Layout
17804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17807 \begin_layout Plain Layout
17813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17816 \begin_layout Plain Layout
17822 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17825 \begin_layout Plain Layout
17833 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17836 \begin_layout Plain Layout
17842 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17845 \begin_layout Plain Layout
17851 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17854 \begin_layout Plain Layout
17874 \begin_layout Plain Layout
17880 arrayrulewidth}{0.4pt}
17888 \begin_layout Standard
17889 \begin_inset VSpace bigskip
17892 To set the line thickness to 1.5
17893 \begin_inset space \thinspace{}
17896 pt only for horizontal lines, like in Table
17897 \begin_inset space ~
17901 \begin_inset CommandInset ref
17903 reference "tab:Table-with-horizontal"
17907 , insert these commands in TeX-Code before the table or table float:
17910 \begin_layout Standard
17920 \begin_inset Newline newline
17928 \begin_inset Newline newline
17937 arrayrulewidth 1.5pt}
17938 \begin_inset Newline newline
17949 arrayrulewidth 0.4pt}}
17952 \begin_layout Standard
17953 To return to the default line thickness, insert this command in TeX-Code
17954 behind the table or table float:
17957 \begin_layout Standard
17969 \begin_layout Standard
17973 \begin_layout Plain Layout
17984 \begin_layout Plain Layout
17993 \begin_layout Plain Layout
18001 arrayrulewidth 1.5pt}
18004 \begin_layout Plain Layout
18014 arrayrulewidth 0.4pt}}
18020 \begin_inset Float table
18025 \begin_layout Plain Layout
18026 \begin_inset Caption
18028 \begin_layout Plain Layout
18029 \begin_inset CommandInset label
18031 name "tab:Table-with-horizontal"
18036 \begin_inset space \thinspace{}
18039 pt thick horizontal lines
18047 \begin_layout Plain Layout
18049 \begin_inset Tabular
18050 <lyxtabular version="3" rows="3" columns="3">
18052 <column alignment="center" valignment="top" width="0">
18053 <column alignment="center" valignment="top" width="0">
18054 <column alignment="center" valignment="top" width="0">
18056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18059 \begin_layout Plain Layout
18065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18068 \begin_layout Plain Layout
18074 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18077 \begin_layout Plain Layout
18085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18088 \begin_layout Plain Layout
18094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18097 \begin_layout Plain Layout
18103 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18106 \begin_layout Plain Layout
18114 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18117 \begin_layout Plain Layout
18123 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18126 \begin_layout Plain Layout
18132 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18135 \begin_layout Plain Layout
18155 \begin_layout Plain Layout
18171 \begin_layout Standard
18172 \begin_inset VSpace bigskip
18175 To set the line thickness to 1.5
18176 \begin_inset space \thinspace{}
18179 pt only for vertical lines, create the following column format in the document
18180 preamble, according to the description in section
18181 \begin_inset space ~
18185 \begin_inset CommandInset ref
18187 reference "sub:Customized-Format"
18194 \begin_layout Standard
18199 newcolumntype{V}{!{
18201 vrule width 1.5pt}}
18204 \begin_layout Standard
18206 \begin_inset space ~
18210 \begin_inset CommandInset ref
18212 reference "tab:Table-with-vertical"
18219 \begin_layout Standard
18225 \begin_layout Standard
18226 was used for the last column and
18229 \begin_layout Standard
18235 \begin_layout Standard
18236 for the other columns.
18239 \begin_layout Standard
18240 \begin_inset Float table
18245 \begin_layout Plain Layout
18246 \begin_inset Caption
18248 \begin_layout Plain Layout
18249 \begin_inset CommandInset label
18251 name "tab:Table-with-vertical"
18256 \begin_inset space \thinspace{}
18259 pt thick vertical lines
18267 \begin_layout Plain Layout
18269 \begin_inset Tabular
18270 <lyxtabular version="3" rows="3" columns="3">
18272 <column alignment="center" valignment="top" width="0" special="Vc">
18273 <column alignment="center" valignment="top" width="0" special="Vc">
18274 <column alignment="center" valignment="top" width="0" special="VcV">
18276 <cell alignment="center" valignment="top" topline="true" usebox="none">
18279 \begin_layout Plain Layout
18285 <cell alignment="center" valignment="top" topline="true" usebox="none">
18288 \begin_layout Plain Layout
18294 <cell alignment="center" valignment="top" topline="true" usebox="none">
18297 \begin_layout Plain Layout
18305 <cell alignment="center" valignment="top" topline="true" usebox="none">
18308 \begin_layout Plain Layout
18314 <cell alignment="center" valignment="top" topline="true" usebox="none">
18317 \begin_layout Plain Layout
18323 <cell alignment="center" valignment="top" topline="true" usebox="none">
18326 \begin_layout Plain Layout
18334 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18337 \begin_layout Plain Layout
18343 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18346 \begin_layout Plain Layout
18352 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18355 \begin_layout Plain Layout
18374 \begin_layout Subsection
18379 \begin_layout Plain Layout
18380 Table Customization ! Dashed Lines
18388 \begin_layout Standard
18392 \begin_layout Plain Layout
18402 \begin_inset Note Note
18405 \begin_layout Plain Layout
18406 The following section will only be displayed when the LaTeX-package
18418 \begin_layout Standard
18419 \begin_inset Float table
18425 \begin_layout Plain Layout
18426 \begin_inset Caption
18428 \begin_layout Plain Layout
18429 \begin_inset CommandInset label
18431 name "tab:Table-with-dashed"
18435 Table with dashed lines
18443 \begin_layout Plain Layout
18445 \begin_inset Tabular
18446 <lyxtabular version="3" rows="5" columns="5">
18448 <column alignment="center" valignment="top" width="0">
18449 <column alignment="center" valignment="top" width="0">
18450 <column alignment="center" valignment="top" width="0" special=":c">
18451 <column alignment="center" valignment="top" width="0">
18452 <column alignment="center" valignment="top" width="0">
18454 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18457 \begin_layout Plain Layout
18463 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18466 \begin_layout Plain Layout
18472 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18475 \begin_layout Plain Layout
18481 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18484 \begin_layout Plain Layout
18490 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18493 \begin_layout Plain Layout
18501 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18504 \begin_layout Plain Layout
18510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18513 \begin_layout Plain Layout
18519 <cell alignment="center" valignment="top" topline="true" usebox="none">
18522 \begin_layout Plain Layout
18528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18531 \begin_layout Plain Layout
18537 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18540 \begin_layout Plain Layout
18548 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18551 \begin_layout Plain Layout
18555 \begin_layout Plain Layout
18569 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18572 \begin_layout Plain Layout
18578 <cell alignment="center" valignment="top" usebox="none">
18581 \begin_layout Plain Layout
18587 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18590 \begin_layout Plain Layout
18596 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18599 \begin_layout Plain Layout
18607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18610 \begin_layout Plain Layout
18614 \begin_layout Plain Layout
18628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18631 \begin_layout Plain Layout
18637 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
18640 \begin_layout Plain Layout
18646 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
18649 \begin_layout Plain Layout
18655 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18658 \begin_layout Plain Layout
18666 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18669 \begin_layout Plain Layout
18675 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18678 \begin_layout Plain Layout
18684 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18687 \begin_layout Plain Layout
18693 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18696 \begin_layout Plain Layout
18702 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18705 \begin_layout Plain Layout
18724 \begin_layout Standard
18725 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
18726 As prerequisite the LaTeX-package
18734 \begin_layout Plain Layout
18735 LaTeX-packages ! arydshln
18740 must be loaded in the document preamble with the command
18743 \begin_layout Standard
18748 usepackage{arydshln}
18751 \begin_layout Standard
18752 To make a vertical line dashed, enter the colon
18753 \begin_inset Quotes eld
18757 \begin_inset Quotes erd
18760 together with the character for the horizontal alignment as LaTeX-argument
18761 in the table cell dialog.
18764 \begin_layout Standard
18765 For a horizontal dashed line add the command
18768 \begin_layout Standard
18776 \begin_layout Standard
18777 in TeX-Code as first element of the first cell in the table row.
18780 \begin_layout Standard
18781 For dashed multicolumn lines use the command
18784 \begin_layout Standard
18789 cdashline{line number
18794 \begin_layout Standard
18795 in TeX-Code as first element of the first cell in the table row.
18796 If you have for example a multicolumn spanning over columns 2 to 4 and
18797 you want to have a dashed line above, add the command
18800 \begin_layout Standard
18808 \begin_layout Standard
18809 as first element of the first cell in the row of the multicolumn.
18812 \begin_layout Standard
18813 \begin_inset VSpace bigskip
18819 \begin_layout Standard
18821 \begin_inset space ~
18825 \begin_inset CommandInset ref
18827 reference "tab:Table-with-dashed"
18832 \begin_inset Quotes eld
18840 \begin_inset Quotes erd
18843 as LaTeX-argument of the third column.
18844 The TeX-Code command
18850 was inserted to the first cell of the third row and the the TeX-Code command
18851 \begin_inset Newline newline
18860 was inserted to the first cell of the fourth row.
18863 \begin_layout Standard
18864 \begin_inset Note Greyedout
18867 \begin_layout Plain Layout
18872 The used LaTeX-package
18876 is apparently not compatible with the LaTeX-package
18884 \begin_layout Plain Layout
18885 LaTeX-packages ! colortbl
18890 that is used for colored tables in section
18891 \begin_inset space ~
18895 \begin_inset CommandInset ref
18897 reference "sec:Colored-Tables"
18902 That means colored tables cannot have dashed lines.
18910 \begin_layout Standard
18914 \begin_layout Plain Layout
18924 \begin_inset Note Note
18927 \begin_layout Plain Layout
18928 The following will be displayed when the LaTeX-package
18940 \begin_layout Standard
18941 You need to install the package
18945 to see the content of this section in the output.
18948 \begin_layout Standard
18952 \begin_layout Plain Layout
18964 \begin_layout Chapter
18969 \begin_layout Plain Layout
18978 \begin_layout Section
18980 \begin_inset CommandInset label
18982 name "sec:FloatIntroduction"
18990 \begin_layout Plain Layout
18991 Floats ! Introduction
18999 \begin_layout Standard
19000 A float is a block of text associated with some sort of label, which doesn't
19001 have a fixed location.
19003 \begin_inset Quotes eld
19007 \begin_inset Quotes erd
19010 forward or backward a page or two, to wherever it fits best.
19018 \begin_inset space ~
19023 are also floats, because they can float to the next page when there are
19024 too many notes at the page.
19027 \begin_layout Standard
19028 Floats allow a high quality layout.
19029 Images and tables can evenly be spread to the pages to avoid white space
19030 and pages without text.
19031 As the floating often destroys the context between the text and the image/table
19032 , every float can be referenced in the text.
19033 Floats are therefore numbered.
19034 Referencing is described in section
19035 \begin_inset space ~
19039 \begin_inset CommandInset ref
19041 reference "sec:Referencing-Floats"
19048 \begin_layout Standard
19049 To insert a float, use the menu
19051 Insert\SpecialChar \menuseparator
19059 inset, a box with a label.
19060 The label will automatically be translated to the document language in
19062 Behind the label you can insert the caption text.
19063 The image or table is inserted above or below the caption in a separate
19064 paragraph within the float.
19065 More about the caption placement is described in section
19066 \begin_inset space ~
19070 \begin_inset CommandInset ref
19072 reference "sec:Caption-Placement"
19077 To keep your LyX-document readable, you can open and close the float box
19078 by left-clicking on the box label.
19079 A closed float box looks like this:
19080 \begin_inset Graphics
19081 filename clipart/floatQt4.png
19083 scaleBeforeRotation
19087 -- a gray button with a red label.
19090 \begin_layout Standard
19091 It is recommended to insert floats as a separate paragraph to avoid possible
19092 LaTeX-errors that can occur when the surrounding text is specially formatted.
19095 \begin_layout Standard
19096 Existing figures or tables can be put into a float by marking them and then
19097 pressing the corresponding toolbar button for a new float.
19100 \begin_layout Section
19104 \begin_layout Standard
19105 Besides figure and table floats that are described in section
19106 \begin_inset space ~
19110 \begin_inset CommandInset ref
19112 reference "sec:Figure-Floats"
19117 \begin_inset CommandInset ref
19119 reference "sec:Table-Floats"
19123 , respectively, LyX offers the float types
19134 \begin_layout Subsection
19139 \begin_layout Plain Layout
19140 Floats ! Algorithms
19148 \begin_layout Standard
19149 \begin_inset Float algorithm
19155 \begin_layout Plain Layout
19156 \begin_inset Caption
19158 \begin_layout Plain Layout
19159 \begin_inset CommandInset label
19161 name "alg:Example-Algorithm-float"
19165 Example Algorithm float
19173 \begin_layout LyX-Code
19175 \begin_inset Newline newline
19178 Sum:= Sum + A(I); /*comment*/
19179 \begin_inset Newline newline
19183 \begin_inset VSpace -4mm
19194 \begin_layout Standard
19195 This float type is inserted with the menu
19197 Insert\SpecialChar \menuseparator
19198 Floats\SpecialChar \menuseparator
19202 It is used for program codes and descriptions of algorithms.
19203 A possible environment for algorithms is the
19207 , described in LyX's
19213 \begin_inset space ~
19217 \begin_inset CommandInset ref
19219 reference "alg:Example-Algorithm-float"
19223 is an example of an algorithm float where -4
19224 \begin_inset space \thinspace{}
19227 mm vertical space was added at the end of the float to have the bottom rule
19228 exactly below the last text line.
19231 \begin_layout Standard
19232 The float label is not automatically translated into the document language.
19233 If your document is not in English, you have to do this manually by adding
19234 the following line to the document preamble
19239 \begin_layout Standard
19244 floatname{algorithm}{your
19245 \begin_inset space ~
19251 \begin_layout Standard
19255 \begin_inset space ~
19261 \begin_inset Quotes eld
19269 \begin_inset Quotes erd
19275 \begin_layout Standard
19276 To insert the list of algorithms you can not use the menu
19278 Insert\SpecialChar \menuseparator
19280 \begin_inset space \thinspace{}
19284 \begin_inset space \thinspace{}
19287 TOC\SpecialChar \menuseparator
19290 when your document is a non-English one.
19291 In this case use this command in TeX-Code instead:
19294 \begin_layout Standard
19299 listof{algorithm}{your
19300 \begin_inset space ~
19306 \begin_layout Standard
19310 \begin_inset space ~
19316 \begin_inset Quotes eld
19324 \begin_inset Quotes erd
19330 \begin_layout Standard
19331 Algorithm floats are not by default numbered in the scheme
19332 \begin_inset Quotes eld
19336 \begin_inset Quotes erd
19339 like it is the case for table and figure floats in many document-classes.
19340 To number algorithm floats in the same scheme, add this command to your
19344 \begin_layout Standard
19349 numberwithin{algorithm}{chapter}
19352 \begin_layout Standard
19353 To be able to use the command
19362 \begin_inset space ~
19367 in the document settings the option
19370 \begin_inset space ~
19374 \begin_inset space ~
19378 \begin_inset space ~
19386 \begin_layout Subsection
19391 \begin_layout Plain Layout
19392 Floats ! Wrap Floats
19400 \begin_layout Standard
19401 \begin_inset Wrap figure
19408 \begin_layout Plain Layout
19409 \begin_inset Graphics
19410 filename clipart/mobius.eps
19412 scaleBeforeRotation
19413 rotateOrigin center
19420 \begin_layout Plain Layout
19421 \begin_inset Caption
19423 \begin_layout Plain Layout
19424 \begin_inset CommandInset label
19426 name "fig:This-is-a"
19430 This is a figure wrap float.
19440 This float type is used if you want to wrap text around a figure or table
19441 so that it only occupies some fraction of the column width.
19442 It can be inserted using the menu
19444 Insert\SpecialChar \menuseparator
19445 Floats\SpecialChar \menuseparator
19447 \begin_inset space ~
19451 \begin_inset space ~
19459 \begin_inset space ~
19463 \begin_inset space ~
19468 if the LaTeX-package
19476 \begin_layout Plain Layout
19477 LaTeX-packages ! wrapfig
19481 \begin_layout Plain Layout
19499 \begin_layout Plain Layout
19500 Installing a LaTeX-package is explained it in the
19503 \begin_inset space ~
19513 The settings of the float can be modified by right-clicking on the float
19515 The mandatory settings are the float
19528 that specifies how much the float is set into the paragraph
19529 \begin_inset space \thinspace{}
19533 \begin_inset space \thinspace{}
19536 page margin, and the
19539 \begin_inset space ~
19544 that specifies how many text lines the float will approximately need.
19545 The line span is often hard to be approximated, so better only use it when
19546 you encounter float placement problems.
19547 You can furthermore decide if LaTeX is allowed to let the float float within
19548 the paragraph or to surrounding paragraphs.
19550 \begin_inset space ~
19554 \begin_inset CommandInset ref
19556 reference "fig:This-is-a"
19560 is an example text wrap float with a width of 40
19561 \begin_inset space \thinspace{}
19565 \begin_inset space \thinspace{}
19568 cm overhang, set to the left.
19572 \begin_layout Plain Layout
19573 Available units are explained in appendix
19574 \begin_inset space ~
19578 \begin_inset CommandInset ref
19580 reference "cha:Units-available-in"
19592 \begin_layout Standard
19593 \begin_inset Note Greyedout
19596 \begin_layout Plain Layout
19602 \begin_inset space ~
19605 wrap float floats are fragile! E.g.
19606 \begin_inset space \space{}
19609 having a figure too close to the bottom of the page can mess things up in
19610 the way that the float doesn't appear in the output or that it is placed
19611 over some other text.
19619 \begin_layout Standard
19623 \begin_layout Itemize
19624 Wrap floats should not be placed in paragraphs that run over a page break.
19625 That means that wrap floats should better be inserted to the exact place
19626 when the document is nearly finished and you are able to estimate where
19627 page breaks will appear.
19630 \begin_layout Itemize
19631 Wrap floats should either be placed in an own paragraph before the paragraph
19632 where they should wrap into or within a paragraph.
19635 \begin_layout Itemize
19636 Wrap floats in consecutive paragraphs may cause troubles, so assure that
19637 there is a text paragraph between them as separator.
19640 \begin_layout Itemize
19641 Wrap floats are not allowed in section headings or tables.
19644 \begin_layout Section
19649 \begin_layout Plain Layout
19658 \begin_layout Standard
19659 Floats are usually numbered either independent from the sections the floats
19660 are in, or in the scheme
19661 \begin_inset Quotes eld
19665 \begin_inset Quotes erd
19669 \begin_inset Quotes eld
19673 \begin_inset Quotes erd
19677 This depends on the used document class.
19680 \begin_layout Standard
19681 To change the section independent numbering, you can use this command in
19682 the document preamble:
19685 \begin_layout Standard
19697 \begin_layout Standard
19704 is the command that prints the table number, for figure floats, the command
19718 prints in the command above the table number as small roman number.
19721 \begin_layout Standard
19722 To change the numbering scheme for example to
19723 \begin_inset Quotes eld
19727 \begin_inset Quotes erd
19730 , use this command in the preamble:
19733 \begin_layout Standard
19738 numberwithin{table}{subsection}
19741 \begin_layout Standard
19742 To be able to use the command
19751 \begin_inset space ~
19756 in the document settings the option
19759 \begin_inset space ~
19763 \begin_inset space ~
19767 \begin_inset space ~
19775 \begin_layout Standard
19776 Please also have a look at section
19777 \begin_inset space ~
19781 \begin_inset CommandInset ref
19783 reference "sub:Footnote-Numbering"
19787 for the details and important notes about the numbering commands.
19790 \begin_layout Section
19792 \begin_inset CommandInset label
19794 name "sec:Referencing-Floats"
19802 \begin_layout Plain Layout
19803 Floats ! References
19812 \begin_layout Plain Layout
19813 References ! to Floats
19821 \begin_layout Standard
19822 To reference a float, insert a label into its caption using the menu
19824 Insert\SpecialChar \menuseparator
19827 or the toolbar button
19828 \begin_inset Graphics
19829 filename ../images/label-insert.png
19831 scaleBeforeRotation
19836 A grey label box like this one:
19837 \begin_inset Graphics
19838 filename clipart/labelQt4.png
19840 scaleBeforeRotation
19844 will be inserted and the label window pops up asking for the label text.
19845 LyX offers as text the first words of the caption with a prefix.
19846 The prefix depends on the float type, e.g.
19847 \begin_inset space \space{}
19850 for figure floats the prefix will be "
19857 \begin_layout Standard
19858 The label is used as anchor and name for the reference.
19859 You can refer to the label using the menu
19861 Insert\SpecialChar \menuseparator
19864 or the toolbar button
19865 \begin_inset Graphics
19866 filename ../images/dialog-show-new-inset_ref.png
19868 scaleBeforeRotation
19873 A grey cross-reference box like this one:
19874 \begin_inset Graphics
19875 filename clipart/referenceQt4.png
19877 scaleBeforeRotation
19881 will be inserted and the cross-reference window appear showing all labels
19883 If you have multiple LyX-documents opened, choose the one you are working
19884 on from the drop-list at the top of the dialog.
19885 You can now sort the labels alphabetically and then choose one.
19886 At the position of the cross-reference box the float number will appear
19890 \begin_layout Standard
19891 It is recommended to use a protected space between the cross-reference name
19892 and its number to avoid line breaks between them.
19893 If a cross-reference refers to a non-existing label, you will see two question
19894 marks in the output instead of the reference.
19897 \begin_layout Standard
19898 You can change labels at any time by clicking on the label box.
19899 References to the changed label will automatically change its link to the
19900 new label text, so that you don't need to take care about this.
19903 \begin_layout Standard
19907 \begin_inset space ~
19911 \begin_inset space ~
19916 in the cross-reference window sets the cursor before the referred label.
19917 The button text changes then to Go
19918 \begin_inset space ~
19921 Back and you can use it to set the cursor back to the cross-reference.
19922 Right-clicking on a cross-reference box also sets the cursor before the
19923 referenced label but without a possibility to go back.
19926 \begin_layout Subsection
19927 Cross-Reference Formats
19928 \begin_inset CommandInset label
19930 name "sub:Cross-Reference-Formats"
19938 \begin_layout Plain Layout
19939 References ! Formats
19947 \begin_layout Standard
19948 There are six varieties of cross-references:
19951 \begin_layout Description
19952 <reference>: prints the float number, this is the default:
19953 \begin_inset CommandInset ref
19955 reference "fig:Two-distorted-images"
19962 \begin_layout Description
19963 (<reference>): prints the float number within two parentheses, this is the
19964 style normally used to reference formulas, especially when the reference
19966 \begin_inset Quotes eld
19970 \begin_inset Quotes erd
19974 \begin_inset CommandInset ref
19983 \begin_layout Description
19984 <page>: prints the page number: Page
19985 \begin_inset space ~
19989 \begin_inset CommandInset ref
19990 LatexCommand pageref
19991 reference "fig:Two-distorted-images"
19998 \begin_layout Description
20000 \begin_inset space ~
20004 \begin_inset space ~
20007 <page>: prints the text "on page" and the page number:
20008 \begin_inset CommandInset ref
20009 LatexCommand vpageref
20010 reference "fig:Two-distorted-images"
20017 \begin_layout Description
20019 \begin_inset space ~
20023 \begin_inset space ~
20027 \begin_inset space ~
20030 <page>: prints the float number, the text "on page", and the page number:
20032 \begin_inset CommandInset ref
20034 reference "fig:Two-distorted-images"
20041 \begin_layout Description
20043 \begin_inset space ~
20046 reference: prints a self defined cross-reference format.
20048 \begin_inset Note Greyedout
20051 \begin_layout Plain Layout
20056 This feature is only available when you have the LaTeX-package
20068 \begin_layout Standard
20069 Note that the style <page> won't print the page number if the label is on
20070 the previous, the same, or the next page.
20072 \begin_inset space \space{}
20076 \begin_inset Quotes eld
20084 \begin_inset Quotes erd
20090 \begin_layout Standard
20091 The number and current page of the referred document part in the output,
20092 is automatically calculated by LaTeX.
20093 The varieties are adjusted in the field
20097 of the cross-reference window, that appear when you click on the cross-referenc
20101 \begin_layout Subsection
20102 Automatic Reference Naming
20106 \begin_layout Plain Layout
20107 References ! Automatic Reference Naming
20115 \begin_layout Standard
20124 \begin_layout Plain Layout
20125 LaTeX-packages ! hyperref
20130 , that is enabled in the
20138 dialog, provides a very useful feature that cross-references automatically
20139 include the name of the referenced floats (or text parts like
20144 So you will save to write e.g.
20145 \begin_inset space \space{}
20149 \begin_inset Quotes eld
20153 \begin_inset Quotes erd
20156 before every reference to a figure.
20157 To use this feature, enable
20161 and insert this line to the LaTeX preamble:
20164 \begin_layout Standard
20180 \begin_layout Standard
20181 When you prefer other reference names than the default ones, for example
20182 you want instead of
20183 \begin_inset Quotes eld
20187 \begin_inset Quotes erd
20191 \begin_inset Quotes eld
20195 \begin_inset space \thinspace{}
20199 \begin_inset Quotes eld
20202 , you can redefine the name by inserting this to the preamble:
20205 \begin_layout Standard
20216 sectionautorefname}
20217 \begin_inset Newline newline
20224 \begin_layout Plain Layout
20238 \begin_layout Standard
20239 When you are using another document language than English, replace
20240 \begin_inset Newline newline
20255 , where *** is the name of the used language.
20258 \begin_layout Standard
20259 To get automatic names, but not for certain reference types, for example
20260 not for equations, use this preamble code:
20263 \begin_layout Standard
20271 \begin_inset Newline newline
20281 \begin_inset Newline newline
20292 equationautorefname}
20293 \begin_inset Newline newline
20300 \begin_layout Plain Layout
20316 \begin_layout Standard
20317 More about this topic can be found in
20322 \begin_inset CommandInset citation
20331 \begin_layout Standard
20332 \begin_inset Note Greyedout
20335 \begin_layout Plain Layout
20340 Automatic reference naming cannot be used when you use cross-references
20344 \begin_inset space ~
20349 style, as described in section
20350 \begin_inset space ~
20354 \begin_inset CommandInset ref
20356 reference "sub:Cross-Reference-Formats"
20368 \begin_layout Standard
20373 manual is an example where automatic reference naming is used.
20376 \begin_layout Subsection
20378 \begin_inset CommandInset label
20380 name "sub:Reference-Position"
20388 \begin_layout Plain Layout
20389 References ! Reference Position
20397 \begin_layout Standard
20406 \begin_layout Plain Layout
20407 LaTeX-packages ! hyperref
20420 dialog to link cross-references in the output, you will see that clicking
20421 on an image float reference jumps to the image label.
20422 The caption will be the first text part on the screen, so that you cannot
20423 see the image without scrolling.
20424 This is because the reference link anchor is placed at the position of
20426 With the use of the package
20434 \begin_layout Plain Layout
20435 LaTeX-packages ! hypcap
20440 , which is part of the LaTeX-package
20448 \begin_layout Plain Layout
20449 LaTeX-packages ! oberdiek
20454 , the link anchor is placed at the beginning of a float.
20455 To use this feature for figure floats, load
20459 in the document preamble with the line
20462 \begin_layout Standard
20467 usepackage[figure]{hypcap}
20470 \begin_layout Standard
20475 for all float types but this is not recommended for stability reasons.
20476 For more informations, have a look at
20481 \begin_inset CommandInset citation
20490 \begin_layout Standard
20491 \begin_inset Note Greyedout
20494 \begin_layout Plain Layout
20503 has no effect for references to subfigures.
20511 \begin_layout Section
20513 \begin_inset CommandInset label
20515 name "sec:Float-Placement"
20523 \begin_layout Plain Layout
20532 \begin_layout Standard
20533 Right-clicking on a float-box opens a dialog where you can alter the placement
20534 options that LaTeX uses for positioning the float.
20535 \begin_inset Newline newline
20541 \begin_inset space ~
20546 is only useful for two-column documents: If you select it, the float will
20547 span across both columns on the page instead of being confined to just
20549 \begin_inset Newline newline
20555 \begin_inset space ~
20560 is used to rotate floats, see section
20561 \begin_inset CommandInset ref
20563 reference "sec:Rotated-Floats"
20570 \begin_layout Standard
20571 You can use one ore more of the following options in the float dialog to
20572 set the placement for a particular float when you uncheck the option
20575 \begin_inset space ~
20579 \begin_inset space ~
20587 \begin_layout Description
20589 \begin_inset space ~
20593 \begin_inset space ~
20596 possible try to place the float on the position where it is inserted
20599 \begin_layout Description
20601 \begin_inset space ~
20605 \begin_inset space ~
20608 page try to place the float on the top of the current page
20611 \begin_layout Description
20613 \begin_inset space ~
20617 \begin_inset space ~
20620 page try to place the float on the bottom of the current page
20623 \begin_layout Description
20625 \begin_inset space ~
20629 \begin_inset space ~
20632 floats try to place the float on an own page
20635 \begin_layout Standard
20636 The order of the above option is
20641 That means, if you use the default placement, LaTeX will first try out
20645 \begin_inset space ~
20649 \begin_inset space ~
20657 \begin_inset space ~
20661 \begin_inset space ~
20666 , and then the others.
20667 If you don't use the default, LaTeX will try only the checked options but
20669 If none of the 4 placements are possible the procedure is internally repeated
20670 but it is tried to put the float on the following page.
20673 \begin_layout Standard
20674 By default, each option has its own rules:
20677 \begin_layout Labeling
20678 \labelwidthstring 00.00.0000
20682 \begin_inset space ~
20686 \begin_inset space ~
20691 only floats occupying less than 70
20692 \begin_inset space \thinspace{}
20695 % of the page can be placed at the top of a page (
20704 \begin_layout Labeling
20705 \labelwidthstring 00.00.0000
20709 \begin_inset space ~
20713 \begin_inset space ~
20718 : only floats occupying less than 30
20719 \begin_inset space \thinspace{}
20722 % of the page can be placed at the bottom of a page.
20732 \begin_layout Labeling
20733 \labelwidthstring 00.00.0000
20737 \begin_inset space ~
20741 \begin_inset space ~
20746 : only if more than 50
20747 \begin_inset space \thinspace{}
20750 % of the page are occupied by floats, several floats can be set together
20761 \begin_layout Standard
20762 If you don't like these rules, you can ignore them by using the additional
20766 \begin_inset space ~
20770 \begin_inset space ~
20776 \begin_inset Newline newline
20779 You can also redefine the rules with LaTeX-commands that are given in parenthese
20780 s behind the rules description above.
20781 To increase for example the often too small default of the bottom-rule
20783 \begin_inset space \thinspace{}
20786 % of the page, add this line to your document preamble:
20789 \begin_layout Standard
20796 bottomfraction}{0.5}
20799 \begin_layout Standard
20800 Sometimes you might need, under all circumstances, a float to be placed
20801 exactly at the position where it is inserted.
20802 For this case you can use the option
20805 \begin_inset space ~
20811 Use this option very rarely and only if the document is nearly ready to
20813 Because the float is then no longer able to
20814 \begin_inset Quotes eld
20818 \begin_inset Quotes erd
20821 when you change your document and this will often destroy the page layout.
20824 \begin_layout Standard
20825 There are no placement options for text wrap floats, because they are always
20826 surrounded by the text of a certain paragraph.
20827 \begin_inset VSpace bigskip
20833 \begin_layout Standard
20834 Sometimes you have the problem that a float is placed at the top of a page
20835 while its corresponding section starts at the middle of the page, so that
20836 the reader could think the float is part of the previous section.
20837 To avoid this the LaTeX-command
20844 It suppresses a given float placement for the page where it is inserted
20845 and can therefore be used to avoid that floats could be set before a section
20847 To get this, add these commands to your document preamble:
20850 \begin_layout Standard
20860 \begin_inset Newline newline
20874 \begin_layout Standard
20875 You can define the same for all section headings, like chapters and subsections.
20876 This definition is not recommended to be used for small text parts like
20877 subsubsections because LaTeX may then have problems to find a suitable
20881 \begin_layout Standard
20882 \begin_inset VSpace bigskip
20885 In some cases it is required to have all figures/tables at the end of the
20887 For this purpose the LaTeX-package
20895 \begin_layout Plain Layout
20896 LaTeX-packages ! endfloat
20902 It puts all figure and table floats at the end of the document into own
20904 At the original float position a text hint like
20905 \begin_inset Quotes eld
20911 \begin_inset space ~
20917 \begin_inset Quotes erd
20921 The endfloat-package is loaded in the preamble with the line
20924 \begin_layout Standard
20929 usepackage[options]{endfloat}
20932 \begin_layout Standard
20933 There are various package options to format the created figure/table sections.
20934 For more information we refer to the
20939 \begin_inset CommandInset citation
20946 \begin_inset Newline newline
20950 \begin_inset Note Greyedout
20953 \begin_layout Plain Layout
20958 doesn't provide an automatic translation for the text hint, you have to
20959 do this manually, see section
20960 \begin_inset space ~
20964 \begin_inset CommandInset citation
20976 \begin_inset Newline newline
20980 \begin_inset Note Greyedout
20983 \begin_layout Plain Layout
20988 There is currently a bug in
20992 when the caption contains a German
20993 \begin_inset Quotes eld
20997 \begin_inset Quotes erd
21001 Use in this case the command
21002 \begin_inset Quotes eld
21012 \begin_inset Quotes erd
21015 in TeX-Code instead of
21016 \begin_inset Quotes eld
21020 \begin_inset Quotes erd
21031 \begin_layout Standard
21032 \begin_inset VSpace bigskip
21035 For more details about float placements, have a look at LaTeX books,
21036 \begin_inset CommandInset citation
21038 key "latexcompanion,latexguide,latexbook"
21045 \begin_layout Section
21047 \begin_inset CommandInset label
21049 name "sec:Rotated-Floats"
21057 \begin_layout Plain Layout
21066 \begin_layout Standard
21067 Especially for wide tables you might have floats rotated.
21068 To rotate a whole float including the caption, right-click on the float-box
21072 \begin_inset space ~
21080 \begin_layout Standard
21081 Rotated floats are always placed on its own page (or column, in case you
21082 have a multi-column document).
21083 You can let them span several columns using the float settings option
21086 \begin_inset space ~
21092 Floats are rotated so that you can read them from the outside margin.
21093 To force a certain rotation direction for all pages, you can add either
21102 to the document class options.
21105 \begin_layout Standard
21106 Referencing rotated floats is the same like for normal floats, the caption
21107 format is also the same: Table
21108 \begin_inset space ~
21112 \begin_inset CommandInset ref
21114 reference "tab:Rotated-table"
21118 is an example of a rotated table float.
21121 \begin_layout Standard
21122 \begin_inset Note Greyedout
21125 \begin_layout Plain Layout
21130 Not all DVI-viewers are able to display rotated floats.
21138 \begin_layout Standard
21139 \begin_inset Float table
21144 \begin_layout Plain Layout
21145 \begin_inset Caption
21147 \begin_layout Plain Layout
21148 \begin_inset CommandInset label
21150 name "tab:Rotated-table"
21162 \begin_layout Plain Layout
21164 \begin_inset Tabular
21165 <lyxtabular version="3" rows="1" columns="5">
21167 <column alignment="center" valignment="top" width="0">
21168 <column alignment="center" valignment="top" width="0">
21169 <column alignment="center" valignment="top" width="0">
21170 <column alignment="center" valignment="top" width="0">
21171 <column alignment="center" valignment="top" width="0">
21173 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21176 \begin_layout Plain Layout
21182 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21185 \begin_layout Plain Layout
21191 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21194 \begin_layout Plain Layout
21200 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21203 \begin_layout Plain Layout
21209 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21212 \begin_layout Plain Layout
21231 \begin_layout Section
21232 Floats Side by Side
21236 \begin_layout Plain Layout
21237 Floats ! Side by side
21245 \begin_layout Standard
21246 To place floats side by side, like for Figure
21247 \begin_inset space ~
21251 \begin_inset CommandInset ref
21253 reference "fig:Float-left"
21258 \begin_inset CommandInset ref
21260 reference "fig:Float-right"
21269 In it two minipage boxes are inserted.
21273 \begin_layout Plain Layout
21274 Minipages are explained in section
21275 \begin_inset space ~
21279 \begin_inset CommandInset ref
21281 reference "sec:Minipages"
21290 The width is set to 45
21291 \begin_inset space \thinspace{}
21295 \begin_inset space \thinspace{}
21298 column% and the box alignment to
21303 The minipage boxes contain the image and the caption in the same way as
21304 they are in a float.
21305 The only difference is that the image unit
21308 \begin_inset space ~
21312 \begin_inset space ~
21317 is now calculated according to the width of the minipage boxes.
21320 \begin_layout Standard
21321 \begin_inset Float figure
21326 \begin_layout Plain Layout
21327 \begin_inset Box Frameless
21336 height_special "totalheight"
21339 \begin_layout Plain Layout
21341 \begin_inset Graphics
21342 filename clipart/mobius.eps
21345 scaleBeforeRotation
21352 \begin_layout Plain Layout
21353 \begin_inset Caption
21355 \begin_layout Plain Layout
21356 \begin_inset CommandInset label
21358 name "fig:Float-left"
21362 Float on the left side.
21373 \begin_inset space \hfill{}
21377 \begin_inset Box Frameless
21386 height_special "totalheight"
21389 \begin_layout Plain Layout
21391 \begin_inset Graphics
21392 filename clipart/platypus.eps
21395 scaleBeforeRotation
21402 \begin_layout Plain Layout
21403 \begin_inset Caption
21405 \begin_layout Plain Layout
21406 \begin_inset CommandInset label
21408 name "fig:Float-right"
21412 Float on the right side.
21425 \begin_layout Plain Layout
21434 \begin_layout Section
21439 \begin_layout Plain Layout
21440 Caption ! Formatting
21449 \begin_layout Plain Layout
21450 Floats ! Caption Formatting
21456 \begin_inset CommandInset label
21458 name "sec:Caption-Formatting"
21465 \begin_layout Standard
21470 environment is the default paragraph environment for
21475 On the LyX screen captions appear as label, e.g.
21476 \begin_inset space \space{}
21480 \begin_inset Quotes eld
21488 \begin_inset Quotes erd
21491 followed by the caption text.
21493 \begin_inset Quotes eld
21497 \begin_inset Quotes erd
21500 is the actual reference number.
21501 By default the label and the number are in the same font as the caption
21502 text and a colon follows the number to divide the label from the text.
21503 This caption format is not suitable for all document formats.
21507 \begin_layout Standard
21508 To change the default caption format, load the LaTeX-package
21516 \begin_layout Plain Layout
21517 LaTeX-packages ! caption
21522 in the document preamble with this line:
21525 \begin_layout Standard
21530 usepackage[format definition]{caption}
21533 \begin_layout Standard
21534 To have for example the label and the number in sans-serif bold font and
21535 the table captions always above the table like in this document, use the
21539 \begin_layout Standard
21544 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
21547 \begin_layout Standard
21548 You can also define different caption formats for the different float types.
21549 In this case load the
21553 package without format specific options and define the different formats
21554 with the help of the command
21557 \begin_layout Standard
21562 captionsetup[float type]{format definition}
21565 \begin_layout Standard
21566 in the document preamble.
21567 For example the caption formats of Figure
21568 \begin_inset space ~
21572 \begin_inset CommandInset ref
21574 reference "fig:This-is-an-fig"
21579 \begin_inset space ~
21583 \begin_inset CommandInset ref
21585 reference "tab:This-is-an-tab"
21589 can be created using these commands in the document preamble:
21592 \begin_layout Standard
21597 usepackage[tableposition=top]{caption}
21600 \begin_inset Newline newline
21607 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
21608 \begin_inset Newline newline
21615 \begin_layout Plain Layout
21623 captionsetup[figure]
21631 \begin_inset Newline newline
21636 captionsetup[table]{labelfont={bf,sf}}
21639 \begin_layout Standard
21640 \begin_inset Note Greyedout
21643 \begin_layout Plain Layout
21652 has no effect when a
21660 \begin_layout Plain Layout
21661 LaTeX-packages ! koma-script
21666 document class is used.
21667 In this case the document class option
21679 \begin_layout Standard
21680 For more information about the package
21684 we refer to its documentation
21685 \begin_inset CommandInset citation
21694 \begin_layout Standard
21695 To change the label name from e.g.
21696 \begin_inset space \space{}
21700 \begin_inset Quotes eld
21704 \begin_inset Quotes erd
21708 \begin_inset Quotes eld
21712 \begin_inset Quotes erd
21715 use this preamble command:
21718 \begin_layout Standard
21725 fnum@figure}{Image~
21730 \begin_layout Standard
21737 inserts the figure number and
21740 \begin_inset Quotes eld
21746 \begin_inset Quotes erd
21749 creates a protected space.
21752 \begin_layout Standard
21753 \begin_inset VSpace bigskip
21764 \begin_layout Plain Layout
21765 LaTeX-packages ! koma-script
21772 article (koma-script)
21780 letter (koma-script)
21784 report (koma-script)
21787 \begin_inset space \thinspace{}
21790 ), you can alternatively to the
21798 's built-in command
21805 For example, to have the caption label in bold, add this command to your
21809 \begin_layout Standard
21814 setkomafont{captionlabel}{
21819 \begin_layout Standard
21820 For more information about
21831 \begin_inset CommandInset citation
21840 \begin_layout Standard
21844 \begin_layout Plain Layout
21848 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
21855 \begin_inset Note Note
21858 \begin_layout Plain Layout
21859 The caption format is changed only for this example.
21867 \begin_layout Standard
21868 \begin_inset Float figure
21874 \begin_layout Plain Layout
21876 \begin_inset Graphics
21877 filename clipart/mobius.eps
21880 scaleBeforeRotation
21887 \begin_layout Plain Layout
21888 \begin_inset Caption
21890 \begin_layout Plain Layout
21891 \begin_inset CommandInset label
21893 name "fig:This-is-an-fig"
21897 This is an example figure caption that is longer than one line to show the
21898 different caption format.
21899 Here a self-defined caption format is used.
21912 \begin_layout Standard
21916 \begin_layout Plain Layout
21920 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
21929 \begin_layout Standard
21930 \begin_inset Float table
21936 \begin_layout Plain Layout
21937 \begin_inset Caption
21939 \begin_layout Plain Layout
21940 \begin_inset CommandInset label
21942 name "tab:This-is-an-tab"
21946 This is an example table caption that is longer than one line to show the
21947 different caption format.
21948 Here the standard caption format for tables in this document is used.
21956 \begin_layout Plain Layout
21958 \begin_inset Tabular
21959 <lyxtabular version="3" rows="1" columns="5">
21961 <column alignment="center" valignment="top" width="0">
21962 <column alignment="center" valignment="top" width="0">
21963 <column alignment="center" valignment="top" width="0">
21964 <column alignment="center" valignment="top" width="0">
21965 <column alignment="center" valignment="top" width="0">
21967 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21970 \begin_layout Plain Layout
21976 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21979 \begin_layout Plain Layout
21985 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21988 \begin_layout Plain Layout
21994 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21997 \begin_layout Plain Layout
22003 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22006 \begin_layout Plain Layout
22025 \begin_layout Section
22030 \begin_layout Plain Layout
22031 Caption ! Placement
22040 \begin_layout Plain Layout
22041 Floats ! Caption Placement
22047 \begin_inset CommandInset label
22049 name "sec:Caption-Placement"
22056 \begin_layout Standard
22057 The common caption placement rule is:
22060 \begin_layout Description
22061 Figure: Caption is set below the figure
22064 \begin_layout Description
22065 Table: Caption is set above the table
22068 \begin_layout Standard
22069 Having the caption above the table is unfortunately not supported in LaTeX's
22071 That means if you are using the document classes
22087 there will be no space between the caption and the table.
22088 To insert the needed space, add the following option to the load command
22089 of the LaTeX-package
22093 in your document preamble
22097 \begin_layout Plain Layout
22099 \begin_inset space ~
22103 \begin_inset CommandInset ref
22105 reference "sec:Caption-Formatting"
22109 for more information of the package
22121 \begin_layout Standard
22127 \begin_layout Standard
22136 \begin_layout Plain Layout
22137 LaTeX-packages ! koma-script
22144 article (koma-script)
22152 letter (koma-script)
22156 report (koma-script)
22159 \begin_inset space \thinspace{}
22162 ), you can alternatively to the
22166 package set the document class option
22173 \begin_layout Standard
22174 \begin_inset VSpace bigskip
22177 It is also possible to set the caption beside a figure or table.
22178 To get this the LaTeX-package
22186 \begin_layout Plain Layout
22187 LaTeX-packages ! sidecap
22192 has to be loaded in the document preamble with the line
22195 \begin_layout Standard
22200 usepackage[option]{sidecap}
22203 \begin_layout Standard
22204 If you set no option, the caption is placed on the side of the outer page
22205 margin -- to the right on odd pages, to the left on even pages.
22206 You can change the placement to inner margin with the option
22211 To force the placement always to the right or left, use the option
22222 \begin_layout Standard
22226 \begin_layout Plain Layout
22236 \begin_inset Note Note
22239 \begin_layout Plain Layout
22240 The following section will only be displayed when the LaTeX-package
22252 \begin_layout Standard
22253 To place in LyX the caption of a float on the side, it is necessary to add
22254 these commands to the document preamble:
22257 \begin_layout Standard
22263 \begin_layout Standard
22271 \begin_inset Newline newline
22278 \begin_layout Plain Layout
22294 \begin_inset Newline newline
22301 \begin_layout Plain Layout
22317 \begin_inset Newline newline
22324 \begin_layout Plain Layout
22335 renewenvironment{table}{
22342 \begin_layout Standard
22350 \begin_inset Newline newline
22357 \begin_layout Plain Layout
22373 \begin_inset Newline newline
22380 \begin_layout Plain Layout
22398 \begin_layout Standard
22406 \begin_inset Newline newline
22413 \begin_layout Plain Layout
22429 \begin_inset Newline newline
22436 \begin_layout Plain Layout
22452 \begin_inset Newline newline
22459 \begin_layout Plain Layout
22470 renewenvironment{figure}{
22477 \begin_layout Standard
22485 \begin_inset Newline newline
22492 \begin_layout Plain Layout
22508 \begin_inset Newline newline
22515 \begin_layout Plain Layout
22533 \begin_layout Standard
22539 \begin_layout Standard
22540 The commands allow you to redefine the floats so that the caption is set
22542 For figure floats use the command
22545 \begin_layout Standard
22553 \begin_layout Standard
22554 in TeX-Code before the float.
22555 Behind the float insert the command
22558 \begin_layout Standard
22566 \begin_layout Standard
22567 in TeX-Code to get back to the original float definition.
22570 \begin_layout Standard
22571 For table floats use the corresponding commands
22574 \begin_layout Standard
22588 \begin_layout Standard
22590 \begin_inset space ~
22594 \begin_inset CommandInset ref
22596 reference "fig:cap-beside-fig"
22601 \begin_inset space ~
22605 \begin_inset CommandInset ref
22607 reference "tab:cap-beside-tab"
22611 are examples where the caption is set beside.
22614 \begin_layout Standard
22615 You can see in the examples that the caption text appears at the top of
22616 the floats for table floats and at the bottom for figure floats.
22617 To change this, you can use the command
22620 \begin_layout Standard
22625 sidecaptionvpos{float type}{placement}
22628 \begin_layout Standard
22629 in the document preamble or in TeX-Code before the float.
22630 The float type is either
22638 , the placement can be
22639 \begin_inset Quotes eld
22647 \begin_inset Quotes erd
22651 \begin_inset Quotes eld
22659 \begin_inset Quotes erd
22663 \begin_inset Quotes eld
22671 \begin_inset Quotes erd
22675 To have for example the caption of figure floats vertically centered, use
22679 \begin_layout Standard
22684 sidecaptionvpos{figure}{c}
22687 \begin_layout Standard
22688 This was used for Figure
22689 \begin_inset space ~
22693 \begin_inset CommandInset ref
22695 reference "fig:cap-beside-fig-2"
22702 \begin_layout Standard
22703 \begin_inset VSpace medskip
22706 For more information about the package
22710 we refer to its documentation
22711 \begin_inset CommandInset citation
22720 \begin_layout Standard
22721 \begin_inset Note Greyedout
22724 \begin_layout Plain Layout
22737 \begin_layout Plain Layout
22738 LaTeX-packages ! hypcap
22743 , described in section
22744 \begin_inset space ~
22748 \begin_inset CommandInset ref
22750 reference "sub:Reference-Position"
22754 , has no effect on floats with the caption set beside.
22762 \begin_layout Standard
22766 \begin_layout Plain Layout
22778 \begin_layout Standard
22779 \begin_inset Float figure
22784 \begin_layout Plain Layout
22785 \begin_inset Graphics
22786 filename clipart/escher-lsd.eps
22788 scaleBeforeRotation
22795 \begin_layout Plain Layout
22796 \begin_inset Caption
22798 \begin_layout Plain Layout
22799 \begin_inset CommandInset label
22801 name "fig:cap-beside-fig"
22805 This is a caption beside a figure.
22818 \begin_layout Standard
22822 \begin_layout Plain Layout
22834 \begin_layout Standard
22835 \begin_inset Float table
22840 \begin_layout Plain Layout
22841 \begin_inset Caption
22843 \begin_layout Plain Layout
22844 \begin_inset CommandInset label
22846 name "tab:cap-beside-tab"
22850 This is a caption beside a table.
22858 \begin_layout Plain Layout
22859 \begin_inset Tabular
22860 <lyxtabular version="3" rows="4" columns="5">
22862 <column alignment="center" valignment="top" width="0">
22863 <column alignment="center" valignment="top" width="0">
22864 <column alignment="center" valignment="top" width="0">
22865 <column alignment="center" valignment="top" width="0">
22866 <column alignment="center" valignment="top" width="0">
22868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22871 \begin_layout Plain Layout
22877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22880 \begin_layout Plain Layout
22886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22889 \begin_layout Plain Layout
22895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22898 \begin_layout Plain Layout
22904 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22907 \begin_layout Plain Layout
22915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22918 \begin_layout Plain Layout
22924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22927 \begin_layout Plain Layout
22933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22936 \begin_layout Plain Layout
22942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22945 \begin_layout Plain Layout
22951 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22954 \begin_layout Plain Layout
22962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22965 \begin_layout Plain Layout
22971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22974 \begin_layout Plain Layout
22980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22983 \begin_layout Plain Layout
22989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22992 \begin_layout Plain Layout
22998 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23001 \begin_layout Plain Layout
23009 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23012 \begin_layout Plain Layout
23018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23021 \begin_layout Plain Layout
23027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23030 \begin_layout Plain Layout
23036 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23039 \begin_layout Plain Layout
23045 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23048 \begin_layout Plain Layout
23067 \begin_layout Standard
23071 \begin_layout Plain Layout
23083 \begin_layout Standard
23087 \begin_layout Plain Layout
23091 sidecaptionvpos{figure}{c}
23097 \begin_inset Float figure
23102 \begin_layout Plain Layout
23103 \begin_inset Graphics
23104 filename clipart/escher-lsd.eps
23106 scaleBeforeRotation
23113 \begin_layout Plain Layout
23114 \begin_inset Caption
23116 \begin_layout Plain Layout
23117 \begin_inset CommandInset label
23119 name "fig:cap-beside-fig-2"
23123 This is a vertically centered caption beside a figure.
23136 \begin_layout Standard
23140 \begin_layout Plain Layout
23152 \begin_layout Standard
23156 \begin_layout Plain Layout
23166 \begin_inset Note Note
23169 \begin_layout Plain Layout
23170 The following will be displayed when the LaTeX-package
23182 \begin_layout Standard
23183 You need to install the LaTeX-package
23187 to see the following part of this section in the output.
23190 \begin_layout Standard
23194 \begin_layout Plain Layout
23206 \begin_layout Section
23211 \begin_layout Plain Layout
23212 Floats ! Float Lists
23220 \begin_layout Standard
23221 Similar to the the table of contents where the sections of the document
23222 are listed, there are listings for all float types, like the figures of
23224 You can insert them via the
23226 Insert\SpecialChar \menuseparator
23228 \begin_inset space ~
23232 \begin_inset space ~
23240 \begin_layout Standard
23241 The list entries are the float captions or its short title, the float number,
23242 and the page number where they appear in the document.
23245 \begin_layout Standard
23246 You can find the list of figures and tables at the end of this document.
23249 \begin_layout Chapter
23253 \begin_layout Section
23258 \begin_layout Plain Layout
23267 \begin_layout Standard
23268 Notes are inserted with the toolbar button
23269 \begin_inset Graphics
23270 filename ../images/note-insert.png
23272 scaleBeforeRotation
23278 Insert\SpecialChar \menuseparator
23282 There are three types of notes:
23285 \begin_layout Description
23287 \begin_inset space ~
23290 Note This note type is for internal notes that won't appear in the output.
23291 Its note-box looks like this:
23292 \begin_inset Newline newline
23296 \begin_inset Newline newline
23300 \begin_inset Graphics
23301 filename clipart/LyXNoteImageQt4.png
23304 scaleBeforeRotation
23309 \begin_inset Note Note
23312 \begin_layout Plain Layout
23313 This is text in a note box that doesn't appear in the output.
23321 \begin_layout Description
23322 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
23323 ent, when you export the document to LaTeX via the menu
23325 File\SpecialChar \menuseparator
23326 Export\SpecialChar \menuseparator
23327 LaTeX (pdflatex) / (plain)
23330 Its note-box looks like this:
23331 \begin_inset Newline newline
23335 \begin_inset Newline newline
23339 \begin_inset Graphics
23340 filename clipart/CommentNoteImageQt4.png
23343 scaleBeforeRotation
23348 \begin_inset Note Comment
23351 \begin_layout Plain Layout
23352 This is text in a note box that only appears as comment in LaTeX-files.
23360 \begin_layout Description
23362 \begin_inset space ~
23365 Out This note will appear in the output as grey text.
23366 Its note-box looks like this:
23367 \begin_inset Newline newline
23371 \begin_inset Newline newline
23375 \begin_inset Graphics
23376 filename clipart/GreyedOutNoteImageQt4.png
23379 scaleBeforeRotation
23384 \begin_inset Newline newline
23391 \begin_layout Plain Layout
23395 renewenvironment{lyxgreyedout}
23398 \begin_layout Plain Layout
23402 textcolor[gray]{0.8}
23412 \begin_inset Note Greyedout
23415 \begin_layout Plain Layout
23420 \begin_layout Plain Layout
23421 This is an example footnote within a greyed out note.
23426 of a comment that appears in the output as grey text.
23435 \begin_layout Plain Layout
23439 renewenvironment{lyxgreyedout}
23442 \begin_layout Plain Layout
23456 \begin_inset Note Note
23459 \begin_layout Plain Layout
23460 The greyed out note is here redefined to show it with the original LyX definitio
23461 n because greyed out notes are redefined in the preamble of this document,
23462 as described below, to have blue text.
23468 \begin_inset Newline newline
23472 \begin_inset Newline newline
23475 As you can see in the example, the first line of greyed out notes is a bit
23476 indented and greyed out notes can have footnotes.
23479 \begin_layout Standard
23480 \begin_inset VSpace bigskip
23483 When you use the toolbar button
23484 \begin_inset Graphics
23485 filename ../images/note-insert.png
23487 scaleBeforeRotation
23494 \begin_inset space ~
23500 You can switch between the five note types by right-clicking on the note-box.
23505 If you want to turn existing text into a note, mark it and click on the
23519 To change a note to text, press the backspace key when the cursor is in
23520 the first position of a note, or press the deletey key when the cursor
23521 is in the very last position of the note, respectively.
23524 \begin_layout Standard
23525 \begin_inset VSpace bigskip
23528 You can change the text color of the greyed out notes in the preamble with
23529 the following command:
23532 \begin_layout Standard
23537 renewenvironment{lyxgreyedout}
23538 \begin_inset Newline newline
23545 \begin_layout Plain Layout
23563 \begin_layout Standard
23564 The available colors and the method to define own colors is explained in
23566 \begin_inset space ~
23570 \begin_inset CommandInset ref
23572 reference "sec:Colored-Tables"
23579 \begin_layout Standard
23580 Notes that appear in blue in this document are set using greyed out notes
23584 \begin_layout Section
23586 \begin_inset CommandInset label
23588 name "sec:Footnotes"
23596 \begin_layout Plain Layout
23606 \begin_layout Plain Layout
23615 \begin_layout Standard
23616 Footnotes can be inserted using the toolbar button
23617 \begin_inset Graphics
23618 filename ../images/footnote-insert.png
23620 scaleBeforeRotation
23626 Insert\SpecialChar \menuseparator
23638 then the following footnote-box:
23639 \begin_inset Graphics
23640 filename clipart/footnoteQt4.png
23642 scaleBeforeRotation
23650 where you can enter the footnote text.
23651 If you want to turn existing text into a footnote, mark it and click on
23673 to text, press the Backspace key when the cursor is in the first position
23682 , or press the Delete key when the cursor is in the very last position of
23694 \begin_layout Standard
23695 Here is an example footnote:
23703 \begin_layout Plain Layout
23704 \begin_inset CommandInset label
23706 name "foot:This-is-an"
23710 This is an example footnote.
23723 \begin_layout Plain Layout
23727 newcounter{MyRepeatFoot}
23730 \begin_layout Plain Layout
23734 setcounter{MyRepeatFoot}{
23744 \begin_layout Standard
23745 The footnote will appear in the output as a superscript number at the text
23746 position where the footnote box is placed.
23747 The footnote text is placed at the bottom of the current page.
23748 The footnote number is calculated by LaTeX, the numbers are consecutive.
23749 It depends on your document-class, if the footnote number is reset for
23753 \begin_layout Standard
23754 Footnotes can be referenced like floats: Insert a label into the footnote
23755 and cross-reference this label in the text as described in section
23756 \begin_inset space ~
23760 \begin_inset CommandInset ref
23762 reference "sec:Referencing-Floats"
23767 \begin_inset Newline newline
23770 This is a cross-reference of Footnote
23771 \begin_inset space ~
23775 \begin_inset CommandInset ref
23777 reference "foot:This-is-an"
23784 \begin_layout Standard
23785 \begin_inset VSpace defskip
23788 To use footnotes within tables, you have to use minipages, see section
23789 \begin_inset space ~
23793 \begin_inset CommandInset ref
23795 reference "sec:Minipages"
23800 Footnotes within longtables are described in section
23801 \begin_inset space ~
23805 \begin_inset CommandInset ref
23807 reference "sub:Footnotes-in-Longtables"
23814 \begin_layout Standard
23815 \begin_inset VSpace defskip
23818 To create only a mark for a footnote, use the command
23822 footnotemark[number]
23825 This is used when you have the same annotation several times in a text
23826 but doesn't want to print the footnote text every time.
23827 \begin_inset Newline newline
23830 As you don't know the number of the repeating footnote while you are writing
23831 the text, you have to store its number.
23832 For the following footnote mark example, these commands were inserted in
23833 TeX-Code behind Footnote
23834 \begin_inset space ~
23838 \begin_inset CommandInset ref
23840 reference "foot:This-is-an"
23844 to store the footnote number:
23847 \begin_layout Standard
23852 newcounter{MyRepeatFoot}
23853 \begin_inset Newline newline
23858 setcounter{MyRepeatFoot}{
23863 \begin_layout Standard
23864 The footnote mark was then created with this command:
23867 \begin_layout Standard
23877 \begin_layout Standard
23878 Here is an example footnote mark:
23886 \begin_layout Plain Layout
23900 \begin_layout Subsection
23902 \begin_inset CommandInset label
23904 name "sub:Footnote-Numbering"
23912 \begin_layout Plain Layout
23913 Footnotes ! Numbering
23921 \begin_layout Standard
23922 To reset the footnote number back to 1 after each section
23924 , add this command to your document preamble:
23927 \begin_layout Standard
23932 @addtoreset{footnote}{section}
23935 \begin_layout Standard
23936 \begin_inset VSpace bigskip
23939 The following preamble command changes the footnote numbering style to small
23943 \begin_layout Standard
23955 \begin_layout Standard
23959 \begin_layout Plain Layout
23972 This is a footnote with roman numbering:
23976 \begin_layout Plain Layout
23977 This is an example footnote with roman numbering.
23985 \begin_layout Standard
23986 To change the numbering style to capital roman numerals replace in the command
24001 \begin_inset Quotes eld
24005 \begin_inset Quotes erd
24008 footnotes with capital or small Latin letters use
24022 \begin_inset Quotes eld
24026 \begin_inset Quotes erd
24029 footnotes with symbols use
24038 \begin_layout Standard
24039 \begin_inset Note Greyedout
24042 \begin_layout Plain Layout
24047 You can only number 26 footnotes with Latin letters, because this numbering
24048 is limited to single letters.
24054 \begin_inset Newline newline
24058 \begin_inset Note Greyedout
24061 \begin_layout Plain Layout
24066 You can only number 9 footnotes with symbols.
24074 \begin_layout Standard
24075 To return to the default numbering style when you changed to another one,
24088 in the command above.
24092 \begin_layout Plain Layout
24108 \begin_layout Standard
24109 \begin_inset VSpace bigskip
24115 \begin_layout Standard
24116 If you want to have footnotes numbered in the scheme
24117 \begin_inset Quotes eld
24121 \begin_inset Quotes erd
24124 , add the following command to your document preamble:
24127 \begin_layout Standard
24132 numberwithin{footnote}{chapter}
24135 \begin_layout Standard
24136 To be able to use the command
24145 \begin_inset space ~
24150 in the document settings the option
24153 \begin_inset space ~
24157 \begin_inset space ~
24161 \begin_inset space ~
24169 \begin_layout Standard
24173 \begin_layout Plain Layout
24177 numberwithin{footnote}{chapter}
24182 This is another example footnote:
24188 \begin_layout Plain Layout
24189 This is a footnote numbered in the scheme
24190 \begin_inset Quotes eld
24194 \begin_inset Quotes erd
24208 \begin_layout Plain Layout
24224 \begin_layout Standard
24225 \begin_inset Note Greyedout
24228 \begin_layout Plain Layout
24239 always prints out the footnote number as arabic number; previous redefinitions
24240 to get non-arabic numbers are overwritten.
24248 \begin_layout Standard
24249 So to get for example the scheme
24250 \begin_inset Quotes eld
24256 \begin_inset Quotes erd
24259 , use this command instead of
24268 \begin_layout Standard
24282 \begin_layout Subsection
24287 \begin_layout Plain Layout
24288 Footnotes ! Placement
24296 \begin_layout Standard
24297 If you have several footnotes in one page, they appear without vertical
24298 space between them at the bottom of the page.
24299 To make them better readable you can e.g.
24300 \begin_inset space \space{}
24304 \begin_inset space \thinspace{}
24307 mm space with the following preamble command:
24310 \begin_layout Standard
24320 \begin_inset Newline newline
24334 \begin_layout Standard
24335 \begin_inset VSpace bigskip
24338 In a two-column document the footnotes appear at the bottom of every column,
24340 \begin_inset space ~
24344 \begin_inset CommandInset ref
24346 reference "fig:Standard-footnote-placement"
24351 If the footnotes should only appear at the bottom of the right column,
24353 \begin_inset space ~
24357 \begin_inset CommandInset ref
24359 reference "fig:Footnote-placement-in"
24363 , use the LaTeX-package
24371 \begin_layout Plain Layout
24372 LaTeX-packages ! ftnright
24377 with this command in the document preamble:
24380 \begin_layout Standard
24385 usepackage{ftnright}
24388 \begin_layout Standard
24389 \begin_inset Float figure
24395 \begin_layout Plain Layout
24399 \begin_layout Plain Layout
24409 \begin_inset Graphics
24410 filename clipart/without_fntright.pdf
24412 scaleBeforeRotation
24420 \begin_layout Plain Layout
24430 \begin_layout Plain Layout
24431 \begin_inset Caption
24433 \begin_layout Plain Layout
24434 \begin_inset CommandInset label
24436 name "fig:Standard-footnote-placement"
24440 Standard footnote placement in two-column documents.
24453 \begin_layout Standard
24454 \begin_inset Float figure
24460 \begin_layout Plain Layout
24464 \begin_layout Plain Layout
24474 \begin_inset Graphics
24475 filename clipart/with_fntright.pdf
24477 scaleBeforeRotation
24485 \begin_layout Plain Layout
24495 \begin_layout Plain Layout
24496 \begin_inset Caption
24498 \begin_layout Plain Layout
24499 \begin_inset CommandInset label
24501 name "fig:Footnote-placement-in"
24505 Footnote placement in two-column documents when the LaTeX-package
24522 \begin_layout Standard
24523 \begin_inset VSpace bigskip
24526 In some scientific literature it is usual to collect the footnotes and print
24527 them in a separate paragraph at the the end of a section, like in Figure
24528 \begin_inset space ~
24532 \begin_inset CommandInset ref
24534 reference "fig:Endnotes----footnotes"
24539 They are then so called
24540 \begin_inset Quotes eld
24544 \begin_inset Quotes erd
24551 \begin_layout Plain Layout
24557 To use endnotes instead of footnotes in your document, load the LaTeX-package
24566 \begin_layout Plain Layout
24567 LaTeX-packages ! endnotes
24572 with the document preamble lines
24575 \begin_layout Standard
24580 usepackage{endnotes}
24581 \begin_inset Newline newline
24593 \begin_layout Standard
24594 To insert the collected footnotes, insert the command
24597 \begin_layout Standard
24605 \begin_layout Standard
24606 in TeX-Code at the the end of a section or chapter.
24609 \begin_layout Standard
24610 \begin_inset Float figure
24615 \begin_layout Plain Layout
24620 \begin_layout Plain Layout
24630 \begin_inset Graphics
24631 filename clipart/endnotes.pdf
24632 scaleBeforeRotation
24640 \begin_layout Plain Layout
24650 \begin_layout Plain Layout
24651 \begin_inset Caption
24653 \begin_layout Plain Layout
24654 \begin_inset CommandInset label
24656 name "fig:Endnotes----footnotes"
24660 Endnotes -- footnotes are printed in a separate paragraph at the end of
24661 sections or chapters.
24674 \begin_layout Standard
24675 \begin_inset VSpace medskip
24678 The paragraph heading for the endnotes isn't automatically translated into
24679 the document language, this must be done manually.
24680 The following preamble command translate the default English name
24681 \begin_inset Quotes eld
24685 \begin_inset Quotes erd
24688 to the German translation
24689 \begin_inset Quotes eld
24693 \begin_inset Quotes erd
24699 \begin_layout Standard
24706 notesname}{Anmerkungen}
24709 \begin_layout Standard
24710 \begin_inset VSpace medskip
24713 The numbering of endnotes can be changed like the footnote numbering as
24714 described in section
24715 \begin_inset space ~
24719 \begin_inset CommandInset ref
24721 reference "sub:Footnote-Numbering"
24725 ; just replace the command
24738 To reset the endnote number use the command
24744 as described in section
24745 \begin_inset space ~
24749 \begin_inset CommandInset ref
24751 reference "sub:Footnote-Numbering"
24755 and replace the command parameter
24766 \begin_layout Standard
24767 To create only a mark for an endnote, use the command
24771 endnotemark[number]
24773 similar to the command
24779 , described in section
24780 \begin_inset space ~
24784 \begin_inset CommandInset ref
24786 reference "sec:Footnotes"
24793 \begin_layout Standard
24794 \begin_inset VSpace bigskip
24797 Footnotes can also be placed in the page margin and the footnote text alignment
24798 can be changed, see the LaTeX-package
24806 \begin_layout Plain Layout
24807 LaTeX-packages ! footmisc
24813 \begin_inset CommandInset citation
24819 for more information about this.
24822 \begin_layout Standard
24823 For various further footnote formatting issues have a look at LaTeX-books,
24825 \begin_inset CommandInset citation
24827 key "latexcompanion,latexguide,latexbook"
24834 \begin_layout Section
24839 \begin_layout Plain Layout
24840 Notes ! Margin Notes
24848 \begin_layout Standard
24849 Margin notes look and behave in LyX like footnotes.
24850 They are inserted via the menu
24852 Insert\SpecialChar \menuseparator
24854 \begin_inset space ~
24859 or the toolbar button
24860 \begin_inset Graphics
24861 filename ../images/marginalnote-insert.png
24863 scaleBeforeRotation
24878 \begin_inset Quotes eld
24882 \begin_inset Quotes erd
24885 appears where you can enter the text of the margin note.
24888 \begin_layout Standard
24889 At the side is an example margin note.
24894 \begin_inset Marginal
24897 \begin_layout Plain Layout
24898 This is a margin note.
24906 \begin_layout Standard
24907 Margin notes appear at the right side in single-sided documents.
24908 In double-sided documents they appear in the outer margin -- left on even
24909 pages, right on odd pages.
24910 The text of margin notes is aligned opposite to the outer margin -- right-align
24911 ed when the note appears in the left margin.
24912 The first line of the margin note is placed at the position of the text
24913 line where it is inserted in the document.
24916 \begin_layout Standard
24917 \begin_inset VSpace bigskip
24920 To place the margin note in the inner margin, add the command
24923 \begin_layout Standard
24931 \begin_layout Standard
24932 in TeX-Code before a margin note.
24933 The new placement is valid for all following margin notes.
24938 \begin_layout Plain Layout
24948 \begin_inset Marginal
24951 \begin_layout Plain Layout
24952 This is a margin note in the inner margin.
24960 \begin_inset Newline newline
24966 \begin_inset Note Greyedout
24969 \begin_layout Plain Layout
24974 There is often not enough space in the inner margin so that the notes are
24975 not correctly displayed in the output.
24983 \begin_layout Standard
24984 To return to the default placement insert the command
24987 \begin_layout Standard
24995 \begin_layout Standard
25000 \begin_layout Plain Layout
25010 \begin_inset Note Greyedout
25013 \begin_layout Plain Layout
25018 The command is ignored when it is within a paragraph where also the command
25033 \begin_layout Standard
25034 \begin_inset VSpace bigskip
25041 \begin_inset Marginal
25044 \begin_layout Plain Layout
25045 AVeryLongMarginParWord that isn't hyphenated.
25053 Similar to the case described in section
25054 \begin_inset space ~
25058 \begin_inset CommandInset ref
25060 reference "sub:Multiple-Lines-in"
25064 , long words cannot be hyphenated when they are the first word in a margin
25066 To avoid this, insert 0
25067 \begin_inset space \thinspace{}
25070 pt horizontal space before the word
25075 \begin_inset Marginal
25078 \begin_layout Plain Layout
25079 \begin_inset space \hspace*{}
25083 AVeryLongMarginParWord that is hyphenated.
25091 \begin_layout Standard
25092 \begin_inset VSpace bigskip
25098 \begin_layout Standard
25099 \begin_inset Note Greyedout
25102 \begin_layout Plain Layout
25107 Margin notes can normally not be used inside tables, floats, and footnotes.
25115 \begin_layout Standard
25116 \begin_inset VSpace bigskip
25122 \begin_layout Standard
25126 \begin_layout Plain Layout
25136 \begin_inset Note Note
25139 \begin_layout Plain Layout
25140 The following section will only be displayed when the LaTeX-package
25152 \begin_layout Standard
25153 This restriction can be evaded by using the LaTeX-package
25161 \begin_layout Plain Layout
25162 LaTeX-packages ! marginnote
25168 By adding these two lines to your document preamble, the command used by
25169 LyX for margin notes is redefined to use the command provided by the
25176 \begin_layout Standard
25181 usepackage{marginnote}
25182 \begin_inset Newline newline
25194 \begin_layout Standard
25195 This is also used in this document because
25199 has another useful feature: You can set a vertical offset for the note.
25200 This is often needed when too many margin notes are too close together
25201 or for a better page layout.
25202 The offset is set in LyX as TeX-Code directly behind the margin note in
25206 \begin_layout Standard
25212 \begin_layout Standard
25213 where the offset is a length with one of the units listed in Table
25214 \begin_inset space ~
25218 \begin_inset CommandInset ref
25220 reference "tab:Units"
25225 A negative value shifts the note up, a positive value shifts it down.
25229 For example the margin note beside this text line is shifted up 1.5
25230 \begin_inset space \thinspace{}
25233 cm with the TeX-Code-command
25234 \begin_inset Quotes eld
25244 \begin_inset Quotes erd
25248 \begin_inset Marginal
25251 \begin_layout Plain Layout
25252 This margin note is shifted up 1.5
25253 \begin_inset space \thinspace{}
25256 cm from its original position.
25268 \begin_layout Plain Layout
25278 \begin_layout Standard
25279 \begin_inset VSpace medskip
25286 you can also change the alignment of the text in the margin note.
25287 For example the commands
25290 \begin_layout Standard
25297 raggedleftmarginnote}{
25300 \begin_inset Newline newline
25307 raggedrightmarginnote}{
25312 \begin_layout Standard
25313 set the alignment to centered.
25318 raggedleftmarginnote
25320 denotes margin notes that appear at the left side.
25327 \begin_layout Plain Layout
25333 raggedleftmarginnote}{
25338 \begin_layout Plain Layout
25344 raggedrightmarginnote}{
25352 \begin_inset Marginal
25355 \begin_layout Plain Layout
25356 The text of this margin note is centered.
25367 \begin_layout Standard
25374 raggedleftmarginnote}{
25377 \begin_inset Newline newline
25384 raggedrightmarginnote}{
25393 \begin_layout Plain Layout
25399 raggedleftmarginnote}{
25404 \begin_layout Plain Layout
25410 raggedrightmarginnote}{
25420 \begin_layout Standard
25421 \begin_inset VSpace medskip
25424 For the other features of
25428 we refer to its documentation
25429 \begin_inset CommandInset citation
25438 \begin_layout Standard
25439 \begin_inset VSpace bigskip
25442 You can adjust the layout of margin notes by changing its definition.
25443 To create for example a header for all margin notes with the underlined,
25444 sans-serif, and bold header text
25445 \begin_inset Quotes eld
25457 \begin_inset Quotes erd
25460 , add this to your document preamble:
25463 \begin_layout Standard
25473 \begin_inset Newline newline
25483 \begin_inset Newline newline
25490 \begin_layout Plain Layout
25507 underbar{Attention!}}}%
25508 \begin_inset Newline newline
25515 \begin_layout Plain Layout
25533 \begin_layout Standard
25540 \begin_layout Plain Layout
25551 \begin_layout Plain Layout
25562 \begin_layout Plain Layout
25570 underbar{Attention!}}}%
25573 \begin_layout Plain Layout
25587 \begin_inset Marginal
25590 \begin_layout Plain Layout
25591 This is a margin note with a defined heading.
25603 \begin_layout Plain Layout
25617 \begin_layout Plain Layout
25634 \begin_inset Note Note
25637 \begin_layout Plain Layout
25638 The margin note format is changed only for this example.
25646 \begin_layout Standard
25650 \begin_layout Plain Layout
25660 \begin_inset Note Note
25663 \begin_layout Plain Layout
25664 The following will be displayed when the LaTeX-package
25676 \begin_layout Standard
25677 You need to install the LaTeX-package
25681 to see the following part of this section in the output.
25684 \begin_layout Standard
25688 \begin_layout Plain Layout
25700 \begin_layout Chapter
25704 \begin_layout Section
25709 \begin_layout Plain Layout
25710 Boxes ! Introduction
25718 \begin_layout Standard
25719 Boxes are used to format a block of text.
25720 Boxes can be used to write documents with multiple languages, see section
25721 \begin_inset space ~
25725 \begin_inset CommandInset ref
25727 reference "sec:Minipages"
25731 , to frame texts, see section
25732 \begin_inset space ~
25736 \begin_inset CommandInset ref
25738 reference "sec:Decoration"
25742 , to prevent words to be hyphenated, see section
25743 \begin_inset space ~
25747 \begin_inset CommandInset ref
25749 reference "sec:Prevent-Hyphenation"
25753 , to align text, see section
25754 \begin_inset space ~
25758 \begin_inset CommandInset ref
25760 reference "sub:Vertical-Alignment"
25764 , or to set the background color of texts, see section
25765 \begin_inset space ~
25769 \begin_inset CommandInset ref
25771 reference "sec:Colored-Boxes"
25778 \begin_layout Standard
25779 Boxes can be inserted with the menu
25781 Insert\SpecialChar \menuseparator
25784 or the toolbar button
25785 \begin_inset Graphics
25786 filename ../images/box-insert.png
25788 scaleBeforeRotation
25793 A grey box with the label
25798 \begin_inset Graphics
25799 filename clipart/BoxInsetDefaultQt4.png
25801 scaleBeforeRotation
25806 The box type can be specified by right-clicking on the box.
25807 The appearing box dialog offers the
25810 \begin_inset space ~
25828 is the default for new boxes and is explained in section
25829 \begin_inset space ~
25833 \begin_inset CommandInset ref
25835 reference "sec:Minipages"
25843 is described in section
25844 \begin_inset space ~
25848 \begin_inset CommandInset ref
25850 reference "sec:Parboxes"
25857 \begin_layout Standard
25858 Boxes aren't numbered and can therefore not be referenced like floats or
25862 \begin_layout Standard
25863 \begin_inset Note Greyedout
25866 \begin_layout Plain Layout
25871 Boxes must not be the item in an
25887 \begin_layout Standard
25888 \begin_inset Note Greyedout
25891 \begin_layout Plain Layout
25896 For an unknown reason you can only set the
25899 \begin_inset space ~
25908 when you use a framed box.
25912 \begin_inset space ~
25917 type and without frames are explained in section
25918 \begin_inset space ~
25922 \begin_inset CommandInset ref
25924 reference "sec:Prevent-Hyphenation"
25936 \begin_layout Section
25938 \begin_inset CommandInset label
25940 name "sec:Box-Dialog"
25948 \begin_layout Plain Layout
25957 \begin_layout Subsection
25962 \begin_layout Plain Layout
25971 \begin_layout Standard
25972 In the box dialog you can adjust the box geometry in the fields
25981 The available units for the geometry are explained in Table
25982 \begin_inset space ~
25986 \begin_inset CommandInset ref
25988 reference "tab:Units"
25997 offers the following additional sizes:
26000 \begin_layout Description
26001 Depth This is the plain text
26002 \begin_inset Quotes eld
26006 \begin_inset Quotes erd
26010 It ignores the total depth when there are multiple text lines in the box:
26011 \begin_inset Newline newline
26015 \begin_inset Newline newline
26019 \begin_inset Newline newline
26023 \begin_inset Box Boxed
26032 height_special "depth"
26035 \begin_layout Plain Layout
26037 Box height set to 1
26038 \begin_inset space \thinspace{}
26047 \begin_inset Newline newline
26051 \begin_inset Newline newline
26057 \begin_layout Description
26058 Height This is the heigth of the text that is inside the box.
26060 \begin_inset space \space{}
26063 2 for this size will set the box heigth to 2 times the text height:
26064 \begin_inset Box Boxed
26073 height_special "height"
26076 \begin_layout Plain Layout
26078 Box height set to 2
26079 \begin_inset space \thinspace{}
26090 \begin_layout Description
26092 \begin_inset space ~
26095 Height This is the Height
26096 \begin_inset space \thinspace{}
26100 \begin_inset space \thinspace{}
26104 \begin_inset Box Boxed
26113 height_special "totalheight"
26116 \begin_layout Plain Layout
26118 Box height set to 1
26119 \begin_inset space \thinspace{}
26123 \begin_inset space ~
26134 \begin_layout Description
26135 Width This sets the width of the box as heigth:
26136 \begin_inset Box Boxed
26145 height_special "width"
26148 \begin_layout Plain Layout
26150 Box height set to 1
26151 \begin_inset space \thinspace{}
26162 \begin_layout Subsection
26167 \begin_layout Plain Layout
26176 \begin_layout Standard
26177 When you have chosen an
26180 \begin_inset space ~
26185 , the vertical box alignment can be:
26188 \begin_layout Description
26189 Top This is an example text line.
26191 \begin_inset Box Boxed
26200 height_special "totalheight"
26203 \begin_layout Plain Layout
26205 This box is top-aligned.
26210 This is an example text line.
26213 \begin_layout Description
26214 Middle This is an example text line.
26216 \begin_inset Box Boxed
26225 height_special "totalheight"
26228 \begin_layout Plain Layout
26230 This box is middle-aligned.
26235 This is an example text line.
26238 \begin_layout Description
26239 Bottom This is an example text line.
26241 \begin_inset Box Boxed
26250 height_special "totalheight"
26253 \begin_layout Plain Layout
26255 This box is bottom-aligned.
26260 This is an example text line.
26263 \begin_layout Standard
26264 \begin_inset Note Greyedout
26267 \begin_layout Plain Layout
26272 The vertical box aligment can be lost in the output when you have two boxes
26273 in a line and one has e.g.
26274 \begin_inset space \space{}
26277 a shadow and the other one not.
26285 \begin_layout Standard
26286 The horizontal box alignment can be set via LyX's paragraph dialog when
26287 you set the box into its own paragraph.
26290 \begin_layout Standard
26291 \begin_inset VSpace bigskip
26294 When you have chosen an
26297 \begin_inset space ~
26302 , the box content can be vertical aligned to:
26305 \begin_layout Description
26306 top This is an example text line.
26308 \begin_inset Box Boxed
26317 height_special "totalheight"
26320 \begin_layout Plain Layout
26322 This box text is top-aligned.
26327 This is an example text line.
26330 \begin_layout Description
26331 middle This is an example text line.
26333 \begin_inset Box Boxed
26342 height_special "totalheight"
26345 \begin_layout Plain Layout
26347 This box text is middle-aligned.
26352 This is an example text line.
26355 \begin_layout Description
26356 bottom This is an example text line.
26358 \begin_inset Box Boxed
26367 height_special "totalheight"
26370 \begin_layout Plain Layout
26372 This box text is bottom-aligned.
26377 This is an example text line.
26380 \begin_layout Description
26381 stretch This is an example text line.
26383 \begin_inset Box Boxed
26392 height_special "totalheight"
26395 \begin_layout Plain Layout
26400 \begin_layout Plain Layout
26405 \begin_layout Plain Layout
26412 This is an example text line.
26415 \begin_layout Standard
26416 To stretch the box content, it must consist of more than one paragraph.
26417 In the example above every text line is in an own paragraph.
26420 \begin_layout Standard
26421 \begin_inset VSpace bigskip
26424 To align the box content horizontally you can use LyX's paragraph dialog
26425 when you have chosen an
26428 \begin_inset space ~
26436 \begin_layout Standard
26438 \begin_inset Box Boxed
26447 height_special "totalheight"
26450 \begin_layout Plain Layout
26455 \begin_layout Plain Layout
26460 \begin_layout Plain Layout
26470 \begin_layout Standard
26471 If you haven't set an
26474 \begin_inset space ~
26479 , you can align the box content horizontally in the box dialog.
26482 \begin_layout Standard
26484 \begin_inset Box Boxed
26493 height_special "totalheight"
26496 \begin_layout Plain Layout
26498 This box text is horizontally stretched.
26506 \begin_layout Subsection
26508 \begin_inset CommandInset label
26510 name "sec:Decoration"
26518 \begin_layout Plain Layout
26527 \begin_layout Standard
26528 The type of the box can be specified in the box-dialog in the drop-down
26534 The following types are possible:
26537 \begin_layout Description
26539 \begin_inset space ~
26543 \begin_inset space ~
26546 frame This draws a rectangle frame around the box.
26547 The frame line thickness has the size of
26555 \begin_inset Box Boxed
26564 height_special "totalheight"
26567 \begin_layout Plain Layout
26577 \begin_layout Description
26579 \begin_inset space ~
26583 \begin_inset space ~
26586 break When you use the decoration
26588 simple rectangular frame
26590 and no inner box, you can allow page breaks within a box.
26591 Note that then, in contrary to other framed boxes, the frame always uses
26592 the whole column width, the box is set as its own paragraph, and
26604 has no effect on this box type.
26605 The frame line thickness has the size of
26613 \begin_inset Box Framed
26622 height_special "totalheight"
26625 \begin_layout Plain Layout
26626 Allow page break box
26634 \begin_layout Description
26636 \begin_inset space ~
26640 \begin_inset space ~
26643 thin This draws an oval frame around the box.
26644 The frame line thickness has the size 0.4
26645 \begin_inset space \thinspace{}
26650 \begin_inset Box ovalbox
26659 height_special "totalheight"
26662 \begin_layout Plain Layout
26672 \begin_layout Description
26674 \begin_inset space ~
26678 \begin_inset space ~
26681 thick This draws an oval frame around the box.
26682 The frame line thickness has the size 0.8
26683 \begin_inset space \thinspace{}
26688 \begin_inset Box Ovalbox
26697 height_special "totalheight"
26700 \begin_layout Plain Layout
26710 \begin_layout Description
26712 \begin_inset space ~
26715 shadow This draws a rectangle frame with a shadow around the box.
26716 The frame line thickness has the size of
26722 , the shadow has a width of 4
26723 \begin_inset space \thinspace{}
26728 \begin_inset Box Shadowbox
26737 height_special "totalheight"
26740 \begin_layout Plain Layout
26750 \begin_layout Description
26752 \begin_inset space ~
26755 background This draws a box with red background color.
26756 In contrary to colored boxes
26760 \begin_layout Plain Layout
26762 \begin_inset space \thinspace{}
26766 \begin_inset CommandInset ref
26768 reference "sec:Colored-Boxes"
26777 , it always uses the whole column width and the box is set as its own paragraph.
26779 \begin_inset Box Shaded
26788 height_special "totalheight"
26791 \begin_layout Plain Layout
26792 Shaded background box
26800 \begin_layout Description
26802 \begin_inset space ~
26806 \begin_inset space ~
26809 frame This draws a double-line rectangle frame around the box.
26810 The line thickness of the inner frame is 0.75
26811 \begin_inset space \thinspace{}
26820 , the thickness of the outer frame is 1.5
26821 \begin_inset space \thinspace{}
26831 The distance between the lines is 1.5
26832 \begin_inset space \thinspace{}
26842 \begin_inset space \thinspace{}
26846 \begin_inset space \thinspace{}
26850 \begin_inset space \thinspace{}
26855 \begin_inset Box Doublebox
26864 height_special "totalheight"
26867 \begin_layout Plain Layout
26869 Double rectangular box
26877 \begin_layout Standard
26878 \begin_inset VSpace bigskip
26881 LyX's box label will reflect the different frame types.
26882 To be able to use all types, the LaTeX-package
26890 \begin_layout Plain Layout
26891 LaTeX-packages ! fancybox
26899 \begin_layout Section
26904 \begin_layout Plain Layout
26905 Boxes ! Customization
26913 \begin_layout Standard
26914 The default value for the size
26921 \begin_inset space \thinspace{}
26925 It can be changed with the following command in TeX-Code to e.g.
26926 \begin_inset space \space{}
26930 \begin_inset space \thinspace{}
26936 \begin_layout Standard
26946 \begin_layout Standard
26950 \begin_layout Plain Layout
26962 \begin_inset Box Boxed
26971 height_special "totalheight"
26974 \begin_layout Plain Layout
26976 Rectangular box with
26983 \begin_inset space \thinspace{}
26987 \begin_inset space \thinspace{}
26991 \begin_inset space \thinspace{}
27003 \begin_layout Plain Layout
27017 \begin_layout Standard
27018 \begin_inset VSpace bigskip
27021 The space between the frame and the box content is for all frame styles
27023 \begin_inset space \thinspace{}
27027 You can change it by setting the length
27034 For example the command
27037 \begin_layout Standard
27047 \begin_layout Standard
27048 sets the value to 10
27049 \begin_inset space \thinspace{}
27052 pt, like for the following box:
27055 \begin_layout Standard
27059 \begin_layout Plain Layout
27071 \begin_inset Box Boxed
27080 height_special "totalheight"
27083 \begin_layout Plain Layout
27085 Rectangular box with
27092 \begin_inset space \thinspace{}
27096 \begin_inset space \thinspace{}
27100 \begin_inset space \thinspace{}
27112 \begin_layout Plain Layout
27126 \begin_layout Standard
27127 \begin_inset VSpace bigskip
27130 The diameter of the round corners of the oval boxes can be set with the
27141 \begin_layout Standard
27149 \begin_layout Standard
27150 sets the diameter to 1
27151 \begin_inset space \thinspace{}
27158 \begin_layout Standard
27166 \begin_layout Standard
27167 sets the diameter to
27170 \begin_inset space \thinspace{}
27174 \begin_inset space \thinspace{}
27177 minimum(width and heigth of box)
27189 \begin_layout Standard
27193 \begin_layout Plain Layout
27203 \begin_inset Box Ovalbox
27212 height_special "totalheight"
27215 \begin_layout Plain Layout
27224 \begin_inset space \thinspace{}
27228 \begin_inset space \thinspace{}
27232 \begin_inset space \thinspace{}
27244 \begin_layout Plain Layout
27256 \begin_layout Standard
27257 \begin_inset VSpace bigskip
27260 The size of the shadow can be adjusted by changing the length
27268 \begin_inset space \thinspace{}
27271 pt for the following box by this command:
27274 \begin_layout Standard
27284 \begin_layout Standard
27288 \begin_layout Plain Layout
27300 \begin_inset Box Shadowbox
27309 height_special "totalheight"
27312 \begin_layout Plain Layout
27321 \begin_inset space \thinspace{}
27325 \begin_inset space \thinspace{}
27329 \begin_inset space \thinspace{}
27341 \begin_layout Plain Layout
27355 \begin_layout Standard
27356 \begin_inset VSpace bigskip
27362 \begin_layout Standard
27363 The default value for the size
27370 \begin_inset space \thinspace{}
27374 The default space between the note content and the frame is 9
27375 \begin_inset space \thinspace{}
27378 pt and can be changed with the value of
27385 For example the frame appearance of the following
27389 is set with the TeX-Code commands
27392 \begin_layout Standard
27400 \begin_inset Newline newline
27410 \begin_layout Standard
27414 \begin_layout Plain Layout
27423 \begin_layout Plain Layout
27435 \begin_inset Box Framed
27444 height_special "totalheight"
27447 \begin_layout Plain Layout
27461 \begin_layout Plain Layout
27470 \begin_layout Plain Layout
27484 \begin_layout Standard
27485 \begin_inset VSpace bigskip
27491 \begin_layout Standard
27496 boxes the default space between the box content and the box border is 3
27497 \begin_inset space \thinspace{}
27500 pt and can be changed with the value of
27507 The default background color red can either be changed locally with the
27512 definecolor{shadebox}
27514 or globally with the menu
27516 Tools\SpecialChar \menuseparator
27517 Preferences\SpecialChar \menuseparator
27518 Colors\SpecialChar \menuseparator
27520 \begin_inset space ~
27532 command is explained in section
27533 \begin_inset space ~
27537 \begin_inset CommandInset ref
27539 reference "sec:Colored-Tables"
27547 \begin_layout Plain Layout
27554 requires the LaTeX-package
27558 in the preamble, see section
27559 \begin_inset space ~
27563 \begin_inset CommandInset ref
27565 reference "sec:Colored-Boxes"
27574 For example the appearance of the following shaded background note is set
27575 with the TeX-Code commands
27578 \begin_layout Standard
27588 \begin_inset Newline newline
27595 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
27598 \begin_layout Standard
27602 \begin_layout Plain Layout
27611 \begin_layout Plain Layout
27615 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
27621 \begin_inset Box Shaded
27630 height_special "totalheight"
27633 \begin_layout Plain Layout
27636 This is yellow text in a
27646 box with dark green background.
27655 \begin_layout Plain Layout
27664 \begin_layout Plain Layout
27668 definecolor{shadecolor}{rgb}{1,0,0}
27676 \begin_layout Standard
27677 \begin_inset VSpace bigskip
27680 Changed lengths and widths are valid for all boxes following the commands
27684 \begin_layout Section
27686 \begin_inset CommandInset label
27688 name "sec:Minipages"
27696 \begin_layout Plain Layout
27705 \begin_layout Standard
27706 Minipages are treated by LaTeX as pages within pages and can therefore for
27707 example have their own footnotes.
27710 \begin_layout Standard
27711 Minipages are useful when you write documents with different languages.
27714 \begin_layout Standard
27715 Below are two example minipages side by side.
27716 Their width is set to 45
27717 \begin_inset space \thinspace{}
27720 col% and they are separated by a horizontal fill, that was inserted via
27723 Insert\SpecialChar \menuseparator
27725 \begin_inset space ~
27728 Formatting\SpecialChar \menuseparator
27730 \begin_inset space ~
27736 \begin_inset Newpage newpage
27742 \begin_layout Standard
27743 \begin_inset Box Frameless
27752 height_special "totalheight"
27755 \begin_layout Plain Layout
27758 Dies ist ein deutscher Text.
27759 Dies ist ein deutscher Text.
27760 Dies ist ein deutscher Text.
27761 Dies ist ein deutscher Text.
27762 Dies ist ein deutscher Text.
27763 Dies ist ein deutscher Text.
27764 Dies ist ein deutscher Text.
27765 Dies ist ein deutscher Text.
27766 Dies ist ein deutscher Text.
27767 Dies ist ein deutscher Text.
27768 Dies ist ein deutscher Text.
27769 Dies ist ein deutscher Text.
27770 Dies ist ein deutscher Text
27774 \begin_layout Plain Layout
27777 Dies ist eine deutsche Fußnote.
27783 Dies ist ein deutscher Text.
27784 Dies ist ein deutscher Text.
27790 \begin_inset space \hfill{}
27794 \begin_inset Box Frameless
27803 height_special "totalheight"
27806 \begin_layout Plain Layout
27807 This is an English Text.
27808 This is an English Text.
27809 This is an English Text.
27810 This is an English Text.
27811 This is an English Text.
27812 This is an English Text.
27813 This is an English Text.
27814 This is an English Text.
27815 This is an English Text.
27816 This is an English Text.
27817 This is an English Text.
27818 This is an English Text.
27819 This is an English Text.
27820 This is an English Text.
27821 This is an English Text.
27822 This is an English Text.
27826 \begin_layout Plain Layout
27827 This is an English footnote.
27832 This is an English Text.
27841 \begin_layout Standard
27842 \begin_inset VSpace bigskip
27845 Another application for minipages are footnotes within tables.
27846 Due to a LaTeX restriction footnotes within tables doesn't appear at the
27847 bottom of the current page.
27848 But when you put the table with the footnote to a minipage, the footnote
27849 will appear at its bottom, numbered with Latin letters.
27850 The footnote number is reset to 1 in every minipage but not outside the
27854 \begin_layout Standard
27855 The footnote of this table doesn't appear:
27856 \begin_inset Tabular
27857 <lyxtabular version="3" rows="3" columns="4">
27859 <column alignment="center" valignment="top" width="0pt">
27860 <column alignment="center" valignment="top" width="0pt">
27861 <column alignment="center" valignment="top" width="0pt">
27862 <column alignment="center" valignment="top" width="0pt">
27864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27867 \begin_layout Plain Layout
27873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27876 \begin_layout Plain Layout
27882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27885 \begin_layout Plain Layout
27890 \begin_layout Plain Layout
27891 This is a footnote within a table.
27901 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27904 \begin_layout Plain Layout
27912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27915 \begin_layout Plain Layout
27921 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27924 \begin_layout Plain Layout
27930 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27933 \begin_layout Plain Layout
27939 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27942 \begin_layout Plain Layout
27950 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27953 \begin_layout Plain Layout
27959 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27962 \begin_layout Plain Layout
27968 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27971 \begin_layout Plain Layout
27977 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27980 \begin_layout Plain Layout
27994 \begin_layout Standard
27996 \begin_inset Box Frameless
28005 height_special "totalheight"
28008 \begin_layout Plain Layout
28010 \begin_inset Tabular
28011 <lyxtabular version="3" rows="3" columns="4">
28013 <column alignment="center" valignment="top" width="0pt">
28014 <column alignment="center" valignment="top" width="0pt">
28015 <column alignment="center" valignment="top" width="0pt">
28016 <column alignment="center" valignment="top" width="0pt">
28018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28021 \begin_layout Plain Layout
28027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28030 \begin_layout Plain Layout
28036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28039 \begin_layout Plain Layout
28044 \begin_layout Plain Layout
28045 This is a footnote within a table.
28055 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28058 \begin_layout Plain Layout
28066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28069 \begin_layout Plain Layout
28075 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28078 \begin_layout Plain Layout
28084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28087 \begin_layout Plain Layout
28093 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28096 \begin_layout Plain Layout
28104 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28107 \begin_layout Plain Layout
28113 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28116 \begin_layout Plain Layout
28122 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28125 \begin_layout Plain Layout
28131 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28134 \begin_layout Plain Layout
28153 \begin_layout Standard
28154 \begin_inset VSpace bigskip
28157 The document-wide paragraph settings are ignored within minipages.
28158 That means that there will be no space between paragraphs in minipages
28159 although you set it to e.g.
28160 \begin_inset space \space{}
28167 in the document settings.
28170 \begin_layout Standard
28171 Minipages can also be used to set a background color for text parts, see
28173 \begin_inset space ~
28177 \begin_inset CommandInset ref
28179 reference "sub:Color-for-Paragraphs"
28186 \begin_layout Standard
28187 \begin_inset Note Greyedout
28190 \begin_layout Plain Layout
28195 You cannot have floats or margin notes inside minipages but minipages can
28196 be used inside tables, floats, and other boxes.
28204 \begin_layout Section
28206 \begin_inset CommandInset label
28208 name "sec:Parboxes"
28216 \begin_layout Plain Layout
28225 \begin_layout Standard
28226 Parboxes are very similar to minipages with the difference that they cannot
28228 The main difference to minipages is that minipages are in contrary to parboxes
28229 no real boxes but LaTeX-environments.
28232 \begin_layout Standard
28234 \begin_inset Box Frameless
28243 height_special "totalheight"
28246 \begin_layout Plain Layout
28247 This a text within a parbox.
28248 This a text within a parbox.
28251 \begin_layout Plain Layout
28252 This footnote won't appear:
28256 \begin_layout Plain Layout
28257 This footnote is inside a parbox and will therefore not appear.
28270 \begin_layout Section
28271 Boxes for Words and Characters
28275 \begin_layout Plain Layout
28276 Boxes ! for Characters
28284 \begin_layout Subsection
28285 Prevent Hyphenation
28286 \begin_inset CommandInset label
28288 name "sec:Prevent-Hyphenation"
28296 \begin_layout Plain Layout
28297 Boxes ! to Prevent Hyphenation
28305 \begin_layout Standard
28306 You can use a special kind of boxes to prevent words or text to be hyphenated.
28307 \begin_inset Newline newline
28310 Here is an example text:
28313 \begin_layout Standard
28314 This line is an example to show how you can prevent the hyphenation of
28315 \begin_inset Quotes eld
28319 \begin_inset Quotes erd
28325 \begin_layout Standard
28326 To prevent the hyphenation of the word
28327 \begin_inset Quotes eld
28331 \begin_inset Quotes erd
28337 \begin_layout Standard
28345 \begin_layout Standard
28346 in TeX-Code before the word.
28347 Behind the word insert a closing brace
28348 \begin_inset Quotes eld
28356 \begin_inset Quotes erd
28362 \begin_layout Standard
28363 This is the result:
28366 \begin_layout Standard
28367 This line is an example to show how you can prevent the hyphenation of
28371 \begin_layout Plain Layout
28381 \begin_inset Quotes eld
28385 \begin_inset Quotes erd
28392 \begin_layout Plain Layout
28402 \begin_layout Standard
28403 You can alternatively set the command
28404 \begin_inset Quotes eld
28414 \begin_inset Quotes grd
28417 as TeX-Code directly before the word:
28420 \begin_layout Standard
28421 This line is an example to show how you can prevent the hyphenation of
28422 \begin_inset Quotes eld
28429 \begin_layout Plain Layout
28439 \begin_inset Quotes erd
28445 \begin_layout Standard
28446 Of course the word now protrudes over the side margin.
28447 To avoid this, add via the menu
28449 Insert\SpecialChar \menuseparator
28451 \begin_inset space ~
28454 Formatting\SpecialChar \menuseparator
28456 \begin_inset space ~
28464 arg "newline-insert newline"
28467 ) a line break before the word:
28470 \begin_layout Standard
28471 This line is an example to show how you can prevent the hyphenation of
28472 \begin_inset Newline newline
28479 \begin_layout Plain Layout
28489 \begin_inset Quotes eld
28493 \begin_inset Quotes erd
28500 \begin_layout Plain Layout
28510 \begin_layout Subsection
28512 \begin_inset CommandInset label
28514 name "sub:Vertical-Alignment"
28522 \begin_layout Plain Layout
28523 Boxes ! for Vertical Alignment
28532 \begin_layout Plain Layout
28541 \begin_layout Standard
28542 With the help of the command
28548 you can align words, characters or other boxes vertically to the surrounding
28556 is used with the following scheme:
28559 \begin_layout Standard
28564 raisebox{lift}[height][depth]{box content}
28567 \begin_layout Standard
28568 The lift can be a positive value to raise the box or a negative value to
28572 \begin_layout Standard
28573 To align for example the word
28574 \begin_inset Quotes eld
28578 \begin_inset Quotes erd
28581 so that the bottom of the
28582 \begin_inset Quotes eld
28586 \begin_inset Quotes erd
28590 \begin_inset Quotes eld
28594 \begin_inset Quotes erd
28597 is at the baseline, insert the command
28600 \begin_layout Standard
28610 \begin_layout Standard
28611 in TeX-Code before the word.
28612 Behind the word insert a closing brace
28613 \begin_inset Quotes eld
28621 \begin_inset Quotes erd
28625 \begin_inset Newline newline
28628 This is the result:
28631 \begin_layout Standard
28632 This is a text line with the word
28636 \begin_layout Plain Layout
28648 \begin_inset Quotes eld
28652 \begin_inset Quotes erd
28659 \begin_layout Plain Layout
28669 \begin_layout Standard
28670 \begin_inset VSpace bigskip
28673 When you raise or lower characters in a line, the line distance will be
28677 \begin_layout Standard
28678 This is a text line with the word
28682 \begin_layout Plain Layout
28694 \begin_inset Quotes eld
28698 \begin_inset Quotes erd
28705 \begin_layout Plain Layout
28713 \begin_inset Newline newline
28716 This is a text line with the word
28720 \begin_layout Plain Layout
28730 \begin_inset Quotes eld
28734 \begin_inset Quotes erd
28741 \begin_layout Plain Layout
28751 \begin_layout Standard
28752 If you want to prevent this for a certain reason, set the box height to
28757 \begin_layout Standard
28767 \begin_layout Standard
28768 This is a text line with the word
28772 \begin_layout Plain Layout
28784 \begin_inset Quotes eld
28788 \begin_inset Quotes erd
28795 \begin_layout Plain Layout
28803 \begin_inset Newline newline
28806 This is a text line with the word
28810 \begin_layout Plain Layout
28814 raisebox{0.5cm}[0pt]{
28820 \begin_inset Quotes eld
28824 \begin_inset Quotes erd
28831 \begin_layout Plain Layout
28841 \begin_layout Section
28843 \begin_inset CommandInset label
28845 name "sec:Colored-Boxes"
28853 \begin_layout Plain Layout
28862 \begin_layout Subsection
28867 \begin_layout Plain Layout
28876 \begin_layout Standard
28877 To color the background of text the text must be put into a so called
28878 \begin_inset Quotes eld
28882 \begin_inset Quotes erd
28886 This requires that the LaTeX-package
28894 \begin_layout Plain Layout
28895 LaTeX-packages ! color
28900 is loaded in the document preamble with the command
28903 \begin_layout Standard
28908 @ifundefined{textcolor}
28909 \begin_inset Newline newline
28916 \begin_layout Plain Layout
28927 usepackage{color}}{}
28930 \begin_layout Standard
28935 will be loaded automatically by LyX when you color text
28939 \begin_layout Plain Layout
28940 To avoid that it is loaded twice the command
28954 \begin_layout Standard
28955 \begin_inset VSpace medskip
28958 Colorboxes are created with the command
28965 This will be used with the following scheme:
28968 \begin_layout Standard
28973 colorbox{color}{box content}
28976 \begin_layout Standard
28977 The box content can also be a box and colorboxes can also be within other
28981 \begin_layout Standard
28982 The following colors are predefined:
28983 \begin_inset Newline newline
29022 \begin_inset Newline newline
29025 You can also define your own color as described in section
29026 \begin_inset space ~
29030 \begin_inset CommandInset ref
29032 reference "sec:Colored-Tables"
29039 \begin_layout Standard
29041 \begin_inset space \space{}
29044 a red background for a word, insert the command
29047 \begin_layout Standard
29055 \begin_layout Standard
29056 before the word in TeX-Code.
29057 Behind the word insert a closing brace
29058 \begin_inset Quotes eld
29066 \begin_inset Quotes erd
29070 \begin_inset Newline newline
29073 This is the result:
29076 \begin_layout Standard
29077 This is a line where the word
29081 \begin_layout Plain Layout
29091 \begin_inset Quotes eld
29095 \begin_inset Quotes erd
29102 \begin_layout Plain Layout
29109 has a red background.
29112 \begin_layout Standard
29113 \begin_inset VSpace bigskip
29116 If you would have the box frame in a different color, you can use the command
29123 with the following scheme:
29126 \begin_layout Standard
29131 fcolorbox{frame color}{box color}{box content}
29134 \begin_layout Standard
29148 The frame thickness and the space between the frame and the box content
29149 can be adjusted with the lengths
29161 , respectively, as described in section
29162 \begin_inset space ~
29166 \begin_inset CommandInset ref
29168 reference "sec:Decoration"
29175 \begin_layout Standard
29176 For the following example the command
29179 \begin_layout Standard
29184 fcolorbox{cyan}{magenta}{
29187 \begin_layout Standard
29191 \begin_layout Standard
29192 Here is an example where the frame line thickness was set to 1
29193 \begin_inset space \thinspace{}
29197 \begin_inset Newline newline
29204 \begin_layout Plain Layout
29219 \begin_layout Plain Layout
29223 fcolorbox{cyan}{magenta}{
29228 This is text within a colored, framed box.
29232 \begin_layout Plain Layout
29242 \begin_layout Standard
29243 \begin_inset VSpace bigskip
29246 Of course you can also have colored text inside a colorbox:
29247 \begin_inset Newline newline
29254 \begin_layout Plain Layout
29258 fcolorbox{cyan}{magenta}{
29265 This is colored text within a colored, framed box.
29271 \begin_layout Plain Layout
29282 \begin_layout Plain Layout
29296 \begin_layout Standard
29299 \begin_inset VSpace medskip
29305 \begin_layout Standard
29306 \begin_inset Note Greyedout
29309 \begin_layout Plain Layout
29314 Text in colorboxes cannot have line breaks.
29315 To color multiple text lines or paragraphs, use a box inside a colorbox
29316 as described in the following.
29324 \begin_layout Subsection
29325 Color for Paragraphs
29326 \begin_inset CommandInset label
29328 name "sub:Color-for-Paragraphs"
29336 \begin_layout Plain Layout
29337 Color ! for Paragraphs
29345 \begin_layout Standard
29346 To set the background color for more than one text line, put the text into
29348 Before the minipage insert the
29357 \begin_layout Standard
29365 \begin_layout Standard
29367 Behind the minipage insert a closing brace
29368 \begin_inset Quotes eld
29376 \begin_inset Quotes erd
29382 \begin_layout Standard
29386 \begin_layout Plain Layout
29390 colorbox{lightgrey}{
29396 \begin_inset Box Frameless
29405 height_special "totalheight"
29408 \begin_layout Plain Layout
29409 This is text with background color.
29410 This is text with background color.
29413 \begin_layout Plain Layout
29414 \begin_inset VSpace defskip
29417 The text can have footnotes
29421 \begin_layout Plain Layout
29422 Another example footnote
29427 and can include tables and figures.
29430 \begin_layout Plain Layout
29432 \begin_inset Tabular
29433 <lyxtabular version="3" rows="3" columns="3">
29435 <column alignment="center" valignment="top" width="0">
29436 <column alignment="center" valignment="top" width="0">
29437 <column alignment="center" valignment="top" width="0">
29439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29442 \begin_layout Plain Layout
29448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29451 \begin_layout Plain Layout
29457 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29460 \begin_layout Plain Layout
29468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29471 \begin_layout Plain Layout
29477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29480 \begin_layout Plain Layout
29482 \begin_inset Quotes erd
29490 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29493 \begin_layout Plain Layout
29501 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29504 \begin_layout Plain Layout
29510 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29513 \begin_layout Plain Layout
29519 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29522 \begin_layout Plain Layout
29542 \begin_layout Plain Layout
29552 \begin_layout Section
29553 Rotated and Scaled Boxes
29556 \begin_layout Standard
29557 To use the the commands described in this section, the LaTeX-package
29565 \begin_layout Plain Layout
29566 LaTeX-packages ! graphicx
29571 needs to be loaded in the document preamble with the command
29574 \begin_layout Standard
29579 @ifundefined{rotatebox}
29580 \begin_inset Newline newline
29587 \begin_layout Plain Layout
29598 usepackage{graphicx}}{}
29601 \begin_layout Standard
29602 \begin_inset Note Greyedout
29605 \begin_layout Plain Layout
29610 Some DVI-viewers can't display rotated or scaled material.
29618 \begin_layout Standard
29619 \begin_inset Note Greyedout
29622 \begin_layout Plain Layout
29627 Floats mustn't be inside a rotated or scaled box.
29635 \begin_layout Subsection
29640 \begin_layout Plain Layout
29650 \begin_layout Plain Layout
29660 \begin_layout Plain Layout
29670 \begin_layout Plain Layout
29671 Table Customization ! Rotating
29679 \begin_layout Standard
29680 To rotate material, you can put it into a rotated box.
29681 Such a box is created using the command
29687 in TeX-Code with the following scheme:
29690 \begin_layout Standard
29695 rotatebox[rotation origin]{rotation angle}{box content}
29698 \begin_layout Standard
29699 The rotation origin is specified in the form
29704 The following positions are possible:
29724 (top), and also expedient combinations of the four base positions.
29729 means, that the rotation origin is at the top left corner of the box.
29730 When no rotation origin is specified, the position
29735 The rotation angle is a number that can be negative that specifies the
29737 The rotation direction is counterclockwise.
29740 \begin_layout Standard
29741 In the following example the command
29745 rotatebox[origin=c]{60}{
29747 was inserted as TeX-Code before the text
29748 \begin_inset Quotes eld
29752 \begin_inset Quotes erd
29755 ; after the text the box was closed by a closing brace
29762 \begin_layout Standard
29767 \begin_layout Plain Layout
29771 rotatebox[origin=c]{60}{
29780 \begin_layout Plain Layout
29790 \begin_layout Standard
29791 The box content can also be another box or an inline formula:
29794 \begin_layout Standard
29799 \begin_layout Plain Layout
29803 rotatebox[origin=r]{-60}{
29809 \begin_inset Box Doublebox
29818 height_special "totalheight"
29821 \begin_layout Plain Layout
29831 \begin_layout Plain Layout
29842 \begin_layout Plain Layout
29846 rotatebox[origin=lb]{60}{
29852 \begin_inset Formula $\int A\,\mathrm{d}x=B$
29859 \begin_layout Plain Layout
29869 \begin_layout Standard
29870 or an image or table:
29873 \begin_layout Standard
29878 \begin_layout Plain Layout
29882 rotatebox[origin=lb]{90}{
29888 \begin_inset Graphics
29889 filename clipart/platypus.eps
29899 \begin_layout Plain Layout
29906 with a rotated image
29910 \begin_layout Plain Layout
29914 rotatebox[origin=l]{-90}{
29920 \begin_inset Tabular
29921 <lyxtabular version="3" rows="2" columns="2">
29923 <column alignment="center" valignment="top" width="0">
29924 <column alignment="center" valignment="top" width="0">
29926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29929 \begin_layout Plain Layout
29935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29938 \begin_layout Plain Layout
29946 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29949 \begin_layout Plain Layout
29955 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29958 \begin_layout Plain Layout
29973 \begin_layout Plain Layout
29983 \begin_layout Subsection
29988 \begin_layout Plain Layout
29998 \begin_layout Plain Layout
30008 \begin_layout Plain Layout
30018 \begin_layout Plain Layout
30019 Table Customization ! Scaling
30027 \begin_layout Standard
30028 To scale material the commands
30040 can be used as TeX-Code.
30043 \begin_layout Standard
30050 is used with the following scheme:
30053 \begin_layout Standard
30058 scalebox{horizontal}[vertical]{box content}
30061 \begin_layout Standard
30062 Horizontal and vertical are the corresponding scaling factors.
30063 If no vertical scaling factor is given, the horizontal factor will also
30064 be used as vertical one.
30067 \begin_layout Standard
30074 creates for example a double size
30078 \begin_layout Plain Layout
30091 \begin_layout Plain Layout
30098 , compared to the document text size.
30101 \begin_layout Standard
30106 scalebox{2}[1]{Hello}
30108 in contrary distorts the
30112 \begin_layout Plain Layout
30125 \begin_layout Plain Layout
30135 \begin_layout Standard
30136 If a the scaling factor is negative, the box content will be mirrored.
30137 Therefore the command
30141 scalebox{-1}[1]{Hello}
30143 can be used to create mirror writing:
30147 \begin_layout Plain Layout
30160 \begin_layout Plain Layout
30170 \begin_layout Standard
30175 scalebox{1}[-1]{Hello}
30181 \begin_layout Plain Layout
30194 \begin_layout Plain Layout
30204 \begin_layout Standard
30209 scalebox{-1}[1]{box content}
30211 there exists the command
30212 \begin_inset Newline newline
30219 reflectbox{box content}
30224 \begin_layout Standard
30225 \begin_inset VSpace bigskip
30234 is used to scale the box to a defined width and height.
30235 The command scheme is:
30238 \begin_layout Standard
30243 resizebox{width}{height}{box content}
30246 \begin_layout Standard
30247 Is one of the two command arguments given as exclamation mark
30251 , the size is set so that the aspect ratio of the box content is kept.
30254 \begin_layout Standard
30259 resizebox{2cm}{1cm}{Hello}
30265 \begin_layout Plain Layout
30269 resizebox{2cm}{1cm}{
30278 \begin_layout Plain Layout
30286 \begin_inset Newline newline
30293 resizebox{2cm}{!}{Hello}
30299 \begin_layout Plain Layout
30312 \begin_layout Plain Layout
30322 \begin_layout Standard
30323 \begin_inset VSpace bigskip
30327 \begin_inset Note Greyedout
30330 \begin_layout Plain Layout
30347 are set to zero, no LaTeX-errors occur when exporting the document but
30348 the exported files can not or only partly be displayed.
30356 \begin_layout Standard
30357 \begin_inset VSpace bigskip
30363 \begin_layout Standard
30364 The boxes can be combined in any order.
30366 \begin_inset space \space{}
30370 \begin_inset Newline newline
30377 rotatebox[origin=c]{-45}{
30381 reflectbox{Hello}}}
30382 \begin_inset Newline newline
30390 \begin_layout Standard
30395 \begin_layout Plain Layout
30399 rotatebox[origin=c]{-45}{
30412 \begin_layout Plain Layout
30422 \begin_layout Standard
30424 Images, tables, and inline formulas are allowed as box content:
30427 \begin_layout Standard
30432 \begin_layout Plain Layout
30436 rotatebox[origin=c]{-30}{
30446 \begin_inset Graphics
30447 filename clipart/platypus.eps
30457 \begin_layout Plain Layout
30468 \begin_layout Plain Layout
30472 rotatebox[origin=c]{-45}{
30482 \begin_inset Tabular
30483 <lyxtabular version="3" rows="2" columns="2">
30485 <column alignment="center" valignment="top" width="0">
30486 <column alignment="center" valignment="top" width="0">
30488 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30491 \begin_layout Plain Layout
30497 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30500 \begin_layout Plain Layout
30508 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30511 \begin_layout Plain Layout
30517 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30520 \begin_layout Plain Layout
30535 \begin_layout Plain Layout
30546 \begin_layout Plain Layout
30550 rotatebox[origin=c]{-45}{
30560 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30567 \begin_layout Plain Layout
30577 \begin_layout Standard
30578 When the global formula style
30582 is used in the document
30586 \begin_layout Plain Layout
30588 \begin_inset Quotes eld
30592 \begin_inset Quotes erd
30595 is added to the document class options.
30600 , also display formulas can be scaled.
30603 \begin_layout Chapter
30608 \begin_layout Plain Layout
30617 \begin_layout Standard
30620 Insert\SpecialChar \menuseparator
30623 you can insert external material to your document.
30627 \begin_layout Description
30629 \begin_inset space ~
30632 Document Another LyX document; its content is directly inserted to your
30636 \begin_layout Description
30638 \begin_inset space ~
30641 Text A text document; every of its text lines is inserted to your document
30645 \begin_layout Description
30647 \begin_inset space ~
30651 \begin_inset space ~
30655 \begin_inset space ~
30658 Lines A text document; its text lines are inserted as they are.
30659 Empty text lines creates a new paragraph in your document.
30662 \begin_layout Description
30664 \begin_inset space ~
30667 Material Files in various formats.
30670 \begin_layout Description
30672 \begin_inset space ~
30675 Document LyX or LaTeX-documents.
30678 \begin_layout Section
30683 \begin_layout Plain Layout
30684 External Stuff ! External Material
30692 \begin_layout Standard
30693 The external material feature allows you to insert files to your document
30694 without converting them previously to a format that can be read by the
30695 document output format because LyX takes care of needed conversions.
30696 This is similar to images that can be inserted in various image formats
30700 \begin_layout Standard
30701 External material can be inserted via the
30705 dialog that is accessible with the menu
30707 Insert\SpecialChar \menuseparator
30708 File\SpecialChar \menuseparator
30710 \begin_inset space ~
30716 Currently the following file types (
30723 \begin_layout Description
30724 ChessDiagram This template supports chess position diagrams made with the
30728 \begin_inset CommandInset href
30731 target "http://en.wikipedia.org/wiki/XBoard"
30740 \begin_layout Description
30741 Date This inserts the date in the form
30746 This is a date inserted as external material:
30747 \begin_inset External
30754 \begin_inset space ~
30758 \begin_inset Note Note
30761 \begin_layout Plain Layout
30762 Remove the protected space when bug 4398 is fixed!
30768 \begin_inset Newline newline
30771 The date is not shown within LyX, only in the output.
30772 There are two other methods of inserting a date: Via menu
30774 Insert\SpecialChar \menuseparator
30777 and with the LaTeX command
30784 The different methods are compared in Table
30785 \begin_inset space ~
30789 \begin_inset CommandInset ref
30791 reference "tab:Comparison-of-the"
30798 \begin_layout Description
30799 LilyPond This template is used for music notation typeset with the program
30800 \begin_inset Newline linebreak
30806 \begin_inset CommandInset href
30809 target "http://en.wikipedia.org/wiki/LilyPond"
30818 \begin_layout Description
30819 PDFPages With this template you can insert PDF documents to your document.
30820 To insert certain or all pages of a PDF, use the
30830 LaTeX and LyX options
30832 tab according to the template description in the dialog.
30837 option is given, only the first page of the PDF will be inserted.
30840 \begin_layout Description
30841 RasterImage This can be used for bitmap images.
30842 Nearly all popular image formats are supported.
30843 The image can be treated in the
30847 dialog like the images that are usually included via the
30851 dialog as described in section
30852 \begin_inset space ~
30856 \begin_inset CommandInset ref
30858 reference "sec:Graphics-Dialog"
30863 The difference is that only raster images are allowed, that means that
30864 PDF and EPS-images are not supported.
30867 \begin_layout Description
30868 XFig This template supports images created with the program
30871 \begin_inset CommandInset href
30874 target "http://en.wikipedia.org/wiki/Xfig"
30883 \begin_layout Standard
30884 \begin_inset Float table
30890 \begin_layout Plain Layout
30891 \begin_inset Caption
30893 \begin_layout Plain Layout
30894 \begin_inset CommandInset label
30896 name "tab:Comparison-of-the"
30900 Comparison of the date input methods.
30908 \begin_layout Plain Layout
30910 \begin_inset Tabular
30911 <lyxtabular version="3" rows="4" columns="4">
30913 <column alignment="center" valignment="top" width="0">
30914 <column alignment="center" valignment="top" width="0">
30915 <column alignment="center" valignment="top" width="0">
30916 <column alignment="center" valignment="top" width="0">
30918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30921 \begin_layout Plain Layout
30927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30930 \begin_layout Plain Layout
30933 External Material\SpecialChar \menuseparator
30939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30942 \begin_layout Plain Layout
30945 Insert\SpecialChar \menuseparator
30951 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30954 \begin_layout Plain Layout
30966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30969 \begin_layout Plain Layout
30975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30978 \begin_layout Plain Layout
30984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30987 \begin_layout Plain Layout
30993 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30996 \begin_layout Plain Layout
30997 as TeX-Code inset box
31004 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31007 \begin_layout Plain Layout
31013 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31016 \begin_layout Plain Layout
31022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31025 \begin_layout Plain Layout
31031 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31034 \begin_layout Plain Layout
31042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31045 \begin_layout Plain Layout
31051 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31054 \begin_layout Plain Layout
31060 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31063 \begin_layout Plain Layout
31069 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31072 \begin_layout Plain Layout
31091 \begin_layout Standard
31092 When you use the option
31104 dialog, only the path to the inserted file is shown in the output.
31105 \begin_inset Newline newline
31108 External material is displayed in LyX either as box like this:
31109 \begin_inset Graphics
31110 filename clipart/ExternalMaterialQt4.png
31112 scaleBeforeRotation
31116 or as image, depending on the option
31122 LaTeX and LyX options
31127 \begin_layout Standard
31134 manual explains how you can define your own templates.
31137 \begin_layout Section
31139 \begin_inset CommandInset label
31141 name "sec:Child-Documents"
31149 \begin_layout Plain Layout
31150 External Stuff ! Child Documents
31159 \begin_layout Plain Layout
31168 \begin_layout Standard
31169 Child documents are used when you have a long document consisting of several
31170 larger parts or sections.
31171 For maintenance it is often useful and sometimes even required to split
31172 the document in several files that can be revised separately.
31173 The different documents are then the so called child documents and a master
31174 document connects them to print the full document or parts of it.
31175 A child documents inherits contents of its master, for example the bibliography
31176 and the labels for cross-references.
31179 \begin_layout Standard
31180 To be able to work on child documents without the need to open its master,
31181 specify in the child document the master in the menu
31183 Document\SpecialChar \menuseparator
31184 Settings\SpecialChar \menuseparator
31186 \begin_inset space ~
31192 This master file will then be used in the background by LyX when you edit
31193 the child document.
31196 \begin_layout Standard
31197 Included documents are displayed in LyX as a box like this:
31198 \begin_inset Graphics
31199 filename clipart/ChildDocumentQt4.png
31201 scaleBeforeRotation
31205 To include child documents to a master document use the menu
31207 Insert\SpecialChar \menuseparator
31208 File\SpecialChar \menuseparator
31210 \begin_inset space ~
31216 A dialog pops up where you can choose between four include methods:
31219 \begin_layout Description
31220 Include You can include LyX and LaTeX-documents.
31229 dialog, the included documents will be opened in LyX in a new file tab
31230 so that you can modify it.
31231 \begin_inset Newline newline
31237 \begin_layout Standard
31238 Here is a child document inserted using
31243 \begin_inset CommandInset include
31244 LatexCommand include
31245 filename "DummyDocument1.lyx"
31252 \begin_layout Standard
31253 The section numbering includes the sections of the included files in the
31254 order they are inserted in the master document.
31255 The included example document has for example a subsection that is numbered
31256 as subsection of this section.
31257 Labels of included documents can be referenced: Subsection
31258 \begin_inset space ~
31262 \begin_inset CommandInset ref
31264 reference "sub:External-Subsection-1"
31271 \begin_layout Standard
31272 The preamble of the child document is ignored, only the preamble of the
31273 master document is used.
31274 Included documents are inserted starting on a new page and end with a page
31278 \begin_layout Standard
31279 With the LaTeX-command
31285 you can specify which included child documents are processed when the output
31287 This is useful when you are perhaps only working on a certain chapter of
31288 your large document as this saves compiling time.
31295 is inserted to the master document preamble.
31296 It takes a comma-separated list of the filenames as argument, e.g.
31299 \begin_layout Standard
31304 includeonly{chapter1,chapter5}
31307 \begin_layout Standard
31308 will only process the included files named
31309 \begin_inset Quotes eld
31313 \begin_inset Quotes erd
31317 \begin_inset Quotes eld
31321 \begin_inset Quotes erd
31325 \begin_inset Quotes eld
31329 \begin_inset Quotes erd
31335 \begin_layout Standard
31336 \begin_inset Note Greyedout
31339 \begin_layout Plain Layout
31344 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
31345 w the document in case that the child document uses another document class
31346 than the master document as this will lead to unexpected outputs.
31354 \begin_layout Description
31355 Input This method is very similar to the Include method.
31356 The differences are:
31360 \begin_layout Itemize
31361 Input files don't start with a new page and don't end with a page break.
31364 \begin_layout Itemize
31365 Input files can be previewed in LyX when
31368 \begin_inset space ~
31373 is enabled in LyX's preferences under
31376 \begin_inset space ~
31380 \begin_inset space ~
31383 feel\SpecialChar \menuseparator
31389 \begin_layout Itemize
31400 \begin_layout Standard
31401 Here is a child document inserted using
31406 \begin_inset CommandInset include
31408 filename "DummyDocument2.lyx"
31415 \begin_layout Description
31416 Verbatim With this method every text file can be included.
31417 The file is shown in the output with its source code, no command used in
31418 the text is invoked.
31419 You can use the option
31421 Mark spaces in output
31423 that displays the character
31424 \begin_inset Quotes eld
31431 \begin_layout Plain Layout
31441 \begin_inset Quotes erd
31444 for every space character in the source code.
31445 The difference to the method via the menu
31447 Insert\SpecialChar \menuseparator
31448 File\SpecialChar \menuseparator
31450 \begin_inset space ~
31455 is that the document content is not shown in LyX.
31458 \begin_layout Standard
31459 Here is a child document inserted as Verbatim:
31460 \begin_inset CommandInset include
31461 LatexCommand verbatiminput
31462 filename "DummyTextDocument.txt"
31467 \begin_inset VSpace bigskip
31470 Here is a child document inserted as Verbatim using the
31472 Mark spaces in output
31475 \begin_inset CommandInset include
31476 LatexCommand verbatiminput*
31477 filename "DummyTextDocument.txt"
31484 \begin_layout Standard
31485 \begin_inset VSpace bigskip
31491 \begin_layout Standard
31492 \begin_inset Note Greyedout
31495 \begin_layout Plain Layout
31500 As you can see in the examples above, the text of the documents included
31505 is not broken at the end of the document lines.
31513 \begin_layout Description
31514 Listings This type is described in chapter
31515 \begin_inset space ~
31519 \begin_inset CommandInset ref
31521 reference "cha:Program-Code-Listings"
31528 \begin_layout Standard
31529 \begin_inset Note Greyedout
31532 \begin_layout Plain Layout
31537 Including the same document twice in a document using different methods
31538 could cause LaTeX-problems.
31546 \begin_layout Chapter
31547 Program Code Listings
31548 \begin_inset CommandInset label
31550 name "cha:Program-Code-Listings"
31558 \begin_layout Plain Layout
31568 \begin_layout Plain Layout
31578 \begin_layout Plain Layout
31587 \begin_layout Standard
31588 To include and typeset program code you can use the
31592 inset that can be inserted via the menu
31594 Insert\SpecialChar \menuseparator
31606 \begin_layout Plain Layout
31607 LaTeX-packages ! listings
31612 provides a powerful and flexible way to insert program source code to your
31616 \begin_layout Standard
31617 Right-clicking on a listings inset opens the context menu containing where
31618 you can set the listings format.
31621 \begin_layout Standard
31622 By default, a listing starts a new paragraph in the output.
31623 The placement option
31626 \begin_inset space ~
31631 prints the listing inline like this:
31632 \begin_inset listings
31633 lstparams "language={C++}"
31637 \begin_layout Plain Layout
31645 \begin_inset Newline newline
31652 creates a listings float where you can specify the placement options
31653 \begin_inset Quotes eld
31661 \begin_inset Quotes erd
31665 \begin_inset Quotes eld
31673 \begin_inset Quotes erd
31677 \begin_inset Quotes eld
31685 \begin_inset Quotes erd
31689 \begin_inset Quotes eld
31697 \begin_inset Quotes erd
31700 corresponding to the float placement options described in section
31701 \begin_inset space ~
31705 \begin_inset CommandInset ref
31707 reference "sec:Float-Placement"
31712 The placement options can be mixed and are inserted without any separation,
31714 \begin_inset space \space{}
31718 \begin_inset Quotes eld
31726 \begin_inset Quotes erd
31731 \begin_inset Quotes eld
31735 \begin_inset Quotes erd
31738 has sometimes no effect, but you don't need to use the
31742 option in this case as also non-float listings can have captions and be
31746 \begin_layout Standard
31747 You can add captions to listings with the menu
31749 Insert\SpecialChar \menuseparator
31753 Listings can be referenced like floats: Listing
31754 \begin_inset space ~
31758 \begin_inset CommandInset ref
31760 reference "lst:Example-Listing"
31767 \begin_layout Standard
31768 \begin_inset listings
31769 lstparams "language=Python"
31773 \begin_layout Plain Layout
31775 \begin_inset Caption
31777 \begin_layout Plain Layout
31778 \begin_inset CommandInset label
31780 name "lst:Example-Listing"
31784 Example Listing float
31789 # Example listing float
31792 \begin_layout Plain Layout
31797 \begin_layout Plain Layout
31799 'this is a python function'
31802 \begin_layout Plain Layout
31812 \begin_layout Standard
31813 When you have set a programming language in the listings dialog, the keywords
31814 of this language will be recognized and specially typeset in the output.
31815 In the example listings the Python keyword
31816 \begin_inset Quotes eld
31820 \begin_inset Quotes erd
31823 is recognized and printed bold in the output.
31826 \begin_layout Standard
31827 \begin_inset Note Greyedout
31830 \begin_layout Plain Layout
31835 If you don't get bold keywords when using typewriter fonts, your
31839 font probably doesn't provide a bold shape.
31840 In this case select a different one in the menu
31842 Document\SpecialChar \menuseparator
31843 Settings\SpecialChar \menuseparator
31855 provide bold shapes.)
31863 \begin_layout Standard
31867 \begin_inset space ~
31872 of the listings dialog you can specify the line numbering style.
31873 You can insert a number to specify which lines are numbered to the field
31879 When you insert e.g.
31880 \begin_inset space \space{}
31884 \begin_inset Quotes eld
31888 \begin_inset Quotes erd
31891 , only every 3rd line will be numbered.
31894 \begin_layout Standard
31895 You can furthermore specify a range of lines, only these will then appear
31899 Extended character table
31901 should be used when you use national characters like the German umlauts
31903 \begin_inset Newline newline
31906 Here is an example listing with left line numbering, step
31907 \begin_inset Quotes eld
31911 \begin_inset Quotes erd
31915 \begin_inset Quotes eld
31919 \begin_inset Quotes erd
31923 \begin_inset Quotes eld
31926 Extended character table
31927 \begin_inset Quotes erd
31931 \begin_inset Quotes eld
31935 \begin_inset space ~
31939 \begin_inset space ~
31943 \begin_inset Quotes erd
31947 \begin_inset space \thinspace{}
31951 \begin_inset space \thinspace{}
31957 \begin_layout Standard
31958 \begin_inset listings
31959 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
31963 \begin_layout Plain Layout
31968 \begin_layout Plain Layout
31970 'this is a python function'
31973 \begin_layout Plain Layout
31978 \begin_layout Plain Layout
31983 \begin_layout Plain Layout
31985 'This is a German word: Tschüß'
31988 \begin_layout Plain Layout
31993 \begin_layout Plain Layout
31998 \begin_layout Plain Layout
32000 'this is a python function'
32003 \begin_layout Plain Layout
32013 \begin_layout Standard
32014 When you have tabulators in your listing, you can specify the number of
32015 characters that are spanned by a tabulator in the field
32018 \begin_inset space ~
32026 \begin_layout Standard
32027 \begin_inset Note Greyedout
32030 \begin_layout Plain Layout
32035 Due to a bug in the
32039 package the line numbering is shifted by a line by every previous listing.
32040 That's the reason why the lines 2 and 5 are numbered in the above listing
32041 and not the lines 3 and 6.
32049 \begin_layout Standard
32050 \begin_inset VSpace bigskip
32056 \begin_layout Standard
32057 It is also possible to print lines from a file as listing.
32058 To do this, use the menu
32060 Insert\SpecialChar \menuseparator
32061 File\SpecialChar \menuseparator
32064 and choose the type
32072 \begin_layout Plain Layout
32073 The other child document types are described in section
32074 \begin_inset space ~
32078 \begin_inset CommandInset ref
32080 reference "sec:Child-Documents"
32089 In the child document dialog you can specify the listing parameters in
32091 To show a list of all available parameters, type in a question mark
32092 \begin_inset Quotes eld
32096 \begin_inset Quotes erd
32102 \begin_layout Standard
32103 To reference child document listings, write a label text into the corresponding
32104 field of the child document dialog.
32105 The label can then be referenced using the menu
32107 Insert\SpecialChar \menuseparator
32113 \begin_layout Standard
32115 \begin_inset space ~
32119 \begin_inset CommandInset ref
32121 reference "lst:file-listing"
32125 is an example for a listing of a file; there the lines 10
32126 \begin_inset space \thinspace{}
32130 \begin_inset space \thinspace{}
32133 15 of this LyX file are listed.
32136 \begin_layout Standard
32137 \begin_inset CommandInset include
32138 LatexCommand lstinputlisting
32139 filename "EmbeddedObjects.lyx"
32140 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
32147 \begin_layout Standard
32148 \begin_inset VSpace bigskip
32154 \begin_layout Standard
32155 Global listings settings can be set in the
32157 Document\SpecialChar \menuseparator
32158 Settings\SpecialChar \menuseparator
32162 To get there a list of available options, type in a question mark
32163 \begin_inset Quotes eld
32167 \begin_inset Quotes erd
32173 \begin_inset space ~
32181 \begin_layout Standard
32182 For more information about the
32186 package, we refer to its documentation
32187 \begin_inset CommandInset citation
32196 \begin_layout Standard
32197 \begin_inset Newpage newpage
32203 \begin_layout Chapter
32205 Units available in LyX
32209 \begin_layout Plain Layout
32216 \begin_inset CommandInset label
32218 name "cha:Units-available-in"
32225 \begin_layout Standard
32226 To understand the units described in this documentation, Table
32227 \begin_inset space ~
32231 \begin_inset CommandInset ref
32233 reference "tab:Units"
32237 explains all units available in LyX.
32240 \begin_layout Standard
32241 \begin_inset Float table
32247 \begin_layout Plain Layout
32248 \begin_inset Caption
32250 \begin_layout Plain Layout
32251 \begin_inset CommandInset label
32265 \begin_layout Plain Layout
32266 \begin_inset VSpace medskip
32272 \begin_layout Plain Layout
32274 \begin_inset Tabular
32275 <lyxtabular version="3" rows="20" columns="2">
32277 <column alignment="center" valignment="top" width="0">
32278 <column alignment="center" valignment="top" width="0">
32280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32283 \begin_layout Plain Layout
32289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32292 \begin_layout Plain Layout
32300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32303 \begin_layout Plain Layout
32309 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32312 \begin_layout Plain Layout
32320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32323 \begin_layout Plain Layout
32329 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32332 \begin_layout Plain Layout
32340 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32343 \begin_layout Plain Layout
32349 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32352 \begin_layout Plain Layout
32360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32363 \begin_layout Plain Layout
32369 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32372 \begin_layout Plain Layout
32374 \begin_inset space \thinspace{}
32378 \begin_inset space \thinspace{}
32388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32391 \begin_layout Plain Layout
32397 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32400 \begin_layout Plain Layout
32402 \begin_inset space \thinspace{}
32406 \begin_inset space \thinspace{}
32416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32419 \begin_layout Plain Layout
32425 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32428 \begin_layout Plain Layout
32429 scaled point (65536
32430 \begin_inset space \thinspace{}
32434 \begin_inset space \thinspace{}
32444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32447 \begin_layout Plain Layout
32453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32456 \begin_layout Plain Layout
32458 \begin_inset space \thinspace{}
32462 \begin_inset space \thinspace{}
32472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32475 \begin_layout Plain Layout
32481 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32484 \begin_layout Plain Layout
32486 \begin_inset space \thinspace{}
32490 \begin_inset Formula $\approx$
32494 \begin_inset space \thinspace{}
32504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32507 \begin_layout Plain Layout
32513 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32516 \begin_layout Plain Layout
32518 \begin_inset space \thinspace{}
32522 \begin_inset space \thinspace{}
32532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32535 \begin_layout Plain Layout
32541 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32544 \begin_layout Plain Layout
32545 % of original image width
32552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32555 \begin_layout Plain Layout
32561 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32564 \begin_layout Plain Layout
32572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32575 \begin_layout Plain Layout
32581 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32584 \begin_layout Plain Layout
32592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32595 \begin_layout Plain Layout
32601 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32604 \begin_layout Plain Layout
32612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32615 \begin_layout Plain Layout
32621 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32624 \begin_layout Plain Layout
32632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32635 \begin_layout Plain Layout
32641 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32644 \begin_layout Plain Layout
32652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32655 \begin_layout Plain Layout
32661 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32664 \begin_layout Plain Layout
32672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32675 \begin_layout Plain Layout
32681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32684 \begin_layout Plain Layout
32696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32699 \begin_layout Plain Layout
32705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32708 \begin_layout Plain Layout
32720 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32723 \begin_layout Plain Layout
32729 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32732 \begin_layout Plain Layout
32734 \begin_inset space \thinspace{}
32738 \begin_inset space \thinspace{}
32759 \begin_layout Chapter
32760 Output File Formats with Graphics
32761 \begin_inset CommandInset label
32763 name "cha:Output-File-Formats"
32770 \begin_layout Section
32775 \begin_layout Plain Layout
32785 \begin_layout Plain Layout
32790 \begin_layout Plain Layout
32801 \begin_layout Plain Layout
32816 \begin_layout Standard
32817 This file type has the extension
32818 \begin_inset Quotes eld
32826 \begin_inset Quotes erd
32831 \begin_inset Quotes eld
32835 \begin_inset Quotes erd
32838 (DVI), because it is completely portable; you can move them from one machine
32839 to another without needing to do any sort of conversion.
32840 At the time when this file-format was developed, this was no matter of
32842 DVIs are used for quick previews and as pre-stage for other output formats,
32846 \begin_layout Standard
32847 \begin_inset Note Greyedout
32850 \begin_layout Plain Layout
32855 DVI-files doesn't contain images, they will only be a linked.
32860 So don't forget this, if you move your
32864 file to another computer.
32865 This property can also slow down your computer when you view the DVI.
32866 Because the DVI-viewer has to convert the image in the background to make
32867 it visible when you scroll in the DVI.
32868 So we recommend to use PDF for files with many images.
32871 \begin_layout Standard
32872 You can export your document to DVI by using the menu
32874 File\SpecialChar \menuseparator
32875 Export\SpecialChar \menuseparator
32879 You can view your document as DVI via the
32883 menu or by using the toolbar button
32884 \begin_inset Graphics
32885 filename ../images/buffer-view_dvi.png
32887 scaleBeforeRotation
32894 \begin_layout Section
32896 \begin_inset CommandInset label
32898 name "sec:PostScript"
32906 \begin_layout Plain Layout
32907 File Formats ! PostScript
32916 \begin_layout Plain Layout
32921 \begin_layout Plain Layout
32932 \begin_layout Plain Layout
32947 \begin_layout Standard
32948 This file type has the extension
32949 \begin_inset Quotes eld
32957 \begin_inset Quotes erd
32961 PostScript was developed by the company
32965 as printer language.
32966 The file contains therefore commands that the printer uses to print the
32968 PostScript can be seen as
32969 \begin_inset Quotes eld
32972 programming language
32973 \begin_inset Quotes erd
32976 ; you can calculate with it and draw diagrams and images
32980 \begin_layout Plain Layout
32981 If you are interested to learn more about this, have a look at the LaTeX-package
32987 \begin_inset CommandInset citation
32999 Due to this ability, the files are often bigger than PDFs.
33002 \begin_layout Standard
33003 PostScript can only contain images in the format
33004 \begin_inset Quotes eld
33007 Encapsulated PostScript
33008 \begin_inset Quotes erd
33011 (EPS, file extension
33012 \begin_inset Quotes eld
33020 \begin_inset Quotes erd
33024 As LyX allows you to use any known image format in your document, it has
33025 to convert images in the background to EPS.
33026 If you have e.g 50 images in your document, LyX has to do 50 conversions
33027 whenever you view or export your document.
33028 This will slow down your work flow with LyX drastically.
33029 So if you plan to use PostScript, you can insert your images directly as
33030 EPS to avoid this problem.
33033 \begin_layout Standard
33034 You can export your document to PostScript using the menu
33036 File\SpecialChar \menuseparator
33037 Export\SpecialChar \menuseparator
33041 You can view your document as PostScript via the
33045 menu or by using the toolbar button
33046 \begin_inset Graphics
33047 filename ../images/buffer-view_ps.png
33049 scaleBeforeRotation
33056 \begin_layout Section
33061 \begin_layout Plain Layout
33071 \begin_layout Plain Layout
33080 \begin_layout Standard
33081 This file type has the extension
33082 \begin_inset Quotes eld
33090 \begin_inset Quotes erd
33095 \begin_inset Quotes eld
33098 Portable Document Format
33099 \begin_inset Quotes erd
33102 (PDF) is developed by
33106 as derivative from PostScript.
33107 It is more compressed and it uses much less commands than PostScript.
33109 \begin_inset Quotes eld
33113 \begin_inset Quotes erd
33116 implies, it can be processed at any computer system and the printed output
33117 looks exactly the same.
33120 \begin_layout Standard
33121 PDF can contain images in its own PDF format, in the format
33122 \begin_inset Quotes eld
33125 Joint Photographic Experts Group
33126 \begin_inset Quotes erd
33129 (JPG, file extension
33130 \begin_inset Quotes eld
33138 \begin_inset Quotes erd
33142 \begin_inset Quotes eld
33150 \begin_inset Quotes erd
33153 ), and in the format
33154 \begin_inset Quotes eld
33157 Portable Network Graphics
33158 \begin_inset Quotes erd
33161 (PNG, file extension
33162 \begin_inset Quotes eld
33170 \begin_inset Quotes erd
33174 Nevertheless you can use any other image format, because LyX converts them
33175 in the background to one of these formats.
33176 But as described in the section about PostScript, the image conversion
33177 will slow down your work flow.
33178 So it is recommended to use images in one of the three mentioned formats.
33181 \begin_layout Standard
33182 You can export your document to PDF via the menu
33184 File\SpecialChar \menuseparator
33187 in three different ways:
33190 \begin_layout Description
33192 \begin_inset space ~
33195 (ps2pdf) This uses the program
33199 that creates a PDF from a PostScript-version of your file.
33200 The PostScript-version is produced by the program
33204 which uses a DVI-version as intermediate step.
33205 So this export variant consist of three conversions.
33208 \begin_layout Description
33210 \begin_inset space ~
33213 (dvipdfm) This uses the program
33217 that converts your file in the background to DVI and in a second step to
33221 \begin_layout Description
33223 \begin_inset space ~
33226 (pdflatex) This uses the program
33230 that converts your file directly to PDF.
33233 \begin_layout Standard
33234 It is recommended to use
33237 \begin_inset space ~
33246 supports all features of actual PDF-versions, is quick and works stable
33252 is not under development and therefore a bit outdated.
33255 \begin_layout Standard
33256 You can view your document as PDF via the
33260 menu or by using the toolbar button
33261 \begin_inset Graphics
33262 filename ../images/buffer-view_pdf2.png
33264 scaleBeforeRotation
33275 \begin_inset space ~
33283 \begin_layout Chapter
33284 Explanation of Equation
33285 \begin_inset space ~
33289 \begin_inset CommandInset ref
33296 \begin_inset CommandInset label
33298 name "cha:Explanation-of-Equation"
33305 \begin_layout Standard
33311 \begin_inset Formula $W_{\mathrm{tot\, n}}$
33314 can be calculated to
33317 \begin_layout Standard
33318 \begin_inset Formula \begin{equation}
33319 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}
33326 \begin_layout Standard
33328 \begin_inset Formula $W_{g\, n}$
33331 is the given width of all cells.
33338 is the LaTeX-length between the cell text and the cell border, its default
33340 \begin_inset space \thinspace{}
33350 is the thickness of the cell border line, the default is 0.4
33351 \begin_inset space \thinspace{}
33357 \begin_layout Standard
33359 \begin_inset space ~
33363 \begin_inset CommandInset ref
33365 reference "eq:Wtot_n"
33369 , the total width of a multicolumn
33370 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
33376 \begin_layout Standard
33377 \begin_inset Formula \begin{equation}
33378 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
33385 \begin_layout Standard
33386 By setting equation
33387 \begin_inset space ~
33391 \begin_inset CommandInset ref
33393 reference "eq:Wtot_n"
33398 \begin_inset CommandInset ref
33400 reference "eq:Wtot_mult"
33404 equal we can calculate the needed given width
33405 \begin_inset Formula $W_{g\, n}$
33412 columns are spanned, so that each column has a total width of
33413 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
33419 \begin_layout Standard
33420 \begin_inset Formula \begin{equation}
33421 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
33428 \begin_layout Bibliography
33429 \begin_inset CommandInset bibitem
33430 LatexCommand bibitem
33431 key "latexcompanion"
33435 Frank Mittelbach and Michel Goossens:
33437 The LaTeX Companion Second Edition.
33440 Addison-Wesley, 2004
33443 \begin_layout Bibliography
33444 \begin_inset CommandInset bibitem
33445 LatexCommand bibitem
33450 Helmut Kopka and Patrick W.
33453 A Guide to LaTeX Fourth Edition.
33456 Addison-Wesley, 2003
33459 \begin_layout Bibliography
33460 \begin_inset CommandInset bibitem
33461 LatexCommand bibitem
33468 LaTeX: A Document Preparation System.
33471 Addison-Wesley, second edition, 1994
33474 \begin_layout Bibliography
33475 \begin_inset CommandInset bibitem
33476 LatexCommand bibitem
33481 Documentation of the LaTeX-package
33484 \begin_inset CommandInset href
33487 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
33497 \begin_layout Plain Layout
33498 LaTeX-packages ! booktabs
33506 \begin_layout Bibliography
33507 \begin_inset CommandInset bibitem
33508 LatexCommand bibitem
33513 Documentation of the LaTeX-package
33516 \begin_inset CommandInset href
33519 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
33529 \begin_layout Plain Layout
33530 LaTeX-packages ! caption
33538 \begin_layout Bibliography
33539 \begin_inset CommandInset bibitem
33540 LatexCommand bibitem
33545 Documentation of the LaTeX-package
33548 \begin_inset CommandInset href
33551 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
33561 \begin_layout Plain Layout
33562 LaTeX-packages ! endfloat
33570 \begin_layout Bibliography
33571 \begin_inset CommandInset bibitem
33572 LatexCommand bibitem
33577 Documentation of the LaTeX-package
33580 \begin_inset CommandInset href
33583 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
33593 \begin_layout Plain Layout
33594 LaTeX-packages ! wrapfig
33598 \begin_layout Plain Layout
33615 \begin_layout Bibliography
33616 \begin_inset CommandInset bibitem
33617 LatexCommand bibitem
33622 Documentation of the LaTeX-package
33625 \begin_inset CommandInset href
33628 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
33638 \begin_layout Plain Layout
33639 LaTeX-packages ! footmisc
33647 \begin_layout Bibliography
33648 \begin_inset CommandInset bibitem
33649 LatexCommand bibitem
33654 Documentation of the LaTeX-package
33657 \begin_inset CommandInset href
33660 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
33670 \begin_layout Plain Layout
33671 LaTeX-packages ! hyperref
33679 \begin_layout Bibliography
33680 \begin_inset CommandInset bibitem
33681 LatexCommand bibitem
33686 Documentation of the LaTeX-package
33689 \begin_inset CommandInset href
33692 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
33702 \begin_layout Plain Layout
33703 LaTeX-packages ! hyperref
33711 \begin_layout Bibliography
33712 \begin_inset CommandInset bibitem
33713 LatexCommand bibitem
33718 Documentation of the LaTeX-package
33721 \begin_inset CommandInset href
33724 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
33734 \begin_layout Plain Layout
33735 LaTeX-packages ! koma-script
33743 \begin_layout Bibliography
33744 \begin_inset CommandInset bibitem
33745 LatexCommand bibitem
33750 Documentation of the LaTeX-package
33753 \begin_inset CommandInset href
33756 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
33766 \begin_layout Plain Layout
33767 LaTeX-packages ! listings
33775 \begin_layout Bibliography
33776 \begin_inset CommandInset bibitem
33777 LatexCommand bibitem
33782 Documentation of the LaTeX-package
33785 \begin_inset CommandInset href
33788 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
33798 \begin_layout Plain Layout
33799 LaTeX-packages ! marginnote
33807 \begin_layout Bibliography
33808 \begin_inset CommandInset bibitem
33809 LatexCommand bibitem
33814 Web page of the LaTeX-package
33817 \begin_inset CommandInset href
33820 target "http://tug.org/PSTricks/"
33830 \begin_layout Plain Layout
33831 LaTeX-packages ! PSTricks
33839 \begin_layout Bibliography
33840 \begin_inset CommandInset bibitem
33841 LatexCommand bibitem
33846 Documentation of the LaTeX-package
33849 \begin_inset CommandInset href
33852 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
33862 \begin_layout Plain Layout
33863 LaTeX-packages ! sidecap
33871 \begin_layout Bibliography
33872 \begin_inset CommandInset bibitem
33873 LatexCommand bibitem
33879 \begin_inset CommandInset href
33882 target "http://wiki.lyx.org/LyX/NewInLyX16"
33886 about new features in
33893 \begin_layout Standard
33894 \begin_inset CommandInset index_print
33895 LatexCommand printindex
33902 \begin_layout Standard
33903 \begin_inset FloatList figure
33910 \begin_layout Standard
33911 \begin_inset FloatList table
33918 \begin_layout Standard
33919 \begin_inset FloatList algorithm