1 #LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
38 \newcommand{\TabBesBeg}{%
40 \let\MyEndtable\endtable
41 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
43 \newcommand{\TabBesEnd}{%
45 \let\endtable\MyEndtable}
47 \newcommand{\FigBesBeg}{%
49 \let\MyEndfigure\endfigure
50 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
52 \newcommand{\FigBesEnd}{%
54 \let\endfigure\MyEndfigure}
56 % enables calculation of values,
59 % provides special table cell alignments
62 % increase the bottom float placement fraction
63 \renewcommand{\bottomfraction}{0.5}
65 % avoids that floats are placed before their
66 % corresponding section starts
67 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
69 % speed up the longtable calculation
70 \setcounter{LTchunksize}{100}
72 % used for scaled and rotated boxes
73 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
75 % used for colored tables
76 \@ifundefined{textcolor}
77 {\usepackage{color}}{}
78 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
79 \definecolor{lightgrey}{gray}{0.8}
81 % check for package colortbl
82 % used for colored table cells
84 \IfFileExists{colortbl.sty}
85 {\usepackage{colortbl}
86 \setboolean{colortbl}{true}}
87 {\setboolean{colortbl}{false}}
91 %\renewcommand{\multirowsetup}{\centering}
93 % used for book-style tables
96 % used to have extra space in table cells
97 \@ifundefined{extrarowheight}
98 {\usepackage{array}}{}
99 \setlength{\extrarowheight}{2pt}
101 % used for customized tables
104 {>{\centering\hspace{0pt}}m{#1}}
107 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
110 {>{\columncolor{#1}\hspace{0pt}}c}
112 \newcolumntype{V}{!{\vrule width 1.5pt}}
114 \newcolumntype{W}{!{\color{green}\vline}}
117 % insert additional vertical space of
118 % 1.5 mm between footnotes
120 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
122 % number algorithm floats within chapters
123 \numberwithin{algorithm}{chapter}
125 % redefine the greyed out note
126 \renewenvironment{lyxgreyedout}
127 {\textcolor{blue}\bgroup}{\egroup}
129 % ------------------------------------
130 % used to check for needed LaTeX packages
133 % check for package arydshln
134 % used for tables with dashed lines
135 \newboolean{arydshln}
136 \IfFileExists{arydshln.sty}
137 {\usepackage{arydshln}
138 \setboolean{arydshln}{true}}
139 {\setboolean{arydshln}{false}}
141 % check for package marginnote
142 % used for margin notes
143 \newboolean{marginnote}
144 \IfFileExists{marginnote.sty}
145 {\usepackage{marginnote}
146 \let\marginpar\marginnote
147 \setboolean{marginnote}{true}}
148 {\setboolean{marginnote}{false}}
150 % check for package sidecap
151 % used for captions on the side
153 \IfFileExists{sidecap.sty}
154 {\usepackage{sidecap}
155 \let\marginpar\marginnote
156 \setboolean{sidecap}{true}}
157 {\setboolean{sidecap}{false}}
159 % redefine the \LyX macro for PDF bookmarks
160 \def\LyX{\texorpdfstring{%
161 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
164 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
165 \use_default_options false
170 \font_typewriter default
171 \font_default_family default
181 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
182 \pdf_author "LyX Team, Uwe Stöhr"
183 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
184 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
186 \pdf_bookmarksnumbered true
187 \pdf_bookmarksopen true
188 \pdf_bookmarksopenlevel 1
189 \pdf_breaklinks false
193 \pdf_pagebackref false
194 \pdf_pdfusetitle false
195 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false, pdfpagelabels"
202 \paperorientation portrait
205 \paragraph_separation skip
207 \quotes_language english
210 \paperpagestyle default
214 \tracking_changes false
215 \output_changes false
223 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
232 \begin_layout Plain Layout
234 If you have comments or error corrections, please send them to the LyX Documenta
236 \begin_inset CommandInset href
238 name "lyx-docs@lists.lyx.org"
239 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
250 \begin_inset Note Note
253 \begin_layout Plain Layout
260 \begin_inset Newline newline
264 \begin_inset Newline newline
272 \begin_layout Standard
273 \begin_inset CommandInset toc
274 LatexCommand tableofcontents
281 \begin_layout Standard
282 \begin_inset Note Note
285 \begin_layout Plain Layout
286 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
304 If they are not installed you can export the document anyway but the sections
305 where the packages are required won't appear in the output.
308 \begin_layout Plain Layout
309 The latest PDF-version of this document can be found here:
310 \begin_inset Newline newline
315 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
323 \begin_layout Chapter
328 \begin_layout Plain Layout
338 \begin_layout Plain Layout
343 \begin_layout Plain Layout
354 \begin_layout Plain Layout
369 \begin_layout Section
374 \begin_layout Plain Layout
375 Figures ! Graphics Dialog
381 \begin_inset CommandInset label
383 name "sec:Graphics-Dialog"
390 \begin_layout Standard
391 To insert an image into your document, place the cursor at the text position
392 you want and click on the toolbar icon
393 \begin_inset Graphics
394 filename ../images/dialog-show-new-inset_graphics.png
402 Insert\SpecialChar \menuseparator
406 Then a dialog will appear to choose the file to load.
407 The image will appear in the output exactly at the position where it is
411 \begin_layout Standard
412 The graphics dialog can be called at any time by clicking on an image.
413 This dialog has three tabs:
416 \begin_layout Description
421 Here you can choose an image file and adjust its appearance in the output.
422 The available units for the image size are explained in appendix
427 \begin_inset CommandInset ref
429 reference "cha:Units-available-in"
434 \begin_inset Newline newline
441 \begin_layout Plain Layout
447 You can rotate images counter-clockwise by setting a rotation angle and
449 The image will also be rotated inside LyX.
450 \begin_inset Newline newline
457 \begin_layout Plain Layout
463 Images can be scaled by using a percentage value or by setting the width
464 and height explicitly.
465 If you set only the width or only the height, the other size will be determined
467 If you set both, then the image will be transformed to the given size,
468 possibly distorting it.
469 To prevent the image from distortion, use the option
471 Maintain aspect ratio
474 The image will then be scaled so that its width and height don't exceed
475 the specified dimensions.
476 \begin_inset Newline newline
479 Images can be opened in a program of your choice when pressing the
484 The program can be set for every image format in the file format settings
485 in LyX's preferences.
488 \begin_layout Description
493 Alternatively to the usage of scaling units it is possible to set image
494 coordinates to adjust the height and width of the image in the output.
495 The coordinates can also be calculated automatically by pressing the button
525 will only print the image region within the given coordinates.
526 Normally you don't need to take care about image coordinates and can ignore
530 \begin_layout Description
547 In this tab you can modify the appearance of the image within LyX and LaTeX
548 experts can specify additional LaTeX options.
549 \begin_inset Newline newline
560 makes the image appear in the output only as a frame with the size of the
562 \begin_inset Newline newline
581 option only affects zipped EPS-graphics, e.
582 \begin_inset space \thinspace{}
594 When the option is used the images will not be unzipped on export, since
595 LaTeX can handle them as they are.
596 \begin_inset Newline newline
599 Zipped EPS-graphics are useful to save disk space when you choose PostScript
600 as output format, see appendix
605 \begin_inset CommandInset ref
607 reference "sec:PostScript"
612 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
614 \begin_inset Newline newline
622 \begin_inset Newline newline
627 zgrep %%Bounding x.eps.gz > x.eps.bb
630 \begin_inset Newline newline
633 The second command creates the bounding box file
634 \begin_inset Quotes eld
638 \begin_inset Quotes erd
641 that is needed by LaTeX for zipped graphics.
642 \begin_inset Newline newline
657 allows you define or join an image settings group.
661 \begin_layout Plain Layout
662 Figures ! Settings grouping
667 Images within such a group share their settings, so adjusting one image
668 of the group automatically also adjusts all other images of the group in
670 So you can for example change the size for a bunch of images without the
671 need to manually change each of them.
672 Joining an existing group can also be done using the context menu of the
673 image by checking the name of the desired group.
676 \begin_layout Standard
677 \begin_inset VSpace bigskip
683 \begin_layout Standard
684 This is an example image in EPS format
688 \begin_layout Plain Layout
689 Image formats are explained in section
694 \begin_inset CommandInset ref
696 reference "sec:Image-Formats"
705 within a separate, horizontally centered paragraph:
708 \begin_layout Standard
710 \begin_inset Graphics
711 filename clipart/mobius.eps
721 \begin_layout Standard
722 This is the same image like the one above but in draft mode:
725 \begin_layout Standard
727 \begin_inset Graphics
728 filename clipart/mobius.eps
739 \begin_layout Standard
740 \begin_inset Newpage newpage
746 \begin_layout Section
748 \begin_inset CommandInset label
750 name "sec:Figure-Floats"
758 \begin_layout Plain Layout
768 \begin_layout Plain Layout
777 \begin_layout Standard
778 For general explanations about floats, have a look at section
783 \begin_inset CommandInset ref
785 reference "sec:FloatIntroduction"
792 \begin_layout Standard
794 \begin_inset Graphics
795 filename ../images/float-insert_figure.png
803 Insert\SpecialChar \menuseparator
804 Float\SpecialChar \menuseparator
807 inserts a float with a caption that has the label
808 \begin_inset Quotes eld
816 \begin_inset Quotes erd
819 (# is the actual number).
820 You can insert the image above the caption, like in Figure
825 \begin_inset CommandInset ref
827 reference "fig:kill-plat"
831 or below the caption, like in Figure
836 \begin_inset CommandInset ref
838 reference "fig:escher"
843 More about the caption placement is described in section
848 \begin_inset CommandInset ref
850 reference "sec:Caption-Placement"
857 \begin_layout Standard
858 \begin_inset Float figure
863 \begin_layout Plain Layout
865 \begin_inset Graphics
866 filename clipart/platypus.eps
876 \begin_layout Plain Layout
879 \begin_layout Plain Layout
880 \begin_inset CommandInset label
886 A severely distorted platypus in a float.
899 \begin_layout Standard
900 \begin_inset Float figure
905 \begin_layout Plain Layout
908 \begin_layout Plain Layout
909 \begin_inset CommandInset label
924 \begin_layout Plain Layout
926 \begin_inset Graphics
927 filename clipart/escher-lsd.eps
942 \begin_layout Standard
946 \begin_layout Plain Layout
947 References ! to Figures
957 \begin_inset CommandInset ref
959 reference "fig:kill-plat"
964 \begin_inset CommandInset ref
966 reference "fig:escher"
970 are examples of referenced figures.
971 Figures can be referenced in the text by referencing their label.
972 To do this insert a label in the caption using the menu
974 Insert\SpecialChar \menuseparator
977 or the toolbar button
978 \begin_inset Graphics
979 filename ../images/label-insert.png
986 You can now refer to the label using the menu
988 Insert\SpecialChar \menuseparator
995 or the toolbar button
996 \begin_inset Graphics
997 filename ../images/dialog-show-new-inset_ref.png
1004 It is important to use references to floats, rather than using vague references
1006 \begin_inset Quotes eld
1010 \begin_inset Quotes erd
1013 , because as LaTeX will reposition the floats in the final document, it
1015 \begin_inset Quotes eld
1019 \begin_inset Quotes erd
1023 \begin_inset Newline newline
1026 Referencing is explained in detail in section
1027 \begin_inset space ~
1031 \begin_inset CommandInset ref
1033 reference "sec:Referencing-Floats"
1040 \begin_layout Standard
1041 Normally only one image is inserted to a figure float, but sometimes you
1042 might want to use two images with separate subcaptions.
1043 This can be done by inserting image floats into existing image floats.
1044 Note that only the main caption of the float is added to the List of Figures.
1046 \begin_inset space ~
1050 \begin_inset CommandInset ref
1052 reference "fig:Two-distorted-images"
1056 is an example of a figure float with two images set side by side.
1057 You can also set the images one below the other.
1059 \begin_inset space ~
1063 \begin_inset CommandInset ref
1065 reference "fig:Undefinable-structure"
1070 \begin_inset CommandInset ref
1072 reference "fig:A-Platypus"
1079 \begin_layout Standard
1080 \begin_inset Float figure
1085 \begin_layout Plain Layout
1086 \begin_inset space \hfill{}
1090 \begin_inset Float figure
1095 \begin_layout Plain Layout
1096 \begin_inset Caption
1098 \begin_layout Plain Layout
1099 \begin_inset CommandInset label
1101 name "fig:Undefinable-structure"
1105 Undefinable structure.
1113 \begin_layout Plain Layout
1114 \begin_inset Graphics
1115 filename clipart/escher-lsd.eps
1128 \begin_inset space \hfill{}
1132 \begin_inset Float figure
1137 \begin_layout Plain Layout
1138 \begin_inset Caption
1140 \begin_layout Plain Layout
1141 \begin_inset CommandInset label
1143 name "fig:A-Platypus"
1155 \begin_layout Plain Layout
1156 \begin_inset Graphics
1157 filename clipart/platypus.eps
1170 \begin_inset space \hfill{}
1176 \begin_layout Plain Layout
1177 \begin_inset Caption
1179 \begin_layout Plain Layout
1180 \begin_inset CommandInset label
1182 name "fig:Two-distorted-images"
1186 Two distorted images.
1187 Both images are in the image settings group named
1188 \begin_inset Quotes eld
1192 \begin_inset Quotes erd
1208 \begin_layout Standard
1209 \begin_inset Newpage newpage
1215 \begin_layout Section
1217 \begin_inset CommandInset label
1219 name "sec:Image-Formats"
1227 \begin_layout Plain Layout
1237 \begin_layout Plain Layout
1238 Figures ! Image Formats
1246 \begin_layout Standard
1247 You can insert images in any known file format.
1248 But as explained in appendix
1249 \begin_inset space ~
1253 \begin_inset CommandInset ref
1255 reference "cha:Output-File-Formats"
1259 , every output document format allows only a few image formats.
1260 LyX uses therefore the program
1264 in the background to convert the images to the right format.
1265 To increase your work flow by avoiding these conversions in the background,
1266 you can use only the image formats that can directly be embedded in the
1268 The output file formats are explained in appendix
1269 \begin_inset space ~
1273 \begin_inset CommandInset ref
1275 reference "cha:Output-File-Formats"
1282 \begin_layout Standard
1283 Similar to fonts there are two types of image formats:
1286 \begin_layout Description
1288 \begin_inset space ~
1291 images consist of pixel values, often in a compressed form.
1292 They are therefore not fully scalable and look pixeled in large zooms.
1293 Well-known bitmap image formats are
1294 \begin_inset Quotes eld
1297 Graphics Interchange Format
1298 \begin_inset Quotes erd
1301 (GIF, file extension
1302 \begin_inset Quotes eld
1310 \begin_inset Quotes erd
1317 \begin_layout Plain Layout
1322 \begin_layout Plain Layout
1333 \begin_layout Plain Layout
1346 \begin_inset Quotes eld
1349 Portable Network Graphics
1350 \begin_inset Quotes erd
1353 (PNG, file extension
1354 \begin_inset Quotes eld
1362 \begin_inset Quotes erd
1369 \begin_layout Plain Layout
1374 \begin_layout Plain Layout
1385 \begin_layout Plain Layout
1398 \begin_inset Quotes eld
1401 Joint Photographic Experts Group
1402 \begin_inset Quotes erd
1405 (JPG, file extension
1406 \begin_inset Quotes eld
1414 \begin_inset Quotes erd
1418 \begin_inset Quotes eld
1426 \begin_inset Quotes erd
1433 \begin_layout Plain Layout
1438 \begin_layout Plain Layout
1449 \begin_layout Plain Layout
1464 \begin_layout Description
1466 \begin_inset space ~
1469 images consist of vectors and can therefore be scaled to any size without
1471 The scaling ability is necessary if you want to create presentations, because
1472 presentations are always scaled by the video projector.
1473 Scaling is also useful for online documents to let the user zoom into diagrams.
1474 \begin_inset Newline newline
1477 Well-known scalable image formats are
1478 \begin_inset Quotes eld
1481 Scalable Vector Graphics
1482 \begin_inset Quotes erd
1485 (SVG, file extension
1486 \begin_inset Quotes eld
1494 \begin_inset Quotes erd
1501 \begin_layout Plain Layout
1506 \begin_layout Plain Layout
1517 \begin_layout Plain Layout
1530 \begin_inset Quotes eld
1533 Encapsulated PostScript
1534 \begin_inset Quotes erd
1537 (EPS, file extension
1538 \begin_inset Quotes eld
1546 \begin_inset Quotes erd
1553 \begin_layout Plain Layout
1558 \begin_layout Plain Layout
1569 \begin_layout Plain Layout
1582 \begin_inset Quotes eld
1585 Portable Document Format
1586 \begin_inset Quotes erd
1589 (PDF, file extension
1590 \begin_inset Quotes eld
1598 \begin_inset Quotes erd
1605 \begin_layout Plain Layout
1612 \begin_inset Quotes eld
1616 \begin_inset Quotes erd
1619 (WMF, file extension
1620 \begin_inset Quotes eld
1628 \begin_inset Quotes erd
1635 \begin_layout Plain Layout
1640 \begin_layout Plain Layout
1651 \begin_layout Plain Layout
1665 \begin_inset Quotes eld
1669 \begin_inset Quotes erd
1672 , because you can convert any bitmap image to a PDF or EPS-image and the
1673 result will still be a bitmap image.
1674 In this cases only a header with the image properties is added to the original
1679 \begin_layout Plain Layout
1680 In the case of PDF, the original image is additionally compressed.
1686 The PDF-files generated by
1690 are for example bitmap images.
1693 \begin_layout Standard
1694 Normally it is not possible to convert a bitmap image into a scalable one,
1696 Only the image formats PDF and EPS can directly be embedded to PDF and
1697 PostScript output files, respectively.
1698 SVG and WMF-images are recalculated to bitmaps when the output file is
1699 generated because there is currently no adequate WMF/SVG
1700 \begin_inset Formula $\to$
1703 PDF/EPS converter available.
1706 \begin_layout Chapter
1711 \begin_layout Plain Layout
1720 \begin_layout Section
1725 \begin_layout Plain Layout
1726 Table ! Introduction
1734 \begin_layout Standard
1735 You can insert a table using either the toolbar button
1736 \begin_inset Graphics
1737 filename ../images/tabular-insert.png
1745 Insert\SpecialChar \menuseparator
1749 The toolbar button offers you a graphical selection: Move the mouse to
1750 set the column/row number of the table that should be created and then
1751 press a mouse button.
1752 When you use the menu to create a table, a dialog will appear, asking you
1753 for the number of rows and columns.
1754 \begin_inset Newline newline
1757 The default table has lines around any cell and the first row appears separated
1758 from the rest of the table.
1759 This separation occurs due to a double line: The cells of the first row
1760 have a line below them and the cells of the second row have a line above
1762 Here is an example table:
1765 \begin_layout Standard
1767 \begin_inset Tabular
1768 <lyxtabular version="3" rows="4" columns="4">
1770 <column alignment="center" valignment="top" width="0">
1771 <column alignment="center" valignment="top" width="0">
1772 <column alignment="center" valignment="top" width="0">
1773 <column alignment="center" valignment="top" width="0">
1775 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1778 \begin_layout Plain Layout
1784 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1787 \begin_layout Plain Layout
1802 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1805 \begin_layout Plain Layout
1811 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1814 \begin_layout Plain Layout
1822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1825 \begin_layout Plain Layout
1840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1843 \begin_layout Plain Layout
1849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1852 \begin_layout Plain Layout
1858 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1861 \begin_layout Plain Layout
1869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1872 \begin_layout Plain Layout
1887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1890 \begin_layout Plain Layout
1896 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1899 \begin_layout Plain Layout
1905 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1908 \begin_layout Plain Layout
1916 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1919 \begin_layout Plain Layout
1934 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1937 \begin_layout Plain Layout
1943 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1946 \begin_layout Plain Layout
1952 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1955 \begin_layout Plain Layout
1969 \begin_layout Section
1974 \begin_layout Plain Layout
1983 \begin_layout Standard
1984 You can alter a table by clicking on it with the right mouse button, which
1985 brings up the table dialog.
1986 Here you can adjust the settings of that cell and row/column respectively
1987 where the cursor is currently placed.
1988 Most of the dialog options also work on selections.
1989 This means if you select more cells, columns or rows, the action is done
1990 for the whole selection.
1991 Note that there is a difference between selecting the
1995 of the cell, and the cell itself.
1996 You can alter tables with the following tabs of the table dialog:
1999 \begin_layout Description
2003 \begin_inset space ~
2008 Here you can set the horizontal alignment and the width of the current
2010 When you have set a width you can also adjust the vertical alignment of
2012 A given width will allow the cell to have line breaks and multiple paragraphs
2013 of text, see section
2014 \begin_inset space ~
2018 \begin_inset CommandInset ref
2020 reference "sub:Multiple-Lines-in"
2025 If you set no width, the column is as wide as their widest cell content
2027 \begin_inset Newline newline
2030 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2032 \begin_inset space ~
2036 \begin_inset CommandInset ref
2038 reference "sub:Multicolumns"
2043 \begin_inset Newline newline
2046 The rotate check boxes rotates the current cell, a selection, or the whole
2047 table counter-clockwise by 90°.
2048 The rotation is not shown within LyX, only in the output.
2049 \begin_inset Newline newline
2053 \begin_inset Note Greyedout
2056 \begin_layout Plain Layout
2061 Not all DVI-viewers are able to display rotations.
2067 \begin_inset Newline newline
2070 It is also possible to enter a LaTeX-argument which is needed for special
2071 table formattings, see section
2072 \begin_inset space ~
2076 \begin_inset CommandInset ref
2078 reference "sub:Multicolumn-Calculations"
2083 \begin_inset CommandInset ref
2085 reference "sec:Colored-Tables"
2092 \begin_layout Description
2097 In this tab you can add and delete border lines for the current row/column.
2098 \begin_inset Newline newline
2101 Using the style option
2105 will convert the table to a formal table as described in section
2106 \begin_inset space ~
2110 \begin_inset CommandInset ref
2112 reference "sec:Formal-Tables"
2117 \begin_inset Newline newline
2120 You can also add here space to table rows as decribed in section
2121 \begin_inset space ~
2125 \begin_inset CommandInset ref
2127 reference "sub:Row-Spacing"
2134 \begin_layout Description
2139 This tab is to make a table a so called
2140 \begin_inset Quotes eld
2148 \begin_inset Quotes erd
2151 that can run over several pages.
2153 \begin_inset space ~
2157 \begin_inset CommandInset ref
2159 reference "sec:Longtables"
2164 \begin_inset CommandInset ref
2166 reference "sec:Special-Longtable-Issues"
2170 describe the longtable features in detail.
2173 \begin_layout Standard
2174 When the table toolbar is opened, you can move the cursor with the arrow
2175 keys from cell to cell and the property of the current cell will immediately
2176 be displayed in the dialog.
2179 \begin_layout Section
2184 \begin_layout Plain Layout
2193 \begin_layout Standard
2194 The table toolbar is an alternative to the table dialog to be able to alter
2196 It should normally appear at the bottom of LyX's main window when the cursor
2198 You can alternatively switch it on to appear always, by right-clicking
2199 in LyX's main menu bar.
2202 \begin_layout Standard
2203 The toolbar has the following icons:
2206 \begin_layout Labeling
2207 \labelwidthstring 00.00.0000
2208 \begin_inset Graphics
2209 filename ../images/tabular-feature_append-row.png
2214 adds a row below the current cell or selection
2217 \begin_layout Labeling
2218 \labelwidthstring 00.00.0000
2219 \begin_inset Graphics
2220 filename ../images/tabular-feature_append-column.png
2225 adds a column right beside the current cell or selection
2228 \begin_layout Labeling
2229 \labelwidthstring 00.00.0000
2230 \begin_inset Graphics
2231 filename ../images/tabular-feature_delete-row.png
2236 deletes the current row or selection
2239 \begin_layout Labeling
2240 \labelwidthstring 00.00.0000
2241 \begin_inset Graphics
2242 filename ../images/tabular-feature_delete-column.png
2247 deletes the current column or selection
2250 \begin_layout Labeling
2251 \labelwidthstring 00.00.0000
2252 \begin_inset Graphics
2253 filename ../images/tabular-feature_toggle-line-top.png
2258 adds a line at the top of the current cell / row or of a selection
2261 \begin_layout Labeling
2262 \labelwidthstring 00.00.0000
2263 \begin_inset Graphics
2264 filename ../images/tabular-feature_toggle-line-bottom.png
2269 adds a line at the bottom of the current cell / row or of a selection
2272 \begin_layout Labeling
2273 \labelwidthstring 00.00.0000
2274 \begin_inset Graphics
2275 filename ../images/tabular-feature_toggle-line-left.png
2280 adds a line at the left side of the current cell / row or of a selection
2283 \begin_layout Labeling
2284 \labelwidthstring 00.00.0000
2285 \begin_inset Graphics
2286 filename ../images/tabular-feature_toggle-line-right.png
2291 adds a line at the right side of the current cell / row or of a selection
2294 \begin_layout Labeling
2295 \labelwidthstring 00.00.0000
2296 \begin_inset Graphics
2297 filename ../images/tabular-feature_set-all-lines.png
2302 adds lines around the current or selected cells - if the current cell no
2303 multicolumn this also affects the current row and column
2306 \begin_layout Labeling
2307 \labelwidthstring 00.00.0000
2308 \begin_inset Graphics
2309 filename ../images/tabular-feature_unset-all-lines.png
2314 deletes all lines of the current or selected cells - if the current cell
2315 no multicolumn this also affects the current row and column
2318 \begin_layout Labeling
2319 \labelwidthstring 00.00.0000
2320 \begin_inset Graphics
2321 filename ../images/tabular-feature_align-left.png
2326 left-aligns the content of the current cell / column
2329 \begin_layout Labeling
2330 \labelwidthstring 00.00.0000
2331 \begin_inset Graphics
2332 filename ../images/tabular-feature_align-center.png
2337 centers the content of the current cell / column horizontally
2340 \begin_layout Labeling
2341 \labelwidthstring 00.00.0000
2342 \begin_inset Graphics
2343 filename ../images/tabular-feature_align-right.png
2348 right-aligns the content of the current cell / column
2351 \begin_layout Labeling
2352 \labelwidthstring 00.00.0000
2353 \begin_inset Graphics
2354 filename ../images/tabular-feature_valign-top.png
2359 aligns the content of the current cell vertically to the top
2362 \begin_layout Labeling
2363 \labelwidthstring 00.00.0000
2364 \begin_inset Graphics
2365 filename ../images/tabular-feature_valign-middle.png
2370 centers the content of the current cell vertically
2373 \begin_layout Labeling
2374 \labelwidthstring 00.00.0000
2375 \begin_inset Graphics
2376 filename ../images/tabular-feature_valign-bottom.png
2381 aligns the content of the current cell vertically to the bottom
2384 \begin_layout Labeling
2385 \labelwidthstring 00.00.0000
2386 \begin_inset Graphics
2387 filename ../images/tabular-feature_set-rotate-cell.png
2392 rotates the current cell or selection counter-clockwise by 90°
2395 \begin_layout Labeling
2396 \labelwidthstring 00.00.0000
2397 \begin_inset Graphics
2398 filename ../images/tabular-feature_set-rotate-tabular.png
2403 rotates the whole table counter-clockwise by 90°
2406 \begin_layout Labeling
2407 \labelwidthstring 00.00.0000
2408 \begin_inset Graphics
2409 filename ../images/tabular-feature_multicolumn.png
2414 sets the current cell or selection as a multicolumn
2417 \begin_layout Standard
2418 \begin_inset Note Greyedout
2421 \begin_layout Plain Layout
2426 For the output the vertical alignment of the first cell in a row is used
2427 for all following cells in the row.
2435 \begin_layout Section
2440 \begin_layout Plain Layout
2449 \begin_layout Standard
2450 Additionally to the table dialog and toolbar, the menu
2452 Edit\SpecialChar \menuseparator
2455 allows you to add and delete border lines for the current row/column and
2456 to set the current selection as multicolumn.
2457 The menu is only available when the cursor is inside a table.
2460 \begin_layout Section
2462 \begin_inset CommandInset label
2464 name "sec:Table-Floats"
2472 \begin_layout Plain Layout
2482 \begin_layout Plain Layout
2491 \begin_layout Standard
2492 For general explanations about floats, have a look at section
2493 \begin_inset space ~
2497 \begin_inset CommandInset ref
2499 reference "sec:FloatIntroduction"
2506 \begin_layout Standard
2507 \begin_inset Float table
2513 \begin_layout Plain Layout
2514 \begin_inset Caption
2516 \begin_layout Plain Layout
2517 \begin_inset CommandInset label
2519 name "tab:a table float"
2531 \begin_layout Plain Layout
2533 \begin_inset Tabular
2534 <lyxtabular version="3" rows="3" columns="3">
2536 <column alignment="center" valignment="top" width="0pt">
2537 <column alignment="center" valignment="top" width="0pt">
2538 <column alignment="center" valignment="top" width="0pt">
2540 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2543 \begin_layout Plain Layout
2558 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2561 \begin_layout Plain Layout
2576 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2579 \begin_layout Plain Layout
2596 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2599 \begin_layout Plain Layout
2614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2617 \begin_layout Plain Layout
2632 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2635 \begin_layout Plain Layout
2652 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2655 \begin_layout Plain Layout
2665 \begin_inset Formula $\int x^{2}dx$
2673 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2676 \begin_layout Plain Layout
2686 \begin_inset Formula $\left[\begin{array}{cc}
2688 c & d\end{array}\right]$
2696 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2699 \begin_layout Plain Layout
2709 \begin_inset Formula $1+1=2$
2730 \begin_layout Standard
2731 Table floats can be inserted using the menu
2733 Insert\SpecialChar \menuseparator
2734 Float\SpecialChar \menuseparator
2737 or the toolbar button
2738 \begin_inset Graphics
2739 filename ../images/float-insert_table.png
2748 \begin_layout Standard
2749 The float appears as a collapsible box with a caption that has the label
2751 \begin_inset Quotes eld
2755 \begin_inset space ~
2759 \begin_inset Quotes erd
2762 (# is the actual table number).
2763 You can insert tables to the float above or below the caption.
2766 \begin_layout Standard
2768 \begin_inset space ~
2772 \begin_inset CommandInset ref
2774 reference "tab:a table float"
2778 is an example table within a table float.
2781 \begin_layout Standard
2782 Having the caption above the table is the common rule that is unfortunately
2783 not supported in LaTeX's standard classes.
2784 That means if you are using the document classes
2800 there will be no space between the caption and the table.
2801 To insert the needed space, add the following option to the load command
2802 of the LaTeX-package
2810 \begin_layout Plain Layout
2811 LaTeX-packages ! caption
2816 in your document preamble
2820 \begin_layout Plain Layout
2821 For more information have a look at section
2822 \begin_inset space ~
2826 \begin_inset CommandInset ref
2828 reference "sec:Caption-Placement"
2840 \begin_layout Standard
2846 \begin_layout Standard
2851 , which is described in section
2852 \begin_inset space ~
2856 \begin_inset CommandInset ref
2858 reference "sec:Caption-Formatting"
2862 , is used to adjust the caption format.
2865 \begin_layout Standard
2869 \begin_layout Plain Layout
2870 References ! to Tables
2875 Tables can be cross-referenced in the text by referencing their label.
2876 To do this insert a label in the caption using the menu
2878 Insert\SpecialChar \menuseparator
2881 or the toolbar button
2882 \begin_inset Graphics
2883 filename ../images/label-insert.png
2890 You can now refer to the label using the menu
2892 Insert\SpecialChar \menuseparator
2894 \begin_inset space ~
2899 or the toolbar button
2900 \begin_inset Graphics
2901 filename ../images/dialog-show-new-inset_ref.png
2908 \begin_inset Newline newline
2911 Referencing is explained in detail in section
2912 \begin_inset space ~
2916 \begin_inset CommandInset ref
2918 reference "sec:Referencing-Floats"
2925 \begin_layout Section
2927 \begin_inset CommandInset label
2929 name "sec:Longtables"
2937 \begin_layout Plain Layout
2947 \begin_layout Plain Layout
2956 \begin_layout Standard
2957 If the table is too long to fit on one page, you can use the option
2960 \begin_inset space ~
2964 \begin_inset space ~
2973 of the table dialog to split the table automatically over more pages.
2974 Doing this enables the following options:
2977 \begin_layout Description
2982 : The current row and all rows above, that don't have any special options
2983 defined, are defined to be the header rows of all pages of the longtable;
2984 except for the first page, if
2987 \begin_inset space ~
2993 This therefore called the main header.
2996 \begin_layout Description
3000 \begin_inset space ~
3005 : The current row and all rows above, that don't have any special options
3006 defined, are defined to be the header rows of the first page of the longtable.
3009 \begin_layout Description
3014 : The current row and all rows below, that don't have any special options
3015 defined, are defined to be the footer rows of all pages of the longtable;
3016 except for the last page, if
3019 \begin_inset space ~
3027 \begin_layout Description
3031 \begin_inset space ~
3036 : The current row and all rows below, that don't have any special options
3037 defined, are defined to be the footer rows of the last page of the longtable.
3040 \begin_layout Description
3041 Caption: The first row is reset as single column.
3042 You can now insert there the table caption via the menu
3044 Insert\SpecialChar \menuseparator
3048 More about longtable captions is explained in sec.
3049 \begin_inset space \thinspace{}
3053 \begin_inset CommandInset ref
3055 reference "sub:Longtable-Captions"
3062 \begin_layout Standard
3063 You can also specify a row where the table is splitted.
3064 If you set more than one option in the same table row, you should be aware
3065 of the fact that only the first one is used in the given table row.
3066 The others will then be defined as
3071 In this context, first means first in this order:
3078 \begin_inset space ~
3081 header, Footer, Last
3082 \begin_inset space ~
3088 See the following longtable to see how it works:
3091 \begin_layout Standard
3093 \begin_inset Tabular
3094 <lyxtabular version="3" rows="69" columns="3">
3095 <features islongtable="true">
3096 <column alignment="left" valignment="top" width="0cm">
3097 <column alignment="left" valignment="top" width="0pt">
3098 <column alignment="center" valignment="top" width="0pt">
3099 <row endfirsthead="true">
3100 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3103 \begin_layout Plain Layout
3106 Example Phone List (ignore the names)
3111 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3114 \begin_layout Plain Layout
3120 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3123 \begin_layout Plain Layout
3130 <row endfirsthead="true">
3131 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3134 \begin_layout Plain Layout
3142 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3145 \begin_layout Plain Layout
3151 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3154 \begin_layout Plain Layout
3163 <row endhead="true">
3164 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3167 \begin_layout Plain Layout
3175 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3178 \begin_layout Plain Layout
3184 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3187 \begin_layout Plain Layout
3194 <row endhead="true">
3195 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3198 \begin_layout Plain Layout
3206 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3209 \begin_layout Plain Layout
3215 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3218 \begin_layout Plain Layout
3227 <row endfoot="true">
3228 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
3231 \begin_layout Plain Layout
3232 continued on next page
3237 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3240 \begin_layout Plain Layout
3246 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3249 \begin_layout Plain Layout
3257 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3260 \begin_layout Plain Layout
3268 <cell alignment="center" valignment="top" usebox="none">
3271 \begin_layout Plain Layout
3277 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3280 \begin_layout Plain Layout
3288 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3291 \begin_layout Plain Layout
3299 <cell alignment="center" valignment="top" usebox="none">
3302 \begin_layout Plain Layout
3308 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3311 \begin_layout Plain Layout
3319 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3322 \begin_layout Plain Layout
3330 <cell alignment="center" valignment="top" usebox="none">
3333 \begin_layout Plain Layout
3339 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3342 \begin_layout Plain Layout
3350 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3353 \begin_layout Plain Layout
3361 <cell alignment="center" valignment="top" usebox="none">
3364 \begin_layout Plain Layout
3370 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3373 \begin_layout Plain Layout
3381 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3384 \begin_layout Plain Layout
3392 <cell alignment="center" valignment="top" usebox="none">
3395 \begin_layout Plain Layout
3401 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3404 \begin_layout Plain Layout
3412 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3415 \begin_layout Plain Layout
3423 <cell alignment="center" valignment="top" usebox="none">
3426 \begin_layout Plain Layout
3432 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3435 \begin_layout Plain Layout
3443 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3446 \begin_layout Plain Layout
3454 <cell alignment="center" valignment="top" usebox="none">
3457 \begin_layout Plain Layout
3463 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3466 \begin_layout Plain Layout
3474 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3477 \begin_layout Plain Layout
3485 <cell alignment="center" valignment="top" usebox="none">
3488 \begin_layout Plain Layout
3494 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3497 \begin_layout Plain Layout
3505 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3508 \begin_layout Plain Layout
3516 <cell alignment="center" valignment="top" usebox="none">
3519 \begin_layout Plain Layout
3525 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3528 \begin_layout Plain Layout
3536 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3539 \begin_layout Plain Layout
3547 <cell alignment="center" valignment="top" usebox="none">
3550 \begin_layout Plain Layout
3556 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3559 \begin_layout Plain Layout
3567 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3570 \begin_layout Plain Layout
3578 <cell alignment="center" valignment="top" usebox="none">
3581 \begin_layout Plain Layout
3587 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3590 \begin_layout Plain Layout
3598 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3601 \begin_layout Plain Layout
3609 <cell alignment="center" valignment="top" usebox="none">
3612 \begin_layout Plain Layout
3618 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3621 \begin_layout Plain Layout
3629 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3632 \begin_layout Plain Layout
3640 <cell alignment="center" valignment="top" usebox="none">
3643 \begin_layout Plain Layout
3649 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3652 \begin_layout Plain Layout
3660 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3663 \begin_layout Plain Layout
3671 <cell alignment="center" valignment="top" usebox="none">
3674 \begin_layout Plain Layout
3680 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3683 \begin_layout Plain Layout
3691 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3694 \begin_layout Plain Layout
3702 <cell alignment="center" valignment="top" usebox="none">
3705 \begin_layout Plain Layout
3711 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3714 \begin_layout Plain Layout
3722 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3725 \begin_layout Plain Layout
3733 <cell alignment="center" valignment="top" usebox="none">
3736 \begin_layout Plain Layout
3742 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3745 \begin_layout Plain Layout
3753 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3756 \begin_layout Plain Layout
3764 <cell alignment="center" valignment="top" usebox="none">
3767 \begin_layout Plain Layout
3773 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3776 \begin_layout Plain Layout
3784 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3787 \begin_layout Plain Layout
3795 <cell alignment="center" valignment="top" usebox="none">
3798 \begin_layout Plain Layout
3804 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3807 \begin_layout Plain Layout
3815 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3818 \begin_layout Plain Layout
3826 <cell alignment="center" valignment="top" usebox="none">
3829 \begin_layout Plain Layout
3835 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3838 \begin_layout Plain Layout
3846 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3849 \begin_layout Plain Layout
3857 <cell alignment="center" valignment="top" usebox="none">
3860 \begin_layout Plain Layout
3866 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3869 \begin_layout Plain Layout
3877 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3880 \begin_layout Plain Layout
3888 <cell alignment="center" valignment="top" usebox="none">
3891 \begin_layout Plain Layout
3897 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3900 \begin_layout Plain Layout
3908 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3911 \begin_layout Plain Layout
3919 <cell alignment="center" valignment="top" usebox="none">
3922 \begin_layout Plain Layout
3928 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3931 \begin_layout Plain Layout
3939 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3942 \begin_layout Plain Layout
3950 <cell alignment="center" valignment="top" usebox="none">
3953 \begin_layout Plain Layout
3959 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3962 \begin_layout Plain Layout
3970 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3973 \begin_layout Plain Layout
3981 <cell alignment="center" valignment="top" usebox="none">
3984 \begin_layout Plain Layout
3990 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3993 \begin_layout Plain Layout
4001 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4004 \begin_layout Plain Layout
4012 <cell alignment="center" valignment="top" usebox="none">
4015 \begin_layout Plain Layout
4021 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4024 \begin_layout Plain Layout
4032 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4035 \begin_layout Plain Layout
4043 <cell alignment="center" valignment="top" usebox="none">
4046 \begin_layout Plain Layout
4052 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4055 \begin_layout Plain Layout
4063 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4066 \begin_layout Plain Layout
4074 <cell alignment="center" valignment="top" usebox="none">
4077 \begin_layout Plain Layout
4083 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4086 \begin_layout Plain Layout
4094 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4097 \begin_layout Plain Layout
4105 <cell alignment="center" valignment="top" usebox="none">
4108 \begin_layout Plain Layout
4114 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4117 \begin_layout Plain Layout
4125 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4128 \begin_layout Plain Layout
4136 <cell alignment="center" valignment="top" usebox="none">
4139 \begin_layout Plain Layout
4145 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4148 \begin_layout Plain Layout
4156 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4159 \begin_layout Plain Layout
4167 <cell alignment="center" valignment="top" usebox="none">
4170 \begin_layout Plain Layout
4176 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4179 \begin_layout Plain Layout
4187 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4190 \begin_layout Plain Layout
4198 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4201 \begin_layout Plain Layout
4207 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4210 \begin_layout Plain Layout
4218 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4221 \begin_layout Plain Layout
4227 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4230 \begin_layout Plain Layout
4236 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4239 \begin_layout Plain Layout
4247 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4250 \begin_layout Plain Layout
4258 <cell alignment="center" valignment="top" usebox="none">
4261 \begin_layout Plain Layout
4267 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4270 \begin_layout Plain Layout
4278 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4281 \begin_layout Plain Layout
4289 <cell alignment="center" valignment="top" usebox="none">
4292 \begin_layout Plain Layout
4298 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4301 \begin_layout Plain Layout
4309 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4312 \begin_layout Plain Layout
4320 <cell alignment="center" valignment="top" usebox="none">
4323 \begin_layout Plain Layout
4329 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4332 \begin_layout Plain Layout
4340 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4343 \begin_layout Plain Layout
4351 <cell alignment="center" valignment="top" usebox="none">
4354 \begin_layout Plain Layout
4360 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4363 \begin_layout Plain Layout
4371 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4374 \begin_layout Plain Layout
4382 <cell alignment="center" valignment="top" usebox="none">
4385 \begin_layout Plain Layout
4391 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4394 \begin_layout Plain Layout
4402 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4405 \begin_layout Plain Layout
4413 <cell alignment="center" valignment="top" usebox="none">
4416 \begin_layout Plain Layout
4422 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4425 \begin_layout Plain Layout
4433 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4436 \begin_layout Plain Layout
4444 <cell alignment="center" valignment="top" usebox="none">
4447 \begin_layout Plain Layout
4453 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4456 \begin_layout Plain Layout
4464 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4467 \begin_layout Plain Layout
4475 <cell alignment="center" valignment="top" usebox="none">
4478 \begin_layout Plain Layout
4484 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4487 \begin_layout Plain Layout
4495 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4498 \begin_layout Plain Layout
4506 <cell alignment="center" valignment="top" usebox="none">
4509 \begin_layout Plain Layout
4515 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4518 \begin_layout Plain Layout
4526 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4529 \begin_layout Plain Layout
4537 <cell alignment="center" valignment="top" usebox="none">
4540 \begin_layout Plain Layout
4546 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4549 \begin_layout Plain Layout
4557 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4560 \begin_layout Plain Layout
4568 <cell alignment="center" valignment="top" usebox="none">
4571 \begin_layout Plain Layout
4577 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4580 \begin_layout Plain Layout
4588 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4591 \begin_layout Plain Layout
4599 <cell alignment="center" valignment="top" usebox="none">
4602 \begin_layout Plain Layout
4608 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4611 \begin_layout Plain Layout
4619 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4622 \begin_layout Plain Layout
4630 <cell alignment="center" valignment="top" usebox="none">
4633 \begin_layout Plain Layout
4639 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4642 \begin_layout Plain Layout
4650 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4653 \begin_layout Plain Layout
4661 <cell alignment="center" valignment="top" usebox="none">
4664 \begin_layout Plain Layout
4670 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4673 \begin_layout Plain Layout
4681 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4684 \begin_layout Plain Layout
4692 <cell alignment="center" valignment="top" usebox="none">
4695 \begin_layout Plain Layout
4701 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4704 \begin_layout Plain Layout
4712 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4715 \begin_layout Plain Layout
4723 <cell alignment="center" valignment="top" usebox="none">
4726 \begin_layout Plain Layout
4732 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4735 \begin_layout Plain Layout
4743 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4746 \begin_layout Plain Layout
4754 <cell alignment="center" valignment="top" usebox="none">
4757 \begin_layout Plain Layout
4763 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4766 \begin_layout Plain Layout
4774 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4777 \begin_layout Plain Layout
4785 <cell alignment="center" valignment="top" usebox="none">
4788 \begin_layout Plain Layout
4794 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4797 \begin_layout Plain Layout
4805 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4808 \begin_layout Plain Layout
4816 <cell alignment="center" valignment="top" usebox="none">
4819 \begin_layout Plain Layout
4825 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4828 \begin_layout Plain Layout
4836 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4839 \begin_layout Plain Layout
4847 <cell alignment="center" valignment="top" usebox="none">
4850 \begin_layout Plain Layout
4856 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4859 \begin_layout Plain Layout
4867 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4870 \begin_layout Plain Layout
4878 <cell alignment="center" valignment="top" usebox="none">
4881 \begin_layout Plain Layout
4887 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4890 \begin_layout Plain Layout
4898 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4901 \begin_layout Plain Layout
4909 <cell alignment="center" valignment="top" usebox="none">
4912 \begin_layout Plain Layout
4918 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4921 \begin_layout Plain Layout
4929 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4932 \begin_layout Plain Layout
4940 <cell alignment="center" valignment="top" usebox="none">
4943 \begin_layout Plain Layout
4949 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4952 \begin_layout Plain Layout
4960 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4963 \begin_layout Plain Layout
4971 <cell alignment="center" valignment="top" usebox="none">
4974 \begin_layout Plain Layout
4980 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4983 \begin_layout Plain Layout
4991 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4994 \begin_layout Plain Layout
5002 <cell alignment="center" valignment="top" usebox="none">
5005 \begin_layout Plain Layout
5011 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5014 \begin_layout Plain Layout
5022 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5025 \begin_layout Plain Layout
5033 <cell alignment="center" valignment="top" usebox="none">
5036 \begin_layout Plain Layout
5042 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5045 \begin_layout Plain Layout
5053 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5056 \begin_layout Plain Layout
5064 <cell alignment="center" valignment="top" usebox="none">
5067 \begin_layout Plain Layout
5073 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5076 \begin_layout Plain Layout
5084 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5087 \begin_layout Plain Layout
5095 <cell alignment="center" valignment="top" usebox="none">
5098 \begin_layout Plain Layout
5104 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5107 \begin_layout Plain Layout
5115 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5118 \begin_layout Plain Layout
5126 <cell alignment="center" valignment="top" usebox="none">
5129 \begin_layout Plain Layout
5135 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5138 \begin_layout Plain Layout
5146 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5149 \begin_layout Plain Layout
5157 <cell alignment="center" valignment="top" usebox="none">
5160 \begin_layout Plain Layout
5166 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5169 \begin_layout Plain Layout
5177 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5180 \begin_layout Plain Layout
5188 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5191 \begin_layout Plain Layout
5197 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5200 \begin_layout Plain Layout
5207 <row endlastfoot="true">
5208 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5211 \begin_layout Plain Layout
5217 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5220 \begin_layout Plain Layout
5226 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5229 \begin_layout Plain Layout
5244 \begin_layout Plain Layout
5248 addtocounter{table}{-1}
5254 \begin_inset Note Note
5257 \begin_layout Plain Layout
5258 See greyed-out note in section
5259 \begin_inset space ~
5263 \begin_inset CommandInset ref
5265 reference "sub:Longtable-Captions"
5269 for an explanation of this command.
5277 \begin_layout Subsection
5278 Footnotes in Longtables
5279 \begin_inset CommandInset label
5281 name "sub:Footnotes-in-Longtables"
5289 \begin_layout Plain Layout
5290 Longtables ! Footnotes
5298 \begin_layout Standard
5299 Footnotes can be inserted to every longtable cell.
5300 They appear at the bottom of the page where the table cell with the footnote
5303 \begin_inset space ~
5307 \begin_inset CommandInset ref
5309 reference "tab:DiffCaptions"
5313 has for example a footnote.
5316 \begin_layout Subsection
5321 \begin_layout Plain Layout
5322 Longtables ! Alignment
5330 \begin_layout Standard
5331 Longtables are by default centered.
5332 In contrary to the alignment of the table columns and row, the table alignment
5333 can currently not be changed in the table dialog.
5334 To change the alignment of longtables you have to change the value of the
5347 by inserting this line as TeX-Code before the corresponding longtable:
5350 \begin_layout Standard
5360 \begin_layout Standard
5361 Where the value can have any of the units listed in Table
5362 \begin_inset space ~
5366 \begin_inset CommandInset ref
5368 reference "tab:Units"
5379 controls the horizontal distance from the left page border to the longtable,
5386 the distance from the right side.
5387 The default value for both lengths is
5393 , which is in this case the same as an horizontal fill in LyX.
5396 \begin_layout Standard
5397 The following longtable was left-aligned by setting
5404 \begin_inset space \thinspace{}
5411 \begin_layout Plain Layout
5425 \begin_layout Standard
5426 \begin_inset Tabular
5427 <lyxtabular version="3" rows="5" columns="5">
5428 <features islongtable="true">
5429 <column alignment="center" valignment="top" width="0">
5430 <column alignment="center" valignment="top" width="0">
5431 <column alignment="center" valignment="top" width="0">
5432 <column alignment="center" valignment="top" width="0">
5433 <column alignment="center" valignment="top" width="0">
5435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5438 \begin_layout Plain Layout
5444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5447 \begin_layout Plain Layout
5453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5456 \begin_layout Plain Layout
5462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5465 \begin_layout Plain Layout
5471 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5474 \begin_layout Plain Layout
5482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5485 \begin_layout Plain Layout
5491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5494 \begin_layout Plain Layout
5500 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5503 \begin_layout Plain Layout
5509 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5512 \begin_layout Plain Layout
5518 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5521 \begin_layout Plain Layout
5529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5532 \begin_layout Plain Layout
5538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5541 \begin_layout Plain Layout
5547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5550 \begin_layout Plain Layout
5556 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5559 \begin_layout Plain Layout
5565 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5568 \begin_layout Plain Layout
5576 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5579 \begin_layout Plain Layout
5585 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5588 \begin_layout Plain Layout
5594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5597 \begin_layout Plain Layout
5603 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5606 \begin_layout Plain Layout
5612 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5615 \begin_layout Plain Layout
5623 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5626 \begin_layout Plain Layout
5632 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5635 \begin_layout Plain Layout
5641 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5644 \begin_layout Plain Layout
5650 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5653 \begin_layout Plain Layout
5659 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5662 \begin_layout Plain Layout
5677 \begin_layout Plain Layout
5693 \begin_layout Subsection
5698 \begin_layout Plain Layout
5699 Longtables ! Captions
5705 \begin_inset CommandInset label
5707 name "sub:Longtable-Captions"
5714 \begin_layout Standard
5715 A longtable cannot be put into a table float because floats can only be
5716 on one page but the caption environment of floats can also be used for
5718 Therefore the caption is inserted as first row of the table, as explained
5720 \begin_inset space \thinspace{}
5724 \begin_inset CommandInset ref
5726 reference "sec:Longtables"
5731 The first table row is then only a dummy row for the caption, the actual
5732 table starts with the second row.
5735 \begin_layout Standard
5736 Here is a short longtable to see how it works:
5739 \begin_layout Standard
5740 \begin_inset Tabular
5741 <lyxtabular version="3" rows="6" columns="5">
5742 <features islongtable="true">
5743 <column alignment="center" valignment="top" width="0">
5744 <column alignment="center" valignment="top" width="0">
5745 <column alignment="center" valignment="top" width="0">
5746 <column alignment="center" valignment="top" width="0">
5747 <column alignment="center" valignment="top" width="0">
5748 <row caption="true">
5749 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5752 \begin_layout Plain Layout
5753 \begin_inset Caption
5755 \begin_layout Plain Layout
5756 Longtable with caption
5760 \begin_layout Plain Layout
5776 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5779 \begin_layout Plain Layout
5785 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5788 \begin_layout Plain Layout
5794 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5797 \begin_layout Plain Layout
5803 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5806 \begin_layout Plain Layout
5814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5817 \begin_layout Plain Layout
5823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5826 \begin_layout Plain Layout
5832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5835 \begin_layout Plain Layout
5841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5844 \begin_layout Plain Layout
5850 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5853 \begin_layout Plain Layout
5861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5864 \begin_layout Plain Layout
5870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5873 \begin_layout Plain Layout
5879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5882 \begin_layout Plain Layout
5888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5891 \begin_layout Plain Layout
5897 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5900 \begin_layout Plain Layout
5908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5911 \begin_layout Plain Layout
5917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5920 \begin_layout Plain Layout
5926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5929 \begin_layout Plain Layout
5935 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5938 \begin_layout Plain Layout
5944 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5947 \begin_layout Plain Layout
5955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5958 \begin_layout Plain Layout
5964 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5967 \begin_layout Plain Layout
5973 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5976 \begin_layout Plain Layout
5982 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5985 \begin_layout Plain Layout
5991 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5994 \begin_layout Plain Layout
6002 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6005 \begin_layout Plain Layout
6011 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6014 \begin_layout Plain Layout
6020 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6023 \begin_layout Plain Layout
6029 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6032 \begin_layout Plain Layout
6038 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6041 \begin_layout Plain Layout
6055 \begin_layout Standard
6056 \begin_inset VSpace medskip
6060 \begin_inset Note Greyedout
6063 \begin_layout Plain Layout
6068 The table number is increased for every longtable, also if you didn't set
6070 For this reason you could have the case that e.g.
6072 \begin_inset space ~
6075 2.4 follows on Table
6076 \begin_inset space ~
6079 2.1 in the list of tables if there are two longtables without captions.
6080 To avoid this you can add the following command in TeX-Code behind every
6081 longtable without a caption:
6084 \begin_layout Plain Layout
6089 addtocounter{table}{-1}
6097 \begin_layout Standard
6098 \begin_inset Note Greyedout
6101 \begin_layout Plain Layout
6114 \begin_layout Plain Layout
6115 LaTeX-packages ! hyperref
6128 dialog to link cross-references, the link to a longtable caption will always
6129 point to the beginning of the document.
6137 \begin_layout Standard
6138 \begin_inset Newpage newpage
6144 \begin_layout Subsubsection
6145 References to Longtables
6149 \begin_layout Plain Layout
6150 Longtables ! References
6158 \begin_layout Standard
6159 \begin_inset Tabular
6160 <lyxtabular version="3" rows="6" columns="5">
6161 <features islongtable="true">
6162 <column alignment="center" valignment="top" width="0">
6163 <column alignment="center" valignment="top" width="0">
6164 <column alignment="center" valignment="top" width="0">
6165 <column alignment="center" valignment="top" width="0">
6166 <column alignment="center" valignment="top" width="0">
6167 <row caption="true">
6168 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6171 \begin_layout Plain Layout
6172 \begin_inset Caption
6174 \begin_layout Plain Layout
6175 Referenced longtable
6176 \begin_inset CommandInset label
6178 name "tab:RefExample"
6192 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6195 \begin_layout Plain Layout
6201 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6204 \begin_layout Plain Layout
6210 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6213 \begin_layout Plain Layout
6219 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6222 \begin_layout Plain Layout
6230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6233 \begin_layout Plain Layout
6239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6242 \begin_layout Plain Layout
6248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6251 \begin_layout Plain Layout
6257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6260 \begin_layout Plain Layout
6266 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6269 \begin_layout Plain Layout
6277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6280 \begin_layout Plain Layout
6286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6289 \begin_layout Plain Layout
6295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6298 \begin_layout Plain Layout
6304 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6307 \begin_layout Plain Layout
6313 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6316 \begin_layout Plain Layout
6324 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6327 \begin_layout Plain Layout
6333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6336 \begin_layout Plain Layout
6342 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6345 \begin_layout Plain Layout
6351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6354 \begin_layout Plain Layout
6360 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6363 \begin_layout Plain Layout
6371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6374 \begin_layout Plain Layout
6380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6383 \begin_layout Plain Layout
6389 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6392 \begin_layout Plain Layout
6398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6401 \begin_layout Plain Layout
6407 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6410 \begin_layout Plain Layout
6418 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6421 \begin_layout Plain Layout
6427 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6430 \begin_layout Plain Layout
6436 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6439 \begin_layout Plain Layout
6445 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6448 \begin_layout Plain Layout
6454 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6457 \begin_layout Plain Layout
6471 \begin_layout Standard
6472 To reference a longtable, insert a label into the caption.
6475 \begin_layout Standard
6476 This is a reference to Table
6477 \begin_inset space ~
6481 \begin_inset CommandInset ref
6483 reference "tab:RefExample"
6490 \begin_layout Standard
6491 The caption layout can be set together with all other captions of your document
6492 using the LaTeX-package
6500 \begin_layout Plain Layout
6501 LaTeX-packages ! caption
6507 \begin_inset space ~
6511 \begin_inset CommandInset ref
6513 reference "sec:Caption-Formatting"
6520 \begin_layout Subsubsection
6525 \begin_layout Plain Layout
6526 Longtables ! Caption Width
6534 \begin_layout Standard
6535 The maximal width of of caption lines is defined by the length
6542 Its default value is 4
6543 \begin_inset space \thinspace{}
6547 To change it add the following command to your document preamble or as
6548 TeX-Code into your document before the longtable that should be affected
6551 \begin_layout Standard
6561 \begin_layout Standard
6562 where the width could have one of the units listed in appendix
6563 \begin_inset space ~
6567 \begin_inset CommandInset ref
6569 reference "cha:Units-available-in"
6576 \begin_layout Standard
6577 The following tables show the difference:
6580 \begin_layout Standard
6581 \begin_inset Tabular
6582 <lyxtabular version="3" rows="6" columns="5">
6583 <features islongtable="true">
6584 <column alignment="center" valignment="top" width="0">
6585 <column alignment="center" valignment="top" width="0">
6586 <column alignment="center" valignment="top" width="0">
6587 <column alignment="center" valignment="top" width="0">
6588 <column alignment="center" valignment="top" width="0">
6589 <row caption="true">
6590 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6593 \begin_layout Plain Layout
6594 \begin_inset Caption
6596 \begin_layout Plain Layout
6597 long full title with default width long full title with default width long
6598 full title with default width
6602 \begin_layout Plain Layout
6603 caption with default width
6618 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6621 \begin_layout Plain Layout
6627 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6630 \begin_layout Plain Layout
6636 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6639 \begin_layout Plain Layout
6645 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6648 \begin_layout Plain Layout
6656 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6659 \begin_layout Plain Layout
6665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6668 \begin_layout Plain Layout
6674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6677 \begin_layout Plain Layout
6683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6686 \begin_layout Plain Layout
6692 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6695 \begin_layout Plain Layout
6703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6706 \begin_layout Plain Layout
6712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6715 \begin_layout Plain Layout
6721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6724 \begin_layout Plain Layout
6730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6733 \begin_layout Plain Layout
6739 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6742 \begin_layout Plain Layout
6750 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6753 \begin_layout Plain Layout
6759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6762 \begin_layout Plain Layout
6768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6771 \begin_layout Plain Layout
6777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6780 \begin_layout Plain Layout
6786 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6789 \begin_layout Plain Layout
6797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6800 \begin_layout Plain Layout
6806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6809 \begin_layout Plain Layout
6815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6818 \begin_layout Plain Layout
6824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6827 \begin_layout Plain Layout
6833 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6836 \begin_layout Plain Layout
6844 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6847 \begin_layout Plain Layout
6853 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6856 \begin_layout Plain Layout
6862 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6865 \begin_layout Plain Layout
6871 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6874 \begin_layout Plain Layout
6880 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6883 \begin_layout Plain Layout
6897 \begin_layout Standard
6901 \begin_layout Plain Layout
6913 \begin_inset Tabular
6914 <lyxtabular version="3" rows="6" columns="5">
6915 <features islongtable="true">
6916 <column alignment="center" valignment="top" width="0">
6917 <column alignment="center" valignment="top" width="0">
6918 <column alignment="center" valignment="top" width="0">
6919 <column alignment="center" valignment="top" width="0">
6920 <column alignment="center" valignment="top" width="0">
6921 <row caption="true">
6922 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6925 \begin_layout Plain Layout
6926 \begin_inset Caption
6928 \begin_layout Plain Layout
6929 long full title with width set to 5
6930 \begin_inset space \thinspace{}
6933 cm long full title with width set to 5
6934 \begin_inset space \thinspace{}
6937 cm long full title with width set to 5
6938 \begin_inset space \thinspace{}
6945 \begin_layout Plain Layout
6947 \begin_inset space \thinspace{}
6951 \begin_inset space \thinspace{}
6955 \begin_inset space \thinspace{}
6973 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6976 \begin_layout Plain Layout
6982 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6985 \begin_layout Plain Layout
6991 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6994 \begin_layout Plain Layout
7000 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7003 \begin_layout Plain Layout
7011 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7014 \begin_layout Plain Layout
7020 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7023 \begin_layout Plain Layout
7029 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7032 \begin_layout Plain Layout
7038 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7041 \begin_layout Plain Layout
7047 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7050 \begin_layout Plain Layout
7058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7061 \begin_layout Plain Layout
7067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7070 \begin_layout Plain Layout
7076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7079 \begin_layout Plain Layout
7085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7088 \begin_layout Plain Layout
7094 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7097 \begin_layout Plain Layout
7105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7108 \begin_layout Plain Layout
7114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7117 \begin_layout Plain Layout
7123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7126 \begin_layout Plain Layout
7132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7135 \begin_layout Plain Layout
7141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7144 \begin_layout Plain Layout
7152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7155 \begin_layout Plain Layout
7161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7164 \begin_layout Plain Layout
7170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7173 \begin_layout Plain Layout
7179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7182 \begin_layout Plain Layout
7188 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7191 \begin_layout Plain Layout
7199 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7202 \begin_layout Plain Layout
7208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7211 \begin_layout Plain Layout
7217 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7220 \begin_layout Plain Layout
7226 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7229 \begin_layout Plain Layout
7235 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7238 \begin_layout Plain Layout
7252 \begin_layout Standard
7256 \begin_layout Plain Layout
7270 \begin_layout Standard
7271 \begin_inset Note Greyedout
7274 \begin_layout Plain Layout
7279 When the LaTeX-package
7287 \begin_layout Plain Layout
7288 LaTeX-packages ! caption
7293 is used, as in this document, the full page width is used for the caption
7294 when you use the default value of 4
7295 \begin_inset space \thinspace{}
7305 To get in this case exactly a 4
7306 \begin_inset space \thinspace{}
7309 in wide caption, you can either use a value slightly different from 4.0
7310 \begin_inset space \thinspace{}
7315 \begin_inset space \thinspace{}
7318 in, or the LaTeX-command
7322 captionsetup{width=value}
7324 that is provided by the
7336 \begin_layout Subsubsection
7337 Different Captions for Table Pages
7341 \begin_layout Plain Layout
7342 Longtables ! Different Captions for Pages
7350 \begin_layout Standard
7351 When the other captions should differ from the one of the first table page,
7352 insert a caption with a non-empty short title in a dummy caption row marked
7354 The caption used for the other table pages is inserted as caption without
7355 a short title in a dummy caption row that is marked as main header.
7356 When this caption shouldn't include the table number, use the command
7359 \begin_layout Standard
7364 caption*{caption text}
7367 \begin_layout Standard
7368 instead of LyX's caption box.
7369 The label to reference the table is inserted into the caption of the first
7372 \begin_inset space ~
7376 \begin_inset CommandInset ref
7378 reference "tab:DiffCaptions"
7382 is an example for a longtable with different heading where the second caption
7383 doesn't include the table number.
7386 \begin_layout Standard
7388 \begin_inset Tabular
7389 <lyxtabular version="3" rows="60" columns="3">
7390 <features islongtable="true">
7391 <column alignment="left" valignment="top" width="0cm">
7392 <column alignment="left" valignment="top" width="0pt">
7393 <column alignment="center" valignment="top" width="0pt">
7394 <row endfirsthead="true" caption="true">
7395 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7398 \begin_layout Plain Layout
7399 \begin_inset Caption
7401 \begin_layout Plain Layout
7403 \begin_inset CommandInset label
7405 name "tab:DiffCaptions"
7413 \begin_layout Plain Layout
7429 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7432 \begin_layout Plain Layout
7438 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7441 \begin_layout Plain Layout
7448 <row endfirsthead="true">
7449 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7452 \begin_layout Plain Layout
7455 Example Phone List (ignore the names)
7460 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7463 \begin_layout Plain Layout
7469 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7472 \begin_layout Plain Layout
7479 <row endfirsthead="true">
7480 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7483 \begin_layout Plain Layout
7491 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7494 \begin_layout Plain Layout
7500 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7503 \begin_layout Plain Layout
7512 <row endhead="true" caption="true">
7513 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7516 \begin_layout Plain Layout
7520 \begin_layout Plain Layout
7524 caption*{Continued Example Phone List}
7538 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7541 \begin_layout Plain Layout
7547 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7550 \begin_layout Plain Layout
7557 <row endhead="true">
7558 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7561 \begin_layout Plain Layout
7569 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7572 \begin_layout Plain Layout
7578 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7581 \begin_layout Plain Layout
7588 <row endhead="true">
7589 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
7592 \begin_layout Plain Layout
7600 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7603 \begin_layout Plain Layout
7609 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7612 \begin_layout Plain Layout
7621 <row endfoot="true">
7622 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7625 \begin_layout Plain Layout
7626 continued on next page
7631 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7634 \begin_layout Plain Layout
7640 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7643 \begin_layout Plain Layout
7651 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7654 \begin_layout Plain Layout
7662 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7665 \begin_layout Plain Layout
7671 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7674 \begin_layout Plain Layout
7682 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7685 \begin_layout Plain Layout
7693 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7696 \begin_layout Plain Layout
7702 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7705 \begin_layout Plain Layout
7713 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7716 \begin_layout Plain Layout
7724 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7727 \begin_layout Plain Layout
7733 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7736 \begin_layout Plain Layout
7744 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7747 \begin_layout Plain Layout
7755 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7758 \begin_layout Plain Layout
7764 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7767 \begin_layout Plain Layout
7775 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7778 \begin_layout Plain Layout
7786 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7789 \begin_layout Plain Layout
7795 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7798 \begin_layout Plain Layout
7806 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7809 \begin_layout Plain Layout
7817 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7820 \begin_layout Plain Layout
7826 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7829 \begin_layout Plain Layout
7837 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7840 \begin_layout Plain Layout
7848 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7851 \begin_layout Plain Layout
7857 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7860 \begin_layout Plain Layout
7868 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7871 \begin_layout Plain Layout
7879 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7882 \begin_layout Plain Layout
7888 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7891 \begin_layout Plain Layout
7899 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7902 \begin_layout Plain Layout
7910 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7913 \begin_layout Plain Layout
7919 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7922 \begin_layout Plain Layout
7930 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7933 \begin_layout Plain Layout
7941 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7944 \begin_layout Plain Layout
7950 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7953 \begin_layout Plain Layout
7961 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7964 \begin_layout Plain Layout
7972 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7975 \begin_layout Plain Layout
7981 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7984 \begin_layout Plain Layout
7992 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7995 \begin_layout Plain Layout
8003 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8006 \begin_layout Plain Layout
8012 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8015 \begin_layout Plain Layout
8023 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8026 \begin_layout Plain Layout
8034 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8037 \begin_layout Plain Layout
8043 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8046 \begin_layout Plain Layout
8054 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8057 \begin_layout Plain Layout
8065 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8068 \begin_layout Plain Layout
8074 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8077 \begin_layout Plain Layout
8085 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8088 \begin_layout Plain Layout
8097 \begin_layout Plain Layout
8108 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8111 \begin_layout Plain Layout
8117 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8120 \begin_layout Plain Layout
8128 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8131 \begin_layout Plain Layout
8139 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8142 \begin_layout Plain Layout
8148 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8151 \begin_layout Plain Layout
8159 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8162 \begin_layout Plain Layout
8170 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8173 \begin_layout Plain Layout
8179 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8182 \begin_layout Plain Layout
8190 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8193 \begin_layout Plain Layout
8201 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8204 \begin_layout Plain Layout
8210 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8213 \begin_layout Plain Layout
8221 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8224 \begin_layout Plain Layout
8232 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8235 \begin_layout Plain Layout
8241 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8244 \begin_layout Plain Layout
8252 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8255 \begin_layout Plain Layout
8263 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8266 \begin_layout Plain Layout
8272 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8275 \begin_layout Plain Layout
8283 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8286 \begin_layout Plain Layout
8294 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8297 \begin_layout Plain Layout
8303 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8306 \begin_layout Plain Layout
8314 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8317 \begin_layout Plain Layout
8325 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8328 \begin_layout Plain Layout
8334 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8337 \begin_layout Plain Layout
8345 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8348 \begin_layout Plain Layout
8356 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8359 \begin_layout Plain Layout
8365 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8368 \begin_layout Plain Layout
8376 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8379 \begin_layout Plain Layout
8387 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8390 \begin_layout Plain Layout
8396 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8399 \begin_layout Plain Layout
8407 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8410 \begin_layout Plain Layout
8418 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8421 \begin_layout Plain Layout
8427 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8430 \begin_layout Plain Layout
8438 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8441 \begin_layout Plain Layout
8449 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8452 \begin_layout Plain Layout
8458 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8461 \begin_layout Plain Layout
8469 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8472 \begin_layout Plain Layout
8480 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8483 \begin_layout Plain Layout
8489 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8492 \begin_layout Plain Layout
8500 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8503 \begin_layout Plain Layout
8511 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8514 \begin_layout Plain Layout
8520 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8523 \begin_layout Plain Layout
8531 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8534 \begin_layout Plain Layout
8542 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8545 \begin_layout Plain Layout
8551 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8554 \begin_layout Plain Layout
8562 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8565 \begin_layout Plain Layout
8573 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8576 \begin_layout Plain Layout
8582 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8585 \begin_layout Plain Layout
8593 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8596 \begin_layout Plain Layout
8604 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8607 \begin_layout Plain Layout
8613 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8616 \begin_layout Plain Layout
8624 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8627 \begin_layout Plain Layout
8633 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8636 \begin_layout Plain Layout
8642 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8645 \begin_layout Plain Layout
8653 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8656 \begin_layout Plain Layout
8664 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8667 \begin_layout Plain Layout
8673 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8676 \begin_layout Plain Layout
8684 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8687 \begin_layout Plain Layout
8695 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8698 \begin_layout Plain Layout
8704 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8707 \begin_layout Plain Layout
8715 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8718 \begin_layout Plain Layout
8726 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8729 \begin_layout Plain Layout
8735 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8738 \begin_layout Plain Layout
8746 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8749 \begin_layout Plain Layout
8757 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8760 \begin_layout Plain Layout
8766 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8769 \begin_layout Plain Layout
8777 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8780 \begin_layout Plain Layout
8788 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8791 \begin_layout Plain Layout
8797 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8800 \begin_layout Plain Layout
8808 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8811 \begin_layout Plain Layout
8819 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8822 \begin_layout Plain Layout
8828 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8831 \begin_layout Plain Layout
8839 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8842 \begin_layout Plain Layout
8850 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8853 \begin_layout Plain Layout
8859 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8862 \begin_layout Plain Layout
8870 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8873 \begin_layout Plain Layout
8881 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8884 \begin_layout Plain Layout
8890 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8893 \begin_layout Plain Layout
8901 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8904 \begin_layout Plain Layout
8912 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8915 \begin_layout Plain Layout
8921 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8924 \begin_layout Plain Layout
8932 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8935 \begin_layout Plain Layout
8943 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8946 \begin_layout Plain Layout
8952 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8955 \begin_layout Plain Layout
8963 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8966 \begin_layout Plain Layout
8974 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8977 \begin_layout Plain Layout
8983 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8986 \begin_layout Plain Layout
8994 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8997 \begin_layout Plain Layout
9005 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9008 \begin_layout Plain Layout
9014 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9017 \begin_layout Plain Layout
9025 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9028 \begin_layout Plain Layout
9036 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9039 \begin_layout Plain Layout
9045 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9048 \begin_layout Plain Layout
9056 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9059 \begin_layout Plain Layout
9067 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9070 \begin_layout Plain Layout
9076 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9079 \begin_layout Plain Layout
9087 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9090 \begin_layout Plain Layout
9098 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9101 \begin_layout Plain Layout
9107 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9110 \begin_layout Plain Layout
9118 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9121 \begin_layout Plain Layout
9129 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9132 \begin_layout Plain Layout
9138 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9141 \begin_layout Plain Layout
9149 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9152 \begin_layout Plain Layout
9160 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9163 \begin_layout Plain Layout
9169 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9172 \begin_layout Plain Layout
9180 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9183 \begin_layout Plain Layout
9191 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9194 \begin_layout Plain Layout
9200 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9203 \begin_layout Plain Layout
9211 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9214 \begin_layout Plain Layout
9222 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9225 \begin_layout Plain Layout
9231 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9234 \begin_layout Plain Layout
9242 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9245 \begin_layout Plain Layout
9253 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9256 \begin_layout Plain Layout
9262 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9265 \begin_layout Plain Layout
9272 <row endlastfoot="true">
9273 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9276 \begin_layout Plain Layout
9282 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
9285 \begin_layout Plain Layout
9291 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9294 \begin_layout Plain Layout
9308 \begin_layout Section
9309 Special Longtable Issues
9310 \begin_inset CommandInset label
9312 name "sec:Special-Longtable-Issues"
9319 \begin_layout Subsection
9320 Longtable Calculation
9324 \begin_layout Plain Layout
9325 Longtables ! Calculation
9333 \begin_layout Standard
9334 LaTeX calculates the height of table pages and their page breaks using so
9336 Chunks are pieces of the tables that are at once in LaTeX's memory.
9337 The default value is historically set to only 20 table rows.
9338 If you are using longtables with many pages this may slow down the creation
9340 You can safely increase the chunk size to values of 100-1000 by adding
9341 this command line to your document preamble:
9344 \begin_layout Standard
9349 setcounter{LTchunksize}{100}
9352 \begin_layout Subsection
9353 Floats and Longtables
9357 \begin_layout Plain Layout
9366 \begin_layout Standard
9367 There might be problems when a float appears on the same page where a longtable
9369 To avoid such situation, add the command
9375 as TeX-Code before your longtable.
9378 \begin_layout Subsection
9383 \begin_layout Plain Layout
9384 Longtables ! Forced Page Breaks
9392 \begin_layout Standard
9393 By default tables are only broken between rows.
9394 If you have a cell with multiples lines and want to have a page break within
9395 the cell, insert the new line command
9396 \begin_inset Quotes eld
9408 \begin_inset Quotes erd
9411 as TeX-Code at this point of the cell where it should be broken.
9420 command you have to insert in TeX-Code so many
9421 \begin_inset Quotes eld
9429 \begin_inset Quotes erd
9432 characters like the number of the following table columns.
9437 is the character to separate table cells.
9438 Write in TeX-Code after each
9442 the content of the corresponding following cell and delete the content
9444 \begin_inset Newline newline
9455 command, insert so many
9459 characters like the number of table columns before the current column.
9461 \begin_inset space ~
9465 \begin_inset CommandInset ref
9467 reference "tab:ForcedPagebreak"
9471 the cell that should be broken is in the second column followed by another
9473 Therefore the following command was inserted in the cell as TeX-Code behind
9475 \begin_inset Quotes eld
9483 \begin_inset Quotes erd
9489 \begin_layout Standard
9497 \begin_inset Newline newline
9503 \begin_layout Standard
9505 \begin_inset Quotes eld
9509 \begin_inset Quotes erd
9512 in the third columns of the row was deleted.
9513 If your footer row of the longtable has for a certain reason no upper line
9514 but you would have a horizontal line where the cell is broken, use this
9518 \begin_layout Standard
9526 \begin_inset Newline newline
9534 \begin_layout Standard
9535 When the cell to be broken is in the last column, the command
9538 \begin_layout Standard
9548 \begin_layout Standard
9549 must be inserted as TeX-Code at the beginning of the cell.
9550 This assures that the part of the cell that will be displayed on the new
9551 page appears with the full width.
9554 \begin_layout Standard
9556 \begin_inset Tabular
9557 <lyxtabular version="3" rows="39" columns="3">
9558 <features islongtable="true">
9559 <column alignment="left" valignment="top" width="0cm">
9560 <column alignment="left" valignment="top" width="3cm">
9561 <column alignment="center" valignment="top" width="0pt">
9562 <row endfirsthead="true" caption="true">
9563 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9566 \begin_layout Plain Layout
9567 \begin_inset Caption
9569 \begin_layout Plain Layout
9570 Table with forced page break in table cell
9571 \begin_inset CommandInset label
9573 name "tab:ForcedPagebreak"
9581 \begin_layout Plain Layout
9582 Table with forced page break in table cell
9597 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9600 \begin_layout Plain Layout
9606 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9609 \begin_layout Plain Layout
9616 <row endfirsthead="true">
9617 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9620 \begin_layout Plain Layout
9623 Example Phone List (ignore the names)
9628 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9631 \begin_layout Plain Layout
9637 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9640 \begin_layout Plain Layout
9647 <row endfirsthead="true">
9648 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9651 \begin_layout Plain Layout
9659 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9662 \begin_layout Plain Layout
9668 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9671 \begin_layout Plain Layout
9680 <row endhead="true" caption="true">
9681 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9684 \begin_layout Plain Layout
9688 \begin_layout Plain Layout
9692 caption*{Continued table with forced page break in table cell}
9706 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9709 \begin_layout Plain Layout
9715 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9718 \begin_layout Plain Layout
9725 <row endhead="true">
9726 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9729 \begin_layout Plain Layout
9737 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9740 \begin_layout Plain Layout
9746 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9749 \begin_layout Plain Layout
9756 <row endhead="true">
9757 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9760 \begin_layout Plain Layout
9768 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9771 \begin_layout Plain Layout
9777 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9780 \begin_layout Plain Layout
9789 <row endfoot="true">
9790 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9793 \begin_layout Plain Layout
9794 continued on next page
9799 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9802 \begin_layout Plain Layout
9808 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9811 \begin_layout Plain Layout
9819 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9822 \begin_layout Plain Layout
9830 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9833 \begin_layout Plain Layout
9839 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9842 \begin_layout Plain Layout
9850 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9853 \begin_layout Plain Layout
9861 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9864 \begin_layout Plain Layout
9870 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9873 \begin_layout Plain Layout
9881 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9884 \begin_layout Plain Layout
9892 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9895 \begin_layout Plain Layout
9901 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9904 \begin_layout Plain Layout
9912 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9915 \begin_layout Plain Layout
9923 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9926 \begin_layout Plain Layout
9932 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9935 \begin_layout Plain Layout
9943 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9946 \begin_layout Plain Layout
9954 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9957 \begin_layout Plain Layout
9963 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9966 \begin_layout Plain Layout
9974 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9977 \begin_layout Plain Layout
9985 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9988 \begin_layout Plain Layout
9994 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9997 \begin_layout Plain Layout
10005 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10008 \begin_layout Plain Layout
10016 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10019 \begin_layout Plain Layout
10025 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10028 \begin_layout Plain Layout
10036 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10039 \begin_layout Plain Layout
10047 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10050 \begin_layout Plain Layout
10056 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10059 \begin_layout Plain Layout
10067 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10070 \begin_layout Plain Layout
10078 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10081 \begin_layout Plain Layout
10087 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10090 \begin_layout Plain Layout
10098 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10101 \begin_layout Plain Layout
10109 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10112 \begin_layout Plain Layout
10118 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10121 \begin_layout Plain Layout
10129 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10132 \begin_layout Plain Layout
10140 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10143 \begin_layout Plain Layout
10149 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10152 \begin_layout Plain Layout
10160 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10163 \begin_layout Plain Layout
10171 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10174 \begin_layout Plain Layout
10180 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10183 \begin_layout Plain Layout
10191 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10194 \begin_layout Plain Layout
10202 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10205 \begin_layout Plain Layout
10211 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10214 \begin_layout Plain Layout
10222 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10225 \begin_layout Plain Layout
10233 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10236 \begin_layout Plain Layout
10242 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10245 \begin_layout Plain Layout
10253 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10256 \begin_layout Plain Layout
10264 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10267 \begin_layout Plain Layout
10273 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10276 \begin_layout Plain Layout
10284 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10287 \begin_layout Plain Layout
10295 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10298 \begin_layout Plain Layout
10304 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10307 \begin_layout Plain Layout
10315 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10318 \begin_layout Plain Layout
10326 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10329 \begin_layout Plain Layout
10335 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10338 \begin_layout Plain Layout
10346 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10349 \begin_layout Plain Layout
10357 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10360 \begin_layout Plain Layout
10366 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10369 \begin_layout Plain Layout
10377 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10380 \begin_layout Plain Layout
10388 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10391 \begin_layout Plain Layout
10397 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10400 \begin_layout Plain Layout
10408 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10411 \begin_layout Plain Layout
10419 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10422 \begin_layout Plain Layout
10428 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10431 \begin_layout Plain Layout
10439 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10442 \begin_layout Plain Layout
10450 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10453 \begin_layout Plain Layout
10459 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10462 \begin_layout Plain Layout
10470 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10473 \begin_layout Plain Layout
10481 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10484 \begin_layout Plain Layout
10490 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10493 \begin_layout Plain Layout
10501 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10504 \begin_layout Plain Layout
10512 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10515 \begin_layout Plain Layout
10517 Fürst von Montecompatri, 11.
10518 Fürst von Sulmona und Vivaro, 10.
10519 Fürst von Rossano, 5.
10520 Herzog von Canemorte, 11.
10521 Herzog von Palombara, 5.
10522 Herzog von Castelchiodato,
10526 \begin_layout Plain Layout
10535 \begin_layout Plain Layout
10543 Herzog von Poggionativo, 11.
10544 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10545 Graf von Valinfreda, 11.
10546 Baron von Cropalati, 11.
10547 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10552 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10555 \begin_layout Plain Layout
10563 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10566 \begin_layout Plain Layout
10574 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10577 \begin_layout Plain Layout
10583 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10586 \begin_layout Plain Layout
10594 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10597 \begin_layout Plain Layout
10605 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10608 \begin_layout Plain Layout
10614 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10617 \begin_layout Plain Layout
10625 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10628 \begin_layout Plain Layout
10636 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10639 \begin_layout Plain Layout
10645 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10648 \begin_layout Plain Layout
10656 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10659 \begin_layout Plain Layout
10667 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10670 \begin_layout Plain Layout
10676 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10679 \begin_layout Plain Layout
10687 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10690 \begin_layout Plain Layout
10698 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10701 \begin_layout Plain Layout
10707 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10710 \begin_layout Plain Layout
10718 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10721 \begin_layout Plain Layout
10729 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10732 \begin_layout Plain Layout
10738 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10741 \begin_layout Plain Layout
10749 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10752 \begin_layout Plain Layout
10760 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10763 \begin_layout Plain Layout
10769 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10772 \begin_layout Plain Layout
10780 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10783 \begin_layout Plain Layout
10791 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10794 \begin_layout Plain Layout
10800 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10803 \begin_layout Plain Layout
10810 <row endlastfoot="true">
10811 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10814 \begin_layout Plain Layout
10820 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10823 \begin_layout Plain Layout
10829 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10832 \begin_layout Plain Layout
10846 \begin_layout Standard
10847 \begin_inset Newpage newpage
10853 \begin_layout Section
10854 Multiple Lines Columns and Rows
10857 \begin_layout Subsection
10858 Multiple Lines in Table Cells
10859 \begin_inset CommandInset label
10861 name "sub:Multiple-Lines-in"
10869 \begin_layout Plain Layout
10870 Multiple Lines in Table Cells
10879 \begin_layout Plain Layout
10888 \begin_layout Standard
10890 \begin_inset Float table
10896 \begin_layout Plain Layout
10897 \begin_inset Caption
10899 \begin_layout Plain Layout
10900 \begin_inset CommandInset label
10902 name "tab:Table-with-multiple"
10906 Table with multiple lines in cells
10914 \begin_layout Plain Layout
10916 \begin_inset Tabular
10917 <lyxtabular version="3" rows="3" columns="3">
10919 <column alignment="center" valignment="middle" width="2.5cm">
10920 <column alignment="center" valignment="middle" width="0">
10921 <column alignment="center" valignment="middle" width="0">
10923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10926 \begin_layout Plain Layout
10928 \begin_inset Newline linebreak
10936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10939 \begin_layout Plain Layout
10945 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10948 \begin_layout Plain Layout
10956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10959 \begin_layout Plain Layout
10965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10968 \begin_layout Plain Layout
10974 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10977 \begin_layout Plain Layout
10985 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10988 \begin_layout Plain Layout
10994 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10997 \begin_layout Plain Layout
11003 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11006 \begin_layout Plain Layout
11025 \begin_layout Standard
11026 Adjusting a fixed width for a column, enables to enter text as a paragraph
11027 with multiple lines and hyphenations.
11030 \begin_layout Standard
11032 \begin_inset space ~
11036 \begin_inset CommandInset ref
11038 reference "tab:Table-with-multiple"
11042 , create a 3×3 table, mark the first cell and right-click on it.
11043 In the appearing table dialog we set a cell width of 2.5
11044 \begin_inset space \thinspace{}
11047 cm and choose centered for the vertical and horizontal alignment.
11048 The vertical alignment is used for all cells of the row.
11049 As our text is smaller than than 2.5
11050 \begin_inset space \thinspace{}
11053 cm, only one line will appear.
11054 To get two lines, a justified line break (shortcut
11057 arg "newline-insert linebreak"
11061 If the text is wider than the set cell width, it will automatically be
11062 broken to several lines.
11065 \begin_layout Standard
11066 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11067 by LaTeX if it is the first entry.
11068 Therefore you need to insert something, to make the word not being the
11070 So add a horizontal space of 0
11071 \begin_inset space \thinspace{}
11074 pt before the word.
11075 As the space is zero, it doesn't change the output.
11077 \begin_inset space ~
11081 \begin_inset CommandInset ref
11083 reference "tab:Table-with-and"
11090 \begin_layout Standard
11091 \begin_inset Float table
11097 \begin_layout Plain Layout
11098 \begin_inset Caption
11100 \begin_layout Plain Layout
11101 \begin_inset CommandInset label
11103 name "tab:Table-with-and"
11107 Table with and without hyphenation
11115 \begin_layout Plain Layout
11116 \begin_inset space \hfill{}
11120 \begin_inset Tabular
11121 <lyxtabular version="3" rows="3" columns="3">
11123 <column alignment="center" valignment="middle" width="2.5cm">
11124 <column alignment="center" valignment="middle" width="0">
11125 <column alignment="center" valignment="middle" width="0">
11127 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11130 \begin_layout Plain Layout
11131 verylongtablecellword
11136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11139 \begin_layout Plain Layout
11145 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11148 \begin_layout Plain Layout
11156 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11159 \begin_layout Plain Layout
11165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11168 \begin_layout Plain Layout
11174 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11177 \begin_layout Plain Layout
11185 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11188 \begin_layout Plain Layout
11194 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11197 \begin_layout Plain Layout
11203 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11206 \begin_layout Plain Layout
11218 \begin_inset space \hfill{}
11222 \begin_inset Tabular
11223 <lyxtabular version="3" rows="3" columns="3">
11225 <column alignment="center" valignment="middle" width="2.5cm">
11226 <column alignment="center" valignment="middle" width="0">
11227 <column alignment="center" valignment="middle" width="0">
11229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11232 \begin_layout Plain Layout
11233 \begin_inset space \hspace{}
11237 verylongtablecellword
11242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11245 \begin_layout Plain Layout
11251 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11254 \begin_layout Plain Layout
11262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11265 \begin_layout Plain Layout
11271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11274 \begin_layout Plain Layout
11280 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11283 \begin_layout Plain Layout
11291 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11294 \begin_layout Plain Layout
11300 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11303 \begin_layout Plain Layout
11309 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11312 \begin_layout Plain Layout
11324 \begin_inset space \hfill{}
11335 \begin_layout Subsection
11337 \begin_inset CommandInset label
11339 name "sub:Multicolumns"
11347 \begin_layout Plain Layout
11357 \begin_layout Plain Layout
11358 Table ! Multicolumns
11366 \begin_layout Subsubsection
11370 \begin_layout Standard
11371 To span a cell over multiple columns, mark as much cells within a line that
11372 should be one spanned cell and use either the table-toolbar button
11373 \begin_inset Graphics
11374 filename ../images/tabular-feature_multicolumn.png
11376 scaleBeforeRotation
11382 Edit\SpecialChar \menuseparator
11383 Table\SpecialChar \menuseparator
11386 , or right click on the marked cells and choose multicolumn in the appearing
11387 table dialog under the tab
11394 \begin_layout Standard
11395 Multicolumns have there own cell settings.
11396 That means changing cell borders, cell alignment, and the width only affects
11398 Here is an example table with a multicolumn cell in the first row and one
11399 in the last row without the upper border:
11402 \begin_layout Standard
11404 \begin_inset Tabular
11405 <lyxtabular version="3" rows="3" columns="4">
11406 <features firstHeadTopDL="true" firstHeadBottomDL="true">
11407 <column alignment="center" valignment="top" width="0pt">
11408 <column alignment="center" valignment="middle" width="0">
11409 <column alignment="center" valignment="top" width="0in">
11410 <column alignment="center" valignment="top" width="0pt">
11412 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11415 \begin_layout Plain Layout
11421 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11424 \begin_layout Plain Layout
11430 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11433 \begin_layout Plain Layout
11439 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11442 \begin_layout Plain Layout
11450 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11453 \begin_layout Plain Layout
11468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11471 \begin_layout Plain Layout
11477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11480 \begin_layout Plain Layout
11486 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11489 \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 multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11509 \begin_layout Plain Layout
11515 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11518 \begin_layout Plain Layout
11524 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11527 \begin_layout Plain Layout
11541 \begin_layout Subsubsection
11542 Multicolumn Calculations
11543 \begin_inset CommandInset label
11545 name "sub:Multicolumn-Calculations"
11553 \begin_layout Plain Layout
11554 Multicolumns ! Calculations
11562 \begin_layout Standard
11563 LyX supports multicolumns directly, but we have to take notice of the cell
11564 width of the columns spanned by the multicolumn cell.
11567 \begin_layout Standard
11568 \begin_inset Float table
11574 \begin_layout Plain Layout
11575 \begin_inset Caption
11577 \begin_layout Plain Layout
11578 \begin_inset CommandInset label
11580 name "tab:Table-with-centered"
11584 Table with centered multicolumn text above two columns that have exactly
11585 half the width of the multicolumn cell
11586 \begin_inset OptArg
11589 \begin_layout Plain Layout
11590 Perfect multicolumn table
11603 \begin_layout Plain Layout
11605 \begin_inset Tabular
11606 <lyxtabular version="3" rows="3" columns="3">
11608 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11609 <column alignment="center" valignment="middle" width="0">
11610 <column alignment="center" valignment="top" width="0">
11612 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11615 \begin_layout Plain Layout
11616 multiple lines multicolumn
11621 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11624 \begin_layout Plain Layout
11630 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11633 \begin_layout Plain Layout
11641 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11644 \begin_layout Plain Layout
11650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11653 \begin_layout Plain Layout
11659 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11662 \begin_layout Plain Layout
11670 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11673 \begin_layout Plain Layout
11679 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11682 \begin_layout Plain Layout
11688 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11691 \begin_layout Plain Layout
11710 \begin_layout Standard
11711 To create for example Table
11712 \begin_inset space ~
11716 \begin_inset CommandInset ref
11718 reference "tab:Table-with-centered"
11722 , mark the first two cells in the first row of a 3×3 table and right-click
11724 Now choose for this cell
11733 \begin_inset space \thinspace{}
11736 cm in the table dialog.
11737 The spanned columns should have exactly half the width of the multicolumn
11738 cell, so that you would adjust a width of 1.25
11739 \begin_inset space \thinspace{}
11742 cm for the first column.
11743 The second column has then automatically a width of 1.25
11744 \begin_inset space \thinspace{}
11747 cm (multicolumn width - width of first column).
11748 This was done for Table
11749 \begin_inset space ~
11753 \begin_inset CommandInset ref
11755 reference "tab:Table-without-half"
11762 \begin_layout Standard
11763 \begin_inset Float table
11768 \begin_layout Plain Layout
11769 \begin_inset Caption
11771 \begin_layout Plain Layout
11772 \begin_inset CommandInset label
11774 name "tab:Table-without-half"
11778 Table where the spanned table columns have not exactly half the width of
11779 the multicolumn cell
11780 \begin_inset OptArg
11783 \begin_layout Plain Layout
11784 Imperfect multicolumn table
11797 \begin_layout Plain Layout
11799 \begin_inset Tabular
11800 <lyxtabular version="3" rows="3" columns="3">
11802 <column alignment="center" valignment="top" width="1.25cm">
11803 <column alignment="center" valignment="top" width="0">
11804 <column alignment="center" valignment="top" width="0">
11806 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11809 \begin_layout Plain Layout
11810 multiple lines multicolumn
11815 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11818 \begin_layout Plain Layout
11824 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11827 \begin_layout Plain Layout
11835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11838 \begin_layout Plain Layout
11844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11847 \begin_layout Plain Layout
11853 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11856 \begin_layout Plain Layout
11864 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11867 \begin_layout Plain Layout
11873 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11876 \begin_layout Plain Layout
11882 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11885 \begin_layout Plain Layout
11904 \begin_layout Standard
11905 You can see that the first column has not the half width of the multicolumn
11906 cell, it is a bit bigger.
11907 The reason is that the given width of a cell
11908 \begin_inset Formula $W_{g}$
11911 is not its total width
11912 \begin_inset Formula $W_{\mathrm{tot}}$
11915 because a cell is always a bit larger than its given width.
11917 \begin_inset space ~
11921 \begin_inset CommandInset ref
11923 reference "cha:Explanation-of-Equation"
11927 explains it in detail.
11930 \begin_layout Standard
11931 The needed given width
11932 \begin_inset Formula $W_{g\, n}$
11939 columns are spanned can be calculated, so that each column has a total
11941 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11945 \begin_inset Formula \begin{equation}
11946 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11953 \begin_layout Standard
11954 In our case we have
11955 \begin_inset Formula $n=2$
11959 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11962 cm and the default values for the lengths, so that equation
11963 \begin_inset CommandInset ref
11970 \begin_inset Formula \begin{equation}
11971 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11978 \begin_layout Standard
11979 To enable calculations in LaTeX, the LaTeX-package
11983 must be loaded with the document preamble line
11987 \begin_layout Plain Layout
11988 LaTeX-packages ! calc
11996 \begin_layout Standard
12004 \begin_layout Standard
12005 LyX does not allow to calculate lengths in the width-field of the table
12007 Therefore you have to format the column by inserting a LaTeX-argument in
12009 Here is an overview about the arguments:
12012 \begin_layout Itemize
12017 creates cell with a fixed width, its text is vertically top-aligned
12020 \begin_layout Itemize
12025 creates cell with a fixed width, its text is vertically centered
12028 \begin_layout Itemize
12033 creates cell with a fixed width, its text is vertically bottom-aligned
12036 \begin_layout Standard
12037 By entering a LaTeX-argument, all cell settings set in the table dialog
12041 \begin_layout Standard
12042 \begin_inset Note Greyedout
12045 \begin_layout Plain Layout
12050 Due to a bug, LyX shows the overwritten settings anyway.
12058 \begin_layout Standard
12059 As the text should be horizontally centered, the command
12066 You can now enter the following LaTeX-argument for the first spanned column:
12069 \begin_layout Standard
12074 centering}m{1.25cm-6.2pt}
12077 \begin_layout Standard
12082 means, that the commands inside the braces are applied before the cell
12086 \begin_layout Standard
12087 Although we have chosen centered alignment for the text of the multicolumn
12088 cell, it is still left aligned.
12089 This is because LyX only applies the alignment to single columns.
12090 So we have to use for the multicolumn the LaTeX-argument
12093 \begin_layout Standard
12101 \begin_layout Subsection
12106 \begin_layout Plain Layout
12116 \begin_layout Plain Layout
12125 \begin_layout Standard
12126 In contrary to multicolumns multirows are not yet supported by LyX so a
12127 bit of TeX-Code needs to be used.
12128 To use multirows load the LaTeX-package
12136 \begin_layout Plain Layout
12137 LaTeX-packages ! multirow
12142 in your document preamble with the command
12145 \begin_layout Standard
12150 usepackage{multirow}
12153 \begin_layout Standard
12154 Multirows are created with the command
12157 \begin_layout Standard
12162 multirow{number of rows}{cell width}{cell entry}
12165 \begin_layout Standard
12166 To create the following table:
12169 \begin_layout Standard
12174 \begin_layout Plain Layout
12188 \begin_inset Tabular
12189 <lyxtabular version="3" rows="3" columns="3">
12191 <column alignment="center" valignment="top" width="0">
12192 <column alignment="center" valignment="top" width="0">
12193 <column alignment="center" valignment="top" width="0">
12195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12198 \begin_layout Plain Layout
12204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12207 \begin_layout Plain Layout
12213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12216 \begin_layout Plain Layout
12224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12227 \begin_layout Plain Layout
12231 \begin_layout Plain Layout
12235 multirow{2}{2.5cm}{
12244 \begin_layout Plain Layout
12256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12259 \begin_layout Plain Layout
12265 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12268 \begin_layout Plain Layout
12276 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12279 \begin_layout Plain Layout
12285 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12288 \begin_layout Plain Layout
12294 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12297 \begin_layout Plain Layout
12312 \begin_layout Plain Layout
12328 \begin_layout Standard
12329 create a 3×3 table.
12330 To get rid of the line above the last cell in the first column, the cell
12331 is marked as multicolumn and the upper border is unset.
12332 The multirow is now created in the second row of the first column by inserting
12336 \begin_layout Standard
12341 multirow{2}{2.5cm}{
12344 \begin_layout Standard
12346 According to the command parameters the multirow spans now two rows and
12348 \begin_inset space \thinspace{}
12352 The content of the multirow cell follows outside the TeX-Code box and the
12353 command is finished with a right brace
12357 in another TeX-Code-box behind the text.
12360 \begin_layout Standard
12367 left-aligns its content by default.
12368 To override the default, renew the command
12377 \begin_layout Standard
12389 \begin_layout Standard
12390 in TeX-Code in the document preamble.
12391 Then all entries of multirow cells in the document are centered.
12392 If centering is only needed for several tables, you can renew the command
12393 in an TeX-Code box just before the table instead of the preamble.
12394 If the text should be right-aligned, replace
12407 To return to left-alignment
12416 \begin_layout Section
12418 \begin_inset CommandInset label
12420 name "sec:Formal-Tables"
12428 \begin_layout Plain Layout
12437 \begin_layout Standard
12438 Tables are often typeset in books similar to Table
12439 \begin_inset space ~
12443 \begin_inset CommandInset ref
12445 reference "tab:Example-booktabs-table"
12450 This kind of tables is called
12451 \begin_inset Quotes eld
12459 \begin_inset Quotes erd
12463 To make a table a formal table use the option
12471 tab of the table dialog.
12474 \begin_layout Standard
12475 \begin_inset Float table
12481 \begin_layout Plain Layout
12482 \begin_inset Caption
12484 \begin_layout Plain Layout
12485 \begin_inset CommandInset label
12487 name "tab:Example-booktabs-table"
12491 Example booktabs-table
12499 \begin_layout Plain Layout
12501 \begin_inset Tabular
12502 <lyxtabular version="3" rows="8" columns="4">
12503 <features booktabs="true">
12504 <column alignment="center" valignment="top" width="0">
12505 <column alignment="center" valignment="top" width="0">
12506 <column alignment="center" valignment="top" width="0">
12507 <column alignment="center" valignment="top" width="0">
12509 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12512 \begin_layout Plain Layout
12518 <cell alignment="center" valignment="top" topline="true" usebox="none">
12521 \begin_layout Plain Layout
12523 \begin_inset space \thinspace{}
12531 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
12534 \begin_layout Plain Layout
12536 \begin_inset space \thinspace{}
12544 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12547 \begin_layout Plain Layout
12555 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12558 \begin_layout Plain Layout
12562 \begin_layout Plain Layout
12575 \begin_layout Plain Layout
12584 Detector thickness [µm]
12589 <cell alignment="center" valignment="top" usebox="none">
12592 \begin_layout Plain Layout
12598 <cell alignment="center" valignment="top" usebox="none">
12601 \begin_layout Plain Layout
12607 <cell alignment="center" valignment="top" usebox="none">
12610 \begin_layout Plain Layout
12618 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12621 \begin_layout Plain Layout
12627 <cell alignment="center" valignment="top" topline="true" usebox="none">
12630 \begin_layout Plain Layout
12636 <cell alignment="center" valignment="top" topline="true" usebox="none">
12639 \begin_layout Plain Layout
12645 <cell alignment="center" valignment="top" topline="true" usebox="none">
12648 \begin_layout Plain Layout
12655 <row topspace="default">
12656 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12659 \begin_layout Plain Layout
12660 Spatial resolution [µm]
12665 <cell alignment="center" valignment="top" usebox="none">
12668 \begin_layout Plain Layout
12674 <cell alignment="center" valignment="top" usebox="none">
12677 \begin_layout Plain Layout
12683 <cell alignment="center" valignment="top" usebox="none">
12686 \begin_layout Plain Layout
12693 <row topspace="default">
12694 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12697 \begin_layout Plain Layout
12699 \begin_inset Formula $f_{\mathrm{max}}$
12707 <cell alignment="center" valignment="top" usebox="none">
12710 \begin_layout Plain Layout
12716 <cell alignment="center" valignment="top" usebox="none">
12719 \begin_layout Plain Layout
12725 <cell alignment="center" valignment="top" usebox="none">
12728 \begin_layout Plain Layout
12735 <row topspace="default">
12736 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12739 \begin_layout Plain Layout
12743 \begin_layout Plain Layout
12747 cmidrule(l{10pt}){1-1}
12752 LSF-spatial resolution
12757 <cell alignment="center" valignment="top" usebox="none">
12760 \begin_layout Plain Layout
12766 <cell alignment="center" valignment="top" usebox="none">
12769 \begin_layout Plain Layout
12775 <cell alignment="center" valignment="top" usebox="none">
12778 \begin_layout Plain Layout
12786 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12789 \begin_layout Plain Layout
12795 <cell alignment="center" valignment="top" usebox="none">
12798 \begin_layout Plain Layout
12804 <cell alignment="center" valignment="top" usebox="none">
12807 \begin_layout Plain Layout
12813 <cell alignment="center" valignment="top" usebox="none">
12816 \begin_layout Plain Layout
12824 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12827 \begin_layout Plain Layout
12833 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12836 \begin_layout Plain Layout
12842 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12845 \begin_layout Plain Layout
12851 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12854 \begin_layout Plain Layout
12873 \begin_layout Standard
12874 Spaces to table rows can be added using the
12878 tab of the table dialog as described in section
12879 \begin_inset space ~
12883 \begin_inset CommandInset ref
12885 reference "sub:Row-Spacing"
12892 \begin_layout Standard
12893 In contrary to normal tables, formal tables have no vertical table lines.
12894 The horizontal table lines can be set like for normal tables but they appear
12895 with different width in the output:
12896 \begin_inset Newline newline
12899 The first and the last table line have a default width of 0.08
12900 \begin_inset space \thinspace{}
12903 em while the other lines have a default width of 0.05
12904 \begin_inset space \thinspace{}
12910 \begin_layout Standard
12911 The default widths can be changed with the following preamble lines
12914 \begin_layout Standard
12924 \begin_inset Newline newline
12936 \begin_layout Standard
12937 This example is for the first line, the so called
12942 If you want to change the width for the last line, replace
12951 To change the width for the other lines replace
12960 You can use all units listed in appendix
12961 \begin_inset space ~
12965 \begin_inset CommandInset ref
12967 reference "cha:Units-available-in"
12974 \begin_layout Standard
12975 Lines that don't span over all table columns can be created by setting a
12976 table line for multicolumn cells.
12977 LyX will then internally use the command
12983 to create this line.
12987 \begin_layout Standard
12992 cmidrule[width](trim){startcol-endcol}
12995 \begin_layout Standard
13002 are are currently not supported by LyX so you have to use TeX-Code to be
13010 s can manually be created by inserting the command as TeX-Code as first
13011 cell entry of the first cell of a row.
13012 The line is then drawn in the output above the current row.
13015 \begin_layout Standard
13016 The default for the width is 0.03
13017 \begin_inset space \thinspace{}
13021 Startcol is the number of the column where the line starts and endcol the
13022 column number where the line ends.
13023 The endcol always needs to be specified, also when the line should span
13025 The optional parameter trim could be either
13033 where the trimwidth is also optional.
13034 Using for example the parameter
13038 means that the line is trimmed from its left end by 2
13039 \begin_inset space \thinspace{}
13043 If you don't specify the trimwidth the lines are trimmed by the default
13045 \begin_inset space \thinspace{}
13051 \begin_layout Standard
13052 \begin_inset VSpace bigskip
13056 \begin_inset space ~
13060 \begin_inset CommandInset ref
13062 reference "tab:Example-booktabs-table"
13066 was created using the commands
13069 \begin_layout Standard
13079 \begin_layout Standard
13080 at the beginning of the in the second row and
13083 \begin_layout Standard
13088 cmidrule(l{10pt}){1-1}
13091 \begin_layout Standard
13095 \begin_layout Standard
13096 \begin_inset VSpace bigskip
13102 \begin_layout Standard
13103 You might want to have overlapping
13110 \begin_inset space ~
13114 \begin_inset CommandInset ref
13116 reference "tab:Special-booktabs-table"
13121 This can be achieved with the TeX-Code command
13124 \begin_layout Standard
13132 \begin_layout Standard
13133 The command that was used for the second row of Table
13134 \begin_inset space ~
13138 \begin_inset CommandInset ref
13140 reference "tab:Special-booktabs-table"
13147 \begin_layout Standard
13161 \begin_layout Standard
13162 The command for the sixth row is
13165 \begin_layout Standard
13177 \begin_layout Standard
13178 \begin_inset VSpace bigskip
13184 \begin_layout Standard
13185 If you are anyway not satisfied with the border line spacing, you can use
13186 the following command to produce lines that span over all table columns
13191 \begin_layout Standard
13196 specialrule{width}{space above}{space below}
13199 \begin_layout Standard
13200 For more informations about these specialties, we refer to the manual of
13206 \begin_inset CommandInset citation
13216 \begin_layout Plain Layout
13217 LaTeX-packages ! booktabs
13225 \begin_layout Standard
13226 \begin_inset Float table
13232 \begin_layout Plain Layout
13233 \begin_inset Caption
13235 \begin_layout Plain Layout
13236 \begin_inset CommandInset label
13238 name "tab:Special-booktabs-table"
13242 Special booktabs-table
13250 \begin_layout Plain Layout
13252 \begin_inset Tabular
13253 <lyxtabular version="3" rows="8" columns="4">
13254 <features booktabs="true">
13255 <column alignment="center" valignment="top" width="0">
13256 <column alignment="center" valignment="top" width="0">
13257 <column alignment="center" valignment="top" width="0">
13258 <column alignment="center" valignment="top" width="0">
13260 <cell alignment="center" valignment="top" topline="true" usebox="none">
13263 \begin_layout Plain Layout
13269 <cell alignment="center" valignment="top" topline="true" usebox="none">
13272 \begin_layout Plain Layout
13274 \begin_inset space \thinspace{}
13282 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
13285 \begin_layout Plain Layout
13287 \begin_inset space \thinspace{}
13295 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13298 \begin_layout Plain Layout
13306 <cell alignment="center" valignment="top" usebox="none">
13309 \begin_layout Plain Layout
13313 \begin_layout Plain Layout
13326 \begin_layout Plain Layout
13339 \begin_layout Plain Layout
13352 \begin_layout Plain Layout
13361 Detector thickness [µm]
13366 <cell alignment="center" valignment="top" usebox="none">
13369 \begin_layout Plain Layout
13375 <cell alignment="center" valignment="top" usebox="none">
13378 \begin_layout Plain Layout
13384 <cell alignment="center" valignment="top" usebox="none">
13387 \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
13413 <cell alignment="center" valignment="top" topline="true" usebox="none">
13416 \begin_layout Plain Layout
13422 <cell alignment="center" valignment="top" topline="true" usebox="none">
13425 \begin_layout Plain Layout
13432 <row topspace="default">
13433 <cell alignment="center" valignment="top" usebox="none">
13436 \begin_layout Plain Layout
13437 Spatial resolution [µm]
13442 <cell alignment="center" valignment="top" usebox="none">
13445 \begin_layout Plain Layout
13451 <cell alignment="center" valignment="top" usebox="none">
13454 \begin_layout Plain Layout
13460 <cell alignment="center" valignment="top" usebox="none">
13463 \begin_layout Plain Layout
13470 <row topspace="default">
13471 <cell alignment="center" valignment="top" usebox="none">
13474 \begin_layout Plain Layout
13476 \begin_inset Formula $f_{\mathrm{max}}$
13484 <cell alignment="center" valignment="top" usebox="none">
13487 \begin_layout Plain Layout
13493 <cell alignment="center" valignment="top" usebox="none">
13496 \begin_layout Plain Layout
13502 <cell alignment="center" valignment="top" usebox="none">
13505 \begin_layout Plain Layout
13513 <cell alignment="center" valignment="top" topline="true" usebox="none">
13516 \begin_layout Plain Layout
13520 \begin_layout Plain Layout
13533 \begin_layout Plain Layout
13542 LSF-spatial resolution
13547 <cell alignment="center" valignment="top" topline="true" usebox="none">
13550 \begin_layout Plain Layout
13556 <cell alignment="center" valignment="top" topline="true" usebox="none">
13559 \begin_layout Plain Layout
13565 <cell alignment="center" valignment="top" topline="true" usebox="none">
13568 \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
13594 <cell alignment="center" valignment="top" usebox="none">
13597 \begin_layout Plain Layout
13603 <cell alignment="center" valignment="top" usebox="none">
13606 \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
13632 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13635 \begin_layout Plain Layout
13641 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13644 \begin_layout Plain Layout
13663 \begin_layout Section
13664 Vertical Table Alignment
13668 \begin_layout Plain Layout
13677 \begin_layout Standard
13678 To align tables vertically in a text line the table must be inside a box.
13679 The box can then be vertically aligned as described in section
13680 \begin_inset space ~
13684 \begin_inset CommandInset ref
13686 reference "sec:Box-Dialog"
13693 \begin_layout Standard
13694 In the following example the tables are inside a minipage
13698 \begin_layout Plain Layout
13699 Minipages are described in section
13700 \begin_inset space ~
13704 \begin_inset CommandInset ref
13706 reference "sec:Minipages"
13715 box that has a width of 15
13716 \begin_inset space \thinspace{}
13722 \begin_layout Itemize
13724 \begin_inset Box Frameless
13733 height_special "totalheight"
13736 \begin_layout Plain Layout
13737 \begin_inset Tabular
13738 <lyxtabular version="3" rows="3" columns="3">
13740 <column alignment="center" valignment="top" width="0">
13741 <column alignment="center" valignment="top" width="0">
13742 <column alignment="center" valignment="top" width="0">
13744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13747 \begin_layout Plain Layout
13753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13756 \begin_layout Plain Layout
13762 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13765 \begin_layout Plain Layout
13773 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13776 \begin_layout Plain Layout
13782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13785 \begin_layout Plain Layout
13791 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13794 \begin_layout Plain Layout
13802 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13805 \begin_layout Plain Layout
13811 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13814 \begin_layout Plain Layout
13820 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13823 \begin_layout Plain Layout
13843 \begin_layout Plain Layout
13855 \begin_inset Box Frameless
13864 height_special "totalheight"
13867 \begin_layout Plain Layout
13868 \begin_inset Tabular
13869 <lyxtabular version="3" rows="3" columns="3">
13871 <column alignment="center" valignment="top" width="0">
13872 <column alignment="center" valignment="top" width="0">
13873 <column alignment="center" valignment="top" width="0">
13875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13878 \begin_layout Plain Layout
13884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13887 \begin_layout Plain Layout
13893 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13896 \begin_layout Plain Layout
13904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13907 \begin_layout Plain Layout
13913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13916 \begin_layout Plain Layout
13922 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13925 \begin_layout Plain Layout
13933 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13936 \begin_layout Plain Layout
13942 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13945 \begin_layout Plain Layout
13951 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13954 \begin_layout Plain Layout
13974 \begin_layout Plain Layout
13984 \begin_layout Itemize
13986 \begin_inset Box Frameless
13995 height_special "totalheight"
13998 \begin_layout Plain Layout
13999 \begin_inset Tabular
14000 <lyxtabular version="3" rows="3" columns="3">
14002 <column alignment="center" valignment="top" width="0">
14003 <column alignment="center" valignment="top" width="0">
14004 <column alignment="center" valignment="top" width="0">
14006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14009 \begin_layout Plain Layout
14015 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14018 \begin_layout Plain Layout
14024 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14027 \begin_layout Plain Layout
14035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14038 \begin_layout Plain Layout
14044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14047 \begin_layout Plain Layout
14053 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14056 \begin_layout Plain Layout
14064 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14067 \begin_layout Plain Layout
14073 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14076 \begin_layout Plain Layout
14082 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14085 \begin_layout Plain Layout
14104 \begin_layout Itemize
14106 \begin_inset Box Frameless
14115 height_special "totalheight"
14118 \begin_layout Plain Layout
14119 \begin_inset Tabular
14120 <lyxtabular version="3" rows="3" columns="3">
14122 <column alignment="center" valignment="top" width="0">
14123 <column alignment="center" valignment="top" width="0">
14124 <column alignment="center" valignment="top" width="0">
14126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14129 \begin_layout Plain Layout
14135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14138 \begin_layout Plain Layout
14144 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14147 \begin_layout Plain Layout
14155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14158 \begin_layout Plain Layout
14164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14167 \begin_layout Plain Layout
14173 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14176 \begin_layout Plain Layout
14184 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14187 \begin_layout Plain Layout
14193 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14196 \begin_layout Plain Layout
14202 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14205 \begin_layout Plain Layout
14225 \begin_layout Plain Layout
14237 \begin_inset Box Frameless
14246 height_special "totalheight"
14249 \begin_layout Plain Layout
14250 \begin_inset Tabular
14251 <lyxtabular version="3" rows="3" columns="3">
14253 <column alignment="center" valignment="top" width="0">
14254 <column alignment="center" valignment="top" width="0">
14255 <column alignment="center" valignment="top" width="0">
14257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14260 \begin_layout Plain Layout
14266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14269 \begin_layout Plain Layout
14275 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14278 \begin_layout Plain Layout
14286 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14289 \begin_layout Plain Layout
14295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14298 \begin_layout Plain Layout
14304 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14307 \begin_layout Plain Layout
14315 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14318 \begin_layout Plain Layout
14324 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14327 \begin_layout Plain Layout
14333 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14336 \begin_layout Plain Layout
14356 \begin_layout Plain Layout
14366 \begin_layout Standard
14367 As you can see, the content of the first and last table row is not correctly
14368 aligned with the text line where the table is in.
14369 To get this alignment, the minipage box must be set into a raisebox
14373 \begin_layout Plain Layout
14374 Raiseboxes are described in section
14375 \begin_inset space ~
14379 \begin_inset CommandInset ref
14381 reference "sub:Vertical-Alignment"
14391 In the example above the second table in the first item is aligned using
14392 the TeX-Code-command
14395 \begin_layout Standard
14405 \begin_layout Standard
14407 Behind the box the closing brace
14411 is inserted as TeX-Code.
14412 For the second table in the last item the command
14415 \begin_layout Standard
14425 \begin_layout Standard
14429 \begin_layout Standard
14430 \begin_inset Note Greyedout
14433 \begin_layout Plain Layout
14438 The alignment of the table row content to the surrounding text line is
14440 The needed factor of the
14446 command for this alignment depends on the document font, the font size,
14447 and the table line thickness.
14455 \begin_layout Section
14457 \begin_inset CommandInset label
14459 name "sec:Colored-Tables"
14467 \begin_layout Plain Layout
14476 \begin_layout Subsection
14481 \begin_layout Plain Layout
14482 Table Color ! for Cells
14491 \begin_layout Plain Layout
14492 Color ! for Table Cells
14500 \begin_layout Standard
14501 \begin_inset Float table
14507 \begin_layout Plain Layout
14508 \begin_inset Caption
14510 \begin_layout Plain Layout
14511 \begin_inset CommandInset label
14513 name "tab:Table-colored-without"
14517 Table colored without using the package
14522 \begin_inset OptArg
14525 \begin_layout Plain Layout
14526 Table without colortbl
14539 \begin_layout Plain Layout
14541 \begin_inset Tabular
14542 <lyxtabular version="3" rows="3" columns="3">
14544 <column alignment="center" valignment="top" width="0">
14545 <column alignment="center" valignment="top" width="0">
14546 <column alignment="center" valignment="top" width="0">
14548 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14551 \begin_layout Plain Layout
14559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14562 \begin_layout Plain Layout
14570 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14573 \begin_layout Plain Layout
14583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14586 \begin_layout Plain Layout
14594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14597 \begin_layout Plain Layout
14605 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14608 \begin_layout Plain Layout
14618 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14621 \begin_layout Plain Layout
14629 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14632 \begin_layout Plain Layout
14640 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14643 \begin_layout Plain Layout
14664 \begin_layout Standard
14665 If you only need colored text, mark the cells and choose a color in the
14668 Edit\SpecialChar \menuseparator
14670 \begin_inset space ~
14676 This was used to create Table
14677 \begin_inset space ~
14681 \begin_inset CommandInset ref
14683 reference "tab:Table-colored-without"
14688 In any other case you have to use the LaTeX-package
14696 \begin_layout Plain Layout
14697 LaTeX-packages ! colortbl
14705 \begin_layout Standard
14709 \begin_layout Plain Layout
14719 \begin_inset Note Note
14722 \begin_layout Plain Layout
14723 The following section part will only be displayed when the LaTeX-package
14736 \begin_layout Standard
14737 To create colored tables,
14741 must be loaded in the preamble with the line
14744 \begin_layout Standard
14749 usepackage{colortbl}
14752 \begin_layout Standard
14753 The color of a column is adjusted with the command
14756 \begin_layout Standard
14761 columncolor{name of color}
14764 \begin_layout Standard
14770 More about the command
14774 is described in section
14775 \begin_inset space ~
14779 \begin_inset CommandInset ref
14781 reference "sub:Multicolumn-Calculations"
14788 \begin_layout Standard
14789 The following color names are predefined:
14792 \begin_layout Standard
14826 \begin_layout Standard
14827 \begin_inset VSpace medskip
14833 \begin_layout Standard
14834 You can also define your own color with the command
14837 \begin_layout Standard
14842 definecolor{color name}{color model}{color values}
14845 \begin_layout Standard
14846 The color model can be
14849 \begin_layout Labeling
14850 \labelwidthstring 00.00.0000
14851 cmyk: cyan, magenta, yellow, black
14854 \begin_layout Labeling
14855 \labelwidthstring 00.00.0000
14856 rgb: red, green blue
14859 \begin_layout Labeling
14860 \labelwidthstring 00.00.0000
14864 \begin_layout Standard
14865 and the color values are comma separated numbers between 0 and 1 describing
14866 the factor for the corresponding color of the color model.
14869 \begin_layout Standard
14871 \begin_inset space \thinspace{}
14875 \begin_inset space ~
14882 " in the preamble with
14885 \begin_layout Standard
14890 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14893 \begin_layout Standard
14901 \begin_layout Standard
14906 definecolor{lightgray}{gray}{0.8}
14909 \begin_layout Standard
14910 \begin_inset VSpace medskip
14916 \begin_layout Standard
14917 Lines are colored with the command
14920 \begin_layout Standard
14925 rowcolor{name of color}
14928 \begin_layout Standard
14929 and cells are colored with the command
14932 \begin_layout Standard
14937 cellcolor{name of color}
14940 \begin_layout Standard
14941 Both commands are inserted at the beginning of a cell as TeX-Code.
14944 \begin_layout Standard
14945 To color characters in the table, mark the cells and use the LyX menu
14947 Edit\SpecialChar \menuseparator
14949 \begin_inset space ~
14955 If a cell contains TeX-Code mark only the characters, otherwise the colored
14956 TeX-Code will cause LaTeX-errors.
14959 \begin_layout Standard
14960 \begin_inset Note Greyedout
14963 \begin_layout Plain Layout
14968 Not all DVI-viewers are able to display self-defined colors.
14976 \begin_layout Standard
14977 \begin_inset VSpace bigskip
14983 \begin_layout Standard
14985 \begin_inset space ~
14989 \begin_inset CommandInset ref
14991 reference "tab:Table-colored-using"
14995 do the following: The color of the first column should be
15003 \begin_layout Standard
15008 columncolor{darkgreen}
15013 \begin_layout Standard
15014 as LaTeX-argument for this column.
15015 The first row should be blue, therefore the TeX-Code command
15018 \begin_layout Standard
15026 \begin_layout Standard
15027 is inserted to the first cell of this row.
15028 Note that this overwrites the column color for the first cell.
15029 The last cell of the last row is colored magenta by inserting the TeX-Code
15033 \begin_layout Standard
15041 \begin_layout Standard
15042 The characters could now be colored using the menu
15044 Edit\SpecialChar \menuseparator
15046 \begin_inset space ~
15054 \begin_layout Standard
15055 \begin_inset Float table
15061 \begin_layout Plain Layout
15062 \begin_inset Caption
15064 \begin_layout Plain Layout
15065 \begin_inset CommandInset label
15067 name "tab:Table-colored-using"
15071 Table colored using the package
15076 \begin_inset OptArg
15079 \begin_layout Plain Layout
15080 Table with colortbl
15093 \begin_layout Plain Layout
15095 \begin_inset Tabular
15096 <lyxtabular version="3" rows="3" columns="3">
15098 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15099 <column alignment="center" valignment="top" width="0">
15100 <column alignment="center" valignment="top" width="0">
15102 <cell alignment="center" valignment="top" usebox="none">
15105 \begin_layout Plain Layout
15109 \begin_layout Plain Layout
15125 <cell alignment="center" valignment="top" usebox="none">
15128 \begin_layout Plain Layout
15136 <cell alignment="center" valignment="top" usebox="none">
15139 \begin_layout Plain Layout
15149 <cell alignment="center" valignment="top" usebox="none">
15152 \begin_layout Plain Layout
15160 <cell alignment="center" valignment="top" usebox="none">
15163 \begin_layout Plain Layout
15171 <cell alignment="center" valignment="top" usebox="none">
15174 \begin_layout Plain Layout
15184 <cell alignment="center" valignment="top" usebox="none">
15187 \begin_layout Plain Layout
15195 <cell alignment="center" valignment="top" usebox="none">
15198 \begin_layout Plain Layout
15206 <cell alignment="center" valignment="top" usebox="none">
15209 \begin_layout Plain Layout
15213 \begin_layout Plain Layout
15242 \begin_layout Standard
15246 \begin_layout Plain Layout
15256 \begin_inset Note Note
15259 \begin_layout Plain Layout
15260 The following will be displayed when the LaTeX-package
15272 \begin_layout Standard
15273 You need to install the package
15277 to see the content of this section in the output.
15280 \begin_layout Standard
15284 \begin_layout Plain Layout
15296 \begin_layout Subsection
15301 \begin_layout Plain Layout
15302 Table Color ! for Lines
15311 \begin_layout Plain Layout
15312 Color ! for Table Lines
15320 \begin_layout Standard
15321 As described in section
15322 \begin_inset space ~
15326 \begin_inset CommandInset ref
15328 reference "sub:Line-Thickness"
15332 , the line thickness for all lines in a table can be adjusted with the length
15341 \begin_inset space \thinspace{}
15344 pt for all tables of this section.
15348 \begin_layout Plain Layout
15354 arrayrulewidth}{1.5pt}
15362 \begin_layout Standard
15363 To color vertical lines for example with green, create the following column
15364 format in the document preamble, according to the description in section
15365 \begin_inset space ~
15369 \begin_inset CommandInset ref
15371 reference "sub:Customized-Format"
15378 \begin_layout Standard
15383 newcolumntype{W}{!{
15390 \begin_layout Standard
15392 \begin_inset space ~
15396 \begin_inset CommandInset ref
15398 reference "tab:Table-with-vertical-colored"
15406 was used for the last column and
15410 for the other columns.
15413 \begin_layout Standard
15414 If you want to have several colors, define more column formats.
15417 \begin_layout Standard
15418 \begin_inset Float table
15424 \begin_layout Plain Layout
15425 \begin_inset Caption
15427 \begin_layout Plain Layout
15428 \begin_inset CommandInset label
15430 name "tab:Table-with-vertical-colored"
15434 Table with colored vertical lines
15442 \begin_layout Plain Layout
15444 \begin_inset Tabular
15445 <lyxtabular version="3" rows="3" columns="3">
15447 <column alignment="center" valignment="top" width="0" special="Wc">
15448 <column alignment="center" valignment="top" width="0" special="Wc">
15449 <column alignment="center" valignment="top" width="0" special="WcW">
15451 <cell alignment="center" valignment="top" topline="true" usebox="none">
15454 \begin_layout Plain Layout
15460 <cell alignment="center" valignment="top" topline="true" usebox="none">
15463 \begin_layout Plain Layout
15469 <cell alignment="center" valignment="top" topline="true" usebox="none">
15472 \begin_layout Plain Layout
15480 <cell alignment="center" valignment="top" topline="true" usebox="none">
15483 \begin_layout Plain Layout
15489 <cell alignment="center" valignment="top" topline="true" usebox="none">
15492 \begin_layout Plain Layout
15498 <cell alignment="center" valignment="top" topline="true" usebox="none">
15501 \begin_layout Plain Layout
15509 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15512 \begin_layout Plain Layout
15518 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15521 \begin_layout Plain Layout
15527 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15530 \begin_layout Plain Layout
15549 \begin_layout Standard
15550 \begin_inset VSpace bigskip
15553 To color horizontal lines for example with red, like in Table
15554 \begin_inset space ~
15558 \begin_inset CommandInset ref
15560 reference "tab:Table-with-horizontal-colored"
15564 , insert these commands in TeX-Code before the table or table float:
15567 \begin_layout Standard
15577 \begin_inset Newline newline
15585 \begin_inset Newline newline
15592 \begin_layout Plain Layout
15603 arrayrulecolor{red}
15607 arrayrulecolor{black}}
15610 \begin_layout Standard
15614 \begin_layout Plain Layout
15625 \begin_layout Plain Layout
15634 \begin_layout Plain Layout
15638 arrayrulecolor{red}
15642 arrayrulecolor{black}}
15648 \begin_inset Float table
15654 \begin_layout Plain Layout
15655 \begin_inset Caption
15657 \begin_layout Plain Layout
15658 \begin_inset CommandInset label
15660 name "tab:Table-with-horizontal-colored"
15664 Table with colored horizontal lines
15672 \begin_layout Plain Layout
15674 \begin_inset Tabular
15675 <lyxtabular version="3" rows="3" columns="3">
15677 <column alignment="center" valignment="top" width="0">
15678 <column alignment="center" valignment="top" width="0">
15679 <column alignment="center" valignment="top" width="0">
15681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15684 \begin_layout Plain Layout
15690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15693 \begin_layout Plain Layout
15699 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15702 \begin_layout Plain Layout
15710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15713 \begin_layout Plain Layout
15719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15722 \begin_layout Plain Layout
15728 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15731 \begin_layout Plain Layout
15739 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15742 \begin_layout Plain Layout
15748 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15751 \begin_layout Plain Layout
15757 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15760 \begin_layout Plain Layout
15779 \begin_layout Standard
15780 To return to the default line color black, insert this command in TeX-Code
15781 behind the table or table float:
15784 \begin_layout Standard
15796 \begin_layout Standard
15798 \begin_inset space ~
15802 \begin_inset CommandInset ref
15804 reference "tab:Table-with-colored"
15808 is an example with colored vertical and horizontal lines.
15811 \begin_layout Standard
15812 \begin_inset Float table
15818 \begin_layout Plain Layout
15819 \begin_inset Caption
15821 \begin_layout Plain Layout
15822 \begin_inset CommandInset label
15824 name "tab:Table-with-colored"
15828 Table with colored lines
15836 \begin_layout Plain Layout
15838 \begin_inset Tabular
15839 <lyxtabular version="3" rows="3" columns="3">
15841 <column alignment="center" valignment="top" width="0" special="Wc">
15842 <column alignment="center" valignment="top" width="0" special="Wc">
15843 <column alignment="center" valignment="top" width="0" special="WcW">
15845 <cell alignment="center" valignment="top" topline="true" usebox="none">
15848 \begin_layout Plain Layout
15854 <cell alignment="center" valignment="top" topline="true" usebox="none">
15857 \begin_layout Plain Layout
15863 <cell alignment="center" valignment="top" topline="true" usebox="none">
15866 \begin_layout Plain Layout
15874 <cell alignment="center" valignment="top" topline="true" usebox="none">
15877 \begin_layout Plain Layout
15883 <cell alignment="center" valignment="top" topline="true" usebox="none">
15886 \begin_layout Plain Layout
15892 <cell alignment="center" valignment="top" topline="true" usebox="none">
15895 \begin_layout Plain Layout
15902 <row topspace="default">
15903 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15906 \begin_layout Plain Layout
15912 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15915 \begin_layout Plain Layout
15921 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15924 \begin_layout Plain Layout
15943 \begin_layout Standard
15947 \begin_layout Plain Layout
15963 \begin_layout Standard
15967 \begin_layout Plain Layout
15973 arrayrulewidth}{0.4pt}
15981 \begin_layout Section
15982 Table Customization
15986 \begin_layout Plain Layout
15987 Table Customization
15996 \begin_layout Plain Layout
15997 Table ! Customization
16005 \begin_layout Subsection
16007 \begin_inset CommandInset label
16009 name "sub:Row-Spacing"
16017 \begin_layout Plain Layout
16018 Table Customization ! Row Spacing
16026 \begin_layout Standard
16027 You can add vertical space to table rows in the
16031 tab of the table dialog.
16032 You find there three possibilities:
16035 \begin_layout Description
16037 \begin_inset space ~
16041 \begin_inset space ~
16044 row will add space above the characters of the table row.
16045 If the table is a formal table
16049 \begin_layout Plain Layout
16050 Formal tables are explained in section
16051 \begin_inset space ~
16055 \begin_inset CommandInset ref
16057 reference "sec:Formal-Tables"
16066 LyX will insert as default 0.5
16067 \begin_inset space \thinspace{}
16071 For normal tables the inserted space will unfortunately destroy the vertical
16072 table lines as in the following table:
16073 \begin_inset VSpace medskip
16077 \begin_inset Newline newline
16081 \begin_inset space \hspace*{}
16086 \begin_inset space \hfill{}
16090 \begin_inset Tabular
16091 <lyxtabular version="3" rows="3" columns="1">
16093 <column alignment="center" valignment="top" width="0">
16095 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16098 \begin_layout Plain Layout
16105 <row topspace="3mm">
16106 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16109 \begin_layout Plain Layout
16111 \begin_inset space \thinspace{}
16114 mm space top of row
16121 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16124 \begin_layout Plain Layout
16136 \begin_inset space \hfill{}
16140 \begin_inset space \hspace*{}
16145 \begin_inset VSpace medskip
16149 \begin_inset Newline newline
16152 So inserting space to the top of row for normal tables is only useful when
16153 you don't have vertical lines.
16156 \begin_layout Description
16158 \begin_inset space ~
16162 \begin_inset space ~
16165 row will add space below the characters of the table row.
16166 If the table is a formal table LyX will insert as default 0.5
16167 \begin_inset space \thinspace{}
16170 em space, for normal tables the default size is 2
16171 \begin_inset space \thinspace{}
16177 \begin_layout Description
16179 \begin_inset space ~
16182 rows adds space between the current and the following row.
16183 If the table is a formal table LyX will insert as default 0.5
16184 \begin_inset space \thinspace{}
16188 For normal tables the inserted space will unfortunately destroy the vertical
16189 table lines as in the following table:
16190 \begin_inset VSpace medskip
16194 \begin_inset Newline newline
16198 \begin_inset space \hspace*{}
16203 \begin_inset space \hfill{}
16207 \begin_inset Tabular
16208 <lyxtabular version="3" rows="3" columns="1">
16210 <column alignment="center" valignment="top" width="0">
16212 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16215 \begin_layout Plain Layout
16222 <row interlinespace="3mm">
16223 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16226 \begin_layout Plain Layout
16227 \begin_inset Formula $\downarrow$
16231 \begin_inset space \thinspace{}
16234 mm space between row
16235 \begin_inset Formula $\downarrow$
16245 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16248 \begin_layout Plain Layout
16249 \begin_inset Formula $\uparrow$
16253 \begin_inset space \thinspace{}
16256 mm space between row
16257 \begin_inset Formula $\uparrow$
16271 \begin_inset space \hfill{}
16275 \begin_inset space \hspace*{}
16280 \begin_inset VSpace medskip
16284 \begin_inset Newline newline
16287 So inserting space between rows for normal tables is only useful when you
16288 don't have vertical lines.
16291 \begin_layout Standard
16292 \begin_inset VSpace bigskip
16295 When you want to add extra height to all cells of all tables, you can do
16296 this with the following preamble lines:
16299 \begin_layout Standard
16304 @ifundefined{extrarowheight}
16305 \begin_inset Newline newline
16312 \begin_layout Plain Layout
16323 usepackage{array}}{}
16324 \begin_inset Newline newline
16331 extrarowheight}{height}
16334 \begin_layout Standard
16335 But this has the disadvantage that the cell texts are no longer exactly
16336 vertically centered.
16341 will be loaded automatically by LyX when you use self defined table formats.
16342 To avoid that it is loaded twice the command
16348 is used in the above command.)
16351 \begin_layout Subsection
16352 Special Cell Alignment
16356 \begin_layout Plain Layout
16357 Table Customization ! Special Cell Alignment
16365 \begin_layout Standard
16366 Sometimes it looks better when the cell entries of a column are aligned
16367 with a special character, e.
16368 \begin_inset space \thinspace{}
16372 \begin_inset space ~
16375 with the decimal separator as in Table
16376 \begin_inset space ~
16380 \begin_inset CommandInset ref
16382 reference "tab:Table-cells-of"
16389 \begin_layout Standard
16390 \begin_inset Float table
16396 \begin_layout Plain Layout
16397 \begin_inset Caption
16399 \begin_layout Plain Layout
16400 \begin_inset CommandInset label
16402 name "tab:Table-cells-of"
16406 Table cells of a column aligned with the decimal separator.
16414 \begin_layout Plain Layout
16416 \begin_inset Tabular
16417 <lyxtabular version="3" rows="4" columns="2">
16419 <column alignment="right" valignment="top" width="0">
16420 <column alignment="left" valignment="top" width="0" special="@{}l">
16422 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16425 \begin_layout Plain Layout
16431 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16434 \begin_layout Plain Layout
16442 <cell alignment="center" valignment="top" usebox="none">
16445 \begin_layout Plain Layout
16451 <cell alignment="center" valignment="top" usebox="none">
16454 \begin_layout Plain Layout
16462 <cell alignment="center" valignment="top" usebox="none">
16465 \begin_layout Plain Layout
16471 <cell alignment="center" valignment="top" usebox="none">
16474 \begin_layout Plain Layout
16482 <cell alignment="center" valignment="top" usebox="none">
16485 \begin_layout Plain Layout
16491 <cell alignment="center" valignment="top" usebox="none">
16494 \begin_layout Plain Layout
16513 \begin_layout Standard
16514 This table was created with a 4×2 table.
16515 The heading is a centered multicolumn.
16516 The first column is right-aligned and contains the digits before the decimal
16517 point and the decimal point.
16518 The second column is left aligned and contains the digits after the decimal
16520 To omit the space that is normally between two table columns, use the following
16521 LaTeX-argument for the second column:
16524 \begin_layout Standard
16530 \begin_layout Standard
16532 \begin_inset space ~
16536 \begin_inset CommandInset ref
16538 reference "tab:Several-table-cell"
16542 shows some example alignments.
16543 For the alignment with the relation sign, you must add the second smallest
16544 math-space at the beginning of the last column to get the correct space
16545 surrounding the relation sign.
16548 \begin_layout Standard
16549 \begin_inset Float table
16554 \begin_layout Plain Layout
16555 \begin_inset Caption
16557 \begin_layout Plain Layout
16558 \begin_inset CommandInset label
16560 name "tab:Several-table-cell"
16564 Several table cell alignments.
16572 \begin_layout Plain Layout
16574 \begin_inset Tabular
16575 <lyxtabular version="3" rows="4" columns="6">
16577 <column alignment="right" valignment="top" width="0">
16578 <column alignment="left" valignment="top" width="0" special="@{}l">
16579 <column alignment="right" valignment="top" width="0">
16580 <column alignment="left" valignment="top" width="0" special="@{}l">
16581 <column alignment="right" valignment="top" width="0">
16582 <column alignment="left" valignment="top" width="0" special="@{}l">
16584 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16587 \begin_layout Plain Layout
16593 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16596 \begin_layout Plain Layout
16602 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16605 \begin_layout Plain Layout
16611 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16614 \begin_layout Plain Layout
16620 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16623 \begin_layout Plain Layout
16629 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16632 \begin_layout Plain Layout
16640 <cell alignment="center" valignment="top" usebox="none">
16643 \begin_layout Plain Layout
16649 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16652 \begin_layout Plain Layout
16654 \begin_inset space \thinspace{}
16662 <cell alignment="center" valignment="top" usebox="none">
16665 \begin_layout Plain Layout
16666 \begin_inset Formula $10\cdot$
16674 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16677 \begin_layout Plain Layout
16678 \begin_inset Formula $10^{\mbox{-}17}$
16686 <cell alignment="center" valignment="top" usebox="none">
16689 \begin_layout Plain Layout
16690 \begin_inset Formula $\Gamma(t)\propto$
16698 <cell alignment="center" valignment="top" usebox="none">
16701 \begin_layout Plain Layout
16702 \begin_inset Formula $\:\Upsilon(t)$
16712 <cell alignment="center" valignment="top" usebox="none">
16715 \begin_layout Plain Layout
16721 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16724 \begin_layout Plain Layout
16726 \begin_inset space \thinspace{}
16734 <cell alignment="center" valignment="top" usebox="none">
16737 \begin_layout Plain Layout
16738 \begin_inset Formula $5.78\cdot$
16746 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16749 \begin_layout Plain Layout
16750 \begin_inset Formula $10^{7}$
16758 <cell alignment="center" valignment="top" usebox="none">
16761 \begin_layout Plain Layout
16762 \begin_inset Formula $A\ne$
16770 <cell alignment="center" valignment="top" usebox="none">
16773 \begin_layout Plain Layout
16774 \begin_inset Formula $\: B_{\mathrm{red}}$
16784 <cell alignment="center" valignment="top" usebox="none">
16787 \begin_layout Plain Layout
16793 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16796 \begin_layout Plain Layout
16798 \begin_inset space \thinspace{}
16806 <cell alignment="center" valignment="top" usebox="none">
16809 \begin_layout Plain Layout
16811 \begin_inset Formula $33.5\cdot$
16819 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16822 \begin_layout Plain Layout
16823 \begin_inset Formula $10^{4}$
16831 <cell alignment="center" valignment="top" usebox="none">
16834 \begin_layout Plain Layout
16835 \begin_inset Formula $\sin(\alpha)\ge$
16843 <cell alignment="center" valignment="top" usebox="none">
16846 \begin_layout Plain Layout
16847 \begin_inset Formula $\:\sin(\beta)$
16868 \begin_layout Standard
16869 \begin_inset VSpace bigskip
16872 There is also the LaTeX-package
16880 \begin_layout Plain Layout
16881 LaTeX-packages ! dcolumn
16886 that provides table cell alignments.
16887 But this unfortunately treats the cell entries as math and doesn't allow
16888 formulas in table cells: The first column of Table
16889 \begin_inset space ~
16893 \begin_inset CommandInset ref
16895 reference "tab:Several-table-cell"
16903 like the first column in Table
16904 \begin_inset space ~
16908 \begin_inset CommandInset ref
16910 reference "tab:Alignments-when"
16914 and only with some tricks like the expected.
16915 The alignment of the second and third column of Table
16916 \begin_inset space ~
16920 \begin_inset CommandInset ref
16922 reference "tab:Several-table-cell"
16926 is not possible with
16933 \begin_layout Standard
16934 \begin_inset Float table
16940 \begin_layout Plain Layout
16941 \begin_inset Caption
16943 \begin_layout Plain Layout
16944 \begin_inset CommandInset label
16946 name "tab:Alignments-when"
16950 Alignments when LaTeX-package dcolumn is used.
16951 For all column alignments tricks have to be used to get the output.
16959 \begin_layout Plain Layout
16961 \begin_inset Tabular
16962 <lyxtabular version="3" rows="4" columns="3">
16964 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
16965 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
16966 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
16968 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16971 \begin_layout Plain Layout
16977 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16980 \begin_layout Plain Layout
16986 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16989 \begin_layout Plain Layout
16997 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17000 \begin_layout Plain Layout
17002 \begin_inset space \thinspace{}
17010 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17013 \begin_layout Plain Layout
17015 \begin_inset space \thinspace{}
17019 \begin_inset Formula $\mbox{bottles}$
17027 <cell alignment="center" valignment="top" usebox="none">
17030 \begin_layout Plain Layout
17035 \begin_layout Plain Layout
17045 \begin_inset Formula $\mbox{bottles}$
17055 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17058 \begin_layout Plain Layout
17060 \begin_inset space \thinspace{}
17068 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17071 \begin_layout Plain Layout
17073 \begin_inset space \thinspace{}
17077 \begin_inset Formula $\mbox{Pixels}$
17085 <cell alignment="center" valignment="top" usebox="none">
17088 \begin_layout Plain Layout
17093 \begin_layout Plain Layout
17103 \begin_inset Formula $\mbox{Pixels}$
17113 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17116 \begin_layout Plain Layout
17118 \begin_inset space \thinspace{}
17126 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17129 \begin_layout Plain Layout
17131 \begin_inset space \thinspace{}
17135 \begin_inset Formula $\mbox{cm}$
17143 <cell alignment="center" valignment="top" usebox="none">
17146 \begin_layout Plain Layout
17151 \begin_layout Plain Layout
17161 \begin_inset Formula $\mbox{cm}$
17182 \begin_layout Subsection
17183 Customized Cell/Column Format
17184 \begin_inset CommandInset label
17186 name "sub:Customized-Format"
17194 \begin_layout Plain Layout
17195 Table Customization ! Cell/Column Format
17203 \begin_layout Standard
17204 Calculating the needed width for spanned columns like in section
17205 \begin_inset space ~
17209 \begin_inset CommandInset ref
17211 reference "sub:Multicolumn-Calculations"
17215 is very annoying if you have several tables with multicolumn cells.
17216 To make life easier, you can define a cell/column format in the preamble,
17217 so that it can be used in all tables of the document.
17218 The format is defined with the command
17221 \begin_layout Standard
17226 newcolumntype{name of format}[number of arguments]{commands}
17229 \begin_layout Standard
17230 The format name may only consist of one letter.
17255 are predefined and cannot be used.
17256 But all letters are allowed as capitals.
17259 \begin_layout Standard
17260 \begin_inset VSpace medskip
17266 \begin_layout Standard
17267 For vertically and horizontally centered multicolumn cells with a fixed
17268 width you can define the cell format
17271 \begin_layout Standard
17276 newcolumntype{M}[1]{>{
17283 \begin_layout Standard
17290 avoids the problem of hyphenating the first word, as described in section
17291 \begin_inset space ~
17295 \begin_inset CommandInset ref
17297 reference "sub:Multiple-Lines-in"
17302 Now you can simply enter
17305 \begin_layout Standard
17311 \begin_layout Standard
17312 as LaTeX-argument in the table dialog to create a multicolumn.
17315 \begin_layout Standard
17316 \begin_inset VSpace bigskip
17322 \begin_layout Standard
17323 For cells spanned by a multicolumn cell, you can define the format
17326 \begin_layout Standard
17331 newcolumntype{S}[2]{>{
17336 \begin_inset Newline newline
17343 \begin_layout Plain Layout
17358 \begin_layout Plain Layout
17369 arrayrulewidth)*(1-#2))/#2}}
17372 \begin_layout Standard
17373 This format uses equation
17374 \begin_inset CommandInset ref
17380 to calculate the needed width so that each spanned cell has the same width.
17383 \begin_layout Standard
17387 \begin_layout Standard
17390 S{width of multicolumn cell}{number of spanned columns}
17393 \begin_layout Standard
17394 as LaTeX-argument of the column.
17397 \begin_layout Standard
17398 \begin_inset VSpace bigskip
17404 \begin_layout Standard
17405 For colored columns, you can define
17408 \begin_layout Standard
17413 newcolumntype{K}[1]{>{
17420 \begin_layout Standard
17422 \begin_inset Quotes eld
17426 \begin_inset Quotes erd
17429 at the end creates a column with a flexible width whose text is horizontally
17434 \begin_layout Standard
17440 \begin_layout Standard
17444 \begin_layout Standard
17445 \begin_inset VSpace bigskip
17451 \begin_layout Standard
17453 \begin_inset space ~
17457 \begin_inset CommandInset ref
17459 reference "tab:Table-using-user-defined"
17463 use the LaTeX-arguments
17466 \begin_layout Standard
17472 \begin_layout Standard
17473 for the first column and the multicolumn,
17476 \begin_layout Standard
17482 \begin_layout Standard
17483 for the the last column, and
17486 \begin_layout Standard
17492 \begin_layout Standard
17493 for the cells in the second column.
17496 \begin_layout Standard
17497 \begin_inset Float table
17503 \begin_layout Plain Layout
17504 \begin_inset Caption
17506 \begin_layout Plain Layout
17507 \begin_inset CommandInset label
17509 name "tab:Table-using-user-defined"
17513 Table using user-defined table formats
17521 \begin_layout Plain Layout
17523 \begin_inset Tabular
17524 <lyxtabular version="3" rows="3" columns="4">
17526 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17527 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17528 <column alignment="center" valignment="middle" width="0">
17529 <column alignment="center" valignment="middle" width="0" special="K{red}">
17531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17534 \begin_layout Plain Layout
17535 verylongtablecellword
17540 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17543 \begin_layout Plain Layout
17544 multiple lines multicolumn
17549 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17552 \begin_layout Plain Layout
17558 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17561 \begin_layout Plain Layout
17569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17572 \begin_layout Plain Layout
17578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17581 \begin_layout Plain Layout
17587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17590 \begin_layout Plain Layout
17596 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17599 \begin_layout Plain Layout
17607 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17610 \begin_layout Plain Layout
17616 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17619 \begin_layout Plain Layout
17625 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17628 \begin_layout Plain Layout
17634 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17637 \begin_layout Plain Layout
17656 \begin_layout Subsection
17658 \begin_inset CommandInset label
17660 name "sub:Line-Thickness"
17668 \begin_layout Plain Layout
17669 Table Customization ! Line Thickness
17677 \begin_layout Standard
17678 The line thickness for all lines in a table can be adjusted with the length
17686 To set for example a line thickness of 1.5
17687 \begin_inset space \thinspace{}
17691 \begin_inset space ~
17695 \begin_inset CommandInset ref
17697 reference "tab:Table-with-1.5"
17701 , insert the command
17704 \begin_layout Standard
17711 arrayrulewidth}{1.5pt}
17714 \begin_layout Standard
17715 in TeX-Code before the table or table float.
17716 The changed thickness is valid for all following tables.
17717 To use the default value again, set
17724 \begin_inset space \thinspace{}
17727 pt in TeX-Code behind the table or table float.
17730 \begin_layout Standard
17734 \begin_layout Plain Layout
17740 arrayrulewidth}{1.5pt}
17746 \begin_inset Float table
17751 \begin_layout Plain Layout
17752 \begin_inset Caption
17754 \begin_layout Plain Layout
17755 \begin_inset CommandInset label
17757 name "tab:Table-with-1.5"
17762 \begin_inset space \thinspace{}
17773 \begin_layout Plain Layout
17775 \begin_inset Tabular
17776 <lyxtabular version="3" rows="3" columns="3">
17778 <column alignment="center" valignment="top" width="0">
17779 <column alignment="center" valignment="top" width="0">
17780 <column alignment="center" valignment="top" width="0">
17782 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17785 \begin_layout Plain Layout
17791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17794 \begin_layout Plain Layout
17800 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17803 \begin_layout Plain Layout
17811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17814 \begin_layout Plain Layout
17820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17823 \begin_layout Plain Layout
17829 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17832 \begin_layout Plain Layout
17840 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17843 \begin_layout Plain Layout
17849 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17852 \begin_layout Plain Layout
17858 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17861 \begin_layout Plain Layout
17881 \begin_layout Plain Layout
17887 arrayrulewidth}{0.4pt}
17895 \begin_layout Standard
17896 \begin_inset VSpace bigskip
17899 To set the line thickness to 1.5
17900 \begin_inset space \thinspace{}
17903 pt only for horizontal lines, like in Table
17904 \begin_inset space ~
17908 \begin_inset CommandInset ref
17910 reference "tab:Table-with-horizontal"
17914 , insert these commands in TeX-Code before the table or table float:
17917 \begin_layout Standard
17927 \begin_inset Newline newline
17935 \begin_inset Newline newline
17944 arrayrulewidth 1.5pt}
17945 \begin_inset Newline newline
17956 arrayrulewidth 0.4pt}}
17959 \begin_layout Standard
17960 To return to the default line thickness, insert this command in TeX-Code
17961 behind the table or table float:
17964 \begin_layout Standard
17976 \begin_layout Standard
17980 \begin_layout Plain Layout
17991 \begin_layout Plain Layout
18000 \begin_layout Plain Layout
18008 arrayrulewidth 1.5pt}
18011 \begin_layout Plain Layout
18021 arrayrulewidth 0.4pt}}
18027 \begin_inset Float table
18032 \begin_layout Plain Layout
18033 \begin_inset Caption
18035 \begin_layout Plain Layout
18036 \begin_inset CommandInset label
18038 name "tab:Table-with-horizontal"
18043 \begin_inset space \thinspace{}
18046 pt thick horizontal lines
18054 \begin_layout Plain Layout
18056 \begin_inset Tabular
18057 <lyxtabular version="3" rows="3" columns="3">
18059 <column alignment="center" valignment="top" width="0">
18060 <column alignment="center" valignment="top" width="0">
18061 <column alignment="center" valignment="top" width="0">
18063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18066 \begin_layout Plain Layout
18072 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18075 \begin_layout Plain Layout
18081 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18084 \begin_layout Plain Layout
18092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18095 \begin_layout Plain Layout
18101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18104 \begin_layout Plain Layout
18110 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18113 \begin_layout Plain Layout
18121 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18124 \begin_layout Plain Layout
18130 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18133 \begin_layout Plain Layout
18139 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18142 \begin_layout Plain Layout
18162 \begin_layout Plain Layout
18178 \begin_layout Standard
18179 \begin_inset VSpace bigskip
18182 To set the line thickness to 1.5
18183 \begin_inset space \thinspace{}
18186 pt only for vertical lines, create the following column format in the document
18187 preamble, according to the description in section
18188 \begin_inset space ~
18192 \begin_inset CommandInset ref
18194 reference "sub:Customized-Format"
18201 \begin_layout Standard
18206 newcolumntype{V}{!{
18208 vrule width 1.5pt}}
18211 \begin_layout Standard
18213 \begin_inset space ~
18217 \begin_inset CommandInset ref
18219 reference "tab:Table-with-vertical"
18226 \begin_layout Standard
18232 \begin_layout Standard
18233 was used for the last column and
18236 \begin_layout Standard
18242 \begin_layout Standard
18243 for the other columns.
18246 \begin_layout Standard
18247 \begin_inset Float table
18252 \begin_layout Plain Layout
18253 \begin_inset Caption
18255 \begin_layout Plain Layout
18256 \begin_inset CommandInset label
18258 name "tab:Table-with-vertical"
18263 \begin_inset space \thinspace{}
18266 pt thick vertical lines
18274 \begin_layout Plain Layout
18276 \begin_inset Tabular
18277 <lyxtabular version="3" rows="3" columns="3">
18279 <column alignment="center" valignment="top" width="0" special="Vc">
18280 <column alignment="center" valignment="top" width="0" special="Vc">
18281 <column alignment="center" valignment="top" width="0" special="VcV">
18283 <cell alignment="center" valignment="top" topline="true" usebox="none">
18286 \begin_layout Plain Layout
18292 <cell alignment="center" valignment="top" topline="true" usebox="none">
18295 \begin_layout Plain Layout
18301 <cell alignment="center" valignment="top" topline="true" usebox="none">
18304 \begin_layout Plain Layout
18312 <cell alignment="center" valignment="top" topline="true" usebox="none">
18315 \begin_layout Plain Layout
18321 <cell alignment="center" valignment="top" topline="true" usebox="none">
18324 \begin_layout Plain Layout
18330 <cell alignment="center" valignment="top" topline="true" usebox="none">
18333 \begin_layout Plain Layout
18341 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18344 \begin_layout Plain Layout
18350 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18353 \begin_layout Plain Layout
18359 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18362 \begin_layout Plain Layout
18381 \begin_layout Subsection
18386 \begin_layout Plain Layout
18387 Table Customization ! Dashed Lines
18395 \begin_layout Standard
18399 \begin_layout Plain Layout
18409 \begin_inset Note Note
18412 \begin_layout Plain Layout
18413 The following section will only be displayed when the LaTeX-package
18425 \begin_layout Standard
18426 \begin_inset Float table
18432 \begin_layout Plain Layout
18433 \begin_inset Caption
18435 \begin_layout Plain Layout
18436 \begin_inset CommandInset label
18438 name "tab:Table-with-dashed"
18442 Table with dashed lines
18450 \begin_layout Plain Layout
18452 \begin_inset Tabular
18453 <lyxtabular version="3" rows="5" columns="5">
18455 <column alignment="center" valignment="top" width="0">
18456 <column alignment="center" valignment="top" width="0">
18457 <column alignment="center" valignment="top" width="0" special=":c">
18458 <column alignment="center" valignment="top" width="0">
18459 <column alignment="center" valignment="top" width="0">
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" usebox="none">
18482 \begin_layout Plain Layout
18488 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18491 \begin_layout Plain Layout
18497 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18500 \begin_layout Plain Layout
18508 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18511 \begin_layout Plain Layout
18517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18520 \begin_layout Plain Layout
18526 <cell alignment="center" valignment="top" topline="true" usebox="none">
18529 \begin_layout Plain Layout
18535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18538 \begin_layout Plain Layout
18544 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18547 \begin_layout Plain Layout
18555 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18558 \begin_layout Plain Layout
18562 \begin_layout Plain Layout
18576 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18579 \begin_layout Plain Layout
18585 <cell alignment="center" valignment="top" usebox="none">
18588 \begin_layout Plain Layout
18594 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18597 \begin_layout Plain Layout
18603 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18606 \begin_layout Plain Layout
18614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18617 \begin_layout Plain Layout
18621 \begin_layout Plain Layout
18635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18638 \begin_layout Plain Layout
18644 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
18647 \begin_layout Plain Layout
18653 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
18656 \begin_layout Plain Layout
18662 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18665 \begin_layout Plain Layout
18673 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18676 \begin_layout Plain Layout
18682 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18685 \begin_layout Plain Layout
18691 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18694 \begin_layout Plain Layout
18700 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18703 \begin_layout Plain Layout
18709 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18712 \begin_layout Plain Layout
18731 \begin_layout Standard
18732 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
18733 As prerequisite the LaTeX-package
18741 \begin_layout Plain Layout
18742 LaTeX-packages ! arydshln
18747 must be loaded in the document preamble with the command
18750 \begin_layout Standard
18755 usepackage{arydshln}
18758 \begin_layout Standard
18759 To make a vertical line dashed, enter the colon
18760 \begin_inset Quotes eld
18764 \begin_inset Quotes erd
18767 together with the character for the horizontal alignment as LaTeX-argument
18768 in the table cell dialog.
18771 \begin_layout Standard
18772 For a horizontal dashed line add the command
18775 \begin_layout Standard
18783 \begin_layout Standard
18784 in TeX-Code as first element of the first cell in the table row.
18787 \begin_layout Standard
18788 For dashed multicolumn lines use the command
18791 \begin_layout Standard
18796 cdashline{line number
18801 \begin_layout Standard
18802 in TeX-Code as first element of the first cell in the table row.
18803 If you have for example a multicolumn spanning over columns 2 to 4 and
18804 you want to have a dashed line above, add the command
18807 \begin_layout Standard
18815 \begin_layout Standard
18816 as first element of the first cell in the row of the multicolumn.
18819 \begin_layout Standard
18820 \begin_inset VSpace bigskip
18826 \begin_layout Standard
18828 \begin_inset space ~
18832 \begin_inset CommandInset ref
18834 reference "tab:Table-with-dashed"
18839 \begin_inset Quotes eld
18847 \begin_inset Quotes erd
18850 as LaTeX-argument of the third column.
18851 The TeX-Code command
18857 was inserted to the first cell of the third row and the the TeX-Code command
18858 \begin_inset Newline newline
18867 was inserted to the first cell of the fourth row.
18870 \begin_layout Standard
18871 \begin_inset Note Greyedout
18874 \begin_layout Plain Layout
18879 The used LaTeX-package
18883 is apparently not compatible with the LaTeX-package
18891 \begin_layout Plain Layout
18892 LaTeX-packages ! colortbl
18897 that is used for colored tables in section
18898 \begin_inset space ~
18902 \begin_inset CommandInset ref
18904 reference "sec:Colored-Tables"
18909 That means colored tables cannot have dashed lines.
18917 \begin_layout Standard
18921 \begin_layout Plain Layout
18931 \begin_inset Note Note
18934 \begin_layout Plain Layout
18935 The following will be displayed when the LaTeX-package
18947 \begin_layout Standard
18948 You need to install the package
18952 to see the content of this section in the output.
18955 \begin_layout Standard
18959 \begin_layout Plain Layout
18971 \begin_layout Chapter
18976 \begin_layout Plain Layout
18985 \begin_layout Section
18987 \begin_inset CommandInset label
18989 name "sec:FloatIntroduction"
18997 \begin_layout Plain Layout
18998 Floats ! Introduction
19006 \begin_layout Standard
19007 A float is a block of text associated with some sort of label, which doesn't
19008 have a fixed location.
19010 \begin_inset Quotes eld
19014 \begin_inset Quotes erd
19017 forward or backward a page or two, to wherever it fits best.
19025 \begin_inset space ~
19030 are also floats, because they can float to the next page when there are
19031 too many notes at the page.
19034 \begin_layout Standard
19035 Floats allow a high quality layout.
19036 Images and tables can evenly be spread to the pages to avoid white space
19037 and pages without text.
19038 As the floating often destroys the context between the text and the image/table
19039 , every float can be referenced in the text.
19040 Floats are therefore numbered.
19041 Referencing is described in section
19042 \begin_inset space ~
19046 \begin_inset CommandInset ref
19048 reference "sec:Referencing-Floats"
19055 \begin_layout Standard
19056 To insert a float, use the menu
19058 Insert\SpecialChar \menuseparator
19066 inset, a box with a label.
19067 The label will automatically be translated to the document language in
19069 Behind the label you can insert the caption text.
19070 The image or table is inserted above or below the caption in a separate
19071 paragraph within the float.
19072 More about the caption placement is described in section
19073 \begin_inset space ~
19077 \begin_inset CommandInset ref
19079 reference "sec:Caption-Placement"
19084 To keep your LyX-document readable, you can open and close the float box
19085 by left-clicking on the box label.
19086 A closed float box looks like this:
19087 \begin_inset Graphics
19088 filename clipart/floatQt4.png
19090 scaleBeforeRotation
19094 -- a gray button with a red label.
19097 \begin_layout Standard
19098 It is recommended to insert floats as a separate paragraph to avoid possible
19099 LaTeX-errors that can occur when the surrounding text is specially formatted.
19102 \begin_layout Standard
19103 Existing figures or tables can be put into a float by marking them and then
19104 pressing the corresponding toolbar button for a new float.
19107 \begin_layout Section
19111 \begin_layout Standard
19112 Besides figure and table floats that are described in section
19113 \begin_inset space ~
19117 \begin_inset CommandInset ref
19119 reference "sec:Figure-Floats"
19124 \begin_inset CommandInset ref
19126 reference "sec:Table-Floats"
19130 , respectively, LyX offers the float types
19141 \begin_layout Subsection
19146 \begin_layout Plain Layout
19147 Floats ! Algorithms
19155 \begin_layout Standard
19156 \begin_inset Float algorithm
19162 \begin_layout Plain Layout
19163 \begin_inset Caption
19165 \begin_layout Plain Layout
19166 \begin_inset CommandInset label
19168 name "alg:Example-Algorithm-float"
19172 Example Algorithm float
19180 \begin_layout LyX-Code
19182 \begin_inset Newline newline
19185 Sum:= Sum + A(I); /*comment*/
19186 \begin_inset Newline newline
19190 \begin_inset VSpace -4mm
19201 \begin_layout Standard
19202 This float type is inserted with the menu
19204 Insert\SpecialChar \menuseparator
19205 Floats\SpecialChar \menuseparator
19209 It is used for program codes and descriptions of algorithms.
19210 A possible environment for algorithms is the
19214 , described in LyX's
19220 \begin_inset space ~
19224 \begin_inset CommandInset ref
19226 reference "alg:Example-Algorithm-float"
19230 is an example of an algorithm float where -4
19231 \begin_inset space \thinspace{}
19234 mm vertical space was added at the end of the float to have the bottom rule
19235 exactly below the last text line.
19238 \begin_layout Standard
19239 The float label is not automatically translated into the document language.
19240 If your document is not in English, you have to do this manually by adding
19241 the following line to the document preamble
19246 \begin_layout Standard
19251 floatname{algorithm}{your
19252 \begin_inset space ~
19258 \begin_layout Standard
19262 \begin_inset space ~
19268 \begin_inset Quotes eld
19276 \begin_inset Quotes erd
19282 \begin_layout Standard
19283 To insert the list of algorithms you can not use the menu
19285 Insert\SpecialChar \menuseparator
19287 \begin_inset space \thinspace{}
19291 \begin_inset space \thinspace{}
19294 TOC\SpecialChar \menuseparator
19297 when your document is a non-English one.
19298 In this case use this command in TeX-Code instead:
19301 \begin_layout Standard
19306 listof{algorithm}{your
19307 \begin_inset space ~
19313 \begin_layout Standard
19317 \begin_inset space ~
19323 \begin_inset Quotes eld
19331 \begin_inset Quotes erd
19337 \begin_layout Standard
19338 Algorithm floats are not by default numbered in the scheme
19339 \begin_inset Quotes eld
19343 \begin_inset Quotes erd
19346 like it is the case for table and figure floats in many document-classes.
19347 To number algorithm floats in the same scheme, add this command to your
19351 \begin_layout Standard
19356 numberwithin{algorithm}{chapter}
19359 \begin_layout Standard
19360 To be able to use the command
19369 \begin_inset space ~
19374 in the document settings the option
19377 \begin_inset space ~
19381 \begin_inset space ~
19385 \begin_inset space ~
19393 \begin_layout Subsection
19398 \begin_layout Plain Layout
19399 Floats ! Wrap Floats
19407 \begin_layout Standard
19408 \begin_inset Wrap figure
19415 \begin_layout Plain Layout
19416 \begin_inset Graphics
19417 filename clipart/mobius.eps
19419 scaleBeforeRotation
19420 rotateOrigin center
19427 \begin_layout Plain Layout
19428 \begin_inset Caption
19430 \begin_layout Plain Layout
19431 \begin_inset CommandInset label
19433 name "fig:This-is-a"
19437 This is a figure wrap float.
19447 This float type is used if you want to wrap text around a figure or table
19448 so that it only occupies some fraction of the column width.
19449 It can be inserted using the menu
19451 Insert\SpecialChar \menuseparator
19452 Floats\SpecialChar \menuseparator
19454 \begin_inset space ~
19458 \begin_inset space ~
19466 \begin_inset space ~
19470 \begin_inset space ~
19475 if the LaTeX-package
19483 \begin_layout Plain Layout
19484 LaTeX-packages ! wrapfig
19488 \begin_layout Plain Layout
19506 \begin_layout Plain Layout
19507 Installing a LaTeX-package is explained it in the
19510 \begin_inset space ~
19520 The settings of the float can be modified by right-clicking on the float
19522 The mandatory settings are the float
19535 that specifies how much the float is set into the paragraph
19536 \begin_inset space \thinspace{}
19540 \begin_inset space \thinspace{}
19543 page margin, and the
19546 \begin_inset space ~
19551 that specifies how many text lines the float will approximately need.
19552 The line span is often hard to be approximated, so better only use it when
19553 you encounter float placement problems.
19554 You can furthermore decide if LaTeX is allowed to let the float float within
19555 the paragraph or to surrounding paragraphs.
19557 \begin_inset space ~
19561 \begin_inset CommandInset ref
19563 reference "fig:This-is-a"
19567 is an example text wrap float with a width of 40
19568 \begin_inset space \thinspace{}
19572 \begin_inset space \thinspace{}
19575 cm overhang, set to the left.
19579 \begin_layout Plain Layout
19580 Available units are explained in appendix
19581 \begin_inset space ~
19585 \begin_inset CommandInset ref
19587 reference "cha:Units-available-in"
19599 \begin_layout Standard
19600 \begin_inset Note Greyedout
19603 \begin_layout Plain Layout
19609 \begin_inset space ~
19612 wrap float floats are fragile! E.
19613 \begin_inset space \thinspace{}
19617 \begin_inset space ~
19620 having a figure too close to the bottom of the page can mess things up in
19621 the way that the float doesn't appear in the output or that it is placed
19622 over some other text.
19630 \begin_layout Standard
19634 \begin_layout Itemize
19635 Wrap floats should not be placed in paragraphs that run over a page break.
19636 That means that wrap floats should better be inserted to the exact place
19637 when the document is nearly finished and you are able to estimate where
19638 page breaks will appear.
19641 \begin_layout Itemize
19642 Wrap floats should either be placed in an own paragraph before the paragraph
19643 where they should wrap into or within a paragraph.
19646 \begin_layout Itemize
19647 Wrap floats in consecutive paragraphs may cause troubles, so assure that
19648 there is a text paragraph between them as separator.
19651 \begin_layout Itemize
19652 Wrap floats are not allowed in section headings or tables.
19655 \begin_layout Section
19660 \begin_layout Plain Layout
19669 \begin_layout Standard
19670 Floats are usually numbered either independent from the sections the floats
19671 are in, or in the scheme
19672 \begin_inset Quotes eld
19676 \begin_inset Quotes erd
19680 \begin_inset Quotes eld
19684 \begin_inset Quotes erd
19688 This depends on the used document class.
19691 \begin_layout Standard
19692 To change the section independent numbering, you can use this command in
19693 the document preamble:
19696 \begin_layout Standard
19708 \begin_layout Standard
19715 is the command that prints the table number, for figure floats, the command
19729 prints in the command above the table number as small roman number.
19732 \begin_layout Standard
19733 To change the numbering scheme for example to
19734 \begin_inset Quotes eld
19738 \begin_inset Quotes erd
19741 , use this command in the preamble:
19744 \begin_layout Standard
19749 numberwithin{table}{subsection}
19752 \begin_layout Standard
19753 To be able to use the command
19762 \begin_inset space ~
19767 in the document settings the option
19770 \begin_inset space ~
19774 \begin_inset space ~
19778 \begin_inset space ~
19786 \begin_layout Standard
19787 Please also have a look at section
19788 \begin_inset space ~
19792 \begin_inset CommandInset ref
19794 reference "sub:Footnote-Numbering"
19798 for the details and important notes about the numbering commands.
19801 \begin_layout Section
19803 \begin_inset CommandInset label
19805 name "sec:Referencing-Floats"
19813 \begin_layout Plain Layout
19814 Floats ! References
19823 \begin_layout Plain Layout
19824 References ! to Floats
19832 \begin_layout Standard
19833 To reference a float, insert a label into its caption using the menu
19835 Insert\SpecialChar \menuseparator
19838 or the toolbar button
19839 \begin_inset Graphics
19840 filename ../images/label-insert.png
19842 scaleBeforeRotation
19847 A grey label box like this one:
19848 \begin_inset Graphics
19849 filename clipart/labelQt4.png
19851 scaleBeforeRotation
19855 will be inserted and the label window pops up asking for the label text.
19856 LyX offers as text the first words of the caption with a prefix.
19857 The prefix depends on the float type, e.
19858 \begin_inset space \thinspace{}
19862 \begin_inset space ~
19865 for figure floats the prefix will be "
19872 \begin_layout Standard
19873 The label is used as anchor and name for the reference.
19874 You can refer to the label using the menu
19876 Insert\SpecialChar \menuseparator
19879 or the toolbar button
19880 \begin_inset Graphics
19881 filename ../images/dialog-show-new-inset_ref.png
19883 scaleBeforeRotation
19888 A grey cross-reference box like this one:
19889 \begin_inset Graphics
19890 filename clipart/referenceQt4.png
19892 scaleBeforeRotation
19896 will be inserted and the cross-reference window appear showing all labels
19898 If you have multiple LyX-documents opened, choose the one you are working
19899 on from the drop-list at the top of the dialog.
19900 You can now sort the labels alphabetically and then choose one.
19901 At the position of the cross-reference box the float number will appear
19905 \begin_layout Standard
19906 It is recommended to use a protected space between the cross-reference name
19907 and its number to avoid line breaks between them.
19908 If a cross-reference refers to a non-existing label, you will see two question
19909 marks in the output instead of the reference.
19912 \begin_layout Standard
19913 You can change labels at any time by clicking on the label box.
19914 References to the changed label will automatically change its link to the
19915 new label text, so that you don't need to take care about this.
19918 \begin_layout Standard
19922 \begin_inset space ~
19926 \begin_inset space ~
19931 in the cross-reference window sets the cursor before the referred label.
19932 The button text changes then to Go
19933 \begin_inset space ~
19936 Back and you can use it to set the cursor back to the cross-reference.
19937 Right-clicking on a cross-reference box also sets the cursor before the
19938 referenced label but without a possibility to go back.
19941 \begin_layout Subsection
19942 Cross-Reference Formats
19943 \begin_inset CommandInset label
19945 name "sub:Cross-Reference-Formats"
19953 \begin_layout Plain Layout
19954 References ! Formats
19962 \begin_layout Standard
19963 There are six varieties of cross-references:
19966 \begin_layout Description
19967 <reference>: prints the float number, this is the default:
19968 \begin_inset CommandInset ref
19970 reference "fig:Two-distorted-images"
19977 \begin_layout Description
19978 (<reference>): prints the float number within two parentheses, this is the
19979 style normally used to reference formulas, especially when the reference
19981 \begin_inset Quotes eld
19985 \begin_inset Quotes erd
19989 \begin_inset CommandInset ref
19998 \begin_layout Description
19999 <page>: prints the page number: Page
20000 \begin_inset space ~
20004 \begin_inset CommandInset ref
20005 LatexCommand pageref
20006 reference "fig:Two-distorted-images"
20013 \begin_layout Description
20015 \begin_inset space ~
20019 \begin_inset space ~
20022 <page>: prints the text "on page" and the page number:
20023 \begin_inset CommandInset ref
20024 LatexCommand vpageref
20025 reference "fig:Two-distorted-images"
20032 \begin_layout Description
20034 \begin_inset space ~
20038 \begin_inset space ~
20042 \begin_inset space ~
20045 <page>: prints the float number, the text "on page", and the page number:
20047 \begin_inset CommandInset ref
20049 reference "fig:Two-distorted-images"
20056 \begin_layout Description
20058 \begin_inset space ~
20061 reference: prints a self defined cross-reference format.
20063 \begin_inset Note Greyedout
20066 \begin_layout Plain Layout
20071 This feature is only available when you have the LaTeX-package
20083 \begin_layout Standard
20084 Note that the style <page> won't print the page number if the label is on
20085 the previous, the same, or the next page.
20087 \begin_inset space \thinspace{}
20091 \begin_inset space ~
20095 \begin_inset Quotes eld
20103 \begin_inset Quotes erd
20109 \begin_layout Standard
20110 The number and current page of the referred document part in the output,
20111 is automatically calculated by LaTeX.
20112 The varieties are adjusted in the field
20116 of the cross-reference window, that appear when you click on the cross-referenc
20120 \begin_layout Subsection
20121 Automatic Reference Naming
20125 \begin_layout Plain Layout
20126 References ! Automatic Reference Naming
20134 \begin_layout Standard
20143 \begin_layout Plain Layout
20144 LaTeX-packages ! hyperref
20149 , that is enabled in the
20157 dialog, provides a very useful feature that cross-references automatically
20158 include the name of the referenced floats (or text parts like
20163 So you will save to write e.
20164 \begin_inset space \thinspace{}
20168 \begin_inset space ~
20172 \begin_inset Quotes eld
20176 \begin_inset Quotes erd
20179 before every reference to a figure.
20180 To use this feature, enable
20184 and insert this line to the LaTeX preamble:
20187 \begin_layout Standard
20203 \begin_layout Standard
20204 When you prefer other reference names than the default ones, for example
20205 you want instead of
20206 \begin_inset Quotes eld
20210 \begin_inset Quotes erd
20214 \begin_inset Quotes eld
20218 \begin_inset space \thinspace{}
20222 \begin_inset Quotes eld
20225 , you can redefine the name by inserting this to the preamble:
20228 \begin_layout Standard
20239 sectionautorefname}
20240 \begin_inset Newline newline
20247 \begin_layout Plain Layout
20261 \begin_layout Standard
20262 When you are using another document language than English, replace
20263 \begin_inset Newline newline
20278 , where *** is the name of the used language.
20281 \begin_layout Standard
20282 To get automatic names, but not for certain reference types, for example
20283 not for equations, use this preamble code:
20286 \begin_layout Standard
20294 \begin_inset Newline newline
20304 \begin_inset Newline newline
20315 equationautorefname}
20316 \begin_inset Newline newline
20323 \begin_layout Plain Layout
20339 \begin_layout Standard
20340 More about this topic can be found in
20345 \begin_inset CommandInset citation
20354 \begin_layout Standard
20355 \begin_inset Note Greyedout
20358 \begin_layout Plain Layout
20363 Automatic reference naming cannot be used when you use cross-references
20367 \begin_inset space ~
20372 style, as described in section
20373 \begin_inset space ~
20377 \begin_inset CommandInset ref
20379 reference "sub:Cross-Reference-Formats"
20391 \begin_layout Standard
20396 manual is an example where automatic reference naming is used.
20399 \begin_layout Subsection
20401 \begin_inset CommandInset label
20403 name "sub:Reference-Position"
20411 \begin_layout Plain Layout
20412 References ! Reference Position
20420 \begin_layout Standard
20429 \begin_layout Plain Layout
20430 LaTeX-packages ! hyperref
20443 dialog to link cross-references in the output, you will see that clicking
20444 on an image float reference jumps to the image label.
20445 The caption will be the first text part on the screen, so that you cannot
20446 see the image without scrolling.
20447 This is because the reference link anchor is placed at the position of
20449 With the use of the package
20457 \begin_layout Plain Layout
20458 LaTeX-packages ! hypcap
20463 , which is part of the LaTeX-package
20471 \begin_layout Plain Layout
20472 LaTeX-packages ! oberdiek
20477 , the link anchor is placed at the beginning of a float.
20478 To use this feature for figure floats, load
20482 in the document preamble with the line
20485 \begin_layout Standard
20490 usepackage[figure]{hypcap}
20493 \begin_layout Standard
20498 for all float types but this is not recommended for stability reasons.
20499 For more informations, have a look at
20504 \begin_inset CommandInset citation
20513 \begin_layout Standard
20514 \begin_inset Note Greyedout
20517 \begin_layout Plain Layout
20526 has no effect for references to subfigures.
20534 \begin_layout Section
20536 \begin_inset CommandInset label
20538 name "sec:Float-Placement"
20546 \begin_layout Plain Layout
20555 \begin_layout Standard
20556 Right-clicking on a float-box opens a dialog where you can alter the placement
20557 options that LaTeX uses for positioning the float.
20558 \begin_inset Newline newline
20564 \begin_inset space ~
20569 is only useful for two-column documents: If you select it, the float will
20570 span across both columns on the page instead of being confined to just
20572 \begin_inset Newline newline
20578 \begin_inset space ~
20583 is used to rotate floats, see section
20584 \begin_inset CommandInset ref
20586 reference "sec:Rotated-Floats"
20593 \begin_layout Standard
20594 You can use one ore more of the following options in the float dialog to
20595 set the placement for a particular float when you uncheck the option
20598 \begin_inset space ~
20602 \begin_inset space ~
20610 \begin_layout Description
20612 \begin_inset space ~
20616 \begin_inset space ~
20619 possible try to place the float on the position where it is inserted
20622 \begin_layout Description
20624 \begin_inset space ~
20628 \begin_inset space ~
20631 page try to place the float on the top of the current page
20634 \begin_layout Description
20636 \begin_inset space ~
20640 \begin_inset space ~
20643 page try to place the float on the bottom of the current page
20646 \begin_layout Description
20648 \begin_inset space ~
20652 \begin_inset space ~
20655 floats try to place the float on an own page
20658 \begin_layout Standard
20659 The order of the above option is
20664 That means, if you use the default placement, LaTeX will first try out
20668 \begin_inset space ~
20672 \begin_inset space ~
20680 \begin_inset space ~
20684 \begin_inset space ~
20689 , and then the others.
20690 If you don't use the default, LaTeX will try only the checked options but
20692 If none of the 4 placements are possible the procedure is internally repeated
20693 but it is tried to put the float on the following page.
20696 \begin_layout Standard
20697 By default, each option has its own rules:
20700 \begin_layout Labeling
20701 \labelwidthstring 00.00.0000
20705 \begin_inset space ~
20709 \begin_inset space ~
20714 only floats occupying less than 70
20715 \begin_inset space \thinspace{}
20718 % of the page can be placed at the top of a page (
20727 \begin_layout Labeling
20728 \labelwidthstring 00.00.0000
20732 \begin_inset space ~
20736 \begin_inset space ~
20741 : only floats occupying less than 30
20742 \begin_inset space \thinspace{}
20745 % of the page can be placed at the bottom of a page.
20755 \begin_layout Labeling
20756 \labelwidthstring 00.00.0000
20760 \begin_inset space ~
20764 \begin_inset space ~
20769 : only if more than 50
20770 \begin_inset space \thinspace{}
20773 % of the page are occupied by floats, several floats can be set together
20784 \begin_layout Standard
20785 If you don't like these rules, you can ignore them by using the additional
20789 \begin_inset space ~
20793 \begin_inset space ~
20799 \begin_inset Newline newline
20802 You can also redefine the rules with LaTeX-commands that are given in parenthese
20803 s behind the rules description above.
20804 To increase for example the often too small default of the bottom-rule
20806 \begin_inset space \thinspace{}
20809 % of the page, add this line to your document preamble:
20812 \begin_layout Standard
20819 bottomfraction}{0.5}
20822 \begin_layout Standard
20823 Sometimes you might need, under all circumstances, a float to be placed
20824 exactly at the position where it is inserted.
20825 For this case you can use the option
20828 \begin_inset space ~
20834 Use this option very rarely and only if the document is nearly ready to
20836 Because the float is then no longer able to
20837 \begin_inset Quotes eld
20841 \begin_inset Quotes erd
20844 when you change your document and this will often destroy the page layout.
20847 \begin_layout Standard
20848 There are no placement options for text wrap floats, because they are always
20849 surrounded by the text of a certain paragraph.
20850 \begin_inset VSpace bigskip
20856 \begin_layout Standard
20857 Sometimes you have the problem that a float is placed at the top of a page
20858 while its corresponding section starts at the middle of the page, so that
20859 the reader could think the float is part of the previous section.
20860 To avoid this the LaTeX-command
20867 It suppresses a given float placement for the page where it is inserted
20868 and can therefore be used to avoid that floats could be set before a section
20870 To get this, add these commands to your document preamble:
20873 \begin_layout Standard
20883 \begin_inset Newline newline
20897 \begin_layout Standard
20898 You can define the same for all section headings, like chapters and subsections.
20899 This definition is not recommended to be used for small text parts like
20900 subsubsections because LaTeX may then have problems to find a suitable
20904 \begin_layout Standard
20905 \begin_inset VSpace bigskip
20908 In some cases it is required to have all figures/tables at the end of the
20910 For this purpose the LaTeX-package
20918 \begin_layout Plain Layout
20919 LaTeX-packages ! endfloat
20925 It puts all figure and table floats at the end of the document into own
20927 At the original float position a text hint like
20928 \begin_inset Quotes eld
20934 \begin_inset space ~
20940 \begin_inset Quotes erd
20944 The endfloat-package is loaded in the preamble with the line
20947 \begin_layout Standard
20952 usepackage[options]{endfloat}
20955 \begin_layout Standard
20956 There are various package options to format the created figure/table sections.
20957 For more information we refer to the
20962 \begin_inset CommandInset citation
20969 \begin_inset Newline newline
20973 \begin_inset Note Greyedout
20976 \begin_layout Plain Layout
20981 doesn't provide an automatic translation for the text hint, you have to
20982 do this manually, see section
20983 \begin_inset space ~
20987 \begin_inset CommandInset citation
20999 \begin_inset Newline newline
21003 \begin_inset Note Greyedout
21006 \begin_layout Plain Layout
21011 There is currently a bug in
21015 when the caption contains a German
21016 \begin_inset Quotes eld
21020 \begin_inset Quotes erd
21024 Use in this case the command
21025 \begin_inset Quotes eld
21035 \begin_inset Quotes erd
21038 in TeX-Code instead of
21039 \begin_inset Quotes eld
21043 \begin_inset Quotes erd
21054 \begin_layout Standard
21055 \begin_inset VSpace bigskip
21058 For more details about float placements, have a look at LaTeX books,
21059 \begin_inset CommandInset citation
21061 key "latexcompanion,latexguide,latexbook"
21068 \begin_layout Section
21070 \begin_inset CommandInset label
21072 name "sec:Rotated-Floats"
21080 \begin_layout Plain Layout
21089 \begin_layout Standard
21090 Especially for wide tables you might have floats rotated.
21091 To rotate a whole float including the caption, right-click on the float-box
21095 \begin_inset space ~
21103 \begin_layout Standard
21104 Rotated floats are always placed on its own page (or column, in case you
21105 have a multi-column document).
21106 You can let them span several columns using the float settings option
21109 \begin_inset space ~
21115 Floats are rotated so that you can read them from the outside margin.
21116 To force a certain rotation direction for all pages, you can add either
21125 to the document class options.
21128 \begin_layout Standard
21129 Referencing rotated floats is the same like for normal floats, the caption
21130 format is also the same: Table
21131 \begin_inset space ~
21135 \begin_inset CommandInset ref
21137 reference "tab:Rotated-table"
21141 is an example of a rotated table float.
21144 \begin_layout Standard
21145 \begin_inset Note Greyedout
21148 \begin_layout Plain Layout
21153 Not all DVI-viewers are able to display rotated floats.
21161 \begin_layout Standard
21162 \begin_inset Float table
21167 \begin_layout Plain Layout
21168 \begin_inset Caption
21170 \begin_layout Plain Layout
21171 \begin_inset CommandInset label
21173 name "tab:Rotated-table"
21185 \begin_layout Plain Layout
21187 \begin_inset Tabular
21188 <lyxtabular version="3" rows="1" columns="5">
21190 <column alignment="center" valignment="top" width="0">
21191 <column alignment="center" valignment="top" width="0">
21192 <column alignment="center" valignment="top" width="0">
21193 <column alignment="center" valignment="top" width="0">
21194 <column alignment="center" valignment="top" width="0">
21196 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21199 \begin_layout Plain Layout
21205 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21208 \begin_layout Plain Layout
21214 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21217 \begin_layout Plain Layout
21223 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21226 \begin_layout Plain Layout
21232 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21235 \begin_layout Plain Layout
21254 \begin_layout Section
21255 Floats Side by Side
21259 \begin_layout Plain Layout
21260 Floats ! Side by side
21268 \begin_layout Standard
21269 To place floats side by side, like for Figure
21270 \begin_inset space ~
21274 \begin_inset CommandInset ref
21276 reference "fig:Float-left"
21281 \begin_inset CommandInset ref
21283 reference "fig:Float-right"
21292 In it two minipage boxes are inserted.
21296 \begin_layout Plain Layout
21297 Minipages are explained in section
21298 \begin_inset space ~
21302 \begin_inset CommandInset ref
21304 reference "sec:Minipages"
21313 The width is set to 45
21314 \begin_inset space \thinspace{}
21318 \begin_inset space \thinspace{}
21321 column% and the box alignment to
21326 The minipage boxes contain the image and the caption in the same way as
21327 they are in a float.
21328 The only difference is that the image unit
21331 \begin_inset space ~
21335 \begin_inset space ~
21340 is now calculated according to the width of the minipage boxes.
21343 \begin_layout Standard
21344 \begin_inset Float figure
21349 \begin_layout Plain Layout
21350 \begin_inset Box Frameless
21359 height_special "totalheight"
21362 \begin_layout Plain Layout
21364 \begin_inset Graphics
21365 filename clipart/mobius.eps
21368 scaleBeforeRotation
21375 \begin_layout Plain Layout
21376 \begin_inset Caption
21378 \begin_layout Plain Layout
21379 \begin_inset CommandInset label
21381 name "fig:Float-left"
21385 Float on the left side.
21396 \begin_inset space \hfill{}
21400 \begin_inset Box Frameless
21409 height_special "totalheight"
21412 \begin_layout Plain Layout
21414 \begin_inset Graphics
21415 filename clipart/platypus.eps
21418 scaleBeforeRotation
21425 \begin_layout Plain Layout
21426 \begin_inset Caption
21428 \begin_layout Plain Layout
21429 \begin_inset CommandInset label
21431 name "fig:Float-right"
21435 Float on the right side.
21448 \begin_layout Plain Layout
21457 \begin_layout Section
21462 \begin_layout Plain Layout
21463 Caption ! Formatting
21472 \begin_layout Plain Layout
21473 Floats ! Caption Formatting
21479 \begin_inset CommandInset label
21481 name "sec:Caption-Formatting"
21488 \begin_layout Standard
21493 environment is the default paragraph environment for
21498 On the LyX screen captions appear as label, e.
21499 \begin_inset space \thinspace{}
21503 \begin_inset space ~
21507 \begin_inset Quotes eld
21515 \begin_inset Quotes erd
21518 followed by the caption text.
21520 \begin_inset Quotes eld
21524 \begin_inset Quotes erd
21527 is the actual reference number.
21528 By default the label and the number are in the same font as the caption
21529 text and a colon follows the number to divide the label from the text.
21530 This caption format is not suitable for all document formats.
21534 \begin_layout Standard
21535 To change the default caption format, load the LaTeX-package
21543 \begin_layout Plain Layout
21544 LaTeX-packages ! caption
21549 in the document preamble with this line:
21552 \begin_layout Standard
21557 usepackage[format definition]{caption}
21560 \begin_layout Standard
21561 To have for example the label and the number in sans-serif bold font and
21562 the table captions always above the table like in this document, use the
21566 \begin_layout Standard
21571 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
21574 \begin_layout Standard
21575 You can also define different caption formats for the different float types.
21576 In this case load the
21580 package without format specific options and define the different formats
21581 with the help of the command
21584 \begin_layout Standard
21589 captionsetup[float type]{format definition}
21592 \begin_layout Standard
21593 in the document preamble.
21594 For example the caption formats of Figure
21595 \begin_inset space ~
21599 \begin_inset CommandInset ref
21601 reference "fig:This-is-an-fig"
21606 \begin_inset space ~
21610 \begin_inset CommandInset ref
21612 reference "tab:This-is-an-tab"
21616 can be created using these commands in the document preamble:
21619 \begin_layout Standard
21624 usepackage[tableposition=top]{caption}
21627 \begin_inset Newline newline
21634 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
21635 \begin_inset Newline newline
21642 \begin_layout Plain Layout
21650 captionsetup[figure]
21658 \begin_inset Newline newline
21663 captionsetup[table]{labelfont={bf,sf}}
21666 \begin_layout Standard
21667 \begin_inset Note Greyedout
21670 \begin_layout Plain Layout
21679 has no effect when a
21687 \begin_layout Plain Layout
21688 LaTeX-packages ! koma-script
21693 document class is used.
21694 In this case the document class option
21706 \begin_layout Standard
21707 For more information about the package
21711 we refer to its documentation
21712 \begin_inset CommandInset citation
21721 \begin_layout Standard
21722 To change the label name from e.g.
21724 \begin_inset Quotes eld
21728 \begin_inset Quotes erd
21732 \begin_inset Quotes eld
21736 \begin_inset Quotes erd
21739 use this preamble command:
21742 \begin_layout Standard
21749 fnum@figure}{Image~
21754 \begin_layout Standard
21761 inserts the figure number and
21764 \begin_inset Quotes eld
21770 \begin_inset Quotes erd
21773 creates a protected space.
21776 \begin_layout Standard
21777 \begin_inset VSpace bigskip
21788 \begin_layout Plain Layout
21789 LaTeX-packages ! koma-script
21796 article (koma-script)
21804 letter (koma-script)
21808 report (koma-script)
21811 \begin_inset space \thinspace{}
21814 ), you can alternatively to the
21822 's built-in command
21829 For example, to have the caption label in bold, add this command to your
21833 \begin_layout Standard
21838 setkomafont{captionlabel}{
21843 \begin_layout Standard
21844 For more information about
21855 \begin_inset CommandInset citation
21864 \begin_layout Standard
21868 \begin_layout Plain Layout
21872 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
21879 \begin_inset Note Note
21882 \begin_layout Plain Layout
21883 The caption format is changed only for this example.
21891 \begin_layout Standard
21892 \begin_inset Float figure
21898 \begin_layout Plain Layout
21900 \begin_inset Graphics
21901 filename clipart/mobius.eps
21904 scaleBeforeRotation
21911 \begin_layout Plain Layout
21912 \begin_inset Caption
21914 \begin_layout Plain Layout
21915 \begin_inset CommandInset label
21917 name "fig:This-is-an-fig"
21921 This is an example figure caption that is longer than one line to show the
21922 different caption format.
21923 Here a self-defined caption format is used.
21936 \begin_layout Standard
21940 \begin_layout Plain Layout
21944 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
21953 \begin_layout Standard
21954 \begin_inset Float table
21960 \begin_layout Plain Layout
21961 \begin_inset Caption
21963 \begin_layout Plain Layout
21964 \begin_inset CommandInset label
21966 name "tab:This-is-an-tab"
21970 This is an example table caption that is longer than one line to show the
21971 different caption format.
21972 Here the standard caption format for tables in this document is used.
21980 \begin_layout Plain Layout
21982 \begin_inset Tabular
21983 <lyxtabular version="3" rows="1" columns="5">
21985 <column alignment="center" valignment="top" width="0">
21986 <column alignment="center" valignment="top" width="0">
21987 <column alignment="center" valignment="top" width="0">
21988 <column alignment="center" valignment="top" width="0">
21989 <column alignment="center" valignment="top" width="0">
21991 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21994 \begin_layout Plain Layout
22000 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22003 \begin_layout Plain Layout
22009 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22012 \begin_layout Plain Layout
22018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22021 \begin_layout Plain Layout
22027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22030 \begin_layout Plain Layout
22049 \begin_layout Section
22054 \begin_layout Plain Layout
22055 Caption ! Placement
22064 \begin_layout Plain Layout
22065 Floats ! Caption Placement
22071 \begin_inset CommandInset label
22073 name "sec:Caption-Placement"
22080 \begin_layout Standard
22081 The common caption placement rule is:
22084 \begin_layout Description
22085 Figure: Caption is set below the figure
22088 \begin_layout Description
22089 Table: Caption is set above the table
22092 \begin_layout Standard
22093 Having the caption above the table is unfortunately not supported in LaTeX's
22095 That means if you are using the document classes
22111 there will be no space between the caption and the table.
22112 To insert the needed space, add the following option to the load command
22113 of the LaTeX-package
22117 in your document preamble
22121 \begin_layout Plain Layout
22123 \begin_inset space ~
22127 \begin_inset CommandInset ref
22129 reference "sec:Caption-Formatting"
22133 for more information of the package
22145 \begin_layout Standard
22151 \begin_layout Standard
22160 \begin_layout Plain Layout
22161 LaTeX-packages ! koma-script
22168 article (koma-script)
22176 letter (koma-script)
22180 report (koma-script)
22183 \begin_inset space \thinspace{}
22186 ), you can alternatively to the
22190 package set the document class option
22197 \begin_layout Standard
22198 \begin_inset VSpace bigskip
22201 It is also possible to set the caption beside a figure or table.
22202 To get this the LaTeX-package
22210 \begin_layout Plain Layout
22211 LaTeX-packages ! sidecap
22216 has to be loaded in the document preamble with the line
22219 \begin_layout Standard
22224 usepackage[option]{sidecap}
22227 \begin_layout Standard
22228 If you set no option, the caption is placed on the side of the outer page
22229 margin -- to the right on odd pages, to the left on even pages.
22230 You can change the placement to inner margin with the option
22235 To force the placement always to the right or left, use the option
22246 \begin_layout Standard
22250 \begin_layout Plain Layout
22260 \begin_inset Note Note
22263 \begin_layout Plain Layout
22264 The following section will only be displayed when the LaTeX-package
22276 \begin_layout Standard
22277 To place in LyX the caption of a float on the side, it is necessary to add
22278 these commands to the document preamble:
22281 \begin_layout Standard
22287 \begin_layout Standard
22295 \begin_inset Newline newline
22302 \begin_layout Plain Layout
22318 \begin_inset Newline newline
22325 \begin_layout Plain Layout
22341 \begin_inset Newline newline
22348 \begin_layout Plain Layout
22359 renewenvironment{table}{
22366 \begin_layout Standard
22374 \begin_inset Newline newline
22381 \begin_layout Plain Layout
22397 \begin_inset Newline newline
22404 \begin_layout Plain Layout
22422 \begin_layout Standard
22430 \begin_inset Newline newline
22437 \begin_layout Plain Layout
22453 \begin_inset Newline newline
22460 \begin_layout Plain Layout
22476 \begin_inset Newline newline
22483 \begin_layout Plain Layout
22494 renewenvironment{figure}{
22501 \begin_layout Standard
22509 \begin_inset Newline newline
22516 \begin_layout Plain Layout
22532 \begin_inset Newline newline
22539 \begin_layout Plain Layout
22557 \begin_layout Standard
22563 \begin_layout Standard
22564 The commands allow you to redefine the floats so that the caption is set
22566 For figure floats use the command
22569 \begin_layout Standard
22577 \begin_layout Standard
22578 in TeX-Code before the float.
22579 Behind the float insert the command
22582 \begin_layout Standard
22590 \begin_layout Standard
22591 in TeX-Code to get back to the original float definition.
22594 \begin_layout Standard
22595 For table floats use the corresponding commands
22598 \begin_layout Standard
22612 \begin_layout Standard
22614 \begin_inset space ~
22618 \begin_inset CommandInset ref
22620 reference "fig:cap-beside-fig"
22625 \begin_inset space ~
22629 \begin_inset CommandInset ref
22631 reference "tab:cap-beside-tab"
22635 are examples where the caption is set beside.
22638 \begin_layout Standard
22639 You can see in the examples that the caption text appears at the top of
22640 the floats for table floats and at the bottom for figure floats.
22641 To change this, you can use the command
22644 \begin_layout Standard
22649 sidecaptionvpos{float type}{placement}
22652 \begin_layout Standard
22653 in the document preamble or in TeX-Code before the float.
22654 The float type is either
22662 , the placement can be
22663 \begin_inset Quotes eld
22671 \begin_inset Quotes erd
22675 \begin_inset Quotes eld
22683 \begin_inset Quotes erd
22687 \begin_inset Quotes eld
22695 \begin_inset Quotes erd
22699 To have for example the caption of figure floats vertically centered, use
22703 \begin_layout Standard
22708 sidecaptionvpos{figure}{c}
22711 \begin_layout Standard
22712 This was used for Figure
22713 \begin_inset space ~
22717 \begin_inset CommandInset ref
22719 reference "fig:cap-beside-fig-2"
22726 \begin_layout Standard
22727 \begin_inset VSpace medskip
22730 For more information about the package
22734 we refer to its documentation
22735 \begin_inset CommandInset citation
22744 \begin_layout Standard
22745 \begin_inset Note Greyedout
22748 \begin_layout Plain Layout
22761 \begin_layout Plain Layout
22762 LaTeX-packages ! hypcap
22767 , described in section
22768 \begin_inset space ~
22772 \begin_inset CommandInset ref
22774 reference "sub:Reference-Position"
22778 , has no effect on floats with the caption set beside.
22786 \begin_layout Standard
22790 \begin_layout Plain Layout
22802 \begin_layout Standard
22803 \begin_inset Float figure
22808 \begin_layout Plain Layout
22809 \begin_inset Graphics
22810 filename clipart/escher-lsd.eps
22812 scaleBeforeRotation
22819 \begin_layout Plain Layout
22820 \begin_inset Caption
22822 \begin_layout Plain Layout
22823 \begin_inset CommandInset label
22825 name "fig:cap-beside-fig"
22829 This is a caption beside a figure.
22842 \begin_layout Standard
22846 \begin_layout Plain Layout
22858 \begin_layout Standard
22859 \begin_inset Float table
22864 \begin_layout Plain Layout
22865 \begin_inset Caption
22867 \begin_layout Plain Layout
22868 \begin_inset CommandInset label
22870 name "tab:cap-beside-tab"
22874 This is a caption beside a table.
22882 \begin_layout Plain Layout
22883 \begin_inset Tabular
22884 <lyxtabular version="3" rows="4" columns="5">
22886 <column alignment="center" valignment="top" width="0">
22887 <column alignment="center" valignment="top" width="0">
22888 <column alignment="center" valignment="top" width="0">
22889 <column alignment="center" valignment="top" width="0">
22890 <column alignment="center" valignment="top" width="0">
22892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22895 \begin_layout Plain Layout
22901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22904 \begin_layout Plain Layout
22910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22913 \begin_layout Plain Layout
22919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22922 \begin_layout Plain Layout
22928 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22931 \begin_layout Plain Layout
22939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22942 \begin_layout Plain Layout
22948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22951 \begin_layout Plain Layout
22957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22960 \begin_layout Plain Layout
22966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22969 \begin_layout Plain Layout
22975 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22978 \begin_layout Plain Layout
22986 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22989 \begin_layout Plain Layout
22995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22998 \begin_layout Plain Layout
23004 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23007 \begin_layout Plain Layout
23013 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23016 \begin_layout Plain Layout
23022 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23025 \begin_layout Plain Layout
23033 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23036 \begin_layout Plain Layout
23042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23045 \begin_layout Plain Layout
23051 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23054 \begin_layout Plain Layout
23060 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23063 \begin_layout Plain Layout
23069 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23072 \begin_layout Plain Layout
23091 \begin_layout Standard
23095 \begin_layout Plain Layout
23107 \begin_layout Standard
23111 \begin_layout Plain Layout
23115 sidecaptionvpos{figure}{c}
23121 \begin_inset Float figure
23126 \begin_layout Plain Layout
23127 \begin_inset Graphics
23128 filename clipart/escher-lsd.eps
23130 scaleBeforeRotation
23137 \begin_layout Plain Layout
23138 \begin_inset Caption
23140 \begin_layout Plain Layout
23141 \begin_inset CommandInset label
23143 name "fig:cap-beside-fig-2"
23147 This is a vertically centered caption beside a figure.
23160 \begin_layout Standard
23164 \begin_layout Plain Layout
23176 \begin_layout Standard
23180 \begin_layout Plain Layout
23190 \begin_inset Note Note
23193 \begin_layout Plain Layout
23194 The following will be displayed when the LaTeX-package
23206 \begin_layout Standard
23207 You need to install the LaTeX-package
23211 to see the following part of this section in the output.
23214 \begin_layout Standard
23218 \begin_layout Plain Layout
23230 \begin_layout Section
23235 \begin_layout Plain Layout
23236 Floats ! Float Lists
23244 \begin_layout Standard
23245 Similar to the the table of contents where the sections of the document
23246 are listed, there are listings for all float types, like the figures of
23248 You can insert them via the
23250 Insert\SpecialChar \menuseparator
23252 \begin_inset space ~
23256 \begin_inset space ~
23264 \begin_layout Standard
23265 The list entries are the float captions or its short title, the float number,
23266 and the page number where they appear in the document.
23269 \begin_layout Standard
23270 You can find the list of figures and tables at the end of this document.
23273 \begin_layout Chapter
23277 \begin_layout Section
23282 \begin_layout Plain Layout
23291 \begin_layout Standard
23292 Notes are inserted with the toolbar button
23293 \begin_inset Graphics
23294 filename ../images/note-insert.png
23296 scaleBeforeRotation
23302 Insert\SpecialChar \menuseparator
23306 There are three types of notes:
23309 \begin_layout Description
23311 \begin_inset space ~
23314 Note This note type is for internal notes that won't appear in the output.
23315 Its note-box looks like this:
23316 \begin_inset Newline newline
23320 \begin_inset Newline newline
23324 \begin_inset Graphics
23325 filename clipart/LyXNoteImageQt4.png
23328 scaleBeforeRotation
23333 \begin_inset Note Note
23336 \begin_layout Plain Layout
23337 This is text in a note box that doesn't appear in the output.
23345 \begin_layout Description
23346 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
23347 ent, when you export the document to LaTeX via the menu
23349 File\SpecialChar \menuseparator
23350 Export\SpecialChar \menuseparator
23351 LaTeX (pdflatex) / (plain)
23354 Its note-box looks like this:
23355 \begin_inset Newline newline
23359 \begin_inset Newline newline
23363 \begin_inset Graphics
23364 filename clipart/CommentNoteImageQt4.png
23367 scaleBeforeRotation
23372 \begin_inset Note Comment
23375 \begin_layout Plain Layout
23376 This is text in a note box that only appears as comment in LaTeX-files.
23384 \begin_layout Description
23386 \begin_inset space ~
23389 Out This note will appear in the output as grey text.
23390 Its note-box looks like this:
23391 \begin_inset Newline newline
23395 \begin_inset Newline newline
23399 \begin_inset Graphics
23400 filename clipart/GreyedOutNoteImageQt4.png
23403 scaleBeforeRotation
23408 \begin_inset Newline newline
23415 \begin_layout Plain Layout
23419 renewenvironment{lyxgreyedout}
23422 \begin_layout Plain Layout
23426 textcolor[gray]{0.8}
23436 \begin_inset Note Greyedout
23439 \begin_layout Plain Layout
23444 \begin_layout Plain Layout
23445 This is an example footnote within a greyed out note.
23450 of a comment that appears in the output as grey text.
23459 \begin_layout Plain Layout
23463 renewenvironment{lyxgreyedout}
23466 \begin_layout Plain Layout
23480 \begin_inset Note Note
23483 \begin_layout Plain Layout
23484 The greyed out note is here redefined to show it with the original LyX definitio
23485 n because greyed out notes are redefined in the preamble of this document,
23486 as described below, to have blue text.
23492 \begin_inset Newline newline
23496 \begin_inset Newline newline
23499 As you can see in the example, the first line of greyed out notes is a bit
23500 indented and greyed out notes can have footnotes.
23503 \begin_layout Standard
23504 \begin_inset VSpace bigskip
23507 When you use the toolbar button
23508 \begin_inset Graphics
23509 filename ../images/note-insert.png
23511 scaleBeforeRotation
23518 \begin_inset space ~
23524 You can switch between the five note types by right-clicking on the note-box.
23529 If you want to turn existing text into a note, mark it and click on the
23543 To change a note to text, press the backspace key when the cursor is in
23544 the first position of a note, or press the deletey key when the cursor
23545 is in the very last position of the note, respectively.
23548 \begin_layout Standard
23549 \begin_inset VSpace bigskip
23552 You can change the text color of the greyed out notes in the preamble with
23553 the following command:
23556 \begin_layout Standard
23561 renewenvironment{lyxgreyedout}
23562 \begin_inset Newline newline
23569 \begin_layout Plain Layout
23587 \begin_layout Standard
23588 The available colors and the method to define own colors is explained in
23590 \begin_inset space ~
23594 \begin_inset CommandInset ref
23596 reference "sec:Colored-Tables"
23603 \begin_layout Standard
23604 Notes that appear in blue in this document are set using greyed out notes
23608 \begin_layout Section
23610 \begin_inset CommandInset label
23612 name "sec:Footnotes"
23620 \begin_layout Plain Layout
23630 \begin_layout Plain Layout
23639 \begin_layout Standard
23640 Footnotes can be inserted using the toolbar button
23641 \begin_inset Graphics
23642 filename ../images/footnote-insert.png
23644 scaleBeforeRotation
23650 Insert\SpecialChar \menuseparator
23662 then the following footnote-box:
23663 \begin_inset Graphics
23664 filename clipart/footnoteQt4.png
23666 scaleBeforeRotation
23674 where you can enter the footnote text.
23675 If you want to turn existing text into a footnote, mark it and click on
23697 to text, press the Backspace key when the cursor is in the first position
23706 , or press the Delete key when the cursor is in the very last position of
23718 \begin_layout Standard
23719 Here is an example footnote:
23727 \begin_layout Plain Layout
23728 \begin_inset CommandInset label
23730 name "foot:This-is-an"
23734 This is an example footnote.
23747 \begin_layout Plain Layout
23751 newcounter{MyRepeatFoot}
23754 \begin_layout Plain Layout
23758 setcounter{MyRepeatFoot}{
23768 \begin_layout Standard
23769 The footnote will appear in the output as a superscript number at the text
23770 position where the footnote box is placed.
23771 The footnote text is placed at the bottom of the current page.
23772 The footnote number is calculated by LaTeX, the numbers are consecutive.
23773 It depends on your document-class, if the footnote number is reset for
23777 \begin_layout Standard
23778 Footnotes can be referenced like floats: Insert a label into the footnote
23779 and cross-reference this label in the text as described in section
23780 \begin_inset space ~
23784 \begin_inset CommandInset ref
23786 reference "sec:Referencing-Floats"
23791 \begin_inset Newline newline
23794 This is a cross-reference of Footnote
23795 \begin_inset space ~
23799 \begin_inset CommandInset ref
23801 reference "foot:This-is-an"
23808 \begin_layout Standard
23809 \begin_inset VSpace defskip
23812 To use footnotes within tables, you have to use minipages, see section
23813 \begin_inset space ~
23817 \begin_inset CommandInset ref
23819 reference "sec:Minipages"
23824 Footnotes within longtables are described in section
23825 \begin_inset space ~
23829 \begin_inset CommandInset ref
23831 reference "sub:Footnotes-in-Longtables"
23838 \begin_layout Standard
23839 \begin_inset VSpace defskip
23842 To create only a mark for a footnote, use the command
23846 footnotemark[number]
23849 This is used when you have the same annotation several times in a text
23850 but doesn't want to print the footnote text every time.
23851 \begin_inset Newline newline
23854 As you don't know the number of the repeating footnote while you are writing
23855 the text, you have to store its number.
23856 For the following footnote mark example, these commands were inserted in
23857 TeX-Code behind Footnote
23858 \begin_inset space ~
23862 \begin_inset CommandInset ref
23864 reference "foot:This-is-an"
23868 to store the footnote number:
23871 \begin_layout Standard
23876 newcounter{MyRepeatFoot}
23877 \begin_inset Newline newline
23882 setcounter{MyRepeatFoot}{
23887 \begin_layout Standard
23888 The footnote mark was then created with this command:
23891 \begin_layout Standard
23901 \begin_layout Standard
23902 Here is an example footnote mark:
23910 \begin_layout Plain Layout
23924 \begin_layout Subsection
23926 \begin_inset CommandInset label
23928 name "sub:Footnote-Numbering"
23936 \begin_layout Plain Layout
23937 Footnotes ! Numbering
23945 \begin_layout Standard
23946 To reset the footnote number back to 1 after each section
23948 , add this command to your document preamble:
23951 \begin_layout Standard
23956 @addtoreset{footnote}{section}
23959 \begin_layout Standard
23960 \begin_inset VSpace bigskip
23963 The following preamble command changes the footnote numbering style to small
23967 \begin_layout Standard
23979 \begin_layout Standard
23983 \begin_layout Plain Layout
23996 This is a footnote with roman numbering:
24000 \begin_layout Plain Layout
24001 This is an example footnote with roman numbering.
24009 \begin_layout Standard
24010 To change the numbering style to capital roman numerals replace in the command
24025 \begin_inset Quotes eld
24029 \begin_inset Quotes erd
24032 footnotes with capital or small Latin letters use
24046 \begin_inset Quotes eld
24050 \begin_inset Quotes erd
24053 footnotes with symbols use
24062 \begin_layout Standard
24063 \begin_inset Note Greyedout
24066 \begin_layout Plain Layout
24071 You can only number 26 footnotes with Latin letters, because this numbering
24072 is limited to single letters.
24078 \begin_inset Newline newline
24082 \begin_inset Note Greyedout
24085 \begin_layout Plain Layout
24090 You can only number 9 footnotes with symbols.
24098 \begin_layout Standard
24099 To return to the default numbering style when you changed to another one,
24112 in the command above.
24116 \begin_layout Plain Layout
24132 \begin_layout Standard
24133 \begin_inset VSpace bigskip
24139 \begin_layout Standard
24140 If you want to have footnotes numbered in the scheme
24141 \begin_inset Quotes eld
24145 \begin_inset Quotes erd
24148 , add the following command to your document preamble:
24151 \begin_layout Standard
24156 numberwithin{footnote}{chapter}
24159 \begin_layout Standard
24160 To be able to use the command
24169 \begin_inset space ~
24174 in the document settings the option
24177 \begin_inset space ~
24181 \begin_inset space ~
24185 \begin_inset space ~
24193 \begin_layout Standard
24197 \begin_layout Plain Layout
24201 numberwithin{footnote}{chapter}
24206 This is another example footnote:
24212 \begin_layout Plain Layout
24213 This is a footnote numbered in the scheme
24214 \begin_inset Quotes eld
24218 \begin_inset Quotes erd
24232 \begin_layout Plain Layout
24248 \begin_layout Standard
24249 \begin_inset Note Greyedout
24252 \begin_layout Plain Layout
24263 always prints out the footnote number as arabic number; previous redefinitions
24264 to get non-arabic numbers are overwritten.
24272 \begin_layout Standard
24273 So to get for example the scheme
24274 \begin_inset Quotes eld
24280 \begin_inset Quotes erd
24283 , use this command instead of
24292 \begin_layout Standard
24306 \begin_layout Subsection
24311 \begin_layout Plain Layout
24312 Footnotes ! Placement
24320 \begin_layout Standard
24321 If you have several footnotes in one page, they appear without vertical
24322 space between them at the bottom of the page.
24323 To make them better readable you can e.
24324 \begin_inset space \thinspace{}
24328 \begin_inset space ~
24332 \begin_inset space \thinspace{}
24335 mm space with the following preamble command:
24338 \begin_layout Standard
24348 \begin_inset Newline newline
24362 \begin_layout Standard
24363 \begin_inset VSpace bigskip
24366 In a two-column document the footnotes appear at the bottom of every column,
24368 \begin_inset space ~
24372 \begin_inset CommandInset ref
24374 reference "fig:Standard-footnote-placement"
24379 If the footnotes should only appear at the bottom of the right column,
24381 \begin_inset space ~
24385 \begin_inset CommandInset ref
24387 reference "fig:Footnote-placement-in"
24391 , use the LaTeX-package
24399 \begin_layout Plain Layout
24400 LaTeX-packages ! ftnright
24405 with this command in the document preamble:
24408 \begin_layout Standard
24413 usepackage{ftnright}
24416 \begin_layout Standard
24417 \begin_inset Float figure
24423 \begin_layout Plain Layout
24427 \begin_layout Plain Layout
24437 \begin_inset Graphics
24438 filename clipart/without_fntright.pdf
24440 scaleBeforeRotation
24448 \begin_layout Plain Layout
24458 \begin_layout Plain Layout
24459 \begin_inset Caption
24461 \begin_layout Plain Layout
24462 \begin_inset CommandInset label
24464 name "fig:Standard-footnote-placement"
24468 Standard footnote placement in two-column documents.
24481 \begin_layout Standard
24482 \begin_inset Float figure
24488 \begin_layout Plain Layout
24492 \begin_layout Plain Layout
24502 \begin_inset Graphics
24503 filename clipart/with_fntright.pdf
24505 scaleBeforeRotation
24513 \begin_layout Plain Layout
24523 \begin_layout Plain Layout
24524 \begin_inset Caption
24526 \begin_layout Plain Layout
24527 \begin_inset CommandInset label
24529 name "fig:Footnote-placement-in"
24533 Footnote placement in two-column documents when the LaTeX-package
24550 \begin_layout Standard
24551 \begin_inset VSpace bigskip
24554 In some scientific literature it is usual to collect the footnotes and print
24555 them in a separate paragraph at the the end of a section, like in Figure
24556 \begin_inset space ~
24560 \begin_inset CommandInset ref
24562 reference "fig:Endnotes----footnotes"
24567 They are then so called
24568 \begin_inset Quotes eld
24572 \begin_inset Quotes erd
24579 \begin_layout Plain Layout
24585 To use endnotes instead of footnotes in your document, load the LaTeX-package
24594 \begin_layout Plain Layout
24595 LaTeX-packages ! endnotes
24600 with the document preamble lines
24603 \begin_layout Standard
24608 usepackage{endnotes}
24609 \begin_inset Newline newline
24621 \begin_layout Standard
24622 To insert the collected footnotes, insert the command
24625 \begin_layout Standard
24633 \begin_layout Standard
24634 in TeX-Code at the the end of a section or chapter.
24637 \begin_layout Standard
24638 \begin_inset Float figure
24643 \begin_layout Plain Layout
24648 \begin_layout Plain Layout
24658 \begin_inset Graphics
24659 filename clipart/endnotes.pdf
24660 scaleBeforeRotation
24668 \begin_layout Plain Layout
24678 \begin_layout Plain Layout
24679 \begin_inset Caption
24681 \begin_layout Plain Layout
24682 \begin_inset CommandInset label
24684 name "fig:Endnotes----footnotes"
24688 Endnotes -- footnotes are printed in a separate paragraph at the end of
24689 sections or chapters.
24702 \begin_layout Standard
24703 \begin_inset VSpace medskip
24706 The paragraph heading for the endnotes isn't automatically translated into
24707 the document language, this must be done manually.
24708 The following preamble command translate the default English name
24709 \begin_inset Quotes eld
24713 \begin_inset Quotes erd
24716 to the German translation
24717 \begin_inset Quotes eld
24721 \begin_inset Quotes erd
24727 \begin_layout Standard
24734 notesname}{Anmerkungen}
24737 \begin_layout Standard
24738 \begin_inset VSpace medskip
24741 The numbering of endnotes can be changed like the footnote numbering as
24742 described in section
24743 \begin_inset space ~
24747 \begin_inset CommandInset ref
24749 reference "sub:Footnote-Numbering"
24753 ; just replace the command
24766 To reset the endnote number use the command
24772 as described in section
24773 \begin_inset space ~
24777 \begin_inset CommandInset ref
24779 reference "sub:Footnote-Numbering"
24783 and replace the command parameter
24794 \begin_layout Standard
24795 To create only a mark for an endnote, use the command
24799 endnotemark[number]
24801 similar to the command
24807 , described in section
24808 \begin_inset space ~
24812 \begin_inset CommandInset ref
24814 reference "sec:Footnotes"
24821 \begin_layout Standard
24822 \begin_inset VSpace bigskip
24825 Footnotes can also be placed in the page margin and the footnote text alignment
24826 can be changed, see the LaTeX-package
24834 \begin_layout Plain Layout
24835 LaTeX-packages ! footmisc
24841 \begin_inset CommandInset citation
24847 for more information about this.
24850 \begin_layout Standard
24851 For various further footnote formatting issues have a look at LaTeX-books,
24853 \begin_inset CommandInset citation
24855 key "latexcompanion,latexguide,latexbook"
24862 \begin_layout Section
24867 \begin_layout Plain Layout
24868 Notes ! Margin Notes
24876 \begin_layout Standard
24877 Margin notes look and behave in LyX like footnotes.
24878 They are inserted via the menu
24880 Insert\SpecialChar \menuseparator
24882 \begin_inset space ~
24887 or the toolbar button
24888 \begin_inset Graphics
24889 filename ../images/marginalnote-insert.png
24891 scaleBeforeRotation
24906 \begin_inset Quotes eld
24910 \begin_inset Quotes erd
24913 appears where you can enter the text of the margin note.
24916 \begin_layout Standard
24917 At the side is an example margin note.
24922 \begin_inset Marginal
24925 \begin_layout Plain Layout
24926 This is a margin note.
24934 \begin_layout Standard
24935 Margin notes appear at the right side in single-sided documents.
24936 In double-sided documents they appear in the outer margin -- left on even
24937 pages, right on odd pages.
24938 The text of margin notes is aligned opposite to the outer margin -- right-align
24939 ed when the note appears in the left margin.
24940 The first line of the margin note is placed at the position of the text
24941 line where it is inserted in the document.
24944 \begin_layout Standard
24945 \begin_inset VSpace bigskip
24948 To place the margin note in the inner margin, add the command
24951 \begin_layout Standard
24959 \begin_layout Standard
24960 in TeX-Code before a margin note.
24961 The new placement is valid for all following margin notes.
24966 \begin_layout Plain Layout
24976 \begin_inset Marginal
24979 \begin_layout Plain Layout
24980 This is a margin note in the inner margin.
24988 \begin_inset Newline newline
24994 \begin_inset Note Greyedout
24997 \begin_layout Plain Layout
25002 There is often not enough space in the inner margin so that the notes are
25003 not correctly displayed in the output.
25011 \begin_layout Standard
25012 To return to the default placement insert the command
25015 \begin_layout Standard
25023 \begin_layout Standard
25028 \begin_layout Plain Layout
25038 \begin_inset Note Greyedout
25041 \begin_layout Plain Layout
25046 The command is ignored when it is within a paragraph where also the command
25061 \begin_layout Standard
25062 \begin_inset VSpace bigskip
25069 \begin_inset Marginal
25072 \begin_layout Plain Layout
25073 AVeryLongMarginParWord that isn't hyphenated.
25081 Similar to the case described in section
25082 \begin_inset space ~
25086 \begin_inset CommandInset ref
25088 reference "sub:Multiple-Lines-in"
25092 , long words cannot be hyphenated when they are the first word in a margin
25094 To avoid this, insert 0
25095 \begin_inset space \thinspace{}
25098 pt horizontal space before the word
25103 \begin_inset Marginal
25106 \begin_layout Plain Layout
25107 \begin_inset space \hspace*{}
25111 AVeryLongMarginParWord that is hyphenated.
25119 \begin_layout Standard
25120 \begin_inset VSpace bigskip
25126 \begin_layout Standard
25127 \begin_inset Note Greyedout
25130 \begin_layout Plain Layout
25135 Margin notes can normally not be used inside tables, floats, and footnotes.
25143 \begin_layout Standard
25144 \begin_inset VSpace bigskip
25150 \begin_layout Standard
25154 \begin_layout Plain Layout
25164 \begin_inset Note Note
25167 \begin_layout Plain Layout
25168 The following section will only be displayed when the LaTeX-package
25180 \begin_layout Standard
25181 This restriction can be evaded by using the LaTeX-package
25189 \begin_layout Plain Layout
25190 LaTeX-packages ! marginnote
25196 By adding these two lines to your document preamble, the command used by
25197 LyX for margin notes is redefined to use the command provided by the
25204 \begin_layout Standard
25209 usepackage{marginnote}
25210 \begin_inset Newline newline
25222 \begin_layout Standard
25223 This is also used in this document because
25227 has another useful feature: You can set a vertical offset for the note.
25228 This is often needed when too many margin notes are too close together
25229 or for a better page layout.
25230 The offset is set in LyX as TeX-Code directly behind the margin note in
25234 \begin_layout Standard
25240 \begin_layout Standard
25241 where the offset is a length with one of the units listed in Table
25242 \begin_inset space ~
25246 \begin_inset CommandInset ref
25248 reference "tab:Units"
25253 A negative value shifts the note up, a positive value shifts it down.
25257 For example the margin note beside this text line is shifted up 1.5
25258 \begin_inset space \thinspace{}
25261 cm with the TeX-Code-command
25262 \begin_inset Quotes eld
25272 \begin_inset Quotes erd
25276 \begin_inset Marginal
25279 \begin_layout Plain Layout
25280 This margin note is shifted up 1.5
25281 \begin_inset space \thinspace{}
25284 cm from its original position.
25296 \begin_layout Plain Layout
25306 \begin_layout Standard
25307 \begin_inset VSpace medskip
25314 you can also change the alignment of the text in the margin note.
25315 For example the commands
25318 \begin_layout Standard
25325 raggedleftmarginnote}{
25328 \begin_inset Newline newline
25335 raggedrightmarginnote}{
25340 \begin_layout Standard
25341 set the alignment to centered.
25346 raggedleftmarginnote
25348 denotes margin notes that appear at the left side.
25355 \begin_layout Plain Layout
25361 raggedleftmarginnote}{
25366 \begin_layout Plain Layout
25372 raggedrightmarginnote}{
25380 \begin_inset Marginal
25383 \begin_layout Plain Layout
25384 The text of this margin note is centered.
25395 \begin_layout Standard
25402 raggedleftmarginnote}{
25405 \begin_inset Newline newline
25412 raggedrightmarginnote}{
25421 \begin_layout Plain Layout
25427 raggedleftmarginnote}{
25432 \begin_layout Plain Layout
25438 raggedrightmarginnote}{
25448 \begin_layout Standard
25449 \begin_inset VSpace medskip
25452 For the other features of
25456 we refer to its documentation
25457 \begin_inset CommandInset citation
25466 \begin_layout Standard
25467 \begin_inset VSpace bigskip
25470 You can adjust the layout of margin notes by changing its definition.
25471 To create for example a header for all margin notes with the underlined,
25472 sans-serif, and bold header text
25473 \begin_inset Quotes eld
25485 \begin_inset Quotes erd
25488 , add this to your document preamble:
25491 \begin_layout Standard
25501 \begin_inset Newline newline
25511 \begin_inset Newline newline
25518 \begin_layout Plain Layout
25535 underbar{Attention!}}}%
25536 \begin_inset Newline newline
25543 \begin_layout Plain Layout
25561 \begin_layout Standard
25568 \begin_layout Plain Layout
25579 \begin_layout Plain Layout
25590 \begin_layout Plain Layout
25598 underbar{Attention!}}}%
25601 \begin_layout Plain Layout
25615 \begin_inset Marginal
25618 \begin_layout Plain Layout
25619 This is a margin note with a defined heading.
25631 \begin_layout Plain Layout
25645 \begin_layout Plain Layout
25662 \begin_inset Note Note
25665 \begin_layout Plain Layout
25666 The margin note format is changed only for this example.
25674 \begin_layout Standard
25678 \begin_layout Plain Layout
25688 \begin_inset Note Note
25691 \begin_layout Plain Layout
25692 The following will be displayed when the LaTeX-package
25704 \begin_layout Standard
25705 You need to install the LaTeX-package
25709 to see the following part of this section in the output.
25712 \begin_layout Standard
25716 \begin_layout Plain Layout
25728 \begin_layout Chapter
25732 \begin_layout Section
25737 \begin_layout Plain Layout
25738 Boxes ! Introduction
25746 \begin_layout Standard
25747 Boxes are used to format a block of text.
25748 Boxes can be used to write documents with multiple languages, see section
25749 \begin_inset space ~
25753 \begin_inset CommandInset ref
25755 reference "sec:Minipages"
25759 , to frame texts, see section
25760 \begin_inset space ~
25764 \begin_inset CommandInset ref
25766 reference "sec:Decoration"
25770 , to prevent words to be hyphenated, see section
25771 \begin_inset space ~
25775 \begin_inset CommandInset ref
25777 reference "sec:Prevent-Hyphenation"
25781 , to align text, see section
25782 \begin_inset space ~
25786 \begin_inset CommandInset ref
25788 reference "sub:Vertical-Alignment"
25792 , or to set the background color of texts, see section
25793 \begin_inset space ~
25797 \begin_inset CommandInset ref
25799 reference "sec:Colored-Boxes"
25806 \begin_layout Standard
25807 Boxes can be inserted with the menu
25809 Insert\SpecialChar \menuseparator
25812 or the toolbar button
25813 \begin_inset Graphics
25814 filename ../images/box-insert.png
25816 scaleBeforeRotation
25821 A grey box with the label
25826 \begin_inset Graphics
25827 filename clipart/BoxInsetDefaultQt4.png
25829 scaleBeforeRotation
25834 The box type can be specified by right-clicking on the box.
25835 The appearing box dialog offers the
25838 \begin_inset space ~
25856 is the default for new boxes and is explained in section
25857 \begin_inset space ~
25861 \begin_inset CommandInset ref
25863 reference "sec:Minipages"
25871 is described in section
25872 \begin_inset space ~
25876 \begin_inset CommandInset ref
25878 reference "sec:Parboxes"
25885 \begin_layout Standard
25886 Boxes aren't numbered and can therefore not be referenced like floats or
25890 \begin_layout Standard
25891 \begin_inset Note Greyedout
25894 \begin_layout Plain Layout
25899 Boxes must not be the item in an
25915 \begin_layout Standard
25916 \begin_inset Note Greyedout
25919 \begin_layout Plain Layout
25924 For an unknown reason you can only set the
25927 \begin_inset space ~
25936 when you use a framed box.
25940 \begin_inset space ~
25945 type and without frames are explained in section
25946 \begin_inset space ~
25950 \begin_inset CommandInset ref
25952 reference "sec:Prevent-Hyphenation"
25964 \begin_layout Section
25966 \begin_inset CommandInset label
25968 name "sec:Box-Dialog"
25976 \begin_layout Plain Layout
25985 \begin_layout Subsection
25990 \begin_layout Plain Layout
25999 \begin_layout Standard
26000 In the box dialog you can adjust the box geometry in the fields
26009 The available units for the geometry are explained in Table
26010 \begin_inset space ~
26014 \begin_inset CommandInset ref
26016 reference "tab:Units"
26025 offers the following additional sizes:
26028 \begin_layout Description
26029 Depth This is the plain text
26030 \begin_inset Quotes eld
26034 \begin_inset Quotes erd
26038 It ignores the total depth when there are multiple text lines in the box:
26039 \begin_inset Newline newline
26043 \begin_inset Newline newline
26047 \begin_inset Newline newline
26051 \begin_inset Box Boxed
26060 height_special "depth"
26063 \begin_layout Plain Layout
26065 Box height set to 1
26066 \begin_inset space \thinspace{}
26075 \begin_inset Newline newline
26079 \begin_inset Newline newline
26085 \begin_layout Description
26086 Height This is the heigth of the text that is inside the box.
26088 \begin_inset space \thinspace{}
26092 \begin_inset space ~
26095 2 for this size will set the box heigth to 2 times the text height:
26096 \begin_inset Box Boxed
26105 height_special "height"
26108 \begin_layout Plain Layout
26110 Box height set to 2
26111 \begin_inset space \thinspace{}
26122 \begin_layout Description
26124 \begin_inset space ~
26127 Height This is the Height
26128 \begin_inset space \thinspace{}
26132 \begin_inset space \thinspace{}
26136 \begin_inset Box Boxed
26145 height_special "totalheight"
26148 \begin_layout Plain Layout
26150 Box height set to 1
26151 \begin_inset space \thinspace{}
26155 \begin_inset space ~
26166 \begin_layout Description
26167 Width This sets the width of the box as heigth:
26168 \begin_inset Box Boxed
26177 height_special "width"
26180 \begin_layout Plain Layout
26182 Box height set to 1
26183 \begin_inset space \thinspace{}
26194 \begin_layout Subsection
26199 \begin_layout Plain Layout
26208 \begin_layout Standard
26209 When you have chosen an
26212 \begin_inset space ~
26217 , the vertical box alignment can be:
26220 \begin_layout Description
26221 Top This is an example text line.
26223 \begin_inset Box Boxed
26232 height_special "totalheight"
26235 \begin_layout Plain Layout
26237 This box is top-aligned.
26242 This is an example text line.
26245 \begin_layout Description
26246 Middle This is an example text line.
26248 \begin_inset Box Boxed
26257 height_special "totalheight"
26260 \begin_layout Plain Layout
26262 This box is middle-aligned.
26267 This is an example text line.
26270 \begin_layout Description
26271 Bottom This is an example text line.
26273 \begin_inset Box Boxed
26282 height_special "totalheight"
26285 \begin_layout Plain Layout
26287 This box is bottom-aligned.
26292 This is an example text line.
26295 \begin_layout Standard
26296 \begin_inset Note Greyedout
26299 \begin_layout Plain Layout
26304 The vertical box aligment can be lost in the output when you have two boxes
26305 in a line and one has e.
26306 \begin_inset space \thinspace{}
26310 \begin_inset space ~
26313 a shadow and the other one not.
26321 \begin_layout Standard
26322 The horizontal box alignment can be set via LyX's paragraph dialog when
26323 you set the box into its own paragraph.
26326 \begin_layout Standard
26327 \begin_inset VSpace bigskip
26330 When you have chosen an
26333 \begin_inset space ~
26338 , the box content can be vertical aligned to:
26341 \begin_layout Description
26342 top This is an example text line.
26344 \begin_inset Box Boxed
26353 height_special "totalheight"
26356 \begin_layout Plain Layout
26358 This box text is top-aligned.
26363 This is an example text line.
26366 \begin_layout Description
26367 middle This is an example text line.
26369 \begin_inset Box Boxed
26378 height_special "totalheight"
26381 \begin_layout Plain Layout
26383 This box text is middle-aligned.
26388 This is an example text line.
26391 \begin_layout Description
26392 bottom This is an example text line.
26394 \begin_inset Box Boxed
26403 height_special "totalheight"
26406 \begin_layout Plain Layout
26408 This box text is bottom-aligned.
26413 This is an example text line.
26416 \begin_layout Description
26417 stretch This is an example text line.
26419 \begin_inset Box Boxed
26428 height_special "totalheight"
26431 \begin_layout Plain Layout
26436 \begin_layout Plain Layout
26441 \begin_layout Plain Layout
26448 This is an example text line.
26451 \begin_layout Standard
26452 To stretch the box content, it must consist of more than one paragraph.
26453 In the example above every text line is in an own paragraph.
26456 \begin_layout Standard
26457 \begin_inset VSpace bigskip
26460 To align the box content horizontally you can use LyX's paragraph dialog
26461 when you have chosen an
26464 \begin_inset space ~
26472 \begin_layout Standard
26474 \begin_inset Box Boxed
26483 height_special "totalheight"
26486 \begin_layout Plain Layout
26491 \begin_layout Plain Layout
26496 \begin_layout Plain Layout
26506 \begin_layout Standard
26507 If you haven't set an
26510 \begin_inset space ~
26515 , you can align the box content horizontally in the box dialog.
26518 \begin_layout Standard
26520 \begin_inset Box Boxed
26529 height_special "totalheight"
26532 \begin_layout Plain Layout
26534 This box text is horizontally stretched.
26542 \begin_layout Subsection
26544 \begin_inset CommandInset label
26546 name "sec:Decoration"
26554 \begin_layout Plain Layout
26563 \begin_layout Standard
26564 The type of the box can be specified in the box-dialog in the drop-down
26570 The following types are possible:
26573 \begin_layout Description
26575 \begin_inset space ~
26579 \begin_inset space ~
26582 frame This draws a rectangle frame around the box.
26583 The frame line thickness has the size of
26591 \begin_inset Box Boxed
26600 height_special "totalheight"
26603 \begin_layout Plain Layout
26613 \begin_layout Description
26615 \begin_inset space ~
26619 \begin_inset space ~
26622 break When you use the decoration
26624 simple rectangular frame
26626 and no inner box, you can allow page breaks within a box.
26627 Note that then, in contrary to other framed boxes, the frame always uses
26628 the whole column width, the box is set as its own paragraph, and
26640 has no effect on this box type.
26641 The frame line thickness has the size of
26649 \begin_inset Box Framed
26658 height_special "totalheight"
26661 \begin_layout Plain Layout
26662 Allow page break box
26670 \begin_layout Description
26672 \begin_inset space ~
26676 \begin_inset space ~
26679 thin This draws an oval frame around the box.
26680 The frame line thickness has the size 0.4
26681 \begin_inset space \thinspace{}
26686 \begin_inset Box ovalbox
26695 height_special "totalheight"
26698 \begin_layout Plain Layout
26708 \begin_layout Description
26710 \begin_inset space ~
26714 \begin_inset space ~
26717 thick This draws an oval frame around the box.
26718 The frame line thickness has the size 0.8
26719 \begin_inset space \thinspace{}
26724 \begin_inset Box Ovalbox
26733 height_special "totalheight"
26736 \begin_layout Plain Layout
26746 \begin_layout Description
26748 \begin_inset space ~
26751 shadow This draws a rectangle frame with a shadow around the box.
26752 The frame line thickness has the size of
26758 , the shadow has a width of 4
26759 \begin_inset space \thinspace{}
26764 \begin_inset Box Shadowbox
26773 height_special "totalheight"
26776 \begin_layout Plain Layout
26786 \begin_layout Description
26788 \begin_inset space ~
26791 background This draws a box with red background color.
26792 In contrary to colored boxes
26796 \begin_layout Plain Layout
26798 \begin_inset space \thinspace{}
26802 \begin_inset CommandInset ref
26804 reference "sec:Colored-Boxes"
26813 , it always uses the whole column width and the box is set as its own paragraph.
26815 \begin_inset Box Shaded
26824 height_special "totalheight"
26827 \begin_layout Plain Layout
26828 Shaded background box
26836 \begin_layout Description
26838 \begin_inset space ~
26842 \begin_inset space ~
26845 frame This draws a double-line rectangle frame around the box.
26846 The line thickness of the inner frame is 0.75
26847 \begin_inset space \thinspace{}
26856 , the thickness of the outer frame is 1.5
26857 \begin_inset space \thinspace{}
26867 The distance between the lines is 1.5
26868 \begin_inset space \thinspace{}
26878 \begin_inset space \thinspace{}
26882 \begin_inset space \thinspace{}
26886 \begin_inset space \thinspace{}
26891 \begin_inset Box Doublebox
26900 height_special "totalheight"
26903 \begin_layout Plain Layout
26905 Double rectangular box
26913 \begin_layout Standard
26914 \begin_inset VSpace bigskip
26917 LyX's box label will reflect the different frame types.
26918 To be able to use all types, the LaTeX-package
26926 \begin_layout Plain Layout
26927 LaTeX-packages ! fancybox
26935 \begin_layout Section
26940 \begin_layout Plain Layout
26941 Boxes ! Customization
26949 \begin_layout Standard
26950 The default value for the size
26957 \begin_inset space \thinspace{}
26961 It can be changed with the following command in TeX-Code to e.
26962 \begin_inset space \thinspace{}
26966 \begin_inset space ~
26970 \begin_inset space \thinspace{}
26976 \begin_layout Standard
26986 \begin_layout Standard
26990 \begin_layout Plain Layout
27002 \begin_inset Box Boxed
27011 height_special "totalheight"
27014 \begin_layout Plain Layout
27016 Rectangular box with
27023 \begin_inset space \thinspace{}
27027 \begin_inset space \thinspace{}
27031 \begin_inset space \thinspace{}
27043 \begin_layout Plain Layout
27057 \begin_layout Standard
27058 \begin_inset VSpace bigskip
27061 The space between the frame and the box content is for all frame styles
27063 \begin_inset space \thinspace{}
27067 You can change it by setting the length
27074 For example the command
27077 \begin_layout Standard
27087 \begin_layout Standard
27088 sets the value to 10
27089 \begin_inset space \thinspace{}
27092 pt, like for the following box:
27095 \begin_layout Standard
27099 \begin_layout Plain Layout
27111 \begin_inset Box Boxed
27120 height_special "totalheight"
27123 \begin_layout Plain Layout
27125 Rectangular box with
27132 \begin_inset space \thinspace{}
27136 \begin_inset space \thinspace{}
27140 \begin_inset space \thinspace{}
27152 \begin_layout Plain Layout
27166 \begin_layout Standard
27167 \begin_inset VSpace bigskip
27170 The diameter of the round corners of the oval boxes can be set with the
27181 \begin_layout Standard
27189 \begin_layout Standard
27190 sets the diameter to 1
27191 \begin_inset space \thinspace{}
27198 \begin_layout Standard
27206 \begin_layout Standard
27207 sets the diameter to
27210 \begin_inset space \thinspace{}
27214 \begin_inset space \thinspace{}
27217 minimum(width and heigth of box)
27229 \begin_layout Standard
27233 \begin_layout Plain Layout
27243 \begin_inset Box Ovalbox
27252 height_special "totalheight"
27255 \begin_layout Plain Layout
27264 \begin_inset space \thinspace{}
27268 \begin_inset space \thinspace{}
27272 \begin_inset space \thinspace{}
27284 \begin_layout Plain Layout
27296 \begin_layout Standard
27297 \begin_inset VSpace bigskip
27300 The size of the shadow can be adjusted by changing the length
27308 \begin_inset space \thinspace{}
27311 pt for the following box by this command:
27314 \begin_layout Standard
27324 \begin_layout Standard
27328 \begin_layout Plain Layout
27340 \begin_inset Box Shadowbox
27349 height_special "totalheight"
27352 \begin_layout Plain Layout
27361 \begin_inset space \thinspace{}
27365 \begin_inset space \thinspace{}
27369 \begin_inset space \thinspace{}
27381 \begin_layout Plain Layout
27395 \begin_layout Standard
27396 \begin_inset VSpace bigskip
27402 \begin_layout Standard
27403 The default value for the size
27410 \begin_inset space \thinspace{}
27414 The default space between the note content and the frame is 9
27415 \begin_inset space \thinspace{}
27418 pt and can be changed with the value of
27425 For example the frame appearance of the following
27429 is set with the TeX-Code commands
27432 \begin_layout Standard
27440 \begin_inset Newline newline
27450 \begin_layout Standard
27454 \begin_layout Plain Layout
27463 \begin_layout Plain Layout
27475 \begin_inset Box Framed
27484 height_special "totalheight"
27487 \begin_layout Plain Layout
27501 \begin_layout Plain Layout
27510 \begin_layout Plain Layout
27524 \begin_layout Standard
27525 \begin_inset VSpace bigskip
27531 \begin_layout Standard
27536 boxes the default space between the box content and the box border is 3
27537 \begin_inset space \thinspace{}
27540 pt and can be changed with the value of
27547 The default background color red can either be changed locally with the
27552 definecolor{shadebox}
27554 or globally with the menu
27556 Tools\SpecialChar \menuseparator
27557 Preferences\SpecialChar \menuseparator
27558 Colors\SpecialChar \menuseparator
27560 \begin_inset space ~
27572 command is explained in section
27573 \begin_inset space ~
27577 \begin_inset CommandInset ref
27579 reference "sec:Colored-Tables"
27587 \begin_layout Plain Layout
27594 requires the LaTeX-package
27598 in the preamble, see section
27599 \begin_inset space ~
27603 \begin_inset CommandInset ref
27605 reference "sec:Colored-Boxes"
27614 For example the appearance of the following shaded background note is set
27615 with the TeX-Code commands
27618 \begin_layout Standard
27628 \begin_inset Newline newline
27635 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
27638 \begin_layout Standard
27642 \begin_layout Plain Layout
27651 \begin_layout Plain Layout
27655 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
27661 \begin_inset Box Shaded
27670 height_special "totalheight"
27673 \begin_layout Plain Layout
27676 This is yellow text in a
27686 box with dark green background.
27695 \begin_layout Plain Layout
27704 \begin_layout Plain Layout
27708 definecolor{shadecolor}{rgb}{1,0,0}
27716 \begin_layout Standard
27717 \begin_inset VSpace bigskip
27720 Changed lengths and widths are valid for all boxes following the commands
27724 \begin_layout Section
27726 \begin_inset CommandInset label
27728 name "sec:Minipages"
27736 \begin_layout Plain Layout
27745 \begin_layout Standard
27746 Minipages are treated by LaTeX as pages within pages and can therefore for
27747 example have their own footnotes.
27750 \begin_layout Standard
27751 Minipages are useful when you write documents with different languages.
27754 \begin_layout Standard
27755 Below are two example minipages side by side.
27756 Their width is set to 45
27757 \begin_inset space \thinspace{}
27760 col% and they are separated by a horizontal fill, that was inserted via
27763 Insert\SpecialChar \menuseparator
27765 \begin_inset space ~
27768 Formatting\SpecialChar \menuseparator
27770 \begin_inset space ~
27776 \begin_inset Newpage newpage
27782 \begin_layout Standard
27783 \begin_inset Box Frameless
27792 height_special "totalheight"
27795 \begin_layout Plain Layout
27798 Dies ist ein deutscher Text.
27799 Dies ist ein deutscher Text.
27800 Dies ist ein deutscher Text.
27801 Dies ist ein deutscher Text.
27802 Dies ist ein deutscher Text.
27803 Dies ist ein deutscher Text.
27804 Dies ist ein deutscher Text.
27805 Dies ist ein deutscher Text.
27806 Dies ist ein deutscher Text.
27807 Dies ist ein deutscher Text.
27808 Dies ist ein deutscher Text.
27809 Dies ist ein deutscher Text.
27810 Dies ist ein deutscher Text
27814 \begin_layout Plain Layout
27817 Dies ist eine deutsche Fußnote.
27823 Dies ist ein deutscher Text.
27824 Dies ist ein deutscher Text.
27830 \begin_inset space \hfill{}
27834 \begin_inset Box Frameless
27843 height_special "totalheight"
27846 \begin_layout Plain Layout
27847 This is an English Text.
27848 This is an English Text.
27849 This is an English Text.
27850 This is an English Text.
27851 This is an English Text.
27852 This is an English Text.
27853 This is an English Text.
27854 This is an English Text.
27855 This is an English Text.
27856 This is an English Text.
27857 This is an English Text.
27858 This is an English Text.
27859 This is an English Text.
27860 This is an English Text.
27861 This is an English Text.
27862 This is an English Text.
27866 \begin_layout Plain Layout
27867 This is an English footnote.
27872 This is an English Text.
27881 \begin_layout Standard
27882 \begin_inset VSpace bigskip
27885 Another application for minipages are footnotes within tables.
27886 Due to a LaTeX restriction footnotes within tables doesn't appear at the
27887 bottom of the current page.
27888 But when you put the table with the footnote to a minipage, the footnote
27889 will appear at its bottom, numbered with Latin letters.
27890 The footnote number is reset to 1 in every minipage but not outside the
27894 \begin_layout Standard
27895 The footnote of this table doesn't appear:
27896 \begin_inset Tabular
27897 <lyxtabular version="3" rows="3" columns="4">
27899 <column alignment="center" valignment="top" width="0pt">
27900 <column alignment="center" valignment="top" width="0pt">
27901 <column alignment="center" valignment="top" width="0pt">
27902 <column alignment="center" valignment="top" width="0pt">
27904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27907 \begin_layout Plain Layout
27913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27916 \begin_layout Plain Layout
27922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27925 \begin_layout Plain Layout
27930 \begin_layout Plain Layout
27931 This is a footnote within a table.
27941 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27944 \begin_layout Plain Layout
27952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27955 \begin_layout Plain Layout
27961 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27964 \begin_layout Plain Layout
27970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27973 \begin_layout Plain Layout
27979 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27982 \begin_layout Plain Layout
27990 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27993 \begin_layout Plain Layout
27999 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28002 \begin_layout Plain Layout
28008 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28011 \begin_layout Plain Layout
28017 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28020 \begin_layout Plain Layout
28034 \begin_layout Standard
28036 \begin_inset Box Frameless
28045 height_special "totalheight"
28048 \begin_layout Plain Layout
28050 \begin_inset Tabular
28051 <lyxtabular version="3" rows="3" columns="4">
28053 <column alignment="center" valignment="top" width="0pt">
28054 <column alignment="center" valignment="top" width="0pt">
28055 <column alignment="center" valignment="top" width="0pt">
28056 <column alignment="center" valignment="top" width="0pt">
28058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28061 \begin_layout Plain Layout
28067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28070 \begin_layout Plain Layout
28076 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28079 \begin_layout Plain Layout
28084 \begin_layout Plain Layout
28085 This is a footnote within a table.
28095 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28098 \begin_layout Plain Layout
28106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28109 \begin_layout Plain Layout
28115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28118 \begin_layout Plain Layout
28124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28127 \begin_layout Plain Layout
28133 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28136 \begin_layout Plain Layout
28144 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28147 \begin_layout Plain Layout
28153 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28156 \begin_layout Plain Layout
28162 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28165 \begin_layout Plain Layout
28171 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28174 \begin_layout Plain Layout
28193 \begin_layout Standard
28194 \begin_inset VSpace bigskip
28197 The document-wide paragraph settings are ignored within minipages.
28198 That means that there will be no space between paragraphs in minipages
28199 although you set it to e.
28200 \begin_inset space \thinspace{}
28204 \begin_inset space ~
28211 in the document settings.
28214 \begin_layout Standard
28215 Minipages can also be used to set a background color for text parts, see
28217 \begin_inset space ~
28221 \begin_inset CommandInset ref
28223 reference "sub:Color-for-Paragraphs"
28230 \begin_layout Standard
28231 \begin_inset Note Greyedout
28234 \begin_layout Plain Layout
28239 You cannot have floats or margin notes inside minipages but minipages can
28240 be used inside tables, floats, and other boxes.
28248 \begin_layout Section
28250 \begin_inset CommandInset label
28252 name "sec:Parboxes"
28260 \begin_layout Plain Layout
28269 \begin_layout Standard
28270 Parboxes are very similar to minipages with the difference that they cannot
28272 The main difference to minipages is that minipages are in contrary to parboxes
28273 no real boxes but LaTeX-environments.
28276 \begin_layout Standard
28278 \begin_inset Box Frameless
28287 height_special "totalheight"
28290 \begin_layout Plain Layout
28291 This a text within a parbox.
28292 This a text within a parbox.
28295 \begin_layout Plain Layout
28296 This footnote won't appear:
28300 \begin_layout Plain Layout
28301 This footnote is inside a parbox and will therefore not appear.
28314 \begin_layout Section
28315 Boxes for Words and Characters
28319 \begin_layout Plain Layout
28320 Boxes ! for Characters
28328 \begin_layout Subsection
28329 Prevent Hyphenation
28330 \begin_inset CommandInset label
28332 name "sec:Prevent-Hyphenation"
28340 \begin_layout Plain Layout
28341 Boxes ! to Prevent Hyphenation
28349 \begin_layout Standard
28350 You can use a special kind of boxes to prevent words or text to be hyphenated.
28351 \begin_inset Newline newline
28354 Here is an example text:
28357 \begin_layout Standard
28358 This line is an example to show how you can prevent the hyphenation of
28359 \begin_inset Quotes eld
28363 \begin_inset Quotes erd
28369 \begin_layout Standard
28370 To prevent the hyphenation of the word
28371 \begin_inset Quotes eld
28375 \begin_inset Quotes erd
28381 \begin_layout Standard
28389 \begin_layout Standard
28390 in TeX-Code before the word.
28391 Behind the word insert a closing brace
28392 \begin_inset Quotes eld
28400 \begin_inset Quotes erd
28406 \begin_layout Standard
28407 This is the result:
28410 \begin_layout Standard
28411 This line is an example to show how you can prevent the hyphenation of
28415 \begin_layout Plain Layout
28425 \begin_inset Quotes eld
28429 \begin_inset Quotes erd
28436 \begin_layout Plain Layout
28446 \begin_layout Standard
28447 You can alternatively set the command
28448 \begin_inset Quotes eld
28458 \begin_inset Quotes grd
28461 as TeX-Code directly before the word:
28464 \begin_layout Standard
28465 This line is an example to show how you can prevent the hyphenation of
28466 \begin_inset Quotes eld
28473 \begin_layout Plain Layout
28483 \begin_inset Quotes erd
28489 \begin_layout Standard
28490 Of course the word now protrudes over the side margin.
28491 To avoid this, add via the menu
28493 Insert\SpecialChar \menuseparator
28495 \begin_inset space ~
28498 Formatting\SpecialChar \menuseparator
28500 \begin_inset space ~
28508 arg "newline-insert newline"
28511 ) a line break before the word:
28514 \begin_layout Standard
28515 This line is an example to show how you can prevent the hyphenation of
28516 \begin_inset Newline newline
28523 \begin_layout Plain Layout
28533 \begin_inset Quotes eld
28537 \begin_inset Quotes erd
28544 \begin_layout Plain Layout
28554 \begin_layout Subsection
28556 \begin_inset CommandInset label
28558 name "sub:Vertical-Alignment"
28566 \begin_layout Plain Layout
28567 Boxes ! for Vertical Alignment
28576 \begin_layout Plain Layout
28585 \begin_layout Standard
28586 With the help of the command
28592 you can align words, characters or other boxes vertically to the surrounding
28600 is used with the following scheme:
28603 \begin_layout Standard
28608 raisebox{lift}[height][depth]{box content}
28611 \begin_layout Standard
28612 The lift can be a positive value to raise the box or a negative value to
28616 \begin_layout Standard
28617 To align for example the word
28618 \begin_inset Quotes eld
28622 \begin_inset Quotes erd
28625 so that the bottom of the
28626 \begin_inset Quotes eld
28630 \begin_inset Quotes erd
28634 \begin_inset Quotes eld
28638 \begin_inset Quotes erd
28641 is at the baseline, insert the command
28644 \begin_layout Standard
28654 \begin_layout Standard
28655 in TeX-Code before the word.
28656 Behind the word insert a closing brace
28657 \begin_inset Quotes eld
28665 \begin_inset Quotes erd
28669 \begin_inset Newline newline
28672 This is the result:
28675 \begin_layout Standard
28676 This is a text line with the word
28680 \begin_layout Plain Layout
28692 \begin_inset Quotes eld
28696 \begin_inset Quotes erd
28703 \begin_layout Plain Layout
28713 \begin_layout Standard
28714 \begin_inset VSpace bigskip
28717 When you raise or lower characters in a line, the line distance will be
28721 \begin_layout Standard
28722 This is a text line with the word
28726 \begin_layout Plain Layout
28738 \begin_inset Quotes eld
28742 \begin_inset Quotes erd
28749 \begin_layout Plain Layout
28757 \begin_inset Newline newline
28760 This is a text line with the word
28764 \begin_layout Plain Layout
28774 \begin_inset Quotes eld
28778 \begin_inset Quotes erd
28785 \begin_layout Plain Layout
28795 \begin_layout Standard
28796 If you want to prevent this for a certain reason, set the box height to
28801 \begin_layout Standard
28811 \begin_layout Standard
28812 This is a text line with the word
28816 \begin_layout Plain Layout
28828 \begin_inset Quotes eld
28832 \begin_inset Quotes erd
28839 \begin_layout Plain Layout
28847 \begin_inset Newline newline
28850 This is a text line with the word
28854 \begin_layout Plain Layout
28858 raisebox{0.5cm}[0pt]{
28864 \begin_inset Quotes eld
28868 \begin_inset Quotes erd
28875 \begin_layout Plain Layout
28885 \begin_layout Section
28887 \begin_inset CommandInset label
28889 name "sec:Colored-Boxes"
28897 \begin_layout Plain Layout
28906 \begin_layout Subsection
28911 \begin_layout Plain Layout
28920 \begin_layout Standard
28921 To color the background of text the text must be put into a so called
28922 \begin_inset Quotes eld
28926 \begin_inset Quotes erd
28930 This requires that the LaTeX-package
28938 \begin_layout Plain Layout
28939 LaTeX-packages ! color
28944 is loaded in the document preamble with the command
28947 \begin_layout Standard
28952 @ifundefined{textcolor}
28953 \begin_inset Newline newline
28960 \begin_layout Plain Layout
28971 usepackage{color}}{}
28974 \begin_layout Standard
28979 will be loaded automatically by LyX when you color text
28983 \begin_layout Plain Layout
28984 To avoid that it is loaded twice the command
28998 \begin_layout Standard
28999 \begin_inset VSpace medskip
29002 Colorboxes are created with the command
29009 This will be used with the following scheme:
29012 \begin_layout Standard
29017 colorbox{color}{box content}
29020 \begin_layout Standard
29021 The box content can also be a box and colorboxes can also be within other
29025 \begin_layout Standard
29026 The following colors are predefined:
29027 \begin_inset Newline newline
29066 \begin_inset Newline newline
29069 You can also define your own color as described in section
29070 \begin_inset space ~
29074 \begin_inset CommandInset ref
29076 reference "sec:Colored-Tables"
29083 \begin_layout Standard
29085 \begin_inset space \thinspace{}
29089 \begin_inset space ~
29092 a red background for a word, insert the command
29095 \begin_layout Standard
29103 \begin_layout Standard
29104 before the word in TeX-Code.
29105 Behind the word insert a closing brace
29106 \begin_inset Quotes eld
29114 \begin_inset Quotes erd
29118 \begin_inset Newline newline
29121 This is the result:
29124 \begin_layout Standard
29125 This is a line where the word
29129 \begin_layout Plain Layout
29139 \begin_inset Quotes eld
29143 \begin_inset Quotes erd
29150 \begin_layout Plain Layout
29157 has a red background.
29160 \begin_layout Standard
29161 \begin_inset VSpace bigskip
29164 If you would have the box frame in a different color, you can use the command
29171 with the following scheme:
29174 \begin_layout Standard
29179 fcolorbox{frame color}{box color}{box content}
29182 \begin_layout Standard
29196 The frame thickness and the space between the frame and the box content
29197 can be adjusted with the lengths
29209 , respectively, as described in section
29210 \begin_inset space ~
29214 \begin_inset CommandInset ref
29216 reference "sec:Decoration"
29223 \begin_layout Standard
29224 For the following example the command
29227 \begin_layout Standard
29232 fcolorbox{cyan}{magenta}{
29235 \begin_layout Standard
29239 \begin_layout Standard
29240 Here is an example where the frame line thickness was set to 1
29241 \begin_inset space \thinspace{}
29245 \begin_inset Newline newline
29252 \begin_layout Plain Layout
29267 \begin_layout Plain Layout
29271 fcolorbox{cyan}{magenta}{
29276 This is text within a colored, framed box.
29280 \begin_layout Plain Layout
29290 \begin_layout Standard
29291 \begin_inset VSpace bigskip
29294 Of course you can also have colored text inside a colorbox:
29295 \begin_inset Newline newline
29302 \begin_layout Plain Layout
29306 fcolorbox{cyan}{magenta}{
29313 This is colored text within a colored, framed box.
29319 \begin_layout Plain Layout
29330 \begin_layout Plain Layout
29344 \begin_layout Standard
29347 \begin_inset VSpace medskip
29353 \begin_layout Standard
29354 \begin_inset Note Greyedout
29357 \begin_layout Plain Layout
29362 Text in colorboxes cannot have line breaks.
29363 To color multiple text lines or paragraphs, use a box inside a colorbox
29364 as described in the following.
29372 \begin_layout Subsection
29373 Color for Paragraphs
29374 \begin_inset CommandInset label
29376 name "sub:Color-for-Paragraphs"
29384 \begin_layout Plain Layout
29385 Color ! for Paragraphs
29393 \begin_layout Standard
29394 To set the background color for more than one text line, put the text into
29396 Before the minipage insert the
29405 \begin_layout Standard
29413 \begin_layout Standard
29415 Behind the minipage insert a closing brace
29416 \begin_inset Quotes eld
29424 \begin_inset Quotes erd
29430 \begin_layout Standard
29434 \begin_layout Plain Layout
29438 colorbox{lightgrey}{
29444 \begin_inset Box Frameless
29453 height_special "totalheight"
29456 \begin_layout Plain Layout
29457 This is text with background color.
29458 This is text with background color.
29461 \begin_layout Plain Layout
29462 \begin_inset VSpace defskip
29465 The text can have footnotes
29469 \begin_layout Plain Layout
29470 Another example footnote
29475 and can include tables and figures.
29478 \begin_layout Plain Layout
29480 \begin_inset Tabular
29481 <lyxtabular version="3" rows="3" columns="3">
29483 <column alignment="center" valignment="top" width="0">
29484 <column alignment="center" valignment="top" width="0">
29485 <column alignment="center" valignment="top" width="0">
29487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29490 \begin_layout Plain Layout
29496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29499 \begin_layout Plain Layout
29505 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29508 \begin_layout Plain Layout
29516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29519 \begin_layout Plain Layout
29525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29528 \begin_layout Plain Layout
29530 \begin_inset Quotes erd
29538 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29541 \begin_layout Plain Layout
29549 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29552 \begin_layout Plain Layout
29558 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29561 \begin_layout Plain Layout
29567 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29570 \begin_layout Plain Layout
29590 \begin_layout Plain Layout
29600 \begin_layout Section
29601 Rotated and Scaled Boxes
29604 \begin_layout Standard
29605 To use the the commands described in this section, the LaTeX-package
29613 \begin_layout Plain Layout
29614 LaTeX-packages ! graphicx
29619 needs to be loaded in the document preamble with the command
29622 \begin_layout Standard
29627 @ifundefined{rotatebox}
29628 \begin_inset Newline newline
29635 \begin_layout Plain Layout
29646 usepackage{graphicx}}{}
29649 \begin_layout Standard
29650 \begin_inset Note Greyedout
29653 \begin_layout Plain Layout
29658 Some DVI-viewers can't display rotated or scaled material.
29666 \begin_layout Standard
29667 \begin_inset Note Greyedout
29670 \begin_layout Plain Layout
29675 Floats mustn't be inside a rotated or scaled box.
29683 \begin_layout Subsection
29688 \begin_layout Plain Layout
29698 \begin_layout Plain Layout
29708 \begin_layout Plain Layout
29718 \begin_layout Plain Layout
29719 Table Customization ! Rotating
29727 \begin_layout Standard
29728 To rotate material, you can put it into a rotated box.
29729 Such a box is created using the command
29735 in TeX-Code with the following scheme:
29738 \begin_layout Standard
29743 rotatebox[rotation origin]{rotation angle}{box content}
29746 \begin_layout Standard
29747 The rotation origin is specified in the form
29752 The following positions are possible:
29772 (top), and also expedient combinations of the four base positions.
29777 means, that the rotation origin is at the top left corner of the box.
29778 When no rotation origin is specified, the position
29783 The rotation angle is a number that can be negative that specifies the
29785 The rotation direction is counterclockwise.
29788 \begin_layout Standard
29789 In the following example the command
29793 rotatebox[origin=c]{60}{
29795 was inserted as TeX-Code before the text
29796 \begin_inset Quotes eld
29800 \begin_inset Quotes erd
29803 ; after the text the box was closed by a closing brace
29810 \begin_layout Standard
29815 \begin_layout Plain Layout
29819 rotatebox[origin=c]{60}{
29828 \begin_layout Plain Layout
29838 \begin_layout Standard
29839 The box content can also be another box or an inline formula:
29842 \begin_layout Standard
29847 \begin_layout Plain Layout
29851 rotatebox[origin=r]{-60}{
29857 \begin_inset Box Doublebox
29866 height_special "totalheight"
29869 \begin_layout Plain Layout
29879 \begin_layout Plain Layout
29890 \begin_layout Plain Layout
29894 rotatebox[origin=lb]{60}{
29900 \begin_inset Formula $\int A\,\mathrm{d}x=B$
29907 \begin_layout Plain Layout
29917 \begin_layout Standard
29918 or an image or table:
29921 \begin_layout Standard
29926 \begin_layout Plain Layout
29930 rotatebox[origin=lb]{90}{
29936 \begin_inset Graphics
29937 filename clipart/platypus.eps
29947 \begin_layout Plain Layout
29954 with a rotated image
29958 \begin_layout Plain Layout
29962 rotatebox[origin=l]{-90}{
29968 \begin_inset Tabular
29969 <lyxtabular version="3" rows="2" columns="2">
29971 <column alignment="center" valignment="top" width="0">
29972 <column alignment="center" valignment="top" width="0">
29974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29977 \begin_layout Plain Layout
29983 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29986 \begin_layout Plain Layout
29994 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29997 \begin_layout Plain Layout
30003 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30006 \begin_layout Plain Layout
30021 \begin_layout Plain Layout
30031 \begin_layout Subsection
30036 \begin_layout Plain Layout
30046 \begin_layout Plain Layout
30056 \begin_layout Plain Layout
30066 \begin_layout Plain Layout
30067 Table Customization ! Scaling
30075 \begin_layout Standard
30076 To scale material the commands
30088 can be used as TeX-Code.
30091 \begin_layout Standard
30098 is used with the following scheme:
30101 \begin_layout Standard
30106 scalebox{horizontal}[vertical]{box content}
30109 \begin_layout Standard
30110 Horizontal and vertical are the corresponding scaling factors.
30111 If no vertical scaling factor is given, the horizontal factor will also
30112 be used as vertical one.
30115 \begin_layout Standard
30122 creates for example a double size
30126 \begin_layout Plain Layout
30139 \begin_layout Plain Layout
30146 , compared to the document text size.
30149 \begin_layout Standard
30154 scalebox{2}[1]{Hello}
30156 in contrary distorts the
30160 \begin_layout Plain Layout
30173 \begin_layout Plain Layout
30183 \begin_layout Standard
30184 If a the scaling factor is negative, the box content will be mirrored.
30185 Therefore the command
30189 scalebox{-1}[1]{Hello}
30191 can be used to create mirror writing:
30195 \begin_layout Plain Layout
30208 \begin_layout Plain Layout
30218 \begin_layout Standard
30223 scalebox{1}[-1]{Hello}
30229 \begin_layout Plain Layout
30242 \begin_layout Plain Layout
30252 \begin_layout Standard
30257 scalebox{-1}[1]{box content}
30259 there exists the command
30260 \begin_inset Newline newline
30267 reflectbox{box content}
30272 \begin_layout Standard
30273 \begin_inset VSpace bigskip
30282 is used to scale the box to a defined width and height.
30283 The command scheme is:
30286 \begin_layout Standard
30291 resizebox{width}{height}{box content}
30294 \begin_layout Standard
30295 Is one of the two command arguments given as exclamation mark
30299 , the size is set so that the aspect ratio of the box content is kept.
30302 \begin_layout Standard
30307 resizebox{2cm}{1cm}{Hello}
30313 \begin_layout Plain Layout
30317 resizebox{2cm}{1cm}{
30326 \begin_layout Plain Layout
30334 \begin_inset Newline newline
30341 resizebox{2cm}{!}{Hello}
30347 \begin_layout Plain Layout
30360 \begin_layout Plain Layout
30370 \begin_layout Standard
30371 \begin_inset VSpace bigskip
30375 \begin_inset Note Greyedout
30378 \begin_layout Plain Layout
30395 are set to zero, no LaTeX-errors occur when exporting the document but
30396 the exported files can not or only partly be displayed.
30404 \begin_layout Standard
30405 \begin_inset VSpace bigskip
30411 \begin_layout Standard
30412 The boxes can be combined in any order.
30414 \begin_inset space \thinspace{}
30418 \begin_inset space ~
30422 \begin_inset Newline newline
30429 rotatebox[origin=c]{-45}{
30433 reflectbox{Hello}}}
30434 \begin_inset Newline newline
30442 \begin_layout Standard
30447 \begin_layout Plain Layout
30451 rotatebox[origin=c]{-45}{
30464 \begin_layout Plain Layout
30474 \begin_layout Standard
30476 Images, tables, and inline formulas are allowed as box content:
30479 \begin_layout Standard
30484 \begin_layout Plain Layout
30488 rotatebox[origin=c]{-30}{
30498 \begin_inset Graphics
30499 filename clipart/platypus.eps
30509 \begin_layout Plain Layout
30520 \begin_layout Plain Layout
30524 rotatebox[origin=c]{-45}{
30534 \begin_inset Tabular
30535 <lyxtabular version="3" rows="2" columns="2">
30537 <column alignment="center" valignment="top" width="0">
30538 <column alignment="center" valignment="top" width="0">
30540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30543 \begin_layout Plain Layout
30549 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30552 \begin_layout Plain Layout
30560 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30563 \begin_layout Plain Layout
30569 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30572 \begin_layout Plain Layout
30587 \begin_layout Plain Layout
30598 \begin_layout Plain Layout
30602 rotatebox[origin=c]{-45}{
30612 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30619 \begin_layout Plain Layout
30629 \begin_layout Standard
30630 When the global formula style
30634 is used in the document
30638 \begin_layout Plain Layout
30640 \begin_inset Quotes eld
30644 \begin_inset Quotes erd
30647 is added to the document class options.
30652 , also display formulas can be scaled.
30655 \begin_layout Chapter
30660 \begin_layout Plain Layout
30669 \begin_layout Standard
30672 Insert\SpecialChar \menuseparator
30675 you can insert external material to your document.
30679 \begin_layout Description
30681 \begin_inset space ~
30684 Document Another LyX document; its content is directly inserted to your
30688 \begin_layout Description
30690 \begin_inset space ~
30693 Text A text document; every of its text lines is inserted to your document
30697 \begin_layout Description
30699 \begin_inset space ~
30703 \begin_inset space ~
30707 \begin_inset space ~
30710 Lines A text document; its text lines are inserted as they are.
30711 Empty text lines creates a new paragraph in your document.
30714 \begin_layout Description
30716 \begin_inset space ~
30719 Material Files in various formats.
30722 \begin_layout Description
30724 \begin_inset space ~
30727 Document LyX or LaTeX-documents.
30730 \begin_layout Section
30735 \begin_layout Plain Layout
30736 External Stuff ! External Material
30744 \begin_layout Standard
30745 The external material feature allows you to insert files to your document
30746 without converting them previously to a format that can be read by the
30747 document output format because LyX takes care of needed conversions.
30748 This is similar to images that can be inserted in various image formats
30752 \begin_layout Standard
30753 External material can be inserted via the
30757 dialog that is accessible with the menu
30759 Insert\SpecialChar \menuseparator
30760 File\SpecialChar \menuseparator
30762 \begin_inset space ~
30768 Currently the following file types (
30775 \begin_layout Description
30776 ChessDiagram This template supports chess position diagrams made with the
30780 \begin_inset CommandInset href
30783 target "http://en.wikipedia.org/wiki/XBoard"
30792 \begin_layout Description
30793 Date This inserts the date in the form
30798 This is a date inserted as external material:
30799 \begin_inset External
30806 \begin_inset space ~
30810 \begin_inset Note Note
30813 \begin_layout Plain Layout
30814 Remove the protected space when bug 4398 is fixed!
30820 \begin_inset Newline newline
30823 The date is not shown within LyX, only in the output.
30824 There are two other methods of inserting a date: Via menu
30826 Insert\SpecialChar \menuseparator
30829 and with the LaTeX command
30836 The different methods are compared in Table
30837 \begin_inset space ~
30841 \begin_inset CommandInset ref
30843 reference "tab:Comparison-of-the"
30850 \begin_layout Description
30851 LilyPond This template is used for music notation typeset with the program
30852 \begin_inset Newline linebreak
30858 \begin_inset CommandInset href
30861 target "http://en.wikipedia.org/wiki/LilyPond"
30870 \begin_layout Description
30871 PDFPages With this template you can insert PDF documents to your document.
30872 To insert certain or all pages of a PDF, use the
30882 LaTeX and LyX options
30884 tab according to the template description in the dialog.
30889 option is given, only the first page of the PDF will be inserted.
30892 \begin_layout Description
30893 RasterImage This can be used for bitmap images.
30894 Nearly all popular image formats are supported.
30895 The image can be treated in the
30899 dialog like the images that are usually included via the
30903 dialog as described in section
30904 \begin_inset space ~
30908 \begin_inset CommandInset ref
30910 reference "sec:Graphics-Dialog"
30915 The difference is that only raster images are allowed, that means that
30916 PDF and EPS-images are not supported.
30919 \begin_layout Description
30920 XFig This template supports images created with the program
30923 \begin_inset CommandInset href
30926 target "http://en.wikipedia.org/wiki/Xfig"
30935 \begin_layout Standard
30936 \begin_inset Float table
30942 \begin_layout Plain Layout
30943 \begin_inset Caption
30945 \begin_layout Plain Layout
30946 \begin_inset CommandInset label
30948 name "tab:Comparison-of-the"
30952 Comparison of the date input methods.
30960 \begin_layout Plain Layout
30962 \begin_inset Tabular
30963 <lyxtabular version="3" rows="4" columns="4">
30965 <column alignment="center" valignment="top" width="0">
30966 <column alignment="center" valignment="top" width="0">
30967 <column alignment="center" valignment="top" width="0">
30968 <column alignment="center" valignment="top" width="0">
30970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30973 \begin_layout Plain Layout
30979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30982 \begin_layout Plain Layout
30985 External Material\SpecialChar \menuseparator
30991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30994 \begin_layout Plain Layout
30997 Insert\SpecialChar \menuseparator
31003 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31006 \begin_layout Plain Layout
31018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31021 \begin_layout Plain Layout
31027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31030 \begin_layout Plain Layout
31036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31039 \begin_layout Plain Layout
31045 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31048 \begin_layout Plain Layout
31049 as TeX-Code inset box
31056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31059 \begin_layout Plain Layout
31065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31068 \begin_layout Plain Layout
31074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31077 \begin_layout Plain Layout
31083 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31086 \begin_layout Plain Layout
31094 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31097 \begin_layout Plain Layout
31103 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31106 \begin_layout Plain Layout
31112 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31115 \begin_layout Plain Layout
31121 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31124 \begin_layout Plain Layout
31143 \begin_layout Standard
31144 When you use the option
31156 dialog, only the path to the inserted file is shown in the output.
31157 \begin_inset Newline newline
31160 External material is displayed in LyX either as box like this:
31161 \begin_inset Graphics
31162 filename clipart/ExternalMaterialQt4.png
31164 scaleBeforeRotation
31168 or as image, depending on the option
31174 LaTeX and LyX options
31179 \begin_layout Standard
31186 manual explains how you can define your own templates.
31189 \begin_layout Section
31191 \begin_inset CommandInset label
31193 name "sec:Child-Documents"
31201 \begin_layout Plain Layout
31202 External Stuff ! Child Documents
31211 \begin_layout Plain Layout
31220 \begin_layout Standard
31221 Child documents are used when you have a long document consisting of several
31222 larger parts or sections.
31223 For maintenance it is often useful and sometimes even required to split
31224 the document in several files that can be revised separately.
31225 The different documents are then the so called child documents and a master
31226 document connects them to print the full document or parts of it.
31229 \begin_layout Standard
31230 Included documents are displayed in LyX as a box like this:
31231 \begin_inset Graphics
31232 filename clipart/ChildDocumentQt4.png
31234 scaleBeforeRotation
31238 To include child documents to a master document use the menu
31240 Insert\SpecialChar \menuseparator
31241 File\SpecialChar \menuseparator
31243 \begin_inset space ~
31249 A dialog pops up where you can choose between four include methods:
31252 \begin_layout Description
31253 Include You can include LyX and LaTeX-documents.
31262 dialog, the included documents will be opened in LyX in a new file tab
31263 so that you can modify it.
31264 \begin_inset Newline newline
31270 \begin_layout Standard
31271 Here is a child document inserted using
31276 \begin_inset CommandInset include
31277 LatexCommand include
31278 filename "DummyDocument1.lyx"
31285 \begin_layout Standard
31286 The section numbering includes the sections of the included files in the
31287 order they are inserted in the master document.
31288 The included example document has for example a subsection that is numbered
31289 as subsection of this section.
31290 Labels of included documents can be referenced: Subsection
31291 \begin_inset space ~
31295 \begin_inset CommandInset ref
31297 reference "sub:External-Subsection-1"
31304 \begin_layout Standard
31305 The preamble of the child document is ignored, only the preamble of the
31306 master document is used.
31307 Included documents are inserted starting on a new page and end with a page
31311 \begin_layout Standard
31312 With the LaTeX-command
31318 you can specify which included child documents are processed when the output
31320 This is useful when you are perhaps only working on a certain chapter of
31321 your large document as this saves compiling time.
31328 is inserted to the master document preamble.
31329 It takes a comma-separated list of the filenames as argument, e.g.
31332 \begin_layout Standard
31337 includeonly{chapter1,chapter5}
31340 \begin_layout Standard
31341 will only process the included files named
31342 \begin_inset Quotes eld
31346 \begin_inset Quotes erd
31350 \begin_inset Quotes eld
31354 \begin_inset Quotes erd
31358 \begin_inset Quotes eld
31362 \begin_inset Quotes erd
31368 \begin_layout Standard
31369 \begin_inset Note Greyedout
31372 \begin_layout Plain Layout
31377 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
31378 w the document in case that the child document uses another document class
31379 than the master document as this will lead to unexpected outputs.
31387 \begin_layout Description
31388 Input This method is very similar to the Include method.
31389 The differences are:
31393 \begin_layout Itemize
31394 Input files don't start with a new page and don't end with a page break.
31397 \begin_layout Itemize
31398 Input files can be previewed in LyX when
31401 \begin_inset space ~
31406 is enabled in LyX's preferences under
31409 \begin_inset space ~
31413 \begin_inset space ~
31416 feel\SpecialChar \menuseparator
31422 \begin_layout Itemize
31433 \begin_layout Standard
31434 Here is a child document inserted using
31439 \begin_inset CommandInset include
31441 filename "DummyDocument2.lyx"
31448 \begin_layout Description
31449 Verbatim With this method every text file can be included.
31450 The file is shown in the output with its source code, no command used in
31451 the text is invoked.
31452 You can use the option
31454 Mark spaces in output
31456 that displays the character
31457 \begin_inset Quotes eld
31464 \begin_layout Plain Layout
31474 \begin_inset Quotes erd
31477 for every space character in the source code.
31478 The difference to the method via the menu
31480 Insert\SpecialChar \menuseparator
31481 File\SpecialChar \menuseparator
31483 \begin_inset space ~
31488 is that the document content is not shown in LyX.
31491 \begin_layout Standard
31492 Here is a child document inserted as Verbatim:
31493 \begin_inset CommandInset include
31494 LatexCommand verbatiminput
31495 filename "DummyTextDocument.txt"
31500 \begin_inset VSpace bigskip
31503 Here is a child document inserted as Verbatim using the
31505 Mark spaces in output
31508 \begin_inset CommandInset include
31509 LatexCommand verbatiminput*
31510 filename "DummyTextDocument.txt"
31517 \begin_layout Standard
31518 \begin_inset VSpace bigskip
31524 \begin_layout Standard
31525 \begin_inset Note Greyedout
31528 \begin_layout Plain Layout
31533 As you can see in the examples above, the text of the documents included
31538 is not broken at the end of the document lines.
31546 \begin_layout Description
31547 Listings This type is described in chapter
31548 \begin_inset space ~
31552 \begin_inset CommandInset ref
31554 reference "cha:Program-Code-Listings"
31561 \begin_layout Standard
31562 \begin_inset Note Greyedout
31565 \begin_layout Plain Layout
31570 Including the same document twice in a document using different methods
31571 could cause LaTeX-problems.
31579 \begin_layout Chapter
31580 Program Code Listings
31581 \begin_inset CommandInset label
31583 name "cha:Program-Code-Listings"
31591 \begin_layout Plain Layout
31601 \begin_layout Plain Layout
31611 \begin_layout Plain Layout
31620 \begin_layout Standard
31621 To include and typeset program code you can use the
31625 inset that can be inserted via the menu
31627 Insert\SpecialChar \menuseparator
31639 \begin_layout Plain Layout
31640 LaTeX-packages ! listings
31645 provides a powerful and flexible way to insert program source code to your
31649 \begin_layout Standard
31650 Right-clicking on a listings inset opens the context menu containing where
31651 you can set the listings format.
31654 \begin_layout Standard
31655 By default, a listing starts a new paragraph in the output.
31656 The placement option
31659 \begin_inset space ~
31664 prints the listing inline like this:
31665 \begin_inset listings
31666 lstparams "language={C++}"
31670 \begin_layout Plain Layout
31678 \begin_inset Newline newline
31685 creates a listings float where you can specify the placement options
31686 \begin_inset Quotes eld
31694 \begin_inset Quotes erd
31698 \begin_inset Quotes eld
31706 \begin_inset Quotes erd
31710 \begin_inset Quotes eld
31718 \begin_inset Quotes erd
31722 \begin_inset Quotes eld
31730 \begin_inset Quotes erd
31733 corresponding to the float placement options described in section
31734 \begin_inset space ~
31738 \begin_inset CommandInset ref
31740 reference "sec:Float-Placement"
31745 The placement options can be mixed and are inserted without any separation,
31747 \begin_inset space \thinspace{}
31751 \begin_inset space ~
31755 \begin_inset Quotes eld
31763 \begin_inset Quotes erd
31768 \begin_inset Quotes eld
31772 \begin_inset Quotes erd
31775 has sometimes no effect, but you don't need to use the
31779 option in this case as also non-float listings can have captions and be
31783 \begin_layout Standard
31784 You can add captions to listings with the menu
31786 Insert\SpecialChar \menuseparator
31790 Listings can be referenced like floats: Listing
31791 \begin_inset space ~
31795 \begin_inset CommandInset ref
31797 reference "lst:Example-Listing"
31804 \begin_layout Standard
31805 \begin_inset listings
31806 lstparams "language=Python"
31810 \begin_layout Plain Layout
31812 \begin_inset Caption
31814 \begin_layout Plain Layout
31815 \begin_inset CommandInset label
31817 name "lst:Example-Listing"
31821 Example Listing float
31826 # Example listing float
31829 \begin_layout Plain Layout
31834 \begin_layout Plain Layout
31836 'this is a python function'
31839 \begin_layout Plain Layout
31849 \begin_layout Standard
31850 When you have set a programming language in the listings dialog, the keywords
31851 of this language will be recognized and specially typeset in the output.
31852 In the example listings the Python keyword
31853 \begin_inset Quotes eld
31857 \begin_inset Quotes erd
31860 is recognized and printed bold in the output.
31863 \begin_layout Standard
31864 \begin_inset Note Greyedout
31867 \begin_layout Plain Layout
31872 If you don't get bold keywords when using typewriter fonts, your
31876 font probably doesn't provide a bold shape.
31877 In this case select a different one in the menu
31879 Document\SpecialChar \menuseparator
31880 Settings\SpecialChar \menuseparator
31892 provide bold shapes.)
31900 \begin_layout Standard
31904 \begin_inset space ~
31909 of the listings dialog you can specify the line numbering style.
31910 You can insert a number to specify which lines are numbered to the field
31916 When you insert e.g.
31918 \begin_inset Quotes eld
31922 \begin_inset Quotes erd
31925 , only every 3rd line will be numbered.
31928 \begin_layout Standard
31929 You can furthermore specify a range of lines, only these will then appear
31933 Extended character table
31935 should be used when you use national characters like the German umlauts
31937 \begin_inset Newline newline
31940 Here is an example listing with left line numbering, step
31941 \begin_inset Quotes eld
31945 \begin_inset Quotes erd
31949 \begin_inset Quotes eld
31953 \begin_inset Quotes erd
31957 \begin_inset Quotes eld
31960 Extended character table
31961 \begin_inset Quotes erd
31965 \begin_inset Quotes eld
31969 \begin_inset space ~
31973 \begin_inset space ~
31977 \begin_inset Quotes erd
31981 \begin_inset space \thinspace{}
31985 \begin_inset space \thinspace{}
31991 \begin_layout Standard
31992 \begin_inset listings
31993 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
31997 \begin_layout Plain Layout
32002 \begin_layout Plain Layout
32004 'this is a python function'
32007 \begin_layout Plain Layout
32012 \begin_layout Plain Layout
32017 \begin_layout Plain Layout
32019 'This is a German word: Tschüß'
32022 \begin_layout Plain Layout
32027 \begin_layout Plain Layout
32032 \begin_layout Plain Layout
32034 'this is a python function'
32037 \begin_layout Plain Layout
32047 \begin_layout Standard
32048 When you have tabulators in your listing, you can specify the number of
32049 characters that are spanned by a tabulator in the field
32052 \begin_inset space ~
32060 \begin_layout Standard
32061 \begin_inset Note Greyedout
32064 \begin_layout Plain Layout
32069 Due to a bug in the
32073 package the line numbering is shifted by a line by every previous listing.
32074 That's the reason why the lines 2 and 5 are numbered in the above listing
32075 and not the lines 3 and 6.
32083 \begin_layout Standard
32084 \begin_inset VSpace bigskip
32090 \begin_layout Standard
32091 It is also possible to print lines from a file as listing.
32092 To do this, use the menu
32094 Insert\SpecialChar \menuseparator
32095 File\SpecialChar \menuseparator
32098 and choose the type
32106 \begin_layout Plain Layout
32107 The other child document types are described in section
32108 \begin_inset space ~
32112 \begin_inset CommandInset ref
32114 reference "sec:Child-Documents"
32123 In the child document dialog you can specify the listing parameters in
32125 To show a list of all available parameters, type in a question mark
32126 \begin_inset Quotes eld
32130 \begin_inset Quotes erd
32136 \begin_layout Standard
32137 To reference child document listings, write a label text into the corresponding
32138 field of the child document dialog.
32139 The label can then be referenced using the menu
32141 Insert\SpecialChar \menuseparator
32147 \begin_layout Standard
32149 \begin_inset space ~
32153 \begin_inset CommandInset ref
32155 reference "lst:file-listing"
32159 is an example for a listing of a file; there the lines 10
32160 \begin_inset space \thinspace{}
32164 \begin_inset space \thinspace{}
32167 15 of this LyX file are listed.
32170 \begin_layout Standard
32171 \begin_inset CommandInset include
32172 LatexCommand lstinputlisting
32173 filename "EmbeddedObjects.lyx"
32174 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
32181 \begin_layout Standard
32182 \begin_inset VSpace bigskip
32188 \begin_layout Standard
32189 Global listings settings can be set in the
32191 Document\SpecialChar \menuseparator
32192 Settings\SpecialChar \menuseparator
32196 To get there a list of available options, type in a question mark
32197 \begin_inset Quotes eld
32201 \begin_inset Quotes erd
32207 \begin_inset space ~
32215 \begin_layout Standard
32216 For more information about the
32220 package, we refer to its documentation
32221 \begin_inset CommandInset citation
32230 \begin_layout Standard
32231 \begin_inset Newpage newpage
32237 \begin_layout Chapter
32239 Units available in LyX
32243 \begin_layout Plain Layout
32250 \begin_inset CommandInset label
32252 name "cha:Units-available-in"
32259 \begin_layout Standard
32260 To understand the units described in this documentation, Table
32261 \begin_inset space ~
32265 \begin_inset CommandInset ref
32267 reference "tab:Units"
32271 explains all units available in LyX.
32274 \begin_layout Standard
32275 \begin_inset Float table
32281 \begin_layout Plain Layout
32282 \begin_inset Caption
32284 \begin_layout Plain Layout
32285 \begin_inset CommandInset label
32299 \begin_layout Plain Layout
32300 \begin_inset VSpace medskip
32306 \begin_layout Plain Layout
32308 \begin_inset Tabular
32309 <lyxtabular version="3" rows="20" columns="2">
32311 <column alignment="center" valignment="top" width="0">
32312 <column alignment="center" valignment="top" width="0">
32314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32317 \begin_layout Plain Layout
32323 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32326 \begin_layout Plain Layout
32334 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32337 \begin_layout Plain Layout
32343 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32346 \begin_layout Plain Layout
32354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32357 \begin_layout Plain Layout
32363 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32366 \begin_layout Plain Layout
32374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32377 \begin_layout Plain Layout
32383 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32386 \begin_layout Plain Layout
32394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32397 \begin_layout Plain Layout
32403 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32406 \begin_layout Plain Layout
32408 \begin_inset space \thinspace{}
32412 \begin_inset space \thinspace{}
32422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32425 \begin_layout Plain Layout
32431 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32434 \begin_layout Plain Layout
32436 \begin_inset space \thinspace{}
32440 \begin_inset space \thinspace{}
32450 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32453 \begin_layout Plain Layout
32459 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32462 \begin_layout Plain Layout
32463 scaled point (65536
32464 \begin_inset space \thinspace{}
32468 \begin_inset space \thinspace{}
32478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32481 \begin_layout Plain Layout
32487 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32490 \begin_layout Plain Layout
32492 \begin_inset space \thinspace{}
32496 \begin_inset space \thinspace{}
32506 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32509 \begin_layout Plain Layout
32515 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32518 \begin_layout Plain Layout
32520 \begin_inset space \thinspace{}
32524 \begin_inset Formula $\approx$
32528 \begin_inset space \thinspace{}
32538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32541 \begin_layout Plain Layout
32547 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32550 \begin_layout Plain Layout
32552 \begin_inset space \thinspace{}
32556 \begin_inset space \thinspace{}
32566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32569 \begin_layout Plain Layout
32575 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32578 \begin_layout Plain Layout
32579 % of original image width
32586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32589 \begin_layout Plain Layout
32595 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32598 \begin_layout Plain Layout
32606 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32609 \begin_layout Plain Layout
32615 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32618 \begin_layout Plain Layout
32626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32629 \begin_layout Plain Layout
32635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32638 \begin_layout Plain Layout
32646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32649 \begin_layout Plain Layout
32655 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32658 \begin_layout Plain Layout
32666 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32669 \begin_layout Plain Layout
32675 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32678 \begin_layout Plain Layout
32686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32689 \begin_layout Plain Layout
32695 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32698 \begin_layout Plain Layout
32706 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32709 \begin_layout Plain Layout
32715 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32718 \begin_layout Plain Layout
32730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32733 \begin_layout Plain Layout
32739 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32742 \begin_layout Plain Layout
32754 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32757 \begin_layout Plain Layout
32763 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32766 \begin_layout Plain Layout
32768 \begin_inset space \thinspace{}
32772 \begin_inset space \thinspace{}
32793 \begin_layout Chapter
32794 Output File Formats with Graphics
32795 \begin_inset CommandInset label
32797 name "cha:Output-File-Formats"
32804 \begin_layout Section
32809 \begin_layout Plain Layout
32819 \begin_layout Plain Layout
32824 \begin_layout Plain Layout
32835 \begin_layout Plain Layout
32850 \begin_layout Standard
32851 This file type has the extension
32852 \begin_inset Quotes eld
32860 \begin_inset Quotes erd
32865 \begin_inset Quotes eld
32869 \begin_inset Quotes erd
32872 (DVI), because it is completely portable; you can move them from one machine
32873 to another without needing to do any sort of conversion.
32874 At the time when this file-format was developed, this was no matter of
32876 DVIs are used for quick previews and as pre-stage for other output formats,
32880 \begin_layout Standard
32881 \begin_inset Note Greyedout
32884 \begin_layout Plain Layout
32889 DVI-files doesn't contain images, they will only be a linked.
32894 So don't forget this, if you move your
32898 file to another computer.
32899 This property can also slow down your computer when you view the DVI.
32900 Because the DVI-viewer has to convert the image in the background to make
32901 it visible when you scroll in the DVI.
32902 So we recommend to use PDF for files with many images.
32905 \begin_layout Standard
32906 You can export your document to DVI by using the menu
32908 File\SpecialChar \menuseparator
32909 Export\SpecialChar \menuseparator
32913 You can view your document as DVI via the
32917 menu or by using the toolbar button
32918 \begin_inset Graphics
32919 filename ../images/buffer-view_dvi.png
32921 scaleBeforeRotation
32928 \begin_layout Section
32930 \begin_inset CommandInset label
32932 name "sec:PostScript"
32940 \begin_layout Plain Layout
32941 File Formats ! PostScript
32950 \begin_layout Plain Layout
32955 \begin_layout Plain Layout
32966 \begin_layout Plain Layout
32981 \begin_layout Standard
32982 This file type has the extension
32983 \begin_inset Quotes eld
32991 \begin_inset Quotes erd
32995 PostScript was developed by the company
32999 as printer language.
33000 The file contains therefore commands that the printer uses to print the
33002 PostScript can be seen as
33003 \begin_inset Quotes eld
33006 programming language
33007 \begin_inset Quotes erd
33010 ; you can calculate with it and draw diagrams and images
33014 \begin_layout Plain Layout
33015 If you are interested to learn more about this, have a look at the LaTeX-package
33021 \begin_inset CommandInset citation
33033 Due to this ability, the files are often bigger than PDFs.
33036 \begin_layout Standard
33037 PostScript can only contain images in the format
33038 \begin_inset Quotes eld
33041 Encapsulated PostScript
33042 \begin_inset Quotes erd
33045 (EPS, file extension
33046 \begin_inset Quotes eld
33054 \begin_inset Quotes erd
33058 As LyX allows you to use any known image format in your document, it has
33059 to convert images in the background to EPS.
33060 If you have e.g 50 images in your document, LyX has to do 50 conversions
33061 whenever you view or export your document.
33062 This will slow down your work flow with LyX drastically.
33063 So if you plan to use PostScript, you can insert your images directly as
33064 EPS to avoid this problem.
33067 \begin_layout Standard
33068 You can export your document to PostScript using the menu
33070 File\SpecialChar \menuseparator
33071 Export\SpecialChar \menuseparator
33075 You can view your document as PostScript via the
33079 menu or by using the toolbar button
33080 \begin_inset Graphics
33081 filename ../images/buffer-view_ps.png
33083 scaleBeforeRotation
33090 \begin_layout Section
33095 \begin_layout Plain Layout
33105 \begin_layout Plain Layout
33114 \begin_layout Standard
33115 This file type has the extension
33116 \begin_inset Quotes eld
33124 \begin_inset Quotes erd
33129 \begin_inset Quotes eld
33132 Portable Document Format
33133 \begin_inset Quotes erd
33136 (PDF) is developed by
33140 as derivative from PostScript.
33141 It is more compressed and it uses much less commands than PostScript.
33143 \begin_inset Quotes eld
33147 \begin_inset Quotes erd
33150 implies, it can be processed at any computer system and the printed output
33151 looks exactly the same.
33154 \begin_layout Standard
33155 PDF can contain images in its own PDF format, in the format
33156 \begin_inset Quotes eld
33159 Joint Photographic Experts Group
33160 \begin_inset Quotes erd
33163 (JPG, file extension
33164 \begin_inset Quotes eld
33172 \begin_inset Quotes erd
33176 \begin_inset Quotes eld
33184 \begin_inset Quotes erd
33187 ), and in the format
33188 \begin_inset Quotes eld
33191 Portable Network Graphics
33192 \begin_inset Quotes erd
33195 (PNG, file extension
33196 \begin_inset Quotes eld
33204 \begin_inset Quotes erd
33208 Nevertheless you can use any other image format, because LyX converts them
33209 in the background to one of these formats.
33210 But as described in the section about PostScript, the image conversion
33211 will slow down your work flow.
33212 So it is recommended to use images in one of the three mentioned formats.
33215 \begin_layout Standard
33216 You can export your document to PDF via the menu
33218 File\SpecialChar \menuseparator
33221 in three different ways:
33224 \begin_layout Description
33226 \begin_inset space ~
33229 (ps2pdf) This uses the program
33233 that creates a PDF from a PostScript-version of your file.
33234 The PostScript-version is produced by the program
33238 which uses a DVI-version as intermediate step.
33239 So this export variant consist of three conversions.
33242 \begin_layout Description
33244 \begin_inset space ~
33247 (dvipdfm) This uses the program
33251 that converts your file in the background to DVI and in a second step to
33255 \begin_layout Description
33257 \begin_inset space ~
33260 (pdflatex) This uses the program
33264 that converts your file directly to PDF.
33267 \begin_layout Standard
33268 It is recommended to use
33271 \begin_inset space ~
33280 supports all features of actual PDF-versions, is quick and works stable
33286 is not under development and therefore a bit outdated.
33289 \begin_layout Standard
33290 You can view your document as PDF via the
33294 menu or by using the toolbar button
33295 \begin_inset Graphics
33296 filename ../images/buffer-view_pdf2.png
33298 scaleBeforeRotation
33309 \begin_inset space ~
33317 \begin_layout Chapter
33318 Explanation of Equation
33319 \begin_inset space ~
33323 \begin_inset CommandInset ref
33330 \begin_inset CommandInset label
33332 name "cha:Explanation-of-Equation"
33339 \begin_layout Standard
33345 \begin_inset Formula $W_{\mathrm{tot\, n}}$
33348 can be calculated to
33351 \begin_layout Standard
33352 \begin_inset Formula \begin{equation}
33353 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}
33360 \begin_layout Standard
33362 \begin_inset Formula $W_{g\, n}$
33365 is the given width of all cells.
33372 is the LaTeX-length between the cell text and the cell border, its default
33374 \begin_inset space \thinspace{}
33384 is the thickness of the cell border line, the default is 0.4
33385 \begin_inset space \thinspace{}
33391 \begin_layout Standard
33393 \begin_inset space ~
33397 \begin_inset CommandInset ref
33399 reference "eq:Wtot_n"
33403 , the total width of a multicolumn
33404 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
33410 \begin_layout Standard
33411 \begin_inset Formula \begin{equation}
33412 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
33419 \begin_layout Standard
33420 By setting equation
33421 \begin_inset space ~
33425 \begin_inset CommandInset ref
33427 reference "eq:Wtot_n"
33432 \begin_inset CommandInset ref
33434 reference "eq:Wtot_mult"
33438 equal we can calculate the needed given width
33439 \begin_inset Formula $W_{g\, n}$
33446 columns are spanned, so that each column has a total width of
33447 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
33453 \begin_layout Standard
33454 \begin_inset Formula \begin{equation}
33455 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
33462 \begin_layout Bibliography
33463 \begin_inset CommandInset bibitem
33464 LatexCommand bibitem
33465 key "latexcompanion"
33469 Frank Mittelbach and Michel Goossens:
33471 The LaTeX Companion Second Edition.
33474 Addison-Wesley, 2004
33477 \begin_layout Bibliography
33478 \begin_inset CommandInset bibitem
33479 LatexCommand bibitem
33484 Helmut Kopka and Patrick W.
33487 A Guide to LaTeX Fourth Edition.
33490 Addison-Wesley, 2003
33493 \begin_layout Bibliography
33494 \begin_inset CommandInset bibitem
33495 LatexCommand bibitem
33502 LaTeX: A Document Preparation System.
33505 Addison-Wesley, second edition, 1994
33508 \begin_layout Bibliography
33509 \begin_inset CommandInset bibitem
33510 LatexCommand bibitem
33515 Documentation of the LaTeX-package
33518 \begin_inset CommandInset href
33521 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
33531 \begin_layout Plain Layout
33532 LaTeX-packages ! booktabs
33540 \begin_layout Bibliography
33541 \begin_inset CommandInset bibitem
33542 LatexCommand bibitem
33547 Documentation of the LaTeX-package
33550 \begin_inset CommandInset href
33553 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
33563 \begin_layout Plain Layout
33564 LaTeX-packages ! caption
33572 \begin_layout Bibliography
33573 \begin_inset CommandInset bibitem
33574 LatexCommand bibitem
33579 Documentation of the LaTeX-package
33582 \begin_inset CommandInset href
33585 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
33595 \begin_layout Plain Layout
33596 LaTeX-packages ! endfloat
33604 \begin_layout Bibliography
33605 \begin_inset CommandInset bibitem
33606 LatexCommand bibitem
33611 Documentation of the LaTeX-package
33614 \begin_inset CommandInset href
33617 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
33627 \begin_layout Plain Layout
33628 LaTeX-packages ! wrapfig
33632 \begin_layout Plain Layout
33649 \begin_layout Bibliography
33650 \begin_inset CommandInset bibitem
33651 LatexCommand bibitem
33656 Documentation of the LaTeX-package
33659 \begin_inset CommandInset href
33662 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
33672 \begin_layout Plain Layout
33673 LaTeX-packages ! footmisc
33681 \begin_layout Bibliography
33682 \begin_inset CommandInset bibitem
33683 LatexCommand bibitem
33688 Documentation of the LaTeX-package
33691 \begin_inset CommandInset href
33694 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
33704 \begin_layout Plain Layout
33705 LaTeX-packages ! hyperref
33713 \begin_layout Bibliography
33714 \begin_inset CommandInset bibitem
33715 LatexCommand bibitem
33720 Documentation of the LaTeX-package
33723 \begin_inset CommandInset href
33726 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
33736 \begin_layout Plain Layout
33737 LaTeX-packages ! hyperref
33745 \begin_layout Bibliography
33746 \begin_inset CommandInset bibitem
33747 LatexCommand bibitem
33752 Documentation of the LaTeX-package
33755 \begin_inset CommandInset href
33758 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
33768 \begin_layout Plain Layout
33769 LaTeX-packages ! koma-script
33777 \begin_layout Bibliography
33778 \begin_inset CommandInset bibitem
33779 LatexCommand bibitem
33784 Documentation of the LaTeX-package
33787 \begin_inset CommandInset href
33790 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
33800 \begin_layout Plain Layout
33801 LaTeX-packages ! listings
33809 \begin_layout Bibliography
33810 \begin_inset CommandInset bibitem
33811 LatexCommand bibitem
33816 Documentation of the LaTeX-package
33819 \begin_inset CommandInset href
33822 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
33832 \begin_layout Plain Layout
33833 LaTeX-packages ! marginnote
33841 \begin_layout Bibliography
33842 \begin_inset CommandInset bibitem
33843 LatexCommand bibitem
33848 Web page of the LaTeX-package
33851 \begin_inset CommandInset href
33854 target "http://tug.org/PSTricks/"
33864 \begin_layout Plain Layout
33865 LaTeX-packages ! PSTricks
33873 \begin_layout Bibliography
33874 \begin_inset CommandInset bibitem
33875 LatexCommand bibitem
33880 Documentation of the LaTeX-package
33883 \begin_inset CommandInset href
33886 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
33896 \begin_layout Plain Layout
33897 LaTeX-packages ! sidecap
33905 \begin_layout Bibliography
33906 \begin_inset CommandInset bibitem
33907 LatexCommand bibitem
33913 \begin_inset CommandInset href
33916 target "http://wiki.lyx.org/LyX/NewInLyX16"
33920 about new features in
33927 \begin_layout Standard
33928 \begin_inset CommandInset index_print
33929 LatexCommand printindex
33936 \begin_layout Standard
33937 \begin_inset FloatList figure
33944 \begin_layout Standard
33945 \begin_inset FloatList table
33952 \begin_layout Standard
33953 \begin_inset FloatList algorithm