1 #LyX 1.6.3svn 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 by right-clicking on it
487 in the appearing context menu.
488 The program can be set for every image format in the file format settings
489 in LyX's preferences.
492 \begin_layout Description
497 Alternatively to the usage of scaling units it is possible to set image
498 coordinates to adjust the height and width of the image in the output.
499 The coordinates can also be calculated automatically by pressing the button
529 will only print the image region within the given coordinates.
530 Normally you don't need to take care about image coordinates and can ignore
534 \begin_layout Description
551 In this tab you can modify the appearance of the image within LyX and LaTeX
552 experts can specify additional LaTeX options.
553 \begin_inset Newline newline
564 makes the image appear in the output only as a frame with the size of the
566 \begin_inset Newline newline
585 option only affects zipped EPS-graphics, e.
586 \begin_inset space \thinspace{}
590 \begin_inset space \space{}
598 When the option is used the images will not be unzipped on export, since
599 LaTeX can handle them as they are.
600 \begin_inset Newline newline
603 Zipped EPS-graphics are useful to save disk space when you choose PostScript
604 as output format, see appendix
609 \begin_inset CommandInset ref
611 reference "sec:PostScript"
616 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
618 \begin_inset Newline newline
626 \begin_inset Newline newline
631 zgrep %%Bounding x.eps.gz > x.eps.bb
634 \begin_inset Newline newline
637 The second command creates the bounding box file
638 \begin_inset Quotes eld
642 \begin_inset Quotes erd
645 that is needed by LaTeX for zipped graphics.
646 \begin_inset Newline newline
661 allows you define or join an image settings group.
665 \begin_layout Plain Layout
666 Figures ! Settings grouping
671 Images within such a group share their settings, so adjusting one image
672 of the group automatically also adjusts all other images of the group in
674 So you can for example change the size for a bunch of images without the
675 need to manually change each of them.
676 Joining an existing group can also be done using the context menu of the
677 image by checking the name of the desired group.
680 \begin_layout Standard
681 \begin_inset VSpace bigskip
687 \begin_layout Standard
688 This is an example image in EPS format
692 \begin_layout Plain Layout
693 Image formats are explained in section
698 \begin_inset CommandInset ref
700 reference "sec:Image-Formats"
709 within a separate, horizontally centered paragraph:
712 \begin_layout Standard
714 \begin_inset Graphics
715 filename clipart/mobius.eps
725 \begin_layout Standard
726 This is the same image like the one above but in draft mode:
729 \begin_layout Standard
731 \begin_inset Graphics
732 filename clipart/mobius.eps
743 \begin_layout Standard
744 \begin_inset Newpage newpage
750 \begin_layout Section
752 \begin_inset CommandInset label
754 name "sec:Figure-Floats"
762 \begin_layout Plain Layout
772 \begin_layout Plain Layout
781 \begin_layout Standard
782 For general explanations about floats, have a look at section
787 \begin_inset CommandInset ref
789 reference "sec:FloatIntroduction"
796 \begin_layout Standard
798 \begin_inset Graphics
799 filename ../images/float-insert_figure.png
807 Insert\SpecialChar \menuseparator
808 Float\SpecialChar \menuseparator
811 inserts a float with a caption that has the label
812 \begin_inset Quotes eld
820 \begin_inset Quotes erd
823 (# is the actual number).
824 You can insert the image above the caption, like in Figure
829 \begin_inset CommandInset ref
831 reference "fig:kill-plat"
835 or below the caption, like in Figure
840 \begin_inset CommandInset ref
842 reference "fig:escher"
847 More about the caption placement is described in section
852 \begin_inset CommandInset ref
854 reference "sec:Caption-Placement"
861 \begin_layout Standard
862 \begin_inset Float figure
867 \begin_layout Plain Layout
869 \begin_inset Graphics
870 filename clipart/platypus.eps
880 \begin_layout Plain Layout
883 \begin_layout Plain Layout
884 \begin_inset CommandInset label
890 A severely distorted platypus in a float.
903 \begin_layout Standard
904 \begin_inset Float figure
909 \begin_layout Plain Layout
912 \begin_layout Plain Layout
913 \begin_inset CommandInset label
928 \begin_layout Plain Layout
930 \begin_inset Graphics
931 filename clipart/escher-lsd.eps
946 \begin_layout Standard
950 \begin_layout Plain Layout
951 References ! to Figures
961 \begin_inset CommandInset ref
963 reference "fig:kill-plat"
968 \begin_inset CommandInset ref
970 reference "fig:escher"
974 are examples of referenced figures.
975 Figures can be referenced in the text by referencing their label.
976 To do this insert a label in the caption using the menu
978 Insert\SpecialChar \menuseparator
981 or the toolbar button
982 \begin_inset Graphics
983 filename ../images/label-insert.png
990 You can now refer to the label using the menu
992 Insert\SpecialChar \menuseparator
999 or the toolbar button
1000 \begin_inset Graphics
1001 filename ../images/dialog-show-new-inset_ref.png
1008 It is important to use references to floats, rather than using vague references
1010 \begin_inset Quotes eld
1014 \begin_inset Quotes erd
1017 , because as LaTeX will reposition the floats in the final document, it
1019 \begin_inset Quotes eld
1023 \begin_inset Quotes erd
1027 \begin_inset Newline newline
1030 Referencing is explained in detail in section
1031 \begin_inset space ~
1035 \begin_inset CommandInset ref
1037 reference "sec:Referencing-Floats"
1044 \begin_layout Standard
1045 Normally only one image is inserted to a figure float, but sometimes you
1046 might want to use two images with separate subcaptions.
1047 This can be done by inserting image floats into existing image floats.
1048 Note that only the main caption of the float is added to the List of Figures.
1050 \begin_inset space ~
1054 \begin_inset CommandInset ref
1056 reference "fig:Two-distorted-images"
1060 is an example of a figure float with two images set side by side.
1061 You can also set the images one below the other.
1063 \begin_inset space ~
1067 \begin_inset CommandInset ref
1069 reference "fig:Undefinable-structure"
1074 \begin_inset CommandInset ref
1076 reference "fig:A-Platypus"
1083 \begin_layout Standard
1084 \begin_inset Float figure
1089 \begin_layout Plain Layout
1090 \begin_inset space \hfill{}
1094 \begin_inset Float figure
1099 \begin_layout Plain Layout
1100 \begin_inset Caption
1102 \begin_layout Plain Layout
1103 \begin_inset CommandInset label
1105 name "fig:Undefinable-structure"
1109 Undefinable structure.
1117 \begin_layout Plain Layout
1118 \begin_inset Graphics
1119 filename clipart/escher-lsd.eps
1132 \begin_inset space \hfill{}
1136 \begin_inset Float figure
1141 \begin_layout Plain Layout
1142 \begin_inset Caption
1144 \begin_layout Plain Layout
1145 \begin_inset CommandInset label
1147 name "fig:A-Platypus"
1159 \begin_layout Plain Layout
1160 \begin_inset Graphics
1161 filename clipart/platypus.eps
1174 \begin_inset space \hfill{}
1180 \begin_layout Plain Layout
1181 \begin_inset Caption
1183 \begin_layout Plain Layout
1184 \begin_inset CommandInset label
1186 name "fig:Two-distorted-images"
1190 Two distorted images.
1191 Both images are in the image settings group named
1192 \begin_inset Quotes eld
1196 \begin_inset Quotes erd
1212 \begin_layout Standard
1213 \begin_inset Newpage newpage
1219 \begin_layout Section
1221 \begin_inset CommandInset label
1223 name "sec:Image-Formats"
1231 \begin_layout Plain Layout
1241 \begin_layout Plain Layout
1242 Figures ! Image Formats
1250 \begin_layout Standard
1251 You can insert images in any known file format.
1252 But as explained in appendix
1253 \begin_inset space ~
1257 \begin_inset CommandInset ref
1259 reference "cha:Output-File-Formats"
1263 , every output document format allows only a few image formats.
1264 LyX uses therefore the program
1268 in the background to convert the images to the right format.
1269 To increase your work flow by avoiding these conversions in the background,
1270 you can use only the image formats that can directly be embedded in the
1272 The output file formats are explained in appendix
1273 \begin_inset space ~
1277 \begin_inset CommandInset ref
1279 reference "cha:Output-File-Formats"
1286 \begin_layout Standard
1287 Similar to fonts there are two types of image formats:
1290 \begin_layout Description
1292 \begin_inset space ~
1295 images consist of pixel values, often in a compressed form.
1296 They are therefore not fully scalable and look pixeled in large zooms.
1297 Well-known bitmap image formats are
1298 \begin_inset Quotes eld
1301 Graphics Interchange Format
1302 \begin_inset Quotes erd
1305 (GIF, file extension
1306 \begin_inset Quotes eld
1314 \begin_inset Quotes erd
1321 \begin_layout Plain Layout
1326 \begin_layout Plain Layout
1337 \begin_layout Plain Layout
1350 \begin_inset Quotes eld
1353 Portable Network Graphics
1354 \begin_inset Quotes erd
1357 (PNG, file extension
1358 \begin_inset Quotes eld
1366 \begin_inset Quotes erd
1373 \begin_layout Plain Layout
1378 \begin_layout Plain Layout
1389 \begin_layout Plain Layout
1402 \begin_inset Quotes eld
1405 Joint Photographic Experts Group
1406 \begin_inset Quotes erd
1409 (JPG, file extension
1410 \begin_inset Quotes eld
1418 \begin_inset Quotes erd
1422 \begin_inset Quotes eld
1430 \begin_inset Quotes erd
1437 \begin_layout Plain Layout
1442 \begin_layout Plain Layout
1453 \begin_layout Plain Layout
1468 \begin_layout Description
1470 \begin_inset space ~
1473 images consist of vectors and can therefore be scaled to any size without
1475 The scaling ability is necessary if you want to create presentations, because
1476 presentations are always scaled by the video projector.
1477 Scaling is also useful for online documents to let the user zoom into diagrams.
1478 \begin_inset Newline newline
1481 Well-known scalable image formats are
1482 \begin_inset Quotes eld
1485 Scalable Vector Graphics
1486 \begin_inset Quotes erd
1489 (SVG, file extension
1490 \begin_inset Quotes eld
1498 \begin_inset Quotes erd
1505 \begin_layout Plain Layout
1510 \begin_layout Plain Layout
1521 \begin_layout Plain Layout
1534 \begin_inset Quotes eld
1537 Encapsulated PostScript
1538 \begin_inset Quotes erd
1541 (EPS, file extension
1542 \begin_inset Quotes eld
1550 \begin_inset Quotes erd
1557 \begin_layout Plain Layout
1562 \begin_layout Plain Layout
1573 \begin_layout Plain Layout
1586 \begin_inset Quotes eld
1589 Portable Document Format
1590 \begin_inset Quotes erd
1593 (PDF, file extension
1594 \begin_inset Quotes eld
1602 \begin_inset Quotes erd
1609 \begin_layout Plain Layout
1616 \begin_inset Quotes eld
1620 \begin_inset Quotes erd
1623 (WMF, file extension
1624 \begin_inset Quotes eld
1632 \begin_inset Quotes erd
1639 \begin_layout Plain Layout
1644 \begin_layout Plain Layout
1655 \begin_layout Plain Layout
1669 \begin_inset Quotes eld
1673 \begin_inset Quotes erd
1676 , because you can convert any bitmap image to a PDF or EPS-image and the
1677 result will still be a bitmap image.
1678 In this cases only a header with the image properties is added to the original
1683 \begin_layout Plain Layout
1684 In the case of PDF, the original image is additionally compressed.
1690 The PDF-files generated by
1694 are for example bitmap images.
1697 \begin_layout Standard
1698 Normally it is not possible to convert a bitmap image into a scalable one,
1700 Only the image formats PDF and EPS can directly be embedded to PDF and
1701 PostScript output files, respectively.
1702 SVG and WMF-images are recalculated to bitmaps when the output file is
1703 generated because there is currently no adequate WMF/SVG
1704 \begin_inset Formula $\to$
1707 PDF/EPS converter available.
1710 \begin_layout Chapter
1715 \begin_layout Plain Layout
1724 \begin_layout Section
1729 \begin_layout Plain Layout
1730 Table ! Introduction
1738 \begin_layout Standard
1739 You can insert a table using either the toolbar button
1740 \begin_inset Graphics
1741 filename ../images/tabular-insert.png
1749 Insert\SpecialChar \menuseparator
1753 The toolbar button offers you a graphical selection: Move the mouse to
1754 set the column/row number of the table that should be created and then
1755 press a mouse button.
1756 When you use the menu to create a table, a dialog will appear, asking you
1757 for the number of rows and columns.
1758 \begin_inset Newline newline
1761 The default table has lines around any cell and the first row appears separated
1762 from the rest of the table.
1763 This separation occurs due to a double line: The cells of the first row
1764 have a line below them and the cells of the second row have a line above
1766 Here is an example table:
1769 \begin_layout Standard
1771 \begin_inset Tabular
1772 <lyxtabular version="3" rows="4" columns="4">
1774 <column alignment="center" valignment="top" width="0">
1775 <column alignment="center" valignment="top" width="0">
1776 <column alignment="center" valignment="top" width="0">
1777 <column alignment="center" valignment="top" width="0">
1779 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1782 \begin_layout Plain Layout
1788 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1791 \begin_layout Plain Layout
1806 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1809 \begin_layout Plain Layout
1815 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1818 \begin_layout Plain Layout
1826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1829 \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" usebox="none">
1856 \begin_layout Plain Layout
1862 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1865 \begin_layout Plain Layout
1873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1876 \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" usebox="none">
1903 \begin_layout Plain Layout
1909 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1912 \begin_layout Plain Layout
1920 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1923 \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" usebox="none">
1950 \begin_layout Plain Layout
1956 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1959 \begin_layout Plain Layout
1973 \begin_layout Section
1978 \begin_layout Plain Layout
1987 \begin_layout Standard
1988 You can alter a table by clicking on it with the right mouse button, which
1989 brings up the table dialog.
1990 Here you can adjust the settings of that cell and row/column respectively
1991 where the cursor is currently placed.
1992 Most of the dialog options also work on selections.
1993 This means if you select more cells, columns or rows, the action is done
1994 for the whole selection.
1995 Note that there is a difference between selecting the
1999 of the cell, and the cell itself.
2000 You can alter tables with the following tabs of the table dialog:
2003 \begin_layout Description
2007 \begin_inset space ~
2012 Here you can set the horizontal alignment and the width of the current
2014 When you have set a width you can also adjust the vertical alignment of
2016 A given width will allow the cell to have line breaks and multiple paragraphs
2017 of text, see section
2018 \begin_inset space ~
2022 \begin_inset CommandInset ref
2024 reference "sub:Multiple-Lines-in"
2029 If you set no width, the column is as wide as their widest cell content
2031 \begin_inset Newline newline
2034 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2036 \begin_inset space ~
2040 \begin_inset CommandInset ref
2042 reference "sub:Multicolumns"
2047 \begin_inset Newline newline
2050 The rotate check boxes rotates the current cell, a selection, or the whole
2051 table counter-clockwise by 90°.
2052 The rotation is not shown within LyX, only in the output.
2053 \begin_inset Newline newline
2057 \begin_inset Note Greyedout
2060 \begin_layout Plain Layout
2065 Not all DVI-viewers are able to display rotations.
2071 \begin_inset Newline newline
2074 It is also possible to enter a LaTeX-argument which is needed for special
2075 table formattings, see section
2076 \begin_inset space ~
2080 \begin_inset CommandInset ref
2082 reference "sub:Multicolumn-Calculations"
2087 \begin_inset CommandInset ref
2089 reference "sec:Colored-Tables"
2096 \begin_layout Description
2101 In this tab you can add and delete border lines for the current row/column.
2102 \begin_inset Newline newline
2105 Using the style option
2109 will convert the table to a formal table as described in section
2110 \begin_inset space ~
2114 \begin_inset CommandInset ref
2116 reference "sec:Formal-Tables"
2121 \begin_inset Newline newline
2124 You can also add here space to table rows as decribed in section
2125 \begin_inset space ~
2129 \begin_inset CommandInset ref
2131 reference "sub:Row-Spacing"
2138 \begin_layout Description
2143 This tab is to make a table a so called
2144 \begin_inset Quotes eld
2152 \begin_inset Quotes erd
2155 that can run over several pages.
2157 \begin_inset space ~
2161 \begin_inset CommandInset ref
2163 reference "sec:Longtables"
2168 \begin_inset CommandInset ref
2170 reference "sec:Special-Longtable-Issues"
2174 describe the longtable features in detail.
2177 \begin_layout Standard
2178 When the table toolbar is opened, you can move the cursor with the arrow
2179 keys from cell to cell and the property of the current cell will immediately
2180 be displayed in the dialog.
2183 \begin_layout Section
2188 \begin_layout Plain Layout
2197 \begin_layout Standard
2198 The table toolbar is an alternative to the table dialog to be able to alter
2200 It should normally appear at the bottom of LyX's main window when the cursor
2202 You can alternatively switch it on to appear always, by right-clicking
2203 in LyX's main menu bar.
2206 \begin_layout Standard
2207 The toolbar has the following icons:
2210 \begin_layout Labeling
2211 \labelwidthstring 00.00.0000
2212 \begin_inset Graphics
2213 filename ../images/tabular-feature_append-row.png
2218 adds a row below the current cell or selection
2221 \begin_layout Labeling
2222 \labelwidthstring 00.00.0000
2223 \begin_inset Graphics
2224 filename ../images/tabular-feature_append-column.png
2229 adds a column right beside the current cell or selection
2232 \begin_layout Labeling
2233 \labelwidthstring 00.00.0000
2234 \begin_inset Graphics
2235 filename ../images/tabular-feature_delete-row.png
2240 deletes the current row or selection
2243 \begin_layout Labeling
2244 \labelwidthstring 00.00.0000
2245 \begin_inset Graphics
2246 filename ../images/tabular-feature_delete-column.png
2251 deletes the current column or selection
2254 \begin_layout Labeling
2255 \labelwidthstring 00.00.0000
2256 \begin_inset Graphics
2257 filename ../images/tabular-feature_toggle-line-top.png
2262 adds a line at the top of the current cell / row or of a selection
2265 \begin_layout Labeling
2266 \labelwidthstring 00.00.0000
2267 \begin_inset Graphics
2268 filename ../images/tabular-feature_toggle-line-bottom.png
2273 adds a line at the bottom of the current cell / row or of a selection
2276 \begin_layout Labeling
2277 \labelwidthstring 00.00.0000
2278 \begin_inset Graphics
2279 filename ../images/tabular-feature_toggle-line-left.png
2284 adds a line at the left side of the current cell / row or of a selection
2287 \begin_layout Labeling
2288 \labelwidthstring 00.00.0000
2289 \begin_inset Graphics
2290 filename ../images/tabular-feature_toggle-line-right.png
2295 adds a line at the right side of the current cell / row or of a selection
2298 \begin_layout Labeling
2299 \labelwidthstring 00.00.0000
2300 \begin_inset Graphics
2301 filename ../images/tabular-feature_set-all-lines.png
2306 adds lines around the current or selected cells - if the current cell no
2307 multicolumn this also affects the current row and column
2310 \begin_layout Labeling
2311 \labelwidthstring 00.00.0000
2312 \begin_inset Graphics
2313 filename ../images/tabular-feature_unset-all-lines.png
2318 deletes all lines of the current or selected cells - if the current cell
2319 no multicolumn this also affects the current row and column
2322 \begin_layout Labeling
2323 \labelwidthstring 00.00.0000
2324 \begin_inset Graphics
2325 filename ../images/tabular-feature_m-align-left.png
2330 left-aligns the content of the current cell / column
2333 \begin_layout Labeling
2334 \labelwidthstring 00.00.0000
2335 \begin_inset Graphics
2336 filename ../images/tabular-feature_m-align-center.png
2341 centers the content of the current cell / column horizontally
2344 \begin_layout Labeling
2345 \labelwidthstring 00.00.0000
2346 \begin_inset Graphics
2347 filename ../images/tabular-feature_m-align-right.png
2352 right-aligns the content of the current cell / column
2355 \begin_layout Labeling
2356 \labelwidthstring 00.00.0000
2357 \begin_inset Graphics
2358 filename ../images/tabular-feature_m-valign-top.png
2363 aligns the content of the current cell vertically to the top
2366 \begin_layout Labeling
2367 \labelwidthstring 00.00.0000
2368 \begin_inset Graphics
2369 filename ../images/tabular-feature_m-valign-middle.png
2374 centers the content of the current cell vertically
2377 \begin_layout Labeling
2378 \labelwidthstring 00.00.0000
2379 \begin_inset Graphics
2380 filename ../images/tabular-feature_m-valign-bottom.png
2385 aligns the content of the current cell vertically to the bottom
2388 \begin_layout Labeling
2389 \labelwidthstring 00.00.0000
2390 \begin_inset Graphics
2391 filename ../images/tabular-feature_set-rotate-cell.png
2396 rotates the current cell or selection counter-clockwise by 90°
2399 \begin_layout Labeling
2400 \labelwidthstring 00.00.0000
2401 \begin_inset Graphics
2402 filename ../images/tabular-feature_set-rotate-tabular.png
2407 rotates the whole table counter-clockwise by 90°
2410 \begin_layout Labeling
2411 \labelwidthstring 00.00.0000
2412 \begin_inset Graphics
2413 filename ../images/tabular-feature_multicolumn.png
2418 sets the current cell or selection as a multicolumn
2421 \begin_layout Standard
2422 \begin_inset Note Greyedout
2425 \begin_layout Plain Layout
2430 For the output the vertical alignment of the first cell in a row is used
2431 for all following cells in the row.
2439 \begin_layout Section
2444 \begin_layout Plain Layout
2453 \begin_layout Standard
2454 Additionally to the table dialog and toolbar, the menu
2456 Edit\SpecialChar \menuseparator
2459 allows you to add and delete border lines for the current row/column and
2460 to set the current selection as multicolumn.
2461 The menu is only available when the cursor is inside a table.
2464 \begin_layout Section
2466 \begin_inset CommandInset label
2468 name "sec:Table-Floats"
2476 \begin_layout Plain Layout
2486 \begin_layout Plain Layout
2495 \begin_layout Standard
2496 For general explanations about floats, have a look at section
2497 \begin_inset space ~
2501 \begin_inset CommandInset ref
2503 reference "sec:FloatIntroduction"
2510 \begin_layout Standard
2511 \begin_inset Float table
2517 \begin_layout Plain Layout
2518 \begin_inset Caption
2520 \begin_layout Plain Layout
2521 \begin_inset CommandInset label
2523 name "tab:a table float"
2535 \begin_layout Plain Layout
2537 \begin_inset Tabular
2538 <lyxtabular version="3" rows="3" columns="3">
2540 <column alignment="center" valignment="top" width="0pt">
2541 <column alignment="center" valignment="top" width="0pt">
2542 <column alignment="center" valignment="top" width="0pt">
2544 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2547 \begin_layout Plain Layout
2562 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2565 \begin_layout Plain Layout
2580 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2583 \begin_layout Plain Layout
2600 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2603 \begin_layout Plain Layout
2618 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2621 \begin_layout Plain Layout
2636 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2639 \begin_layout Plain Layout
2656 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2659 \begin_layout Plain Layout
2669 \begin_inset Formula $\int x^{2}dx$
2677 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2680 \begin_layout Plain Layout
2690 \begin_inset Formula $\left[\begin{array}{cc}
2692 c & d\end{array}\right]$
2700 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2703 \begin_layout Plain Layout
2713 \begin_inset Formula $1+1=2$
2734 \begin_layout Standard
2735 Table floats can be inserted using the menu
2737 Insert\SpecialChar \menuseparator
2738 Float\SpecialChar \menuseparator
2741 or the toolbar button
2742 \begin_inset Graphics
2743 filename ../images/float-insert_table.png
2752 \begin_layout Standard
2753 The float appears as a collapsible box with a caption that has the label
2755 \begin_inset Quotes eld
2759 \begin_inset space ~
2763 \begin_inset Quotes erd
2766 (# is the actual table number).
2767 You can insert tables to the float above or below the caption.
2770 \begin_layout Standard
2772 \begin_inset space ~
2776 \begin_inset CommandInset ref
2778 reference "tab:a table float"
2782 is an example table within a table float.
2785 \begin_layout Standard
2786 Having the caption above the table is the common rule that is unfortunately
2787 not supported in LaTeX's standard classes.
2788 That means if you are using the document classes
2804 there will be no space between the caption and the table.
2805 To insert the needed space, add the following option to the load command
2806 of the LaTeX-package
2814 \begin_layout Plain Layout
2815 LaTeX-packages ! caption
2820 in your document preamble
2824 \begin_layout Plain Layout
2825 For more information have a look at section
2826 \begin_inset space ~
2830 \begin_inset CommandInset ref
2832 reference "sec:Caption-Placement"
2844 \begin_layout Standard
2850 \begin_layout Standard
2855 , which is described in section
2856 \begin_inset space ~
2860 \begin_inset CommandInset ref
2862 reference "sec:Caption-Formatting"
2866 , is used to adjust the caption format.
2869 \begin_layout Standard
2873 \begin_layout Plain Layout
2874 References ! to Tables
2879 Tables can be cross-referenced in the text by referencing their label.
2880 To do this insert a label in the caption using the menu
2882 Insert\SpecialChar \menuseparator
2885 or the toolbar button
2886 \begin_inset Graphics
2887 filename ../images/label-insert.png
2894 You can now refer to the label using the menu
2896 Insert\SpecialChar \menuseparator
2898 \begin_inset space ~
2903 or the toolbar button
2904 \begin_inset Graphics
2905 filename ../images/dialog-show-new-inset_ref.png
2912 \begin_inset Newline newline
2915 Referencing is explained in detail in section
2916 \begin_inset space ~
2920 \begin_inset CommandInset ref
2922 reference "sec:Referencing-Floats"
2929 \begin_layout Section
2931 \begin_inset CommandInset label
2933 name "sec:Longtables"
2941 \begin_layout Plain Layout
2951 \begin_layout Plain Layout
2960 \begin_layout Standard
2961 If the table is too long to fit on one page, you can use the option
2964 \begin_inset space ~
2968 \begin_inset space ~
2977 of the table dialog to split the table automatically over more pages.
2978 Doing this enables the following options:
2981 \begin_layout Description
2982 Header: The current row is defined to be a header row that appears on all
2983 pages of the longtable; except for the first page, if
2986 \begin_inset space ~
2992 This therefore called the main header.
2995 \begin_layout Description
2997 \begin_inset space ~
3000 header: The current row is defined to be a header row that appears on the
3001 first page of the longtable.
3004 \begin_layout Description
3005 Footer: The current row is defined to be a footer row that appears on all
3006 pages of the longtable; except for the last page, if
3009 \begin_inset space ~
3017 \begin_layout Description
3019 \begin_inset space ~
3022 footer: The current row is defined to be a footer row that appear on the
3023 last page of the longtable.
3026 \begin_layout Description
3027 Caption: The current row contains the table caption.
3028 The row is reset as single column and a caption is inserted.
3029 More about longtable captions is explained in sec.
3030 \begin_inset space \thinspace{}
3034 \begin_inset CommandInset ref
3036 reference "sub:Longtable-Captions"
3043 \begin_layout Standard
3044 You can also specify a row where the table is split.
3045 See the following longtable to see how it works:
3048 \begin_layout Standard
3050 \begin_inset Tabular
3051 <lyxtabular version="3" rows="69" columns="3">
3052 <features islongtable="true">
3053 <column alignment="left" valignment="top" width="0cm">
3054 <column alignment="left" valignment="top" width="0pt">
3055 <column alignment="center" valignment="top" width="0pt">
3056 <row endfirsthead="true">
3057 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3060 \begin_layout Plain Layout
3063 Example Phone List (ignore the names)
3068 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3071 \begin_layout Plain Layout
3077 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3080 \begin_layout Plain Layout
3087 <row endfirsthead="true">
3088 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3091 \begin_layout Plain Layout
3099 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3102 \begin_layout Plain Layout
3108 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3111 \begin_layout Plain Layout
3120 <row endhead="true">
3121 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3124 \begin_layout Plain Layout
3132 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3135 \begin_layout Plain Layout
3141 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3144 \begin_layout Plain Layout
3151 <row endhead="true">
3152 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3155 \begin_layout Plain Layout
3163 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3166 \begin_layout Plain Layout
3172 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3175 \begin_layout Plain Layout
3184 <row endfoot="true">
3185 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3188 \begin_layout Plain Layout
3189 continued on next page
3194 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3197 \begin_layout Plain Layout
3203 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3206 \begin_layout Plain Layout
3214 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3217 \begin_layout Plain Layout
3225 <cell alignment="center" valignment="top" usebox="none">
3228 \begin_layout Plain Layout
3234 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3237 \begin_layout Plain Layout
3245 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3248 \begin_layout Plain Layout
3256 <cell alignment="center" valignment="top" usebox="none">
3259 \begin_layout Plain Layout
3265 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3268 \begin_layout Plain Layout
3276 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3279 \begin_layout Plain Layout
3287 <cell alignment="center" valignment="top" usebox="none">
3290 \begin_layout Plain Layout
3296 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3299 \begin_layout Plain Layout
3307 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3310 \begin_layout Plain Layout
3318 <cell alignment="center" valignment="top" usebox="none">
3321 \begin_layout Plain Layout
3327 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3330 \begin_layout Plain Layout
3338 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3341 \begin_layout Plain Layout
3349 <cell alignment="center" valignment="top" usebox="none">
3352 \begin_layout Plain Layout
3358 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3361 \begin_layout Plain Layout
3369 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3372 \begin_layout Plain Layout
3380 <cell alignment="center" valignment="top" usebox="none">
3383 \begin_layout Plain Layout
3389 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3392 \begin_layout Plain Layout
3400 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3403 \begin_layout Plain Layout
3411 <cell alignment="center" valignment="top" usebox="none">
3414 \begin_layout Plain Layout
3420 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3423 \begin_layout Plain Layout
3431 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3434 \begin_layout Plain Layout
3442 <cell alignment="center" valignment="top" usebox="none">
3445 \begin_layout Plain Layout
3451 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3454 \begin_layout Plain Layout
3462 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3465 \begin_layout Plain Layout
3473 <cell alignment="center" valignment="top" usebox="none">
3476 \begin_layout Plain Layout
3482 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3485 \begin_layout Plain Layout
3493 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3496 \begin_layout Plain Layout
3504 <cell alignment="center" valignment="top" usebox="none">
3507 \begin_layout Plain Layout
3513 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3516 \begin_layout Plain Layout
3524 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3527 \begin_layout Plain Layout
3535 <cell alignment="center" valignment="top" usebox="none">
3538 \begin_layout Plain Layout
3544 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3547 \begin_layout Plain Layout
3555 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3558 \begin_layout Plain Layout
3566 <cell alignment="center" valignment="top" usebox="none">
3569 \begin_layout Plain Layout
3575 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3578 \begin_layout Plain Layout
3586 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3589 \begin_layout Plain Layout
3597 <cell alignment="center" valignment="top" usebox="none">
3600 \begin_layout Plain Layout
3606 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3609 \begin_layout Plain Layout
3617 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3620 \begin_layout Plain Layout
3628 <cell alignment="center" valignment="top" usebox="none">
3631 \begin_layout Plain Layout
3637 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3640 \begin_layout Plain Layout
3648 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3651 \begin_layout Plain Layout
3659 <cell alignment="center" valignment="top" usebox="none">
3662 \begin_layout Plain Layout
3668 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3671 \begin_layout Plain Layout
3679 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3682 \begin_layout Plain Layout
3690 <cell alignment="center" valignment="top" usebox="none">
3693 \begin_layout Plain Layout
3699 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3702 \begin_layout Plain Layout
3710 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3713 \begin_layout Plain Layout
3721 <cell alignment="center" valignment="top" usebox="none">
3724 \begin_layout Plain Layout
3730 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3733 \begin_layout Plain Layout
3741 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3744 \begin_layout Plain Layout
3752 <cell alignment="center" valignment="top" usebox="none">
3755 \begin_layout Plain Layout
3761 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3764 \begin_layout Plain Layout
3772 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3775 \begin_layout Plain Layout
3783 <cell alignment="center" valignment="top" usebox="none">
3786 \begin_layout Plain Layout
3792 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3795 \begin_layout Plain Layout
3803 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3806 \begin_layout Plain Layout
3814 <cell alignment="center" valignment="top" usebox="none">
3817 \begin_layout Plain Layout
3823 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3826 \begin_layout Plain Layout
3834 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3837 \begin_layout Plain Layout
3845 <cell alignment="center" valignment="top" usebox="none">
3848 \begin_layout Plain Layout
3854 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3857 \begin_layout Plain Layout
3865 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3868 \begin_layout Plain Layout
3876 <cell alignment="center" valignment="top" usebox="none">
3879 \begin_layout Plain Layout
3885 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3888 \begin_layout Plain Layout
3896 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3899 \begin_layout Plain Layout
3907 <cell alignment="center" valignment="top" usebox="none">
3910 \begin_layout Plain Layout
3916 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3919 \begin_layout Plain Layout
3927 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3930 \begin_layout Plain Layout
3938 <cell alignment="center" valignment="top" usebox="none">
3941 \begin_layout Plain Layout
3947 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3950 \begin_layout Plain Layout
3958 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3961 \begin_layout Plain Layout
3969 <cell alignment="center" valignment="top" usebox="none">
3972 \begin_layout Plain Layout
3978 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3981 \begin_layout Plain Layout
3989 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3992 \begin_layout Plain Layout
4000 <cell alignment="center" valignment="top" usebox="none">
4003 \begin_layout Plain Layout
4009 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4012 \begin_layout Plain Layout
4020 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4023 \begin_layout Plain Layout
4031 <cell alignment="center" valignment="top" usebox="none">
4034 \begin_layout Plain Layout
4040 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4043 \begin_layout Plain Layout
4051 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4054 \begin_layout Plain Layout
4062 <cell alignment="center" valignment="top" usebox="none">
4065 \begin_layout Plain Layout
4071 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4074 \begin_layout Plain Layout
4082 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4085 \begin_layout Plain Layout
4093 <cell alignment="center" valignment="top" usebox="none">
4096 \begin_layout Plain Layout
4102 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4105 \begin_layout Plain Layout
4113 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4116 \begin_layout Plain Layout
4124 <cell alignment="center" valignment="top" usebox="none">
4127 \begin_layout Plain Layout
4133 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4136 \begin_layout Plain Layout
4144 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4147 \begin_layout Plain Layout
4155 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4158 \begin_layout Plain Layout
4164 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4167 \begin_layout Plain Layout
4175 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4178 \begin_layout Plain Layout
4184 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4187 \begin_layout Plain Layout
4193 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4196 \begin_layout Plain Layout
4204 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4207 \begin_layout Plain Layout
4215 <cell alignment="center" valignment="top" usebox="none">
4218 \begin_layout Plain Layout
4224 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4227 \begin_layout Plain Layout
4235 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4238 \begin_layout Plain Layout
4246 <cell alignment="center" valignment="top" usebox="none">
4249 \begin_layout Plain Layout
4255 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4258 \begin_layout Plain Layout
4266 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4269 \begin_layout Plain Layout
4277 <cell alignment="center" valignment="top" usebox="none">
4280 \begin_layout Plain Layout
4286 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4289 \begin_layout Plain Layout
4297 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4300 \begin_layout Plain Layout
4308 <cell alignment="center" valignment="top" usebox="none">
4311 \begin_layout Plain Layout
4317 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4320 \begin_layout Plain Layout
4328 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4331 \begin_layout Plain Layout
4339 <cell alignment="center" valignment="top" usebox="none">
4342 \begin_layout Plain Layout
4348 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4351 \begin_layout Plain Layout
4359 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4362 \begin_layout Plain Layout
4370 <cell alignment="center" valignment="top" usebox="none">
4373 \begin_layout Plain Layout
4379 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4382 \begin_layout Plain Layout
4390 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4393 \begin_layout Plain Layout
4401 <cell alignment="center" valignment="top" usebox="none">
4404 \begin_layout Plain Layout
4410 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4413 \begin_layout Plain Layout
4421 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4424 \begin_layout Plain Layout
4432 <cell alignment="center" valignment="top" usebox="none">
4435 \begin_layout Plain Layout
4441 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4444 \begin_layout Plain Layout
4452 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4455 \begin_layout Plain Layout
4463 <cell alignment="center" valignment="top" usebox="none">
4466 \begin_layout Plain Layout
4472 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4475 \begin_layout Plain Layout
4483 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4486 \begin_layout Plain Layout
4494 <cell alignment="center" valignment="top" usebox="none">
4497 \begin_layout Plain Layout
4503 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4506 \begin_layout Plain Layout
4514 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4517 \begin_layout Plain Layout
4525 <cell alignment="center" valignment="top" usebox="none">
4528 \begin_layout Plain Layout
4534 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4537 \begin_layout Plain Layout
4545 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4548 \begin_layout Plain Layout
4556 <cell alignment="center" valignment="top" usebox="none">
4559 \begin_layout Plain Layout
4565 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4568 \begin_layout Plain Layout
4576 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4579 \begin_layout Plain Layout
4587 <cell alignment="center" valignment="top" usebox="none">
4590 \begin_layout Plain Layout
4596 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4599 \begin_layout Plain Layout
4607 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4610 \begin_layout Plain Layout
4618 <cell alignment="center" valignment="top" usebox="none">
4621 \begin_layout Plain Layout
4627 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4630 \begin_layout Plain Layout
4638 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4641 \begin_layout Plain Layout
4649 <cell alignment="center" valignment="top" usebox="none">
4652 \begin_layout Plain Layout
4658 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4661 \begin_layout Plain Layout
4669 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4672 \begin_layout Plain Layout
4680 <cell alignment="center" valignment="top" usebox="none">
4683 \begin_layout Plain Layout
4689 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4692 \begin_layout Plain Layout
4700 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4703 \begin_layout Plain Layout
4711 <cell alignment="center" valignment="top" usebox="none">
4714 \begin_layout Plain Layout
4720 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4723 \begin_layout Plain Layout
4731 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4734 \begin_layout Plain Layout
4742 <cell alignment="center" valignment="top" usebox="none">
4745 \begin_layout Plain Layout
4751 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4754 \begin_layout Plain Layout
4762 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4765 \begin_layout Plain Layout
4773 <cell alignment="center" valignment="top" usebox="none">
4776 \begin_layout Plain Layout
4782 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4785 \begin_layout Plain Layout
4793 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4796 \begin_layout Plain Layout
4804 <cell alignment="center" valignment="top" usebox="none">
4807 \begin_layout Plain Layout
4813 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4816 \begin_layout Plain Layout
4824 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4827 \begin_layout Plain Layout
4835 <cell alignment="center" valignment="top" usebox="none">
4838 \begin_layout Plain Layout
4844 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4847 \begin_layout Plain Layout
4855 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4858 \begin_layout Plain Layout
4866 <cell alignment="center" valignment="top" usebox="none">
4869 \begin_layout Plain Layout
4875 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4878 \begin_layout Plain Layout
4886 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4889 \begin_layout Plain Layout
4897 <cell alignment="center" valignment="top" usebox="none">
4900 \begin_layout Plain Layout
4906 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4909 \begin_layout Plain Layout
4917 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4920 \begin_layout Plain Layout
4928 <cell alignment="center" valignment="top" usebox="none">
4931 \begin_layout Plain Layout
4937 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4940 \begin_layout Plain Layout
4948 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4951 \begin_layout Plain Layout
4959 <cell alignment="center" valignment="top" usebox="none">
4962 \begin_layout Plain Layout
4968 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4971 \begin_layout Plain Layout
4979 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4982 \begin_layout Plain Layout
4990 <cell alignment="center" valignment="top" usebox="none">
4993 \begin_layout Plain Layout
4999 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5002 \begin_layout Plain Layout
5010 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5013 \begin_layout Plain Layout
5021 <cell alignment="center" valignment="top" usebox="none">
5024 \begin_layout Plain Layout
5030 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5033 \begin_layout Plain Layout
5041 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5044 \begin_layout Plain Layout
5052 <cell alignment="center" valignment="top" usebox="none">
5055 \begin_layout Plain Layout
5061 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5064 \begin_layout Plain Layout
5072 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5075 \begin_layout Plain Layout
5083 <cell alignment="center" valignment="top" usebox="none">
5086 \begin_layout Plain Layout
5092 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5095 \begin_layout Plain Layout
5103 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5106 \begin_layout Plain Layout
5114 <cell alignment="center" valignment="top" usebox="none">
5117 \begin_layout Plain Layout
5123 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5126 \begin_layout Plain Layout
5134 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5137 \begin_layout Plain Layout
5145 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5148 \begin_layout Plain Layout
5154 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5157 \begin_layout Plain Layout
5164 <row endlastfoot="true">
5165 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5168 \begin_layout Plain Layout
5174 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5177 \begin_layout Plain Layout
5183 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5186 \begin_layout Plain Layout
5201 \begin_layout Plain Layout
5205 addtocounter{table}{-1}
5211 \begin_inset Note Note
5214 \begin_layout Plain Layout
5215 See the first greyed-out note in section
5216 \begin_inset space ~
5220 \begin_inset CommandInset ref
5222 reference "sub:Longtable-Captions"
5226 for an explanation of this command.
5234 \begin_layout Subsection
5235 Footnotes in Longtables
5236 \begin_inset CommandInset label
5238 name "sub:Footnotes-in-Longtables"
5246 \begin_layout Plain Layout
5247 Longtables ! Footnotes
5255 \begin_layout Standard
5256 Footnotes can be inserted to every longtable cell.
5257 They appear at the bottom of the page where the table cell with the footnote
5260 \begin_inset space ~
5264 \begin_inset CommandInset ref
5266 reference "tab:DiffCaptions"
5270 has for example a footnote.
5273 \begin_layout Subsection
5278 \begin_layout Plain Layout
5279 Longtables ! Alignment
5287 \begin_layout Standard
5288 Longtables are by default centered.
5289 In contrary to the alignment of the table columns and row, the table alignment
5290 can currently not be changed in the table dialog.
5291 To change the alignment of longtables you have to change the value of the
5304 by inserting this line as TeX-Code before the corresponding longtable:
5307 \begin_layout Standard
5317 \begin_layout Standard
5318 Where the value can have any of the units listed in Table
5319 \begin_inset space ~
5323 \begin_inset CommandInset ref
5325 reference "tab:Units"
5336 controls the horizontal distance from the left page border to the longtable,
5343 the distance from the right side.
5344 The default value for both lengths is
5350 , which is in this case the same as an horizontal fill in LyX.
5353 \begin_layout Standard
5354 The following longtable was left-aligned by setting
5361 \begin_inset space \thinspace{}
5368 \begin_layout Plain Layout
5382 \begin_layout Standard
5383 \begin_inset Tabular
5384 <lyxtabular version="3" rows="5" columns="5">
5385 <features islongtable="true">
5386 <column alignment="center" valignment="top" width="0">
5387 <column alignment="center" valignment="top" width="0">
5388 <column alignment="center" valignment="top" width="0">
5389 <column alignment="center" valignment="top" width="0">
5390 <column alignment="center" valignment="top" width="0">
5392 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5395 \begin_layout Plain Layout
5401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5404 \begin_layout Plain Layout
5410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5413 \begin_layout Plain Layout
5419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5422 \begin_layout Plain Layout
5428 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5431 \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" usebox="none">
5469 \begin_layout Plain Layout
5475 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5478 \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" usebox="none">
5516 \begin_layout Plain Layout
5522 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5525 \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" usebox="none">
5563 \begin_layout Plain Layout
5569 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5572 \begin_layout Plain Layout
5580 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5583 \begin_layout Plain Layout
5589 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5592 \begin_layout Plain Layout
5598 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5601 \begin_layout Plain Layout
5607 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5610 \begin_layout Plain Layout
5616 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5619 \begin_layout Plain Layout
5634 \begin_layout Plain Layout
5651 \begin_layout Plain Layout
5655 addtocounter{table}{-1}
5661 \begin_inset Note Note
5664 \begin_layout Plain Layout
5665 See the first greyed-out note in section
5666 \begin_inset space ~
5670 \begin_inset CommandInset ref
5672 reference "sub:Longtable-Captions"
5676 for an explanation of this command.
5684 \begin_layout Subsection
5689 \begin_layout Plain Layout
5690 Longtables ! Captions
5696 \begin_inset CommandInset label
5698 name "sub:Longtable-Captions"
5705 \begin_layout Standard
5706 A longtable cannot be put into a table float because floats can only be
5708 But the caption environment of floats can also be used for longtables when
5709 you use for a table row the longtable option
5713 as described in sec.
5714 \begin_inset space \thinspace{}
5718 \begin_inset CommandInset ref
5720 reference "sec:Longtables"
5725 Only one table row can contain the caption.
5728 \begin_layout Standard
5729 Here is a short longtable to see how it works:
5732 \begin_layout Standard
5733 \begin_inset Tabular
5734 <lyxtabular version="3" rows="6" columns="5">
5735 <features islongtable="true">
5736 <column alignment="center" valignment="top" width="0">
5737 <column alignment="center" valignment="top" width="0">
5738 <column alignment="center" valignment="top" width="0">
5739 <column alignment="center" valignment="top" width="0">
5740 <column alignment="center" valignment="top" width="0">
5741 <row caption="true">
5742 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5745 \begin_layout Plain Layout
5746 \begin_inset Caption
5748 \begin_layout Plain Layout
5749 Longtable with caption
5753 \begin_layout Plain Layout
5769 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5772 \begin_layout Plain Layout
5778 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5781 \begin_layout Plain Layout
5787 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5790 \begin_layout Plain Layout
5796 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5799 \begin_layout Plain Layout
5807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5810 \begin_layout Plain Layout
5816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5819 \begin_layout Plain Layout
5825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5828 \begin_layout Plain Layout
5834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5837 \begin_layout Plain Layout
5843 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5846 \begin_layout Plain Layout
5854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5857 \begin_layout Plain Layout
5863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5866 \begin_layout Plain Layout
5872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5875 \begin_layout Plain Layout
5881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5884 \begin_layout Plain Layout
5890 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5893 \begin_layout Plain Layout
5901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5904 \begin_layout Plain Layout
5910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5913 \begin_layout Plain Layout
5919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5922 \begin_layout Plain Layout
5928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5931 \begin_layout Plain Layout
5937 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5940 \begin_layout Plain Layout
5948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5951 \begin_layout Plain Layout
5957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5960 \begin_layout Plain Layout
5966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5969 \begin_layout Plain Layout
5975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5978 \begin_layout Plain Layout
5984 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5987 \begin_layout Plain Layout
5995 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5998 \begin_layout Plain Layout
6004 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6007 \begin_layout Plain Layout
6013 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6016 \begin_layout Plain Layout
6022 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6025 \begin_layout Plain Layout
6031 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6034 \begin_layout Plain Layout
6048 \begin_layout Standard
6049 \begin_inset VSpace medskip
6053 \begin_inset Note Greyedout
6056 \begin_layout Plain Layout
6060 \begin_inset space ~
6065 The table number is increased for every longtable, also if you didn't set
6067 For this reason you could have the case that e.
6068 \begin_inset space \thinspace{}
6072 \begin_inset space \space{}
6076 \begin_inset space ~
6079 2.4 follows on Table
6080 \begin_inset space ~
6083 2.1 in the list of tables if there are two longtables without captions.
6084 To avoid this you can add the following command in TeX-Code behind every
6085 longtable without a caption:
6088 \begin_layout Plain Layout
6093 addtocounter{table}{-1}
6096 \begin_layout Plain Layout
6097 This is not needed when none of your longtables have a caption and you add
6098 the following code to the document preamble:
6101 \begin_layout Plain Layout
6111 \begin_inset Newline newline
6122 addtocounter{table}{-1}}
6130 \begin_layout Standard
6131 \begin_inset Note Greyedout
6134 \begin_layout Plain Layout
6138 \begin_inset space ~
6151 \begin_layout Plain Layout
6152 LaTeX-packages ! hyperref
6165 dialog to link cross-references, the link to a longtable caption will always
6166 point to the beginning of the document.
6174 \begin_layout Subsubsection
6175 References to Longtables
6179 \begin_layout Plain Layout
6180 Longtables ! References
6188 \begin_layout Standard
6189 \begin_inset Tabular
6190 <lyxtabular version="3" rows="6" columns="5">
6191 <features islongtable="true">
6192 <column alignment="center" valignment="top" width="0">
6193 <column alignment="center" valignment="top" width="0">
6194 <column alignment="center" valignment="top" width="0">
6195 <column alignment="center" valignment="top" width="0">
6196 <column alignment="center" valignment="top" width="0">
6197 <row caption="true">
6198 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6201 \begin_layout Plain Layout
6202 \begin_inset Caption
6204 \begin_layout Plain Layout
6205 Referenced longtable
6206 \begin_inset CommandInset label
6208 name "tab:RefExample"
6222 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6225 \begin_layout Plain Layout
6231 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6234 \begin_layout Plain Layout
6240 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6243 \begin_layout Plain Layout
6249 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6252 \begin_layout Plain Layout
6260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6263 \begin_layout Plain Layout
6269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6272 \begin_layout Plain Layout
6278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6281 \begin_layout Plain Layout
6287 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6290 \begin_layout Plain Layout
6296 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6299 \begin_layout Plain Layout
6307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6310 \begin_layout Plain Layout
6316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6319 \begin_layout Plain Layout
6325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6328 \begin_layout Plain Layout
6334 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6337 \begin_layout Plain Layout
6343 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6346 \begin_layout Plain Layout
6354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6357 \begin_layout Plain Layout
6363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6366 \begin_layout Plain Layout
6372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6375 \begin_layout Plain Layout
6381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6384 \begin_layout Plain Layout
6390 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6393 \begin_layout Plain Layout
6401 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6404 \begin_layout Plain Layout
6410 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6413 \begin_layout Plain Layout
6419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6422 \begin_layout Plain Layout
6428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6431 \begin_layout Plain Layout
6437 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6440 \begin_layout Plain Layout
6448 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6451 \begin_layout Plain Layout
6457 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6460 \begin_layout Plain Layout
6466 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6469 \begin_layout Plain Layout
6475 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6478 \begin_layout Plain Layout
6484 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6487 \begin_layout Plain Layout
6501 \begin_layout Standard
6502 To reference a longtable, insert a label into the caption.
6505 \begin_layout Standard
6506 This is a reference to Table
6507 \begin_inset space ~
6511 \begin_inset CommandInset ref
6513 reference "tab:RefExample"
6520 \begin_layout Standard
6521 The caption layout can be set together with all other captions of your document
6522 using the LaTeX-package
6530 \begin_layout Plain Layout
6531 LaTeX-packages ! caption
6537 \begin_inset space ~
6541 \begin_inset CommandInset ref
6543 reference "sec:Caption-Formatting"
6550 \begin_layout Subsubsection
6555 \begin_layout Plain Layout
6556 Longtables ! Caption Width
6564 \begin_layout Standard
6565 The maximal width of of caption lines is defined by the length
6572 Its default value is 4
6573 \begin_inset space \thinspace{}
6577 To change it add the following command to your document preamble or as
6578 TeX-Code into your document before the longtable that should be affected
6581 \begin_layout Standard
6591 \begin_layout Standard
6592 where the width could have one of the units listed in appendix
6593 \begin_inset space ~
6597 \begin_inset CommandInset ref
6599 reference "cha:Units-available-in"
6606 \begin_layout Standard
6607 The following tables show the difference:
6610 \begin_layout Standard
6611 \begin_inset Tabular
6612 <lyxtabular version="3" rows="6" columns="5">
6613 <features islongtable="true">
6614 <column alignment="center" valignment="top" width="0">
6615 <column alignment="center" valignment="top" width="0">
6616 <column alignment="center" valignment="top" width="0">
6617 <column alignment="center" valignment="top" width="0">
6618 <column alignment="center" valignment="top" width="0">
6619 <row caption="true">
6620 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6623 \begin_layout Plain Layout
6624 \begin_inset Caption
6626 \begin_layout Plain Layout
6627 long full title with default width long full title with default width long
6628 full title with default width
6632 \begin_layout Plain Layout
6633 caption with default width
6648 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6651 \begin_layout Plain Layout
6657 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6660 \begin_layout Plain Layout
6666 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6669 \begin_layout Plain Layout
6675 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6678 \begin_layout Plain Layout
6686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6689 \begin_layout Plain Layout
6695 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6698 \begin_layout Plain Layout
6704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6707 \begin_layout Plain Layout
6713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6716 \begin_layout Plain Layout
6722 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6725 \begin_layout Plain Layout
6733 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6736 \begin_layout Plain Layout
6742 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6745 \begin_layout Plain Layout
6751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6754 \begin_layout Plain Layout
6760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6763 \begin_layout Plain Layout
6769 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6772 \begin_layout Plain Layout
6780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6783 \begin_layout Plain Layout
6789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6792 \begin_layout Plain Layout
6798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6801 \begin_layout Plain Layout
6807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6810 \begin_layout Plain Layout
6816 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6819 \begin_layout Plain Layout
6827 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6830 \begin_layout Plain Layout
6836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6839 \begin_layout Plain Layout
6845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6848 \begin_layout Plain Layout
6854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6857 \begin_layout Plain Layout
6863 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6866 \begin_layout Plain Layout
6874 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6877 \begin_layout Plain Layout
6883 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6886 \begin_layout Plain Layout
6892 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6895 \begin_layout Plain Layout
6901 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6904 \begin_layout Plain Layout
6910 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6913 \begin_layout Plain Layout
6927 \begin_layout Standard
6931 \begin_layout Plain Layout
6943 \begin_inset Tabular
6944 <lyxtabular version="3" rows="6" columns="5">
6945 <features islongtable="true">
6946 <column alignment="center" valignment="top" width="0">
6947 <column alignment="center" valignment="top" width="0">
6948 <column alignment="center" valignment="top" width="0">
6949 <column alignment="center" valignment="top" width="0">
6950 <column alignment="center" valignment="top" width="0">
6951 <row caption="true">
6952 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6955 \begin_layout Plain Layout
6956 \begin_inset Caption
6958 \begin_layout Plain Layout
6959 long full title with width set to 5
6960 \begin_inset space \thinspace{}
6963 cm long full title with width set to 5
6964 \begin_inset space \thinspace{}
6967 cm long full title with width set to 5
6968 \begin_inset space \thinspace{}
6975 \begin_layout Plain Layout
6977 \begin_inset space \thinspace{}
6981 \begin_inset space \thinspace{}
6985 \begin_inset space \thinspace{}
7003 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7006 \begin_layout Plain Layout
7012 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7015 \begin_layout Plain Layout
7021 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7024 \begin_layout Plain Layout
7030 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7033 \begin_layout Plain Layout
7041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7044 \begin_layout Plain Layout
7050 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7053 \begin_layout Plain Layout
7059 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7062 \begin_layout Plain Layout
7068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7071 \begin_layout Plain Layout
7077 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7080 \begin_layout Plain Layout
7088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7091 \begin_layout Plain Layout
7097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7100 \begin_layout Plain Layout
7106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7109 \begin_layout Plain Layout
7115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7118 \begin_layout Plain Layout
7124 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7127 \begin_layout Plain Layout
7135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7138 \begin_layout Plain Layout
7144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7147 \begin_layout Plain Layout
7153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7156 \begin_layout Plain Layout
7162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7165 \begin_layout Plain Layout
7171 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7174 \begin_layout Plain Layout
7182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7185 \begin_layout Plain Layout
7191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7194 \begin_layout Plain Layout
7200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7203 \begin_layout Plain Layout
7209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7212 \begin_layout Plain Layout
7218 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7221 \begin_layout Plain Layout
7229 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7232 \begin_layout Plain Layout
7238 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7241 \begin_layout Plain Layout
7247 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7250 \begin_layout Plain Layout
7256 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7259 \begin_layout Plain Layout
7265 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7268 \begin_layout Plain Layout
7282 \begin_layout Standard
7286 \begin_layout Plain Layout
7300 \begin_layout Standard
7301 \begin_inset Note Greyedout
7304 \begin_layout Plain Layout
7309 When the LaTeX-package
7317 \begin_layout Plain Layout
7318 LaTeX-packages ! caption
7323 is used, as in this document, the full page width is used for the caption
7324 when you use the default value of 4
7325 \begin_inset space \thinspace{}
7335 To get in this case exactly a 4
7336 \begin_inset space \thinspace{}
7339 in wide caption, you can either use a value slightly different from 4.0
7340 \begin_inset space \thinspace{}
7344 \begin_inset space \thinspace{}
7348 \begin_inset space \space{}
7352 \begin_inset space \thinspace{}
7355 in, or the LaTeX-command
7359 captionsetup{width=value}
7361 that is provided by the
7373 \begin_layout Subsubsection
7374 Different Captions for Table Pages
7378 \begin_layout Plain Layout
7379 Longtables ! Different Captions for Pages
7387 \begin_layout Standard
7388 When the table captions for the following pages should differ from the one
7389 of the first table page, insert a caption with the TeX code command
7392 \begin_layout Standard
7397 caption*{caption text}
7404 \begin_layout Standard
7405 in a dummy caption row that is marked as header.
7407 \begin_inset space ~
7411 \begin_inset CommandInset ref
7413 reference "tab:DiffCaptions"
7417 is an example for a longtable with different heading where the second caption
7418 doesn't include the table number.
7421 \begin_layout Standard
7423 \begin_inset Tabular
7424 <lyxtabular version="3" rows="59" columns="3">
7425 <features islongtable="true" lastFootEmpty="true">
7426 <column alignment="left" valignment="top" width="0cm">
7427 <column alignment="left" valignment="top" width="0pt">
7428 <column alignment="center" valignment="top" width="0pt">
7429 <row caption="true">
7430 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7433 \begin_layout Plain Layout
7434 \begin_inset Caption
7436 \begin_layout Plain Layout
7438 \begin_inset CommandInset label
7440 name "tab:DiffCaptions"
7448 \begin_layout Plain Layout
7464 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7467 \begin_layout Plain Layout
7473 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7476 \begin_layout Plain Layout
7483 <row endfirsthead="true">
7484 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7487 \begin_layout Plain Layout
7490 Example Phone List (ignore the names)
7495 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7498 \begin_layout Plain Layout
7504 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7507 \begin_layout Plain Layout
7514 <row endfirsthead="true">
7515 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7518 \begin_layout Plain Layout
7526 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7529 \begin_layout Plain Layout
7535 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7538 \begin_layout Plain Layout
7547 <row endhead="true">
7548 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7551 \begin_layout Plain Layout
7555 \begin_layout Plain Layout
7559 caption*{Continued Example Phone List}
7573 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7576 \begin_layout Plain Layout
7582 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7585 \begin_layout Plain Layout
7592 <row endhead="true">
7593 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7596 \begin_layout Plain Layout
7604 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7607 \begin_layout Plain Layout
7613 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7616 \begin_layout Plain Layout
7623 <row endhead="true">
7624 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7627 \begin_layout Plain Layout
7635 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7638 \begin_layout Plain Layout
7644 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7647 \begin_layout Plain Layout
7656 <row endfoot="true">
7657 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7660 \begin_layout Plain Layout
7661 continued on next page
7666 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7669 \begin_layout Plain Layout
7675 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7678 \begin_layout Plain Layout
7686 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7689 \begin_layout Plain Layout
7697 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7700 \begin_layout Plain Layout
7706 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7709 \begin_layout Plain Layout
7717 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7720 \begin_layout Plain Layout
7728 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7731 \begin_layout Plain Layout
7737 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7740 \begin_layout Plain Layout
7748 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7751 \begin_layout Plain Layout
7759 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7762 \begin_layout Plain Layout
7768 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7771 \begin_layout Plain Layout
7779 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7782 \begin_layout Plain Layout
7790 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7793 \begin_layout Plain Layout
7799 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7802 \begin_layout Plain Layout
7810 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7813 \begin_layout Plain Layout
7821 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7824 \begin_layout Plain Layout
7830 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7833 \begin_layout Plain Layout
7841 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7844 \begin_layout Plain Layout
7852 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7855 \begin_layout Plain Layout
7861 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7864 \begin_layout Plain Layout
7872 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7875 \begin_layout Plain Layout
7883 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7886 \begin_layout Plain Layout
7892 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7895 \begin_layout Plain Layout
7903 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7906 \begin_layout Plain Layout
7914 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7917 \begin_layout Plain Layout
7923 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7926 \begin_layout Plain Layout
7934 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7937 \begin_layout Plain Layout
7945 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7948 \begin_layout Plain Layout
7954 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7957 \begin_layout Plain Layout
7965 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7968 \begin_layout Plain Layout
7976 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7979 \begin_layout Plain Layout
7985 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7988 \begin_layout Plain Layout
7996 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7999 \begin_layout Plain Layout
8007 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8010 \begin_layout Plain Layout
8016 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8019 \begin_layout Plain Layout
8027 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8030 \begin_layout Plain Layout
8038 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8041 \begin_layout Plain Layout
8047 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8050 \begin_layout Plain Layout
8058 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8061 \begin_layout Plain Layout
8069 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8072 \begin_layout Plain Layout
8078 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8081 \begin_layout Plain Layout
8089 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8092 \begin_layout Plain Layout
8100 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8103 \begin_layout Plain Layout
8109 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8112 \begin_layout Plain Layout
8120 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8123 \begin_layout Plain Layout
8132 \begin_layout Plain Layout
8143 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8146 \begin_layout Plain Layout
8152 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8155 \begin_layout Plain Layout
8163 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8166 \begin_layout Plain Layout
8174 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8177 \begin_layout Plain Layout
8183 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8186 \begin_layout Plain Layout
8194 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8197 \begin_layout Plain Layout
8205 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8208 \begin_layout Plain Layout
8214 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8217 \begin_layout Plain Layout
8225 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8228 \begin_layout Plain Layout
8236 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8239 \begin_layout Plain Layout
8245 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8248 \begin_layout Plain Layout
8256 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8259 \begin_layout Plain Layout
8267 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8270 \begin_layout Plain Layout
8276 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8279 \begin_layout Plain Layout
8287 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8290 \begin_layout Plain Layout
8298 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8301 \begin_layout Plain Layout
8307 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8310 \begin_layout Plain Layout
8318 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8321 \begin_layout Plain Layout
8329 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8332 \begin_layout Plain Layout
8338 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8341 \begin_layout Plain Layout
8349 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8352 \begin_layout Plain Layout
8360 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8363 \begin_layout Plain Layout
8369 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8372 \begin_layout Plain Layout
8380 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8383 \begin_layout Plain Layout
8391 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8394 \begin_layout Plain Layout
8400 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8403 \begin_layout Plain Layout
8411 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8414 \begin_layout Plain Layout
8422 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8425 \begin_layout Plain Layout
8431 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8434 \begin_layout Plain Layout
8442 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8445 \begin_layout Plain Layout
8453 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8456 \begin_layout Plain Layout
8462 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8465 \begin_layout Plain Layout
8473 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8476 \begin_layout Plain Layout
8484 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8487 \begin_layout Plain Layout
8493 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8496 \begin_layout Plain Layout
8504 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8507 \begin_layout Plain Layout
8515 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8518 \begin_layout Plain Layout
8524 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8527 \begin_layout Plain Layout
8535 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8538 \begin_layout Plain Layout
8546 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8549 \begin_layout Plain Layout
8555 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8558 \begin_layout Plain Layout
8566 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8569 \begin_layout Plain Layout
8577 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8580 \begin_layout Plain Layout
8586 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8589 \begin_layout Plain Layout
8597 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8600 \begin_layout Plain Layout
8608 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8611 \begin_layout Plain Layout
8617 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8620 \begin_layout Plain Layout
8628 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8631 \begin_layout Plain Layout
8639 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8642 \begin_layout Plain Layout
8648 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8651 \begin_layout Plain Layout
8659 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8662 \begin_layout Plain Layout
8668 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8671 \begin_layout Plain Layout
8677 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8680 \begin_layout Plain Layout
8688 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8691 \begin_layout Plain Layout
8699 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8702 \begin_layout Plain Layout
8708 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8711 \begin_layout Plain Layout
8719 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8722 \begin_layout Plain Layout
8730 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8733 \begin_layout Plain Layout
8739 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8742 \begin_layout Plain Layout
8750 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8753 \begin_layout Plain Layout
8761 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8764 \begin_layout Plain Layout
8770 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8773 \begin_layout Plain Layout
8781 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8784 \begin_layout Plain Layout
8792 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8795 \begin_layout Plain Layout
8801 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8804 \begin_layout Plain Layout
8812 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8815 \begin_layout Plain Layout
8823 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8826 \begin_layout Plain Layout
8832 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8835 \begin_layout Plain Layout
8843 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8846 \begin_layout Plain Layout
8854 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8857 \begin_layout Plain Layout
8863 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8866 \begin_layout Plain Layout
8874 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8877 \begin_layout Plain Layout
8885 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8888 \begin_layout Plain Layout
8894 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8897 \begin_layout Plain Layout
8905 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8908 \begin_layout Plain Layout
8916 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8919 \begin_layout Plain Layout
8925 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8928 \begin_layout Plain Layout
8936 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8939 \begin_layout Plain Layout
8947 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8950 \begin_layout Plain Layout
8956 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8959 \begin_layout Plain Layout
8967 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8970 \begin_layout Plain Layout
8978 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8981 \begin_layout Plain Layout
8987 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8990 \begin_layout Plain Layout
8998 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9001 \begin_layout Plain Layout
9009 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9012 \begin_layout Plain Layout
9018 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9021 \begin_layout Plain Layout
9029 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9032 \begin_layout Plain Layout
9040 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9043 \begin_layout Plain Layout
9049 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9052 \begin_layout Plain Layout
9060 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9063 \begin_layout Plain Layout
9071 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9074 \begin_layout Plain Layout
9080 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9083 \begin_layout Plain Layout
9091 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9094 \begin_layout Plain Layout
9102 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9105 \begin_layout Plain Layout
9111 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9114 \begin_layout Plain Layout
9122 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9125 \begin_layout Plain Layout
9133 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9136 \begin_layout Plain Layout
9142 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9145 \begin_layout Plain Layout
9153 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9156 \begin_layout Plain Layout
9164 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9167 \begin_layout Plain Layout
9173 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9176 \begin_layout Plain Layout
9184 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9187 \begin_layout Plain Layout
9195 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9198 \begin_layout Plain Layout
9204 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9207 \begin_layout Plain Layout
9215 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9218 \begin_layout Plain Layout
9226 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9229 \begin_layout Plain Layout
9235 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9238 \begin_layout Plain Layout
9246 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9249 \begin_layout Plain Layout
9257 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9260 \begin_layout Plain Layout
9266 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9269 \begin_layout Plain Layout
9277 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9280 \begin_layout Plain Layout
9288 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9291 \begin_layout Plain Layout
9297 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9300 \begin_layout Plain Layout
9314 \begin_layout Section
9315 Special Longtable Issues
9316 \begin_inset CommandInset label
9318 name "sec:Special-Longtable-Issues"
9325 \begin_layout Subsection
9326 Longtable Calculation
9330 \begin_layout Plain Layout
9331 Longtables ! Calculation
9339 \begin_layout Standard
9340 LaTeX calculates the height of table pages and their page breaks using so
9342 Chunks are pieces of the tables that are at once in LaTeX's memory.
9343 The default value is historically set to only 20 table rows.
9344 If you are using longtables with many pages this may slow down the creation
9346 You can safely increase the chunk size to values of 100-1000 by adding
9347 this command line to your document preamble:
9350 \begin_layout Standard
9355 setcounter{LTchunksize}{100}
9358 \begin_layout Subsection
9359 Floats and Longtables
9363 \begin_layout Plain Layout
9372 \begin_layout Standard
9373 There might be problems when a float appears on the same page where a longtable
9375 To avoid such situation, add the command
9381 as TeX-Code before your longtable.
9384 \begin_layout Subsection
9389 \begin_layout Plain Layout
9390 Longtables ! Forced Page Breaks
9398 \begin_layout Standard
9399 By default tables are only broken between rows.
9400 If you have a cell with multiples lines and want to have a page break within
9401 the cell, insert the new line command
9402 \begin_inset Quotes eld
9414 \begin_inset Quotes erd
9417 as TeX-Code at this point of the cell where it can be broken.
9426 command you have to insert in TeX-Code so many
9427 \begin_inset Quotes eld
9435 \begin_inset Quotes erd
9438 characters like the number of the following table columns.
9443 is the character to separate table cells.
9444 Write in TeX-Code after each
9448 the content of the corresponding following cell and delete the content
9450 \begin_inset Newline newline
9461 command, insert so many
9465 characters like the number of table columns before the current column.
9467 \begin_inset space ~
9471 \begin_inset CommandInset ref
9473 reference "tab:ForcedPagebreak"
9477 the cell that should be broken is in the second column followed by another
9479 Therefore the following command was inserted in the cell as TeX-Code behind
9481 \begin_inset Quotes eld
9489 \begin_inset Quotes erd
9495 \begin_layout Standard
9505 \begin_inset Newline newline
9511 \begin_layout Standard
9513 \begin_inset Quotes eld
9517 \begin_inset Quotes erd
9520 in the third columns of the row was deleted.
9527 is only needed when a page break should definitively occur at this position,
9528 otherwise it is only a possibility to break.
9529 If your footer row of the longtable has for a certain reason no upper line
9530 but you would have a horizontal line where the cell is broken, use this
9534 \begin_layout Standard
9542 \begin_inset Newline newline
9550 \begin_layout Standard
9551 When the cell to be broken is in the last column, the command
9554 \begin_layout Standard
9564 \begin_layout Standard
9565 must be inserted as TeX-Code at the beginning of the cell.
9566 This assures that the part of the cell that will be displayed on the new
9567 page appears with the full width.
9570 \begin_layout Standard
9572 \begin_inset Tabular
9573 <lyxtabular version="3" rows="38" columns="3">
9574 <features islongtable="true" lastFootEmpty="true">
9575 <column alignment="left" valignment="top" width="0cm">
9576 <column alignment="left" valignment="top" width="3cm">
9577 <column alignment="center" valignment="top" width="0pt">
9578 <row caption="true">
9579 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9582 \begin_layout Plain Layout
9583 \begin_inset Caption
9585 \begin_layout Plain Layout
9586 Table with forced page break in table cell
9587 \begin_inset CommandInset label
9589 name "tab:ForcedPagebreak"
9597 \begin_layout Plain Layout
9598 Table with forced page break in table cell
9613 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9616 \begin_layout Plain Layout
9622 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9625 \begin_layout Plain Layout
9632 <row endfirsthead="true">
9633 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9636 \begin_layout Plain Layout
9639 Example Phone List (ignore the names)
9644 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9647 \begin_layout Plain Layout
9653 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9656 \begin_layout Plain Layout
9663 <row endfirsthead="true">
9664 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9667 \begin_layout Plain Layout
9675 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9678 \begin_layout Plain Layout
9684 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9687 \begin_layout Plain Layout
9696 <row endhead="true">
9697 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9700 \begin_layout Plain Layout
9704 \begin_layout Plain Layout
9708 caption*{Continued Example Phone List}
9722 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9725 \begin_layout Plain Layout
9731 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9734 \begin_layout Plain Layout
9741 <row endhead="true">
9742 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9745 \begin_layout Plain Layout
9753 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9756 \begin_layout Plain Layout
9762 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9765 \begin_layout Plain Layout
9772 <row endhead="true">
9773 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9776 \begin_layout Plain Layout
9784 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9787 \begin_layout Plain Layout
9793 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9796 \begin_layout Plain Layout
9805 <row endfoot="true">
9806 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9809 \begin_layout Plain Layout
9810 continued on next page
9815 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9818 \begin_layout Plain Layout
9824 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9827 \begin_layout Plain Layout
9835 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9838 \begin_layout Plain Layout
9846 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9849 \begin_layout Plain Layout
9855 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9858 \begin_layout Plain Layout
9866 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9869 \begin_layout Plain Layout
9877 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9880 \begin_layout Plain Layout
9886 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9889 \begin_layout Plain Layout
9897 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9900 \begin_layout Plain Layout
9908 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9911 \begin_layout Plain Layout
9917 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9920 \begin_layout Plain Layout
9928 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9931 \begin_layout Plain Layout
9939 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9942 \begin_layout Plain Layout
9948 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9951 \begin_layout Plain Layout
9959 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9962 \begin_layout Plain Layout
9970 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9973 \begin_layout Plain Layout
9979 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9982 \begin_layout Plain Layout
9990 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9993 \begin_layout Plain Layout
10001 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10004 \begin_layout Plain Layout
10010 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10013 \begin_layout Plain Layout
10021 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10024 \begin_layout Plain Layout
10032 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10035 \begin_layout Plain Layout
10041 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10044 \begin_layout Plain Layout
10052 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10055 \begin_layout Plain Layout
10063 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10066 \begin_layout Plain Layout
10072 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10075 \begin_layout Plain Layout
10083 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10086 \begin_layout Plain Layout
10094 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10097 \begin_layout Plain Layout
10103 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10106 \begin_layout Plain Layout
10114 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10117 \begin_layout Plain Layout
10125 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10128 \begin_layout Plain Layout
10134 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10137 \begin_layout Plain Layout
10145 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10148 \begin_layout Plain Layout
10156 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10159 \begin_layout Plain Layout
10165 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10168 \begin_layout Plain Layout
10176 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10179 \begin_layout Plain Layout
10187 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10190 \begin_layout Plain Layout
10196 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10199 \begin_layout Plain Layout
10207 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10210 \begin_layout Plain Layout
10218 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10221 \begin_layout Plain Layout
10227 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10230 \begin_layout Plain Layout
10238 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10241 \begin_layout Plain Layout
10249 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10252 \begin_layout Plain Layout
10258 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10261 \begin_layout Plain Layout
10269 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10272 \begin_layout Plain Layout
10280 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10283 \begin_layout Plain Layout
10289 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10292 \begin_layout Plain Layout
10300 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10303 \begin_layout Plain Layout
10311 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10314 \begin_layout Plain Layout
10320 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10323 \begin_layout Plain Layout
10331 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10334 \begin_layout Plain Layout
10342 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10345 \begin_layout Plain Layout
10351 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10354 \begin_layout Plain Layout
10362 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10365 \begin_layout Plain Layout
10373 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10376 \begin_layout Plain Layout
10382 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10385 \begin_layout Plain Layout
10393 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10396 \begin_layout Plain Layout
10404 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10407 \begin_layout Plain Layout
10413 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10416 \begin_layout Plain Layout
10424 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10427 \begin_layout Plain Layout
10435 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10438 \begin_layout Plain Layout
10444 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10447 \begin_layout Plain Layout
10455 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10458 \begin_layout Plain Layout
10466 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10469 \begin_layout Plain Layout
10475 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10478 \begin_layout Plain Layout
10486 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10489 \begin_layout Plain Layout
10497 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10500 \begin_layout Plain Layout
10506 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10509 \begin_layout Plain Layout
10517 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10520 \begin_layout Plain Layout
10528 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10531 \begin_layout Plain Layout
10533 Fürst von Montecompatri, 11.
10534 Fürst von Sulmona und Vivaro, 10.
10535 Fürst von Rossano, 5.
10536 Herzog von Canemorte, 11.
10537 Herzog von Palombara, 5.
10538 Herzog von Castelchiodato,
10542 \begin_layout Plain Layout
10553 \begin_layout Plain Layout
10561 Herzog von Poggionativo, 11.
10562 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10563 Graf von Valinfreda, 11.
10564 Baron von Cropalati, 11.
10565 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10570 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10573 \begin_layout Plain Layout
10581 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10584 \begin_layout Plain Layout
10592 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10595 \begin_layout Plain Layout
10601 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10604 \begin_layout Plain Layout
10612 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10615 \begin_layout Plain Layout
10623 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10626 \begin_layout Plain Layout
10632 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10635 \begin_layout Plain Layout
10643 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10646 \begin_layout Plain Layout
10654 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10657 \begin_layout Plain Layout
10663 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10666 \begin_layout Plain Layout
10674 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10677 \begin_layout Plain Layout
10685 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10688 \begin_layout Plain Layout
10694 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10697 \begin_layout Plain Layout
10705 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10708 \begin_layout Plain Layout
10716 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10719 \begin_layout Plain Layout
10725 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10728 \begin_layout Plain Layout
10736 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10739 \begin_layout Plain Layout
10747 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10750 \begin_layout Plain Layout
10756 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10759 \begin_layout Plain Layout
10767 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10770 \begin_layout Plain Layout
10778 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10781 \begin_layout Plain Layout
10787 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10790 \begin_layout Plain Layout
10798 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10801 \begin_layout Plain Layout
10809 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10812 \begin_layout Plain Layout
10818 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10821 \begin_layout Plain Layout
10835 \begin_layout Section
10836 Multiple Lines Columns and Rows
10839 \begin_layout Subsection
10840 Multiple Lines in Table Cells
10841 \begin_inset CommandInset label
10843 name "sub:Multiple-Lines-in"
10851 \begin_layout Plain Layout
10852 Multiple Lines in Table Cells
10861 \begin_layout Plain Layout
10870 \begin_layout Standard
10872 \begin_inset Float table
10878 \begin_layout Plain Layout
10879 \begin_inset Caption
10881 \begin_layout Plain Layout
10882 \begin_inset CommandInset label
10884 name "tab:Table-with-multiple"
10888 Table with multiple lines in cells
10896 \begin_layout Plain Layout
10898 \begin_inset Tabular
10899 <lyxtabular version="3" rows="3" columns="3">
10901 <column alignment="center" valignment="middle" width="2.5cm">
10902 <column alignment="center" valignment="middle" width="0">
10903 <column alignment="center" valignment="middle" width="0">
10905 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10908 \begin_layout Plain Layout
10910 \begin_inset Newline linebreak
10918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10921 \begin_layout Plain Layout
10927 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10930 \begin_layout Plain Layout
10938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10941 \begin_layout Plain Layout
10947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10950 \begin_layout Plain Layout
10956 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10959 \begin_layout Plain Layout
10967 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10970 \begin_layout Plain Layout
10976 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10979 \begin_layout Plain Layout
10985 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10988 \begin_layout Plain Layout
11007 \begin_layout Standard
11008 Adjusting a fixed width for a column, enables to enter text as a paragraph
11009 with multiple lines and hyphenations.
11012 \begin_layout Standard
11014 \begin_inset space ~
11018 \begin_inset CommandInset ref
11020 reference "tab:Table-with-multiple"
11024 , create a 3×3 table, mark the first cell and right-click on it.
11025 In the appearing table dialog we set a cell width of 2.5
11026 \begin_inset space \thinspace{}
11029 cm and choose centered for the vertical and horizontal alignment.
11030 The vertical alignment is used for all cells of the row.
11031 As our text is smaller than than 2.5
11032 \begin_inset space \thinspace{}
11035 cm, only one line will appear.
11036 To get two lines, a justified line break (shortcut
11039 arg "newline-insert linebreak"
11043 If the text is wider than the set cell width, it will automatically be
11044 broken to several lines.
11047 \begin_layout Standard
11048 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11049 by LaTeX if it is the first entry.
11050 Therefore you need to insert something, to make the word not being the
11052 So add a horizontal space of 0
11053 \begin_inset space \thinspace{}
11056 pt before the word.
11057 As the space is zero, it doesn't change the output.
11059 \begin_inset space ~
11063 \begin_inset CommandInset ref
11065 reference "tab:Table-with-and"
11072 \begin_layout Standard
11073 \begin_inset Float table
11079 \begin_layout Plain Layout
11080 \begin_inset Caption
11082 \begin_layout Plain Layout
11083 \begin_inset CommandInset label
11085 name "tab:Table-with-and"
11089 Table with and without hyphenation
11097 \begin_layout Plain Layout
11098 \begin_inset space \hfill{}
11102 \begin_inset Tabular
11103 <lyxtabular version="3" rows="3" columns="3">
11105 <column alignment="center" valignment="middle" width="2.5cm">
11106 <column alignment="center" valignment="middle" width="0">
11107 <column alignment="center" valignment="middle" width="0">
11109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11112 \begin_layout Plain Layout
11113 verylongtablecellword
11118 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11121 \begin_layout Plain Layout
11127 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11130 \begin_layout Plain Layout
11138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11141 \begin_layout Plain Layout
11147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11150 \begin_layout Plain Layout
11156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11159 \begin_layout Plain Layout
11167 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11170 \begin_layout Plain Layout
11176 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11179 \begin_layout Plain Layout
11185 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11188 \begin_layout Plain Layout
11200 \begin_inset space \hfill{}
11204 \begin_inset Tabular
11205 <lyxtabular version="3" rows="3" columns="3">
11207 <column alignment="center" valignment="middle" width="2.5cm">
11208 <column alignment="center" valignment="middle" width="0">
11209 <column alignment="center" valignment="middle" width="0">
11211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11214 \begin_layout Plain Layout
11215 \begin_inset space \hspace{}
11219 verylongtablecellword
11224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11227 \begin_layout Plain Layout
11233 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11236 \begin_layout Plain Layout
11244 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11247 \begin_layout Plain Layout
11253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11256 \begin_layout Plain Layout
11262 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11265 \begin_layout Plain Layout
11273 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11276 \begin_layout Plain Layout
11282 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11285 \begin_layout Plain Layout
11291 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11294 \begin_layout Plain Layout
11306 \begin_inset space \hfill{}
11317 \begin_layout Subsection
11319 \begin_inset CommandInset label
11321 name "sub:Multicolumns"
11329 \begin_layout Plain Layout
11339 \begin_layout Plain Layout
11340 Table ! Multicolumns
11348 \begin_layout Subsubsection
11352 \begin_layout Standard
11353 To span a cell over multiple columns, mark as much cells within a line that
11354 should be one spanned cell and use either the table-toolbar button
11355 \begin_inset Graphics
11356 filename ../images/tabular-feature_multicolumn.png
11358 scaleBeforeRotation
11364 Edit\SpecialChar \menuseparator
11365 Table\SpecialChar \menuseparator
11368 , or right click on the marked cells and choose multicolumn in the appearing
11369 table dialog under the tab
11376 \begin_layout Standard
11377 Multicolumns have there own cell settings.
11378 That means changing cell borders, cell alignment, and the width only affects
11380 Here is an example table with a multicolumn cell in the first row and one
11381 in the last row without the upper border:
11384 \begin_layout Standard
11386 \begin_inset Tabular
11387 <lyxtabular version="3" rows="3" columns="4">
11388 <features firstHeadTopDL="true" firstHeadBottomDL="true">
11389 <column alignment="center" valignment="top" width="0pt">
11390 <column alignment="center" valignment="middle" width="0">
11391 <column alignment="center" valignment="top" width="0in">
11392 <column alignment="center" valignment="top" width="0pt">
11394 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11397 \begin_layout Plain Layout
11403 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11406 \begin_layout Plain Layout
11412 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11415 \begin_layout Plain Layout
11421 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11424 \begin_layout Plain Layout
11432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11435 \begin_layout Plain Layout
11450 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11453 \begin_layout Plain Layout
11459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11462 \begin_layout Plain Layout
11468 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11471 \begin_layout Plain Layout
11479 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11482 \begin_layout Plain Layout
11488 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11491 \begin_layout Plain Layout
11497 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11500 \begin_layout Plain Layout
11506 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11509 \begin_layout Plain Layout
11523 \begin_layout Subsubsection
11524 Multicolumn Calculations
11525 \begin_inset CommandInset label
11527 name "sub:Multicolumn-Calculations"
11535 \begin_layout Plain Layout
11536 Multicolumns ! Calculations
11544 \begin_layout Standard
11545 LyX supports multicolumns directly, but we have to take notice of the cell
11546 width of the columns spanned by the multicolumn cell.
11549 \begin_layout Standard
11550 \begin_inset Float table
11556 \begin_layout Plain Layout
11557 \begin_inset Caption
11559 \begin_layout Plain Layout
11560 \begin_inset CommandInset label
11562 name "tab:Table-with-centered"
11566 Table with centered multicolumn text above two columns that have exactly
11567 half the width of the multicolumn cell
11568 \begin_inset OptArg
11571 \begin_layout Plain Layout
11572 Perfect multicolumn table
11585 \begin_layout Plain Layout
11587 \begin_inset Tabular
11588 <lyxtabular version="3" rows="3" columns="3">
11590 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11591 <column alignment="center" valignment="middle" width="0">
11592 <column alignment="center" valignment="top" width="0">
11594 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11597 \begin_layout Plain Layout
11598 multiple lines multicolumn
11603 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11606 \begin_layout Plain Layout
11612 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11615 \begin_layout Plain Layout
11623 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11626 \begin_layout Plain Layout
11632 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11635 \begin_layout Plain Layout
11641 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11644 \begin_layout Plain Layout
11652 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11655 \begin_layout Plain Layout
11661 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11664 \begin_layout Plain Layout
11670 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11673 \begin_layout Plain Layout
11692 \begin_layout Standard
11693 To create for example Table
11694 \begin_inset space ~
11698 \begin_inset CommandInset ref
11700 reference "tab:Table-with-centered"
11704 , mark the first two cells in the first row of a 3×3 table and right-click
11706 Now choose for this cell
11715 \begin_inset space \thinspace{}
11718 cm in the table dialog.
11719 The spanned columns should have exactly half the width of the multicolumn
11720 cell, so that you would adjust a width of 1.25
11721 \begin_inset space \thinspace{}
11724 cm for the first column.
11725 The second column has then automatically a width of 1.25
11726 \begin_inset space \thinspace{}
11729 cm (multicolumn width - width of first column).
11730 This was done for Table
11731 \begin_inset space ~
11735 \begin_inset CommandInset ref
11737 reference "tab:Table-without-half"
11744 \begin_layout Standard
11745 \begin_inset Float table
11750 \begin_layout Plain Layout
11751 \begin_inset Caption
11753 \begin_layout Plain Layout
11754 \begin_inset CommandInset label
11756 name "tab:Table-without-half"
11760 Table where the spanned table columns have not exactly half the width of
11761 the multicolumn cell
11762 \begin_inset OptArg
11765 \begin_layout Plain Layout
11766 Imperfect multicolumn table
11779 \begin_layout Plain Layout
11781 \begin_inset Tabular
11782 <lyxtabular version="3" rows="3" columns="3">
11784 <column alignment="center" valignment="top" width="1.25cm">
11785 <column alignment="center" valignment="top" width="0">
11786 <column alignment="center" valignment="top" width="0">
11788 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11791 \begin_layout Plain Layout
11792 multiple lines multicolumn
11797 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11800 \begin_layout Plain Layout
11806 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11809 \begin_layout Plain Layout
11817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11820 \begin_layout Plain Layout
11826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11829 \begin_layout Plain Layout
11835 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11838 \begin_layout Plain Layout
11846 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11849 \begin_layout Plain Layout
11855 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11858 \begin_layout Plain Layout
11864 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11867 \begin_layout Plain Layout
11886 \begin_layout Standard
11887 You can see that the first column has not the half width of the multicolumn
11888 cell, it is a bit bigger.
11889 The reason is that the given width of a cell
11890 \begin_inset Formula $W_{g}$
11893 is not its total width
11894 \begin_inset Formula $W_{\mathrm{tot}}$
11897 because a cell is always a bit larger than its given width.
11899 \begin_inset space ~
11903 \begin_inset CommandInset ref
11905 reference "cha:Explanation-of-Equation"
11909 explains it in detail.
11912 \begin_layout Standard
11913 The needed given width
11914 \begin_inset Formula $W_{g\, n}$
11921 columns are spanned can be calculated, so that each column has a total
11923 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11927 \begin_inset Formula \begin{equation}
11928 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11935 \begin_layout Standard
11936 In our case we have
11937 \begin_inset Formula $n=2$
11941 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11944 cm and the default values for the lengths, so that equation
11945 \begin_inset CommandInset ref
11952 \begin_inset Formula \begin{equation}
11953 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11960 \begin_layout Standard
11961 To enable calculations in LaTeX, the LaTeX-package
11965 must be loaded with the document preamble line
11969 \begin_layout Plain Layout
11970 LaTeX-packages ! calc
11978 \begin_layout Standard
11986 \begin_layout Standard
11987 LyX does not allow to calculate lengths in the width-field of the table
11989 Therefore you have to format the column by inserting a LaTeX-argument in
11991 Here is an overview about the arguments:
11994 \begin_layout Itemize
11999 creates cell with a fixed width, its text is vertically top-aligned
12002 \begin_layout Itemize
12007 creates cell with a fixed width, its text is vertically centered
12010 \begin_layout Itemize
12015 creates cell with a fixed width, its text is vertically bottom-aligned
12018 \begin_layout Standard
12019 By entering a LaTeX-argument, all cell settings set in the table dialog
12023 \begin_layout Standard
12024 \begin_inset Note Greyedout
12027 \begin_layout Plain Layout
12032 Due to a bug, LyX shows the overwritten settings anyway.
12040 \begin_layout Standard
12041 As the text should be horizontally centered, the command
12048 You can now enter the following LaTeX-argument for the first spanned column:
12051 \begin_layout Standard
12056 centering}m{1.25cm-6.2pt}
12059 \begin_layout Standard
12064 means, that the commands inside the braces are applied before the cell
12068 \begin_layout Standard
12069 Although we have chosen centered alignment for the text of the multicolumn
12070 cell, it is still left aligned.
12071 This is because LyX only applies the alignment to single columns.
12072 So we have to use for the multicolumn the LaTeX-argument
12075 \begin_layout Standard
12083 \begin_layout Subsection
12088 \begin_layout Plain Layout
12098 \begin_layout Plain Layout
12107 \begin_layout Standard
12108 In contrary to multicolumns multirows are not yet supported by LyX so a
12109 bit of TeX-Code needs to be used.
12110 To use multirows load the LaTeX-package
12118 \begin_layout Plain Layout
12119 LaTeX-packages ! multirow
12124 in your document preamble with the command
12127 \begin_layout Standard
12132 usepackage{multirow}
12135 \begin_layout Standard
12136 Multirows are created with the command
12139 \begin_layout Standard
12144 multirow{number of rows}{cell width}{cell entry}
12147 \begin_layout Standard
12148 To create the following table:
12151 \begin_layout Standard
12156 \begin_layout Plain Layout
12170 \begin_inset Tabular
12171 <lyxtabular version="3" rows="3" columns="3">
12173 <column alignment="center" valignment="top" width="0">
12174 <column alignment="center" valignment="top" width="0">
12175 <column alignment="center" valignment="top" width="0">
12177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12180 \begin_layout Plain Layout
12186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12189 \begin_layout Plain Layout
12195 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12198 \begin_layout Plain Layout
12206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12209 \begin_layout Plain Layout
12213 \begin_layout Plain Layout
12217 multirow{2}{2.5cm}{
12226 \begin_layout Plain Layout
12238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12241 \begin_layout Plain Layout
12247 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12250 \begin_layout Plain Layout
12258 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12261 \begin_layout Plain Layout
12267 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12270 \begin_layout Plain Layout
12276 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12279 \begin_layout Plain Layout
12294 \begin_layout Plain Layout
12310 \begin_layout Standard
12311 create a 3×3 table.
12312 To get rid of the line above the last cell in the first column, the cell
12313 is marked as multicolumn and the upper border is unset.
12314 The multirow is now created in the second row of the first column by inserting
12318 \begin_layout Standard
12323 multirow{2}{2.5cm}{
12326 \begin_layout Standard
12328 According to the command parameters the multirow spans now two rows and
12330 \begin_inset space \thinspace{}
12334 The content of the multirow cell follows outside the TeX-Code box and the
12335 command is finished with a right brace
12339 in another TeX-Code-box behind the text.
12342 \begin_layout Standard
12349 left-aligns its content by default.
12350 To override the default, renew the command
12359 \begin_layout Standard
12371 \begin_layout Standard
12372 in TeX-Code in the document preamble.
12373 Then all entries of multirow cells in the document are centered.
12374 If centering is only needed for several tables, you can renew the command
12375 in an TeX-Code box just before the table instead of the preamble.
12376 If the text should be right-aligned, replace
12389 To return to left-alignment
12398 \begin_layout Section
12400 \begin_inset CommandInset label
12402 name "sec:Formal-Tables"
12410 \begin_layout Plain Layout
12419 \begin_layout Standard
12420 Tables are often typeset in books similar to Table
12421 \begin_inset space ~
12425 \begin_inset CommandInset ref
12427 reference "tab:Example-booktabs-table"
12432 This kind of tables is called
12433 \begin_inset Quotes eld
12441 \begin_inset Quotes erd
12445 To make a table a formal table use the option
12453 tab of the table dialog.
12456 \begin_layout Standard
12457 \begin_inset Float table
12463 \begin_layout Plain Layout
12464 \begin_inset Caption
12466 \begin_layout Plain Layout
12467 \begin_inset CommandInset label
12469 name "tab:Example-booktabs-table"
12473 Example booktabs-table
12481 \begin_layout Plain Layout
12483 \begin_inset Tabular
12484 <lyxtabular version="3" rows="8" columns="4">
12485 <features booktabs="true">
12486 <column alignment="center" valignment="top" width="0">
12487 <column alignment="center" valignment="top" width="0">
12488 <column alignment="center" valignment="top" width="0">
12489 <column alignment="center" valignment="top" width="0">
12491 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12494 \begin_layout Plain Layout
12500 <cell alignment="center" valignment="top" topline="true" usebox="none">
12503 \begin_layout Plain Layout
12505 \begin_inset space \thinspace{}
12513 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
12516 \begin_layout Plain Layout
12518 \begin_inset space \thinspace{}
12526 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12529 \begin_layout Plain Layout
12537 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12540 \begin_layout Plain Layout
12544 \begin_layout Plain Layout
12557 \begin_layout Plain Layout
12566 Detector thickness [µm]
12571 <cell alignment="center" valignment="top" usebox="none">
12574 \begin_layout Plain Layout
12580 <cell alignment="center" valignment="top" usebox="none">
12583 \begin_layout Plain Layout
12589 <cell alignment="center" valignment="top" usebox="none">
12592 \begin_layout Plain Layout
12600 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12603 \begin_layout Plain Layout
12609 <cell alignment="center" valignment="top" topline="true" usebox="none">
12612 \begin_layout Plain Layout
12618 <cell alignment="center" valignment="top" topline="true" usebox="none">
12621 \begin_layout Plain Layout
12627 <cell alignment="center" valignment="top" topline="true" usebox="none">
12630 \begin_layout Plain Layout
12637 <row topspace="default">
12638 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12641 \begin_layout Plain Layout
12642 Spatial resolution [µm]
12647 <cell alignment="center" valignment="top" usebox="none">
12650 \begin_layout Plain Layout
12656 <cell alignment="center" valignment="top" usebox="none">
12659 \begin_layout Plain Layout
12665 <cell alignment="center" valignment="top" usebox="none">
12668 \begin_layout Plain Layout
12675 <row topspace="default">
12676 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12679 \begin_layout Plain Layout
12681 \begin_inset Formula $f_{\mathrm{max}}$
12689 <cell alignment="center" valignment="top" usebox="none">
12692 \begin_layout Plain Layout
12698 <cell alignment="center" valignment="top" usebox="none">
12701 \begin_layout Plain Layout
12707 <cell alignment="center" valignment="top" usebox="none">
12710 \begin_layout Plain Layout
12717 <row topspace="default">
12718 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12721 \begin_layout Plain Layout
12725 \begin_layout Plain Layout
12729 cmidrule(l{10pt}){1-1}
12734 LSF-spatial resolution
12739 <cell alignment="center" valignment="top" usebox="none">
12742 \begin_layout Plain Layout
12748 <cell alignment="center" valignment="top" usebox="none">
12751 \begin_layout Plain Layout
12757 <cell alignment="center" valignment="top" usebox="none">
12760 \begin_layout Plain Layout
12768 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12771 \begin_layout Plain Layout
12777 <cell alignment="center" valignment="top" usebox="none">
12780 \begin_layout Plain Layout
12786 <cell alignment="center" valignment="top" usebox="none">
12789 \begin_layout Plain Layout
12795 <cell alignment="center" valignment="top" usebox="none">
12798 \begin_layout Plain Layout
12806 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12809 \begin_layout Plain Layout
12815 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12818 \begin_layout Plain Layout
12824 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12827 \begin_layout Plain Layout
12833 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12836 \begin_layout Plain Layout
12855 \begin_layout Standard
12856 Spaces to table rows can be added using the
12860 tab of the table dialog as described in section
12861 \begin_inset space ~
12865 \begin_inset CommandInset ref
12867 reference "sub:Row-Spacing"
12874 \begin_layout Standard
12875 In contrary to normal tables, formal tables have no vertical table lines.
12876 The horizontal table lines can be set like for normal tables but they appear
12877 with different width in the output:
12878 \begin_inset Newline newline
12881 The first and the last table line have a default width of 0.08
12882 \begin_inset space \thinspace{}
12885 em while the other lines have a default width of 0.05
12886 \begin_inset space \thinspace{}
12892 \begin_layout Standard
12893 The default widths can be changed with the following preamble lines
12896 \begin_layout Standard
12906 \begin_inset Newline newline
12918 \begin_layout Standard
12919 This example is for the first line, the so called
12924 If you want to change the width for the last line, replace
12933 To change the width for the other lines replace
12942 You can use all units listed in appendix
12943 \begin_inset space ~
12947 \begin_inset CommandInset ref
12949 reference "cha:Units-available-in"
12956 \begin_layout Standard
12957 Lines that don't span over all table columns can be created by setting a
12958 table line for multicolumn cells.
12959 LyX will then internally use the command
12965 to create this line.
12969 \begin_layout Standard
12974 cmidrule[width](trim){startcol-endcol}
12977 \begin_layout Standard
12984 are are currently not supported by LyX so you have to use TeX-Code to be
12992 s can manually be created by inserting the command as TeX-Code as first
12993 cell entry of the first cell of a row.
12994 The line is then drawn in the output above the current row.
12997 \begin_layout Standard
12998 The default for the width is 0.03
12999 \begin_inset space \thinspace{}
13003 Startcol is the number of the column where the line starts and endcol the
13004 column number where the line ends.
13005 The endcol always needs to be specified, also when the line should span
13007 The optional parameter trim could be either
13015 where the trimwidth is also optional.
13016 Using for example the parameter
13020 means that the line is trimmed from its left end by 2
13021 \begin_inset space \thinspace{}
13025 If you don't specify the trimwidth the lines are trimmed by the default
13027 \begin_inset space \thinspace{}
13033 \begin_layout Standard
13034 \begin_inset VSpace bigskip
13038 \begin_inset space ~
13042 \begin_inset CommandInset ref
13044 reference "tab:Example-booktabs-table"
13048 was created using the commands
13051 \begin_layout Standard
13061 \begin_layout Standard
13062 at the beginning of the in the second row and
13065 \begin_layout Standard
13070 cmidrule(l{10pt}){1-1}
13073 \begin_layout Standard
13077 \begin_layout Standard
13078 \begin_inset VSpace bigskip
13084 \begin_layout Standard
13085 You might want to have overlapping
13092 \begin_inset space ~
13096 \begin_inset CommandInset ref
13098 reference "tab:Special-booktabs-table"
13103 This can be achieved with the TeX-Code command
13106 \begin_layout Standard
13114 \begin_layout Standard
13115 The command that was used for the second row of Table
13116 \begin_inset space ~
13120 \begin_inset CommandInset ref
13122 reference "tab:Special-booktabs-table"
13129 \begin_layout Standard
13143 \begin_layout Standard
13144 The command for the sixth row is
13147 \begin_layout Standard
13159 \begin_layout Standard
13160 \begin_inset VSpace bigskip
13166 \begin_layout Standard
13167 If you are anyway not satisfied with the border line spacing, you can use
13168 the following command to produce lines that span over all table columns
13173 \begin_layout Standard
13178 specialrule{width}{space above}{space below}
13181 \begin_layout Standard
13182 For more information about these specialties, we refer to the manual of
13188 \begin_inset CommandInset citation
13198 \begin_layout Plain Layout
13199 LaTeX-packages ! booktabs
13207 \begin_layout Standard
13208 \begin_inset Float table
13214 \begin_layout Plain Layout
13215 \begin_inset Caption
13217 \begin_layout Plain Layout
13218 \begin_inset CommandInset label
13220 name "tab:Special-booktabs-table"
13224 Special booktabs-table
13232 \begin_layout Plain Layout
13234 \begin_inset Tabular
13235 <lyxtabular version="3" rows="8" columns="4">
13236 <features booktabs="true">
13237 <column alignment="center" valignment="top" width="0">
13238 <column alignment="center" valignment="top" width="0">
13239 <column alignment="center" valignment="top" width="0">
13240 <column alignment="center" valignment="top" width="0">
13242 <cell alignment="center" valignment="top" topline="true" usebox="none">
13245 \begin_layout Plain Layout
13251 <cell alignment="center" valignment="top" topline="true" usebox="none">
13254 \begin_layout Plain Layout
13256 \begin_inset space \thinspace{}
13264 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
13267 \begin_layout Plain Layout
13269 \begin_inset space \thinspace{}
13277 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13280 \begin_layout Plain Layout
13288 <cell alignment="center" valignment="top" usebox="none">
13291 \begin_layout Plain Layout
13295 \begin_layout Plain Layout
13308 \begin_layout Plain Layout
13321 \begin_layout Plain Layout
13334 \begin_layout Plain Layout
13343 Detector thickness [µm]
13348 <cell alignment="center" valignment="top" usebox="none">
13351 \begin_layout Plain Layout
13357 <cell alignment="center" valignment="top" usebox="none">
13360 \begin_layout Plain Layout
13366 <cell alignment="center" valignment="top" usebox="none">
13369 \begin_layout Plain Layout
13377 <cell alignment="center" valignment="top" topline="true" usebox="none">
13380 \begin_layout Plain Layout
13386 <cell alignment="center" valignment="top" topline="true" usebox="none">
13389 \begin_layout Plain Layout
13395 <cell alignment="center" valignment="top" topline="true" usebox="none">
13398 \begin_layout Plain Layout
13404 <cell alignment="center" valignment="top" topline="true" usebox="none">
13407 \begin_layout Plain Layout
13414 <row topspace="default">
13415 <cell alignment="center" valignment="top" usebox="none">
13418 \begin_layout Plain Layout
13419 Spatial resolution [µm]
13424 <cell alignment="center" valignment="top" usebox="none">
13427 \begin_layout Plain Layout
13433 <cell alignment="center" valignment="top" usebox="none">
13436 \begin_layout Plain Layout
13442 <cell alignment="center" valignment="top" usebox="none">
13445 \begin_layout Plain Layout
13452 <row topspace="default">
13453 <cell alignment="center" valignment="top" usebox="none">
13456 \begin_layout Plain Layout
13458 \begin_inset Formula $f_{\mathrm{max}}$
13466 <cell alignment="center" valignment="top" usebox="none">
13469 \begin_layout Plain Layout
13475 <cell alignment="center" valignment="top" usebox="none">
13478 \begin_layout Plain Layout
13484 <cell alignment="center" valignment="top" usebox="none">
13487 \begin_layout Plain Layout
13495 <cell alignment="center" valignment="top" topline="true" usebox="none">
13498 \begin_layout Plain Layout
13502 \begin_layout Plain Layout
13515 \begin_layout Plain Layout
13524 LSF-spatial resolution
13529 <cell alignment="center" valignment="top" topline="true" usebox="none">
13532 \begin_layout Plain Layout
13538 <cell alignment="center" valignment="top" topline="true" usebox="none">
13541 \begin_layout Plain Layout
13547 <cell alignment="center" valignment="top" topline="true" usebox="none">
13550 \begin_layout Plain Layout
13558 <cell alignment="center" valignment="top" usebox="none">
13561 \begin_layout Plain Layout
13567 <cell alignment="center" valignment="top" usebox="none">
13570 \begin_layout Plain Layout
13576 <cell alignment="center" valignment="top" usebox="none">
13579 \begin_layout Plain Layout
13585 <cell alignment="center" valignment="top" usebox="none">
13588 \begin_layout Plain Layout
13596 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13599 \begin_layout Plain Layout
13605 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13608 \begin_layout Plain Layout
13614 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13617 \begin_layout Plain Layout
13623 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13626 \begin_layout Plain Layout
13645 \begin_layout Section
13646 Vertical Table Alignment
13650 \begin_layout Plain Layout
13659 \begin_layout Standard
13660 To align tables vertically in a text line the table must be inside a box.
13661 The box can then be vertically aligned as described in section
13662 \begin_inset space ~
13666 \begin_inset CommandInset ref
13668 reference "sec:Box-Dialog"
13675 \begin_layout Standard
13676 In the following example the tables are inside a minipage
13680 \begin_layout Plain Layout
13681 Minipages are described in section
13682 \begin_inset space ~
13686 \begin_inset CommandInset ref
13688 reference "sec:Minipages"
13697 box that has a width of 15
13698 \begin_inset space \thinspace{}
13704 \begin_layout Itemize
13706 \begin_inset Box Frameless
13715 height_special "totalheight"
13718 \begin_layout Plain Layout
13719 \begin_inset Tabular
13720 <lyxtabular version="3" rows="3" columns="3">
13722 <column alignment="center" valignment="top" width="0">
13723 <column alignment="center" valignment="top" width="0">
13724 <column alignment="center" valignment="top" width="0">
13726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13729 \begin_layout Plain Layout
13735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13738 \begin_layout Plain Layout
13744 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13747 \begin_layout Plain Layout
13755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13758 \begin_layout Plain Layout
13764 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13767 \begin_layout Plain Layout
13773 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13776 \begin_layout Plain Layout
13784 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13787 \begin_layout Plain Layout
13793 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13796 \begin_layout Plain Layout
13802 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13805 \begin_layout Plain Layout
13825 \begin_layout Plain Layout
13837 \begin_inset Box Frameless
13846 height_special "totalheight"
13849 \begin_layout Plain Layout
13850 \begin_inset Tabular
13851 <lyxtabular version="3" rows="3" columns="3">
13853 <column alignment="center" valignment="top" width="0">
13854 <column alignment="center" valignment="top" width="0">
13855 <column alignment="center" valignment="top" width="0">
13857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13860 \begin_layout Plain Layout
13866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13869 \begin_layout Plain Layout
13875 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13878 \begin_layout Plain Layout
13886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13889 \begin_layout Plain Layout
13895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13898 \begin_layout Plain Layout
13904 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13907 \begin_layout Plain Layout
13915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13918 \begin_layout Plain Layout
13924 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13927 \begin_layout Plain Layout
13933 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13936 \begin_layout Plain Layout
13956 \begin_layout Plain Layout
13966 \begin_layout Itemize
13968 \begin_inset Box Frameless
13977 height_special "totalheight"
13980 \begin_layout Plain Layout
13981 \begin_inset Tabular
13982 <lyxtabular version="3" rows="3" columns="3">
13984 <column alignment="center" valignment="top" width="0">
13985 <column alignment="center" valignment="top" width="0">
13986 <column alignment="center" valignment="top" width="0">
13988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13991 \begin_layout Plain Layout
13997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14000 \begin_layout Plain Layout
14006 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14009 \begin_layout Plain Layout
14017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14020 \begin_layout Plain Layout
14026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14029 \begin_layout Plain Layout
14035 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14038 \begin_layout Plain Layout
14046 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14049 \begin_layout Plain Layout
14055 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14058 \begin_layout Plain Layout
14064 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14067 \begin_layout Plain Layout
14086 \begin_layout Itemize
14088 \begin_inset Box Frameless
14097 height_special "totalheight"
14100 \begin_layout Plain Layout
14101 \begin_inset Tabular
14102 <lyxtabular version="3" rows="3" columns="3">
14104 <column alignment="center" valignment="top" width="0">
14105 <column alignment="center" valignment="top" width="0">
14106 <column alignment="center" valignment="top" width="0">
14108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14111 \begin_layout Plain Layout
14117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14120 \begin_layout Plain Layout
14126 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14129 \begin_layout Plain Layout
14137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14140 \begin_layout Plain Layout
14146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14149 \begin_layout Plain Layout
14155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14158 \begin_layout Plain Layout
14166 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14169 \begin_layout Plain Layout
14175 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14178 \begin_layout Plain Layout
14184 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14187 \begin_layout Plain Layout
14207 \begin_layout Plain Layout
14219 \begin_inset Box Frameless
14228 height_special "totalheight"
14231 \begin_layout Plain Layout
14232 \begin_inset Tabular
14233 <lyxtabular version="3" rows="3" columns="3">
14235 <column alignment="center" valignment="top" width="0">
14236 <column alignment="center" valignment="top" width="0">
14237 <column alignment="center" valignment="top" width="0">
14239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14242 \begin_layout Plain Layout
14248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14251 \begin_layout Plain Layout
14257 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14260 \begin_layout Plain Layout
14268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14271 \begin_layout Plain Layout
14277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14280 \begin_layout Plain Layout
14286 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14289 \begin_layout Plain Layout
14297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14300 \begin_layout Plain Layout
14306 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14309 \begin_layout Plain Layout
14315 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14318 \begin_layout Plain Layout
14338 \begin_layout Plain Layout
14348 \begin_layout Standard
14349 As you can see, the content of the first and last table row is not correctly
14350 aligned with the text line where the table is in.
14351 To get this alignment, the minipage box must be set into a raisebox
14355 \begin_layout Plain Layout
14356 Raiseboxes are described in section
14357 \begin_inset space ~
14361 \begin_inset CommandInset ref
14363 reference "sub:Vertical-Alignment"
14373 In the example above the second table in the first item is aligned using
14374 the TeX-Code-command
14377 \begin_layout Standard
14387 \begin_layout Standard
14389 Behind the box the closing brace
14393 is inserted as TeX-Code.
14394 For the second table in the last item the command
14397 \begin_layout Standard
14407 \begin_layout Standard
14411 \begin_layout Standard
14412 \begin_inset Note Greyedout
14415 \begin_layout Plain Layout
14420 The alignment of the table row content to the surrounding text line is
14422 The needed factor of the
14428 command for this alignment depends on the document font, the font size,
14429 and the table line thickness.
14437 \begin_layout Section
14439 \begin_inset CommandInset label
14441 name "sec:Colored-Tables"
14449 \begin_layout Plain Layout
14458 \begin_layout Subsection
14463 \begin_layout Plain Layout
14464 Table Color ! for Cells
14473 \begin_layout Plain Layout
14474 Color ! for Table Cells
14482 \begin_layout Standard
14483 \begin_inset Float table
14489 \begin_layout Plain Layout
14490 \begin_inset Caption
14492 \begin_layout Plain Layout
14493 \begin_inset CommandInset label
14495 name "tab:Table-colored-without"
14499 Table colored without using the package
14504 \begin_inset OptArg
14507 \begin_layout Plain Layout
14508 Table without colortbl
14521 \begin_layout Plain Layout
14523 \begin_inset Tabular
14524 <lyxtabular version="3" rows="3" columns="3">
14526 <column alignment="center" valignment="top" width="0">
14527 <column alignment="center" valignment="top" width="0">
14528 <column alignment="center" valignment="top" width="0">
14530 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14533 \begin_layout Plain Layout
14541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14544 \begin_layout Plain Layout
14552 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14555 \begin_layout Plain Layout
14565 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14568 \begin_layout Plain Layout
14576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14579 \begin_layout Plain Layout
14587 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14590 \begin_layout Plain Layout
14600 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14603 \begin_layout Plain Layout
14611 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14614 \begin_layout Plain Layout
14622 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14625 \begin_layout Plain Layout
14646 \begin_layout Standard
14647 If you only need colored text, mark the cells and choose a color in the
14650 Edit\SpecialChar \menuseparator
14652 \begin_inset space ~
14658 This was used to create Table
14659 \begin_inset space ~
14663 \begin_inset CommandInset ref
14665 reference "tab:Table-colored-without"
14670 In any other case you have to use the LaTeX-package
14678 \begin_layout Plain Layout
14679 LaTeX-packages ! colortbl
14687 \begin_layout Standard
14691 \begin_layout Plain Layout
14701 \begin_inset Note Note
14704 \begin_layout Plain Layout
14705 The following section part will only be displayed when the LaTeX-package
14718 \begin_layout Standard
14719 To create colored tables,
14723 must be loaded in the preamble with the line
14726 \begin_layout Standard
14731 usepackage{colortbl}
14734 \begin_layout Standard
14735 The color of a column is adjusted with the command
14738 \begin_layout Standard
14743 columncolor{name of color}
14746 \begin_layout Standard
14752 More about the command
14756 is described in section
14757 \begin_inset space ~
14761 \begin_inset CommandInset ref
14763 reference "sub:Multicolumn-Calculations"
14770 \begin_layout Standard
14771 The following color names are predefined:
14774 \begin_layout Standard
14808 \begin_layout Standard
14809 \begin_inset VSpace medskip
14815 \begin_layout Standard
14816 You can also define your own color with the command
14819 \begin_layout Standard
14824 definecolor{color name}{color model}{color values}
14827 \begin_layout Standard
14828 The color model can be
14831 \begin_layout Labeling
14832 \labelwidthstring 00.00.0000
14833 cmyk: cyan, magenta, yellow, black
14836 \begin_layout Labeling
14837 \labelwidthstring 00.00.0000
14838 rgb: red, green blue
14841 \begin_layout Labeling
14842 \labelwidthstring 00.00.0000
14846 \begin_layout Standard
14847 and the color values are comma separated numbers between 0 and 1 describing
14848 the factor for the corresponding color of the color model.
14851 \begin_layout Standard
14853 \begin_inset space \thinspace{}
14857 \begin_inset space \space{}
14864 " in the preamble with
14867 \begin_layout Standard
14872 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14875 \begin_layout Standard
14883 \begin_layout Standard
14888 definecolor{lightgray}{gray}{0.8}
14891 \begin_layout Standard
14892 \begin_inset VSpace medskip
14898 \begin_layout Standard
14899 Lines are colored with the command
14902 \begin_layout Standard
14907 rowcolor{name of color}
14910 \begin_layout Standard
14911 and cells are colored with the command
14914 \begin_layout Standard
14919 cellcolor{name of color}
14922 \begin_layout Standard
14923 Both commands are inserted at the beginning of a cell as TeX-Code.
14926 \begin_layout Standard
14927 To color characters in the table, mark the cells and use the LyX menu
14929 Edit\SpecialChar \menuseparator
14931 \begin_inset space ~
14937 If a cell contains TeX-Code mark only the characters, otherwise the colored
14938 TeX-Code will cause LaTeX-errors.
14941 \begin_layout Standard
14942 \begin_inset Note Greyedout
14945 \begin_layout Plain Layout
14950 Not all DVI-viewers are able to display self-defined colors.
14958 \begin_layout Standard
14959 \begin_inset VSpace bigskip
14965 \begin_layout Standard
14967 \begin_inset space ~
14971 \begin_inset CommandInset ref
14973 reference "tab:Table-colored-using"
14977 do the following: The color of the first column should be
14985 \begin_layout Standard
14990 columncolor{darkgreen}
14995 \begin_layout Standard
14996 as LaTeX-argument for this column.
14997 The first row should be blue, therefore the TeX-Code command
15000 \begin_layout Standard
15008 \begin_layout Standard
15009 is inserted to the first cell of this row.
15010 Note that this overwrites the column color for the first cell.
15011 The last cell of the last row is colored magenta by inserting the TeX-Code
15015 \begin_layout Standard
15023 \begin_layout Standard
15024 The characters could now be colored using the menu
15026 Edit\SpecialChar \menuseparator
15028 \begin_inset space ~
15036 \begin_layout Standard
15037 \begin_inset Float table
15043 \begin_layout Plain Layout
15044 \begin_inset Caption
15046 \begin_layout Plain Layout
15047 \begin_inset CommandInset label
15049 name "tab:Table-colored-using"
15053 Table colored using the package
15058 \begin_inset OptArg
15061 \begin_layout Plain Layout
15062 Table with colortbl
15075 \begin_layout Plain Layout
15077 \begin_inset Tabular
15078 <lyxtabular version="3" rows="3" columns="3">
15080 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15081 <column alignment="center" valignment="top" width="0">
15082 <column alignment="center" valignment="top" width="0">
15084 <cell alignment="center" valignment="top" usebox="none">
15087 \begin_layout Plain Layout
15091 \begin_layout Plain Layout
15107 <cell alignment="center" valignment="top" usebox="none">
15110 \begin_layout Plain Layout
15118 <cell alignment="center" valignment="top" usebox="none">
15121 \begin_layout Plain Layout
15131 <cell alignment="center" valignment="top" usebox="none">
15134 \begin_layout Plain Layout
15142 <cell alignment="center" valignment="top" usebox="none">
15145 \begin_layout Plain Layout
15153 <cell alignment="center" valignment="top" usebox="none">
15156 \begin_layout Plain Layout
15166 <cell alignment="center" valignment="top" usebox="none">
15169 \begin_layout Plain Layout
15177 <cell alignment="center" valignment="top" usebox="none">
15180 \begin_layout Plain Layout
15188 <cell alignment="center" valignment="top" usebox="none">
15191 \begin_layout Plain Layout
15195 \begin_layout Plain Layout
15224 \begin_layout Standard
15228 \begin_layout Plain Layout
15238 \begin_inset Note Note
15241 \begin_layout Plain Layout
15242 The following will be displayed when the LaTeX-package
15254 \begin_layout Standard
15255 You need to install the package
15259 to see the content of this section in the output.
15262 \begin_layout Standard
15266 \begin_layout Plain Layout
15278 \begin_layout Subsection
15283 \begin_layout Plain Layout
15284 Table Color ! for Lines
15293 \begin_layout Plain Layout
15294 Color ! for Table Lines
15302 \begin_layout Standard
15303 As described in section
15304 \begin_inset space ~
15308 \begin_inset CommandInset ref
15310 reference "sub:Line-Thickness"
15314 , the line thickness for all lines in a table can be adjusted with the length
15323 \begin_inset space \thinspace{}
15326 pt for all tables of this section.
15330 \begin_layout Plain Layout
15336 arrayrulewidth}{1.5pt}
15344 \begin_layout Standard
15345 To color vertical lines for example with green, create the following column
15346 format in the document preamble, according to the description in section
15347 \begin_inset space ~
15351 \begin_inset CommandInset ref
15353 reference "sub:Customized-Format"
15360 \begin_layout Standard
15365 newcolumntype{W}{!{
15372 \begin_layout Standard
15374 \begin_inset space ~
15378 \begin_inset CommandInset ref
15380 reference "tab:Table-with-vertical-colored"
15388 was used for the last column and
15392 for the other columns.
15395 \begin_layout Standard
15396 If you want to have several colors, define more column formats.
15399 \begin_layout Standard
15400 \begin_inset Float table
15406 \begin_layout Plain Layout
15407 \begin_inset Caption
15409 \begin_layout Plain Layout
15410 \begin_inset CommandInset label
15412 name "tab:Table-with-vertical-colored"
15416 Table with colored vertical lines
15424 \begin_layout Plain Layout
15426 \begin_inset Tabular
15427 <lyxtabular version="3" rows="3" columns="3">
15429 <column alignment="center" valignment="top" width="0" special="Wc">
15430 <column alignment="center" valignment="top" width="0" special="Wc">
15431 <column alignment="center" valignment="top" width="0" special="WcW">
15433 <cell alignment="center" valignment="top" topline="true" usebox="none">
15436 \begin_layout Plain Layout
15442 <cell alignment="center" valignment="top" topline="true" usebox="none">
15445 \begin_layout Plain Layout
15451 <cell alignment="center" valignment="top" topline="true" usebox="none">
15454 \begin_layout Plain Layout
15462 <cell alignment="center" valignment="top" topline="true" usebox="none">
15465 \begin_layout Plain Layout
15471 <cell alignment="center" valignment="top" topline="true" usebox="none">
15474 \begin_layout Plain Layout
15480 <cell alignment="center" valignment="top" topline="true" usebox="none">
15483 \begin_layout Plain Layout
15491 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15494 \begin_layout Plain Layout
15500 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15503 \begin_layout Plain Layout
15509 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15512 \begin_layout Plain Layout
15531 \begin_layout Standard
15532 \begin_inset VSpace bigskip
15535 To color horizontal lines for example with red, like in Table
15536 \begin_inset space ~
15540 \begin_inset CommandInset ref
15542 reference "tab:Table-with-horizontal-colored"
15546 , insert these commands in TeX-Code before the table or table float:
15549 \begin_layout Standard
15559 \begin_inset Newline newline
15567 \begin_inset Newline newline
15574 \begin_layout Plain Layout
15585 arrayrulecolor{red}
15589 arrayrulecolor{black}}
15592 \begin_layout Standard
15596 \begin_layout Plain Layout
15607 \begin_layout Plain Layout
15616 \begin_layout Plain Layout
15620 arrayrulecolor{red}
15624 arrayrulecolor{black}}
15630 \begin_inset Float table
15636 \begin_layout Plain Layout
15637 \begin_inset Caption
15639 \begin_layout Plain Layout
15640 \begin_inset CommandInset label
15642 name "tab:Table-with-horizontal-colored"
15646 Table with colored horizontal lines
15654 \begin_layout Plain Layout
15656 \begin_inset Tabular
15657 <lyxtabular version="3" rows="3" columns="3">
15659 <column alignment="center" valignment="top" width="0">
15660 <column alignment="center" valignment="top" width="0">
15661 <column alignment="center" valignment="top" width="0">
15663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15666 \begin_layout Plain Layout
15672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15675 \begin_layout Plain Layout
15681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15684 \begin_layout Plain Layout
15692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15695 \begin_layout Plain Layout
15701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15704 \begin_layout Plain Layout
15710 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15713 \begin_layout Plain Layout
15721 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15724 \begin_layout Plain Layout
15730 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15733 \begin_layout Plain Layout
15739 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15742 \begin_layout Plain Layout
15761 \begin_layout Standard
15762 To return to the default line color black, insert this command in TeX-Code
15763 behind the table or table float:
15766 \begin_layout Standard
15778 \begin_layout Standard
15780 \begin_inset space ~
15784 \begin_inset CommandInset ref
15786 reference "tab:Table-with-colored"
15790 is an example with colored vertical and horizontal lines.
15793 \begin_layout Standard
15794 \begin_inset Float table
15800 \begin_layout Plain Layout
15801 \begin_inset Caption
15803 \begin_layout Plain Layout
15804 \begin_inset CommandInset label
15806 name "tab:Table-with-colored"
15810 Table with colored lines
15818 \begin_layout Plain Layout
15820 \begin_inset Tabular
15821 <lyxtabular version="3" rows="3" columns="3">
15823 <column alignment="center" valignment="top" width="0" special="Wc">
15824 <column alignment="center" valignment="top" width="0" special="Wc">
15825 <column alignment="center" valignment="top" width="0" special="WcW">
15827 <cell alignment="center" valignment="top" topline="true" usebox="none">
15830 \begin_layout Plain Layout
15836 <cell alignment="center" valignment="top" topline="true" usebox="none">
15839 \begin_layout Plain Layout
15845 <cell alignment="center" valignment="top" topline="true" usebox="none">
15848 \begin_layout Plain Layout
15856 <cell alignment="center" valignment="top" topline="true" usebox="none">
15859 \begin_layout Plain Layout
15865 <cell alignment="center" valignment="top" topline="true" usebox="none">
15868 \begin_layout Plain Layout
15874 <cell alignment="center" valignment="top" topline="true" usebox="none">
15877 \begin_layout Plain Layout
15884 <row topspace="default">
15885 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15888 \begin_layout Plain Layout
15894 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15897 \begin_layout Plain Layout
15903 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15906 \begin_layout Plain Layout
15925 \begin_layout Standard
15929 \begin_layout Plain Layout
15945 \begin_layout Standard
15949 \begin_layout Plain Layout
15955 arrayrulewidth}{0.4pt}
15963 \begin_layout Section
15964 Table Customization
15968 \begin_layout Plain Layout
15969 Table Customization
15978 \begin_layout Plain Layout
15979 Table ! Customization
15987 \begin_layout Subsection
15989 \begin_inset CommandInset label
15991 name "sub:Row-Spacing"
15999 \begin_layout Plain Layout
16000 Table Customization ! Row Spacing
16008 \begin_layout Standard
16009 You can add vertical space to table rows in the
16013 tab of the table dialog.
16014 You find there three possibilities:
16017 \begin_layout Description
16019 \begin_inset space ~
16023 \begin_inset space ~
16026 row will add space above the characters of the table row.
16027 If the table is a formal table
16031 \begin_layout Plain Layout
16032 Formal tables are explained in section
16033 \begin_inset space ~
16037 \begin_inset CommandInset ref
16039 reference "sec:Formal-Tables"
16048 LyX will insert as default 0.5
16049 \begin_inset space \thinspace{}
16053 For normal tables the inserted space will unfortunately destroy the vertical
16054 table lines as in the following table:
16055 \begin_inset VSpace medskip
16059 \begin_inset Newline newline
16063 \begin_inset space \hspace*{}
16068 \begin_inset space \hfill{}
16072 \begin_inset Tabular
16073 <lyxtabular version="3" rows="3" columns="1">
16075 <column alignment="center" valignment="top" width="0">
16077 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16080 \begin_layout Plain Layout
16087 <row topspace="3mm">
16088 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16091 \begin_layout Plain Layout
16093 \begin_inset space \thinspace{}
16096 mm space top of row
16103 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16106 \begin_layout Plain Layout
16118 \begin_inset space \hfill{}
16122 \begin_inset space \hspace*{}
16127 \begin_inset VSpace medskip
16131 \begin_inset Newline newline
16134 So inserting space to the top of row for normal tables is only useful when
16135 you don't have vertical lines.
16138 \begin_layout Description
16140 \begin_inset space ~
16144 \begin_inset space ~
16147 row will add space below the characters of the table row.
16148 If the table is a formal table LyX will insert as default 0.5
16149 \begin_inset space \thinspace{}
16152 em space, for normal tables the default size is 2
16153 \begin_inset space \thinspace{}
16159 \begin_layout Description
16161 \begin_inset space ~
16164 rows adds space between the current and the following row.
16165 If the table is a formal table LyX will insert as default 0.5
16166 \begin_inset space \thinspace{}
16170 For normal tables the inserted space will unfortunately destroy the vertical
16171 table lines as in the following table:
16172 \begin_inset VSpace medskip
16176 \begin_inset Newline newline
16180 \begin_inset space \hspace*{}
16185 \begin_inset space \hfill{}
16189 \begin_inset Tabular
16190 <lyxtabular version="3" rows="3" columns="1">
16192 <column alignment="center" valignment="top" width="0">
16194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16197 \begin_layout Plain Layout
16204 <row interlinespace="3mm">
16205 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16208 \begin_layout Plain Layout
16209 \begin_inset Formula $\downarrow$
16213 \begin_inset space \thinspace{}
16216 mm space between row
16217 \begin_inset Formula $\downarrow$
16227 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16230 \begin_layout Plain Layout
16231 \begin_inset Formula $\uparrow$
16235 \begin_inset space \thinspace{}
16238 mm space between row
16239 \begin_inset Formula $\uparrow$
16253 \begin_inset space \hfill{}
16257 \begin_inset space \hspace*{}
16262 \begin_inset VSpace medskip
16266 \begin_inset Newline newline
16269 So inserting space between rows for normal tables is only useful when you
16270 don't have vertical lines.
16273 \begin_layout Standard
16274 \begin_inset VSpace bigskip
16277 When you want to add extra height to all cells of all tables, you can do
16278 this with the following preamble lines:
16281 \begin_layout Standard
16286 @ifundefined{extrarowheight}
16287 \begin_inset Newline newline
16294 \begin_layout Plain Layout
16305 usepackage{array}}{}
16306 \begin_inset Newline newline
16313 extrarowheight}{height}
16316 \begin_layout Standard
16317 But this has the disadvantage that the cell texts are no longer exactly
16318 vertically centered.
16323 will be loaded automatically by LyX when you use self defined table formats.
16324 To avoid that it is loaded twice the command
16330 is used in the above command.)
16333 \begin_layout Standard
16334 In case you are using font sizes larger than the normal size, the table
16335 borders are often too close to the letters.
16336 This can be corrected by inserting the command
16342 in TeX code at the beginning of a table row.
16344 \begin_inset space ~
16348 \begin_inset CommandInset ref
16350 reference "tab:Vertical-alignment-of"
16354 visualizes the effect.
16357 \begin_layout Standard
16359 \begin_inset Float table
16365 \begin_layout Plain Layout
16366 \begin_inset Caption
16368 \begin_layout Plain Layout
16369 \begin_inset CommandInset label
16371 name "tab:Vertical-alignment-of"
16375 Vertical alignment of text with large font sizes.
16383 \begin_layout Plain Layout
16384 \begin_inset space \hfill{}
16388 \begin_inset Float table
16393 \begin_layout Plain Layout
16394 \begin_inset Caption
16396 \begin_layout Plain Layout
16405 \begin_layout Plain Layout
16408 \begin_inset Tabular
16409 <lyxtabular version="3" rows="6" columns="1">
16411 <column alignment="left" valignment="top" width="0">
16413 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16416 \begin_layout Plain Layout
16424 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16427 \begin_layout Plain Layout
16437 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16440 \begin_layout Plain Layout
16450 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16453 \begin_layout Plain Layout
16463 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16466 \begin_layout Plain Layout
16476 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16479 \begin_layout Plain Layout
16498 \begin_inset space \hfill{}
16502 \begin_inset Float table
16507 \begin_layout Plain Layout
16508 \begin_inset Caption
16510 \begin_layout Plain Layout
16511 Table using the command
16525 \begin_layout Plain Layout
16528 \begin_inset Tabular
16529 <lyxtabular version="3" rows="6" columns="1">
16531 <column alignment="left" valignment="top" width="0">
16533 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16536 \begin_layout Plain Layout
16544 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16547 \begin_layout Plain Layout
16553 \begin_layout Plain Layout
16569 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16572 \begin_layout Plain Layout
16578 \begin_layout Plain Layout
16594 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16597 \begin_layout Plain Layout
16603 \begin_layout Plain Layout
16619 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16622 \begin_layout Plain Layout
16628 \begin_layout Plain Layout
16644 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16647 \begin_layout Plain Layout
16653 \begin_layout Plain Layout
16680 \begin_inset space \hfill{}
16691 \begin_layout Subsection
16692 Special Cell Alignment
16696 \begin_layout Plain Layout
16697 Table Customization ! Special Cell Alignment
16705 \begin_layout Standard
16706 Sometimes it looks better when the cell entries of a column are aligned
16707 with a special character, e.
16708 \begin_inset space \thinspace{}
16712 \begin_inset space \space{}
16715 with the decimal separator as in Table
16716 \begin_inset space ~
16720 \begin_inset CommandInset ref
16722 reference "tab:Table-cells-of"
16729 \begin_layout Standard
16730 \begin_inset Float table
16736 \begin_layout Plain Layout
16737 \begin_inset Caption
16739 \begin_layout Plain Layout
16740 \begin_inset CommandInset label
16742 name "tab:Table-cells-of"
16746 Table cells of a column aligned with the decimal separator.
16754 \begin_layout Plain Layout
16756 \begin_inset Tabular
16757 <lyxtabular version="3" rows="4" columns="2">
16759 <column alignment="right" valignment="top" width="0">
16760 <column alignment="left" valignment="top" width="0" special="@{}l">
16762 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16765 \begin_layout Plain Layout
16771 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16774 \begin_layout Plain Layout
16782 <cell alignment="center" valignment="top" usebox="none">
16785 \begin_layout Plain Layout
16791 <cell alignment="center" valignment="top" usebox="none">
16794 \begin_layout Plain Layout
16802 <cell alignment="center" valignment="top" usebox="none">
16805 \begin_layout Plain Layout
16811 <cell alignment="center" valignment="top" usebox="none">
16814 \begin_layout Plain Layout
16822 <cell alignment="center" valignment="top" usebox="none">
16825 \begin_layout Plain Layout
16831 <cell alignment="center" valignment="top" usebox="none">
16834 \begin_layout Plain Layout
16853 \begin_layout Standard
16854 This table was created with a 4×2 table.
16855 The heading is a centered multicolumn.
16856 The first column is right-aligned and contains the digits before the decimal
16857 point and the decimal point.
16858 The second column is left aligned and contains the digits after the decimal
16860 To omit the space that is normally between two table columns, use the following
16861 LaTeX-argument for the second column:
16864 \begin_layout Standard
16870 \begin_layout Standard
16872 \begin_inset space ~
16876 \begin_inset CommandInset ref
16878 reference "tab:Several-table-cell"
16882 shows some example alignments.
16883 For the alignment with the relation sign, you must add the second smallest
16884 math-space at the beginning of the last column to get the correct space
16885 surrounding the relation sign.
16888 \begin_layout Standard
16889 \begin_inset Float table
16894 \begin_layout Plain Layout
16895 \begin_inset Caption
16897 \begin_layout Plain Layout
16898 \begin_inset CommandInset label
16900 name "tab:Several-table-cell"
16904 Several table cell alignments.
16912 \begin_layout Plain Layout
16914 \begin_inset Tabular
16915 <lyxtabular version="3" rows="4" columns="6">
16917 <column alignment="right" valignment="top" width="0">
16918 <column alignment="left" valignment="top" width="0" special="@{}l">
16919 <column alignment="right" valignment="top" width="0">
16920 <column alignment="left" valignment="top" width="0" special="@{}l">
16921 <column alignment="right" valignment="top" width="0">
16922 <column alignment="left" valignment="top" width="0" special="@{}l">
16924 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16927 \begin_layout Plain Layout
16933 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16936 \begin_layout Plain Layout
16942 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16945 \begin_layout Plain Layout
16951 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16954 \begin_layout Plain Layout
16960 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16963 \begin_layout Plain Layout
16969 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16972 \begin_layout Plain Layout
16980 <cell alignment="center" valignment="top" usebox="none">
16983 \begin_layout Plain Layout
16989 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16992 \begin_layout Plain Layout
16994 \begin_inset space \thinspace{}
17002 <cell alignment="center" valignment="top" usebox="none">
17005 \begin_layout Plain Layout
17006 \begin_inset Formula $10\cdot$
17014 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17017 \begin_layout Plain Layout
17018 \begin_inset Formula $10^{\mbox{-}17}$
17026 <cell alignment="center" valignment="top" usebox="none">
17029 \begin_layout Plain Layout
17030 \begin_inset Formula $\Gamma(t)\propto$
17038 <cell alignment="center" valignment="top" usebox="none">
17041 \begin_layout Plain Layout
17042 \begin_inset Formula $\:\Upsilon(t)$
17052 <cell alignment="center" valignment="top" usebox="none">
17055 \begin_layout Plain Layout
17061 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17064 \begin_layout Plain Layout
17066 \begin_inset space \thinspace{}
17074 <cell alignment="center" valignment="top" usebox="none">
17077 \begin_layout Plain Layout
17078 \begin_inset Formula $5.78\cdot$
17086 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17089 \begin_layout Plain Layout
17090 \begin_inset Formula $10^{7}$
17098 <cell alignment="center" valignment="top" usebox="none">
17101 \begin_layout Plain Layout
17102 \begin_inset Formula $A\ne$
17110 <cell alignment="center" valignment="top" usebox="none">
17113 \begin_layout Plain Layout
17114 \begin_inset Formula $\: B_{\mathrm{red}}$
17124 <cell alignment="center" valignment="top" usebox="none">
17127 \begin_layout Plain Layout
17133 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17136 \begin_layout Plain Layout
17138 \begin_inset space \thinspace{}
17146 <cell alignment="center" valignment="top" usebox="none">
17149 \begin_layout Plain Layout
17151 \begin_inset Formula $33.5\cdot$
17159 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17162 \begin_layout Plain Layout
17163 \begin_inset Formula $10^{4}$
17171 <cell alignment="center" valignment="top" usebox="none">
17174 \begin_layout Plain Layout
17175 \begin_inset Formula $\sin(\alpha)\ge$
17183 <cell alignment="center" valignment="top" usebox="none">
17186 \begin_layout Plain Layout
17187 \begin_inset Formula $\:\sin(\beta)$
17208 \begin_layout Standard
17209 \begin_inset VSpace bigskip
17212 There is also the LaTeX-package
17220 \begin_layout Plain Layout
17221 LaTeX-packages ! dcolumn
17226 that provides table cell alignments.
17227 But this unfortunately treats the cell entries as math and doesn't allow
17228 formulas in table cells: The first column of Table
17229 \begin_inset space ~
17233 \begin_inset CommandInset ref
17235 reference "tab:Several-table-cell"
17243 like the first column in Table
17244 \begin_inset space ~
17248 \begin_inset CommandInset ref
17250 reference "tab:Alignments-when"
17254 and only with some tricks like the expected.
17255 The alignment of the second and third column of Table
17256 \begin_inset space ~
17260 \begin_inset CommandInset ref
17262 reference "tab:Several-table-cell"
17266 is not possible with
17273 \begin_layout Standard
17274 \begin_inset Float table
17280 \begin_layout Plain Layout
17281 \begin_inset Caption
17283 \begin_layout Plain Layout
17284 \begin_inset CommandInset label
17286 name "tab:Alignments-when"
17290 Alignments when LaTeX-package dcolumn is used.
17291 For all column alignments tricks have to be used to get the output.
17299 \begin_layout Plain Layout
17301 \begin_inset Tabular
17302 <lyxtabular version="3" rows="4" columns="3">
17304 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
17305 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
17306 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
17308 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17311 \begin_layout Plain Layout
17317 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17320 \begin_layout Plain Layout
17326 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17329 \begin_layout Plain Layout
17337 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17340 \begin_layout Plain Layout
17342 \begin_inset space \thinspace{}
17350 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17353 \begin_layout Plain Layout
17355 \begin_inset space \thinspace{}
17359 \begin_inset Formula $\mbox{bottles}$
17367 <cell alignment="center" valignment="top" usebox="none">
17370 \begin_layout Plain Layout
17375 \begin_layout Plain Layout
17385 \begin_inset Formula $\mbox{bottles}$
17395 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17398 \begin_layout Plain Layout
17400 \begin_inset space \thinspace{}
17408 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17411 \begin_layout Plain Layout
17413 \begin_inset space \thinspace{}
17417 \begin_inset Formula $\mbox{Pixels}$
17425 <cell alignment="center" valignment="top" usebox="none">
17428 \begin_layout Plain Layout
17433 \begin_layout Plain Layout
17443 \begin_inset Formula $\mbox{Pixels}$
17453 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17456 \begin_layout Plain Layout
17458 \begin_inset space \thinspace{}
17466 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17469 \begin_layout Plain Layout
17471 \begin_inset space \thinspace{}
17475 \begin_inset Formula $\mbox{cm}$
17483 <cell alignment="center" valignment="top" usebox="none">
17486 \begin_layout Plain Layout
17491 \begin_layout Plain Layout
17501 \begin_inset Formula $\mbox{cm}$
17522 \begin_layout Subsection
17523 Customized Cell/Column Format
17524 \begin_inset CommandInset label
17526 name "sub:Customized-Format"
17534 \begin_layout Plain Layout
17535 Table Customization ! Cell/Column Format
17543 \begin_layout Standard
17544 Calculating the needed width for spanned columns like in section
17545 \begin_inset space ~
17549 \begin_inset CommandInset ref
17551 reference "sub:Multicolumn-Calculations"
17555 is very annoying if you have several tables with multicolumn cells.
17556 To make life easier, you can define a cell/column format in the preamble,
17557 so that it can be used in all tables of the document.
17558 The format is defined with the command
17561 \begin_layout Standard
17566 newcolumntype{name of format}[number of arguments]{commands}
17569 \begin_layout Standard
17570 The format name may only consist of one letter.
17595 are predefined and cannot be used.
17596 But all letters are allowed as capitals.
17599 \begin_layout Standard
17600 \begin_inset VSpace medskip
17606 \begin_layout Standard
17607 For vertically and horizontally centered multicolumn cells with a fixed
17608 width you can define the cell format
17611 \begin_layout Standard
17616 newcolumntype{M}[1]{>{
17623 \begin_layout Standard
17630 avoids the problem of hyphenating the first word, as described in section
17631 \begin_inset space ~
17635 \begin_inset CommandInset ref
17637 reference "sub:Multiple-Lines-in"
17642 Now you can simply enter
17645 \begin_layout Standard
17651 \begin_layout Standard
17652 as LaTeX-argument in the table dialog to create a multicolumn.
17655 \begin_layout Standard
17656 \begin_inset VSpace bigskip
17662 \begin_layout Standard
17663 For cells spanned by a multicolumn cell, you can define the format
17666 \begin_layout Standard
17671 newcolumntype{S}[2]{>{
17676 \begin_inset Newline newline
17683 \begin_layout Plain Layout
17698 \begin_layout Plain Layout
17709 arrayrulewidth)*(1-#2))/#2}}
17712 \begin_layout Standard
17713 This format uses equation
17714 \begin_inset CommandInset ref
17720 to calculate the needed width so that each spanned cell has the same width.
17723 \begin_layout Standard
17727 \begin_layout Standard
17730 S{width of multicolumn cell}{number of spanned columns}
17733 \begin_layout Standard
17734 as LaTeX-argument of the column.
17737 \begin_layout Standard
17738 \begin_inset VSpace bigskip
17744 \begin_layout Standard
17745 For colored columns, you can define
17748 \begin_layout Standard
17753 newcolumntype{K}[1]{>{
17760 \begin_layout Standard
17762 \begin_inset Quotes eld
17766 \begin_inset Quotes erd
17769 at the end creates a column with a flexible width whose text is horizontally
17774 \begin_layout Standard
17780 \begin_layout Standard
17784 \begin_layout Standard
17785 \begin_inset VSpace bigskip
17791 \begin_layout Standard
17793 \begin_inset space ~
17797 \begin_inset CommandInset ref
17799 reference "tab:Table-using-user-defined"
17803 use the LaTeX-arguments
17806 \begin_layout Standard
17812 \begin_layout Standard
17813 for the first column and the multicolumn,
17816 \begin_layout Standard
17822 \begin_layout Standard
17823 for the the last column, and
17826 \begin_layout Standard
17832 \begin_layout Standard
17833 for the cells in the second column.
17836 \begin_layout Standard
17837 \begin_inset Float table
17843 \begin_layout Plain Layout
17844 \begin_inset Caption
17846 \begin_layout Plain Layout
17847 \begin_inset CommandInset label
17849 name "tab:Table-using-user-defined"
17853 Table using user-defined table formats
17861 \begin_layout Plain Layout
17863 \begin_inset Tabular
17864 <lyxtabular version="3" rows="3" columns="4">
17866 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17867 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17868 <column alignment="center" valignment="middle" width="0">
17869 <column alignment="center" valignment="middle" width="0" special="K{red}">
17871 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17874 \begin_layout Plain Layout
17875 verylongtablecellword
17880 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17883 \begin_layout Plain Layout
17884 multiple lines multicolumn
17889 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17892 \begin_layout Plain Layout
17898 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17901 \begin_layout Plain Layout
17909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17912 \begin_layout Plain Layout
17918 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17921 \begin_layout Plain Layout
17927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17930 \begin_layout Plain Layout
17936 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17939 \begin_layout Plain Layout
17947 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17950 \begin_layout Plain Layout
17956 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17959 \begin_layout Plain Layout
17965 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17968 \begin_layout Plain Layout
17974 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17977 \begin_layout Plain Layout
17996 \begin_layout Subsection
17998 \begin_inset CommandInset label
18000 name "sub:Line-Thickness"
18008 \begin_layout Plain Layout
18009 Table Customization ! Line Thickness
18017 \begin_layout Standard
18018 The line thickness for all lines in a table can be adjusted with the length
18026 To set for example a line thickness of 1.5
18027 \begin_inset space \thinspace{}
18031 \begin_inset space ~
18035 \begin_inset CommandInset ref
18037 reference "tab:Table-with-1.5"
18041 , insert the command
18044 \begin_layout Standard
18051 arrayrulewidth}{1.5pt}
18054 \begin_layout Standard
18055 in TeX-Code before the table or table float.
18056 The changed thickness is valid for all following tables.
18057 To use the default value again, set
18064 \begin_inset space \thinspace{}
18067 pt in TeX-Code behind the table or table float.
18070 \begin_layout Standard
18074 \begin_layout Plain Layout
18080 arrayrulewidth}{1.5pt}
18086 \begin_inset Float table
18091 \begin_layout Plain Layout
18092 \begin_inset Caption
18094 \begin_layout Plain Layout
18095 \begin_inset CommandInset label
18097 name "tab:Table-with-1.5"
18102 \begin_inset space \thinspace{}
18113 \begin_layout Plain Layout
18115 \begin_inset Tabular
18116 <lyxtabular version="3" rows="3" columns="3">
18118 <column alignment="center" valignment="top" width="0">
18119 <column alignment="center" valignment="top" width="0">
18120 <column alignment="center" valignment="top" width="0">
18122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18125 \begin_layout Plain Layout
18131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18134 \begin_layout Plain Layout
18140 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18143 \begin_layout Plain Layout
18151 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18154 \begin_layout Plain Layout
18160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18163 \begin_layout Plain Layout
18169 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18172 \begin_layout Plain Layout
18180 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18183 \begin_layout Plain Layout
18189 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18192 \begin_layout Plain Layout
18198 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18201 \begin_layout Plain Layout
18221 \begin_layout Plain Layout
18227 arrayrulewidth}{0.4pt}
18235 \begin_layout Standard
18236 \begin_inset VSpace bigskip
18239 To set the line thickness to 1.5
18240 \begin_inset space \thinspace{}
18243 pt only for horizontal lines, like in Table
18244 \begin_inset space ~
18248 \begin_inset CommandInset ref
18250 reference "tab:Table-with-horizontal"
18254 , insert these commands in TeX-Code before the table or table float:
18257 \begin_layout Standard
18267 \begin_inset Newline newline
18275 \begin_inset Newline newline
18284 arrayrulewidth 1.5pt}
18285 \begin_inset Newline newline
18296 arrayrulewidth 0.4pt}}
18299 \begin_layout Standard
18300 To return to the default line thickness, insert this command in TeX-Code
18301 behind the table or table float:
18304 \begin_layout Standard
18316 \begin_layout Standard
18320 \begin_layout Plain Layout
18331 \begin_layout Plain Layout
18340 \begin_layout Plain Layout
18348 arrayrulewidth 1.5pt}
18351 \begin_layout Plain Layout
18361 arrayrulewidth 0.4pt}}
18367 \begin_inset Float table
18372 \begin_layout Plain Layout
18373 \begin_inset Caption
18375 \begin_layout Plain Layout
18376 \begin_inset CommandInset label
18378 name "tab:Table-with-horizontal"
18383 \begin_inset space \thinspace{}
18386 pt thick horizontal lines
18394 \begin_layout Plain Layout
18396 \begin_inset Tabular
18397 <lyxtabular version="3" rows="3" columns="3">
18399 <column alignment="center" valignment="top" width="0">
18400 <column alignment="center" valignment="top" width="0">
18401 <column alignment="center" valignment="top" width="0">
18403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18406 \begin_layout Plain Layout
18412 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18415 \begin_layout Plain Layout
18421 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18424 \begin_layout Plain Layout
18432 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18435 \begin_layout Plain Layout
18441 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18444 \begin_layout Plain Layout
18450 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18453 \begin_layout Plain Layout
18461 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18464 \begin_layout Plain Layout
18470 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18473 \begin_layout Plain Layout
18479 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18482 \begin_layout Plain Layout
18502 \begin_layout Plain Layout
18518 \begin_layout Standard
18519 \begin_inset VSpace bigskip
18522 To set the line thickness to 1.5
18523 \begin_inset space \thinspace{}
18526 pt only for vertical lines, create the following column format in the document
18527 preamble, according to the description in section
18528 \begin_inset space ~
18532 \begin_inset CommandInset ref
18534 reference "sub:Customized-Format"
18541 \begin_layout Standard
18546 newcolumntype{V}{!{
18548 vrule width 1.5pt}}
18551 \begin_layout Standard
18553 \begin_inset space ~
18557 \begin_inset CommandInset ref
18559 reference "tab:Table-with-vertical"
18566 \begin_layout Standard
18572 \begin_layout Standard
18573 was used for the last column and
18576 \begin_layout Standard
18582 \begin_layout Standard
18583 for the other columns.
18586 \begin_layout Standard
18587 \begin_inset Float table
18592 \begin_layout Plain Layout
18593 \begin_inset Caption
18595 \begin_layout Plain Layout
18596 \begin_inset CommandInset label
18598 name "tab:Table-with-vertical"
18603 \begin_inset space \thinspace{}
18606 pt thick vertical lines
18614 \begin_layout Plain Layout
18616 \begin_inset Tabular
18617 <lyxtabular version="3" rows="3" columns="3">
18619 <column alignment="center" valignment="top" width="0" special="Vc">
18620 <column alignment="center" valignment="top" width="0" special="Vc">
18621 <column alignment="center" valignment="top" width="0" special="VcV">
18623 <cell alignment="center" valignment="top" topline="true" usebox="none">
18626 \begin_layout Plain Layout
18632 <cell alignment="center" valignment="top" topline="true" usebox="none">
18635 \begin_layout Plain Layout
18641 <cell alignment="center" valignment="top" topline="true" usebox="none">
18644 \begin_layout Plain Layout
18652 <cell alignment="center" valignment="top" topline="true" usebox="none">
18655 \begin_layout Plain Layout
18661 <cell alignment="center" valignment="top" topline="true" usebox="none">
18664 \begin_layout Plain Layout
18670 <cell alignment="center" valignment="top" topline="true" usebox="none">
18673 \begin_layout Plain Layout
18681 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18684 \begin_layout Plain Layout
18690 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18693 \begin_layout Plain Layout
18699 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18702 \begin_layout Plain Layout
18721 \begin_layout Subsection
18726 \begin_layout Plain Layout
18727 Table Customization ! Dashed Lines
18735 \begin_layout Standard
18739 \begin_layout Plain Layout
18749 \begin_inset Note Note
18752 \begin_layout Plain Layout
18753 The following section will only be displayed when the LaTeX-package
18765 \begin_layout Standard
18766 \begin_inset Float table
18772 \begin_layout Plain Layout
18773 \begin_inset Caption
18775 \begin_layout Plain Layout
18776 \begin_inset CommandInset label
18778 name "tab:Table-with-dashed"
18782 Table with dashed lines
18790 \begin_layout Plain Layout
18792 \begin_inset Tabular
18793 <lyxtabular version="3" rows="5" columns="5">
18795 <column alignment="center" valignment="top" width="0">
18796 <column alignment="center" valignment="top" width="0">
18797 <column alignment="center" valignment="top" width="0" special=":c">
18798 <column alignment="center" valignment="top" width="0">
18799 <column alignment="center" valignment="top" width="0">
18801 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18804 \begin_layout Plain Layout
18810 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18813 \begin_layout Plain Layout
18819 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18822 \begin_layout Plain Layout
18828 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18831 \begin_layout Plain Layout
18837 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18840 \begin_layout Plain Layout
18848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18851 \begin_layout Plain Layout
18857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18860 \begin_layout Plain Layout
18866 <cell alignment="center" valignment="top" topline="true" usebox="none">
18869 \begin_layout Plain Layout
18875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18878 \begin_layout Plain Layout
18884 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18887 \begin_layout Plain Layout
18895 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18898 \begin_layout Plain Layout
18902 \begin_layout Plain Layout
18916 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18919 \begin_layout Plain Layout
18925 <cell alignment="center" valignment="top" usebox="none">
18928 \begin_layout Plain Layout
18934 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18937 \begin_layout Plain Layout
18943 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18946 \begin_layout Plain Layout
18954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18957 \begin_layout Plain Layout
18961 \begin_layout Plain Layout
18975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18978 \begin_layout Plain Layout
18984 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
18987 \begin_layout Plain Layout
18993 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
18996 \begin_layout Plain Layout
19002 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19005 \begin_layout Plain Layout
19013 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19016 \begin_layout Plain Layout
19022 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19025 \begin_layout Plain Layout
19031 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19034 \begin_layout Plain Layout
19040 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19043 \begin_layout Plain Layout
19049 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19052 \begin_layout Plain Layout
19071 \begin_layout Standard
19072 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
19073 As prerequisite the LaTeX-package
19081 \begin_layout Plain Layout
19082 LaTeX-packages ! arydshln
19087 must be loaded in the document preamble with the command
19090 \begin_layout Standard
19095 usepackage{arydshln}
19098 \begin_layout Standard
19099 To make a vertical line dashed, enter the colon
19100 \begin_inset Quotes eld
19104 \begin_inset Quotes erd
19107 together with the character for the horizontal alignment as LaTeX-argument
19108 in the table cell dialog.
19111 \begin_layout Standard
19112 For a horizontal dashed line add the command
19115 \begin_layout Standard
19123 \begin_layout Standard
19124 in TeX-Code as first element of the first cell in the table row.
19127 \begin_layout Standard
19128 For dashed multicolumn lines use the command
19131 \begin_layout Standard
19136 cdashline{line number
19141 \begin_layout Standard
19142 in TeX-Code as first element of the first cell in the table row.
19143 If you have for example a multicolumn spanning over columns 2 to 4 and
19144 you want to have a dashed line above, add the command
19147 \begin_layout Standard
19155 \begin_layout Standard
19156 as first element of the first cell in the row of the multicolumn.
19159 \begin_layout Standard
19160 \begin_inset VSpace bigskip
19166 \begin_layout Standard
19168 \begin_inset space ~
19172 \begin_inset CommandInset ref
19174 reference "tab:Table-with-dashed"
19179 \begin_inset Quotes eld
19187 \begin_inset Quotes erd
19190 as LaTeX-argument of the third column.
19191 The TeX-Code command
19197 was inserted to the first cell of the third row and the the TeX-Code command
19198 \begin_inset Newline newline
19207 was inserted to the first cell of the fourth row.
19210 \begin_layout Standard
19211 \begin_inset Note Greyedout
19214 \begin_layout Plain Layout
19219 The used LaTeX-package
19223 is apparently not compatible with the LaTeX-package
19231 \begin_layout Plain Layout
19232 LaTeX-packages ! colortbl
19237 that is used for colored tables in section
19238 \begin_inset space ~
19242 \begin_inset CommandInset ref
19244 reference "sec:Colored-Tables"
19249 That means colored tables cannot have dashed lines.
19257 \begin_layout Standard
19261 \begin_layout Plain Layout
19271 \begin_inset Note Note
19274 \begin_layout Plain Layout
19275 The following will be displayed when the LaTeX-package
19287 \begin_layout Standard
19288 You need to install the package
19292 to see the content of this section in the output.
19295 \begin_layout Standard
19299 \begin_layout Plain Layout
19311 \begin_layout Chapter
19316 \begin_layout Plain Layout
19325 \begin_layout Section
19327 \begin_inset CommandInset label
19329 name "sec:FloatIntroduction"
19337 \begin_layout Plain Layout
19338 Floats ! Introduction
19346 \begin_layout Standard
19347 A float is a block of text associated with some sort of label, which doesn't
19348 have a fixed location.
19350 \begin_inset Quotes eld
19354 \begin_inset Quotes erd
19357 forward or backward a page or two, to wherever it fits best.
19365 \begin_inset space ~
19370 are also floats, because they can float to the next page when there are
19371 too many notes at the page.
19374 \begin_layout Standard
19375 Floats allow a high quality layout.
19376 Images and tables can evenly be spread to the pages to avoid white space
19377 and pages without text.
19378 As the floating often destroys the context between the text and the image/table
19379 , every float can be referenced in the text.
19380 Floats are therefore numbered.
19381 Referencing is described in section
19382 \begin_inset space ~
19386 \begin_inset CommandInset ref
19388 reference "sec:Referencing-Floats"
19395 \begin_layout Standard
19396 To insert a float, use the menu
19398 Insert\SpecialChar \menuseparator
19406 inset, a box with a label.
19407 The label will automatically be translated to the document language in
19409 Behind the label you can insert the caption text.
19410 The image or table is inserted above or below the caption in a separate
19411 paragraph within the float.
19412 More about the caption placement is described in section
19413 \begin_inset space ~
19417 \begin_inset CommandInset ref
19419 reference "sec:Caption-Placement"
19424 To keep your LyX-document readable, you can open and close the float box
19425 by left-clicking on the box label.
19426 A closed float box looks like this:
19427 \begin_inset Graphics
19428 filename clipart/floatQt4.png
19430 scaleBeforeRotation
19434 – a gray button with a red label.
19437 \begin_layout Standard
19438 It is recommended to insert floats as a separate paragraph to avoid possible
19439 LaTeX-errors that can occur when the surrounding text is specially formatted.
19442 \begin_layout Standard
19443 Existing figures or tables can be put into a float by marking them and then
19444 pressing the corresponding toolbar button for a new float.
19447 \begin_layout Section
19451 \begin_layout Standard
19452 Besides figure and table floats that are described in section
19453 \begin_inset space ~
19457 \begin_inset CommandInset ref
19459 reference "sec:Figure-Floats"
19464 \begin_inset CommandInset ref
19466 reference "sec:Table-Floats"
19470 , respectively, LyX offers the float types
19481 \begin_layout Subsection
19486 \begin_layout Plain Layout
19487 Floats ! Algorithms
19495 \begin_layout Standard
19496 \begin_inset Float algorithm
19502 \begin_layout Plain Layout
19503 \begin_inset Caption
19505 \begin_layout Plain Layout
19506 \begin_inset CommandInset label
19508 name "alg:Example-Algorithm-float"
19512 Example Algorithm float
19520 \begin_layout LyX-Code
19522 \begin_inset Newline newline
19525 Sum:= Sum + A(I); /*comment*/
19526 \begin_inset Newline newline
19530 \begin_inset VSpace -4mm
19541 \begin_layout Standard
19542 This float type is inserted with the menu
19544 Insert\SpecialChar \menuseparator
19545 Floats\SpecialChar \menuseparator
19549 It is used for program codes and descriptions of algorithms and can be
19550 seen as an alternative to program code listings that are explained in chapter
19551 \begin_inset space ~
19555 \begin_inset CommandInset ref
19557 reference "cha:Program-Code-Listings"
19562 A possible environment for algorithms is the
19566 , described in LyX's
19572 \begin_inset space ~
19576 \begin_inset CommandInset ref
19578 reference "alg:Example-Algorithm-float"
19582 is an example of an algorithm float where -4
19583 \begin_inset space \thinspace{}
19586 mm vertical space was added at the end of the float to have the bottom rule
19587 exactly below the last text line.
19590 \begin_layout Standard
19591 The float label is not automatically translated into the document language.
19592 If your document is not in English, you have to do this manually by adding
19593 the following line to the document preamble
19598 \begin_layout Standard
19603 floatname{algorithm}{your
19604 \begin_inset space ~
19610 \begin_layout Standard
19614 \begin_inset space ~
19620 \begin_inset Quotes eld
19628 \begin_inset Quotes erd
19634 \begin_layout Standard
19635 To insert the list of algorithms you can use the menu
19637 Insert\SpecialChar \menuseparator
19639 \begin_inset space \thinspace{}
19643 \begin_inset space \thinspace{}
19646 TOC\SpecialChar \menuseparator
19649 when your document has the same language as LyX's menu names.
19650 In other cases use this command in TeX-Code instead:
19653 \begin_layout Standard
19658 listof{algorithm}{your
19659 \begin_inset space ~
19665 \begin_layout Standard
19669 \begin_inset space ~
19675 \begin_inset Quotes eld
19683 \begin_inset Quotes erd
19689 \begin_layout Standard
19690 Algorithm floats are not by default numbered in the scheme
19691 \begin_inset Quotes eld
19695 \begin_inset Quotes erd
19698 like it is the case for table and figure floats in many document-classes.
19699 To number algorithm floats in the same scheme, add this command to your
19703 \begin_layout Standard
19708 numberwithin{algorithm}{chapter}
19711 \begin_layout Standard
19712 To be able to use the command
19721 \begin_inset space ~
19726 in the document settings the option
19729 \begin_inset space ~
19733 \begin_inset space ~
19737 \begin_inset space ~
19745 \begin_layout Subsection
19750 \begin_layout Plain Layout
19751 Floats ! Wrap Floats
19759 \begin_layout Standard
19760 \begin_inset Wrap figure
19767 \begin_layout Plain Layout
19768 \begin_inset Graphics
19769 filename clipart/mobius.eps
19771 scaleBeforeRotation
19772 rotateOrigin center
19779 \begin_layout Plain Layout
19780 \begin_inset Caption
19782 \begin_layout Plain Layout
19783 \begin_inset CommandInset label
19785 name "fig:This-is-a"
19789 This is a figure wrap float.
19799 This float type is used if you want to wrap text around a figure or table
19800 so that it only occupies some fraction of the column width.
19801 It can be inserted using the menu
19803 Insert\SpecialChar \menuseparator
19804 Floats\SpecialChar \menuseparator
19806 \begin_inset space ~
19810 \begin_inset space ~
19818 \begin_inset space ~
19822 \begin_inset space ~
19827 if the LaTeX-package
19835 \begin_layout Plain Layout
19836 LaTeX-packages ! wrapfig
19840 \begin_layout Plain Layout
19858 \begin_layout Plain Layout
19859 Installing a LaTeX-package is explained it in the
19862 \begin_inset space ~
19872 The settings of the float can be modified by right-clicking on the float
19874 The mandatory settings are the float
19887 that specifies how much the float is set into the paragraph
19888 \begin_inset space \thinspace{}
19892 \begin_inset space \thinspace{}
19895 page margin, and the
19898 \begin_inset space ~
19903 that specifies how many text lines the float will approximately need.
19904 The line span is often hard to be approximated, so better only use it when
19905 you encounter float placement problems.
19906 You can furthermore decide if LaTeX is allowed to let the float float within
19907 the paragraph or to surrounding paragraphs.
19909 \begin_inset space ~
19913 \begin_inset CommandInset ref
19915 reference "fig:This-is-a"
19919 is an example text wrap float with a width of 40
19920 \begin_inset space \thinspace{}
19924 \begin_inset space \thinspace{}
19927 cm overhang, set to the left.
19931 \begin_layout Plain Layout
19932 Available units are explained in appendix
19933 \begin_inset space ~
19937 \begin_inset CommandInset ref
19939 reference "cha:Units-available-in"
19951 \begin_layout Standard
19952 \begin_inset Note Greyedout
19955 \begin_layout Plain Layout
19961 \begin_inset space ~
19964 wrap float floats are fragile! E.
19965 \begin_inset space \thinspace{}
19969 \begin_inset space \space{}
19972 having a figure too close to the bottom of the page can mess things up in
19973 the way that the float doesn't appear in the output or that it is placed
19974 over some other text.
19982 \begin_layout Standard
19986 \begin_layout Itemize
19987 Wrap floats should not be placed in paragraphs that run over a page break.
19988 That means that wrap floats should better be inserted to the exact place
19989 when the document is nearly finished and you are able to estimate where
19990 page breaks will appear.
19993 \begin_layout Itemize
19994 Wrap floats should either be placed in an own paragraph before the paragraph
19995 where they should wrap into or within a paragraph.
19998 \begin_layout Itemize
19999 Wrap floats in consecutive paragraphs may cause troubles, so assure that
20000 there is a text paragraph between them as separator.
20003 \begin_layout Itemize
20004 Wrap floats are not allowed in section headings or tables.
20007 \begin_layout Section
20012 \begin_layout Plain Layout
20021 \begin_layout Standard
20022 Floats are usually numbered either independent from the sections the floats
20023 are in, or in the scheme
20024 \begin_inset Quotes eld
20028 \begin_inset Quotes erd
20032 \begin_inset Quotes eld
20036 \begin_inset Quotes erd
20040 This depends on the used document class.
20043 \begin_layout Standard
20044 To change the section independent numbering, you can use this command in
20045 the document preamble:
20048 \begin_layout Standard
20060 \begin_layout Standard
20067 is the command that prints the table number, for figure floats, the command
20081 prints in the command above the table number as small roman number.
20084 \begin_layout Standard
20085 To change the numbering scheme for example to
20086 \begin_inset Quotes eld
20090 \begin_inset Quotes erd
20093 , use this command in the preamble:
20096 \begin_layout Standard
20101 numberwithin{table}{subsection}
20104 \begin_layout Standard
20105 To be able to use the command
20114 \begin_inset space ~
20119 in the document settings the option
20122 \begin_inset space ~
20126 \begin_inset space ~
20130 \begin_inset space ~
20138 \begin_layout Standard
20139 Please also have a look at section
20140 \begin_inset space ~
20144 \begin_inset CommandInset ref
20146 reference "sub:Footnote-Numbering"
20150 for the details and important notes about the numbering commands.
20153 \begin_layout Section
20155 \begin_inset CommandInset label
20157 name "sec:Referencing-Floats"
20165 \begin_layout Plain Layout
20166 Floats ! References
20175 \begin_layout Plain Layout
20176 References ! to Floats
20184 \begin_layout Standard
20185 To reference a float, insert a label into its caption using the menu
20187 Insert\SpecialChar \menuseparator
20190 or the toolbar button
20191 \begin_inset Graphics
20192 filename ../images/label-insert.png
20194 scaleBeforeRotation
20199 A grey label box like this one:
20200 \begin_inset Graphics
20201 filename clipart/labelQt4.png
20203 scaleBeforeRotation
20207 will be inserted and the label window pops up asking for the label text.
20208 LyX offers as text the first words of the caption with a prefix.
20209 The prefix depends on the float type, e.
20210 \begin_inset space \thinspace{}
20214 \begin_inset space \space{}
20217 for figure floats the prefix will be "
20224 \begin_layout Standard
20225 The label is used as anchor and name for the reference.
20226 You can refer to the label using the menu
20228 Insert\SpecialChar \menuseparator
20231 or the toolbar button
20232 \begin_inset Graphics
20233 filename ../images/dialog-show-new-inset_ref.png
20235 scaleBeforeRotation
20240 A grey cross-reference box like this one:
20241 \begin_inset Graphics
20242 filename clipart/referenceQt4.png
20244 scaleBeforeRotation
20248 will be inserted and the cross-reference window appear showing all labels
20250 If you have multiple LyX-documents opened, choose the one you are working
20251 on from the drop-list at the top of the dialog.
20252 You can now sort the labels alphabetically and then choose one.
20253 At the position of the cross-reference box the float number will appear
20257 \begin_layout Standard
20258 It is recommended to use a protected space between the cross-reference name
20259 and its number to avoid line breaks between them.
20260 If a cross-reference refers to a non-existing label, you will see two question
20261 marks in the output instead of the reference.
20264 \begin_layout Standard
20265 You can change labels at any time by clicking on the label box.
20266 References to the changed label will automatically change its link to the
20267 new label text, so that you don't need to take care about this.
20270 \begin_layout Standard
20274 \begin_inset space ~
20278 \begin_inset space ~
20283 in the cross-reference window sets the cursor before the referred label.
20284 The button text changes then to Go
20285 \begin_inset space ~
20288 Back and you can use it to set the cursor back to the cross-reference.
20289 Right-clicking on a cross-reference box also sets the cursor before the
20290 referenced label but without a possibility to go back.
20293 \begin_layout Subsection
20294 Cross-Reference Formats
20295 \begin_inset CommandInset label
20297 name "sub:Cross-Reference-Formats"
20305 \begin_layout Plain Layout
20306 References ! Formats
20314 \begin_layout Standard
20315 There are six varieties of cross-references:
20318 \begin_layout Description
20319 <reference>: prints the float number, this is the default:
20320 \begin_inset CommandInset ref
20322 reference "fig:Two-distorted-images"
20329 \begin_layout Description
20330 (<reference>): prints the float number within two parentheses, this is the
20331 style normally used to reference formulas, especially when the reference
20333 \begin_inset Quotes eld
20337 \begin_inset Quotes erd
20341 \begin_inset CommandInset ref
20350 \begin_layout Description
20351 <page>: prints the page number: Page
20352 \begin_inset space ~
20356 \begin_inset CommandInset ref
20357 LatexCommand pageref
20358 reference "fig:Two-distorted-images"
20365 \begin_layout Description
20367 \begin_inset space ~
20371 \begin_inset space ~
20374 <page>: prints the text "on page" and the page number:
20375 \begin_inset CommandInset ref
20376 LatexCommand vpageref
20377 reference "fig:Two-distorted-images"
20384 \begin_layout Description
20386 \begin_inset space ~
20390 \begin_inset space ~
20394 \begin_inset space ~
20397 <page>: prints the float number, the text "on page", and the page number:
20399 \begin_inset CommandInset ref
20401 reference "fig:Two-distorted-images"
20408 \begin_layout Description
20410 \begin_inset space ~
20413 reference: prints a self defined cross-reference format.
20415 \begin_inset Note Greyedout
20418 \begin_layout Plain Layout
20423 This feature is only available when you have the LaTeX-package
20435 \begin_layout Standard
20436 Note that the style <page> won't print the page number if the label is on
20437 the previous, the same, or the next page.
20439 \begin_inset space \thinspace{}
20443 \begin_inset space \space{}
20447 \begin_inset Quotes eld
20455 \begin_inset Quotes erd
20461 \begin_layout Standard
20462 The number and current page of the referred document part in the output,
20463 is automatically calculated by LaTeX.
20464 The varieties are adjusted in the field
20468 of the cross-reference window, that appear when you click on the cross-referenc
20472 \begin_layout Subsection
20473 Automatic Reference Naming
20477 \begin_layout Plain Layout
20478 References ! Automatic Reference Naming
20486 \begin_layout Standard
20495 \begin_layout Plain Layout
20496 LaTeX-packages ! hyperref
20501 , that is enabled in the
20509 dialog, provides a very useful feature that cross-references automatically
20510 include the name of the referenced floats (or text parts like
20515 So you will save to write e.
20516 \begin_inset space \thinspace{}
20520 \begin_inset space \space{}
20524 \begin_inset Quotes eld
20528 \begin_inset Quotes erd
20531 before every reference to a figure.
20532 To use this feature, enable
20536 and insert this line to the LaTeX preamble:
20539 \begin_layout Standard
20555 \begin_layout Standard
20556 When you prefer other reference names than the default ones, for example
20557 you want instead of
20558 \begin_inset Quotes eld
20562 \begin_inset Quotes erd
20566 \begin_inset Quotes eld
20570 \begin_inset space \thinspace{}
20574 \begin_inset Quotes eld
20577 , you can redefine the name by inserting this to the preamble:
20580 \begin_layout Standard
20591 sectionautorefname}
20592 \begin_inset Newline newline
20599 \begin_layout Plain Layout
20613 \begin_layout Standard
20614 When you are using another document language than English, replace
20615 \begin_inset Newline newline
20630 , where *** is the name of the used language.
20633 \begin_layout Standard
20634 To get automatic names, but not for certain reference types, for example
20635 not for equations, use this preamble code:
20638 \begin_layout Standard
20646 \begin_inset Newline newline
20656 \begin_inset Newline newline
20667 equationautorefname}
20668 \begin_inset Newline newline
20675 \begin_layout Plain Layout
20691 \begin_layout Standard
20692 More about this topic can be found in
20697 \begin_inset CommandInset citation
20706 \begin_layout Standard
20707 \begin_inset Note Greyedout
20710 \begin_layout Plain Layout
20715 Automatic reference naming cannot be used when you use cross-references
20719 \begin_inset space ~
20724 style, as described in section
20725 \begin_inset space ~
20729 \begin_inset CommandInset ref
20731 reference "sub:Cross-Reference-Formats"
20743 \begin_layout Standard
20748 manual is an example where automatic reference naming is used.
20751 \begin_layout Subsection
20753 \begin_inset CommandInset label
20755 name "sub:Reference-Position"
20763 \begin_layout Plain Layout
20764 References ! Reference Position
20772 \begin_layout Standard
20781 \begin_layout Plain Layout
20782 LaTeX-packages ! hyperref
20795 dialog to link cross-references in the output, you will see that clicking
20796 on an image float reference jumps to the image label.
20797 The caption will be the first text part on the screen, so that you cannot
20798 see the image without scrolling.
20799 This is because the reference link anchor is placed at the position of
20801 With the use of the package
20809 \begin_layout Plain Layout
20810 LaTeX-packages ! hypcap
20815 , which is part of the LaTeX-package
20823 \begin_layout Plain Layout
20824 LaTeX-packages ! oberdiek
20829 , the link anchor is placed at the beginning of a float.
20830 To use this feature for figure floats, load
20834 in the document preamble with the line
20837 \begin_layout Standard
20842 usepackage[figure]{hypcap}
20845 \begin_layout Standard
20850 for all float types but this is not recommended for stability reasons.
20851 For more information, have a look at
20856 \begin_inset CommandInset citation
20865 \begin_layout Standard
20866 \begin_inset Note Greyedout
20869 \begin_layout Plain Layout
20878 has no effect for references to subfigures.
20886 \begin_layout Section
20888 \begin_inset CommandInset label
20890 name "sec:Float-Placement"
20898 \begin_layout Plain Layout
20907 \begin_layout Standard
20908 Right-clicking on a float-box opens a dialog where you can alter the placement
20909 options that LaTeX uses for positioning the float.
20910 \begin_inset Newline newline
20916 \begin_inset space ~
20921 is only useful for two-column documents: If you select it, the float will
20922 span across both columns on the page instead of being confined to just
20924 \begin_inset Newline newline
20930 \begin_inset space ~
20935 is used to rotate floats, see section
20936 \begin_inset CommandInset ref
20938 reference "sec:Rotated-Floats"
20945 \begin_layout Standard
20946 You can use one ore more of the following options in the float dialog to
20947 set the placement for a particular float when you uncheck the option
20950 \begin_inset space ~
20954 \begin_inset space ~
20962 \begin_layout Description
20964 \begin_inset space ~
20968 \begin_inset space ~
20971 possible try to place the float on the position where it is inserted
20974 \begin_layout Description
20976 \begin_inset space ~
20980 \begin_inset space ~
20983 page try to place the float on the top of the current page
20986 \begin_layout Description
20988 \begin_inset space ~
20992 \begin_inset space ~
20995 page try to place the float on the bottom of the current page
20998 \begin_layout Description
21000 \begin_inset space ~
21004 \begin_inset space ~
21007 floats try to place the float on an own page
21010 \begin_layout Standard
21011 The order of the above option is
21016 That means, if you use the default placement, LaTeX will first try out
21020 \begin_inset space ~
21024 \begin_inset space ~
21032 \begin_inset space ~
21036 \begin_inset space ~
21041 , and then the others.
21042 If you don't use the default, LaTeX will try only the checked options but
21044 If none of the 4 placements are possible the procedure is internally repeated
21045 but it is tried to put the float on the following page.
21048 \begin_layout Standard
21049 By default, each option has its own rules:
21052 \begin_layout Labeling
21053 \labelwidthstring 00.00.0000
21057 \begin_inset space ~
21061 \begin_inset space ~
21066 only floats occupying less than 70
21067 \begin_inset space \thinspace{}
21070 % of the page can be placed at the top of a page (
21079 \begin_layout Labeling
21080 \labelwidthstring 00.00.0000
21084 \begin_inset space ~
21088 \begin_inset space ~
21093 : only floats occupying less than 30
21094 \begin_inset space \thinspace{}
21097 % of the page can be placed at the bottom of a page.
21107 \begin_layout Labeling
21108 \labelwidthstring 00.00.0000
21112 \begin_inset space ~
21116 \begin_inset space ~
21121 : only if more than 50
21122 \begin_inset space \thinspace{}
21125 % of the page are occupied by floats, several floats can be set together
21136 \begin_layout Standard
21137 If you don't like these rules, you can ignore them by using the additional
21141 \begin_inset space ~
21145 \begin_inset space ~
21151 \begin_inset Newline newline
21154 You can also redefine the rules with LaTeX-commands that are given in parenthese
21155 s behind the rules description above.
21156 To increase for example the often too small default of the bottom-rule
21158 \begin_inset space \thinspace{}
21161 % of the page, add this line to your document preamble:
21164 \begin_layout Standard
21171 bottomfraction}{0.5}
21174 \begin_layout Standard
21175 Sometimes you might need, under all circumstances, a float to be placed
21176 exactly at the position where it is inserted.
21177 For this case you can use the option
21180 \begin_inset space ~
21186 Use this option very rarely and only if the document is nearly ready to
21188 Because the float is then no longer able to
21189 \begin_inset Quotes eld
21193 \begin_inset Quotes erd
21196 when you change your document and this will often destroy the page layout.
21199 \begin_layout Standard
21200 There are no placement options for text wrap floats, because they are always
21201 surrounded by the text of a certain paragraph.
21202 \begin_inset VSpace bigskip
21208 \begin_layout Standard
21209 Sometimes you have the problem that a float is placed at the top of a page
21210 while its corresponding section starts at the middle of the page, so that
21211 the reader could think the float is part of the previous section.
21212 To avoid this the LaTeX-command
21219 It suppresses a given float placement for the page where it is inserted
21220 and can therefore be used to avoid that floats could be set before a section
21222 To get this, add these commands to your document preamble:
21225 \begin_layout Standard
21235 \begin_inset Newline newline
21249 \begin_layout Standard
21250 You can define the same for all section headings, like chapters and subsections.
21251 This definition is not recommended to be used for small text parts like
21252 subsubsections because LaTeX may then have problems to find a suitable
21256 \begin_layout Standard
21257 \begin_inset VSpace bigskip
21260 In some cases it is required to have all figures/tables at the end of the
21262 For this purpose the LaTeX-package
21270 \begin_layout Plain Layout
21271 LaTeX-packages ! endfloat
21277 It puts all figure and table floats at the end of the document into own
21279 At the original float position a text hint like
21280 \begin_inset Quotes eld
21286 \begin_inset space ~
21292 \begin_inset Quotes erd
21296 The endfloat-package is loaded in the preamble with the line
21299 \begin_layout Standard
21304 usepackage[options]{endfloat}
21307 \begin_layout Standard
21308 There are various package options to format the created figure/table sections.
21309 For more information we refer to the
21314 \begin_inset CommandInset citation
21321 \begin_inset Newline newline
21325 \begin_inset Note Greyedout
21328 \begin_layout Plain Layout
21333 doesn't provide an automatic translation for the text hint, you have to
21334 do this manually, see section
21335 \begin_inset space ~
21339 \begin_inset CommandInset citation
21351 \begin_inset Newline newline
21355 \begin_inset Note Greyedout
21358 \begin_layout Plain Layout
21363 There is currently a bug in
21367 when the caption contains a German
21368 \begin_inset Quotes eld
21372 \begin_inset Quotes erd
21376 Use in this case the command
21377 \begin_inset Quotes eld
21387 \begin_inset Quotes erd
21390 in TeX-Code instead of
21391 \begin_inset Quotes eld
21395 \begin_inset Quotes erd
21406 \begin_layout Standard
21407 \begin_inset VSpace bigskip
21410 For more details about float placements, have a look at LaTeX books,
21411 \begin_inset CommandInset citation
21413 key "latexcompanion,latexguide,latexbook"
21420 \begin_layout Section
21422 \begin_inset CommandInset label
21424 name "sec:Rotated-Floats"
21432 \begin_layout Plain Layout
21441 \begin_layout Standard
21442 Especially for wide tables you might have floats rotated.
21443 To rotate a whole float including the caption, right-click on the float-box
21447 \begin_inset space ~
21455 \begin_layout Standard
21456 Rotated floats are always placed on its own page (or column, in case you
21457 have a multi-column document).
21458 You can let them span several columns using the float settings option
21461 \begin_inset space ~
21467 Floats are rotated so that you can read them from the outside margin.
21468 To force a certain rotation direction for all pages, you can add either
21477 to the document class options.
21480 \begin_layout Standard
21481 Referencing rotated floats is the same like for normal floats, the caption
21482 format is also the same: Table
21483 \begin_inset space ~
21487 \begin_inset CommandInset ref
21489 reference "tab:Rotated-table"
21493 is an example of a rotated table float.
21496 \begin_layout Standard
21497 \begin_inset Note Greyedout
21500 \begin_layout Plain Layout
21505 Not all DVI-viewers are able to display rotated floats.
21513 \begin_layout Standard
21514 \begin_inset Float table
21519 \begin_layout Plain Layout
21520 \begin_inset Caption
21522 \begin_layout Plain Layout
21523 \begin_inset CommandInset label
21525 name "tab:Rotated-table"
21537 \begin_layout Plain Layout
21539 \begin_inset Tabular
21540 <lyxtabular version="3" rows="1" columns="5">
21542 <column alignment="center" valignment="top" width="0">
21543 <column alignment="center" valignment="top" width="0">
21544 <column alignment="center" valignment="top" width="0">
21545 <column alignment="center" valignment="top" width="0">
21546 <column alignment="center" valignment="top" width="0">
21548 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21551 \begin_layout Plain Layout
21557 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21560 \begin_layout Plain Layout
21566 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21569 \begin_layout Plain Layout
21575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21578 \begin_layout Plain Layout
21584 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21587 \begin_layout Plain Layout
21606 \begin_layout Section
21607 Floats Side by Side
21611 \begin_layout Plain Layout
21612 Floats ! Side by side
21620 \begin_layout Standard
21621 To place floats side by side, like for Figure
21622 \begin_inset space ~
21626 \begin_inset CommandInset ref
21628 reference "fig:Float-left"
21633 \begin_inset CommandInset ref
21635 reference "fig:Float-right"
21644 In it two minipage boxes are inserted.
21648 \begin_layout Plain Layout
21649 Minipages are explained in section
21650 \begin_inset space ~
21654 \begin_inset CommandInset ref
21656 reference "sec:Minipages"
21665 The width is set to 45
21666 \begin_inset space \thinspace{}
21670 \begin_inset space \thinspace{}
21673 column% and the box alignment to
21678 The minipage boxes contain the image and the caption in the same way as
21679 they are in a float.
21680 The only difference is that the image unit
21683 \begin_inset space ~
21687 \begin_inset space ~
21692 is now calculated according to the width of the minipage boxes.
21695 \begin_layout Standard
21696 \begin_inset Float figure
21701 \begin_layout Plain Layout
21702 \begin_inset Box Frameless
21711 height_special "totalheight"
21714 \begin_layout Plain Layout
21716 \begin_inset Graphics
21717 filename clipart/mobius.eps
21720 scaleBeforeRotation
21727 \begin_layout Plain Layout
21728 \begin_inset Caption
21730 \begin_layout Plain Layout
21731 \begin_inset CommandInset label
21733 name "fig:Float-left"
21737 Float on the left side.
21748 \begin_inset space \hfill{}
21752 \begin_inset Box Frameless
21761 height_special "totalheight"
21764 \begin_layout Plain Layout
21766 \begin_inset Graphics
21767 filename clipart/platypus.eps
21770 scaleBeforeRotation
21777 \begin_layout Plain Layout
21778 \begin_inset Caption
21780 \begin_layout Plain Layout
21781 \begin_inset CommandInset label
21783 name "fig:Float-right"
21787 Float on the right side.
21800 \begin_layout Plain Layout
21809 \begin_layout Section
21814 \begin_layout Plain Layout
21815 Caption ! Formatting
21824 \begin_layout Plain Layout
21825 Floats ! Caption Formatting
21831 \begin_inset CommandInset label
21833 name "sec:Caption-Formatting"
21840 \begin_layout Standard
21845 environment is the default paragraph environment for
21850 On the LyX screen captions appear as label, e.
21851 \begin_inset space \thinspace{}
21855 \begin_inset space \space{}
21859 \begin_inset Quotes eld
21867 \begin_inset Quotes erd
21870 followed by the caption text.
21872 \begin_inset Quotes eld
21876 \begin_inset Quotes erd
21879 is the actual reference number.
21880 By default the label and the number are in the same font as the caption
21881 text and a colon follows the number to divide the label from the text.
21882 This caption format is not suitable for all document formats.
21886 \begin_layout Standard
21887 To change the default caption format, load the LaTeX-package
21895 \begin_layout Plain Layout
21896 LaTeX-packages ! caption
21901 in the document preamble with this line:
21904 \begin_layout Standard
21909 usepackage[format definition]{caption}
21912 \begin_layout Standard
21913 To have for example the label and the number in sans-serif bold font and
21914 the table captions always above the table like in this document, use the
21918 \begin_layout Standard
21923 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
21926 \begin_layout Standard
21927 You can also define different caption formats for the different float types.
21928 In this case load the
21932 package without format specific options and define the different formats
21933 with the help of the command
21936 \begin_layout Standard
21941 captionsetup[float type]{format definition}
21944 \begin_layout Standard
21945 in the document preamble.
21946 For example the caption formats of Figure
21947 \begin_inset space ~
21951 \begin_inset CommandInset ref
21953 reference "fig:This-is-an-fig"
21958 \begin_inset space ~
21962 \begin_inset CommandInset ref
21964 reference "tab:This-is-an-tab"
21968 can be created using these commands in the document preamble:
21971 \begin_layout Standard
21976 usepackage[tableposition=top]{caption}
21979 \begin_inset Newline newline
21986 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
21987 \begin_inset Newline newline
21994 \begin_layout Plain Layout
22002 captionsetup[figure]
22010 \begin_inset Newline newline
22015 captionsetup[table]{labelfont={bf,sf}}
22018 \begin_layout Standard
22019 \begin_inset Note Greyedout
22022 \begin_layout Plain Layout
22031 has no effect when a
22039 \begin_layout Plain Layout
22040 LaTeX-packages ! koma-script
22045 document class is used.
22046 In this case the document class option
22058 \begin_layout Standard
22059 For more information about the package
22063 we refer to its documentation
22064 \begin_inset CommandInset citation
22073 \begin_layout Standard
22074 To change the label name from e.
22075 \begin_inset space \thinspace{}
22079 \begin_inset space \space{}
22083 \begin_inset Quotes eld
22087 \begin_inset Quotes erd
22091 \begin_inset Quotes eld
22095 \begin_inset Quotes erd
22098 use this preamble command:
22101 \begin_layout Standard
22108 fnum@figure}{Image~
22113 \begin_layout Standard
22120 inserts the figure number and
22123 \begin_inset Quotes eld
22129 \begin_inset Quotes erd
22132 creates a protected space.
22135 \begin_layout Standard
22136 \begin_inset VSpace bigskip
22147 \begin_layout Plain Layout
22148 LaTeX-packages ! koma-script
22155 article (koma-script)
22163 letter (koma-script)
22167 report (koma-script)
22170 \begin_inset space \thinspace{}
22173 ), you can alternatively to the
22181 's built-in command
22188 For example, to have the caption label in bold, add this command to your
22192 \begin_layout Standard
22197 setkomafont{captionlabel}{
22202 \begin_layout Standard
22203 For more information about
22214 \begin_inset CommandInset citation
22223 \begin_layout Standard
22227 \begin_layout Plain Layout
22231 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
22238 \begin_inset Note Note
22241 \begin_layout Plain Layout
22242 The caption format is changed only for this example.
22250 \begin_layout Standard
22251 \begin_inset Float figure
22257 \begin_layout Plain Layout
22259 \begin_inset Graphics
22260 filename clipart/mobius.eps
22263 scaleBeforeRotation
22270 \begin_layout Plain Layout
22271 \begin_inset Caption
22273 \begin_layout Plain Layout
22274 \begin_inset CommandInset label
22276 name "fig:This-is-an-fig"
22280 This is an example figure caption that is longer than one line to show the
22281 different caption format.
22282 Here a self-defined caption format is used.
22295 \begin_layout Standard
22299 \begin_layout Plain Layout
22303 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
22312 \begin_layout Standard
22313 \begin_inset Float table
22319 \begin_layout Plain Layout
22320 \begin_inset Caption
22322 \begin_layout Plain Layout
22323 \begin_inset CommandInset label
22325 name "tab:This-is-an-tab"
22329 This is an example table caption that is longer than one line to show the
22330 different caption format.
22331 Here the standard caption format for tables in this document is used.
22339 \begin_layout Plain Layout
22341 \begin_inset Tabular
22342 <lyxtabular version="3" rows="1" columns="5">
22344 <column alignment="center" valignment="top" width="0">
22345 <column alignment="center" valignment="top" width="0">
22346 <column alignment="center" valignment="top" width="0">
22347 <column alignment="center" valignment="top" width="0">
22348 <column alignment="center" valignment="top" width="0">
22350 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22353 \begin_layout Plain Layout
22359 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22362 \begin_layout Plain Layout
22368 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22371 \begin_layout Plain Layout
22377 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22380 \begin_layout Plain Layout
22386 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22389 \begin_layout Plain Layout
22408 \begin_layout Section
22413 \begin_layout Plain Layout
22414 Caption ! Placement
22423 \begin_layout Plain Layout
22424 Floats ! Caption Placement
22430 \begin_inset CommandInset label
22432 name "sec:Caption-Placement"
22439 \begin_layout Standard
22440 The common caption placement rule is:
22443 \begin_layout Description
22444 Figure: Caption is set below the figure
22447 \begin_layout Description
22448 Table: Caption is set above the table
22451 \begin_layout Standard
22452 Having the caption above the table is unfortunately not supported in LaTeX's
22454 That means if you are using the document classes
22470 there will be no space between the caption and the table.
22471 To insert the needed space, add the following option to the load command
22472 of the LaTeX-package
22476 in your document preamble
22480 \begin_layout Plain Layout
22482 \begin_inset space ~
22486 \begin_inset CommandInset ref
22488 reference "sec:Caption-Formatting"
22492 for more information of the package
22504 \begin_layout Standard
22510 \begin_layout Standard
22519 \begin_layout Plain Layout
22520 LaTeX-packages ! koma-script
22527 article (koma-script)
22535 letter (koma-script)
22539 report (koma-script)
22542 \begin_inset space \thinspace{}
22545 ), you can alternatively to the
22549 package set the document class option
22556 \begin_layout Standard
22557 \begin_inset VSpace bigskip
22560 It is also possible to set the caption beside a figure or table.
22561 To get this the LaTeX-package
22569 \begin_layout Plain Layout
22570 LaTeX-packages ! sidecap
22575 has to be loaded in the document preamble with the line
22578 \begin_layout Standard
22583 usepackage[option]{sidecap}
22586 \begin_layout Standard
22587 If you set no option, the caption is placed on the side of the outer page
22588 margin – to the right on odd pages, to the left on even pages.
22589 You can change the placement to inner margin with the option
22594 To force the placement always to the right or left, use the option
22605 \begin_layout Standard
22609 \begin_layout Plain Layout
22619 \begin_inset Note Note
22622 \begin_layout Plain Layout
22623 The following section will only be displayed when the LaTeX-package
22635 \begin_layout Standard
22636 To place in LyX the caption of a float on the side, it is necessary to add
22637 these commands to the document preamble:
22640 \begin_layout Standard
22646 \begin_layout Standard
22654 \begin_inset Newline newline
22661 \begin_layout Plain Layout
22677 \begin_inset Newline newline
22684 \begin_layout Plain Layout
22700 \begin_inset Newline newline
22707 \begin_layout Plain Layout
22718 renewenvironment{table}{
22725 \begin_layout Standard
22733 \begin_inset Newline newline
22740 \begin_layout Plain Layout
22756 \begin_inset Newline newline
22763 \begin_layout Plain Layout
22781 \begin_layout Standard
22789 \begin_inset Newline newline
22796 \begin_layout Plain Layout
22812 \begin_inset Newline newline
22819 \begin_layout Plain Layout
22835 \begin_inset Newline newline
22842 \begin_layout Plain Layout
22853 renewenvironment{figure}{
22860 \begin_layout Standard
22868 \begin_inset Newline newline
22875 \begin_layout Plain Layout
22891 \begin_inset Newline newline
22898 \begin_layout Plain Layout
22916 \begin_layout Standard
22922 \begin_layout Standard
22923 The commands allow you to redefine the floats so that the caption is set
22925 For figure floats use the command
22928 \begin_layout Standard
22936 \begin_layout Standard
22937 in TeX-Code before the float.
22938 Behind the float insert the command
22941 \begin_layout Standard
22949 \begin_layout Standard
22950 in TeX-Code to get back to the original float definition.
22953 \begin_layout Standard
22954 For table floats use the corresponding commands
22957 \begin_layout Standard
22971 \begin_layout Standard
22973 \begin_inset space ~
22977 \begin_inset CommandInset ref
22979 reference "fig:cap-beside-fig"
22984 \begin_inset space ~
22988 \begin_inset CommandInset ref
22990 reference "tab:cap-beside-tab"
22994 are examples where the caption is set beside.
22997 \begin_layout Standard
22998 You can see in the examples that the caption text appears at the top of
22999 the floats for table floats and at the bottom for figure floats.
23000 To change this, you can use the command
23003 \begin_layout Standard
23008 sidecaptionvpos{float type}{placement}
23011 \begin_layout Standard
23012 in the document preamble or in TeX-Code before the float.
23013 The float type is either
23021 , the placement can be
23022 \begin_inset Quotes eld
23030 \begin_inset Quotes erd
23034 \begin_inset Quotes eld
23042 \begin_inset Quotes erd
23046 \begin_inset Quotes eld
23054 \begin_inset Quotes erd
23058 To have for example the caption of figure floats vertically centered, use
23062 \begin_layout Standard
23067 sidecaptionvpos{figure}{c}
23070 \begin_layout Standard
23071 This was used for Figure
23072 \begin_inset space ~
23076 \begin_inset CommandInset ref
23078 reference "fig:cap-beside-fig-2"
23085 \begin_layout Standard
23086 \begin_inset VSpace medskip
23089 For more information about the package
23093 we refer to its documentation
23094 \begin_inset CommandInset citation
23103 \begin_layout Standard
23104 \begin_inset Note Greyedout
23107 \begin_layout Plain Layout
23120 \begin_layout Plain Layout
23121 LaTeX-packages ! hypcap
23126 , described in section
23127 \begin_inset space ~
23131 \begin_inset CommandInset ref
23133 reference "sub:Reference-Position"
23137 , has no effect on floats with the caption set beside.
23145 \begin_layout Standard
23149 \begin_layout Plain Layout
23161 \begin_layout Standard
23162 \begin_inset Float figure
23167 \begin_layout Plain Layout
23168 \begin_inset Graphics
23169 filename clipart/escher-lsd.eps
23171 scaleBeforeRotation
23178 \begin_layout Plain Layout
23179 \begin_inset Caption
23181 \begin_layout Plain Layout
23182 \begin_inset CommandInset label
23184 name "fig:cap-beside-fig"
23188 This is a caption beside a figure.
23201 \begin_layout Standard
23205 \begin_layout Plain Layout
23217 \begin_layout Standard
23218 \begin_inset Float table
23223 \begin_layout Plain Layout
23224 \begin_inset Caption
23226 \begin_layout Plain Layout
23227 \begin_inset CommandInset label
23229 name "tab:cap-beside-tab"
23233 This is a caption beside a table.
23241 \begin_layout Plain Layout
23242 \begin_inset Tabular
23243 <lyxtabular version="3" rows="4" columns="5">
23245 <column alignment="center" valignment="top" width="0">
23246 <column alignment="center" valignment="top" width="0">
23247 <column alignment="center" valignment="top" width="0">
23248 <column alignment="center" valignment="top" width="0">
23249 <column alignment="center" valignment="top" width="0">
23251 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23254 \begin_layout Plain Layout
23260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23263 \begin_layout Plain Layout
23269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23272 \begin_layout Plain Layout
23278 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23281 \begin_layout Plain Layout
23287 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23290 \begin_layout Plain Layout
23298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23301 \begin_layout Plain Layout
23307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23310 \begin_layout Plain Layout
23316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23319 \begin_layout Plain Layout
23325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23328 \begin_layout Plain Layout
23334 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23337 \begin_layout Plain Layout
23345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23348 \begin_layout Plain Layout
23354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23357 \begin_layout Plain Layout
23363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23366 \begin_layout Plain Layout
23372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23375 \begin_layout Plain Layout
23381 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23384 \begin_layout Plain Layout
23392 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23395 \begin_layout Plain Layout
23401 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23404 \begin_layout Plain Layout
23410 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23413 \begin_layout Plain Layout
23419 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23422 \begin_layout Plain Layout
23428 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23431 \begin_layout Plain Layout
23450 \begin_layout Standard
23454 \begin_layout Plain Layout
23466 \begin_layout Standard
23470 \begin_layout Plain Layout
23474 sidecaptionvpos{figure}{c}
23480 \begin_inset Float figure
23485 \begin_layout Plain Layout
23486 \begin_inset Graphics
23487 filename clipart/escher-lsd.eps
23489 scaleBeforeRotation
23496 \begin_layout Plain Layout
23497 \begin_inset Caption
23499 \begin_layout Plain Layout
23500 \begin_inset CommandInset label
23502 name "fig:cap-beside-fig-2"
23506 This is a vertically centered caption beside a figure.
23519 \begin_layout Standard
23523 \begin_layout Plain Layout
23535 \begin_layout Standard
23539 \begin_layout Plain Layout
23549 \begin_inset Note Note
23552 \begin_layout Plain Layout
23553 The following will be displayed when the LaTeX-package
23565 \begin_layout Standard
23566 You need to install the LaTeX-package
23570 to see the following part of this section in the output.
23573 \begin_layout Standard
23577 \begin_layout Plain Layout
23589 \begin_layout Section
23594 \begin_layout Plain Layout
23595 Floats ! Float Lists
23603 \begin_layout Standard
23604 Similar to the the table of contents where the sections of the document
23605 are listed, there are listings for all float types, like the figures of
23607 You can insert them via the
23609 Insert\SpecialChar \menuseparator
23611 \begin_inset space ~
23615 \begin_inset space ~
23623 \begin_layout Standard
23624 The list entries are the float captions or its short title, the float number,
23625 and the page number where they appear in the document.
23628 \begin_layout Standard
23629 You can find the list of figures and tables at the end of this document.
23632 \begin_layout Chapter
23636 \begin_layout Section
23641 \begin_layout Plain Layout
23650 \begin_layout Standard
23651 Notes are inserted with the toolbar button
23652 \begin_inset Graphics
23653 filename ../images/note-insert.png
23655 scaleBeforeRotation
23661 Insert\SpecialChar \menuseparator
23665 There are three types of notes:
23668 \begin_layout Description
23670 \begin_inset space ~
23673 Note This note type is for internal notes that won't appear in the output.
23674 Its note-box looks like this:
23675 \begin_inset Newline newline
23679 \begin_inset Newline newline
23683 \begin_inset Graphics
23684 filename clipart/LyXNoteImageQt4.png
23687 scaleBeforeRotation
23692 \begin_inset Note Note
23695 \begin_layout Plain Layout
23696 This is text in a note box that doesn't appear in the output.
23704 \begin_layout Description
23705 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
23706 ent, when you export the document to LaTeX via the menu
23708 File\SpecialChar \menuseparator
23709 Export\SpecialChar \menuseparator
23710 LaTeX (pdflatex) / (plain)
23713 Its note-box looks like this:
23714 \begin_inset Newline newline
23718 \begin_inset Newline newline
23722 \begin_inset Graphics
23723 filename clipart/CommentNoteImageQt4.png
23726 scaleBeforeRotation
23731 \begin_inset Note Comment
23734 \begin_layout Plain Layout
23735 This is text in a note box that only appears as comment in LaTeX-files.
23743 \begin_layout Description
23745 \begin_inset space ~
23748 Out This note will appear in the output as grey text.
23749 Its note-box looks like this:
23750 \begin_inset Newline newline
23754 \begin_inset Newline newline
23758 \begin_inset Graphics
23759 filename clipart/GreyedOutNoteImageQt4.png
23762 scaleBeforeRotation
23767 \begin_inset Newline newline
23774 \begin_layout Plain Layout
23778 renewenvironment{lyxgreyedout}
23781 \begin_layout Plain Layout
23785 textcolor[gray]{0.8}
23795 \begin_inset Note Greyedout
23798 \begin_layout Plain Layout
23803 \begin_layout Plain Layout
23804 This is an example footnote within a greyed out note.
23809 of a comment that appears in the output as grey text.
23818 \begin_layout Plain Layout
23822 renewenvironment{lyxgreyedout}
23825 \begin_layout Plain Layout
23839 \begin_inset Note Note
23842 \begin_layout Plain Layout
23843 The greyed out note is here redefined to show it with the original LyX definitio
23844 n because greyed out notes are redefined in the preamble of this document,
23845 as described below, to have blue text.
23851 \begin_inset Newline newline
23855 \begin_inset Newline newline
23858 As you can see in the example, the first line of greyed out notes is a bit
23859 indented and greyed out notes can have footnotes.
23862 \begin_layout Standard
23863 \begin_inset VSpace bigskip
23866 When you use the toolbar button
23867 \begin_inset Graphics
23868 filename ../images/note-insert.png
23870 scaleBeforeRotation
23877 \begin_inset space ~
23883 You can switch between the five note types by right-clicking on the note-box.
23888 If you want to turn existing text into a note, mark it and click on the
23902 To change a note to text, press the backspace key when the cursor is in
23903 the first position of a note, or press the deletey key when the cursor
23904 is in the very last position of the note, respectively.
23907 \begin_layout Standard
23908 \begin_inset VSpace bigskip
23911 You can change the text color of the greyed out notes in the preamble with
23912 the following command:
23915 \begin_layout Standard
23920 renewenvironment{lyxgreyedout}
23921 \begin_inset Newline newline
23928 \begin_layout Plain Layout
23946 \begin_layout Standard
23947 The available colors and the method to define own colors is explained in
23949 \begin_inset space ~
23953 \begin_inset CommandInset ref
23955 reference "sec:Colored-Tables"
23962 \begin_layout Standard
23963 Notes that appear in blue in this document are set using greyed out notes
23967 \begin_layout Section
23969 \begin_inset CommandInset label
23971 name "sec:Footnotes"
23979 \begin_layout Plain Layout
23989 \begin_layout Plain Layout
23998 \begin_layout Standard
23999 Footnotes can be inserted using the toolbar button
24000 \begin_inset Graphics
24001 filename ../images/footnote-insert.png
24003 scaleBeforeRotation
24009 Insert\SpecialChar \menuseparator
24021 then the following footnote-box:
24022 \begin_inset Graphics
24023 filename clipart/footnoteQt4.png
24025 scaleBeforeRotation
24033 where you can enter the footnote text.
24034 If you want to turn existing text into a footnote, mark it and click on
24056 to text, press the Backspace key when the cursor is in the first position
24065 , or press the Delete key when the cursor is in the very last position of
24077 \begin_layout Standard
24078 Here is an example footnote:
24086 \begin_layout Plain Layout
24087 \begin_inset CommandInset label
24089 name "foot:This-is-an"
24093 This is an example footnote.
24106 \begin_layout Plain Layout
24110 newcounter{MyRepeatFoot}
24113 \begin_layout Plain Layout
24117 setcounter{MyRepeatFoot}{
24127 \begin_layout Standard
24128 The footnote will appear in the output as a superscript number at the text
24129 position where the footnote box is placed.
24130 The footnote text is placed at the bottom of the current page.
24131 The footnote number is calculated by LaTeX, the numbers are consecutive.
24132 It depends on your document-class, if the footnote number is reset for
24136 \begin_layout Standard
24137 Footnotes can be referenced like floats: Insert a label into the footnote
24138 and cross-reference this label in the text as described in section
24139 \begin_inset space ~
24143 \begin_inset CommandInset ref
24145 reference "sec:Referencing-Floats"
24150 \begin_inset Newline newline
24153 This is a cross-reference of Footnote
24154 \begin_inset space ~
24158 \begin_inset CommandInset ref
24160 reference "foot:This-is-an"
24167 \begin_layout Standard
24168 \begin_inset VSpace defskip
24171 To use footnotes within tables, you have to use minipages, see section
24172 \begin_inset space ~
24176 \begin_inset CommandInset ref
24178 reference "sec:Minipages"
24183 Footnotes within longtables are described in section
24184 \begin_inset space ~
24188 \begin_inset CommandInset ref
24190 reference "sub:Footnotes-in-Longtables"
24197 \begin_layout Standard
24198 \begin_inset VSpace defskip
24201 To create only a mark for a footnote, use the command
24205 footnotemark[number]
24208 This is used when you have the same annotation several times in a text
24209 but doesn't want to print the footnote text every time.
24210 \begin_inset Newline newline
24213 As you don't know the number of the repeating footnote while you are writing
24214 the text, you have to store its number.
24215 For the following footnote mark example, these commands were inserted in
24216 TeX-Code behind Footnote
24217 \begin_inset space ~
24221 \begin_inset CommandInset ref
24223 reference "foot:This-is-an"
24227 to store the footnote number:
24230 \begin_layout Standard
24235 newcounter{MyRepeatFoot}
24236 \begin_inset Newline newline
24241 setcounter{MyRepeatFoot}{
24246 \begin_layout Standard
24247 The footnote mark was then created with this command:
24250 \begin_layout Standard
24260 \begin_layout Standard
24261 Here is an example footnote mark:
24269 \begin_layout Plain Layout
24283 \begin_layout Subsection
24285 \begin_inset CommandInset label
24287 name "sub:Footnote-Numbering"
24295 \begin_layout Plain Layout
24296 Footnotes ! Numbering
24304 \begin_layout Standard
24305 To reset the footnote number back to 1 after each section
24307 , add this command to your document preamble:
24310 \begin_layout Standard
24315 @addtoreset{footnote}{section}
24318 \begin_layout Standard
24319 \begin_inset VSpace bigskip
24322 The following preamble command changes the footnote numbering style to small
24326 \begin_layout Standard
24338 \begin_layout Standard
24342 \begin_layout Plain Layout
24355 This is a footnote with roman numbering:
24359 \begin_layout Plain Layout
24360 This is an example footnote with roman numbering.
24368 \begin_layout Standard
24369 To change the numbering style to capital roman numerals replace in the command
24384 \begin_inset Quotes eld
24388 \begin_inset Quotes erd
24391 footnotes with capital or small Latin letters use
24405 \begin_inset Quotes eld
24409 \begin_inset Quotes erd
24412 footnotes with symbols use
24421 \begin_layout Standard
24422 \begin_inset Note Greyedout
24425 \begin_layout Plain Layout
24430 You can only number 26 footnotes with Latin letters, because this numbering
24431 is limited to single letters.
24437 \begin_inset Newline newline
24441 \begin_inset Note Greyedout
24444 \begin_layout Plain Layout
24449 You can only number 9 footnotes with symbols.
24457 \begin_layout Standard
24458 To return to the default numbering style when you changed to another one,
24471 in the command above.
24475 \begin_layout Plain Layout
24491 \begin_layout Standard
24492 \begin_inset VSpace bigskip
24498 \begin_layout Standard
24499 If you want to have footnotes numbered in the scheme
24500 \begin_inset Quotes eld
24504 \begin_inset Quotes erd
24507 , add the following command to your document preamble:
24510 \begin_layout Standard
24515 numberwithin{footnote}{chapter}
24518 \begin_layout Standard
24519 To be able to use the command
24528 \begin_inset space ~
24533 in the document settings the option
24536 \begin_inset space ~
24540 \begin_inset space ~
24544 \begin_inset space ~
24552 \begin_layout Standard
24556 \begin_layout Plain Layout
24560 numberwithin{footnote}{chapter}
24565 This is another example footnote:
24571 \begin_layout Plain Layout
24572 This is a footnote numbered in the scheme
24573 \begin_inset Quotes eld
24577 \begin_inset Quotes erd
24591 \begin_layout Plain Layout
24607 \begin_layout Standard
24608 \begin_inset Note Greyedout
24611 \begin_layout Plain Layout
24622 always prints out the footnote number as arabic number; previous redefinitions
24623 to get non-arabic numbers are overwritten.
24631 \begin_layout Standard
24632 So to get for example the scheme
24633 \begin_inset Quotes eld
24639 \begin_inset Quotes erd
24642 , use this command instead of
24651 \begin_layout Standard
24665 \begin_layout Subsection
24670 \begin_layout Plain Layout
24671 Footnotes ! Placement
24679 \begin_layout Standard
24680 If you have several footnotes in one page, they appear without vertical
24681 space between them at the bottom of the page.
24682 To make them better readable you can e.
24683 \begin_inset space \thinspace{}
24687 \begin_inset space \space{}
24691 \begin_inset space \thinspace{}
24694 mm space with the following preamble command:
24697 \begin_layout Standard
24707 \begin_inset Newline newline
24721 \begin_layout Standard
24722 \begin_inset VSpace bigskip
24725 In a two-column document the footnotes appear at the bottom of every column,
24727 \begin_inset space ~
24731 \begin_inset CommandInset ref
24733 reference "fig:Standard-footnote-placement"
24738 If the footnotes should only appear at the bottom of the right column,
24740 \begin_inset space ~
24744 \begin_inset CommandInset ref
24746 reference "fig:Footnote-placement-in"
24750 , use the LaTeX-package
24758 \begin_layout Plain Layout
24759 LaTeX-packages ! ftnright
24764 with this command in the document preamble:
24767 \begin_layout Standard
24772 usepackage{ftnright}
24775 \begin_layout Standard
24776 \begin_inset Float figure
24782 \begin_layout Plain Layout
24786 \begin_layout Plain Layout
24796 \begin_inset Graphics
24797 filename clipart/without_fntright.pdf
24799 scaleBeforeRotation
24807 \begin_layout Plain Layout
24817 \begin_layout Plain Layout
24818 \begin_inset Caption
24820 \begin_layout Plain Layout
24821 \begin_inset CommandInset label
24823 name "fig:Standard-footnote-placement"
24827 Standard footnote placement in two-column documents.
24840 \begin_layout Standard
24841 \begin_inset Float figure
24847 \begin_layout Plain Layout
24851 \begin_layout Plain Layout
24861 \begin_inset Graphics
24862 filename clipart/with_fntright.pdf
24864 scaleBeforeRotation
24872 \begin_layout Plain Layout
24882 \begin_layout Plain Layout
24883 \begin_inset Caption
24885 \begin_layout Plain Layout
24886 \begin_inset CommandInset label
24888 name "fig:Footnote-placement-in"
24892 Footnote placement in two-column documents when the LaTeX-package
24909 \begin_layout Standard
24910 \begin_inset VSpace bigskip
24913 In some scientific literature it is usual to collect the footnotes and print
24914 them in a separate paragraph at the the end of a section, like in Figure
24915 \begin_inset space ~
24919 \begin_inset CommandInset ref
24921 reference "fig:Endnotes----footnotes"
24926 They are then so called
24927 \begin_inset Quotes eld
24931 \begin_inset Quotes erd
24938 \begin_layout Plain Layout
24944 To use endnotes instead of footnotes in your document, load the LaTeX-package
24953 \begin_layout Plain Layout
24954 LaTeX-packages ! endnotes
24959 with the document preamble lines
24962 \begin_layout Standard
24967 usepackage{endnotes}
24968 \begin_inset Newline newline
24980 \begin_layout Standard
24981 To insert the collected footnotes, insert the command
24984 \begin_layout Standard
24992 \begin_layout Standard
24993 in TeX-Code at the the end of a section or chapter.
24996 \begin_layout Standard
24997 \begin_inset Float figure
25002 \begin_layout Plain Layout
25007 \begin_layout Plain Layout
25017 \begin_inset Graphics
25018 filename clipart/endnotes.pdf
25019 scaleBeforeRotation
25027 \begin_layout Plain Layout
25037 \begin_layout Plain Layout
25038 \begin_inset Caption
25040 \begin_layout Plain Layout
25041 \begin_inset CommandInset label
25043 name "fig:Endnotes----footnotes"
25047 Endnotes – footnotes are printed in a separate paragraph at the end of sections
25061 \begin_layout Standard
25062 \begin_inset VSpace medskip
25065 The paragraph heading for the endnotes isn't automatically translated into
25066 the document language, this must be done manually.
25067 The following preamble command translate the default English name
25068 \begin_inset Quotes eld
25072 \begin_inset Quotes erd
25075 to the German translation
25076 \begin_inset Quotes eld
25080 \begin_inset Quotes erd
25086 \begin_layout Standard
25093 notesname}{Anmerkungen}
25096 \begin_layout Standard
25097 \begin_inset VSpace medskip
25100 The numbering of endnotes can be changed like the footnote numbering as
25101 described in section
25102 \begin_inset space ~
25106 \begin_inset CommandInset ref
25108 reference "sub:Footnote-Numbering"
25112 ; just replace the command
25125 To reset the endnote number use the command
25131 as described in section
25132 \begin_inset space ~
25136 \begin_inset CommandInset ref
25138 reference "sub:Footnote-Numbering"
25142 and replace the command parameter
25153 \begin_layout Standard
25154 To create only a mark for an endnote, use the command
25158 endnotemark[number]
25160 similar to the command
25166 , described in section
25167 \begin_inset space ~
25171 \begin_inset CommandInset ref
25173 reference "sec:Footnotes"
25180 \begin_layout Standard
25181 \begin_inset VSpace bigskip
25184 Footnotes can also be placed in the page margin and the footnote text alignment
25185 can be changed, see the LaTeX-package
25193 \begin_layout Plain Layout
25194 LaTeX-packages ! footmisc
25200 \begin_inset CommandInset citation
25206 for more information about this.
25209 \begin_layout Standard
25210 For various further footnote formatting issues have a look at LaTeX-books,
25212 \begin_inset CommandInset citation
25214 key "latexcompanion,latexguide,latexbook"
25221 \begin_layout Section
25226 \begin_layout Plain Layout
25227 Notes ! Margin Notes
25235 \begin_layout Standard
25236 Margin notes look and behave in LyX like footnotes.
25237 They are inserted via the menu
25239 Insert\SpecialChar \menuseparator
25241 \begin_inset space ~
25246 or the toolbar button
25247 \begin_inset Graphics
25248 filename ../images/marginalnote-insert.png
25250 scaleBeforeRotation
25265 \begin_inset Quotes eld
25269 \begin_inset Quotes erd
25272 appears where you can enter the text of the margin note.
25275 \begin_layout Standard
25276 At the side is an example margin note.
25281 \begin_inset Marginal
25284 \begin_layout Plain Layout
25285 This is a margin note.
25293 \begin_layout Standard
25294 Margin notes appear at the right side in single-sided documents.
25295 In double-sided documents they appear in the outer margin – left on even
25296 pages, right on odd pages.
25297 The text of margin notes is aligned opposite to the outer margin – right-aligne
25298 d when the note appears in the left margin.
25299 The first line of the margin note is placed at the position of the text
25300 line where it is inserted in the document.
25303 \begin_layout Standard
25304 \begin_inset VSpace bigskip
25307 To place the margin note in the inner margin, add the command
25310 \begin_layout Standard
25318 \begin_layout Standard
25319 in TeX-Code before a margin note.
25320 The new placement is valid for all following margin notes.
25325 \begin_layout Plain Layout
25335 \begin_inset Marginal
25338 \begin_layout Plain Layout
25339 This is a margin note in the inner margin.
25347 \begin_inset Newline newline
25353 \begin_inset Note Greyedout
25356 \begin_layout Plain Layout
25361 There is often not enough space in the inner margin so that the notes are
25362 not correctly displayed in the output.
25370 \begin_layout Standard
25371 To return to the default placement insert the command
25374 \begin_layout Standard
25382 \begin_layout Standard
25387 \begin_layout Plain Layout
25397 \begin_inset Note Greyedout
25400 \begin_layout Plain Layout
25405 The command is ignored when it is within a paragraph where also the command
25420 \begin_layout Standard
25421 \begin_inset VSpace bigskip
25428 \begin_inset Marginal
25431 \begin_layout Plain Layout
25432 AVeryLongMarginParWord that isn't hyphenated.
25440 Similar to the case described in section
25441 \begin_inset space ~
25445 \begin_inset CommandInset ref
25447 reference "sub:Multiple-Lines-in"
25451 , long words cannot be hyphenated when they are the first word in a margin
25453 To avoid this, insert 0
25454 \begin_inset space \thinspace{}
25457 pt horizontal space before the word
25462 \begin_inset Marginal
25465 \begin_layout Plain Layout
25466 \begin_inset space \hspace*{}
25470 AVeryLongMarginParWord that is hyphenated.
25478 \begin_layout Standard
25479 \begin_inset VSpace bigskip
25485 \begin_layout Standard
25486 \begin_inset Note Greyedout
25489 \begin_layout Plain Layout
25494 Margin notes can normally not be used inside tables, floats, and footnotes.
25502 \begin_layout Standard
25503 \begin_inset VSpace bigskip
25509 \begin_layout Standard
25513 \begin_layout Plain Layout
25523 \begin_inset Note Note
25526 \begin_layout Plain Layout
25527 The following section will only be displayed when the LaTeX-package
25539 \begin_layout Standard
25540 This restriction can be evaded by using the LaTeX-package
25548 \begin_layout Plain Layout
25549 LaTeX-packages ! marginnote
25555 By adding these two lines to your document preamble, the command used by
25556 LyX for margin notes is redefined to use the command provided by the
25563 \begin_layout Standard
25568 usepackage{marginnote}
25569 \begin_inset Newline newline
25581 \begin_layout Standard
25582 This is also used in this document because
25586 has another useful feature: You can set a vertical offset for the note.
25587 This is often needed when too many margin notes are too close together
25588 or for a better page layout.
25589 The offset is set in LyX as TeX-Code directly behind the margin note in
25593 \begin_layout Standard
25599 \begin_layout Standard
25600 where the offset is a length with one of the units listed in Table
25601 \begin_inset space ~
25605 \begin_inset CommandInset ref
25607 reference "tab:Units"
25612 A negative value shifts the note up, a positive value shifts it down.
25616 For example the margin note beside this text line is shifted up 1.5
25617 \begin_inset space \thinspace{}
25620 cm with the TeX-Code-command
25621 \begin_inset Quotes eld
25631 \begin_inset Quotes erd
25635 \begin_inset Marginal
25638 \begin_layout Plain Layout
25639 This margin note is shifted up 1.5
25640 \begin_inset space \thinspace{}
25643 cm from its original position.
25655 \begin_layout Plain Layout
25665 \begin_layout Standard
25666 \begin_inset VSpace medskip
25673 you can also change the alignment of the text in the margin note.
25674 For example the commands
25677 \begin_layout Standard
25684 raggedleftmarginnote}{
25687 \begin_inset Newline newline
25694 raggedrightmarginnote}{
25699 \begin_layout Standard
25700 set the alignment to centered.
25705 raggedleftmarginnote
25707 denotes margin notes that appear at the left side.
25714 \begin_layout Plain Layout
25720 raggedleftmarginnote}{
25725 \begin_layout Plain Layout
25731 raggedrightmarginnote}{
25739 \begin_inset Marginal
25742 \begin_layout Plain Layout
25743 The text of this margin note is centered.
25754 \begin_layout Standard
25761 raggedleftmarginnote}{
25764 \begin_inset Newline newline
25771 raggedrightmarginnote}{
25780 \begin_layout Plain Layout
25786 raggedleftmarginnote}{
25791 \begin_layout Plain Layout
25797 raggedrightmarginnote}{
25807 \begin_layout Standard
25808 \begin_inset VSpace medskip
25811 For the other features of
25815 we refer to its documentation
25816 \begin_inset CommandInset citation
25825 \begin_layout Standard
25826 \begin_inset VSpace bigskip
25829 You can adjust the layout of margin notes by changing its definition.
25830 To create for example a header for all margin notes with the underlined,
25831 sans-serif, and bold header text
25832 \begin_inset Quotes eld
25844 \begin_inset Quotes erd
25847 , add this to your document preamble:
25850 \begin_layout Standard
25860 \begin_inset Newline newline
25870 \begin_inset Newline newline
25877 \begin_layout Plain Layout
25894 underbar{Attention!}}}%
25895 \begin_inset Newline newline
25902 \begin_layout Plain Layout
25920 \begin_layout Standard
25927 \begin_layout Plain Layout
25938 \begin_layout Plain Layout
25949 \begin_layout Plain Layout
25957 underbar{Attention!}}}%
25960 \begin_layout Plain Layout
25974 \begin_inset Marginal
25977 \begin_layout Plain Layout
25978 This is a margin note with a defined heading.
25990 \begin_layout Plain Layout
26004 \begin_layout Plain Layout
26021 \begin_inset Note Note
26024 \begin_layout Plain Layout
26025 The margin note format is changed only for this example.
26033 \begin_layout Standard
26037 \begin_layout Plain Layout
26047 \begin_inset Note Note
26050 \begin_layout Plain Layout
26051 The following will be displayed when the LaTeX-package
26063 \begin_layout Standard
26064 You need to install the LaTeX-package
26068 to see the following part of this section in the output.
26071 \begin_layout Standard
26075 \begin_layout Plain Layout
26087 \begin_layout Chapter
26091 \begin_layout Section
26096 \begin_layout Plain Layout
26097 Boxes ! Introduction
26105 \begin_layout Standard
26106 Boxes are used to format a block of text.
26107 Boxes can be used to write documents with multiple languages, see section
26108 \begin_inset space ~
26112 \begin_inset CommandInset ref
26114 reference "sec:Minipages"
26118 , to frame texts, see section
26119 \begin_inset space ~
26123 \begin_inset CommandInset ref
26125 reference "sec:Decoration"
26129 , to prevent words to be hyphenated, see section
26130 \begin_inset space ~
26134 \begin_inset CommandInset ref
26136 reference "sec:Prevent-Hyphenation"
26140 , to align text, see section
26141 \begin_inset space ~
26145 \begin_inset CommandInset ref
26147 reference "sub:Vertical-Alignment"
26151 , or to set the background color of texts, see section
26152 \begin_inset space ~
26156 \begin_inset CommandInset ref
26158 reference "sec:Colored-Boxes"
26165 \begin_layout Standard
26166 Boxes can be inserted with the menu
26168 Insert\SpecialChar \menuseparator
26171 or the toolbar button
26172 \begin_inset Graphics
26173 filename ../images/box-insert.png
26175 scaleBeforeRotation
26180 A grey box with the label
26185 \begin_inset Graphics
26186 filename clipart/BoxInsetDefaultQt4.png
26188 scaleBeforeRotation
26193 The box type can be specified by right-clicking on the box.
26194 The appearing box dialog offers the
26197 \begin_inset space ~
26215 is the default for new boxes and is explained in section
26216 \begin_inset space ~
26220 \begin_inset CommandInset ref
26222 reference "sec:Minipages"
26230 is described in section
26231 \begin_inset space ~
26235 \begin_inset CommandInset ref
26237 reference "sec:Parboxes"
26244 \begin_layout Standard
26245 Boxes aren't numbered and can therefore not be referenced like floats or
26249 \begin_layout Standard
26250 \begin_inset Note Greyedout
26253 \begin_layout Plain Layout
26258 Boxes must not be the item in an
26274 \begin_layout Standard
26275 \begin_inset Note Greyedout
26278 \begin_layout Plain Layout
26283 For an unknown reason you can only set the
26286 \begin_inset space ~
26295 when you use a framed box.
26299 \begin_inset space ~
26304 type and without frames are explained in section
26305 \begin_inset space ~
26309 \begin_inset CommandInset ref
26311 reference "sec:Prevent-Hyphenation"
26323 \begin_layout Section
26325 \begin_inset CommandInset label
26327 name "sec:Box-Dialog"
26335 \begin_layout Plain Layout
26344 \begin_layout Subsection
26349 \begin_layout Plain Layout
26358 \begin_layout Standard
26359 In the box dialog you can adjust the box geometry in the fields
26368 The available units for the geometry are explained in Table
26369 \begin_inset space ~
26373 \begin_inset CommandInset ref
26375 reference "tab:Units"
26384 offers the following additional sizes:
26387 \begin_layout Description
26388 Depth This is the plain text
26389 \begin_inset Quotes eld
26393 \begin_inset Quotes erd
26397 It ignores the total depth when there are multiple text lines in the box:
26398 \begin_inset Newline newline
26402 \begin_inset Newline newline
26406 \begin_inset Newline newline
26410 \begin_inset Box Boxed
26419 height_special "depth"
26422 \begin_layout Plain Layout
26424 Box height set to 1
26425 \begin_inset space \thinspace{}
26434 \begin_inset Newline newline
26438 \begin_inset Newline newline
26444 \begin_layout Description
26445 Height This is the heigth of the text that is inside the box.
26447 \begin_inset space \thinspace{}
26451 \begin_inset space \space{}
26454 2 for this size will set the box heigth to 2 times the text height:
26455 \begin_inset Box Boxed
26464 height_special "height"
26467 \begin_layout Plain Layout
26469 Box height set to 2
26470 \begin_inset space \thinspace{}
26481 \begin_layout Description
26483 \begin_inset space ~
26486 Height This is the Height
26487 \begin_inset space \thinspace{}
26491 \begin_inset space \thinspace{}
26495 \begin_inset Box Boxed
26504 height_special "totalheight"
26507 \begin_layout Plain Layout
26509 Box height set to 1
26510 \begin_inset space \thinspace{}
26514 \begin_inset space ~
26525 \begin_layout Description
26526 Width This sets the width of the box as heigth:
26527 \begin_inset Box Boxed
26536 height_special "width"
26539 \begin_layout Plain Layout
26541 Box height set to 1
26542 \begin_inset space \thinspace{}
26553 \begin_layout Subsection
26558 \begin_layout Plain Layout
26567 \begin_layout Standard
26568 When you have chosen an
26571 \begin_inset space ~
26576 , the vertical box alignment can be:
26579 \begin_layout Description
26580 Top This is an example text line.
26582 \begin_inset Box Boxed
26591 height_special "totalheight"
26594 \begin_layout Plain Layout
26596 This box is top-aligned.
26601 This is an example text line.
26604 \begin_layout Description
26605 Middle This is an example text line.
26607 \begin_inset Box Boxed
26616 height_special "totalheight"
26619 \begin_layout Plain Layout
26621 This box is middle-aligned.
26626 This is an example text line.
26629 \begin_layout Description
26630 Bottom This is an example text line.
26632 \begin_inset Box Boxed
26641 height_special "totalheight"
26644 \begin_layout Plain Layout
26646 This box is bottom-aligned.
26651 This is an example text line.
26654 \begin_layout Standard
26655 \begin_inset Note Greyedout
26658 \begin_layout Plain Layout
26663 The vertical box aligment can be lost in the output when you have two boxes
26664 in a line and one has e.
26665 \begin_inset space \thinspace{}
26669 \begin_inset space \space{}
26672 a shadow and the other one not.
26680 \begin_layout Standard
26681 The horizontal box alignment can be set via LyX's paragraph dialog when
26682 you set the box into its own paragraph.
26685 \begin_layout Standard
26686 \begin_inset VSpace bigskip
26689 When you have chosen an
26692 \begin_inset space ~
26697 , the box content can be vertical aligned to:
26700 \begin_layout Description
26701 top This is an example text line.
26703 \begin_inset Box Boxed
26712 height_special "totalheight"
26715 \begin_layout Plain Layout
26717 This box text is top-aligned.
26722 This is an example text line.
26725 \begin_layout Description
26726 middle This is an example text line.
26728 \begin_inset Box Boxed
26737 height_special "totalheight"
26740 \begin_layout Plain Layout
26742 This box text is middle-aligned.
26747 This is an example text line.
26750 \begin_layout Description
26751 bottom This is an example text line.
26753 \begin_inset Box Boxed
26762 height_special "totalheight"
26765 \begin_layout Plain Layout
26767 This box text is bottom-aligned.
26772 This is an example text line.
26775 \begin_layout Description
26776 stretch This is an example text line.
26778 \begin_inset Box Boxed
26787 height_special "totalheight"
26790 \begin_layout Plain Layout
26795 \begin_layout Plain Layout
26800 \begin_layout Plain Layout
26807 This is an example text line.
26810 \begin_layout Standard
26811 To stretch the box content, it must consist of more than one paragraph.
26812 In the example above every text line is in an own paragraph.
26815 \begin_layout Standard
26816 \begin_inset VSpace bigskip
26819 To align the box content horizontally you can use LyX's paragraph dialog
26820 when you have chosen an
26823 \begin_inset space ~
26831 \begin_layout Standard
26833 \begin_inset Box Boxed
26842 height_special "totalheight"
26845 \begin_layout Plain Layout
26850 \begin_layout Plain Layout
26855 \begin_layout Plain Layout
26865 \begin_layout Standard
26866 If you haven't set an
26869 \begin_inset space ~
26874 , you can align the box content horizontally in the box dialog.
26877 \begin_layout Standard
26879 \begin_inset Box Boxed
26888 height_special "totalheight"
26891 \begin_layout Plain Layout
26893 This box text is horizontally stretched.
26901 \begin_layout Subsection
26903 \begin_inset CommandInset label
26905 name "sec:Decoration"
26913 \begin_layout Plain Layout
26922 \begin_layout Standard
26923 The type of the box can be specified in the box-dialog in the drop-down
26929 The following types are possible:
26932 \begin_layout Description
26934 \begin_inset space ~
26938 \begin_inset space ~
26941 frame This draws a rectangle frame around the box.
26942 The frame line thickness has the size of
26950 \begin_inset Box Boxed
26959 height_special "totalheight"
26962 \begin_layout Plain Layout
26972 \begin_layout Description
26974 \begin_inset space ~
26978 \begin_inset space ~
26981 break When you use the decoration
26983 simple rectangular frame
26985 and no inner box, you can allow page breaks within a box.
26986 Note that then, in contrary to other framed boxes, the frame always uses
26987 the whole column width, the box is set as its own paragraph, and
26999 has no effect on this box type.
27000 The frame line thickness has the size of
27008 \begin_inset Box Framed
27017 height_special "totalheight"
27020 \begin_layout Plain Layout
27021 Allow page break box
27029 \begin_layout Description
27031 \begin_inset space ~
27035 \begin_inset space ~
27038 thin This draws an oval frame around the box.
27039 The frame line thickness has the size 0.4
27040 \begin_inset space \thinspace{}
27045 \begin_inset Box ovalbox
27054 height_special "totalheight"
27057 \begin_layout Plain Layout
27067 \begin_layout Description
27069 \begin_inset space ~
27073 \begin_inset space ~
27076 thick This draws an oval frame around the box.
27077 The frame line thickness has the size 0.8
27078 \begin_inset space \thinspace{}
27083 \begin_inset Box Ovalbox
27092 height_special "totalheight"
27095 \begin_layout Plain Layout
27105 \begin_layout Description
27107 \begin_inset space ~
27110 shadow This draws a rectangle frame with a shadow around the box.
27111 The frame line thickness has the size of
27117 , the shadow has a width of 4
27118 \begin_inset space \thinspace{}
27123 \begin_inset Box Shadowbox
27132 height_special "totalheight"
27135 \begin_layout Plain Layout
27145 \begin_layout Description
27147 \begin_inset space ~
27150 background This draws a box with red background color.
27151 In contrary to colored boxes
27155 \begin_layout Plain Layout
27157 \begin_inset space \thinspace{}
27161 \begin_inset CommandInset ref
27163 reference "sec:Colored-Boxes"
27172 , it always uses the whole column width and the box is set as its own paragraph.
27174 \begin_inset Box Shaded
27183 height_special "totalheight"
27186 \begin_layout Plain Layout
27187 Shaded background box
27195 \begin_layout Description
27197 \begin_inset space ~
27201 \begin_inset space ~
27204 frame This draws a double-line rectangle frame around the box.
27205 The line thickness of the inner frame is 0.75
27206 \begin_inset space \thinspace{}
27215 , the thickness of the outer frame is 1.5
27216 \begin_inset space \thinspace{}
27226 The distance between the lines is 1.5
27227 \begin_inset space \thinspace{}
27237 \begin_inset space \thinspace{}
27241 \begin_inset space \thinspace{}
27245 \begin_inset space \thinspace{}
27250 \begin_inset Box Doublebox
27259 height_special "totalheight"
27262 \begin_layout Plain Layout
27264 Double rectangular box
27272 \begin_layout Standard
27273 \begin_inset VSpace bigskip
27276 LyX's box label will reflect the different frame types.
27277 To be able to use all types, the LaTeX-package
27285 \begin_layout Plain Layout
27286 LaTeX-packages ! fancybox
27294 \begin_layout Section
27299 \begin_layout Plain Layout
27300 Boxes ! Customization
27308 \begin_layout Standard
27309 The default value for the size
27316 \begin_inset space \thinspace{}
27320 It can be changed with the following command in TeX-Code to e.
27321 \begin_inset space \thinspace{}
27325 \begin_inset space \space{}
27329 \begin_inset space \thinspace{}
27335 \begin_layout Standard
27345 \begin_layout Standard
27349 \begin_layout Plain Layout
27361 \begin_inset Box Boxed
27370 height_special "totalheight"
27373 \begin_layout Plain Layout
27375 Rectangular box with
27382 \begin_inset space \thinspace{}
27386 \begin_inset space \thinspace{}
27390 \begin_inset space \thinspace{}
27402 \begin_layout Plain Layout
27416 \begin_layout Standard
27417 \begin_inset VSpace bigskip
27420 The space between the frame and the box content is for all frame styles
27422 \begin_inset space \thinspace{}
27426 You can change it by setting the length
27433 For example the command
27436 \begin_layout Standard
27446 \begin_layout Standard
27447 sets the value to 10
27448 \begin_inset space \thinspace{}
27451 pt, like for the following box:
27454 \begin_layout Standard
27458 \begin_layout Plain Layout
27470 \begin_inset Box Boxed
27479 height_special "totalheight"
27482 \begin_layout Plain Layout
27484 Rectangular box with
27491 \begin_inset space \thinspace{}
27495 \begin_inset space \thinspace{}
27499 \begin_inset space \thinspace{}
27511 \begin_layout Plain Layout
27525 \begin_layout Standard
27526 \begin_inset VSpace bigskip
27529 The diameter of the round corners of the oval boxes can be set with the
27540 \begin_layout Standard
27548 \begin_layout Standard
27549 sets the diameter to 1
27550 \begin_inset space \thinspace{}
27557 \begin_layout Standard
27565 \begin_layout Standard
27566 sets the diameter to
27569 \begin_inset space \thinspace{}
27573 \begin_inset space \thinspace{}
27576 minimum(width and heigth of box)
27588 \begin_layout Standard
27592 \begin_layout Plain Layout
27602 \begin_inset Box Ovalbox
27611 height_special "totalheight"
27614 \begin_layout Plain Layout
27623 \begin_inset space \thinspace{}
27627 \begin_inset space \thinspace{}
27631 \begin_inset space \thinspace{}
27643 \begin_layout Plain Layout
27655 \begin_layout Standard
27656 \begin_inset VSpace bigskip
27659 The size of the shadow can be adjusted by changing the length
27667 \begin_inset space \thinspace{}
27670 pt for the following box by this command:
27673 \begin_layout Standard
27683 \begin_layout Standard
27687 \begin_layout Plain Layout
27699 \begin_inset Box Shadowbox
27708 height_special "totalheight"
27711 \begin_layout Plain Layout
27720 \begin_inset space \thinspace{}
27724 \begin_inset space \thinspace{}
27728 \begin_inset space \thinspace{}
27740 \begin_layout Plain Layout
27754 \begin_layout Standard
27755 \begin_inset VSpace bigskip
27761 \begin_layout Standard
27762 The default value for the size
27769 \begin_inset space \thinspace{}
27773 The default space between the note content and the frame is 9
27774 \begin_inset space \thinspace{}
27777 pt and can be changed with the value of
27784 For example the frame appearance of the following
27788 is set with the TeX-Code commands
27791 \begin_layout Standard
27799 \begin_inset Newline newline
27809 \begin_layout Standard
27813 \begin_layout Plain Layout
27822 \begin_layout Plain Layout
27834 \begin_inset Box Framed
27843 height_special "totalheight"
27846 \begin_layout Plain Layout
27860 \begin_layout Plain Layout
27869 \begin_layout Plain Layout
27883 \begin_layout Standard
27884 \begin_inset VSpace bigskip
27890 \begin_layout Standard
27895 boxes the default space between the box content and the box border is 3
27896 \begin_inset space \thinspace{}
27899 pt and can be changed with the value of
27906 The default background color red can either be changed locally with the
27911 definecolor{shadebox}
27913 or globally with the menu
27915 Tools\SpecialChar \menuseparator
27916 Preferences\SpecialChar \menuseparator
27917 Colors\SpecialChar \menuseparator
27919 \begin_inset space ~
27931 command is explained in section
27932 \begin_inset space ~
27936 \begin_inset CommandInset ref
27938 reference "sec:Colored-Tables"
27946 \begin_layout Plain Layout
27953 requires the LaTeX-package
27957 in the preamble, see section
27958 \begin_inset space ~
27962 \begin_inset CommandInset ref
27964 reference "sec:Colored-Boxes"
27973 For example the appearance of the following shaded background note is set
27974 with the TeX-Code commands
27977 \begin_layout Standard
27987 \begin_inset Newline newline
27994 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
27997 \begin_layout Standard
28001 \begin_layout Plain Layout
28010 \begin_layout Plain Layout
28014 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28020 \begin_inset Box Shaded
28029 height_special "totalheight"
28032 \begin_layout Plain Layout
28035 This is yellow text in a
28045 box with dark green background.
28054 \begin_layout Plain Layout
28063 \begin_layout Plain Layout
28067 definecolor{shadecolor}{rgb}{1,0,0}
28075 \begin_layout Standard
28076 \begin_inset VSpace bigskip
28079 Changed lengths and widths are valid for all boxes following the commands
28083 \begin_layout Section
28085 \begin_inset CommandInset label
28087 name "sec:Minipages"
28095 \begin_layout Plain Layout
28104 \begin_layout Standard
28105 Minipages are treated by LaTeX as pages within pages and can therefore for
28106 example have their own footnotes.
28109 \begin_layout Standard
28110 Minipages are useful when you write documents with different languages.
28113 \begin_layout Standard
28114 Below are two example minipages side by side.
28115 Their width is set to 45
28116 \begin_inset space \thinspace{}
28119 col% and they are separated by a horizontal fill, that was inserted via
28122 Insert\SpecialChar \menuseparator
28124 \begin_inset space ~
28127 Formatting\SpecialChar \menuseparator
28129 \begin_inset space ~
28135 \begin_inset Newpage newpage
28141 \begin_layout Standard
28142 \begin_inset Box Frameless
28151 height_special "totalheight"
28154 \begin_layout Plain Layout
28157 Dies ist ein deutscher Text.
28158 Dies ist ein deutscher Text.
28159 Dies ist ein deutscher Text.
28160 Dies ist ein deutscher Text.
28161 Dies ist ein deutscher Text.
28162 Dies ist ein deutscher Text.
28163 Dies ist ein deutscher Text.
28164 Dies ist ein deutscher Text.
28165 Dies ist ein deutscher Text.
28166 Dies ist ein deutscher Text.
28167 Dies ist ein deutscher Text.
28168 Dies ist ein deutscher Text.
28169 Dies ist ein deutscher Text
28173 \begin_layout Plain Layout
28176 Dies ist eine deutsche Fußnote.
28182 Dies ist ein deutscher Text.
28183 Dies ist ein deutscher Text.
28189 \begin_inset space \hfill{}
28193 \begin_inset Box Frameless
28202 height_special "totalheight"
28205 \begin_layout Plain Layout
28206 This is an English Text.
28207 This is an English Text.
28208 This is an English Text.
28209 This is an English Text.
28210 This is an English Text.
28211 This is an English Text.
28212 This is an English Text.
28213 This is an English Text.
28214 This is an English Text.
28215 This is an English Text.
28216 This is an English Text.
28217 This is an English Text.
28218 This is an English Text.
28219 This is an English Text.
28220 This is an English Text.
28221 This is an English Text.
28225 \begin_layout Plain Layout
28226 This is an English footnote.
28231 This is an English Text.
28240 \begin_layout Standard
28241 \begin_inset VSpace bigskip
28244 Another application for minipages are footnotes within tables.
28245 Due to a LaTeX restriction footnotes within tables doesn't appear at the
28246 bottom of the current page.
28247 But when you put the table with the footnote to a minipage, the footnote
28248 will appear at its bottom, numbered with Latin letters.
28249 The footnote number is reset to 1 in every minipage but not outside the
28253 \begin_layout Standard
28254 The footnote of this table doesn't appear:
28255 \begin_inset Tabular
28256 <lyxtabular version="3" rows="3" columns="4">
28258 <column alignment="center" valignment="top" width="0pt">
28259 <column alignment="center" valignment="top" width="0pt">
28260 <column alignment="center" valignment="top" width="0pt">
28261 <column alignment="center" valignment="top" width="0pt">
28263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28266 \begin_layout Plain Layout
28272 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28275 \begin_layout Plain Layout
28281 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28284 \begin_layout Plain Layout
28289 \begin_layout Plain Layout
28290 This is a footnote within a table.
28300 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28303 \begin_layout Plain Layout
28311 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28314 \begin_layout Plain Layout
28320 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28323 \begin_layout Plain Layout
28329 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28332 \begin_layout Plain Layout
28338 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28341 \begin_layout Plain Layout
28349 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28352 \begin_layout Plain Layout
28358 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28361 \begin_layout Plain Layout
28367 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28370 \begin_layout Plain Layout
28376 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28379 \begin_layout Plain Layout
28393 \begin_layout Standard
28395 \begin_inset Box Frameless
28404 height_special "totalheight"
28407 \begin_layout Plain Layout
28409 \begin_inset Tabular
28410 <lyxtabular version="3" rows="3" columns="4">
28412 <column alignment="center" valignment="top" width="0pt">
28413 <column alignment="center" valignment="top" width="0pt">
28414 <column alignment="center" valignment="top" width="0pt">
28415 <column alignment="center" valignment="top" width="0pt">
28417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28420 \begin_layout Plain Layout
28426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28429 \begin_layout Plain Layout
28435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28438 \begin_layout Plain Layout
28443 \begin_layout Plain Layout
28444 This is a footnote within a table.
28454 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28457 \begin_layout Plain Layout
28465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28468 \begin_layout Plain Layout
28474 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28477 \begin_layout Plain Layout
28483 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28486 \begin_layout Plain Layout
28492 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28495 \begin_layout Plain Layout
28503 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28506 \begin_layout Plain Layout
28512 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28515 \begin_layout Plain Layout
28521 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28524 \begin_layout Plain Layout
28530 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28533 \begin_layout Plain Layout
28552 \begin_layout Standard
28553 \begin_inset VSpace bigskip
28556 The document-wide paragraph settings are ignored within minipages.
28557 That means that there will be no space between paragraphs in minipages
28558 although you set it to e.
28559 \begin_inset space \thinspace{}
28563 \begin_inset space \space{}
28570 in the document settings.
28573 \begin_layout Standard
28574 Minipages can also be used to set a background color for text parts, see
28576 \begin_inset space ~
28580 \begin_inset CommandInset ref
28582 reference "sub:Color-for-Paragraphs"
28589 \begin_layout Standard
28590 \begin_inset Note Greyedout
28593 \begin_layout Plain Layout
28598 You cannot have floats or margin notes inside minipages but minipages can
28599 be used inside tables, floats, and other boxes.
28607 \begin_layout Section
28609 \begin_inset CommandInset label
28611 name "sec:Parboxes"
28619 \begin_layout Plain Layout
28628 \begin_layout Standard
28629 Parboxes are very similar to minipages with the difference that they cannot
28631 The main difference to minipages is that minipages are in contrary to parboxes
28632 no real boxes but LaTeX-environments.
28635 \begin_layout Standard
28637 \begin_inset Box Frameless
28646 height_special "totalheight"
28649 \begin_layout Plain Layout
28650 This a text within a parbox.
28651 This a text within a parbox.
28654 \begin_layout Plain Layout
28655 This footnote won't appear:
28659 \begin_layout Plain Layout
28660 This footnote is inside a parbox and will therefore not appear.
28673 \begin_layout Section
28674 Boxes for Words and Characters
28678 \begin_layout Plain Layout
28679 Boxes ! for Characters
28687 \begin_layout Subsection
28688 Prevent Hyphenation
28689 \begin_inset CommandInset label
28691 name "sec:Prevent-Hyphenation"
28699 \begin_layout Plain Layout
28700 Boxes ! to Prevent Hyphenation
28708 \begin_layout Standard
28709 You can use a special kind of boxes to prevent words or text to be hyphenated.
28710 \begin_inset Newline newline
28713 Here is an example text:
28716 \begin_layout Standard
28717 This line is an example to show how you can prevent the hyphenation of
28718 \begin_inset Quotes eld
28722 \begin_inset Quotes erd
28728 \begin_layout Standard
28729 To prevent the hyphenation of the word
28730 \begin_inset Quotes eld
28734 \begin_inset Quotes erd
28740 \begin_layout Standard
28748 \begin_layout Standard
28749 in TeX-Code before the word.
28750 Behind the word insert a closing brace
28751 \begin_inset Quotes eld
28759 \begin_inset Quotes erd
28765 \begin_layout Standard
28766 This is the result:
28769 \begin_layout Standard
28770 This line is an example to show how you can prevent the hyphenation of
28774 \begin_layout Plain Layout
28784 \begin_inset Quotes eld
28788 \begin_inset Quotes erd
28795 \begin_layout Plain Layout
28805 \begin_layout Standard
28806 You can alternatively set the command
28807 \begin_inset Quotes eld
28817 \begin_inset Quotes grd
28820 as TeX-Code directly before the word:
28823 \begin_layout Standard
28824 This line is an example to show how you can prevent the hyphenation of
28825 \begin_inset Quotes eld
28832 \begin_layout Plain Layout
28842 \begin_inset Quotes erd
28848 \begin_layout Standard
28849 Of course the word now protrudes over the side margin.
28850 To avoid this, add via the menu
28852 Insert\SpecialChar \menuseparator
28854 \begin_inset space ~
28857 Formatting\SpecialChar \menuseparator
28859 \begin_inset space ~
28867 arg "newline-insert newline"
28870 ) a line break before the word:
28873 \begin_layout Standard
28874 This line is an example to show how you can prevent the hyphenation of
28875 \begin_inset Newline newline
28882 \begin_layout Plain Layout
28892 \begin_inset Quotes eld
28896 \begin_inset Quotes erd
28903 \begin_layout Plain Layout
28913 \begin_layout Subsection
28915 \begin_inset CommandInset label
28917 name "sub:Vertical-Alignment"
28925 \begin_layout Plain Layout
28926 Boxes ! for Vertical Alignment
28935 \begin_layout Plain Layout
28944 \begin_layout Standard
28945 With the help of the command
28951 you can align words, characters or other boxes vertically to the surrounding
28959 is used with the following scheme:
28962 \begin_layout Standard
28967 raisebox{lift}[height][depth]{box content}
28970 \begin_layout Standard
28971 The lift can be a positive value to raise the box or a negative value to
28975 \begin_layout Standard
28976 To align for example the word
28977 \begin_inset Quotes eld
28981 \begin_inset Quotes erd
28984 so that the bottom of the
28985 \begin_inset Quotes eld
28989 \begin_inset Quotes erd
28993 \begin_inset Quotes eld
28997 \begin_inset Quotes erd
29000 is at the baseline, insert the command
29003 \begin_layout Standard
29013 \begin_layout Standard
29014 in TeX-Code before the word.
29015 Behind the word insert a closing brace
29016 \begin_inset Quotes eld
29024 \begin_inset Quotes erd
29028 \begin_inset Newline newline
29031 This is the result:
29034 \begin_layout Standard
29035 This is a text line with the word
29039 \begin_layout Plain Layout
29051 \begin_inset Quotes eld
29055 \begin_inset Quotes erd
29062 \begin_layout Plain Layout
29072 \begin_layout Standard
29073 \begin_inset VSpace bigskip
29076 When you raise or lower characters in a line, the line distance will be
29080 \begin_layout Standard
29081 This is a text line with the word
29085 \begin_layout Plain Layout
29097 \begin_inset Quotes eld
29101 \begin_inset Quotes erd
29108 \begin_layout Plain Layout
29116 \begin_inset Newline newline
29119 This is a text line with the word
29123 \begin_layout Plain Layout
29133 \begin_inset Quotes eld
29137 \begin_inset Quotes erd
29144 \begin_layout Plain Layout
29154 \begin_layout Standard
29155 If you want to prevent this for a certain reason, set the box height to
29160 \begin_layout Standard
29170 \begin_layout Standard
29171 This is a text line with the word
29175 \begin_layout Plain Layout
29187 \begin_inset Quotes eld
29191 \begin_inset Quotes erd
29198 \begin_layout Plain Layout
29206 \begin_inset Newline newline
29209 This is a text line with the word
29213 \begin_layout Plain Layout
29217 raisebox{0.5cm}[0pt]{
29223 \begin_inset Quotes eld
29227 \begin_inset Quotes erd
29234 \begin_layout Plain Layout
29244 \begin_layout Section
29246 \begin_inset CommandInset label
29248 name "sec:Colored-Boxes"
29256 \begin_layout Plain Layout
29265 \begin_layout Subsection
29270 \begin_layout Plain Layout
29279 \begin_layout Standard
29280 To color the background of text the text must be put into a so called
29281 \begin_inset Quotes eld
29285 \begin_inset Quotes erd
29289 This requires that the LaTeX-package
29297 \begin_layout Plain Layout
29298 LaTeX-packages ! color
29303 is loaded in the document preamble with the command
29306 \begin_layout Standard
29311 @ifundefined{textcolor}
29312 \begin_inset Newline newline
29319 \begin_layout Plain Layout
29330 usepackage{color}}{}
29333 \begin_layout Standard
29338 will be loaded automatically by LyX when you color text
29342 \begin_layout Plain Layout
29343 To avoid that it is loaded twice the command
29357 \begin_layout Standard
29358 \begin_inset VSpace medskip
29361 Colorboxes are created with the command
29368 This will be used with the following scheme:
29371 \begin_layout Standard
29376 colorbox{color}{box content}
29379 \begin_layout Standard
29380 The box content can also be a box and colorboxes can also be within other
29384 \begin_layout Standard
29385 The following colors are predefined:
29386 \begin_inset Newline newline
29425 \begin_inset Newline newline
29428 You can also define your own color as described in section
29429 \begin_inset space ~
29433 \begin_inset CommandInset ref
29435 reference "sec:Colored-Tables"
29442 \begin_layout Standard
29444 \begin_inset space \thinspace{}
29448 \begin_inset space \space{}
29451 a red background for a word, insert the command
29454 \begin_layout Standard
29462 \begin_layout Standard
29463 before the word in TeX-Code.
29464 Behind the word insert a closing brace
29465 \begin_inset Quotes eld
29473 \begin_inset Quotes erd
29477 \begin_inset Newline newline
29480 This is the result:
29483 \begin_layout Standard
29484 This is a line where the word
29488 \begin_layout Plain Layout
29498 \begin_inset Quotes eld
29502 \begin_inset Quotes erd
29509 \begin_layout Plain Layout
29516 has a red background.
29519 \begin_layout Standard
29520 \begin_inset VSpace bigskip
29523 If you would have the box frame in a different color, you can use the command
29530 with the following scheme:
29533 \begin_layout Standard
29538 fcolorbox{frame color}{box color}{box content}
29541 \begin_layout Standard
29555 The frame thickness and the space between the frame and the box content
29556 can be adjusted with the lengths
29568 , respectively, as described in section
29569 \begin_inset space ~
29573 \begin_inset CommandInset ref
29575 reference "sec:Decoration"
29582 \begin_layout Standard
29583 For the following example the command
29586 \begin_layout Standard
29591 fcolorbox{cyan}{magenta}{
29594 \begin_layout Standard
29598 \begin_layout Standard
29599 Here is an example where the frame line thickness was set to 1
29600 \begin_inset space \thinspace{}
29604 \begin_inset Newline newline
29611 \begin_layout Plain Layout
29626 \begin_layout Plain Layout
29630 fcolorbox{cyan}{magenta}{
29635 This is text within a colored, framed box.
29639 \begin_layout Plain Layout
29649 \begin_layout Standard
29650 \begin_inset VSpace bigskip
29653 Of course you can also have colored text inside a colorbox:
29654 \begin_inset Newline newline
29661 \begin_layout Plain Layout
29665 fcolorbox{cyan}{magenta}{
29672 This is colored text within a colored, framed box.
29678 \begin_layout Plain Layout
29689 \begin_layout Plain Layout
29703 \begin_layout Standard
29706 \begin_inset VSpace medskip
29712 \begin_layout Standard
29713 \begin_inset Note Greyedout
29716 \begin_layout Plain Layout
29721 Text in colorboxes cannot have line breaks.
29722 To color multiple text lines or paragraphs, use a box inside a colorbox
29723 as described in the following.
29731 \begin_layout Subsection
29732 Color for Paragraphs
29733 \begin_inset CommandInset label
29735 name "sub:Color-for-Paragraphs"
29743 \begin_layout Plain Layout
29744 Color ! for Paragraphs
29752 \begin_layout Standard
29753 To set the background color for more than one text line, put the text into
29755 Before the minipage insert the
29764 \begin_layout Standard
29772 \begin_layout Standard
29774 Behind the minipage insert a closing brace
29775 \begin_inset Quotes eld
29783 \begin_inset Quotes erd
29789 \begin_layout Standard
29793 \begin_layout Plain Layout
29797 colorbox{lightgrey}{
29803 \begin_inset Box Frameless
29812 height_special "totalheight"
29815 \begin_layout Plain Layout
29816 This is text with background color.
29817 This is text with background color.
29820 \begin_layout Plain Layout
29821 \begin_inset VSpace defskip
29824 The text can have footnotes
29828 \begin_layout Plain Layout
29829 Another example footnote
29834 and can include tables and figures.
29837 \begin_layout Plain Layout
29839 \begin_inset Tabular
29840 <lyxtabular version="3" rows="3" columns="3">
29842 <column alignment="center" valignment="top" width="0">
29843 <column alignment="center" valignment="top" width="0">
29844 <column alignment="center" valignment="top" width="0">
29846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29849 \begin_layout Plain Layout
29855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29858 \begin_layout Plain Layout
29864 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29867 \begin_layout Plain Layout
29875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29878 \begin_layout Plain Layout
29884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29887 \begin_layout Plain Layout
29889 \begin_inset Quotes erd
29897 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29900 \begin_layout Plain Layout
29908 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29911 \begin_layout Plain Layout
29917 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29920 \begin_layout Plain Layout
29926 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29929 \begin_layout Plain Layout
29949 \begin_layout Plain Layout
29959 \begin_layout Section
29960 Rotated and Scaled Boxes
29963 \begin_layout Standard
29964 To use the the commands described in this section, the LaTeX-package
29972 \begin_layout Plain Layout
29973 LaTeX-packages ! graphicx
29978 needs to be loaded in the document preamble with the command
29981 \begin_layout Standard
29986 @ifundefined{rotatebox}
29987 \begin_inset Newline newline
29994 \begin_layout Plain Layout
30005 usepackage{graphicx}}{}
30008 \begin_layout Standard
30009 \begin_inset Note Greyedout
30012 \begin_layout Plain Layout
30017 Some DVI-viewers can't display rotated or scaled material.
30025 \begin_layout Standard
30026 \begin_inset Note Greyedout
30029 \begin_layout Plain Layout
30034 Floats mustn't be inside a rotated or scaled box.
30042 \begin_layout Subsection
30047 \begin_layout Plain Layout
30057 \begin_layout Plain Layout
30067 \begin_layout Plain Layout
30077 \begin_layout Plain Layout
30078 Table Customization ! Rotating
30086 \begin_layout Standard
30087 To rotate material, you can put it into a rotated box.
30088 Such a box is created using the command
30094 in TeX-Code with the following scheme:
30097 \begin_layout Standard
30102 rotatebox[rotation origin]{rotation angle}{box content}
30105 \begin_layout Standard
30106 The rotation origin is specified in the form
30111 The following positions are possible:
30131 (top), and also expedient combinations of the four base positions.
30136 means, that the rotation origin is at the top left corner of the box.
30137 When no rotation origin is specified, the position
30142 The rotation angle is a number that can be negative that specifies the
30144 The rotation direction is counterclockwise.
30147 \begin_layout Standard
30148 In the following example the command
30152 rotatebox[origin=c]{60}{
30154 was inserted as TeX-Code before the text
30155 \begin_inset Quotes eld
30159 \begin_inset Quotes erd
30162 ; after the text the box was closed by a closing brace
30169 \begin_layout Standard
30174 \begin_layout Plain Layout
30178 rotatebox[origin=c]{60}{
30187 \begin_layout Plain Layout
30197 \begin_layout Standard
30198 The box content can also be another box or an inline formula:
30201 \begin_layout Standard
30206 \begin_layout Plain Layout
30210 rotatebox[origin=r]{-60}{
30216 \begin_inset Box Doublebox
30225 height_special "totalheight"
30228 \begin_layout Plain Layout
30238 \begin_layout Plain Layout
30249 \begin_layout Plain Layout
30253 rotatebox[origin=lb]{60}{
30259 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30266 \begin_layout Plain Layout
30276 \begin_layout Standard
30277 or an image or table:
30280 \begin_layout Standard
30285 \begin_layout Plain Layout
30289 rotatebox[origin=lb]{90}{
30295 \begin_inset Graphics
30296 filename clipart/platypus.eps
30306 \begin_layout Plain Layout
30313 with a rotated image
30317 \begin_layout Plain Layout
30321 rotatebox[origin=l]{-90}{
30327 \begin_inset Tabular
30328 <lyxtabular version="3" rows="2" columns="2">
30330 <column alignment="center" valignment="top" width="0">
30331 <column alignment="center" valignment="top" width="0">
30333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30336 \begin_layout Plain Layout
30342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30345 \begin_layout Plain Layout
30353 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30356 \begin_layout Plain Layout
30362 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30365 \begin_layout Plain Layout
30380 \begin_layout Plain Layout
30390 \begin_layout Subsection
30395 \begin_layout Plain Layout
30405 \begin_layout Plain Layout
30415 \begin_layout Plain Layout
30425 \begin_layout Plain Layout
30426 Table Customization ! Scaling
30434 \begin_layout Standard
30435 To scale material the commands
30447 can be used as TeX-Code.
30450 \begin_layout Standard
30457 is used with the following scheme:
30460 \begin_layout Standard
30465 scalebox{horizontal}[vertical]{box content}
30468 \begin_layout Standard
30469 Horizontal and vertical are the corresponding scaling factors.
30470 If no vertical scaling factor is given, the horizontal factor will also
30471 be used as vertical one.
30474 \begin_layout Standard
30481 creates for example a double size
30485 \begin_layout Plain Layout
30498 \begin_layout Plain Layout
30505 , compared to the document text size.
30508 \begin_layout Standard
30513 scalebox{2}[1]{Hello}
30515 in contrary distorts the
30519 \begin_layout Plain Layout
30532 \begin_layout Plain Layout
30542 \begin_layout Standard
30543 If a the scaling factor is negative, the box content will be mirrored.
30544 Therefore the command
30548 scalebox{-1}[1]{Hello}
30550 can be used to create mirror writing:
30554 \begin_layout Plain Layout
30567 \begin_layout Plain Layout
30577 \begin_layout Standard
30582 scalebox{1}[-1]{Hello}
30588 \begin_layout Plain Layout
30601 \begin_layout Plain Layout
30611 \begin_layout Standard
30616 scalebox{-1}[1]{box content}
30618 there exists the command
30619 \begin_inset Newline newline
30626 reflectbox{box content}
30631 \begin_layout Standard
30632 \begin_inset VSpace bigskip
30641 is used to scale the box to a defined width and height.
30642 The command scheme is:
30645 \begin_layout Standard
30650 resizebox{width}{height}{box content}
30653 \begin_layout Standard
30654 Is one of the two command arguments given as exclamation mark
30658 , the size is set so that the aspect ratio of the box content is kept.
30661 \begin_layout Standard
30666 resizebox{2cm}{1cm}{Hello}
30672 \begin_layout Plain Layout
30676 resizebox{2cm}{1cm}{
30685 \begin_layout Plain Layout
30693 \begin_inset Newline newline
30700 resizebox{2cm}{!}{Hello}
30706 \begin_layout Plain Layout
30719 \begin_layout Plain Layout
30729 \begin_layout Standard
30730 \begin_inset VSpace bigskip
30734 \begin_inset Note Greyedout
30737 \begin_layout Plain Layout
30754 are set to zero, no LaTeX-errors occur when exporting the document but
30755 the exported files can not or only partly be displayed.
30763 \begin_layout Standard
30764 \begin_inset VSpace bigskip
30770 \begin_layout Standard
30771 The boxes can be combined in any order.
30773 \begin_inset space \thinspace{}
30777 \begin_inset space \space{}
30781 \begin_inset Newline newline
30788 rotatebox[origin=c]{-45}{
30792 reflectbox{Hello}}}
30793 \begin_inset Newline newline
30801 \begin_layout Standard
30806 \begin_layout Plain Layout
30810 rotatebox[origin=c]{-45}{
30823 \begin_layout Plain Layout
30833 \begin_layout Standard
30835 Images, tables, and inline formulas are allowed as box content:
30838 \begin_layout Standard
30843 \begin_layout Plain Layout
30847 rotatebox[origin=c]{-30}{
30857 \begin_inset Graphics
30858 filename clipart/platypus.eps
30868 \begin_layout Plain Layout
30879 \begin_layout Plain Layout
30883 rotatebox[origin=c]{-45}{
30893 \begin_inset Tabular
30894 <lyxtabular version="3" rows="2" columns="2">
30896 <column alignment="center" valignment="top" width="0">
30897 <column alignment="center" valignment="top" width="0">
30899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30902 \begin_layout Plain Layout
30908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30911 \begin_layout Plain Layout
30919 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30922 \begin_layout Plain Layout
30928 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30931 \begin_layout Plain Layout
30946 \begin_layout Plain Layout
30957 \begin_layout Plain Layout
30961 rotatebox[origin=c]{-45}{
30971 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30978 \begin_layout Plain Layout
30988 \begin_layout Standard
30989 When the global formula style
30993 is used in the document
30997 \begin_layout Plain Layout
30999 \begin_inset Quotes eld
31003 \begin_inset Quotes erd
31006 is added to the document class options.
31011 , also display formulas can be scaled.
31014 \begin_layout Chapter
31019 \begin_layout Plain Layout
31028 \begin_layout Standard
31031 Insert\SpecialChar \menuseparator
31034 you can insert external material to your document.
31038 \begin_layout Description
31040 \begin_inset space ~
31043 Document Another LyX document; its content is directly inserted to your
31047 \begin_layout Description
31049 \begin_inset space ~
31052 Text A text document; every of its text lines is inserted to your document
31056 \begin_layout Description
31058 \begin_inset space ~
31062 \begin_inset space ~
31066 \begin_inset space ~
31069 Lines A text document; its text lines are inserted as they are.
31070 Empty text lines creates a new paragraph in your document.
31073 \begin_layout Description
31075 \begin_inset space ~
31078 Material Files in various formats.
31081 \begin_layout Description
31083 \begin_inset space ~
31086 Document LyX or LaTeX-documents.
31089 \begin_layout Section
31094 \begin_layout Plain Layout
31095 External Stuff ! External Material
31103 \begin_layout Standard
31104 The external material feature allows you to insert files to your document
31105 without converting them previously to a format that can be read by the
31106 document output format because LyX takes care of needed conversions.
31107 This is similar to images that can be inserted in various image formats
31109 When you have enabled Instant Preview in LyX's preferences under
31112 \begin_inset space ~
31116 \begin_inset space ~
31119 feel\SpecialChar \menuseparator
31122 , the external material types Dia and Xfig is directly shown in LyX.
31125 \begin_layout Standard
31126 External material can be inserted via the
31130 dialog that is accessible with the menu
31132 Insert\SpecialChar \menuseparator
31133 File\SpecialChar \menuseparator
31135 \begin_inset space ~
31141 Currently the following file types (
31148 \begin_layout Description
31149 ChessDiagram This template supports chess position diagrams made with the
31153 \begin_inset CommandInset href
31156 target "http://en.wikipedia.org/wiki/XBoard"
31165 \begin_layout Description
31166 Date This inserts the date in the form
31171 This is a date inserted as external material:
31172 \begin_inset External
31179 \begin_inset space ~
31183 \begin_inset Note Note
31186 \begin_layout Plain Layout
31187 Remove the protected space when bug 4398 is fixed!
31193 \begin_inset Newline newline
31196 The date is not shown within LyX, only in the output.
31197 There are two other methods of inserting a date: Via menu
31199 Insert\SpecialChar \menuseparator
31202 and with the LaTeX command
31209 The different methods are compared in Table
31210 \begin_inset space ~
31214 \begin_inset CommandInset ref
31216 reference "tab:Comparison-of-the"
31223 \begin_layout Description
31224 Dia This template supports diagrams created with the program
31227 \begin_inset CommandInset href
31230 target "http://en.wikipedia.org/wiki/Dia_(software)"
31239 \begin_layout Description
31240 LilyPond This template is used for music notation typeset with the program
31241 \begin_inset Newline linebreak
31247 \begin_inset CommandInset href
31250 target "http://en.wikipedia.org/wiki/LilyPond"
31259 \begin_layout Description
31260 PDFPages With this template you can insert PDF documents to your document.
31261 To insert certain or all pages of a PDF, use the
31271 LaTeX and LyX options
31273 tab according to the template description in the dialog.
31278 option is given, only the first page of the PDF will be inserted.
31281 \begin_layout Description
31282 RasterImage This can be used for bitmap images.
31283 Nearly all popular image formats are supported.
31284 The image can be treated in the
31288 dialog like the images that are usually included via the
31292 dialog as described in section
31293 \begin_inset space ~
31297 \begin_inset CommandInset ref
31299 reference "sec:Graphics-Dialog"
31304 The difference is that only raster images are allowed, that means that
31305 PDF and EPS-images are not supported.
31308 \begin_layout Description
31309 XFig This template supports images created with the program
31312 \begin_inset CommandInset href
31315 target "http://en.wikipedia.org/wiki/Xfig"
31324 \begin_layout Standard
31325 \begin_inset Float table
31331 \begin_layout Plain Layout
31332 \begin_inset Caption
31334 \begin_layout Plain Layout
31335 \begin_inset CommandInset label
31337 name "tab:Comparison-of-the"
31341 Comparison of the date input methods.
31349 \begin_layout Plain Layout
31351 \begin_inset Tabular
31352 <lyxtabular version="3" rows="4" columns="4">
31354 <column alignment="center" valignment="top" width="0">
31355 <column alignment="center" valignment="top" width="0">
31356 <column alignment="center" valignment="top" width="0">
31357 <column alignment="center" valignment="top" width="0">
31359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31362 \begin_layout Plain Layout
31368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31371 \begin_layout Plain Layout
31374 External Material\SpecialChar \menuseparator
31380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31383 \begin_layout Plain Layout
31386 Insert\SpecialChar \menuseparator
31392 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31395 \begin_layout Plain Layout
31407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31410 \begin_layout Plain Layout
31416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31419 \begin_layout Plain Layout
31425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31428 \begin_layout Plain Layout
31434 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31437 \begin_layout Plain Layout
31438 as TeX-Code inset box
31445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31448 \begin_layout Plain Layout
31454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31457 \begin_layout Plain Layout
31463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31466 \begin_layout Plain Layout
31472 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31475 \begin_layout Plain Layout
31483 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31486 \begin_layout Plain Layout
31492 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31495 \begin_layout Plain Layout
31501 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31504 \begin_layout Plain Layout
31510 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31513 \begin_layout Plain Layout
31532 \begin_layout Standard
31533 When you use the option
31545 dialog, only the path to the inserted file is shown in the output.
31546 \begin_inset Newline newline
31549 External material is displayed in LyX either as box like this:
31550 \begin_inset Graphics
31551 filename clipart/ExternalMaterialQt4.png
31553 scaleBeforeRotation
31557 or as image, depending on the option
31563 LaTeX and LyX options
31568 \begin_layout Standard
31575 manual explains how you can define your own templates.
31578 \begin_layout Section
31580 \begin_inset CommandInset label
31582 name "sec:Child-Documents"
31590 \begin_layout Plain Layout
31591 External Stuff ! Child Documents
31600 \begin_layout Plain Layout
31609 \begin_layout Standard
31610 Child documents are used when you have a long document consisting of several
31611 larger parts or sections.
31612 For maintenance it is often useful and sometimes even required to split
31613 the document in several files that can be revised separately.
31614 The different documents are then the so called child documents and a master
31615 document connects them to print the full document or parts of it.
31616 A child documents inherits contents of its master, for example the bibliography
31617 and the labels for cross-references.
31620 \begin_layout Standard
31621 To be able to work on child documents without the need to open its master,
31622 specify in the child document the master in the menu
31624 Document\SpecialChar \menuseparator
31625 Settings\SpecialChar \menuseparator
31627 \begin_inset space ~
31633 This master file will then be used in the background by LyX when you edit
31634 the child document.
31637 \begin_layout Standard
31638 Included documents are displayed in LyX as a box like this:
31639 \begin_inset Graphics
31640 filename clipart/ChildDocumentQt4.png
31642 scaleBeforeRotation
31646 To include child documents to a master document use the menu
31648 Insert\SpecialChar \menuseparator
31649 File\SpecialChar \menuseparator
31651 \begin_inset space ~
31657 A dialog pops up where you can choose between four include methods:
31660 \begin_layout Description
31661 Include You can include LyX and LaTeX-documents.
31670 dialog, the included documents will be opened in LyX in a new file tab
31671 so that you can modify it.
31672 \begin_inset Newline newline
31678 \begin_layout Standard
31679 Here is a child document inserted using
31684 \begin_inset CommandInset include
31685 LatexCommand include
31686 filename "DummyDocument1.lyx"
31693 \begin_layout Standard
31694 The section numbering includes the sections of the included files in the
31695 order they are inserted in the master document.
31696 The included example document has for example a subsection that is numbered
31697 as subsection of this section.
31698 Labels of included documents can be referenced: Subsection
31699 \begin_inset space ~
31703 \begin_inset CommandInset ref
31705 reference "sub:External-Subsection-1"
31712 \begin_layout Standard
31713 The preamble of the child document is ignored, only the preamble of the
31714 master document is used.
31715 Included documents are inserted starting on a new page and end with a page
31719 \begin_layout Standard
31720 With the LaTeX-command
31726 you can specify which included child documents are processed when the output
31728 This is useful when you are perhaps only working on a certain chapter of
31729 your large document as this saves compiling time.
31736 is inserted to the master document preamble.
31737 It takes a comma-separated list of the filenames as argument, e.
31738 \begin_inset space \thinspace{}
31744 \begin_layout Standard
31749 includeonly{chapter1,chapter5}
31752 \begin_layout Standard
31753 will only process the included files named
31754 \begin_inset Quotes eld
31758 \begin_inset Quotes erd
31762 \begin_inset Quotes eld
31766 \begin_inset Quotes erd
31770 \begin_inset Quotes eld
31774 \begin_inset Quotes erd
31780 \begin_layout Standard
31781 \begin_inset Note Greyedout
31784 \begin_layout Plain Layout
31789 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
31790 w the document in case that the child document uses another document class
31791 than the master document as this will lead to unexpected outputs.
31799 \begin_layout Description
31800 Input This method is very similar to the Include method.
31801 The differences are:
31805 \begin_layout Itemize
31806 Input files don't start with a new page and don't end with a page break.
31809 \begin_layout Itemize
31810 Input files can be previewed in LyX when
31813 \begin_inset space ~
31818 is enabled in LyX's preferences under
31821 \begin_inset space ~
31825 \begin_inset space ~
31828 feel\SpecialChar \menuseparator
31834 \begin_layout Itemize
31845 \begin_layout Standard
31846 Here is a child document inserted using
31851 \begin_inset CommandInset include
31853 filename "DummyDocument2.lyx"
31860 \begin_layout Description
31861 Verbatim With this method every text file can be included.
31862 The file is shown in the output with its source code, no command used in
31863 the text is invoked.
31864 You can use the option
31866 Mark spaces in output
31868 that displays the character
31869 \begin_inset Quotes eld
31876 \begin_layout Plain Layout
31886 \begin_inset Quotes erd
31889 for every space character in the source code.
31890 The difference to the method via the menu
31892 Insert\SpecialChar \menuseparator
31893 File\SpecialChar \menuseparator
31895 \begin_inset space ~
31900 is that the document content is not shown in LyX.
31903 \begin_layout Standard
31904 Here is a child document inserted as Verbatim:
31905 \begin_inset CommandInset include
31906 LatexCommand verbatiminput
31907 filename "DummyTextDocument.txt"
31912 \begin_inset VSpace bigskip
31915 Here is a child document inserted as Verbatim using the
31917 Mark spaces in output
31920 \begin_inset CommandInset include
31921 LatexCommand verbatiminput*
31922 filename "DummyTextDocument.txt"
31929 \begin_layout Standard
31930 \begin_inset VSpace bigskip
31936 \begin_layout Standard
31937 \begin_inset Note Greyedout
31940 \begin_layout Plain Layout
31945 As you can see in the examples above, the text of the documents included
31950 is not broken at the end of the document lines.
31958 \begin_layout Description
31959 Listings This type is described in chapter
31960 \begin_inset space ~
31964 \begin_inset CommandInset ref
31966 reference "cha:Program-Code-Listings"
31973 \begin_layout Standard
31974 \begin_inset Note Greyedout
31977 \begin_layout Plain Layout
31982 Including the same document twice in a document using different methods
31983 could cause LaTeX-problems.
31991 \begin_layout Chapter
31992 Program Code Listings
31993 \begin_inset CommandInset label
31995 name "cha:Program-Code-Listings"
32003 \begin_layout Plain Layout
32013 \begin_layout Plain Layout
32023 \begin_layout Plain Layout
32032 \begin_layout Standard
32033 To include and typeset program code you can use the
32037 inset that can be inserted via the menu
32039 Insert\SpecialChar \menuseparator
32051 \begin_layout Plain Layout
32052 LaTeX-packages ! listings
32057 provides a powerful and flexible way to insert program source code to your
32061 \begin_layout Standard
32062 Right-clicking on a listings inset opens the context menu containing where
32063 you can set the listings format.
32066 \begin_layout Standard
32067 By default, a listing starts a new paragraph in the output.
32068 The placement option
32071 \begin_inset space ~
32076 prints the listing inline like this:
32077 \begin_inset listings
32078 lstparams "language={C++}"
32082 \begin_layout Plain Layout
32090 \begin_inset Newline newline
32097 creates a listings float where you can specify the placement options
32098 \begin_inset Quotes eld
32106 \begin_inset Quotes erd
32110 \begin_inset Quotes eld
32118 \begin_inset Quotes erd
32122 \begin_inset Quotes eld
32130 \begin_inset Quotes erd
32134 \begin_inset Quotes eld
32142 \begin_inset Quotes erd
32145 corresponding to the float placement options described in section
32146 \begin_inset space ~
32150 \begin_inset CommandInset ref
32152 reference "sec:Float-Placement"
32157 The placement options can be mixed and are inserted without any separation,
32159 \begin_inset space \thinspace{}
32163 \begin_inset space \space{}
32167 \begin_inset Quotes eld
32175 \begin_inset Quotes erd
32180 \begin_inset Quotes eld
32184 \begin_inset Quotes erd
32187 has sometimes no effect, but you don't need to use the
32191 option in this case as also non-float listings can have captions and be
32195 \begin_layout Standard
32196 You can add captions to listings with the menu
32198 Insert\SpecialChar \menuseparator
32202 Listings can be referenced like floats: Listing
32203 \begin_inset space ~
32207 \begin_inset CommandInset ref
32209 reference "lst:Example-Listing"
32216 \begin_layout Standard
32217 \begin_inset listings
32218 lstparams "language=Python"
32222 \begin_layout Plain Layout
32224 \begin_inset Caption
32226 \begin_layout Plain Layout
32227 \begin_inset CommandInset label
32229 name "lst:Example-Listing"
32233 Example Listing float
32238 # Example listing float
32241 \begin_layout Plain Layout
32246 \begin_layout Plain Layout
32248 'this is a python function'
32251 \begin_layout Plain Layout
32261 \begin_layout Standard
32262 When you have set a programming language in the listings dialog, the keywords
32263 of this language will be recognized and specially typeset in the output.
32264 In the example listings the Python keyword
32265 \begin_inset Quotes eld
32269 \begin_inset Quotes erd
32272 is recognized and printed bold in the output.
32275 \begin_layout Standard
32276 \begin_inset Note Greyedout
32279 \begin_layout Plain Layout
32284 If you don't get bold keywords when using typewriter fonts, your
32288 font probably doesn't provide a bold shape.
32289 In this case select a different one in the menu
32291 Document\SpecialChar \menuseparator
32292 Settings\SpecialChar \menuseparator
32304 provide bold shapes.)
32312 \begin_layout Standard
32316 \begin_inset space ~
32321 of the listings dialog you can specify the line numbering style.
32322 You can insert a number to specify which lines are numbered to the field
32329 \begin_inset space \thinspace{}
32333 \begin_inset space \space{}
32337 \begin_inset Quotes eld
32341 \begin_inset Quotes erd
32344 , only every 3rd line will be numbered.
32347 \begin_layout Standard
32348 You can furthermore specify a range of lines, only these will then appear
32352 Extended character table
32354 should be used when you use national characters like the German umlauts
32356 \begin_inset Newline newline
32359 Here is an example listing with left line numbering, step
32360 \begin_inset Quotes eld
32364 \begin_inset Quotes erd
32368 \begin_inset Quotes eld
32372 \begin_inset Quotes erd
32376 \begin_inset Quotes eld
32379 Extended character table
32380 \begin_inset Quotes erd
32384 \begin_inset Quotes eld
32388 \begin_inset space ~
32392 \begin_inset space ~
32396 \begin_inset Quotes erd
32400 \begin_inset space \thinspace{}
32404 \begin_inset space \thinspace{}
32410 \begin_layout Standard
32411 \begin_inset listings
32412 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
32416 \begin_layout Plain Layout
32421 \begin_layout Plain Layout
32423 'this is a python function'
32426 \begin_layout Plain Layout
32431 \begin_layout Plain Layout
32436 \begin_layout Plain Layout
32438 'This is a German word: Tschüß'
32441 \begin_layout Plain Layout
32446 \begin_layout Plain Layout
32451 \begin_layout Plain Layout
32453 'this is a python function'
32456 \begin_layout Plain Layout
32466 \begin_layout Standard
32467 When you have tabulators in your listing, you can specify the number of
32468 characters that are spanned by a tabulator in the field
32471 \begin_inset space ~
32479 \begin_layout Standard
32480 \begin_inset Note Greyedout
32483 \begin_layout Plain Layout
32488 Due to a bug in the
32492 package the line numbering is shifted by a line by every previous listing.
32493 That's the reason why the lines 2 and 5 are numbered in the above listing
32494 and not the lines 3 and 6.
32502 \begin_layout Standard
32503 \begin_inset VSpace bigskip
32509 \begin_layout Standard
32510 It is also possible to print lines from a file as listing.
32511 To do this, use the menu
32513 Insert\SpecialChar \menuseparator
32514 File\SpecialChar \menuseparator
32517 and choose the type
32525 \begin_layout Plain Layout
32526 The other child document types are described in section
32527 \begin_inset space ~
32531 \begin_inset CommandInset ref
32533 reference "sec:Child-Documents"
32542 In the child document dialog you can specify the listing parameters in
32544 To show a list of all available parameters, type in a question mark
32545 \begin_inset Quotes eld
32549 \begin_inset Quotes erd
32555 \begin_layout Standard
32556 To reference child document listings, write a label text into the corresponding
32557 field of the child document dialog.
32558 The label can then be referenced using the menu
32560 Insert\SpecialChar \menuseparator
32566 \begin_layout Standard
32568 \begin_inset space ~
32572 \begin_inset CommandInset ref
32574 reference "lst:file-listing"
32578 is an example for a listing of a file; there the lines 10
32579 \begin_inset space \thinspace{}
32583 \begin_inset space \thinspace{}
32586 15 of this LyX file are listed.
32589 \begin_layout Standard
32590 \begin_inset CommandInset include
32591 LatexCommand lstinputlisting
32592 filename "EmbeddedObjects.lyx"
32593 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
32600 \begin_layout Standard
32601 \begin_inset VSpace bigskip
32607 \begin_layout Standard
32608 Global listings settings can be set in the
32610 Document\SpecialChar \menuseparator
32611 Settings\SpecialChar \menuseparator
32615 To get there a list of available options, type in a question mark
32616 \begin_inset Quotes eld
32620 \begin_inset Quotes erd
32626 \begin_inset space ~
32634 \begin_layout Standard
32635 For more information about the
32639 package, we refer to its documentation
32640 \begin_inset CommandInset citation
32649 \begin_layout Standard
32650 \begin_inset Newpage newpage
32656 \begin_layout Chapter
32658 Units available in LyX
32662 \begin_layout Plain Layout
32669 \begin_inset CommandInset label
32671 name "cha:Units-available-in"
32678 \begin_layout Standard
32679 To understand the units described in this documentation, Table
32680 \begin_inset space ~
32684 \begin_inset CommandInset ref
32686 reference "tab:Units"
32690 explains all units available in LyX.
32693 \begin_layout Standard
32694 \begin_inset Float table
32700 \begin_layout Plain Layout
32701 \begin_inset Caption
32703 \begin_layout Plain Layout
32704 \begin_inset CommandInset label
32718 \begin_layout Plain Layout
32719 \begin_inset VSpace medskip
32725 \begin_layout Plain Layout
32727 \begin_inset Tabular
32728 <lyxtabular version="3" rows="20" columns="2">
32730 <column alignment="center" valignment="top" width="0">
32731 <column alignment="center" valignment="top" width="0">
32733 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32736 \begin_layout Plain Layout
32742 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32745 \begin_layout Plain Layout
32753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32756 \begin_layout Plain Layout
32762 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32765 \begin_layout Plain Layout
32773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32776 \begin_layout Plain Layout
32782 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32785 \begin_layout Plain Layout
32793 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32796 \begin_layout Plain Layout
32802 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32805 \begin_layout Plain Layout
32813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32816 \begin_layout Plain Layout
32822 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32825 \begin_layout Plain Layout
32827 \begin_inset space \thinspace{}
32831 \begin_inset space \thinspace{}
32841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32844 \begin_layout Plain Layout
32850 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32853 \begin_layout Plain Layout
32855 \begin_inset space \thinspace{}
32859 \begin_inset space \thinspace{}
32869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32872 \begin_layout Plain Layout
32878 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32881 \begin_layout Plain Layout
32882 scaled point (65536
32883 \begin_inset space \thinspace{}
32887 \begin_inset space \thinspace{}
32897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32900 \begin_layout Plain Layout
32906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32909 \begin_layout Plain Layout
32911 \begin_inset space \thinspace{}
32915 \begin_inset space \thinspace{}
32925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32928 \begin_layout Plain Layout
32934 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32937 \begin_layout Plain Layout
32939 \begin_inset space \thinspace{}
32943 \begin_inset Formula $\approx$
32947 \begin_inset space \thinspace{}
32957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32960 \begin_layout Plain Layout
32966 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32969 \begin_layout Plain Layout
32971 \begin_inset space \thinspace{}
32975 \begin_inset space \thinspace{}
32985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32988 \begin_layout Plain Layout
32994 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32997 \begin_layout Plain Layout
32998 % of original image width
33005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33008 \begin_layout Plain Layout
33014 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33017 \begin_layout Plain Layout
33025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33028 \begin_layout Plain Layout
33034 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33037 \begin_layout Plain Layout
33045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33048 \begin_layout Plain Layout
33054 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33057 \begin_layout Plain Layout
33065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33068 \begin_layout Plain Layout
33074 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33077 \begin_layout Plain Layout
33085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33088 \begin_layout Plain Layout
33094 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33097 \begin_layout Plain Layout
33105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33108 \begin_layout Plain Layout
33114 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33117 \begin_layout Plain Layout
33125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33128 \begin_layout Plain Layout
33134 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33137 \begin_layout Plain Layout
33149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33152 \begin_layout Plain Layout
33158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33161 \begin_layout Plain Layout
33173 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33176 \begin_layout Plain Layout
33182 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33185 \begin_layout Plain Layout
33187 \begin_inset space \thinspace{}
33191 \begin_inset space \thinspace{}
33212 \begin_layout Chapter
33213 Output File Formats with Graphics
33214 \begin_inset CommandInset label
33216 name "cha:Output-File-Formats"
33223 \begin_layout Section
33228 \begin_layout Plain Layout
33238 \begin_layout Plain Layout
33243 \begin_layout Plain Layout
33254 \begin_layout Plain Layout
33269 \begin_layout Standard
33270 This file type has the extension
33271 \begin_inset Quotes eld
33279 \begin_inset Quotes erd
33284 \begin_inset Quotes eld
33288 \begin_inset Quotes erd
33291 (DVI), because it is completely portable; you can move them from one machine
33292 to another without needing to do any sort of conversion.
33293 At the time when this file-format was developed, this was no matter of
33295 DVIs are used for quick previews and as pre-stage for other output formats,
33299 \begin_layout Standard
33300 \begin_inset Note Greyedout
33303 \begin_layout Plain Layout
33308 DVI-files doesn't contain images, they will only be a linked.
33313 So don't forget this, if you move your
33317 file to another computer.
33318 This property can also slow down your computer when you view the DVI.
33319 Because the DVI-viewer has to convert the image in the background to make
33320 it visible when you scroll in the DVI.
33321 So we recommend to use PDF for files with many images.
33324 \begin_layout Standard
33325 You can export your document to DVI by using the menu
33327 File\SpecialChar \menuseparator
33328 Export\SpecialChar \menuseparator
33332 You can view your document as DVI via the
33336 menu or by using the toolbar button
33337 \begin_inset Graphics
33338 filename ../images/buffer-view_dvi.png
33340 scaleBeforeRotation
33347 \begin_layout Section
33349 \begin_inset CommandInset label
33351 name "sec:PostScript"
33359 \begin_layout Plain Layout
33360 File Formats ! PostScript
33369 \begin_layout Plain Layout
33374 \begin_layout Plain Layout
33385 \begin_layout Plain Layout
33400 \begin_layout Standard
33401 This file type has the extension
33402 \begin_inset Quotes eld
33410 \begin_inset Quotes erd
33414 PostScript was developed by the company
33418 as printer language.
33419 The file contains therefore commands that the printer uses to print the
33421 PostScript can be seen as
33422 \begin_inset Quotes eld
33425 programming language
33426 \begin_inset Quotes erd
33429 ; you can calculate with it and draw diagrams and images
33433 \begin_layout Plain Layout
33434 If you are interested to learn more about this, have a look at the LaTeX-package
33440 \begin_inset CommandInset citation
33452 Due to this ability, the files are often bigger than PDFs.
33455 \begin_layout Standard
33456 PostScript can only contain images in the format
33457 \begin_inset Quotes eld
33460 Encapsulated PostScript
33461 \begin_inset Quotes erd
33464 (EPS, file extension
33465 \begin_inset Quotes eld
33473 \begin_inset Quotes erd
33477 As LyX allows you to use any known image format in your document, it has
33478 to convert images in the background to EPS.
33479 If you have e.g 50 images in your document, LyX has to do 50 conversions
33480 whenever you view or export your document.
33481 This will slow down your work flow with LyX drastically.
33482 So if you plan to use PostScript, you can insert your images directly as
33483 EPS to avoid this problem.
33486 \begin_layout Standard
33487 You can export your document to PostScript using the menu
33489 File\SpecialChar \menuseparator
33490 Export\SpecialChar \menuseparator
33494 You can view your document as PostScript via the
33498 menu or by using the toolbar button
33499 \begin_inset Graphics
33500 filename ../images/buffer-view_ps.png
33502 scaleBeforeRotation
33509 \begin_layout Section
33514 \begin_layout Plain Layout
33524 \begin_layout Plain Layout
33533 \begin_layout Standard
33534 This file type has the extension
33535 \begin_inset Quotes eld
33543 \begin_inset Quotes erd
33548 \begin_inset Quotes eld
33551 Portable Document Format
33552 \begin_inset Quotes erd
33555 (PDF) is developed by
33559 as derivative from PostScript.
33560 It is more compressed and it uses much less commands than PostScript.
33562 \begin_inset Quotes eld
33566 \begin_inset Quotes erd
33569 implies, it can be processed at any computer system and the printed output
33570 looks exactly the same.
33573 \begin_layout Standard
33574 PDF can contain images in its own PDF format, in the format
33575 \begin_inset Quotes eld
33578 Joint Photographic Experts Group
33579 \begin_inset Quotes erd
33582 (JPG, file extension
33583 \begin_inset Quotes eld
33591 \begin_inset Quotes erd
33595 \begin_inset Quotes eld
33603 \begin_inset Quotes erd
33606 ), and in the format
33607 \begin_inset Quotes eld
33610 Portable Network Graphics
33611 \begin_inset Quotes erd
33614 (PNG, file extension
33615 \begin_inset Quotes eld
33623 \begin_inset Quotes erd
33627 Nevertheless you can use any other image format, because LyX converts them
33628 in the background to one of these formats.
33629 But as described in the section about PostScript, the image conversion
33630 will slow down your work flow.
33631 So it is recommended to use images in one of the three mentioned formats.
33634 \begin_layout Standard
33635 You can export your document to PDF via the menu
33637 File\SpecialChar \menuseparator
33640 in three different ways:
33643 \begin_layout Description
33645 \begin_inset space ~
33648 (ps2pdf) This uses the program
33652 that creates a PDF from a PostScript-version of your file.
33653 The PostScript-version is produced by the program
33657 which uses a DVI-version as intermediate step.
33658 So this export variant consist of three conversions.
33661 \begin_layout Description
33663 \begin_inset space ~
33666 (dvipdfm) This uses the program
33670 that converts your file in the background to DVI and in a second step to
33674 \begin_layout Description
33676 \begin_inset space ~
33679 (pdflatex) This uses the program
33683 that converts your file directly to PDF.
33686 \begin_layout Standard
33687 It is recommended to use
33690 \begin_inset space ~
33699 supports all features of actual PDF-versions, is quick and works stable
33705 is not under development and therefore a bit outdated.
33708 \begin_layout Standard
33709 You can view your document as PDF via the
33713 menu or by using the toolbar button
33714 \begin_inset Graphics
33715 filename ../images/buffer-view_pdf2.png
33717 scaleBeforeRotation
33728 \begin_inset space ~
33736 \begin_layout Chapter
33737 Explanation of Equation
33738 \begin_inset space ~
33742 \begin_inset CommandInset ref
33749 \begin_inset CommandInset label
33751 name "cha:Explanation-of-Equation"
33758 \begin_layout Standard
33764 \begin_inset Formula $W_{\mathrm{tot\, n}}$
33767 can be calculated to
33770 \begin_layout Standard
33771 \begin_inset Formula \begin{equation}
33772 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}
33779 \begin_layout Standard
33781 \begin_inset Formula $W_{g\, n}$
33784 is the given width of all cells.
33791 is the LaTeX-length between the cell text and the cell border, its default
33793 \begin_inset space \thinspace{}
33803 is the thickness of the cell border line, the default is 0.4
33804 \begin_inset space \thinspace{}
33810 \begin_layout Standard
33812 \begin_inset space ~
33816 \begin_inset CommandInset ref
33818 reference "eq:Wtot_n"
33822 , the total width of a multicolumn
33823 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
33829 \begin_layout Standard
33830 \begin_inset Formula \begin{equation}
33831 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
33838 \begin_layout Standard
33839 By setting equation
33840 \begin_inset space ~
33844 \begin_inset CommandInset ref
33846 reference "eq:Wtot_n"
33851 \begin_inset CommandInset ref
33853 reference "eq:Wtot_mult"
33857 equal we can calculate the needed given width
33858 \begin_inset Formula $W_{g\, n}$
33865 columns are spanned, so that each column has a total width of
33866 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
33872 \begin_layout Standard
33873 \begin_inset Formula \begin{equation}
33874 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
33881 \begin_layout Bibliography
33882 \begin_inset CommandInset bibitem
33883 LatexCommand bibitem
33884 key "latexcompanion"
33888 Frank Mittelbach and Michel Goossens:
33890 The LaTeX Companion Second Edition.
33893 Addison-Wesley, 2004
33896 \begin_layout Bibliography
33897 \begin_inset CommandInset bibitem
33898 LatexCommand bibitem
33903 Helmut Kopka and Patrick W.
33906 A Guide to LaTeX Fourth Edition.
33909 Addison-Wesley, 2003
33912 \begin_layout Bibliography
33913 \begin_inset CommandInset bibitem
33914 LatexCommand bibitem
33921 LaTeX: A Document Preparation System.
33924 Addison-Wesley, second edition, 1994
33927 \begin_layout Bibliography
33928 \begin_inset CommandInset bibitem
33929 LatexCommand bibitem
33934 Documentation of the LaTeX-package
33937 \begin_inset CommandInset href
33940 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
33950 \begin_layout Plain Layout
33951 LaTeX-packages ! booktabs
33959 \begin_layout Bibliography
33960 \begin_inset CommandInset bibitem
33961 LatexCommand bibitem
33966 Documentation of the LaTeX-package
33969 \begin_inset CommandInset href
33972 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
33982 \begin_layout Plain Layout
33983 LaTeX-packages ! caption
33991 \begin_layout Bibliography
33992 \begin_inset CommandInset bibitem
33993 LatexCommand bibitem
33998 Documentation of the LaTeX-package
34001 \begin_inset CommandInset href
34004 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
34014 \begin_layout Plain Layout
34015 LaTeX-packages ! endfloat
34023 \begin_layout Bibliography
34024 \begin_inset CommandInset bibitem
34025 LatexCommand bibitem
34030 Documentation of the LaTeX-package
34033 \begin_inset CommandInset href
34036 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
34046 \begin_layout Plain Layout
34047 LaTeX-packages ! wrapfig
34051 \begin_layout Plain Layout
34068 \begin_layout Bibliography
34069 \begin_inset CommandInset bibitem
34070 LatexCommand bibitem
34075 Documentation of the LaTeX-package
34078 \begin_inset CommandInset href
34081 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
34091 \begin_layout Plain Layout
34092 LaTeX-packages ! footmisc
34100 \begin_layout Bibliography
34101 \begin_inset CommandInset bibitem
34102 LatexCommand bibitem
34107 Documentation of the LaTeX-package
34110 \begin_inset CommandInset href
34113 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
34123 \begin_layout Plain Layout
34124 LaTeX-packages ! hyperref
34132 \begin_layout Bibliography
34133 \begin_inset CommandInset bibitem
34134 LatexCommand bibitem
34139 Documentation of the LaTeX-package
34142 \begin_inset CommandInset href
34145 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
34155 \begin_layout Plain Layout
34156 LaTeX-packages ! hyperref
34164 \begin_layout Bibliography
34165 \begin_inset CommandInset bibitem
34166 LatexCommand bibitem
34171 Documentation of the LaTeX-package
34174 \begin_inset CommandInset href
34177 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
34187 \begin_layout Plain Layout
34188 LaTeX-packages ! koma-script
34196 \begin_layout Bibliography
34197 \begin_inset CommandInset bibitem
34198 LatexCommand bibitem
34203 Documentation of the LaTeX-package
34206 \begin_inset CommandInset href
34209 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
34219 \begin_layout Plain Layout
34220 LaTeX-packages ! listings
34228 \begin_layout Bibliography
34229 \begin_inset CommandInset bibitem
34230 LatexCommand bibitem
34235 Documentation of the LaTeX-package
34238 \begin_inset CommandInset href
34241 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
34251 \begin_layout Plain Layout
34252 LaTeX-packages ! marginnote
34260 \begin_layout Bibliography
34261 \begin_inset CommandInset bibitem
34262 LatexCommand bibitem
34267 Web page of the LaTeX-package
34270 \begin_inset CommandInset href
34273 target "http://tug.org/PSTricks/"
34283 \begin_layout Plain Layout
34284 LaTeX-packages ! PSTricks
34292 \begin_layout Bibliography
34293 \begin_inset CommandInset bibitem
34294 LatexCommand bibitem
34299 Documentation of the LaTeX-package
34302 \begin_inset CommandInset href
34305 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
34315 \begin_layout Plain Layout
34316 LaTeX-packages ! sidecap
34324 \begin_layout Bibliography
34325 \begin_inset CommandInset bibitem
34326 LatexCommand bibitem
34332 \begin_inset CommandInset href
34335 target "http://wiki.lyx.org/LyX/NewInLyX16"
34339 about new features in
34346 \begin_layout Standard
34347 \begin_inset CommandInset index_print
34348 LatexCommand printindex
34355 \begin_layout Standard
34356 \begin_inset FloatList figure
34363 \begin_layout Standard
34364 \begin_inset FloatList table
34371 \begin_layout Standard
34372 \begin_inset FloatList algorithm