1 #LyX 1.6.1 created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
38 \newcommand{\TabBesBeg}{%
40 \let\MyEndtable\endtable
41 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
43 \newcommand{\TabBesEnd}{%
45 \let\endtable\MyEndtable}
47 \newcommand{\FigBesBeg}{%
49 \let\MyEndfigure\endfigure
50 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
52 \newcommand{\FigBesEnd}{%
54 \let\endfigure\MyEndfigure}
56 % enables calculation of values,
59 % provides special table cell alignments
62 % increase the bottom float placement fraction
63 \renewcommand{\bottomfraction}{0.5}
65 % avoids that floats are placed before their
66 % corresponding section starts
67 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
69 % speed up the longtable calculation
70 \setcounter{LTchunksize}{100}
72 % used for scaled and rotated boxes
73 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
75 % used for colored tables
76 \@ifundefined{textcolor}
77 {\usepackage{color}}{}
78 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
79 \definecolor{lightgrey}{gray}{0.8}
81 % check for package colortbl
82 % used for colored table cells
84 \IfFileExists{colortbl.sty}
85 {\usepackage{colortbl}
86 \setboolean{colortbl}{true}}
87 {\setboolean{colortbl}{false}}
91 %\renewcommand{\multirowsetup}{\centering}
93 % used for book-style tables
96 % used to have extra space in table cells
97 \@ifundefined{extrarowheight}
98 {\usepackage{array}}{}
99 \setlength{\extrarowheight}{2pt}
101 % used for customized tables
104 {>{\centering\hspace{0pt}}m{#1}}
107 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
110 {>{\columncolor{#1}\hspace{0pt}}c}
112 \newcolumntype{V}{!{\vrule width 1.5pt}}
114 \newcolumntype{W}{!{\color{green}\vline}}
117 % insert additional vertical space of
118 % 1.5 mm between footnotes
120 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
122 % number algorithm floats within chapters
123 \numberwithin{algorithm}{chapter}
125 % redefine the greyed out note
126 \renewenvironment{lyxgreyedout}
127 {\textcolor{blue}\bgroup}{\egroup}
129 % ------------------------------------
130 % used to check for needed LaTeX packages
133 % check for package arydshln
134 % used for tables with dashed lines
135 \newboolean{arydshln}
136 \IfFileExists{arydshln.sty}
137 {\usepackage{arydshln}
138 \setboolean{arydshln}{true}}
139 {\setboolean{arydshln}{false}}
141 % check for package marginnote
142 % used for margin notes
143 \newboolean{marginnote}
144 \IfFileExists{marginnote.sty}
145 {\usepackage{marginnote}
146 \let\marginpar\marginnote
147 \setboolean{marginnote}{true}}
148 {\setboolean{marginnote}{false}}
150 % check for package sidecap
151 % used for captions on the side
153 \IfFileExists{sidecap.sty}
154 {\usepackage{sidecap}
155 \let\marginpar\marginnote
156 \setboolean{sidecap}{true}}
157 {\setboolean{sidecap}{false}}
159 % redefine the \LyX macro for PDF bookmarks
160 \def\LyX{\texorpdfstring{%
161 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
164 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
165 \use_default_options false
170 \font_typewriter default
171 \font_default_family default
181 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
182 \pdf_author "LyX Team, Uwe Stöhr"
183 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
184 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
186 \pdf_bookmarksnumbered true
187 \pdf_bookmarksopen true
188 \pdf_bookmarksopenlevel 1
189 \pdf_breaklinks false
193 \pdf_pdfusetitle false
194 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false, pdfpagelabels"
201 \paperorientation portrait
204 \paragraph_separation skip
206 \quotes_language english
209 \paperpagestyle default
213 \tracking_changes false
214 \output_changes false
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{}
586 \begin_inset space \space{}
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 the first 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
5694 \begin_layout Plain Layout
5698 addtocounter{table}{-1}
5704 \begin_inset Note Note
5707 \begin_layout Plain Layout
5708 See the first greyed-out note in section
5709 \begin_inset space ~
5713 \begin_inset CommandInset ref
5715 reference "sub:Longtable-Captions"
5719 for an explanation of this command.
5727 \begin_layout Subsection
5732 \begin_layout Plain Layout
5733 Longtables ! Captions
5739 \begin_inset CommandInset label
5741 name "sub:Longtable-Captions"
5748 \begin_layout Standard
5749 A longtable cannot be put into a table float because floats can only be
5750 on one page but the caption environment of floats can also be used for
5752 Therefore the caption is inserted as first row of the table, as explained
5754 \begin_inset space \thinspace{}
5758 \begin_inset CommandInset ref
5760 reference "sec:Longtables"
5765 The first table row is then only a dummy row for the caption, the actual
5766 table starts with the second row.
5769 \begin_layout Standard
5770 Here is a short longtable to see how it works:
5773 \begin_layout Standard
5774 \begin_inset Tabular
5775 <lyxtabular version="3" rows="6" columns="5">
5776 <features islongtable="true">
5777 <column alignment="center" valignment="top" width="0">
5778 <column alignment="center" valignment="top" width="0">
5779 <column alignment="center" valignment="top" width="0">
5780 <column alignment="center" valignment="top" width="0">
5781 <column alignment="center" valignment="top" width="0">
5782 <row caption="true">
5783 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5786 \begin_layout Plain Layout
5787 \begin_inset Caption
5789 \begin_layout Plain Layout
5790 Longtable with caption
5794 \begin_layout Plain Layout
5810 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5813 \begin_layout Plain Layout
5819 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5822 \begin_layout Plain Layout
5828 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5831 \begin_layout Plain Layout
5837 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5840 \begin_layout Plain Layout
5848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5851 \begin_layout Plain Layout
5857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5860 \begin_layout Plain Layout
5866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5869 \begin_layout Plain Layout
5875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5878 \begin_layout Plain Layout
5884 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5887 \begin_layout Plain Layout
5895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5898 \begin_layout Plain Layout
5904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5907 \begin_layout Plain Layout
5913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5916 \begin_layout Plain Layout
5922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5925 \begin_layout Plain Layout
5931 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5934 \begin_layout Plain Layout
5942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5945 \begin_layout Plain Layout
5951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5954 \begin_layout Plain Layout
5960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5963 \begin_layout Plain Layout
5969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5972 \begin_layout Plain Layout
5978 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5981 \begin_layout Plain Layout
5989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5992 \begin_layout Plain Layout
5998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6001 \begin_layout Plain Layout
6007 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6010 \begin_layout Plain Layout
6016 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6019 \begin_layout Plain Layout
6025 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6028 \begin_layout Plain Layout
6036 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6039 \begin_layout Plain Layout
6045 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6048 \begin_layout Plain Layout
6054 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6057 \begin_layout Plain Layout
6063 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6066 \begin_layout Plain Layout
6072 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6075 \begin_layout Plain Layout
6089 \begin_layout Standard
6090 \begin_inset VSpace medskip
6094 \begin_inset Note Greyedout
6097 \begin_layout Plain Layout
6101 \begin_inset space ~
6106 The table number is increased for every longtable, also if you didn't set
6108 For this reason you could have the case that e.
6109 \begin_inset space \thinspace{}
6113 \begin_inset space \space{}
6117 \begin_inset space ~
6120 2.4 follows on Table
6121 \begin_inset space ~
6124 2.1 in the list of tables if there are two longtables without captions.
6125 To avoid this you can add the following command in TeX-Code behind every
6126 longtable without a caption:
6129 \begin_layout Plain Layout
6134 addtocounter{table}{-1}
6137 \begin_layout Plain Layout
6138 This is not needed when none of your longtables have a caption and you add
6139 the following code to the document preamble:
6142 \begin_layout Plain Layout
6152 \begin_inset Newline newline
6163 addtocounter{table}{-1}}
6171 \begin_layout Standard
6172 \begin_inset Note Greyedout
6175 \begin_layout Plain Layout
6179 \begin_inset space ~
6192 \begin_layout Plain Layout
6193 LaTeX-packages ! hyperref
6206 dialog to link cross-references, the link to a longtable caption will always
6207 point to the beginning of the document.
6215 \begin_layout Standard
6216 \begin_inset Newpage newpage
6222 \begin_layout Subsubsection
6223 References to Longtables
6227 \begin_layout Plain Layout
6228 Longtables ! References
6236 \begin_layout Standard
6237 \begin_inset Tabular
6238 <lyxtabular version="3" rows="6" columns="5">
6239 <features islongtable="true">
6240 <column alignment="center" valignment="top" width="0">
6241 <column alignment="center" valignment="top" width="0">
6242 <column alignment="center" valignment="top" width="0">
6243 <column alignment="center" valignment="top" width="0">
6244 <column alignment="center" valignment="top" width="0">
6245 <row caption="true">
6246 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6249 \begin_layout Plain Layout
6250 \begin_inset Caption
6252 \begin_layout Plain Layout
6253 Referenced longtable
6254 \begin_inset CommandInset label
6256 name "tab:RefExample"
6270 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6273 \begin_layout Plain Layout
6279 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6282 \begin_layout Plain Layout
6288 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6291 \begin_layout Plain Layout
6297 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6300 \begin_layout Plain Layout
6308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6311 \begin_layout Plain Layout
6317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6320 \begin_layout Plain Layout
6326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6329 \begin_layout Plain Layout
6335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6338 \begin_layout Plain Layout
6344 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6347 \begin_layout Plain Layout
6355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6358 \begin_layout Plain Layout
6364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6367 \begin_layout Plain Layout
6373 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6376 \begin_layout Plain Layout
6382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6385 \begin_layout Plain Layout
6391 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6394 \begin_layout Plain Layout
6402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6405 \begin_layout Plain Layout
6411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6414 \begin_layout Plain Layout
6420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6423 \begin_layout Plain Layout
6429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6432 \begin_layout Plain Layout
6438 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6441 \begin_layout Plain Layout
6449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6452 \begin_layout Plain Layout
6458 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6461 \begin_layout Plain Layout
6467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6470 \begin_layout Plain Layout
6476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6479 \begin_layout Plain Layout
6485 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6488 \begin_layout Plain Layout
6496 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6499 \begin_layout Plain Layout
6505 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6508 \begin_layout Plain Layout
6514 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6517 \begin_layout Plain Layout
6523 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6526 \begin_layout Plain Layout
6532 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6535 \begin_layout Plain Layout
6549 \begin_layout Standard
6550 To reference a longtable, insert a label into the caption.
6553 \begin_layout Standard
6554 This is a reference to Table
6555 \begin_inset space ~
6559 \begin_inset CommandInset ref
6561 reference "tab:RefExample"
6568 \begin_layout Standard
6569 The caption layout can be set together with all other captions of your document
6570 using the LaTeX-package
6578 \begin_layout Plain Layout
6579 LaTeX-packages ! caption
6585 \begin_inset space ~
6589 \begin_inset CommandInset ref
6591 reference "sec:Caption-Formatting"
6598 \begin_layout Subsubsection
6603 \begin_layout Plain Layout
6604 Longtables ! Caption Width
6612 \begin_layout Standard
6613 The maximal width of of caption lines is defined by the length
6620 Its default value is 4
6621 \begin_inset space \thinspace{}
6625 To change it add the following command to your document preamble or as
6626 TeX-Code into your document before the longtable that should be affected
6629 \begin_layout Standard
6639 \begin_layout Standard
6640 where the width could have one of the units listed in appendix
6641 \begin_inset space ~
6645 \begin_inset CommandInset ref
6647 reference "cha:Units-available-in"
6654 \begin_layout Standard
6655 The following tables show the difference:
6658 \begin_layout Standard
6659 \begin_inset Tabular
6660 <lyxtabular version="3" rows="6" columns="5">
6661 <features islongtable="true">
6662 <column alignment="center" valignment="top" width="0">
6663 <column alignment="center" valignment="top" width="0">
6664 <column alignment="center" valignment="top" width="0">
6665 <column alignment="center" valignment="top" width="0">
6666 <column alignment="center" valignment="top" width="0">
6667 <row caption="true">
6668 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6671 \begin_layout Plain Layout
6672 \begin_inset Caption
6674 \begin_layout Plain Layout
6675 long full title with default width long full title with default width long
6676 full title with default width
6680 \begin_layout Plain Layout
6681 caption with default width
6696 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6699 \begin_layout Plain Layout
6705 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6708 \begin_layout Plain Layout
6714 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6717 \begin_layout Plain Layout
6723 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6726 \begin_layout Plain Layout
6734 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6737 \begin_layout Plain Layout
6743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6746 \begin_layout Plain Layout
6752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6755 \begin_layout Plain Layout
6761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6764 \begin_layout Plain Layout
6770 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6773 \begin_layout Plain Layout
6781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6784 \begin_layout Plain Layout
6790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6793 \begin_layout Plain Layout
6799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6802 \begin_layout Plain Layout
6808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6811 \begin_layout Plain Layout
6817 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6820 \begin_layout Plain Layout
6828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6831 \begin_layout Plain Layout
6837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6840 \begin_layout Plain Layout
6846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6849 \begin_layout Plain Layout
6855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6858 \begin_layout Plain Layout
6864 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6867 \begin_layout Plain Layout
6875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6878 \begin_layout Plain Layout
6884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6887 \begin_layout Plain Layout
6893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6896 \begin_layout Plain Layout
6902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6905 \begin_layout Plain Layout
6911 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6914 \begin_layout Plain Layout
6922 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6925 \begin_layout Plain Layout
6931 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6934 \begin_layout Plain Layout
6940 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6943 \begin_layout Plain Layout
6949 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6952 \begin_layout Plain Layout
6958 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6961 \begin_layout Plain Layout
6975 \begin_layout Standard
6979 \begin_layout Plain Layout
6991 \begin_inset Tabular
6992 <lyxtabular version="3" rows="6" columns="5">
6993 <features islongtable="true">
6994 <column alignment="center" valignment="top" width="0">
6995 <column alignment="center" valignment="top" width="0">
6996 <column alignment="center" valignment="top" width="0">
6997 <column alignment="center" valignment="top" width="0">
6998 <column alignment="center" valignment="top" width="0">
6999 <row caption="true">
7000 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7003 \begin_layout Plain Layout
7004 \begin_inset Caption
7006 \begin_layout Plain Layout
7007 long full title with width set to 5
7008 \begin_inset space \thinspace{}
7011 cm long full title with width set to 5
7012 \begin_inset space \thinspace{}
7015 cm long full title with width set to 5
7016 \begin_inset space \thinspace{}
7023 \begin_layout Plain Layout
7025 \begin_inset space \thinspace{}
7029 \begin_inset space \thinspace{}
7033 \begin_inset space \thinspace{}
7051 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7054 \begin_layout Plain Layout
7060 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7063 \begin_layout Plain Layout
7069 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7072 \begin_layout Plain Layout
7078 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7081 \begin_layout Plain Layout
7089 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7092 \begin_layout Plain Layout
7098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7101 \begin_layout Plain Layout
7107 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7110 \begin_layout Plain Layout
7116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7119 \begin_layout Plain Layout
7125 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7128 \begin_layout Plain Layout
7136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7139 \begin_layout Plain Layout
7145 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7148 \begin_layout Plain Layout
7154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7157 \begin_layout Plain Layout
7163 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7166 \begin_layout Plain Layout
7172 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7175 \begin_layout Plain Layout
7183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7186 \begin_layout Plain Layout
7192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7195 \begin_layout Plain Layout
7201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7204 \begin_layout Plain Layout
7210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7213 \begin_layout Plain Layout
7219 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7222 \begin_layout Plain Layout
7230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7233 \begin_layout Plain Layout
7239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7242 \begin_layout Plain Layout
7248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7251 \begin_layout Plain Layout
7257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7260 \begin_layout Plain Layout
7266 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7269 \begin_layout Plain Layout
7277 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7280 \begin_layout Plain Layout
7286 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7289 \begin_layout Plain Layout
7295 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7298 \begin_layout Plain Layout
7304 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7307 \begin_layout Plain Layout
7313 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7316 \begin_layout Plain Layout
7330 \begin_layout Standard
7334 \begin_layout Plain Layout
7348 \begin_layout Standard
7349 \begin_inset Note Greyedout
7352 \begin_layout Plain Layout
7357 When the LaTeX-package
7365 \begin_layout Plain Layout
7366 LaTeX-packages ! caption
7371 is used, as in this document, the full page width is used for the caption
7372 when you use the default value of 4
7373 \begin_inset space \thinspace{}
7383 To get in this case exactly a 4
7384 \begin_inset space \thinspace{}
7387 in wide caption, you can either use a value slightly different from 4.0
7388 \begin_inset space \thinspace{}
7392 \begin_inset space \thinspace{}
7396 \begin_inset space \space{}
7400 \begin_inset space \thinspace{}
7403 in, or the LaTeX-command
7407 captionsetup{width=value}
7409 that is provided by the
7421 \begin_layout Subsubsection
7422 Different Captions for Table Pages
7426 \begin_layout Plain Layout
7427 Longtables ! Different Captions for Pages
7435 \begin_layout Standard
7436 When the other captions should differ from the one of the first table page,
7437 insert a caption with a non-empty short title in a dummy caption row marked
7439 The caption used for the other table pages is inserted as caption without
7440 a short title in a dummy caption row that is marked as main header.
7441 When this caption shouldn't include the table number, use the command
7444 \begin_layout Standard
7449 caption*{caption text}
7452 \begin_layout Standard
7453 instead of LyX's caption box.
7454 The label to reference the table is inserted into the caption of the first
7457 \begin_inset space ~
7461 \begin_inset CommandInset ref
7463 reference "tab:DiffCaptions"
7467 is an example for a longtable with different heading where the second caption
7468 doesn't include the table number.
7471 \begin_layout Standard
7473 \begin_inset Tabular
7474 <lyxtabular version="3" rows="60" columns="3">
7475 <features islongtable="true">
7476 <column alignment="left" valignment="top" width="0cm">
7477 <column alignment="left" valignment="top" width="0pt">
7478 <column alignment="center" valignment="top" width="0pt">
7479 <row endfirsthead="true" caption="true">
7480 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7483 \begin_layout Plain Layout
7484 \begin_inset Caption
7486 \begin_layout Plain Layout
7488 \begin_inset CommandInset label
7490 name "tab:DiffCaptions"
7498 \begin_layout Plain Layout
7514 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7517 \begin_layout Plain Layout
7523 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7526 \begin_layout Plain Layout
7533 <row endfirsthead="true">
7534 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7537 \begin_layout Plain Layout
7540 Example Phone List (ignore the names)
7545 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7548 \begin_layout Plain Layout
7554 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7557 \begin_layout Plain Layout
7564 <row endfirsthead="true">
7565 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7568 \begin_layout Plain Layout
7576 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7579 \begin_layout Plain Layout
7585 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7588 \begin_layout Plain Layout
7597 <row endhead="true" caption="true">
7598 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7601 \begin_layout Plain Layout
7605 \begin_layout Plain Layout
7609 caption*{Continued Example Phone List}
7623 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7626 \begin_layout Plain Layout
7632 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7635 \begin_layout Plain Layout
7642 <row endhead="true">
7643 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7646 \begin_layout Plain Layout
7654 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7657 \begin_layout Plain Layout
7663 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7666 \begin_layout Plain Layout
7673 <row endhead="true">
7674 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
7677 \begin_layout Plain Layout
7685 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7688 \begin_layout Plain Layout
7694 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7697 \begin_layout Plain Layout
7706 <row endfoot="true">
7707 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7710 \begin_layout Plain Layout
7711 continued on next page
7716 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7719 \begin_layout Plain Layout
7725 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7728 \begin_layout Plain Layout
7736 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7739 \begin_layout Plain Layout
7747 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7750 \begin_layout Plain Layout
7756 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7759 \begin_layout Plain Layout
7767 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7770 \begin_layout Plain Layout
7778 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7781 \begin_layout Plain Layout
7787 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7790 \begin_layout Plain Layout
7798 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7801 \begin_layout Plain Layout
7809 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7812 \begin_layout Plain Layout
7818 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7821 \begin_layout Plain Layout
7829 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7832 \begin_layout Plain Layout
7840 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7843 \begin_layout Plain Layout
7849 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7852 \begin_layout Plain Layout
7860 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7863 \begin_layout Plain Layout
7871 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7874 \begin_layout Plain Layout
7880 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7883 \begin_layout Plain Layout
7891 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7894 \begin_layout Plain Layout
7902 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7905 \begin_layout Plain Layout
7911 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7914 \begin_layout Plain Layout
7922 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7925 \begin_layout Plain Layout
7933 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7936 \begin_layout Plain Layout
7942 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7945 \begin_layout Plain Layout
7953 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7956 \begin_layout Plain Layout
7964 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7967 \begin_layout Plain Layout
7973 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7976 \begin_layout Plain Layout
7984 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7987 \begin_layout Plain Layout
7995 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7998 \begin_layout Plain Layout
8004 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8007 \begin_layout Plain Layout
8015 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8018 \begin_layout Plain Layout
8026 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8029 \begin_layout Plain Layout
8035 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8038 \begin_layout Plain Layout
8046 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8049 \begin_layout Plain Layout
8057 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8060 \begin_layout Plain Layout
8066 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8069 \begin_layout Plain Layout
8077 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8080 \begin_layout Plain Layout
8088 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8091 \begin_layout Plain Layout
8097 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8100 \begin_layout Plain Layout
8108 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8111 \begin_layout Plain Layout
8119 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8122 \begin_layout Plain Layout
8128 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8131 \begin_layout Plain Layout
8139 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8142 \begin_layout Plain Layout
8150 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8153 \begin_layout Plain Layout
8159 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8162 \begin_layout Plain Layout
8170 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8173 \begin_layout Plain Layout
8182 \begin_layout Plain Layout
8193 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8196 \begin_layout Plain Layout
8202 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8205 \begin_layout Plain Layout
8213 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8216 \begin_layout Plain Layout
8224 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8227 \begin_layout Plain Layout
8233 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8236 \begin_layout Plain Layout
8244 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8247 \begin_layout Plain Layout
8255 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8258 \begin_layout Plain Layout
8264 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8267 \begin_layout Plain Layout
8275 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8278 \begin_layout Plain Layout
8286 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8289 \begin_layout Plain Layout
8295 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8298 \begin_layout Plain Layout
8306 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8309 \begin_layout Plain Layout
8317 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8320 \begin_layout Plain Layout
8326 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8329 \begin_layout Plain Layout
8337 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8340 \begin_layout Plain Layout
8348 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8351 \begin_layout Plain Layout
8357 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8360 \begin_layout Plain Layout
8368 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8371 \begin_layout Plain Layout
8379 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8382 \begin_layout Plain Layout
8388 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8391 \begin_layout Plain Layout
8399 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8402 \begin_layout Plain Layout
8410 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8413 \begin_layout Plain Layout
8419 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8422 \begin_layout Plain Layout
8430 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8433 \begin_layout Plain Layout
8441 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8444 \begin_layout Plain Layout
8450 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8453 \begin_layout Plain Layout
8461 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8464 \begin_layout Plain Layout
8472 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8475 \begin_layout Plain Layout
8481 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8484 \begin_layout Plain Layout
8492 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8495 \begin_layout Plain Layout
8503 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8506 \begin_layout Plain Layout
8512 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8515 \begin_layout Plain Layout
8523 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8526 \begin_layout Plain Layout
8534 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8537 \begin_layout Plain Layout
8543 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8546 \begin_layout Plain Layout
8554 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8557 \begin_layout Plain Layout
8565 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8568 \begin_layout Plain Layout
8574 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8577 \begin_layout Plain Layout
8585 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8588 \begin_layout Plain Layout
8596 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8599 \begin_layout Plain Layout
8605 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8608 \begin_layout Plain Layout
8616 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8619 \begin_layout Plain Layout
8627 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8630 \begin_layout Plain Layout
8636 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8639 \begin_layout Plain Layout
8647 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8650 \begin_layout Plain Layout
8658 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8661 \begin_layout Plain Layout
8667 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8670 \begin_layout Plain Layout
8678 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8681 \begin_layout Plain Layout
8689 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8692 \begin_layout Plain Layout
8698 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8701 \begin_layout Plain Layout
8709 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8712 \begin_layout Plain Layout
8718 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8721 \begin_layout Plain Layout
8727 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8730 \begin_layout Plain Layout
8738 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8741 \begin_layout Plain Layout
8749 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8752 \begin_layout Plain Layout
8758 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8761 \begin_layout Plain Layout
8769 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8772 \begin_layout Plain Layout
8780 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8783 \begin_layout Plain Layout
8789 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8792 \begin_layout Plain Layout
8800 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8803 \begin_layout Plain Layout
8811 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8814 \begin_layout Plain Layout
8820 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8823 \begin_layout Plain Layout
8831 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8834 \begin_layout Plain Layout
8842 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8845 \begin_layout Plain Layout
8851 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8854 \begin_layout Plain Layout
8862 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8865 \begin_layout Plain Layout
8873 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8876 \begin_layout Plain Layout
8882 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8885 \begin_layout Plain Layout
8893 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8896 \begin_layout Plain Layout
8904 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8907 \begin_layout Plain Layout
8913 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8916 \begin_layout Plain Layout
8924 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8927 \begin_layout Plain Layout
8935 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8938 \begin_layout Plain Layout
8944 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8947 \begin_layout Plain Layout
8955 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8958 \begin_layout Plain Layout
8966 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8969 \begin_layout Plain Layout
8975 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8978 \begin_layout Plain Layout
8986 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8989 \begin_layout Plain Layout
8997 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9000 \begin_layout Plain Layout
9006 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9009 \begin_layout Plain Layout
9017 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9020 \begin_layout Plain Layout
9028 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9031 \begin_layout Plain Layout
9037 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9040 \begin_layout Plain Layout
9048 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9051 \begin_layout Plain Layout
9059 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9062 \begin_layout Plain Layout
9068 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9071 \begin_layout Plain Layout
9079 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9082 \begin_layout Plain Layout
9090 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9093 \begin_layout Plain Layout
9099 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9102 \begin_layout Plain Layout
9110 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9113 \begin_layout Plain Layout
9121 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9124 \begin_layout Plain Layout
9130 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9133 \begin_layout Plain Layout
9141 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9144 \begin_layout Plain Layout
9152 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9155 \begin_layout Plain Layout
9161 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9164 \begin_layout Plain Layout
9172 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9175 \begin_layout Plain Layout
9183 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9186 \begin_layout Plain Layout
9192 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9195 \begin_layout Plain Layout
9203 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9206 \begin_layout Plain Layout
9214 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9217 \begin_layout Plain Layout
9223 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9226 \begin_layout Plain Layout
9234 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9237 \begin_layout Plain Layout
9245 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9248 \begin_layout Plain Layout
9254 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9257 \begin_layout Plain Layout
9265 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9268 \begin_layout Plain Layout
9276 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9279 \begin_layout Plain Layout
9285 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9288 \begin_layout Plain Layout
9296 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9299 \begin_layout Plain Layout
9307 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9310 \begin_layout Plain Layout
9316 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9319 \begin_layout Plain Layout
9327 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9330 \begin_layout Plain Layout
9338 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9341 \begin_layout Plain Layout
9347 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9350 \begin_layout Plain Layout
9357 <row endlastfoot="true">
9358 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9361 \begin_layout Plain Layout
9367 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
9370 \begin_layout Plain Layout
9376 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9379 \begin_layout Plain Layout
9393 \begin_layout Section
9394 Special Longtable Issues
9395 \begin_inset CommandInset label
9397 name "sec:Special-Longtable-Issues"
9404 \begin_layout Subsection
9405 Longtable Calculation
9409 \begin_layout Plain Layout
9410 Longtables ! Calculation
9418 \begin_layout Standard
9419 LaTeX calculates the height of table pages and their page breaks using so
9421 Chunks are pieces of the tables that are at once in LaTeX's memory.
9422 The default value is historically set to only 20 table rows.
9423 If you are using longtables with many pages this may slow down the creation
9425 You can safely increase the chunk size to values of 100-1000 by adding
9426 this command line to your document preamble:
9429 \begin_layout Standard
9434 setcounter{LTchunksize}{100}
9437 \begin_layout Subsection
9438 Floats and Longtables
9442 \begin_layout Plain Layout
9451 \begin_layout Standard
9452 There might be problems when a float appears on the same page where a longtable
9454 To avoid such situation, add the command
9460 as TeX-Code before your longtable.
9463 \begin_layout Subsection
9468 \begin_layout Plain Layout
9469 Longtables ! Forced Page Breaks
9477 \begin_layout Standard
9478 By default tables are only broken between rows.
9479 If you have a cell with multiples lines and want to have a page break within
9480 the cell, insert the new line command
9481 \begin_inset Quotes eld
9493 \begin_inset Quotes erd
9496 as TeX-Code at this point of the cell where it can be broken.
9505 command you have to insert in TeX-Code so many
9506 \begin_inset Quotes eld
9514 \begin_inset Quotes erd
9517 characters like the number of the following table columns.
9522 is the character to separate table cells.
9523 Write in TeX-Code after each
9527 the content of the corresponding following cell and delete the content
9529 \begin_inset Newline newline
9540 command, insert so many
9544 characters like the number of table columns before the current column.
9546 \begin_inset space ~
9550 \begin_inset CommandInset ref
9552 reference "tab:ForcedPagebreak"
9556 the cell that should be broken is in the second column followed by another
9558 Therefore the following command was inserted in the cell as TeX-Code behind
9560 \begin_inset Quotes eld
9568 \begin_inset Quotes erd
9574 \begin_layout Standard
9584 \begin_inset Newline newline
9590 \begin_layout Standard
9592 \begin_inset Quotes eld
9596 \begin_inset Quotes erd
9599 in the third columns of the row was deleted.
9606 is only needed when a page break should definitively occur at this position,
9607 otherwise it is only a possibility to break.
9608 If your footer row of the longtable has for a certain reason no upper line
9609 but you would have a horizontal line where the cell is broken, use this
9613 \begin_layout Standard
9621 \begin_inset Newline newline
9629 \begin_layout Standard
9630 When the cell to be broken is in the last column, the command
9633 \begin_layout Standard
9643 \begin_layout Standard
9644 must be inserted as TeX-Code at the beginning of the cell.
9645 This assures that the part of the cell that will be displayed on the new
9646 page appears with the full width.
9649 \begin_layout Standard
9651 \begin_inset Tabular
9652 <lyxtabular version="3" rows="39" columns="3">
9653 <features islongtable="true">
9654 <column alignment="left" valignment="top" width="0cm">
9655 <column alignment="left" valignment="top" width="3cm">
9656 <column alignment="center" valignment="top" width="0pt">
9657 <row endfirsthead="true" caption="true">
9658 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9661 \begin_layout Plain Layout
9662 \begin_inset Caption
9664 \begin_layout Plain Layout
9665 Table with forced page break in table cell
9666 \begin_inset CommandInset label
9668 name "tab:ForcedPagebreak"
9676 \begin_layout Plain Layout
9677 Table with forced page break in table cell
9692 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9695 \begin_layout Plain Layout
9701 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9704 \begin_layout Plain Layout
9711 <row endfirsthead="true">
9712 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9715 \begin_layout Plain Layout
9718 Example Phone List (ignore the names)
9723 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9726 \begin_layout Plain Layout
9732 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9735 \begin_layout Plain Layout
9742 <row endfirsthead="true">
9743 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9746 \begin_layout Plain Layout
9754 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9757 \begin_layout Plain Layout
9763 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9766 \begin_layout Plain Layout
9775 <row endhead="true" caption="true">
9776 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9779 \begin_layout Plain Layout
9783 \begin_layout Plain Layout
9787 caption*{Continued table with forced page break in table cell}
9801 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9804 \begin_layout Plain Layout
9810 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9813 \begin_layout Plain Layout
9820 <row endhead="true">
9821 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9824 \begin_layout Plain Layout
9832 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9835 \begin_layout Plain Layout
9841 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9844 \begin_layout Plain Layout
9851 <row endhead="true">
9852 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9855 \begin_layout Plain Layout
9863 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9866 \begin_layout Plain Layout
9872 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9875 \begin_layout Plain Layout
9884 <row endfoot="true">
9885 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9888 \begin_layout Plain Layout
9889 continued on next page
9894 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9897 \begin_layout Plain Layout
9903 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9906 \begin_layout Plain Layout
9914 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9917 \begin_layout Plain Layout
9925 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9928 \begin_layout Plain Layout
9934 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9937 \begin_layout Plain Layout
9945 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9948 \begin_layout Plain Layout
9956 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9959 \begin_layout Plain Layout
9965 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9968 \begin_layout Plain Layout
9976 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9979 \begin_layout Plain Layout
9987 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9990 \begin_layout Plain Layout
9996 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9999 \begin_layout Plain Layout
10007 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10010 \begin_layout Plain Layout
10018 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10021 \begin_layout Plain Layout
10027 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10030 \begin_layout Plain Layout
10038 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10041 \begin_layout Plain Layout
10049 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10052 \begin_layout Plain Layout
10058 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10061 \begin_layout Plain Layout
10069 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10072 \begin_layout Plain Layout
10080 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10083 \begin_layout Plain Layout
10089 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10092 \begin_layout Plain Layout
10100 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10103 \begin_layout Plain Layout
10111 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10114 \begin_layout Plain Layout
10120 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10123 \begin_layout Plain Layout
10131 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10134 \begin_layout Plain Layout
10142 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10145 \begin_layout Plain Layout
10151 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10154 \begin_layout Plain Layout
10162 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10165 \begin_layout Plain Layout
10173 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10176 \begin_layout Plain Layout
10182 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10185 \begin_layout Plain Layout
10193 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10196 \begin_layout Plain Layout
10204 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10207 \begin_layout Plain Layout
10213 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10216 \begin_layout Plain Layout
10224 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10227 \begin_layout Plain Layout
10235 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10238 \begin_layout Plain Layout
10244 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10247 \begin_layout Plain Layout
10255 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10258 \begin_layout Plain Layout
10266 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10269 \begin_layout Plain Layout
10275 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10278 \begin_layout Plain Layout
10286 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10289 \begin_layout Plain Layout
10297 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10300 \begin_layout Plain Layout
10306 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10309 \begin_layout Plain Layout
10317 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10320 \begin_layout Plain Layout
10328 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10331 \begin_layout Plain Layout
10337 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10340 \begin_layout Plain Layout
10348 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10351 \begin_layout Plain Layout
10359 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10362 \begin_layout Plain Layout
10368 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10371 \begin_layout Plain Layout
10379 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10382 \begin_layout Plain Layout
10390 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10393 \begin_layout Plain Layout
10399 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10402 \begin_layout Plain Layout
10410 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10413 \begin_layout Plain Layout
10421 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10424 \begin_layout Plain Layout
10430 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10433 \begin_layout Plain Layout
10441 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10444 \begin_layout Plain Layout
10452 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10455 \begin_layout Plain Layout
10461 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10464 \begin_layout Plain Layout
10472 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10475 \begin_layout Plain Layout
10483 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10486 \begin_layout Plain Layout
10492 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10495 \begin_layout Plain Layout
10503 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10506 \begin_layout Plain Layout
10514 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10517 \begin_layout Plain Layout
10523 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10526 \begin_layout Plain Layout
10534 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10537 \begin_layout Plain Layout
10545 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10548 \begin_layout Plain Layout
10554 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10557 \begin_layout Plain Layout
10565 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10568 \begin_layout Plain Layout
10576 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10579 \begin_layout Plain Layout
10585 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10588 \begin_layout Plain Layout
10596 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10599 \begin_layout Plain Layout
10607 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10610 \begin_layout Plain Layout
10612 Fürst von Montecompatri, 11.
10613 Fürst von Sulmona und Vivaro, 10.
10614 Fürst von Rossano, 5.
10615 Herzog von Canemorte, 11.
10616 Herzog von Palombara, 5.
10617 Herzog von Castelchiodato,
10621 \begin_layout Plain Layout
10632 \begin_layout Plain Layout
10640 Herzog von Poggionativo, 11.
10641 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10642 Graf von Valinfreda, 11.
10643 Baron von Cropalati, 11.
10644 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10649 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10652 \begin_layout Plain Layout
10660 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10663 \begin_layout Plain Layout
10671 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10674 \begin_layout Plain Layout
10680 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10683 \begin_layout Plain Layout
10691 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10694 \begin_layout Plain Layout
10702 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10705 \begin_layout Plain Layout
10711 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10714 \begin_layout Plain Layout
10722 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10725 \begin_layout Plain Layout
10733 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10736 \begin_layout Plain Layout
10742 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10745 \begin_layout Plain Layout
10753 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10756 \begin_layout Plain Layout
10764 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10767 \begin_layout Plain Layout
10773 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10776 \begin_layout Plain Layout
10784 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10787 \begin_layout Plain Layout
10795 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10798 \begin_layout Plain Layout
10804 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10807 \begin_layout Plain Layout
10815 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10818 \begin_layout Plain Layout
10826 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10829 \begin_layout Plain Layout
10835 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10838 \begin_layout Plain Layout
10846 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10849 \begin_layout Plain Layout
10857 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10860 \begin_layout Plain Layout
10866 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10869 \begin_layout Plain Layout
10877 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10880 \begin_layout Plain Layout
10888 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10891 \begin_layout Plain Layout
10897 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10900 \begin_layout Plain Layout
10907 <row endlastfoot="true">
10908 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
10911 \begin_layout Plain Layout
10917 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10920 \begin_layout Plain Layout
10926 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
10929 \begin_layout Plain Layout
10943 \begin_layout Section
10944 Multiple Lines Columns and Rows
10947 \begin_layout Subsection
10948 Multiple Lines in Table Cells
10949 \begin_inset CommandInset label
10951 name "sub:Multiple-Lines-in"
10959 \begin_layout Plain Layout
10960 Multiple Lines in Table Cells
10969 \begin_layout Plain Layout
10978 \begin_layout Standard
10980 \begin_inset Float table
10986 \begin_layout Plain Layout
10987 \begin_inset Caption
10989 \begin_layout Plain Layout
10990 \begin_inset CommandInset label
10992 name "tab:Table-with-multiple"
10996 Table with multiple lines in cells
11004 \begin_layout Plain Layout
11006 \begin_inset Tabular
11007 <lyxtabular version="3" rows="3" columns="3">
11009 <column alignment="center" valignment="middle" width="2.5cm">
11010 <column alignment="center" valignment="middle" width="0">
11011 <column alignment="center" valignment="middle" width="0">
11013 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11016 \begin_layout Plain Layout
11018 \begin_inset Newline linebreak
11026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11029 \begin_layout Plain Layout
11035 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11038 \begin_layout Plain Layout
11046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11049 \begin_layout Plain Layout
11055 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11058 \begin_layout Plain Layout
11064 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11067 \begin_layout Plain Layout
11075 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11078 \begin_layout Plain Layout
11084 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11087 \begin_layout Plain Layout
11093 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11096 \begin_layout Plain Layout
11115 \begin_layout Standard
11116 Adjusting a fixed width for a column, enables to enter text as a paragraph
11117 with multiple lines and hyphenations.
11120 \begin_layout Standard
11122 \begin_inset space ~
11126 \begin_inset CommandInset ref
11128 reference "tab:Table-with-multiple"
11132 , create a 3×3 table, mark the first cell and right-click on it.
11133 In the appearing table dialog we set a cell width of 2.5
11134 \begin_inset space \thinspace{}
11137 cm and choose centered for the vertical and horizontal alignment.
11138 The vertical alignment is used for all cells of the row.
11139 As our text is smaller than than 2.5
11140 \begin_inset space \thinspace{}
11143 cm, only one line will appear.
11144 To get two lines, a justified line break (shortcut
11147 arg "newline-insert linebreak"
11151 If the text is wider than the set cell width, it will automatically be
11152 broken to several lines.
11155 \begin_layout Standard
11156 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11157 by LaTeX if it is the first entry.
11158 Therefore you need to insert something, to make the word not being the
11160 So add a horizontal space of 0
11161 \begin_inset space \thinspace{}
11164 pt before the word.
11165 As the space is zero, it doesn't change the output.
11167 \begin_inset space ~
11171 \begin_inset CommandInset ref
11173 reference "tab:Table-with-and"
11180 \begin_layout Standard
11181 \begin_inset Float table
11187 \begin_layout Plain Layout
11188 \begin_inset Caption
11190 \begin_layout Plain Layout
11191 \begin_inset CommandInset label
11193 name "tab:Table-with-and"
11197 Table with and without hyphenation
11205 \begin_layout Plain Layout
11206 \begin_inset space \hfill{}
11210 \begin_inset Tabular
11211 <lyxtabular version="3" rows="3" columns="3">
11213 <column alignment="center" valignment="middle" width="2.5cm">
11214 <column alignment="center" valignment="middle" width="0">
11215 <column alignment="center" valignment="middle" width="0">
11217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11220 \begin_layout Plain Layout
11221 verylongtablecellword
11226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11229 \begin_layout Plain Layout
11235 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11238 \begin_layout Plain Layout
11246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11249 \begin_layout Plain Layout
11255 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11258 \begin_layout Plain Layout
11264 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11267 \begin_layout Plain Layout
11275 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11278 \begin_layout Plain Layout
11284 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11287 \begin_layout Plain Layout
11293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11296 \begin_layout Plain Layout
11308 \begin_inset space \hfill{}
11312 \begin_inset Tabular
11313 <lyxtabular version="3" rows="3" columns="3">
11315 <column alignment="center" valignment="middle" width="2.5cm">
11316 <column alignment="center" valignment="middle" width="0">
11317 <column alignment="center" valignment="middle" width="0">
11319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11322 \begin_layout Plain Layout
11323 \begin_inset space \hspace{}
11327 verylongtablecellword
11332 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11335 \begin_layout Plain Layout
11341 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11344 \begin_layout Plain Layout
11352 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11355 \begin_layout Plain Layout
11361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11364 \begin_layout Plain Layout
11370 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11373 \begin_layout Plain Layout
11381 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11384 \begin_layout Plain Layout
11390 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11393 \begin_layout Plain Layout
11399 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11402 \begin_layout Plain Layout
11414 \begin_inset space \hfill{}
11425 \begin_layout Subsection
11427 \begin_inset CommandInset label
11429 name "sub:Multicolumns"
11437 \begin_layout Plain Layout
11447 \begin_layout Plain Layout
11448 Table ! Multicolumns
11456 \begin_layout Subsubsection
11460 \begin_layout Standard
11461 To span a cell over multiple columns, mark as much cells within a line that
11462 should be one spanned cell and use either the table-toolbar button
11463 \begin_inset Graphics
11464 filename ../images/tabular-feature_multicolumn.png
11466 scaleBeforeRotation
11472 Edit\SpecialChar \menuseparator
11473 Table\SpecialChar \menuseparator
11476 , or right click on the marked cells and choose multicolumn in the appearing
11477 table dialog under the tab
11484 \begin_layout Standard
11485 Multicolumns have there own cell settings.
11486 That means changing cell borders, cell alignment, and the width only affects
11488 Here is an example table with a multicolumn cell in the first row and one
11489 in the last row without the upper border:
11492 \begin_layout Standard
11494 \begin_inset Tabular
11495 <lyxtabular version="3" rows="3" columns="4">
11496 <features firstHeadTopDL="true" firstHeadBottomDL="true">
11497 <column alignment="center" valignment="top" width="0pt">
11498 <column alignment="center" valignment="middle" width="0">
11499 <column alignment="center" valignment="top" width="0in">
11500 <column alignment="center" valignment="top" width="0pt">
11502 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11505 \begin_layout Plain Layout
11511 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11514 \begin_layout Plain Layout
11520 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11523 \begin_layout Plain Layout
11529 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11532 \begin_layout Plain Layout
11540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11543 \begin_layout Plain Layout
11558 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11561 \begin_layout Plain Layout
11567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11570 \begin_layout Plain Layout
11576 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11579 \begin_layout Plain Layout
11587 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11590 \begin_layout Plain Layout
11596 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11599 \begin_layout Plain Layout
11605 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11608 \begin_layout Plain Layout
11614 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11617 \begin_layout Plain Layout
11631 \begin_layout Subsubsection
11632 Multicolumn Calculations
11633 \begin_inset CommandInset label
11635 name "sub:Multicolumn-Calculations"
11643 \begin_layout Plain Layout
11644 Multicolumns ! Calculations
11652 \begin_layout Standard
11653 LyX supports multicolumns directly, but we have to take notice of the cell
11654 width of the columns spanned by the multicolumn cell.
11657 \begin_layout Standard
11658 \begin_inset Float table
11664 \begin_layout Plain Layout
11665 \begin_inset Caption
11667 \begin_layout Plain Layout
11668 \begin_inset CommandInset label
11670 name "tab:Table-with-centered"
11674 Table with centered multicolumn text above two columns that have exactly
11675 half the width of the multicolumn cell
11676 \begin_inset OptArg
11679 \begin_layout Plain Layout
11680 Perfect multicolumn table
11693 \begin_layout Plain Layout
11695 \begin_inset Tabular
11696 <lyxtabular version="3" rows="3" columns="3">
11698 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11699 <column alignment="center" valignment="middle" width="0">
11700 <column alignment="center" valignment="top" width="0">
11702 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11705 \begin_layout Plain Layout
11706 multiple lines multicolumn
11711 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11714 \begin_layout Plain Layout
11720 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11723 \begin_layout Plain Layout
11731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11734 \begin_layout Plain Layout
11740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11743 \begin_layout Plain Layout
11749 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11752 \begin_layout Plain Layout
11760 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11763 \begin_layout Plain Layout
11769 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11772 \begin_layout Plain Layout
11778 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11781 \begin_layout Plain Layout
11800 \begin_layout Standard
11801 To create for example Table
11802 \begin_inset space ~
11806 \begin_inset CommandInset ref
11808 reference "tab:Table-with-centered"
11812 , mark the first two cells in the first row of a 3×3 table and right-click
11814 Now choose for this cell
11823 \begin_inset space \thinspace{}
11826 cm in the table dialog.
11827 The spanned columns should have exactly half the width of the multicolumn
11828 cell, so that you would adjust a width of 1.25
11829 \begin_inset space \thinspace{}
11832 cm for the first column.
11833 The second column has then automatically a width of 1.25
11834 \begin_inset space \thinspace{}
11837 cm (multicolumn width - width of first column).
11838 This was done for Table
11839 \begin_inset space ~
11843 \begin_inset CommandInset ref
11845 reference "tab:Table-without-half"
11852 \begin_layout Standard
11853 \begin_inset Float table
11858 \begin_layout Plain Layout
11859 \begin_inset Caption
11861 \begin_layout Plain Layout
11862 \begin_inset CommandInset label
11864 name "tab:Table-without-half"
11868 Table where the spanned table columns have not exactly half the width of
11869 the multicolumn cell
11870 \begin_inset OptArg
11873 \begin_layout Plain Layout
11874 Imperfect multicolumn table
11887 \begin_layout Plain Layout
11889 \begin_inset Tabular
11890 <lyxtabular version="3" rows="3" columns="3">
11892 <column alignment="center" valignment="top" width="1.25cm">
11893 <column alignment="center" valignment="top" width="0">
11894 <column alignment="center" valignment="top" width="0">
11896 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11899 \begin_layout Plain Layout
11900 multiple lines multicolumn
11905 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11908 \begin_layout Plain Layout
11914 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11917 \begin_layout Plain Layout
11925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11928 \begin_layout Plain Layout
11934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11937 \begin_layout Plain Layout
11943 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11946 \begin_layout Plain Layout
11954 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11957 \begin_layout Plain Layout
11963 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11966 \begin_layout Plain Layout
11972 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11975 \begin_layout Plain Layout
11994 \begin_layout Standard
11995 You can see that the first column has not the half width of the multicolumn
11996 cell, it is a bit bigger.
11997 The reason is that the given width of a cell
11998 \begin_inset Formula $W_{g}$
12001 is not its total width
12002 \begin_inset Formula $W_{\mathrm{tot}}$
12005 because a cell is always a bit larger than its given width.
12007 \begin_inset space ~
12011 \begin_inset CommandInset ref
12013 reference "cha:Explanation-of-Equation"
12017 explains it in detail.
12020 \begin_layout Standard
12021 The needed given width
12022 \begin_inset Formula $W_{g\, n}$
12029 columns are spanned can be calculated, so that each column has a total
12031 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
12035 \begin_inset Formula \begin{equation}
12036 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
12043 \begin_layout Standard
12044 In our case we have
12045 \begin_inset Formula $n=2$
12049 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12052 cm and the default values for the lengths, so that equation
12053 \begin_inset CommandInset ref
12060 \begin_inset Formula \begin{equation}
12061 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
12068 \begin_layout Standard
12069 To enable calculations in LaTeX, the LaTeX-package
12073 must be loaded with the document preamble line
12077 \begin_layout Plain Layout
12078 LaTeX-packages ! calc
12086 \begin_layout Standard
12094 \begin_layout Standard
12095 LyX does not allow to calculate lengths in the width-field of the table
12097 Therefore you have to format the column by inserting a LaTeX-argument in
12099 Here is an overview about the arguments:
12102 \begin_layout Itemize
12107 creates cell with a fixed width, its text is vertically top-aligned
12110 \begin_layout Itemize
12115 creates cell with a fixed width, its text is vertically centered
12118 \begin_layout Itemize
12123 creates cell with a fixed width, its text is vertically bottom-aligned
12126 \begin_layout Standard
12127 By entering a LaTeX-argument, all cell settings set in the table dialog
12131 \begin_layout Standard
12132 \begin_inset Note Greyedout
12135 \begin_layout Plain Layout
12140 Due to a bug, LyX shows the overwritten settings anyway.
12148 \begin_layout Standard
12149 As the text should be horizontally centered, the command
12156 You can now enter the following LaTeX-argument for the first spanned column:
12159 \begin_layout Standard
12164 centering}m{1.25cm-6.2pt}
12167 \begin_layout Standard
12172 means, that the commands inside the braces are applied before the cell
12176 \begin_layout Standard
12177 Although we have chosen centered alignment for the text of the multicolumn
12178 cell, it is still left aligned.
12179 This is because LyX only applies the alignment to single columns.
12180 So we have to use for the multicolumn the LaTeX-argument
12183 \begin_layout Standard
12191 \begin_layout Subsection
12196 \begin_layout Plain Layout
12206 \begin_layout Plain Layout
12215 \begin_layout Standard
12216 In contrary to multicolumns multirows are not yet supported by LyX so a
12217 bit of TeX-Code needs to be used.
12218 To use multirows load the LaTeX-package
12226 \begin_layout Plain Layout
12227 LaTeX-packages ! multirow
12232 in your document preamble with the command
12235 \begin_layout Standard
12240 usepackage{multirow}
12243 \begin_layout Standard
12244 Multirows are created with the command
12247 \begin_layout Standard
12252 multirow{number of rows}{cell width}{cell entry}
12255 \begin_layout Standard
12256 To create the following table:
12259 \begin_layout Standard
12264 \begin_layout Plain Layout
12278 \begin_inset Tabular
12279 <lyxtabular version="3" rows="3" columns="3">
12281 <column alignment="center" valignment="top" width="0">
12282 <column alignment="center" valignment="top" width="0">
12283 <column alignment="center" valignment="top" width="0">
12285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12288 \begin_layout Plain Layout
12294 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12297 \begin_layout Plain Layout
12303 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12306 \begin_layout Plain Layout
12314 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12317 \begin_layout Plain Layout
12321 \begin_layout Plain Layout
12325 multirow{2}{2.5cm}{
12334 \begin_layout Plain Layout
12346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12349 \begin_layout Plain Layout
12355 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12358 \begin_layout Plain Layout
12366 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12369 \begin_layout Plain Layout
12375 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12378 \begin_layout Plain Layout
12384 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12387 \begin_layout Plain Layout
12402 \begin_layout Plain Layout
12418 \begin_layout Standard
12419 create a 3×3 table.
12420 To get rid of the line above the last cell in the first column, the cell
12421 is marked as multicolumn and the upper border is unset.
12422 The multirow is now created in the second row of the first column by inserting
12426 \begin_layout Standard
12431 multirow{2}{2.5cm}{
12434 \begin_layout Standard
12436 According to the command parameters the multirow spans now two rows and
12438 \begin_inset space \thinspace{}
12442 The content of the multirow cell follows outside the TeX-Code box and the
12443 command is finished with a right brace
12447 in another TeX-Code-box behind the text.
12450 \begin_layout Standard
12457 left-aligns its content by default.
12458 To override the default, renew the command
12467 \begin_layout Standard
12479 \begin_layout Standard
12480 in TeX-Code in the document preamble.
12481 Then all entries of multirow cells in the document are centered.
12482 If centering is only needed for several tables, you can renew the command
12483 in an TeX-Code box just before the table instead of the preamble.
12484 If the text should be right-aligned, replace
12497 To return to left-alignment
12506 \begin_layout Section
12508 \begin_inset CommandInset label
12510 name "sec:Formal-Tables"
12518 \begin_layout Plain Layout
12527 \begin_layout Standard
12528 Tables are often typeset in books similar to Table
12529 \begin_inset space ~
12533 \begin_inset CommandInset ref
12535 reference "tab:Example-booktabs-table"
12540 This kind of tables is called
12541 \begin_inset Quotes eld
12549 \begin_inset Quotes erd
12553 To make a table a formal table use the option
12561 tab of the table dialog.
12564 \begin_layout Standard
12565 \begin_inset Float table
12571 \begin_layout Plain Layout
12572 \begin_inset Caption
12574 \begin_layout Plain Layout
12575 \begin_inset CommandInset label
12577 name "tab:Example-booktabs-table"
12581 Example booktabs-table
12589 \begin_layout Plain Layout
12591 \begin_inset Tabular
12592 <lyxtabular version="3" rows="8" columns="4">
12593 <features booktabs="true">
12594 <column alignment="center" valignment="top" width="0">
12595 <column alignment="center" valignment="top" width="0">
12596 <column alignment="center" valignment="top" width="0">
12597 <column alignment="center" valignment="top" width="0">
12599 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12602 \begin_layout Plain Layout
12608 <cell alignment="center" valignment="top" topline="true" usebox="none">
12611 \begin_layout Plain Layout
12613 \begin_inset space \thinspace{}
12621 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
12624 \begin_layout Plain Layout
12626 \begin_inset space \thinspace{}
12634 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12637 \begin_layout Plain Layout
12645 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12648 \begin_layout Plain Layout
12652 \begin_layout Plain Layout
12665 \begin_layout Plain Layout
12674 Detector thickness [µm]
12679 <cell alignment="center" valignment="top" usebox="none">
12682 \begin_layout Plain Layout
12688 <cell alignment="center" valignment="top" usebox="none">
12691 \begin_layout Plain Layout
12697 <cell alignment="center" valignment="top" usebox="none">
12700 \begin_layout Plain Layout
12708 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12711 \begin_layout Plain Layout
12717 <cell alignment="center" valignment="top" topline="true" usebox="none">
12720 \begin_layout Plain Layout
12726 <cell alignment="center" valignment="top" topline="true" usebox="none">
12729 \begin_layout Plain Layout
12735 <cell alignment="center" valignment="top" topline="true" usebox="none">
12738 \begin_layout Plain Layout
12745 <row topspace="default">
12746 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12749 \begin_layout Plain Layout
12750 Spatial resolution [µm]
12755 <cell alignment="center" valignment="top" usebox="none">
12758 \begin_layout Plain Layout
12764 <cell alignment="center" valignment="top" usebox="none">
12767 \begin_layout Plain Layout
12773 <cell alignment="center" valignment="top" usebox="none">
12776 \begin_layout Plain Layout
12783 <row topspace="default">
12784 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12787 \begin_layout Plain Layout
12789 \begin_inset Formula $f_{\mathrm{max}}$
12797 <cell alignment="center" valignment="top" usebox="none">
12800 \begin_layout Plain Layout
12806 <cell alignment="center" valignment="top" usebox="none">
12809 \begin_layout Plain Layout
12815 <cell alignment="center" valignment="top" usebox="none">
12818 \begin_layout Plain Layout
12825 <row topspace="default">
12826 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12829 \begin_layout Plain Layout
12833 \begin_layout Plain Layout
12837 cmidrule(l{10pt}){1-1}
12842 LSF-spatial resolution
12847 <cell alignment="center" valignment="top" usebox="none">
12850 \begin_layout Plain Layout
12856 <cell alignment="center" valignment="top" usebox="none">
12859 \begin_layout Plain Layout
12865 <cell alignment="center" valignment="top" usebox="none">
12868 \begin_layout Plain Layout
12876 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12879 \begin_layout Plain Layout
12885 <cell alignment="center" valignment="top" usebox="none">
12888 \begin_layout Plain Layout
12894 <cell alignment="center" valignment="top" usebox="none">
12897 \begin_layout Plain Layout
12903 <cell alignment="center" valignment="top" usebox="none">
12906 \begin_layout Plain Layout
12914 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12917 \begin_layout Plain Layout
12923 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12926 \begin_layout Plain Layout
12932 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12935 \begin_layout Plain Layout
12941 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12944 \begin_layout Plain Layout
12963 \begin_layout Standard
12964 Spaces to table rows can be added using the
12968 tab of the table dialog as described in section
12969 \begin_inset space ~
12973 \begin_inset CommandInset ref
12975 reference "sub:Row-Spacing"
12982 \begin_layout Standard
12983 In contrary to normal tables, formal tables have no vertical table lines.
12984 The horizontal table lines can be set like for normal tables but they appear
12985 with different width in the output:
12986 \begin_inset Newline newline
12989 The first and the last table line have a default width of 0.08
12990 \begin_inset space \thinspace{}
12993 em while the other lines have a default width of 0.05
12994 \begin_inset space \thinspace{}
13000 \begin_layout Standard
13001 The default widths can be changed with the following preamble lines
13004 \begin_layout Standard
13014 \begin_inset Newline newline
13026 \begin_layout Standard
13027 This example is for the first line, the so called
13032 If you want to change the width for the last line, replace
13041 To change the width for the other lines replace
13050 You can use all units listed in appendix
13051 \begin_inset space ~
13055 \begin_inset CommandInset ref
13057 reference "cha:Units-available-in"
13064 \begin_layout Standard
13065 Lines that don't span over all table columns can be created by setting a
13066 table line for multicolumn cells.
13067 LyX will then internally use the command
13073 to create this line.
13077 \begin_layout Standard
13082 cmidrule[width](trim){startcol-endcol}
13085 \begin_layout Standard
13092 are are currently not supported by LyX so you have to use TeX-Code to be
13100 s can manually be created by inserting the command as TeX-Code as first
13101 cell entry of the first cell of a row.
13102 The line is then drawn in the output above the current row.
13105 \begin_layout Standard
13106 The default for the width is 0.03
13107 \begin_inset space \thinspace{}
13111 Startcol is the number of the column where the line starts and endcol the
13112 column number where the line ends.
13113 The endcol always needs to be specified, also when the line should span
13115 The optional parameter trim could be either
13123 where the trimwidth is also optional.
13124 Using for example the parameter
13128 means that the line is trimmed from its left end by 2
13129 \begin_inset space \thinspace{}
13133 If you don't specify the trimwidth the lines are trimmed by the default
13135 \begin_inset space \thinspace{}
13141 \begin_layout Standard
13142 \begin_inset VSpace bigskip
13146 \begin_inset space ~
13150 \begin_inset CommandInset ref
13152 reference "tab:Example-booktabs-table"
13156 was created using the commands
13159 \begin_layout Standard
13169 \begin_layout Standard
13170 at the beginning of the in the second row and
13173 \begin_layout Standard
13178 cmidrule(l{10pt}){1-1}
13181 \begin_layout Standard
13185 \begin_layout Standard
13186 \begin_inset VSpace bigskip
13192 \begin_layout Standard
13193 You might want to have overlapping
13200 \begin_inset space ~
13204 \begin_inset CommandInset ref
13206 reference "tab:Special-booktabs-table"
13211 This can be achieved with the TeX-Code command
13214 \begin_layout Standard
13222 \begin_layout Standard
13223 The command that was used for the second row of Table
13224 \begin_inset space ~
13228 \begin_inset CommandInset ref
13230 reference "tab:Special-booktabs-table"
13237 \begin_layout Standard
13251 \begin_layout Standard
13252 The command for the sixth row is
13255 \begin_layout Standard
13267 \begin_layout Standard
13268 \begin_inset VSpace bigskip
13274 \begin_layout Standard
13275 If you are anyway not satisfied with the border line spacing, you can use
13276 the following command to produce lines that span over all table columns
13281 \begin_layout Standard
13286 specialrule{width}{space above}{space below}
13289 \begin_layout Standard
13290 For more informations about these specialties, we refer to the manual of
13296 \begin_inset CommandInset citation
13306 \begin_layout Plain Layout
13307 LaTeX-packages ! booktabs
13315 \begin_layout Standard
13316 \begin_inset Float table
13322 \begin_layout Plain Layout
13323 \begin_inset Caption
13325 \begin_layout Plain Layout
13326 \begin_inset CommandInset label
13328 name "tab:Special-booktabs-table"
13332 Special booktabs-table
13340 \begin_layout Plain Layout
13342 \begin_inset Tabular
13343 <lyxtabular version="3" rows="8" columns="4">
13344 <features booktabs="true">
13345 <column alignment="center" valignment="top" width="0">
13346 <column alignment="center" valignment="top" width="0">
13347 <column alignment="center" valignment="top" width="0">
13348 <column alignment="center" valignment="top" width="0">
13350 <cell alignment="center" valignment="top" topline="true" usebox="none">
13353 \begin_layout Plain Layout
13359 <cell alignment="center" valignment="top" topline="true" usebox="none">
13362 \begin_layout Plain Layout
13364 \begin_inset space \thinspace{}
13372 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
13375 \begin_layout Plain Layout
13377 \begin_inset space \thinspace{}
13385 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13388 \begin_layout Plain Layout
13396 <cell alignment="center" valignment="top" usebox="none">
13399 \begin_layout Plain Layout
13403 \begin_layout Plain Layout
13416 \begin_layout Plain Layout
13429 \begin_layout Plain Layout
13442 \begin_layout Plain Layout
13451 Detector thickness [µm]
13456 <cell alignment="center" valignment="top" usebox="none">
13459 \begin_layout Plain Layout
13465 <cell alignment="center" valignment="top" usebox="none">
13468 \begin_layout Plain Layout
13474 <cell alignment="center" valignment="top" usebox="none">
13477 \begin_layout Plain Layout
13485 <cell alignment="center" valignment="top" topline="true" usebox="none">
13488 \begin_layout Plain Layout
13494 <cell alignment="center" valignment="top" topline="true" usebox="none">
13497 \begin_layout Plain Layout
13503 <cell alignment="center" valignment="top" topline="true" usebox="none">
13506 \begin_layout Plain Layout
13512 <cell alignment="center" valignment="top" topline="true" usebox="none">
13515 \begin_layout Plain Layout
13522 <row topspace="default">
13523 <cell alignment="center" valignment="top" usebox="none">
13526 \begin_layout Plain Layout
13527 Spatial resolution [µm]
13532 <cell alignment="center" valignment="top" usebox="none">
13535 \begin_layout Plain Layout
13541 <cell alignment="center" valignment="top" usebox="none">
13544 \begin_layout Plain Layout
13550 <cell alignment="center" valignment="top" usebox="none">
13553 \begin_layout Plain Layout
13560 <row topspace="default">
13561 <cell alignment="center" valignment="top" usebox="none">
13564 \begin_layout Plain Layout
13566 \begin_inset Formula $f_{\mathrm{max}}$
13574 <cell alignment="center" valignment="top" usebox="none">
13577 \begin_layout Plain Layout
13583 <cell alignment="center" valignment="top" usebox="none">
13586 \begin_layout Plain Layout
13592 <cell alignment="center" valignment="top" usebox="none">
13595 \begin_layout Plain Layout
13603 <cell alignment="center" valignment="top" topline="true" usebox="none">
13606 \begin_layout Plain Layout
13610 \begin_layout Plain Layout
13623 \begin_layout Plain Layout
13632 LSF-spatial resolution
13637 <cell alignment="center" valignment="top" topline="true" usebox="none">
13640 \begin_layout Plain Layout
13646 <cell alignment="center" valignment="top" topline="true" usebox="none">
13649 \begin_layout Plain Layout
13655 <cell alignment="center" valignment="top" topline="true" usebox="none">
13658 \begin_layout Plain Layout
13666 <cell alignment="center" valignment="top" usebox="none">
13669 \begin_layout Plain Layout
13675 <cell alignment="center" valignment="top" usebox="none">
13678 \begin_layout Plain Layout
13684 <cell alignment="center" valignment="top" usebox="none">
13687 \begin_layout Plain Layout
13693 <cell alignment="center" valignment="top" usebox="none">
13696 \begin_layout Plain Layout
13704 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13707 \begin_layout Plain Layout
13713 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13716 \begin_layout Plain Layout
13722 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13725 \begin_layout Plain Layout
13731 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13734 \begin_layout Plain Layout
13753 \begin_layout Section
13754 Vertical Table Alignment
13758 \begin_layout Plain Layout
13767 \begin_layout Standard
13768 To align tables vertically in a text line the table must be inside a box.
13769 The box can then be vertically aligned as described in section
13770 \begin_inset space ~
13774 \begin_inset CommandInset ref
13776 reference "sec:Box-Dialog"
13783 \begin_layout Standard
13784 In the following example the tables are inside a minipage
13788 \begin_layout Plain Layout
13789 Minipages are described in section
13790 \begin_inset space ~
13794 \begin_inset CommandInset ref
13796 reference "sec:Minipages"
13805 box that has a width of 15
13806 \begin_inset space \thinspace{}
13812 \begin_layout Itemize
13814 \begin_inset Box Frameless
13823 height_special "totalheight"
13826 \begin_layout Plain Layout
13827 \begin_inset Tabular
13828 <lyxtabular version="3" rows="3" columns="3">
13830 <column alignment="center" valignment="top" width="0">
13831 <column alignment="center" valignment="top" width="0">
13832 <column alignment="center" valignment="top" width="0">
13834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13837 \begin_layout Plain Layout
13843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13846 \begin_layout Plain Layout
13852 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13855 \begin_layout Plain Layout
13863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13866 \begin_layout Plain Layout
13872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13875 \begin_layout Plain Layout
13881 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13884 \begin_layout Plain Layout
13892 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13895 \begin_layout Plain Layout
13901 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13904 \begin_layout Plain Layout
13910 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13913 \begin_layout Plain Layout
13933 \begin_layout Plain Layout
13945 \begin_inset Box Frameless
13954 height_special "totalheight"
13957 \begin_layout Plain Layout
13958 \begin_inset Tabular
13959 <lyxtabular version="3" rows="3" columns="3">
13961 <column alignment="center" valignment="top" width="0">
13962 <column alignment="center" valignment="top" width="0">
13963 <column alignment="center" valignment="top" width="0">
13965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13968 \begin_layout Plain Layout
13974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13977 \begin_layout Plain Layout
13983 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13986 \begin_layout Plain Layout
13994 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13997 \begin_layout Plain Layout
14003 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14006 \begin_layout Plain Layout
14012 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14015 \begin_layout Plain Layout
14023 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14026 \begin_layout Plain Layout
14032 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14035 \begin_layout Plain Layout
14041 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14044 \begin_layout Plain Layout
14064 \begin_layout Plain Layout
14074 \begin_layout Itemize
14076 \begin_inset Box Frameless
14085 height_special "totalheight"
14088 \begin_layout Plain Layout
14089 \begin_inset Tabular
14090 <lyxtabular version="3" rows="3" columns="3">
14092 <column alignment="center" valignment="top" width="0">
14093 <column alignment="center" valignment="top" width="0">
14094 <column alignment="center" valignment="top" width="0">
14096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14099 \begin_layout Plain Layout
14105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14108 \begin_layout Plain Layout
14114 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14117 \begin_layout Plain Layout
14125 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14128 \begin_layout Plain Layout
14134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14137 \begin_layout Plain Layout
14143 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14146 \begin_layout Plain Layout
14154 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14157 \begin_layout Plain Layout
14163 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14166 \begin_layout Plain Layout
14172 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14175 \begin_layout Plain Layout
14194 \begin_layout Itemize
14196 \begin_inset Box Frameless
14205 height_special "totalheight"
14208 \begin_layout Plain Layout
14209 \begin_inset Tabular
14210 <lyxtabular version="3" rows="3" columns="3">
14212 <column alignment="center" valignment="top" width="0">
14213 <column alignment="center" valignment="top" width="0">
14214 <column alignment="center" valignment="top" width="0">
14216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14219 \begin_layout Plain Layout
14225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14228 \begin_layout Plain Layout
14234 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14237 \begin_layout Plain Layout
14245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14248 \begin_layout Plain Layout
14254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14257 \begin_layout Plain Layout
14263 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14266 \begin_layout Plain Layout
14274 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14277 \begin_layout Plain Layout
14283 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14286 \begin_layout Plain Layout
14292 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14295 \begin_layout Plain Layout
14315 \begin_layout Plain Layout
14327 \begin_inset Box Frameless
14336 height_special "totalheight"
14339 \begin_layout Plain Layout
14340 \begin_inset Tabular
14341 <lyxtabular version="3" rows="3" columns="3">
14343 <column alignment="center" valignment="top" width="0">
14344 <column alignment="center" valignment="top" width="0">
14345 <column alignment="center" valignment="top" width="0">
14347 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14350 \begin_layout Plain Layout
14356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14359 \begin_layout Plain Layout
14365 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14368 \begin_layout Plain Layout
14376 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14379 \begin_layout Plain Layout
14385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14388 \begin_layout Plain Layout
14394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14397 \begin_layout Plain Layout
14405 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14408 \begin_layout Plain Layout
14414 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14417 \begin_layout Plain Layout
14423 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14426 \begin_layout Plain Layout
14446 \begin_layout Plain Layout
14456 \begin_layout Standard
14457 As you can see, the content of the first and last table row is not correctly
14458 aligned with the text line where the table is in.
14459 To get this alignment, the minipage box must be set into a raisebox
14463 \begin_layout Plain Layout
14464 Raiseboxes are described in section
14465 \begin_inset space ~
14469 \begin_inset CommandInset ref
14471 reference "sub:Vertical-Alignment"
14481 In the example above the second table in the first item is aligned using
14482 the TeX-Code-command
14485 \begin_layout Standard
14495 \begin_layout Standard
14497 Behind the box the closing brace
14501 is inserted as TeX-Code.
14502 For the second table in the last item the command
14505 \begin_layout Standard
14515 \begin_layout Standard
14519 \begin_layout Standard
14520 \begin_inset Note Greyedout
14523 \begin_layout Plain Layout
14528 The alignment of the table row content to the surrounding text line is
14530 The needed factor of the
14536 command for this alignment depends on the document font, the font size,
14537 and the table line thickness.
14545 \begin_layout Section
14547 \begin_inset CommandInset label
14549 name "sec:Colored-Tables"
14557 \begin_layout Plain Layout
14566 \begin_layout Subsection
14571 \begin_layout Plain Layout
14572 Table Color ! for Cells
14581 \begin_layout Plain Layout
14582 Color ! for Table Cells
14590 \begin_layout Standard
14591 \begin_inset Float table
14597 \begin_layout Plain Layout
14598 \begin_inset Caption
14600 \begin_layout Plain Layout
14601 \begin_inset CommandInset label
14603 name "tab:Table-colored-without"
14607 Table colored without using the package
14612 \begin_inset OptArg
14615 \begin_layout Plain Layout
14616 Table without colortbl
14629 \begin_layout Plain Layout
14631 \begin_inset Tabular
14632 <lyxtabular version="3" rows="3" columns="3">
14634 <column alignment="center" valignment="top" width="0">
14635 <column alignment="center" valignment="top" width="0">
14636 <column alignment="center" valignment="top" width="0">
14638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14641 \begin_layout Plain Layout
14649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14652 \begin_layout Plain Layout
14660 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14663 \begin_layout Plain Layout
14673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14676 \begin_layout Plain Layout
14684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14687 \begin_layout Plain Layout
14695 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14698 \begin_layout Plain Layout
14708 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14711 \begin_layout Plain Layout
14719 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14722 \begin_layout Plain Layout
14730 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14733 \begin_layout Plain Layout
14754 \begin_layout Standard
14755 If you only need colored text, mark the cells and choose a color in the
14758 Edit\SpecialChar \menuseparator
14760 \begin_inset space ~
14766 This was used to create Table
14767 \begin_inset space ~
14771 \begin_inset CommandInset ref
14773 reference "tab:Table-colored-without"
14778 In any other case you have to use the LaTeX-package
14786 \begin_layout Plain Layout
14787 LaTeX-packages ! colortbl
14795 \begin_layout Standard
14799 \begin_layout Plain Layout
14809 \begin_inset Note Note
14812 \begin_layout Plain Layout
14813 The following section part will only be displayed when the LaTeX-package
14826 \begin_layout Standard
14827 To create colored tables,
14831 must be loaded in the preamble with the line
14834 \begin_layout Standard
14839 usepackage{colortbl}
14842 \begin_layout Standard
14843 The color of a column is adjusted with the command
14846 \begin_layout Standard
14851 columncolor{name of color}
14854 \begin_layout Standard
14860 More about the command
14864 is described in section
14865 \begin_inset space ~
14869 \begin_inset CommandInset ref
14871 reference "sub:Multicolumn-Calculations"
14878 \begin_layout Standard
14879 The following color names are predefined:
14882 \begin_layout Standard
14916 \begin_layout Standard
14917 \begin_inset VSpace medskip
14923 \begin_layout Standard
14924 You can also define your own color with the command
14927 \begin_layout Standard
14932 definecolor{color name}{color model}{color values}
14935 \begin_layout Standard
14936 The color model can be
14939 \begin_layout Labeling
14940 \labelwidthstring 00.00.0000
14941 cmyk: cyan, magenta, yellow, black
14944 \begin_layout Labeling
14945 \labelwidthstring 00.00.0000
14946 rgb: red, green blue
14949 \begin_layout Labeling
14950 \labelwidthstring 00.00.0000
14954 \begin_layout Standard
14955 and the color values are comma separated numbers between 0 and 1 describing
14956 the factor for the corresponding color of the color model.
14959 \begin_layout Standard
14961 \begin_inset space \thinspace{}
14965 \begin_inset space \space{}
14972 " in the preamble with
14975 \begin_layout Standard
14980 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14983 \begin_layout Standard
14991 \begin_layout Standard
14996 definecolor{lightgray}{gray}{0.8}
14999 \begin_layout Standard
15000 \begin_inset VSpace medskip
15006 \begin_layout Standard
15007 Lines are colored with the command
15010 \begin_layout Standard
15015 rowcolor{name of color}
15018 \begin_layout Standard
15019 and cells are colored with the command
15022 \begin_layout Standard
15027 cellcolor{name of color}
15030 \begin_layout Standard
15031 Both commands are inserted at the beginning of a cell as TeX-Code.
15034 \begin_layout Standard
15035 To color characters in the table, mark the cells and use the LyX menu
15037 Edit\SpecialChar \menuseparator
15039 \begin_inset space ~
15045 If a cell contains TeX-Code mark only the characters, otherwise the colored
15046 TeX-Code will cause LaTeX-errors.
15049 \begin_layout Standard
15050 \begin_inset Note Greyedout
15053 \begin_layout Plain Layout
15058 Not all DVI-viewers are able to display self-defined colors.
15066 \begin_layout Standard
15067 \begin_inset VSpace bigskip
15073 \begin_layout Standard
15075 \begin_inset space ~
15079 \begin_inset CommandInset ref
15081 reference "tab:Table-colored-using"
15085 do the following: The color of the first column should be
15093 \begin_layout Standard
15098 columncolor{darkgreen}
15103 \begin_layout Standard
15104 as LaTeX-argument for this column.
15105 The first row should be blue, therefore the TeX-Code command
15108 \begin_layout Standard
15116 \begin_layout Standard
15117 is inserted to the first cell of this row.
15118 Note that this overwrites the column color for the first cell.
15119 The last cell of the last row is colored magenta by inserting the TeX-Code
15123 \begin_layout Standard
15131 \begin_layout Standard
15132 The characters could now be colored using the menu
15134 Edit\SpecialChar \menuseparator
15136 \begin_inset space ~
15144 \begin_layout Standard
15145 \begin_inset Float table
15151 \begin_layout Plain Layout
15152 \begin_inset Caption
15154 \begin_layout Plain Layout
15155 \begin_inset CommandInset label
15157 name "tab:Table-colored-using"
15161 Table colored using the package
15166 \begin_inset OptArg
15169 \begin_layout Plain Layout
15170 Table with colortbl
15183 \begin_layout Plain Layout
15185 \begin_inset Tabular
15186 <lyxtabular version="3" rows="3" columns="3">
15188 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15189 <column alignment="center" valignment="top" width="0">
15190 <column alignment="center" valignment="top" width="0">
15192 <cell alignment="center" valignment="top" usebox="none">
15195 \begin_layout Plain Layout
15199 \begin_layout Plain Layout
15215 <cell alignment="center" valignment="top" usebox="none">
15218 \begin_layout Plain Layout
15226 <cell alignment="center" valignment="top" usebox="none">
15229 \begin_layout Plain Layout
15239 <cell alignment="center" valignment="top" usebox="none">
15242 \begin_layout Plain Layout
15250 <cell alignment="center" valignment="top" usebox="none">
15253 \begin_layout Plain Layout
15261 <cell alignment="center" valignment="top" usebox="none">
15264 \begin_layout Plain Layout
15274 <cell alignment="center" valignment="top" usebox="none">
15277 \begin_layout Plain Layout
15285 <cell alignment="center" valignment="top" usebox="none">
15288 \begin_layout Plain Layout
15296 <cell alignment="center" valignment="top" usebox="none">
15299 \begin_layout Plain Layout
15303 \begin_layout Plain Layout
15332 \begin_layout Standard
15336 \begin_layout Plain Layout
15346 \begin_inset Note Note
15349 \begin_layout Plain Layout
15350 The following will be displayed when the LaTeX-package
15362 \begin_layout Standard
15363 You need to install the package
15367 to see the content of this section in the output.
15370 \begin_layout Standard
15374 \begin_layout Plain Layout
15386 \begin_layout Subsection
15391 \begin_layout Plain Layout
15392 Table Color ! for Lines
15401 \begin_layout Plain Layout
15402 Color ! for Table Lines
15410 \begin_layout Standard
15411 As described in section
15412 \begin_inset space ~
15416 \begin_inset CommandInset ref
15418 reference "sub:Line-Thickness"
15422 , the line thickness for all lines in a table can be adjusted with the length
15431 \begin_inset space \thinspace{}
15434 pt for all tables of this section.
15438 \begin_layout Plain Layout
15444 arrayrulewidth}{1.5pt}
15452 \begin_layout Standard
15453 To color vertical lines for example with green, create the following column
15454 format in the document preamble, according to the description in section
15455 \begin_inset space ~
15459 \begin_inset CommandInset ref
15461 reference "sub:Customized-Format"
15468 \begin_layout Standard
15473 newcolumntype{W}{!{
15480 \begin_layout Standard
15482 \begin_inset space ~
15486 \begin_inset CommandInset ref
15488 reference "tab:Table-with-vertical-colored"
15496 was used for the last column and
15500 for the other columns.
15503 \begin_layout Standard
15504 If you want to have several colors, define more column formats.
15507 \begin_layout Standard
15508 \begin_inset Float table
15514 \begin_layout Plain Layout
15515 \begin_inset Caption
15517 \begin_layout Plain Layout
15518 \begin_inset CommandInset label
15520 name "tab:Table-with-vertical-colored"
15524 Table with colored vertical lines
15532 \begin_layout Plain Layout
15534 \begin_inset Tabular
15535 <lyxtabular version="3" rows="3" columns="3">
15537 <column alignment="center" valignment="top" width="0" special="Wc">
15538 <column alignment="center" valignment="top" width="0" special="Wc">
15539 <column alignment="center" valignment="top" width="0" special="WcW">
15541 <cell alignment="center" valignment="top" topline="true" usebox="none">
15544 \begin_layout Plain Layout
15550 <cell alignment="center" valignment="top" topline="true" usebox="none">
15553 \begin_layout Plain Layout
15559 <cell alignment="center" valignment="top" topline="true" usebox="none">
15562 \begin_layout Plain Layout
15570 <cell alignment="center" valignment="top" topline="true" usebox="none">
15573 \begin_layout Plain Layout
15579 <cell alignment="center" valignment="top" topline="true" usebox="none">
15582 \begin_layout Plain Layout
15588 <cell alignment="center" valignment="top" topline="true" usebox="none">
15591 \begin_layout Plain Layout
15599 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15602 \begin_layout Plain Layout
15608 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15611 \begin_layout Plain Layout
15617 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15620 \begin_layout Plain Layout
15639 \begin_layout Standard
15640 \begin_inset VSpace bigskip
15643 To color horizontal lines for example with red, like in Table
15644 \begin_inset space ~
15648 \begin_inset CommandInset ref
15650 reference "tab:Table-with-horizontal-colored"
15654 , insert these commands in TeX-Code before the table or table float:
15657 \begin_layout Standard
15667 \begin_inset Newline newline
15675 \begin_inset Newline newline
15682 \begin_layout Plain Layout
15693 arrayrulecolor{red}
15697 arrayrulecolor{black}}
15700 \begin_layout Standard
15704 \begin_layout Plain Layout
15715 \begin_layout Plain Layout
15724 \begin_layout Plain Layout
15728 arrayrulecolor{red}
15732 arrayrulecolor{black}}
15738 \begin_inset Float table
15744 \begin_layout Plain Layout
15745 \begin_inset Caption
15747 \begin_layout Plain Layout
15748 \begin_inset CommandInset label
15750 name "tab:Table-with-horizontal-colored"
15754 Table with colored horizontal lines
15762 \begin_layout Plain Layout
15764 \begin_inset Tabular
15765 <lyxtabular version="3" rows="3" columns="3">
15767 <column alignment="center" valignment="top" width="0">
15768 <column alignment="center" valignment="top" width="0">
15769 <column alignment="center" valignment="top" width="0">
15771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15774 \begin_layout Plain Layout
15780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15783 \begin_layout Plain Layout
15789 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15792 \begin_layout Plain Layout
15800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15803 \begin_layout Plain Layout
15809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15812 \begin_layout Plain Layout
15818 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15821 \begin_layout Plain Layout
15829 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15832 \begin_layout Plain Layout
15838 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15841 \begin_layout Plain Layout
15847 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15850 \begin_layout Plain Layout
15869 \begin_layout Standard
15870 To return to the default line color black, insert this command in TeX-Code
15871 behind the table or table float:
15874 \begin_layout Standard
15886 \begin_layout Standard
15888 \begin_inset space ~
15892 \begin_inset CommandInset ref
15894 reference "tab:Table-with-colored"
15898 is an example with colored vertical and horizontal lines.
15901 \begin_layout Standard
15902 \begin_inset Float table
15908 \begin_layout Plain Layout
15909 \begin_inset Caption
15911 \begin_layout Plain Layout
15912 \begin_inset CommandInset label
15914 name "tab:Table-with-colored"
15918 Table with colored lines
15926 \begin_layout Plain Layout
15928 \begin_inset Tabular
15929 <lyxtabular version="3" rows="3" columns="3">
15931 <column alignment="center" valignment="top" width="0" special="Wc">
15932 <column alignment="center" valignment="top" width="0" special="Wc">
15933 <column alignment="center" valignment="top" width="0" special="WcW">
15935 <cell alignment="center" valignment="top" topline="true" usebox="none">
15938 \begin_layout Plain Layout
15944 <cell alignment="center" valignment="top" topline="true" usebox="none">
15947 \begin_layout Plain Layout
15953 <cell alignment="center" valignment="top" topline="true" usebox="none">
15956 \begin_layout Plain Layout
15964 <cell alignment="center" valignment="top" topline="true" usebox="none">
15967 \begin_layout Plain Layout
15973 <cell alignment="center" valignment="top" topline="true" usebox="none">
15976 \begin_layout Plain Layout
15982 <cell alignment="center" valignment="top" topline="true" usebox="none">
15985 \begin_layout Plain Layout
15992 <row topspace="default">
15993 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15996 \begin_layout Plain Layout
16002 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16005 \begin_layout Plain Layout
16011 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16014 \begin_layout Plain Layout
16033 \begin_layout Standard
16037 \begin_layout Plain Layout
16053 \begin_layout Standard
16057 \begin_layout Plain Layout
16063 arrayrulewidth}{0.4pt}
16071 \begin_layout Section
16072 Table Customization
16076 \begin_layout Plain Layout
16077 Table Customization
16086 \begin_layout Plain Layout
16087 Table ! Customization
16095 \begin_layout Subsection
16097 \begin_inset CommandInset label
16099 name "sub:Row-Spacing"
16107 \begin_layout Plain Layout
16108 Table Customization ! Row Spacing
16116 \begin_layout Standard
16117 You can add vertical space to table rows in the
16121 tab of the table dialog.
16122 You find there three possibilities:
16125 \begin_layout Description
16127 \begin_inset space ~
16131 \begin_inset space ~
16134 row will add space above the characters of the table row.
16135 If the table is a formal table
16139 \begin_layout Plain Layout
16140 Formal tables are explained in section
16141 \begin_inset space ~
16145 \begin_inset CommandInset ref
16147 reference "sec:Formal-Tables"
16156 LyX will insert as default 0.5
16157 \begin_inset space \thinspace{}
16161 For normal tables the inserted space will unfortunately destroy the vertical
16162 table lines as in the following table:
16163 \begin_inset VSpace medskip
16167 \begin_inset Newline newline
16171 \begin_inset space \hspace*{}
16176 \begin_inset space \hfill{}
16180 \begin_inset Tabular
16181 <lyxtabular version="3" rows="3" columns="1">
16183 <column alignment="center" valignment="top" width="0">
16185 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16188 \begin_layout Plain Layout
16195 <row topspace="3mm">
16196 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16199 \begin_layout Plain Layout
16201 \begin_inset space \thinspace{}
16204 mm space top of row
16211 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16214 \begin_layout Plain Layout
16226 \begin_inset space \hfill{}
16230 \begin_inset space \hspace*{}
16235 \begin_inset VSpace medskip
16239 \begin_inset Newline newline
16242 So inserting space to the top of row for normal tables is only useful when
16243 you don't have vertical lines.
16246 \begin_layout Description
16248 \begin_inset space ~
16252 \begin_inset space ~
16255 row will add space below the characters of the table row.
16256 If the table is a formal table LyX will insert as default 0.5
16257 \begin_inset space \thinspace{}
16260 em space, for normal tables the default size is 2
16261 \begin_inset space \thinspace{}
16267 \begin_layout Description
16269 \begin_inset space ~
16272 rows adds space between the current and the following row.
16273 If the table is a formal table LyX will insert as default 0.5
16274 \begin_inset space \thinspace{}
16278 For normal tables the inserted space will unfortunately destroy the vertical
16279 table lines as in the following table:
16280 \begin_inset VSpace medskip
16284 \begin_inset Newline newline
16288 \begin_inset space \hspace*{}
16293 \begin_inset space \hfill{}
16297 \begin_inset Tabular
16298 <lyxtabular version="3" rows="3" columns="1">
16300 <column alignment="center" valignment="top" width="0">
16302 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16305 \begin_layout Plain Layout
16312 <row interlinespace="3mm">
16313 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16316 \begin_layout Plain Layout
16317 \begin_inset Formula $\downarrow$
16321 \begin_inset space \thinspace{}
16324 mm space between row
16325 \begin_inset Formula $\downarrow$
16335 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16338 \begin_layout Plain Layout
16339 \begin_inset Formula $\uparrow$
16343 \begin_inset space \thinspace{}
16346 mm space between row
16347 \begin_inset Formula $\uparrow$
16361 \begin_inset space \hfill{}
16365 \begin_inset space \hspace*{}
16370 \begin_inset VSpace medskip
16374 \begin_inset Newline newline
16377 So inserting space between rows for normal tables is only useful when you
16378 don't have vertical lines.
16381 \begin_layout Standard
16382 \begin_inset VSpace bigskip
16385 When you want to add extra height to all cells of all tables, you can do
16386 this with the following preamble lines:
16389 \begin_layout Standard
16394 @ifundefined{extrarowheight}
16395 \begin_inset Newline newline
16402 \begin_layout Plain Layout
16413 usepackage{array}}{}
16414 \begin_inset Newline newline
16421 extrarowheight}{height}
16424 \begin_layout Standard
16425 But this has the disadvantage that the cell texts are no longer exactly
16426 vertically centered.
16431 will be loaded automatically by LyX when you use self defined table formats.
16432 To avoid that it is loaded twice the command
16438 is used in the above command.)
16441 \begin_layout Standard
16442 In case you are using font sizes larger than the normal size, the table
16443 borders are often too close to the letters.
16444 This can be corrected by inserting the command
16450 in TeX code at the beginning of a table row.
16452 \begin_inset space ~
16456 \begin_inset CommandInset ref
16458 reference "tab:Vertical-alignment-of"
16462 visualizes the effect.
16465 \begin_layout Standard
16467 \begin_inset Float table
16473 \begin_layout Plain Layout
16474 \begin_inset Caption
16476 \begin_layout Plain Layout
16477 \begin_inset CommandInset label
16479 name "tab:Vertical-alignment-of"
16483 Vertical alignment of text with large font sizes.
16491 \begin_layout Plain Layout
16492 \begin_inset space \hfill{}
16496 \begin_inset Float table
16501 \begin_layout Plain Layout
16502 \begin_inset Caption
16504 \begin_layout Plain Layout
16513 \begin_layout Plain Layout
16516 \begin_inset Tabular
16517 <lyxtabular version="3" rows="6" columns="1">
16519 <column alignment="left" valignment="top" width="0">
16521 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16524 \begin_layout Plain Layout
16532 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16535 \begin_layout Plain Layout
16545 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16548 \begin_layout Plain Layout
16558 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16561 \begin_layout Plain Layout
16571 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16574 \begin_layout Plain Layout
16584 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16587 \begin_layout Plain Layout
16606 \begin_inset space \hfill{}
16610 \begin_inset Float table
16615 \begin_layout Plain Layout
16616 \begin_inset Caption
16618 \begin_layout Plain Layout
16619 Table using the command
16633 \begin_layout Plain Layout
16636 \begin_inset Tabular
16637 <lyxtabular version="3" rows="6" columns="1">
16639 <column alignment="left" valignment="top" width="0">
16641 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16644 \begin_layout Plain Layout
16652 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16655 \begin_layout Plain Layout
16661 \begin_layout Plain Layout
16677 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16680 \begin_layout Plain Layout
16686 \begin_layout Plain Layout
16702 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16705 \begin_layout Plain Layout
16711 \begin_layout Plain Layout
16727 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16730 \begin_layout Plain Layout
16736 \begin_layout Plain Layout
16752 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16755 \begin_layout Plain Layout
16761 \begin_layout Plain Layout
16788 \begin_inset space \hfill{}
16799 \begin_layout Subsection
16800 Special Cell Alignment
16804 \begin_layout Plain Layout
16805 Table Customization ! Special Cell Alignment
16813 \begin_layout Standard
16814 Sometimes it looks better when the cell entries of a column are aligned
16815 with a special character, e.
16816 \begin_inset space \thinspace{}
16820 \begin_inset space \space{}
16823 with the decimal separator as in Table
16824 \begin_inset space ~
16828 \begin_inset CommandInset ref
16830 reference "tab:Table-cells-of"
16837 \begin_layout Standard
16838 \begin_inset Float table
16844 \begin_layout Plain Layout
16845 \begin_inset Caption
16847 \begin_layout Plain Layout
16848 \begin_inset CommandInset label
16850 name "tab:Table-cells-of"
16854 Table cells of a column aligned with the decimal separator.
16862 \begin_layout Plain Layout
16864 \begin_inset Tabular
16865 <lyxtabular version="3" rows="4" columns="2">
16867 <column alignment="right" valignment="top" width="0">
16868 <column alignment="left" valignment="top" width="0" special="@{}l">
16870 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16873 \begin_layout Plain Layout
16879 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16882 \begin_layout Plain Layout
16890 <cell alignment="center" valignment="top" usebox="none">
16893 \begin_layout Plain Layout
16899 <cell alignment="center" valignment="top" usebox="none">
16902 \begin_layout Plain Layout
16910 <cell alignment="center" valignment="top" usebox="none">
16913 \begin_layout Plain Layout
16919 <cell alignment="center" valignment="top" usebox="none">
16922 \begin_layout Plain Layout
16930 <cell alignment="center" valignment="top" usebox="none">
16933 \begin_layout Plain Layout
16939 <cell alignment="center" valignment="top" usebox="none">
16942 \begin_layout Plain Layout
16961 \begin_layout Standard
16962 This table was created with a 4×2 table.
16963 The heading is a centered multicolumn.
16964 The first column is right-aligned and contains the digits before the decimal
16965 point and the decimal point.
16966 The second column is left aligned and contains the digits after the decimal
16968 To omit the space that is normally between two table columns, use the following
16969 LaTeX-argument for the second column:
16972 \begin_layout Standard
16978 \begin_layout Standard
16980 \begin_inset space ~
16984 \begin_inset CommandInset ref
16986 reference "tab:Several-table-cell"
16990 shows some example alignments.
16991 For the alignment with the relation sign, you must add the second smallest
16992 math-space at the beginning of the last column to get the correct space
16993 surrounding the relation sign.
16996 \begin_layout Standard
16997 \begin_inset Float table
17002 \begin_layout Plain Layout
17003 \begin_inset Caption
17005 \begin_layout Plain Layout
17006 \begin_inset CommandInset label
17008 name "tab:Several-table-cell"
17012 Several table cell alignments.
17020 \begin_layout Plain Layout
17022 \begin_inset Tabular
17023 <lyxtabular version="3" rows="4" columns="6">
17025 <column alignment="right" valignment="top" width="0">
17026 <column alignment="left" valignment="top" width="0" special="@{}l">
17027 <column alignment="right" valignment="top" width="0">
17028 <column alignment="left" valignment="top" width="0" special="@{}l">
17029 <column alignment="right" valignment="top" width="0">
17030 <column alignment="left" valignment="top" width="0" special="@{}l">
17032 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17035 \begin_layout Plain Layout
17041 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17044 \begin_layout Plain Layout
17050 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17053 \begin_layout Plain Layout
17059 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17062 \begin_layout Plain Layout
17068 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17071 \begin_layout Plain Layout
17077 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17080 \begin_layout Plain Layout
17088 <cell alignment="center" valignment="top" usebox="none">
17091 \begin_layout Plain Layout
17097 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17100 \begin_layout Plain Layout
17102 \begin_inset space \thinspace{}
17110 <cell alignment="center" valignment="top" usebox="none">
17113 \begin_layout Plain Layout
17114 \begin_inset Formula $10\cdot$
17122 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17125 \begin_layout Plain Layout
17126 \begin_inset Formula $10^{\mbox{-}17}$
17134 <cell alignment="center" valignment="top" usebox="none">
17137 \begin_layout Plain Layout
17138 \begin_inset Formula $\Gamma(t)\propto$
17146 <cell alignment="center" valignment="top" usebox="none">
17149 \begin_layout Plain Layout
17150 \begin_inset Formula $\:\Upsilon(t)$
17160 <cell alignment="center" valignment="top" usebox="none">
17163 \begin_layout Plain Layout
17169 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17172 \begin_layout Plain Layout
17174 \begin_inset space \thinspace{}
17182 <cell alignment="center" valignment="top" usebox="none">
17185 \begin_layout Plain Layout
17186 \begin_inset Formula $5.78\cdot$
17194 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17197 \begin_layout Plain Layout
17198 \begin_inset Formula $10^{7}$
17206 <cell alignment="center" valignment="top" usebox="none">
17209 \begin_layout Plain Layout
17210 \begin_inset Formula $A\ne$
17218 <cell alignment="center" valignment="top" usebox="none">
17221 \begin_layout Plain Layout
17222 \begin_inset Formula $\: B_{\mathrm{red}}$
17232 <cell alignment="center" valignment="top" usebox="none">
17235 \begin_layout Plain Layout
17241 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17244 \begin_layout Plain Layout
17246 \begin_inset space \thinspace{}
17254 <cell alignment="center" valignment="top" usebox="none">
17257 \begin_layout Plain Layout
17259 \begin_inset Formula $33.5\cdot$
17267 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17270 \begin_layout Plain Layout
17271 \begin_inset Formula $10^{4}$
17279 <cell alignment="center" valignment="top" usebox="none">
17282 \begin_layout Plain Layout
17283 \begin_inset Formula $\sin(\alpha)\ge$
17291 <cell alignment="center" valignment="top" usebox="none">
17294 \begin_layout Plain Layout
17295 \begin_inset Formula $\:\sin(\beta)$
17316 \begin_layout Standard
17317 \begin_inset VSpace bigskip
17320 There is also the LaTeX-package
17328 \begin_layout Plain Layout
17329 LaTeX-packages ! dcolumn
17334 that provides table cell alignments.
17335 But this unfortunately treats the cell entries as math and doesn't allow
17336 formulas in table cells: The first column of Table
17337 \begin_inset space ~
17341 \begin_inset CommandInset ref
17343 reference "tab:Several-table-cell"
17351 like the first column in Table
17352 \begin_inset space ~
17356 \begin_inset CommandInset ref
17358 reference "tab:Alignments-when"
17362 and only with some tricks like the expected.
17363 The alignment of the second and third column of Table
17364 \begin_inset space ~
17368 \begin_inset CommandInset ref
17370 reference "tab:Several-table-cell"
17374 is not possible with
17381 \begin_layout Standard
17382 \begin_inset Float table
17388 \begin_layout Plain Layout
17389 \begin_inset Caption
17391 \begin_layout Plain Layout
17392 \begin_inset CommandInset label
17394 name "tab:Alignments-when"
17398 Alignments when LaTeX-package dcolumn is used.
17399 For all column alignments tricks have to be used to get the output.
17407 \begin_layout Plain Layout
17409 \begin_inset Tabular
17410 <lyxtabular version="3" rows="4" columns="3">
17412 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
17413 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
17414 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
17416 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17419 \begin_layout Plain Layout
17425 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17428 \begin_layout Plain Layout
17434 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17437 \begin_layout Plain Layout
17445 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17448 \begin_layout Plain Layout
17450 \begin_inset space \thinspace{}
17458 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17461 \begin_layout Plain Layout
17463 \begin_inset space \thinspace{}
17467 \begin_inset Formula $\mbox{bottles}$
17475 <cell alignment="center" valignment="top" usebox="none">
17478 \begin_layout Plain Layout
17483 \begin_layout Plain Layout
17493 \begin_inset Formula $\mbox{bottles}$
17503 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17506 \begin_layout Plain Layout
17508 \begin_inset space \thinspace{}
17516 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17519 \begin_layout Plain Layout
17521 \begin_inset space \thinspace{}
17525 \begin_inset Formula $\mbox{Pixels}$
17533 <cell alignment="center" valignment="top" usebox="none">
17536 \begin_layout Plain Layout
17541 \begin_layout Plain Layout
17551 \begin_inset Formula $\mbox{Pixels}$
17561 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17564 \begin_layout Plain Layout
17566 \begin_inset space \thinspace{}
17574 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17577 \begin_layout Plain Layout
17579 \begin_inset space \thinspace{}
17583 \begin_inset Formula $\mbox{cm}$
17591 <cell alignment="center" valignment="top" usebox="none">
17594 \begin_layout Plain Layout
17599 \begin_layout Plain Layout
17609 \begin_inset Formula $\mbox{cm}$
17630 \begin_layout Subsection
17631 Customized Cell/Column Format
17632 \begin_inset CommandInset label
17634 name "sub:Customized-Format"
17642 \begin_layout Plain Layout
17643 Table Customization ! Cell/Column Format
17651 \begin_layout Standard
17652 Calculating the needed width for spanned columns like in section
17653 \begin_inset space ~
17657 \begin_inset CommandInset ref
17659 reference "sub:Multicolumn-Calculations"
17663 is very annoying if you have several tables with multicolumn cells.
17664 To make life easier, you can define a cell/column format in the preamble,
17665 so that it can be used in all tables of the document.
17666 The format is defined with the command
17669 \begin_layout Standard
17674 newcolumntype{name of format}[number of arguments]{commands}
17677 \begin_layout Standard
17678 The format name may only consist of one letter.
17703 are predefined and cannot be used.
17704 But all letters are allowed as capitals.
17707 \begin_layout Standard
17708 \begin_inset VSpace medskip
17714 \begin_layout Standard
17715 For vertically and horizontally centered multicolumn cells with a fixed
17716 width you can define the cell format
17719 \begin_layout Standard
17724 newcolumntype{M}[1]{>{
17731 \begin_layout Standard
17738 avoids the problem of hyphenating the first word, as described in section
17739 \begin_inset space ~
17743 \begin_inset CommandInset ref
17745 reference "sub:Multiple-Lines-in"
17750 Now you can simply enter
17753 \begin_layout Standard
17759 \begin_layout Standard
17760 as LaTeX-argument in the table dialog to create a multicolumn.
17763 \begin_layout Standard
17764 \begin_inset VSpace bigskip
17770 \begin_layout Standard
17771 For cells spanned by a multicolumn cell, you can define the format
17774 \begin_layout Standard
17779 newcolumntype{S}[2]{>{
17784 \begin_inset Newline newline
17791 \begin_layout Plain Layout
17806 \begin_layout Plain Layout
17817 arrayrulewidth)*(1-#2))/#2}}
17820 \begin_layout Standard
17821 This format uses equation
17822 \begin_inset CommandInset ref
17828 to calculate the needed width so that each spanned cell has the same width.
17831 \begin_layout Standard
17835 \begin_layout Standard
17838 S{width of multicolumn cell}{number of spanned columns}
17841 \begin_layout Standard
17842 as LaTeX-argument of the column.
17845 \begin_layout Standard
17846 \begin_inset VSpace bigskip
17852 \begin_layout Standard
17853 For colored columns, you can define
17856 \begin_layout Standard
17861 newcolumntype{K}[1]{>{
17868 \begin_layout Standard
17870 \begin_inset Quotes eld
17874 \begin_inset Quotes erd
17877 at the end creates a column with a flexible width whose text is horizontally
17882 \begin_layout Standard
17888 \begin_layout Standard
17892 \begin_layout Standard
17893 \begin_inset VSpace bigskip
17899 \begin_layout Standard
17901 \begin_inset space ~
17905 \begin_inset CommandInset ref
17907 reference "tab:Table-using-user-defined"
17911 use the LaTeX-arguments
17914 \begin_layout Standard
17920 \begin_layout Standard
17921 for the first column and the multicolumn,
17924 \begin_layout Standard
17930 \begin_layout Standard
17931 for the the last column, and
17934 \begin_layout Standard
17940 \begin_layout Standard
17941 for the cells in the second column.
17944 \begin_layout Standard
17945 \begin_inset Float table
17951 \begin_layout Plain Layout
17952 \begin_inset Caption
17954 \begin_layout Plain Layout
17955 \begin_inset CommandInset label
17957 name "tab:Table-using-user-defined"
17961 Table using user-defined table formats
17969 \begin_layout Plain Layout
17971 \begin_inset Tabular
17972 <lyxtabular version="3" rows="3" columns="4">
17974 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17975 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17976 <column alignment="center" valignment="middle" width="0">
17977 <column alignment="center" valignment="middle" width="0" special="K{red}">
17979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17982 \begin_layout Plain Layout
17983 verylongtablecellword
17988 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17991 \begin_layout Plain Layout
17992 multiple lines multicolumn
17997 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18000 \begin_layout Plain Layout
18006 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18009 \begin_layout Plain Layout
18017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18020 \begin_layout Plain Layout
18026 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18029 \begin_layout Plain Layout
18035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18038 \begin_layout Plain Layout
18044 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18047 \begin_layout Plain Layout
18055 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18058 \begin_layout Plain Layout
18064 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18067 \begin_layout Plain Layout
18073 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18076 \begin_layout Plain Layout
18082 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18085 \begin_layout Plain Layout
18104 \begin_layout Subsection
18106 \begin_inset CommandInset label
18108 name "sub:Line-Thickness"
18116 \begin_layout Plain Layout
18117 Table Customization ! Line Thickness
18125 \begin_layout Standard
18126 The line thickness for all lines in a table can be adjusted with the length
18134 To set for example a line thickness of 1.5
18135 \begin_inset space \thinspace{}
18139 \begin_inset space ~
18143 \begin_inset CommandInset ref
18145 reference "tab:Table-with-1.5"
18149 , insert the command
18152 \begin_layout Standard
18159 arrayrulewidth}{1.5pt}
18162 \begin_layout Standard
18163 in TeX-Code before the table or table float.
18164 The changed thickness is valid for all following tables.
18165 To use the default value again, set
18172 \begin_inset space \thinspace{}
18175 pt in TeX-Code behind the table or table float.
18178 \begin_layout Standard
18182 \begin_layout Plain Layout
18188 arrayrulewidth}{1.5pt}
18194 \begin_inset Float table
18199 \begin_layout Plain Layout
18200 \begin_inset Caption
18202 \begin_layout Plain Layout
18203 \begin_inset CommandInset label
18205 name "tab:Table-with-1.5"
18210 \begin_inset space \thinspace{}
18221 \begin_layout Plain Layout
18223 \begin_inset Tabular
18224 <lyxtabular version="3" rows="3" columns="3">
18226 <column alignment="center" valignment="top" width="0">
18227 <column alignment="center" valignment="top" width="0">
18228 <column alignment="center" valignment="top" width="0">
18230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18233 \begin_layout Plain Layout
18239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18242 \begin_layout Plain Layout
18248 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18251 \begin_layout Plain Layout
18259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18262 \begin_layout Plain Layout
18268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18271 \begin_layout Plain Layout
18277 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18280 \begin_layout Plain Layout
18288 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18291 \begin_layout Plain Layout
18297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18300 \begin_layout Plain Layout
18306 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18309 \begin_layout Plain Layout
18329 \begin_layout Plain Layout
18335 arrayrulewidth}{0.4pt}
18343 \begin_layout Standard
18344 \begin_inset VSpace bigskip
18347 To set the line thickness to 1.5
18348 \begin_inset space \thinspace{}
18351 pt only for horizontal lines, like in Table
18352 \begin_inset space ~
18356 \begin_inset CommandInset ref
18358 reference "tab:Table-with-horizontal"
18362 , insert these commands in TeX-Code before the table or table float:
18365 \begin_layout Standard
18375 \begin_inset Newline newline
18383 \begin_inset Newline newline
18392 arrayrulewidth 1.5pt}
18393 \begin_inset Newline newline
18404 arrayrulewidth 0.4pt}}
18407 \begin_layout Standard
18408 To return to the default line thickness, insert this command in TeX-Code
18409 behind the table or table float:
18412 \begin_layout Standard
18424 \begin_layout Standard
18428 \begin_layout Plain Layout
18439 \begin_layout Plain Layout
18448 \begin_layout Plain Layout
18456 arrayrulewidth 1.5pt}
18459 \begin_layout Plain Layout
18469 arrayrulewidth 0.4pt}}
18475 \begin_inset Float table
18480 \begin_layout Plain Layout
18481 \begin_inset Caption
18483 \begin_layout Plain Layout
18484 \begin_inset CommandInset label
18486 name "tab:Table-with-horizontal"
18491 \begin_inset space \thinspace{}
18494 pt thick horizontal lines
18502 \begin_layout Plain Layout
18504 \begin_inset Tabular
18505 <lyxtabular version="3" rows="3" columns="3">
18507 <column alignment="center" valignment="top" width="0">
18508 <column alignment="center" valignment="top" width="0">
18509 <column alignment="center" valignment="top" width="0">
18511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18514 \begin_layout Plain Layout
18520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18523 \begin_layout Plain Layout
18529 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18532 \begin_layout Plain Layout
18540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18543 \begin_layout Plain Layout
18549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18552 \begin_layout Plain Layout
18558 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18561 \begin_layout Plain Layout
18569 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18572 \begin_layout Plain Layout
18578 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18581 \begin_layout Plain Layout
18587 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18590 \begin_layout Plain Layout
18610 \begin_layout Plain Layout
18626 \begin_layout Standard
18627 \begin_inset VSpace bigskip
18630 To set the line thickness to 1.5
18631 \begin_inset space \thinspace{}
18634 pt only for vertical lines, create the following column format in the document
18635 preamble, according to the description in section
18636 \begin_inset space ~
18640 \begin_inset CommandInset ref
18642 reference "sub:Customized-Format"
18649 \begin_layout Standard
18654 newcolumntype{V}{!{
18656 vrule width 1.5pt}}
18659 \begin_layout Standard
18661 \begin_inset space ~
18665 \begin_inset CommandInset ref
18667 reference "tab:Table-with-vertical"
18674 \begin_layout Standard
18680 \begin_layout Standard
18681 was used for the last column and
18684 \begin_layout Standard
18690 \begin_layout Standard
18691 for the other columns.
18694 \begin_layout Standard
18695 \begin_inset Float table
18700 \begin_layout Plain Layout
18701 \begin_inset Caption
18703 \begin_layout Plain Layout
18704 \begin_inset CommandInset label
18706 name "tab:Table-with-vertical"
18711 \begin_inset space \thinspace{}
18714 pt thick vertical lines
18722 \begin_layout Plain Layout
18724 \begin_inset Tabular
18725 <lyxtabular version="3" rows="3" columns="3">
18727 <column alignment="center" valignment="top" width="0" special="Vc">
18728 <column alignment="center" valignment="top" width="0" special="Vc">
18729 <column alignment="center" valignment="top" width="0" special="VcV">
18731 <cell alignment="center" valignment="top" topline="true" usebox="none">
18734 \begin_layout Plain Layout
18740 <cell alignment="center" valignment="top" topline="true" usebox="none">
18743 \begin_layout Plain Layout
18749 <cell alignment="center" valignment="top" topline="true" usebox="none">
18752 \begin_layout Plain Layout
18760 <cell alignment="center" valignment="top" topline="true" usebox="none">
18763 \begin_layout Plain Layout
18769 <cell alignment="center" valignment="top" topline="true" usebox="none">
18772 \begin_layout Plain Layout
18778 <cell alignment="center" valignment="top" topline="true" usebox="none">
18781 \begin_layout Plain Layout
18789 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18792 \begin_layout Plain Layout
18798 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18801 \begin_layout Plain Layout
18807 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18810 \begin_layout Plain Layout
18829 \begin_layout Subsection
18834 \begin_layout Plain Layout
18835 Table Customization ! Dashed Lines
18843 \begin_layout Standard
18847 \begin_layout Plain Layout
18857 \begin_inset Note Note
18860 \begin_layout Plain Layout
18861 The following section will only be displayed when the LaTeX-package
18873 \begin_layout Standard
18874 \begin_inset Float table
18880 \begin_layout Plain Layout
18881 \begin_inset Caption
18883 \begin_layout Plain Layout
18884 \begin_inset CommandInset label
18886 name "tab:Table-with-dashed"
18890 Table with dashed lines
18898 \begin_layout Plain Layout
18900 \begin_inset Tabular
18901 <lyxtabular version="3" rows="5" columns="5">
18903 <column alignment="center" valignment="top" width="0">
18904 <column alignment="center" valignment="top" width="0">
18905 <column alignment="center" valignment="top" width="0" special=":c">
18906 <column alignment="center" valignment="top" width="0">
18907 <column alignment="center" valignment="top" width="0">
18909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18912 \begin_layout Plain Layout
18918 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18921 \begin_layout Plain Layout
18927 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18930 \begin_layout Plain Layout
18936 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18939 \begin_layout Plain Layout
18945 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18948 \begin_layout Plain Layout
18956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18959 \begin_layout Plain Layout
18965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18968 \begin_layout Plain Layout
18974 <cell alignment="center" valignment="top" topline="true" usebox="none">
18977 \begin_layout Plain Layout
18983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18986 \begin_layout Plain Layout
18992 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18995 \begin_layout Plain Layout
19003 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19006 \begin_layout Plain Layout
19010 \begin_layout Plain Layout
19024 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19027 \begin_layout Plain Layout
19033 <cell alignment="center" valignment="top" usebox="none">
19036 \begin_layout Plain Layout
19042 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19045 \begin_layout Plain Layout
19051 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
19054 \begin_layout Plain Layout
19062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19065 \begin_layout Plain Layout
19069 \begin_layout Plain Layout
19083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19086 \begin_layout Plain Layout
19092 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
19095 \begin_layout Plain Layout
19101 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19104 \begin_layout Plain Layout
19110 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19113 \begin_layout Plain Layout
19121 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19124 \begin_layout Plain Layout
19130 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19133 \begin_layout Plain Layout
19139 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19142 \begin_layout Plain Layout
19148 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19151 \begin_layout Plain Layout
19157 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19160 \begin_layout Plain Layout
19179 \begin_layout Standard
19180 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
19181 As prerequisite the LaTeX-package
19189 \begin_layout Plain Layout
19190 LaTeX-packages ! arydshln
19195 must be loaded in the document preamble with the command
19198 \begin_layout Standard
19203 usepackage{arydshln}
19206 \begin_layout Standard
19207 To make a vertical line dashed, enter the colon
19208 \begin_inset Quotes eld
19212 \begin_inset Quotes erd
19215 together with the character for the horizontal alignment as LaTeX-argument
19216 in the table cell dialog.
19219 \begin_layout Standard
19220 For a horizontal dashed line add the command
19223 \begin_layout Standard
19231 \begin_layout Standard
19232 in TeX-Code as first element of the first cell in the table row.
19235 \begin_layout Standard
19236 For dashed multicolumn lines use the command
19239 \begin_layout Standard
19244 cdashline{line number
19249 \begin_layout Standard
19250 in TeX-Code as first element of the first cell in the table row.
19251 If you have for example a multicolumn spanning over columns 2 to 4 and
19252 you want to have a dashed line above, add the command
19255 \begin_layout Standard
19263 \begin_layout Standard
19264 as first element of the first cell in the row of the multicolumn.
19267 \begin_layout Standard
19268 \begin_inset VSpace bigskip
19274 \begin_layout Standard
19276 \begin_inset space ~
19280 \begin_inset CommandInset ref
19282 reference "tab:Table-with-dashed"
19287 \begin_inset Quotes eld
19295 \begin_inset Quotes erd
19298 as LaTeX-argument of the third column.
19299 The TeX-Code command
19305 was inserted to the first cell of the third row and the the TeX-Code command
19306 \begin_inset Newline newline
19315 was inserted to the first cell of the fourth row.
19318 \begin_layout Standard
19319 \begin_inset Note Greyedout
19322 \begin_layout Plain Layout
19327 The used LaTeX-package
19331 is apparently not compatible with the LaTeX-package
19339 \begin_layout Plain Layout
19340 LaTeX-packages ! colortbl
19345 that is used for colored tables in section
19346 \begin_inset space ~
19350 \begin_inset CommandInset ref
19352 reference "sec:Colored-Tables"
19357 That means colored tables cannot have dashed lines.
19365 \begin_layout Standard
19369 \begin_layout Plain Layout
19379 \begin_inset Note Note
19382 \begin_layout Plain Layout
19383 The following will be displayed when the LaTeX-package
19395 \begin_layout Standard
19396 You need to install the package
19400 to see the content of this section in the output.
19403 \begin_layout Standard
19407 \begin_layout Plain Layout
19419 \begin_layout Chapter
19424 \begin_layout Plain Layout
19433 \begin_layout Section
19435 \begin_inset CommandInset label
19437 name "sec:FloatIntroduction"
19445 \begin_layout Plain Layout
19446 Floats ! Introduction
19454 \begin_layout Standard
19455 A float is a block of text associated with some sort of label, which doesn't
19456 have a fixed location.
19458 \begin_inset Quotes eld
19462 \begin_inset Quotes erd
19465 forward or backward a page or two, to wherever it fits best.
19473 \begin_inset space ~
19478 are also floats, because they can float to the next page when there are
19479 too many notes at the page.
19482 \begin_layout Standard
19483 Floats allow a high quality layout.
19484 Images and tables can evenly be spread to the pages to avoid white space
19485 and pages without text.
19486 As the floating often destroys the context between the text and the image/table
19487 , every float can be referenced in the text.
19488 Floats are therefore numbered.
19489 Referencing is described in section
19490 \begin_inset space ~
19494 \begin_inset CommandInset ref
19496 reference "sec:Referencing-Floats"
19503 \begin_layout Standard
19504 To insert a float, use the menu
19506 Insert\SpecialChar \menuseparator
19514 inset, a box with a label.
19515 The label will automatically be translated to the document language in
19517 Behind the label you can insert the caption text.
19518 The image or table is inserted above or below the caption in a separate
19519 paragraph within the float.
19520 More about the caption placement is described in section
19521 \begin_inset space ~
19525 \begin_inset CommandInset ref
19527 reference "sec:Caption-Placement"
19532 To keep your LyX-document readable, you can open and close the float box
19533 by left-clicking on the box label.
19534 A closed float box looks like this:
19535 \begin_inset Graphics
19536 filename clipart/floatQt4.png
19538 scaleBeforeRotation
19542 -- a gray button with a red label.
19545 \begin_layout Standard
19546 It is recommended to insert floats as a separate paragraph to avoid possible
19547 LaTeX-errors that can occur when the surrounding text is specially formatted.
19550 \begin_layout Standard
19551 Existing figures or tables can be put into a float by marking them and then
19552 pressing the corresponding toolbar button for a new float.
19555 \begin_layout Section
19559 \begin_layout Standard
19560 Besides figure and table floats that are described in section
19561 \begin_inset space ~
19565 \begin_inset CommandInset ref
19567 reference "sec:Figure-Floats"
19572 \begin_inset CommandInset ref
19574 reference "sec:Table-Floats"
19578 , respectively, LyX offers the float types
19589 \begin_layout Subsection
19594 \begin_layout Plain Layout
19595 Floats ! Algorithms
19603 \begin_layout Standard
19604 \begin_inset Float algorithm
19610 \begin_layout Plain Layout
19611 \begin_inset Caption
19613 \begin_layout Plain Layout
19614 \begin_inset CommandInset label
19616 name "alg:Example-Algorithm-float"
19620 Example Algorithm float
19628 \begin_layout LyX-Code
19630 \begin_inset Newline newline
19633 Sum:= Sum + A(I); /*comment*/
19634 \begin_inset Newline newline
19638 \begin_inset VSpace -4mm
19649 \begin_layout Standard
19650 This float type is inserted with the menu
19652 Insert\SpecialChar \menuseparator
19653 Floats\SpecialChar \menuseparator
19657 It is used for program codes and descriptions of algorithms.
19658 A possible environment for algorithms is the
19662 , described in LyX's
19668 \begin_inset space ~
19672 \begin_inset CommandInset ref
19674 reference "alg:Example-Algorithm-float"
19678 is an example of an algorithm float where -4
19679 \begin_inset space \thinspace{}
19682 mm vertical space was added at the end of the float to have the bottom rule
19683 exactly below the last text line.
19686 \begin_layout Standard
19687 The float label is not automatically translated into the document language.
19688 If your document is not in English, you have to do this manually by adding
19689 the following line to the document preamble
19694 \begin_layout Standard
19699 floatname{algorithm}{your
19700 \begin_inset space ~
19706 \begin_layout Standard
19710 \begin_inset space ~
19716 \begin_inset Quotes eld
19724 \begin_inset Quotes erd
19730 \begin_layout Standard
19731 To insert the list of algorithms you can not use the menu
19733 Insert\SpecialChar \menuseparator
19735 \begin_inset space \thinspace{}
19739 \begin_inset space \thinspace{}
19742 TOC\SpecialChar \menuseparator
19745 when your document is a non-English one.
19746 In this case use this command in TeX-Code instead:
19749 \begin_layout Standard
19754 listof{algorithm}{your
19755 \begin_inset space ~
19761 \begin_layout Standard
19765 \begin_inset space ~
19771 \begin_inset Quotes eld
19779 \begin_inset Quotes erd
19785 \begin_layout Standard
19786 Algorithm floats are not by default numbered in the scheme
19787 \begin_inset Quotes eld
19791 \begin_inset Quotes erd
19794 like it is the case for table and figure floats in many document-classes.
19795 To number algorithm floats in the same scheme, add this command to your
19799 \begin_layout Standard
19804 numberwithin{algorithm}{chapter}
19807 \begin_layout Standard
19808 To be able to use the command
19817 \begin_inset space ~
19822 in the document settings the option
19825 \begin_inset space ~
19829 \begin_inset space ~
19833 \begin_inset space ~
19841 \begin_layout Subsection
19846 \begin_layout Plain Layout
19847 Floats ! Wrap Floats
19855 \begin_layout Standard
19856 \begin_inset Wrap figure
19863 \begin_layout Plain Layout
19864 \begin_inset Graphics
19865 filename clipart/mobius.eps
19867 scaleBeforeRotation
19868 rotateOrigin center
19875 \begin_layout Plain Layout
19876 \begin_inset Caption
19878 \begin_layout Plain Layout
19879 \begin_inset CommandInset label
19881 name "fig:This-is-a"
19885 This is a figure wrap float.
19895 This float type is used if you want to wrap text around a figure or table
19896 so that it only occupies some fraction of the column width.
19897 It can be inserted using the menu
19899 Insert\SpecialChar \menuseparator
19900 Floats\SpecialChar \menuseparator
19902 \begin_inset space ~
19906 \begin_inset space ~
19914 \begin_inset space ~
19918 \begin_inset space ~
19923 if the LaTeX-package
19931 \begin_layout Plain Layout
19932 LaTeX-packages ! wrapfig
19936 \begin_layout Plain Layout
19954 \begin_layout Plain Layout
19955 Installing a LaTeX-package is explained it in the
19958 \begin_inset space ~
19968 The settings of the float can be modified by right-clicking on the float
19970 The mandatory settings are the float
19983 that specifies how much the float is set into the paragraph
19984 \begin_inset space \thinspace{}
19988 \begin_inset space \thinspace{}
19991 page margin, and the
19994 \begin_inset space ~
19999 that specifies how many text lines the float will approximately need.
20000 The line span is often hard to be approximated, so better only use it when
20001 you encounter float placement problems.
20002 You can furthermore decide if LaTeX is allowed to let the float float within
20003 the paragraph or to surrounding paragraphs.
20005 \begin_inset space ~
20009 \begin_inset CommandInset ref
20011 reference "fig:This-is-a"
20015 is an example text wrap float with a width of 40
20016 \begin_inset space \thinspace{}
20020 \begin_inset space \thinspace{}
20023 cm overhang, set to the left.
20027 \begin_layout Plain Layout
20028 Available units are explained in appendix
20029 \begin_inset space ~
20033 \begin_inset CommandInset ref
20035 reference "cha:Units-available-in"
20047 \begin_layout Standard
20048 \begin_inset Note Greyedout
20051 \begin_layout Plain Layout
20057 \begin_inset space ~
20060 wrap float floats are fragile! E.
20061 \begin_inset space \thinspace{}
20065 \begin_inset space \space{}
20068 having a figure too close to the bottom of the page can mess things up in
20069 the way that the float doesn't appear in the output or that it is placed
20070 over some other text.
20078 \begin_layout Standard
20082 \begin_layout Itemize
20083 Wrap floats should not be placed in paragraphs that run over a page break.
20084 That means that wrap floats should better be inserted to the exact place
20085 when the document is nearly finished and you are able to estimate where
20086 page breaks will appear.
20089 \begin_layout Itemize
20090 Wrap floats should either be placed in an own paragraph before the paragraph
20091 where they should wrap into or within a paragraph.
20094 \begin_layout Itemize
20095 Wrap floats in consecutive paragraphs may cause troubles, so assure that
20096 there is a text paragraph between them as separator.
20099 \begin_layout Itemize
20100 Wrap floats are not allowed in section headings or tables.
20103 \begin_layout Section
20108 \begin_layout Plain Layout
20117 \begin_layout Standard
20118 Floats are usually numbered either independent from the sections the floats
20119 are in, or in the scheme
20120 \begin_inset Quotes eld
20124 \begin_inset Quotes erd
20128 \begin_inset Quotes eld
20132 \begin_inset Quotes erd
20136 This depends on the used document class.
20139 \begin_layout Standard
20140 To change the section independent numbering, you can use this command in
20141 the document preamble:
20144 \begin_layout Standard
20156 \begin_layout Standard
20163 is the command that prints the table number, for figure floats, the command
20177 prints in the command above the table number as small roman number.
20180 \begin_layout Standard
20181 To change the numbering scheme for example to
20182 \begin_inset Quotes eld
20186 \begin_inset Quotes erd
20189 , use this command in the preamble:
20192 \begin_layout Standard
20197 numberwithin{table}{subsection}
20200 \begin_layout Standard
20201 To be able to use the command
20210 \begin_inset space ~
20215 in the document settings the option
20218 \begin_inset space ~
20222 \begin_inset space ~
20226 \begin_inset space ~
20234 \begin_layout Standard
20235 Please also have a look at section
20236 \begin_inset space ~
20240 \begin_inset CommandInset ref
20242 reference "sub:Footnote-Numbering"
20246 for the details and important notes about the numbering commands.
20249 \begin_layout Section
20251 \begin_inset CommandInset label
20253 name "sec:Referencing-Floats"
20261 \begin_layout Plain Layout
20262 Floats ! References
20271 \begin_layout Plain Layout
20272 References ! to Floats
20280 \begin_layout Standard
20281 To reference a float, insert a label into its caption using the menu
20283 Insert\SpecialChar \menuseparator
20286 or the toolbar button
20287 \begin_inset Graphics
20288 filename ../images/label-insert.png
20290 scaleBeforeRotation
20295 A grey label box like this one:
20296 \begin_inset Graphics
20297 filename clipart/labelQt4.png
20299 scaleBeforeRotation
20303 will be inserted and the label window pops up asking for the label text.
20304 LyX offers as text the first words of the caption with a prefix.
20305 The prefix depends on the float type, e.
20306 \begin_inset space \thinspace{}
20310 \begin_inset space \space{}
20313 for figure floats the prefix will be "
20320 \begin_layout Standard
20321 The label is used as anchor and name for the reference.
20322 You can refer to the label using the menu
20324 Insert\SpecialChar \menuseparator
20327 or the toolbar button
20328 \begin_inset Graphics
20329 filename ../images/dialog-show-new-inset_ref.png
20331 scaleBeforeRotation
20336 A grey cross-reference box like this one:
20337 \begin_inset Graphics
20338 filename clipart/referenceQt4.png
20340 scaleBeforeRotation
20344 will be inserted and the cross-reference window appear showing all labels
20346 If you have multiple LyX-documents opened, choose the one you are working
20347 on from the drop-list at the top of the dialog.
20348 You can now sort the labels alphabetically and then choose one.
20349 At the position of the cross-reference box the float number will appear
20353 \begin_layout Standard
20354 It is recommended to use a protected space between the cross-reference name
20355 and its number to avoid line breaks between them.
20356 If a cross-reference refers to a non-existing label, you will see two question
20357 marks in the output instead of the reference.
20360 \begin_layout Standard
20361 You can change labels at any time by clicking on the label box.
20362 References to the changed label will automatically change its link to the
20363 new label text, so that you don't need to take care about this.
20366 \begin_layout Standard
20370 \begin_inset space ~
20374 \begin_inset space ~
20379 in the cross-reference window sets the cursor before the referred label.
20380 The button text changes then to Go
20381 \begin_inset space ~
20384 Back and you can use it to set the cursor back to the cross-reference.
20385 Right-clicking on a cross-reference box also sets the cursor before the
20386 referenced label but without a possibility to go back.
20389 \begin_layout Subsection
20390 Cross-Reference Formats
20391 \begin_inset CommandInset label
20393 name "sub:Cross-Reference-Formats"
20401 \begin_layout Plain Layout
20402 References ! Formats
20410 \begin_layout Standard
20411 There are six varieties of cross-references:
20414 \begin_layout Description
20415 <reference>: prints the float number, this is the default:
20416 \begin_inset CommandInset ref
20418 reference "fig:Two-distorted-images"
20425 \begin_layout Description
20426 (<reference>): prints the float number within two parentheses, this is the
20427 style normally used to reference formulas, especially when the reference
20429 \begin_inset Quotes eld
20433 \begin_inset Quotes erd
20437 \begin_inset CommandInset ref
20446 \begin_layout Description
20447 <page>: prints the page number: Page
20448 \begin_inset space ~
20452 \begin_inset CommandInset ref
20453 LatexCommand pageref
20454 reference "fig:Two-distorted-images"
20461 \begin_layout Description
20463 \begin_inset space ~
20467 \begin_inset space ~
20470 <page>: prints the text "on page" and the page number:
20471 \begin_inset CommandInset ref
20472 LatexCommand vpageref
20473 reference "fig:Two-distorted-images"
20480 \begin_layout Description
20482 \begin_inset space ~
20486 \begin_inset space ~
20490 \begin_inset space ~
20493 <page>: prints the float number, the text "on page", and the page number:
20495 \begin_inset CommandInset ref
20497 reference "fig:Two-distorted-images"
20504 \begin_layout Description
20506 \begin_inset space ~
20509 reference: prints a self defined cross-reference format.
20511 \begin_inset Note Greyedout
20514 \begin_layout Plain Layout
20519 This feature is only available when you have the LaTeX-package
20531 \begin_layout Standard
20532 Note that the style <page> won't print the page number if the label is on
20533 the previous, the same, or the next page.
20535 \begin_inset space \thinspace{}
20539 \begin_inset space \space{}
20543 \begin_inset Quotes eld
20551 \begin_inset Quotes erd
20557 \begin_layout Standard
20558 The number and current page of the referred document part in the output,
20559 is automatically calculated by LaTeX.
20560 The varieties are adjusted in the field
20564 of the cross-reference window, that appear when you click on the cross-referenc
20568 \begin_layout Subsection
20569 Automatic Reference Naming
20573 \begin_layout Plain Layout
20574 References ! Automatic Reference Naming
20582 \begin_layout Standard
20591 \begin_layout Plain Layout
20592 LaTeX-packages ! hyperref
20597 , that is enabled in the
20605 dialog, provides a very useful feature that cross-references automatically
20606 include the name of the referenced floats (or text parts like
20611 So you will save to write e.
20612 \begin_inset space \thinspace{}
20616 \begin_inset space \space{}
20620 \begin_inset Quotes eld
20624 \begin_inset Quotes erd
20627 before every reference to a figure.
20628 To use this feature, enable
20632 and insert this line to the LaTeX preamble:
20635 \begin_layout Standard
20651 \begin_layout Standard
20652 When you prefer other reference names than the default ones, for example
20653 you want instead of
20654 \begin_inset Quotes eld
20658 \begin_inset Quotes erd
20662 \begin_inset Quotes eld
20666 \begin_inset space \thinspace{}
20670 \begin_inset Quotes eld
20673 , you can redefine the name by inserting this to the preamble:
20676 \begin_layout Standard
20687 sectionautorefname}
20688 \begin_inset Newline newline
20695 \begin_layout Plain Layout
20709 \begin_layout Standard
20710 When you are using another document language than English, replace
20711 \begin_inset Newline newline
20726 , where *** is the name of the used language.
20729 \begin_layout Standard
20730 To get automatic names, but not for certain reference types, for example
20731 not for equations, use this preamble code:
20734 \begin_layout Standard
20742 \begin_inset Newline newline
20752 \begin_inset Newline newline
20763 equationautorefname}
20764 \begin_inset Newline newline
20771 \begin_layout Plain Layout
20787 \begin_layout Standard
20788 More about this topic can be found in
20793 \begin_inset CommandInset citation
20802 \begin_layout Standard
20803 \begin_inset Note Greyedout
20806 \begin_layout Plain Layout
20811 Automatic reference naming cannot be used when you use cross-references
20815 \begin_inset space ~
20820 style, as described in section
20821 \begin_inset space ~
20825 \begin_inset CommandInset ref
20827 reference "sub:Cross-Reference-Formats"
20839 \begin_layout Standard
20844 manual is an example where automatic reference naming is used.
20847 \begin_layout Subsection
20849 \begin_inset CommandInset label
20851 name "sub:Reference-Position"
20859 \begin_layout Plain Layout
20860 References ! Reference Position
20868 \begin_layout Standard
20877 \begin_layout Plain Layout
20878 LaTeX-packages ! hyperref
20891 dialog to link cross-references in the output, you will see that clicking
20892 on an image float reference jumps to the image label.
20893 The caption will be the first text part on the screen, so that you cannot
20894 see the image without scrolling.
20895 This is because the reference link anchor is placed at the position of
20897 With the use of the package
20905 \begin_layout Plain Layout
20906 LaTeX-packages ! hypcap
20911 , which is part of the LaTeX-package
20919 \begin_layout Plain Layout
20920 LaTeX-packages ! oberdiek
20925 , the link anchor is placed at the beginning of a float.
20926 To use this feature for figure floats, load
20930 in the document preamble with the line
20933 \begin_layout Standard
20938 usepackage[figure]{hypcap}
20941 \begin_layout Standard
20946 for all float types but this is not recommended for stability reasons.
20947 For more informations, have a look at
20952 \begin_inset CommandInset citation
20961 \begin_layout Standard
20962 \begin_inset Note Greyedout
20965 \begin_layout Plain Layout
20974 has no effect for references to subfigures.
20982 \begin_layout Section
20984 \begin_inset CommandInset label
20986 name "sec:Float-Placement"
20994 \begin_layout Plain Layout
21003 \begin_layout Standard
21004 Right-clicking on a float-box opens a dialog where you can alter the placement
21005 options that LaTeX uses for positioning the float.
21006 \begin_inset Newline newline
21012 \begin_inset space ~
21017 is only useful for two-column documents: If you select it, the float will
21018 span across both columns on the page instead of being confined to just
21020 \begin_inset Newline newline
21026 \begin_inset space ~
21031 is used to rotate floats, see section
21032 \begin_inset CommandInset ref
21034 reference "sec:Rotated-Floats"
21041 \begin_layout Standard
21042 You can use one ore more of the following options in the float dialog to
21043 set the placement for a particular float when you uncheck the option
21046 \begin_inset space ~
21050 \begin_inset space ~
21058 \begin_layout Description
21060 \begin_inset space ~
21064 \begin_inset space ~
21067 possible try to place the float on the position where it is inserted
21070 \begin_layout Description
21072 \begin_inset space ~
21076 \begin_inset space ~
21079 page try to place the float on the top of the current page
21082 \begin_layout Description
21084 \begin_inset space ~
21088 \begin_inset space ~
21091 page try to place the float on the bottom of the current page
21094 \begin_layout Description
21096 \begin_inset space ~
21100 \begin_inset space ~
21103 floats try to place the float on an own page
21106 \begin_layout Standard
21107 The order of the above option is
21112 That means, if you use the default placement, LaTeX will first try out
21116 \begin_inset space ~
21120 \begin_inset space ~
21128 \begin_inset space ~
21132 \begin_inset space ~
21137 , and then the others.
21138 If you don't use the default, LaTeX will try only the checked options but
21140 If none of the 4 placements are possible the procedure is internally repeated
21141 but it is tried to put the float on the following page.
21144 \begin_layout Standard
21145 By default, each option has its own rules:
21148 \begin_layout Labeling
21149 \labelwidthstring 00.00.0000
21153 \begin_inset space ~
21157 \begin_inset space ~
21162 only floats occupying less than 70
21163 \begin_inset space \thinspace{}
21166 % of the page can be placed at the top of a page (
21175 \begin_layout Labeling
21176 \labelwidthstring 00.00.0000
21180 \begin_inset space ~
21184 \begin_inset space ~
21189 : only floats occupying less than 30
21190 \begin_inset space \thinspace{}
21193 % of the page can be placed at the bottom of a page.
21203 \begin_layout Labeling
21204 \labelwidthstring 00.00.0000
21208 \begin_inset space ~
21212 \begin_inset space ~
21217 : only if more than 50
21218 \begin_inset space \thinspace{}
21221 % of the page are occupied by floats, several floats can be set together
21232 \begin_layout Standard
21233 If you don't like these rules, you can ignore them by using the additional
21237 \begin_inset space ~
21241 \begin_inset space ~
21247 \begin_inset Newline newline
21250 You can also redefine the rules with LaTeX-commands that are given in parenthese
21251 s behind the rules description above.
21252 To increase for example the often too small default of the bottom-rule
21254 \begin_inset space \thinspace{}
21257 % of the page, add this line to your document preamble:
21260 \begin_layout Standard
21267 bottomfraction}{0.5}
21270 \begin_layout Standard
21271 Sometimes you might need, under all circumstances, a float to be placed
21272 exactly at the position where it is inserted.
21273 For this case you can use the option
21276 \begin_inset space ~
21282 Use this option very rarely and only if the document is nearly ready to
21284 Because the float is then no longer able to
21285 \begin_inset Quotes eld
21289 \begin_inset Quotes erd
21292 when you change your document and this will often destroy the page layout.
21295 \begin_layout Standard
21296 There are no placement options for text wrap floats, because they are always
21297 surrounded by the text of a certain paragraph.
21298 \begin_inset VSpace bigskip
21304 \begin_layout Standard
21305 Sometimes you have the problem that a float is placed at the top of a page
21306 while its corresponding section starts at the middle of the page, so that
21307 the reader could think the float is part of the previous section.
21308 To avoid this the LaTeX-command
21315 It suppresses a given float placement for the page where it is inserted
21316 and can therefore be used to avoid that floats could be set before a section
21318 To get this, add these commands to your document preamble:
21321 \begin_layout Standard
21331 \begin_inset Newline newline
21345 \begin_layout Standard
21346 You can define the same for all section headings, like chapters and subsections.
21347 This definition is not recommended to be used for small text parts like
21348 subsubsections because LaTeX may then have problems to find a suitable
21352 \begin_layout Standard
21353 \begin_inset VSpace bigskip
21356 In some cases it is required to have all figures/tables at the end of the
21358 For this purpose the LaTeX-package
21366 \begin_layout Plain Layout
21367 LaTeX-packages ! endfloat
21373 It puts all figure and table floats at the end of the document into own
21375 At the original float position a text hint like
21376 \begin_inset Quotes eld
21382 \begin_inset space ~
21388 \begin_inset Quotes erd
21392 The endfloat-package is loaded in the preamble with the line
21395 \begin_layout Standard
21400 usepackage[options]{endfloat}
21403 \begin_layout Standard
21404 There are various package options to format the created figure/table sections.
21405 For more information we refer to the
21410 \begin_inset CommandInset citation
21417 \begin_inset Newline newline
21421 \begin_inset Note Greyedout
21424 \begin_layout Plain Layout
21429 doesn't provide an automatic translation for the text hint, you have to
21430 do this manually, see section
21431 \begin_inset space ~
21435 \begin_inset CommandInset citation
21447 \begin_inset Newline newline
21451 \begin_inset Note Greyedout
21454 \begin_layout Plain Layout
21459 There is currently a bug in
21463 when the caption contains a German
21464 \begin_inset Quotes eld
21468 \begin_inset Quotes erd
21472 Use in this case the command
21473 \begin_inset Quotes eld
21483 \begin_inset Quotes erd
21486 in TeX-Code instead of
21487 \begin_inset Quotes eld
21491 \begin_inset Quotes erd
21502 \begin_layout Standard
21503 \begin_inset VSpace bigskip
21506 For more details about float placements, have a look at LaTeX books,
21507 \begin_inset CommandInset citation
21509 key "latexcompanion,latexguide,latexbook"
21516 \begin_layout Section
21518 \begin_inset CommandInset label
21520 name "sec:Rotated-Floats"
21528 \begin_layout Plain Layout
21537 \begin_layout Standard
21538 Especially for wide tables you might have floats rotated.
21539 To rotate a whole float including the caption, right-click on the float-box
21543 \begin_inset space ~
21551 \begin_layout Standard
21552 Rotated floats are always placed on its own page (or column, in case you
21553 have a multi-column document).
21554 You can let them span several columns using the float settings option
21557 \begin_inset space ~
21563 Floats are rotated so that you can read them from the outside margin.
21564 To force a certain rotation direction for all pages, you can add either
21573 to the document class options.
21576 \begin_layout Standard
21577 Referencing rotated floats is the same like for normal floats, the caption
21578 format is also the same: Table
21579 \begin_inset space ~
21583 \begin_inset CommandInset ref
21585 reference "tab:Rotated-table"
21589 is an example of a rotated table float.
21592 \begin_layout Standard
21593 \begin_inset Note Greyedout
21596 \begin_layout Plain Layout
21601 Not all DVI-viewers are able to display rotated floats.
21609 \begin_layout Standard
21610 \begin_inset Float table
21615 \begin_layout Plain Layout
21616 \begin_inset Caption
21618 \begin_layout Plain Layout
21619 \begin_inset CommandInset label
21621 name "tab:Rotated-table"
21633 \begin_layout Plain Layout
21635 \begin_inset Tabular
21636 <lyxtabular version="3" rows="1" columns="5">
21638 <column alignment="center" valignment="top" width="0">
21639 <column alignment="center" valignment="top" width="0">
21640 <column alignment="center" valignment="top" width="0">
21641 <column alignment="center" valignment="top" width="0">
21642 <column alignment="center" valignment="top" width="0">
21644 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21647 \begin_layout Plain Layout
21653 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21656 \begin_layout Plain Layout
21662 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21665 \begin_layout Plain Layout
21671 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21674 \begin_layout Plain Layout
21680 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21683 \begin_layout Plain Layout
21702 \begin_layout Section
21703 Floats Side by Side
21707 \begin_layout Plain Layout
21708 Floats ! Side by side
21716 \begin_layout Standard
21717 To place floats side by side, like for Figure
21718 \begin_inset space ~
21722 \begin_inset CommandInset ref
21724 reference "fig:Float-left"
21729 \begin_inset CommandInset ref
21731 reference "fig:Float-right"
21740 In it two minipage boxes are inserted.
21744 \begin_layout Plain Layout
21745 Minipages are explained in section
21746 \begin_inset space ~
21750 \begin_inset CommandInset ref
21752 reference "sec:Minipages"
21761 The width is set to 45
21762 \begin_inset space \thinspace{}
21766 \begin_inset space \thinspace{}
21769 column% and the box alignment to
21774 The minipage boxes contain the image and the caption in the same way as
21775 they are in a float.
21776 The only difference is that the image unit
21779 \begin_inset space ~
21783 \begin_inset space ~
21788 is now calculated according to the width of the minipage boxes.
21791 \begin_layout Standard
21792 \begin_inset Float figure
21797 \begin_layout Plain Layout
21798 \begin_inset Box Frameless
21807 height_special "totalheight"
21810 \begin_layout Plain Layout
21812 \begin_inset Graphics
21813 filename clipart/mobius.eps
21816 scaleBeforeRotation
21823 \begin_layout Plain Layout
21824 \begin_inset Caption
21826 \begin_layout Plain Layout
21827 \begin_inset CommandInset label
21829 name "fig:Float-left"
21833 Float on the left side.
21844 \begin_inset space \hfill{}
21848 \begin_inset Box Frameless
21857 height_special "totalheight"
21860 \begin_layout Plain Layout
21862 \begin_inset Graphics
21863 filename clipart/platypus.eps
21866 scaleBeforeRotation
21873 \begin_layout Plain Layout
21874 \begin_inset Caption
21876 \begin_layout Plain Layout
21877 \begin_inset CommandInset label
21879 name "fig:Float-right"
21883 Float on the right side.
21896 \begin_layout Plain Layout
21905 \begin_layout Section
21910 \begin_layout Plain Layout
21911 Caption ! Formatting
21920 \begin_layout Plain Layout
21921 Floats ! Caption Formatting
21927 \begin_inset CommandInset label
21929 name "sec:Caption-Formatting"
21936 \begin_layout Standard
21941 environment is the default paragraph environment for
21946 On the LyX screen captions appear as label, e.
21947 \begin_inset space \thinspace{}
21951 \begin_inset space \space{}
21955 \begin_inset Quotes eld
21963 \begin_inset Quotes erd
21966 followed by the caption text.
21968 \begin_inset Quotes eld
21972 \begin_inset Quotes erd
21975 is the actual reference number.
21976 By default the label and the number are in the same font as the caption
21977 text and a colon follows the number to divide the label from the text.
21978 This caption format is not suitable for all document formats.
21982 \begin_layout Standard
21983 To change the default caption format, load the LaTeX-package
21991 \begin_layout Plain Layout
21992 LaTeX-packages ! caption
21997 in the document preamble with this line:
22000 \begin_layout Standard
22005 usepackage[format definition]{caption}
22008 \begin_layout Standard
22009 To have for example the label and the number in sans-serif bold font and
22010 the table captions always above the table like in this document, use the
22014 \begin_layout Standard
22019 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22022 \begin_layout Standard
22023 You can also define different caption formats for the different float types.
22024 In this case load the
22028 package without format specific options and define the different formats
22029 with the help of the command
22032 \begin_layout Standard
22037 captionsetup[float type]{format definition}
22040 \begin_layout Standard
22041 in the document preamble.
22042 For example the caption formats of Figure
22043 \begin_inset space ~
22047 \begin_inset CommandInset ref
22049 reference "fig:This-is-an-fig"
22054 \begin_inset space ~
22058 \begin_inset CommandInset ref
22060 reference "tab:This-is-an-tab"
22064 can be created using these commands in the document preamble:
22067 \begin_layout Standard
22072 usepackage[tableposition=top]{caption}
22075 \begin_inset Newline newline
22082 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22083 \begin_inset Newline newline
22090 \begin_layout Plain Layout
22098 captionsetup[figure]
22106 \begin_inset Newline newline
22111 captionsetup[table]{labelfont={bf,sf}}
22114 \begin_layout Standard
22115 \begin_inset Note Greyedout
22118 \begin_layout Plain Layout
22127 has no effect when a
22135 \begin_layout Plain Layout
22136 LaTeX-packages ! koma-script
22141 document class is used.
22142 In this case the document class option
22154 \begin_layout Standard
22155 For more information about the package
22159 we refer to its documentation
22160 \begin_inset CommandInset citation
22169 \begin_layout Standard
22170 To change the label name from e.
22171 \begin_inset space \thinspace{}
22175 \begin_inset space \space{}
22179 \begin_inset Quotes eld
22183 \begin_inset Quotes erd
22187 \begin_inset Quotes eld
22191 \begin_inset Quotes erd
22194 use this preamble command:
22197 \begin_layout Standard
22204 fnum@figure}{Image~
22209 \begin_layout Standard
22216 inserts the figure number and
22219 \begin_inset Quotes eld
22225 \begin_inset Quotes erd
22228 creates a protected space.
22231 \begin_layout Standard
22232 \begin_inset VSpace bigskip
22243 \begin_layout Plain Layout
22244 LaTeX-packages ! koma-script
22251 article (koma-script)
22259 letter (koma-script)
22263 report (koma-script)
22266 \begin_inset space \thinspace{}
22269 ), you can alternatively to the
22277 's built-in command
22284 For example, to have the caption label in bold, add this command to your
22288 \begin_layout Standard
22293 setkomafont{captionlabel}{
22298 \begin_layout Standard
22299 For more information about
22310 \begin_inset CommandInset citation
22319 \begin_layout Standard
22323 \begin_layout Plain Layout
22327 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
22334 \begin_inset Note Note
22337 \begin_layout Plain Layout
22338 The caption format is changed only for this example.
22346 \begin_layout Standard
22347 \begin_inset Float figure
22353 \begin_layout Plain Layout
22355 \begin_inset Graphics
22356 filename clipart/mobius.eps
22359 scaleBeforeRotation
22366 \begin_layout Plain Layout
22367 \begin_inset Caption
22369 \begin_layout Plain Layout
22370 \begin_inset CommandInset label
22372 name "fig:This-is-an-fig"
22376 This is an example figure caption that is longer than one line to show the
22377 different caption format.
22378 Here a self-defined caption format is used.
22391 \begin_layout Standard
22395 \begin_layout Plain Layout
22399 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
22408 \begin_layout Standard
22409 \begin_inset Float table
22415 \begin_layout Plain Layout
22416 \begin_inset Caption
22418 \begin_layout Plain Layout
22419 \begin_inset CommandInset label
22421 name "tab:This-is-an-tab"
22425 This is an example table caption that is longer than one line to show the
22426 different caption format.
22427 Here the standard caption format for tables in this document is used.
22435 \begin_layout Plain Layout
22437 \begin_inset Tabular
22438 <lyxtabular version="3" rows="1" columns="5">
22440 <column alignment="center" valignment="top" width="0">
22441 <column alignment="center" valignment="top" width="0">
22442 <column alignment="center" valignment="top" width="0">
22443 <column alignment="center" valignment="top" width="0">
22444 <column alignment="center" valignment="top" width="0">
22446 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22449 \begin_layout Plain Layout
22455 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22458 \begin_layout Plain Layout
22464 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22467 \begin_layout Plain Layout
22473 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22476 \begin_layout Plain Layout
22482 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22485 \begin_layout Plain Layout
22504 \begin_layout Section
22509 \begin_layout Plain Layout
22510 Caption ! Placement
22519 \begin_layout Plain Layout
22520 Floats ! Caption Placement
22526 \begin_inset CommandInset label
22528 name "sec:Caption-Placement"
22535 \begin_layout Standard
22536 The common caption placement rule is:
22539 \begin_layout Description
22540 Figure: Caption is set below the figure
22543 \begin_layout Description
22544 Table: Caption is set above the table
22547 \begin_layout Standard
22548 Having the caption above the table is unfortunately not supported in LaTeX's
22550 That means if you are using the document classes
22566 there will be no space between the caption and the table.
22567 To insert the needed space, add the following option to the load command
22568 of the LaTeX-package
22572 in your document preamble
22576 \begin_layout Plain Layout
22578 \begin_inset space ~
22582 \begin_inset CommandInset ref
22584 reference "sec:Caption-Formatting"
22588 for more information of the package
22600 \begin_layout Standard
22606 \begin_layout Standard
22615 \begin_layout Plain Layout
22616 LaTeX-packages ! koma-script
22623 article (koma-script)
22631 letter (koma-script)
22635 report (koma-script)
22638 \begin_inset space \thinspace{}
22641 ), you can alternatively to the
22645 package set the document class option
22652 \begin_layout Standard
22653 \begin_inset VSpace bigskip
22656 It is also possible to set the caption beside a figure or table.
22657 To get this the LaTeX-package
22665 \begin_layout Plain Layout
22666 LaTeX-packages ! sidecap
22671 has to be loaded in the document preamble with the line
22674 \begin_layout Standard
22679 usepackage[option]{sidecap}
22682 \begin_layout Standard
22683 If you set no option, the caption is placed on the side of the outer page
22684 margin -- to the right on odd pages, to the left on even pages.
22685 You can change the placement to inner margin with the option
22690 To force the placement always to the right or left, use the option
22701 \begin_layout Standard
22705 \begin_layout Plain Layout
22715 \begin_inset Note Note
22718 \begin_layout Plain Layout
22719 The following section will only be displayed when the LaTeX-package
22731 \begin_layout Standard
22732 To place in LyX the caption of a float on the side, it is necessary to add
22733 these commands to the document preamble:
22736 \begin_layout Standard
22742 \begin_layout Standard
22750 \begin_inset Newline newline
22757 \begin_layout Plain Layout
22773 \begin_inset Newline newline
22780 \begin_layout Plain Layout
22796 \begin_inset Newline newline
22803 \begin_layout Plain Layout
22814 renewenvironment{table}{
22821 \begin_layout Standard
22829 \begin_inset Newline newline
22836 \begin_layout Plain Layout
22852 \begin_inset Newline newline
22859 \begin_layout Plain Layout
22877 \begin_layout Standard
22885 \begin_inset Newline newline
22892 \begin_layout Plain Layout
22908 \begin_inset Newline newline
22915 \begin_layout Plain Layout
22931 \begin_inset Newline newline
22938 \begin_layout Plain Layout
22949 renewenvironment{figure}{
22956 \begin_layout Standard
22964 \begin_inset Newline newline
22971 \begin_layout Plain Layout
22987 \begin_inset Newline newline
22994 \begin_layout Plain Layout
23012 \begin_layout Standard
23018 \begin_layout Standard
23019 The commands allow you to redefine the floats so that the caption is set
23021 For figure floats use the command
23024 \begin_layout Standard
23032 \begin_layout Standard
23033 in TeX-Code before the float.
23034 Behind the float insert the command
23037 \begin_layout Standard
23045 \begin_layout Standard
23046 in TeX-Code to get back to the original float definition.
23049 \begin_layout Standard
23050 For table floats use the corresponding commands
23053 \begin_layout Standard
23067 \begin_layout Standard
23069 \begin_inset space ~
23073 \begin_inset CommandInset ref
23075 reference "fig:cap-beside-fig"
23080 \begin_inset space ~
23084 \begin_inset CommandInset ref
23086 reference "tab:cap-beside-tab"
23090 are examples where the caption is set beside.
23093 \begin_layout Standard
23094 You can see in the examples that the caption text appears at the top of
23095 the floats for table floats and at the bottom for figure floats.
23096 To change this, you can use the command
23099 \begin_layout Standard
23104 sidecaptionvpos{float type}{placement}
23107 \begin_layout Standard
23108 in the document preamble or in TeX-Code before the float.
23109 The float type is either
23117 , the placement can be
23118 \begin_inset Quotes eld
23126 \begin_inset Quotes erd
23130 \begin_inset Quotes eld
23138 \begin_inset Quotes erd
23142 \begin_inset Quotes eld
23150 \begin_inset Quotes erd
23154 To have for example the caption of figure floats vertically centered, use
23158 \begin_layout Standard
23163 sidecaptionvpos{figure}{c}
23166 \begin_layout Standard
23167 This was used for Figure
23168 \begin_inset space ~
23172 \begin_inset CommandInset ref
23174 reference "fig:cap-beside-fig-2"
23181 \begin_layout Standard
23182 \begin_inset VSpace medskip
23185 For more information about the package
23189 we refer to its documentation
23190 \begin_inset CommandInset citation
23199 \begin_layout Standard
23200 \begin_inset Note Greyedout
23203 \begin_layout Plain Layout
23216 \begin_layout Plain Layout
23217 LaTeX-packages ! hypcap
23222 , described in section
23223 \begin_inset space ~
23227 \begin_inset CommandInset ref
23229 reference "sub:Reference-Position"
23233 , has no effect on floats with the caption set beside.
23241 \begin_layout Standard
23245 \begin_layout Plain Layout
23257 \begin_layout Standard
23258 \begin_inset Float figure
23263 \begin_layout Plain Layout
23264 \begin_inset Graphics
23265 filename clipart/escher-lsd.eps
23267 scaleBeforeRotation
23274 \begin_layout Plain Layout
23275 \begin_inset Caption
23277 \begin_layout Plain Layout
23278 \begin_inset CommandInset label
23280 name "fig:cap-beside-fig"
23284 This is a caption beside a figure.
23297 \begin_layout Standard
23301 \begin_layout Plain Layout
23313 \begin_layout Standard
23314 \begin_inset Float table
23319 \begin_layout Plain Layout
23320 \begin_inset Caption
23322 \begin_layout Plain Layout
23323 \begin_inset CommandInset label
23325 name "tab:cap-beside-tab"
23329 This is a caption beside a table.
23337 \begin_layout Plain Layout
23338 \begin_inset Tabular
23339 <lyxtabular version="3" rows="4" columns="5">
23341 <column alignment="center" valignment="top" width="0">
23342 <column alignment="center" valignment="top" width="0">
23343 <column alignment="center" valignment="top" width="0">
23344 <column alignment="center" valignment="top" width="0">
23345 <column alignment="center" valignment="top" width="0">
23347 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23350 \begin_layout Plain Layout
23356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23359 \begin_layout Plain Layout
23365 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23368 \begin_layout Plain Layout
23374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23377 \begin_layout Plain Layout
23383 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23386 \begin_layout Plain Layout
23394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23397 \begin_layout Plain Layout
23403 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23406 \begin_layout Plain Layout
23412 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23415 \begin_layout Plain Layout
23421 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23424 \begin_layout Plain Layout
23430 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23433 \begin_layout Plain Layout
23441 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23444 \begin_layout Plain Layout
23450 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23453 \begin_layout Plain Layout
23459 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23462 \begin_layout Plain Layout
23468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23471 \begin_layout Plain Layout
23477 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23480 \begin_layout Plain Layout
23488 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23491 \begin_layout Plain Layout
23497 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23500 \begin_layout Plain Layout
23506 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23509 \begin_layout Plain Layout
23515 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23518 \begin_layout Plain Layout
23524 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23527 \begin_layout Plain Layout
23546 \begin_layout Standard
23550 \begin_layout Plain Layout
23562 \begin_layout Standard
23566 \begin_layout Plain Layout
23570 sidecaptionvpos{figure}{c}
23576 \begin_inset Float figure
23581 \begin_layout Plain Layout
23582 \begin_inset Graphics
23583 filename clipart/escher-lsd.eps
23585 scaleBeforeRotation
23592 \begin_layout Plain Layout
23593 \begin_inset Caption
23595 \begin_layout Plain Layout
23596 \begin_inset CommandInset label
23598 name "fig:cap-beside-fig-2"
23602 This is a vertically centered caption beside a figure.
23615 \begin_layout Standard
23619 \begin_layout Plain Layout
23631 \begin_layout Standard
23635 \begin_layout Plain Layout
23645 \begin_inset Note Note
23648 \begin_layout Plain Layout
23649 The following will be displayed when the LaTeX-package
23661 \begin_layout Standard
23662 You need to install the LaTeX-package
23666 to see the following part of this section in the output.
23669 \begin_layout Standard
23673 \begin_layout Plain Layout
23685 \begin_layout Section
23690 \begin_layout Plain Layout
23691 Floats ! Float Lists
23699 \begin_layout Standard
23700 Similar to the the table of contents where the sections of the document
23701 are listed, there are listings for all float types, like the figures of
23703 You can insert them via the
23705 Insert\SpecialChar \menuseparator
23707 \begin_inset space ~
23711 \begin_inset space ~
23719 \begin_layout Standard
23720 The list entries are the float captions or its short title, the float number,
23721 and the page number where they appear in the document.
23724 \begin_layout Standard
23725 You can find the list of figures and tables at the end of this document.
23728 \begin_layout Chapter
23732 \begin_layout Section
23737 \begin_layout Plain Layout
23746 \begin_layout Standard
23747 Notes are inserted with the toolbar button
23748 \begin_inset Graphics
23749 filename ../images/note-insert.png
23751 scaleBeforeRotation
23757 Insert\SpecialChar \menuseparator
23761 There are three types of notes:
23764 \begin_layout Description
23766 \begin_inset space ~
23769 Note This note type is for internal notes that won't appear in the output.
23770 Its note-box looks like this:
23771 \begin_inset Newline newline
23775 \begin_inset Newline newline
23779 \begin_inset Graphics
23780 filename clipart/LyXNoteImageQt4.png
23783 scaleBeforeRotation
23788 \begin_inset Note Note
23791 \begin_layout Plain Layout
23792 This is text in a note box that doesn't appear in the output.
23800 \begin_layout Description
23801 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
23802 ent, when you export the document to LaTeX via the menu
23804 File\SpecialChar \menuseparator
23805 Export\SpecialChar \menuseparator
23806 LaTeX (pdflatex) / (plain)
23809 Its note-box looks like this:
23810 \begin_inset Newline newline
23814 \begin_inset Newline newline
23818 \begin_inset Graphics
23819 filename clipart/CommentNoteImageQt4.png
23822 scaleBeforeRotation
23827 \begin_inset Note Comment
23830 \begin_layout Plain Layout
23831 This is text in a note box that only appears as comment in LaTeX-files.
23839 \begin_layout Description
23841 \begin_inset space ~
23844 Out This note will appear in the output as grey text.
23845 Its note-box looks like this:
23846 \begin_inset Newline newline
23850 \begin_inset Newline newline
23854 \begin_inset Graphics
23855 filename clipart/GreyedOutNoteImageQt4.png
23858 scaleBeforeRotation
23863 \begin_inset Newline newline
23870 \begin_layout Plain Layout
23874 renewenvironment{lyxgreyedout}
23877 \begin_layout Plain Layout
23881 textcolor[gray]{0.8}
23891 \begin_inset Note Greyedout
23894 \begin_layout Plain Layout
23899 \begin_layout Plain Layout
23900 This is an example footnote within a greyed out note.
23905 of a comment that appears in the output as grey text.
23914 \begin_layout Plain Layout
23918 renewenvironment{lyxgreyedout}
23921 \begin_layout Plain Layout
23935 \begin_inset Note Note
23938 \begin_layout Plain Layout
23939 The greyed out note is here redefined to show it with the original LyX definitio
23940 n because greyed out notes are redefined in the preamble of this document,
23941 as described below, to have blue text.
23947 \begin_inset Newline newline
23951 \begin_inset Newline newline
23954 As you can see in the example, the first line of greyed out notes is a bit
23955 indented and greyed out notes can have footnotes.
23958 \begin_layout Standard
23959 \begin_inset VSpace bigskip
23962 When you use the toolbar button
23963 \begin_inset Graphics
23964 filename ../images/note-insert.png
23966 scaleBeforeRotation
23973 \begin_inset space ~
23979 You can switch between the five note types by right-clicking on the note-box.
23984 If you want to turn existing text into a note, mark it and click on the
23998 To change a note to text, press the backspace key when the cursor is in
23999 the first position of a note, or press the deletey key when the cursor
24000 is in the very last position of the note, respectively.
24003 \begin_layout Standard
24004 \begin_inset VSpace bigskip
24007 You can change the text color of the greyed out notes in the preamble with
24008 the following command:
24011 \begin_layout Standard
24016 renewenvironment{lyxgreyedout}
24017 \begin_inset Newline newline
24024 \begin_layout Plain Layout
24042 \begin_layout Standard
24043 The available colors and the method to define own colors is explained in
24045 \begin_inset space ~
24049 \begin_inset CommandInset ref
24051 reference "sec:Colored-Tables"
24058 \begin_layout Standard
24059 Notes that appear in blue in this document are set using greyed out notes
24063 \begin_layout Section
24065 \begin_inset CommandInset label
24067 name "sec:Footnotes"
24075 \begin_layout Plain Layout
24085 \begin_layout Plain Layout
24094 \begin_layout Standard
24095 Footnotes can be inserted using the toolbar button
24096 \begin_inset Graphics
24097 filename ../images/footnote-insert.png
24099 scaleBeforeRotation
24105 Insert\SpecialChar \menuseparator
24117 then the following footnote-box:
24118 \begin_inset Graphics
24119 filename clipart/footnoteQt4.png
24121 scaleBeforeRotation
24129 where you can enter the footnote text.
24130 If you want to turn existing text into a footnote, mark it and click on
24152 to text, press the Backspace key when the cursor is in the first position
24161 , or press the Delete key when the cursor is in the very last position of
24173 \begin_layout Standard
24174 Here is an example footnote:
24182 \begin_layout Plain Layout
24183 \begin_inset CommandInset label
24185 name "foot:This-is-an"
24189 This is an example footnote.
24202 \begin_layout Plain Layout
24206 newcounter{MyRepeatFoot}
24209 \begin_layout Plain Layout
24213 setcounter{MyRepeatFoot}{
24223 \begin_layout Standard
24224 The footnote will appear in the output as a superscript number at the text
24225 position where the footnote box is placed.
24226 The footnote text is placed at the bottom of the current page.
24227 The footnote number is calculated by LaTeX, the numbers are consecutive.
24228 It depends on your document-class, if the footnote number is reset for
24232 \begin_layout Standard
24233 Footnotes can be referenced like floats: Insert a label into the footnote
24234 and cross-reference this label in the text as described in section
24235 \begin_inset space ~
24239 \begin_inset CommandInset ref
24241 reference "sec:Referencing-Floats"
24246 \begin_inset Newline newline
24249 This is a cross-reference of Footnote
24250 \begin_inset space ~
24254 \begin_inset CommandInset ref
24256 reference "foot:This-is-an"
24263 \begin_layout Standard
24264 \begin_inset VSpace defskip
24267 To use footnotes within tables, you have to use minipages, see section
24268 \begin_inset space ~
24272 \begin_inset CommandInset ref
24274 reference "sec:Minipages"
24279 Footnotes within longtables are described in section
24280 \begin_inset space ~
24284 \begin_inset CommandInset ref
24286 reference "sub:Footnotes-in-Longtables"
24293 \begin_layout Standard
24294 \begin_inset VSpace defskip
24297 To create only a mark for a footnote, use the command
24301 footnotemark[number]
24304 This is used when you have the same annotation several times in a text
24305 but doesn't want to print the footnote text every time.
24306 \begin_inset Newline newline
24309 As you don't know the number of the repeating footnote while you are writing
24310 the text, you have to store its number.
24311 For the following footnote mark example, these commands were inserted in
24312 TeX-Code behind Footnote
24313 \begin_inset space ~
24317 \begin_inset CommandInset ref
24319 reference "foot:This-is-an"
24323 to store the footnote number:
24326 \begin_layout Standard
24331 newcounter{MyRepeatFoot}
24332 \begin_inset Newline newline
24337 setcounter{MyRepeatFoot}{
24342 \begin_layout Standard
24343 The footnote mark was then created with this command:
24346 \begin_layout Standard
24356 \begin_layout Standard
24357 Here is an example footnote mark:
24365 \begin_layout Plain Layout
24379 \begin_layout Subsection
24381 \begin_inset CommandInset label
24383 name "sub:Footnote-Numbering"
24391 \begin_layout Plain Layout
24392 Footnotes ! Numbering
24400 \begin_layout Standard
24401 To reset the footnote number back to 1 after each section
24403 , add this command to your document preamble:
24406 \begin_layout Standard
24411 @addtoreset{footnote}{section}
24414 \begin_layout Standard
24415 \begin_inset VSpace bigskip
24418 The following preamble command changes the footnote numbering style to small
24422 \begin_layout Standard
24434 \begin_layout Standard
24438 \begin_layout Plain Layout
24451 This is a footnote with roman numbering:
24455 \begin_layout Plain Layout
24456 This is an example footnote with roman numbering.
24464 \begin_layout Standard
24465 To change the numbering style to capital roman numerals replace in the command
24480 \begin_inset Quotes eld
24484 \begin_inset Quotes erd
24487 footnotes with capital or small Latin letters use
24501 \begin_inset Quotes eld
24505 \begin_inset Quotes erd
24508 footnotes with symbols use
24517 \begin_layout Standard
24518 \begin_inset Note Greyedout
24521 \begin_layout Plain Layout
24526 You can only number 26 footnotes with Latin letters, because this numbering
24527 is limited to single letters.
24533 \begin_inset Newline newline
24537 \begin_inset Note Greyedout
24540 \begin_layout Plain Layout
24545 You can only number 9 footnotes with symbols.
24553 \begin_layout Standard
24554 To return to the default numbering style when you changed to another one,
24567 in the command above.
24571 \begin_layout Plain Layout
24587 \begin_layout Standard
24588 \begin_inset VSpace bigskip
24594 \begin_layout Standard
24595 If you want to have footnotes numbered in the scheme
24596 \begin_inset Quotes eld
24600 \begin_inset Quotes erd
24603 , add the following command to your document preamble:
24606 \begin_layout Standard
24611 numberwithin{footnote}{chapter}
24614 \begin_layout Standard
24615 To be able to use the command
24624 \begin_inset space ~
24629 in the document settings the option
24632 \begin_inset space ~
24636 \begin_inset space ~
24640 \begin_inset space ~
24648 \begin_layout Standard
24652 \begin_layout Plain Layout
24656 numberwithin{footnote}{chapter}
24661 This is another example footnote:
24667 \begin_layout Plain Layout
24668 This is a footnote numbered in the scheme
24669 \begin_inset Quotes eld
24673 \begin_inset Quotes erd
24687 \begin_layout Plain Layout
24703 \begin_layout Standard
24704 \begin_inset Note Greyedout
24707 \begin_layout Plain Layout
24718 always prints out the footnote number as arabic number; previous redefinitions
24719 to get non-arabic numbers are overwritten.
24727 \begin_layout Standard
24728 So to get for example the scheme
24729 \begin_inset Quotes eld
24735 \begin_inset Quotes erd
24738 , use this command instead of
24747 \begin_layout Standard
24761 \begin_layout Subsection
24766 \begin_layout Plain Layout
24767 Footnotes ! Placement
24775 \begin_layout Standard
24776 If you have several footnotes in one page, they appear without vertical
24777 space between them at the bottom of the page.
24778 To make them better readable you can e.
24779 \begin_inset space \thinspace{}
24783 \begin_inset space \space{}
24787 \begin_inset space \thinspace{}
24790 mm space with the following preamble command:
24793 \begin_layout Standard
24803 \begin_inset Newline newline
24817 \begin_layout Standard
24818 \begin_inset VSpace bigskip
24821 In a two-column document the footnotes appear at the bottom of every column,
24823 \begin_inset space ~
24827 \begin_inset CommandInset ref
24829 reference "fig:Standard-footnote-placement"
24834 If the footnotes should only appear at the bottom of the right column,
24836 \begin_inset space ~
24840 \begin_inset CommandInset ref
24842 reference "fig:Footnote-placement-in"
24846 , use the LaTeX-package
24854 \begin_layout Plain Layout
24855 LaTeX-packages ! ftnright
24860 with this command in the document preamble:
24863 \begin_layout Standard
24868 usepackage{ftnright}
24871 \begin_layout Standard
24872 \begin_inset Float figure
24878 \begin_layout Plain Layout
24882 \begin_layout Plain Layout
24892 \begin_inset Graphics
24893 filename clipart/without_fntright.pdf
24895 scaleBeforeRotation
24903 \begin_layout Plain Layout
24913 \begin_layout Plain Layout
24914 \begin_inset Caption
24916 \begin_layout Plain Layout
24917 \begin_inset CommandInset label
24919 name "fig:Standard-footnote-placement"
24923 Standard footnote placement in two-column documents.
24936 \begin_layout Standard
24937 \begin_inset Float figure
24943 \begin_layout Plain Layout
24947 \begin_layout Plain Layout
24957 \begin_inset Graphics
24958 filename clipart/with_fntright.pdf
24960 scaleBeforeRotation
24968 \begin_layout Plain Layout
24978 \begin_layout Plain Layout
24979 \begin_inset Caption
24981 \begin_layout Plain Layout
24982 \begin_inset CommandInset label
24984 name "fig:Footnote-placement-in"
24988 Footnote placement in two-column documents when the LaTeX-package
25005 \begin_layout Standard
25006 \begin_inset VSpace bigskip
25009 In some scientific literature it is usual to collect the footnotes and print
25010 them in a separate paragraph at the the end of a section, like in Figure
25011 \begin_inset space ~
25015 \begin_inset CommandInset ref
25017 reference "fig:Endnotes----footnotes"
25022 They are then so called
25023 \begin_inset Quotes eld
25027 \begin_inset Quotes erd
25034 \begin_layout Plain Layout
25040 To use endnotes instead of footnotes in your document, load the LaTeX-package
25049 \begin_layout Plain Layout
25050 LaTeX-packages ! endnotes
25055 with the document preamble lines
25058 \begin_layout Standard
25063 usepackage{endnotes}
25064 \begin_inset Newline newline
25076 \begin_layout Standard
25077 To insert the collected footnotes, insert the command
25080 \begin_layout Standard
25088 \begin_layout Standard
25089 in TeX-Code at the the end of a section or chapter.
25092 \begin_layout Standard
25093 \begin_inset Float figure
25098 \begin_layout Plain Layout
25103 \begin_layout Plain Layout
25113 \begin_inset Graphics
25114 filename clipart/endnotes.pdf
25115 scaleBeforeRotation
25123 \begin_layout Plain Layout
25133 \begin_layout Plain Layout
25134 \begin_inset Caption
25136 \begin_layout Plain Layout
25137 \begin_inset CommandInset label
25139 name "fig:Endnotes----footnotes"
25143 Endnotes -- footnotes are printed in a separate paragraph at the end of
25144 sections or chapters.
25157 \begin_layout Standard
25158 \begin_inset VSpace medskip
25161 The paragraph heading for the endnotes isn't automatically translated into
25162 the document language, this must be done manually.
25163 The following preamble command translate the default English name
25164 \begin_inset Quotes eld
25168 \begin_inset Quotes erd
25171 to the German translation
25172 \begin_inset Quotes eld
25176 \begin_inset Quotes erd
25182 \begin_layout Standard
25189 notesname}{Anmerkungen}
25192 \begin_layout Standard
25193 \begin_inset VSpace medskip
25196 The numbering of endnotes can be changed like the footnote numbering as
25197 described in section
25198 \begin_inset space ~
25202 \begin_inset CommandInset ref
25204 reference "sub:Footnote-Numbering"
25208 ; just replace the command
25221 To reset the endnote number use the command
25227 as described in section
25228 \begin_inset space ~
25232 \begin_inset CommandInset ref
25234 reference "sub:Footnote-Numbering"
25238 and replace the command parameter
25249 \begin_layout Standard
25250 To create only a mark for an endnote, use the command
25254 endnotemark[number]
25256 similar to the command
25262 , described in section
25263 \begin_inset space ~
25267 \begin_inset CommandInset ref
25269 reference "sec:Footnotes"
25276 \begin_layout Standard
25277 \begin_inset VSpace bigskip
25280 Footnotes can also be placed in the page margin and the footnote text alignment
25281 can be changed, see the LaTeX-package
25289 \begin_layout Plain Layout
25290 LaTeX-packages ! footmisc
25296 \begin_inset CommandInset citation
25302 for more information about this.
25305 \begin_layout Standard
25306 For various further footnote formatting issues have a look at LaTeX-books,
25308 \begin_inset CommandInset citation
25310 key "latexcompanion,latexguide,latexbook"
25317 \begin_layout Section
25322 \begin_layout Plain Layout
25323 Notes ! Margin Notes
25331 \begin_layout Standard
25332 Margin notes look and behave in LyX like footnotes.
25333 They are inserted via the menu
25335 Insert\SpecialChar \menuseparator
25337 \begin_inset space ~
25342 or the toolbar button
25343 \begin_inset Graphics
25344 filename ../images/marginalnote-insert.png
25346 scaleBeforeRotation
25361 \begin_inset Quotes eld
25365 \begin_inset Quotes erd
25368 appears where you can enter the text of the margin note.
25371 \begin_layout Standard
25372 At the side is an example margin note.
25377 \begin_inset Marginal
25380 \begin_layout Plain Layout
25381 This is a margin note.
25389 \begin_layout Standard
25390 Margin notes appear at the right side in single-sided documents.
25391 In double-sided documents they appear in the outer margin -- left on even
25392 pages, right on odd pages.
25393 The text of margin notes is aligned opposite to the outer margin -- right-align
25394 ed when the note appears in the left margin.
25395 The first line of the margin note is placed at the position of the text
25396 line where it is inserted in the document.
25399 \begin_layout Standard
25400 \begin_inset VSpace bigskip
25403 To place the margin note in the inner margin, add the command
25406 \begin_layout Standard
25414 \begin_layout Standard
25415 in TeX-Code before a margin note.
25416 The new placement is valid for all following margin notes.
25421 \begin_layout Plain Layout
25431 \begin_inset Marginal
25434 \begin_layout Plain Layout
25435 This is a margin note in the inner margin.
25443 \begin_inset Newline newline
25449 \begin_inset Note Greyedout
25452 \begin_layout Plain Layout
25457 There is often not enough space in the inner margin so that the notes are
25458 not correctly displayed in the output.
25466 \begin_layout Standard
25467 To return to the default placement insert the command
25470 \begin_layout Standard
25478 \begin_layout Standard
25483 \begin_layout Plain Layout
25493 \begin_inset Note Greyedout
25496 \begin_layout Plain Layout
25501 The command is ignored when it is within a paragraph where also the command
25516 \begin_layout Standard
25517 \begin_inset VSpace bigskip
25524 \begin_inset Marginal
25527 \begin_layout Plain Layout
25528 AVeryLongMarginParWord that isn't hyphenated.
25536 Similar to the case described in section
25537 \begin_inset space ~
25541 \begin_inset CommandInset ref
25543 reference "sub:Multiple-Lines-in"
25547 , long words cannot be hyphenated when they are the first word in a margin
25549 To avoid this, insert 0
25550 \begin_inset space \thinspace{}
25553 pt horizontal space before the word
25558 \begin_inset Marginal
25561 \begin_layout Plain Layout
25562 \begin_inset space \hspace*{}
25566 AVeryLongMarginParWord that is hyphenated.
25574 \begin_layout Standard
25575 \begin_inset VSpace bigskip
25581 \begin_layout Standard
25582 \begin_inset Note Greyedout
25585 \begin_layout Plain Layout
25590 Margin notes can normally not be used inside tables, floats, and footnotes.
25598 \begin_layout Standard
25599 \begin_inset VSpace bigskip
25605 \begin_layout Standard
25609 \begin_layout Plain Layout
25619 \begin_inset Note Note
25622 \begin_layout Plain Layout
25623 The following section will only be displayed when the LaTeX-package
25635 \begin_layout Standard
25636 This restriction can be evaded by using the LaTeX-package
25644 \begin_layout Plain Layout
25645 LaTeX-packages ! marginnote
25651 By adding these two lines to your document preamble, the command used by
25652 LyX for margin notes is redefined to use the command provided by the
25659 \begin_layout Standard
25664 usepackage{marginnote}
25665 \begin_inset Newline newline
25677 \begin_layout Standard
25678 This is also used in this document because
25682 has another useful feature: You can set a vertical offset for the note.
25683 This is often needed when too many margin notes are too close together
25684 or for a better page layout.
25685 The offset is set in LyX as TeX-Code directly behind the margin note in
25689 \begin_layout Standard
25695 \begin_layout Standard
25696 where the offset is a length with one of the units listed in Table
25697 \begin_inset space ~
25701 \begin_inset CommandInset ref
25703 reference "tab:Units"
25708 A negative value shifts the note up, a positive value shifts it down.
25712 For example the margin note beside this text line is shifted up 1.5
25713 \begin_inset space \thinspace{}
25716 cm with the TeX-Code-command
25717 \begin_inset Quotes eld
25727 \begin_inset Quotes erd
25731 \begin_inset Marginal
25734 \begin_layout Plain Layout
25735 This margin note is shifted up 1.5
25736 \begin_inset space \thinspace{}
25739 cm from its original position.
25751 \begin_layout Plain Layout
25761 \begin_layout Standard
25762 \begin_inset VSpace medskip
25769 you can also change the alignment of the text in the margin note.
25770 For example the commands
25773 \begin_layout Standard
25780 raggedleftmarginnote}{
25783 \begin_inset Newline newline
25790 raggedrightmarginnote}{
25795 \begin_layout Standard
25796 set the alignment to centered.
25801 raggedleftmarginnote
25803 denotes margin notes that appear at the left side.
25810 \begin_layout Plain Layout
25816 raggedleftmarginnote}{
25821 \begin_layout Plain Layout
25827 raggedrightmarginnote}{
25835 \begin_inset Marginal
25838 \begin_layout Plain Layout
25839 The text of this margin note is centered.
25850 \begin_layout Standard
25857 raggedleftmarginnote}{
25860 \begin_inset Newline newline
25867 raggedrightmarginnote}{
25876 \begin_layout Plain Layout
25882 raggedleftmarginnote}{
25887 \begin_layout Plain Layout
25893 raggedrightmarginnote}{
25903 \begin_layout Standard
25904 \begin_inset VSpace medskip
25907 For the other features of
25911 we refer to its documentation
25912 \begin_inset CommandInset citation
25921 \begin_layout Standard
25922 \begin_inset VSpace bigskip
25925 You can adjust the layout of margin notes by changing its definition.
25926 To create for example a header for all margin notes with the underlined,
25927 sans-serif, and bold header text
25928 \begin_inset Quotes eld
25940 \begin_inset Quotes erd
25943 , add this to your document preamble:
25946 \begin_layout Standard
25956 \begin_inset Newline newline
25966 \begin_inset Newline newline
25973 \begin_layout Plain Layout
25990 underbar{Attention!}}}%
25991 \begin_inset Newline newline
25998 \begin_layout Plain Layout
26016 \begin_layout Standard
26023 \begin_layout Plain Layout
26034 \begin_layout Plain Layout
26045 \begin_layout Plain Layout
26053 underbar{Attention!}}}%
26056 \begin_layout Plain Layout
26070 \begin_inset Marginal
26073 \begin_layout Plain Layout
26074 This is a margin note with a defined heading.
26086 \begin_layout Plain Layout
26100 \begin_layout Plain Layout
26117 \begin_inset Note Note
26120 \begin_layout Plain Layout
26121 The margin note format is changed only for this example.
26129 \begin_layout Standard
26133 \begin_layout Plain Layout
26143 \begin_inset Note Note
26146 \begin_layout Plain Layout
26147 The following will be displayed when the LaTeX-package
26159 \begin_layout Standard
26160 You need to install the LaTeX-package
26164 to see the following part of this section in the output.
26167 \begin_layout Standard
26171 \begin_layout Plain Layout
26183 \begin_layout Chapter
26187 \begin_layout Section
26192 \begin_layout Plain Layout
26193 Boxes ! Introduction
26201 \begin_layout Standard
26202 Boxes are used to format a block of text.
26203 Boxes can be used to write documents with multiple languages, see section
26204 \begin_inset space ~
26208 \begin_inset CommandInset ref
26210 reference "sec:Minipages"
26214 , to frame texts, see section
26215 \begin_inset space ~
26219 \begin_inset CommandInset ref
26221 reference "sec:Decoration"
26225 , to prevent words to be hyphenated, see section
26226 \begin_inset space ~
26230 \begin_inset CommandInset ref
26232 reference "sec:Prevent-Hyphenation"
26236 , to align text, see section
26237 \begin_inset space ~
26241 \begin_inset CommandInset ref
26243 reference "sub:Vertical-Alignment"
26247 , or to set the background color of texts, see section
26248 \begin_inset space ~
26252 \begin_inset CommandInset ref
26254 reference "sec:Colored-Boxes"
26261 \begin_layout Standard
26262 Boxes can be inserted with the menu
26264 Insert\SpecialChar \menuseparator
26267 or the toolbar button
26268 \begin_inset Graphics
26269 filename ../images/box-insert.png
26271 scaleBeforeRotation
26276 A grey box with the label
26281 \begin_inset Graphics
26282 filename clipart/BoxInsetDefaultQt4.png
26284 scaleBeforeRotation
26289 The box type can be specified by right-clicking on the box.
26290 The appearing box dialog offers the
26293 \begin_inset space ~
26311 is the default for new boxes and is explained in section
26312 \begin_inset space ~
26316 \begin_inset CommandInset ref
26318 reference "sec:Minipages"
26326 is described in section
26327 \begin_inset space ~
26331 \begin_inset CommandInset ref
26333 reference "sec:Parboxes"
26340 \begin_layout Standard
26341 Boxes aren't numbered and can therefore not be referenced like floats or
26345 \begin_layout Standard
26346 \begin_inset Note Greyedout
26349 \begin_layout Plain Layout
26354 Boxes must not be the item in an
26370 \begin_layout Standard
26371 \begin_inset Note Greyedout
26374 \begin_layout Plain Layout
26379 For an unknown reason you can only set the
26382 \begin_inset space ~
26391 when you use a framed box.
26395 \begin_inset space ~
26400 type and without frames are explained in section
26401 \begin_inset space ~
26405 \begin_inset CommandInset ref
26407 reference "sec:Prevent-Hyphenation"
26419 \begin_layout Section
26421 \begin_inset CommandInset label
26423 name "sec:Box-Dialog"
26431 \begin_layout Plain Layout
26440 \begin_layout Subsection
26445 \begin_layout Plain Layout
26454 \begin_layout Standard
26455 In the box dialog you can adjust the box geometry in the fields
26464 The available units for the geometry are explained in Table
26465 \begin_inset space ~
26469 \begin_inset CommandInset ref
26471 reference "tab:Units"
26480 offers the following additional sizes:
26483 \begin_layout Description
26484 Depth This is the plain text
26485 \begin_inset Quotes eld
26489 \begin_inset Quotes erd
26493 It ignores the total depth when there are multiple text lines in the box:
26494 \begin_inset Newline newline
26498 \begin_inset Newline newline
26502 \begin_inset Newline newline
26506 \begin_inset Box Boxed
26515 height_special "depth"
26518 \begin_layout Plain Layout
26520 Box height set to 1
26521 \begin_inset space \thinspace{}
26530 \begin_inset Newline newline
26534 \begin_inset Newline newline
26540 \begin_layout Description
26541 Height This is the heigth of the text that is inside the box.
26543 \begin_inset space \thinspace{}
26547 \begin_inset space \space{}
26550 2 for this size will set the box heigth to 2 times the text height:
26551 \begin_inset Box Boxed
26560 height_special "height"
26563 \begin_layout Plain Layout
26565 Box height set to 2
26566 \begin_inset space \thinspace{}
26577 \begin_layout Description
26579 \begin_inset space ~
26582 Height This is the Height
26583 \begin_inset space \thinspace{}
26587 \begin_inset space \thinspace{}
26591 \begin_inset Box Boxed
26600 height_special "totalheight"
26603 \begin_layout Plain Layout
26605 Box height set to 1
26606 \begin_inset space \thinspace{}
26610 \begin_inset space ~
26621 \begin_layout Description
26622 Width This sets the width of the box as heigth:
26623 \begin_inset Box Boxed
26632 height_special "width"
26635 \begin_layout Plain Layout
26637 Box height set to 1
26638 \begin_inset space \thinspace{}
26649 \begin_layout Subsection
26654 \begin_layout Plain Layout
26663 \begin_layout Standard
26664 When you have chosen an
26667 \begin_inset space ~
26672 , the vertical box alignment can be:
26675 \begin_layout Description
26676 Top This is an example text line.
26678 \begin_inset Box Boxed
26687 height_special "totalheight"
26690 \begin_layout Plain Layout
26692 This box is top-aligned.
26697 This is an example text line.
26700 \begin_layout Description
26701 Middle This is an example text line.
26703 \begin_inset Box Boxed
26712 height_special "totalheight"
26715 \begin_layout Plain Layout
26717 This box is middle-aligned.
26722 This is an example text line.
26725 \begin_layout Description
26726 Bottom This is an example text line.
26728 \begin_inset Box Boxed
26737 height_special "totalheight"
26740 \begin_layout Plain Layout
26742 This box is bottom-aligned.
26747 This is an example text line.
26750 \begin_layout Standard
26751 \begin_inset Note Greyedout
26754 \begin_layout Plain Layout
26759 The vertical box aligment can be lost in the output when you have two boxes
26760 in a line and one has e.
26761 \begin_inset space \thinspace{}
26765 \begin_inset space \space{}
26768 a shadow and the other one not.
26776 \begin_layout Standard
26777 The horizontal box alignment can be set via LyX's paragraph dialog when
26778 you set the box into its own paragraph.
26781 \begin_layout Standard
26782 \begin_inset VSpace bigskip
26785 When you have chosen an
26788 \begin_inset space ~
26793 , the box content can be vertical aligned to:
26796 \begin_layout Description
26797 top This is an example text line.
26799 \begin_inset Box Boxed
26808 height_special "totalheight"
26811 \begin_layout Plain Layout
26813 This box text is top-aligned.
26818 This is an example text line.
26821 \begin_layout Description
26822 middle This is an example text line.
26824 \begin_inset Box Boxed
26833 height_special "totalheight"
26836 \begin_layout Plain Layout
26838 This box text is middle-aligned.
26843 This is an example text line.
26846 \begin_layout Description
26847 bottom This is an example text line.
26849 \begin_inset Box Boxed
26858 height_special "totalheight"
26861 \begin_layout Plain Layout
26863 This box text is bottom-aligned.
26868 This is an example text line.
26871 \begin_layout Description
26872 stretch This is an example text line.
26874 \begin_inset Box Boxed
26883 height_special "totalheight"
26886 \begin_layout Plain Layout
26891 \begin_layout Plain Layout
26896 \begin_layout Plain Layout
26903 This is an example text line.
26906 \begin_layout Standard
26907 To stretch the box content, it must consist of more than one paragraph.
26908 In the example above every text line is in an own paragraph.
26911 \begin_layout Standard
26912 \begin_inset VSpace bigskip
26915 To align the box content horizontally you can use LyX's paragraph dialog
26916 when you have chosen an
26919 \begin_inset space ~
26927 \begin_layout Standard
26929 \begin_inset Box Boxed
26938 height_special "totalheight"
26941 \begin_layout Plain Layout
26946 \begin_layout Plain Layout
26951 \begin_layout Plain Layout
26961 \begin_layout Standard
26962 If you haven't set an
26965 \begin_inset space ~
26970 , you can align the box content horizontally in the box dialog.
26973 \begin_layout Standard
26975 \begin_inset Box Boxed
26984 height_special "totalheight"
26987 \begin_layout Plain Layout
26989 This box text is horizontally stretched.
26997 \begin_layout Subsection
26999 \begin_inset CommandInset label
27001 name "sec:Decoration"
27009 \begin_layout Plain Layout
27018 \begin_layout Standard
27019 The type of the box can be specified in the box-dialog in the drop-down
27025 The following types are possible:
27028 \begin_layout Description
27030 \begin_inset space ~
27034 \begin_inset space ~
27037 frame This draws a rectangle frame around the box.
27038 The frame line thickness has the size of
27046 \begin_inset Box Boxed
27055 height_special "totalheight"
27058 \begin_layout Plain Layout
27068 \begin_layout Description
27070 \begin_inset space ~
27074 \begin_inset space ~
27077 break When you use the decoration
27079 simple rectangular frame
27081 and no inner box, you can allow page breaks within a box.
27082 Note that then, in contrary to other framed boxes, the frame always uses
27083 the whole column width, the box is set as its own paragraph, and
27095 has no effect on this box type.
27096 The frame line thickness has the size of
27104 \begin_inset Box Framed
27113 height_special "totalheight"
27116 \begin_layout Plain Layout
27117 Allow page break box
27125 \begin_layout Description
27127 \begin_inset space ~
27131 \begin_inset space ~
27134 thin This draws an oval frame around the box.
27135 The frame line thickness has the size 0.4
27136 \begin_inset space \thinspace{}
27141 \begin_inset Box ovalbox
27150 height_special "totalheight"
27153 \begin_layout Plain Layout
27163 \begin_layout Description
27165 \begin_inset space ~
27169 \begin_inset space ~
27172 thick This draws an oval frame around the box.
27173 The frame line thickness has the size 0.8
27174 \begin_inset space \thinspace{}
27179 \begin_inset Box Ovalbox
27188 height_special "totalheight"
27191 \begin_layout Plain Layout
27201 \begin_layout Description
27203 \begin_inset space ~
27206 shadow This draws a rectangle frame with a shadow around the box.
27207 The frame line thickness has the size of
27213 , the shadow has a width of 4
27214 \begin_inset space \thinspace{}
27219 \begin_inset Box Shadowbox
27228 height_special "totalheight"
27231 \begin_layout Plain Layout
27241 \begin_layout Description
27243 \begin_inset space ~
27246 background This draws a box with red background color.
27247 In contrary to colored boxes
27251 \begin_layout Plain Layout
27253 \begin_inset space \thinspace{}
27257 \begin_inset CommandInset ref
27259 reference "sec:Colored-Boxes"
27268 , it always uses the whole column width and the box is set as its own paragraph.
27270 \begin_inset Box Shaded
27279 height_special "totalheight"
27282 \begin_layout Plain Layout
27283 Shaded background box
27291 \begin_layout Description
27293 \begin_inset space ~
27297 \begin_inset space ~
27300 frame This draws a double-line rectangle frame around the box.
27301 The line thickness of the inner frame is 0.75
27302 \begin_inset space \thinspace{}
27311 , the thickness of the outer frame is 1.5
27312 \begin_inset space \thinspace{}
27322 The distance between the lines is 1.5
27323 \begin_inset space \thinspace{}
27333 \begin_inset space \thinspace{}
27337 \begin_inset space \thinspace{}
27341 \begin_inset space \thinspace{}
27346 \begin_inset Box Doublebox
27355 height_special "totalheight"
27358 \begin_layout Plain Layout
27360 Double rectangular box
27368 \begin_layout Standard
27369 \begin_inset VSpace bigskip
27372 LyX's box label will reflect the different frame types.
27373 To be able to use all types, the LaTeX-package
27381 \begin_layout Plain Layout
27382 LaTeX-packages ! fancybox
27390 \begin_layout Section
27395 \begin_layout Plain Layout
27396 Boxes ! Customization
27404 \begin_layout Standard
27405 The default value for the size
27412 \begin_inset space \thinspace{}
27416 It can be changed with the following command in TeX-Code to e.
27417 \begin_inset space \thinspace{}
27421 \begin_inset space \space{}
27425 \begin_inset space \thinspace{}
27431 \begin_layout Standard
27441 \begin_layout Standard
27445 \begin_layout Plain Layout
27457 \begin_inset Box Boxed
27466 height_special "totalheight"
27469 \begin_layout Plain Layout
27471 Rectangular box with
27478 \begin_inset space \thinspace{}
27482 \begin_inset space \thinspace{}
27486 \begin_inset space \thinspace{}
27498 \begin_layout Plain Layout
27512 \begin_layout Standard
27513 \begin_inset VSpace bigskip
27516 The space between the frame and the box content is for all frame styles
27518 \begin_inset space \thinspace{}
27522 You can change it by setting the length
27529 For example the command
27532 \begin_layout Standard
27542 \begin_layout Standard
27543 sets the value to 10
27544 \begin_inset space \thinspace{}
27547 pt, like for the following box:
27550 \begin_layout Standard
27554 \begin_layout Plain Layout
27566 \begin_inset Box Boxed
27575 height_special "totalheight"
27578 \begin_layout Plain Layout
27580 Rectangular box with
27587 \begin_inset space \thinspace{}
27591 \begin_inset space \thinspace{}
27595 \begin_inset space \thinspace{}
27607 \begin_layout Plain Layout
27621 \begin_layout Standard
27622 \begin_inset VSpace bigskip
27625 The diameter of the round corners of the oval boxes can be set with the
27636 \begin_layout Standard
27644 \begin_layout Standard
27645 sets the diameter to 1
27646 \begin_inset space \thinspace{}
27653 \begin_layout Standard
27661 \begin_layout Standard
27662 sets the diameter to
27665 \begin_inset space \thinspace{}
27669 \begin_inset space \thinspace{}
27672 minimum(width and heigth of box)
27684 \begin_layout Standard
27688 \begin_layout Plain Layout
27698 \begin_inset Box Ovalbox
27707 height_special "totalheight"
27710 \begin_layout Plain Layout
27719 \begin_inset space \thinspace{}
27723 \begin_inset space \thinspace{}
27727 \begin_inset space \thinspace{}
27739 \begin_layout Plain Layout
27751 \begin_layout Standard
27752 \begin_inset VSpace bigskip
27755 The size of the shadow can be adjusted by changing the length
27763 \begin_inset space \thinspace{}
27766 pt for the following box by this command:
27769 \begin_layout Standard
27779 \begin_layout Standard
27783 \begin_layout Plain Layout
27795 \begin_inset Box Shadowbox
27804 height_special "totalheight"
27807 \begin_layout Plain Layout
27816 \begin_inset space \thinspace{}
27820 \begin_inset space \thinspace{}
27824 \begin_inset space \thinspace{}
27836 \begin_layout Plain Layout
27850 \begin_layout Standard
27851 \begin_inset VSpace bigskip
27857 \begin_layout Standard
27858 The default value for the size
27865 \begin_inset space \thinspace{}
27869 The default space between the note content and the frame is 9
27870 \begin_inset space \thinspace{}
27873 pt and can be changed with the value of
27880 For example the frame appearance of the following
27884 is set with the TeX-Code commands
27887 \begin_layout Standard
27895 \begin_inset Newline newline
27905 \begin_layout Standard
27909 \begin_layout Plain Layout
27918 \begin_layout Plain Layout
27930 \begin_inset Box Framed
27939 height_special "totalheight"
27942 \begin_layout Plain Layout
27956 \begin_layout Plain Layout
27965 \begin_layout Plain Layout
27979 \begin_layout Standard
27980 \begin_inset VSpace bigskip
27986 \begin_layout Standard
27991 boxes the default space between the box content and the box border is 3
27992 \begin_inset space \thinspace{}
27995 pt and can be changed with the value of
28002 The default background color red can either be changed locally with the
28007 definecolor{shadebox}
28009 or globally with the menu
28011 Tools\SpecialChar \menuseparator
28012 Preferences\SpecialChar \menuseparator
28013 Colors\SpecialChar \menuseparator
28015 \begin_inset space ~
28027 command is explained in section
28028 \begin_inset space ~
28032 \begin_inset CommandInset ref
28034 reference "sec:Colored-Tables"
28042 \begin_layout Plain Layout
28049 requires the LaTeX-package
28053 in the preamble, see section
28054 \begin_inset space ~
28058 \begin_inset CommandInset ref
28060 reference "sec:Colored-Boxes"
28069 For example the appearance of the following shaded background note is set
28070 with the TeX-Code commands
28073 \begin_layout Standard
28083 \begin_inset Newline newline
28090 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28093 \begin_layout Standard
28097 \begin_layout Plain Layout
28106 \begin_layout Plain Layout
28110 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
28116 \begin_inset Box Shaded
28125 height_special "totalheight"
28128 \begin_layout Plain Layout
28131 This is yellow text in a
28141 box with dark green background.
28150 \begin_layout Plain Layout
28159 \begin_layout Plain Layout
28163 definecolor{shadecolor}{rgb}{1,0,0}
28171 \begin_layout Standard
28172 \begin_inset VSpace bigskip
28175 Changed lengths and widths are valid for all boxes following the commands
28179 \begin_layout Section
28181 \begin_inset CommandInset label
28183 name "sec:Minipages"
28191 \begin_layout Plain Layout
28200 \begin_layout Standard
28201 Minipages are treated by LaTeX as pages within pages and can therefore for
28202 example have their own footnotes.
28205 \begin_layout Standard
28206 Minipages are useful when you write documents with different languages.
28209 \begin_layout Standard
28210 Below are two example minipages side by side.
28211 Their width is set to 45
28212 \begin_inset space \thinspace{}
28215 col% and they are separated by a horizontal fill, that was inserted via
28218 Insert\SpecialChar \menuseparator
28220 \begin_inset space ~
28223 Formatting\SpecialChar \menuseparator
28225 \begin_inset space ~
28231 \begin_inset Newpage newpage
28237 \begin_layout Standard
28238 \begin_inset Box Frameless
28247 height_special "totalheight"
28250 \begin_layout Plain Layout
28253 Dies ist ein deutscher Text.
28254 Dies ist ein deutscher Text.
28255 Dies ist ein deutscher Text.
28256 Dies ist ein deutscher Text.
28257 Dies ist ein deutscher Text.
28258 Dies ist ein deutscher Text.
28259 Dies ist ein deutscher Text.
28260 Dies ist ein deutscher Text.
28261 Dies ist ein deutscher Text.
28262 Dies ist ein deutscher Text.
28263 Dies ist ein deutscher Text.
28264 Dies ist ein deutscher Text.
28265 Dies ist ein deutscher Text
28269 \begin_layout Plain Layout
28272 Dies ist eine deutsche Fußnote.
28278 Dies ist ein deutscher Text.
28279 Dies ist ein deutscher Text.
28285 \begin_inset space \hfill{}
28289 \begin_inset Box Frameless
28298 height_special "totalheight"
28301 \begin_layout Plain Layout
28302 This is an English Text.
28303 This is an English Text.
28304 This is an English Text.
28305 This is an English Text.
28306 This is an English Text.
28307 This is an English Text.
28308 This is an English Text.
28309 This is an English Text.
28310 This is an English Text.
28311 This is an English Text.
28312 This is an English Text.
28313 This is an English Text.
28314 This is an English Text.
28315 This is an English Text.
28316 This is an English Text.
28317 This is an English Text.
28321 \begin_layout Plain Layout
28322 This is an English footnote.
28327 This is an English Text.
28336 \begin_layout Standard
28337 \begin_inset VSpace bigskip
28340 Another application for minipages are footnotes within tables.
28341 Due to a LaTeX restriction footnotes within tables doesn't appear at the
28342 bottom of the current page.
28343 But when you put the table with the footnote to a minipage, the footnote
28344 will appear at its bottom, numbered with Latin letters.
28345 The footnote number is reset to 1 in every minipage but not outside the
28349 \begin_layout Standard
28350 The footnote of this table doesn't appear:
28351 \begin_inset Tabular
28352 <lyxtabular version="3" rows="3" columns="4">
28354 <column alignment="center" valignment="top" width="0pt">
28355 <column alignment="center" valignment="top" width="0pt">
28356 <column alignment="center" valignment="top" width="0pt">
28357 <column alignment="center" valignment="top" width="0pt">
28359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28362 \begin_layout Plain Layout
28368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28371 \begin_layout Plain Layout
28377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28380 \begin_layout Plain Layout
28385 \begin_layout Plain Layout
28386 This is a footnote within a table.
28396 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28399 \begin_layout Plain Layout
28407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28410 \begin_layout Plain Layout
28416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28419 \begin_layout Plain Layout
28425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28428 \begin_layout Plain Layout
28434 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28437 \begin_layout Plain Layout
28445 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28448 \begin_layout Plain Layout
28454 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28457 \begin_layout Plain Layout
28463 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28466 \begin_layout Plain Layout
28472 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28475 \begin_layout Plain Layout
28489 \begin_layout Standard
28491 \begin_inset Box Frameless
28500 height_special "totalheight"
28503 \begin_layout Plain Layout
28505 \begin_inset Tabular
28506 <lyxtabular version="3" rows="3" columns="4">
28508 <column alignment="center" valignment="top" width="0pt">
28509 <column alignment="center" valignment="top" width="0pt">
28510 <column alignment="center" valignment="top" width="0pt">
28511 <column alignment="center" valignment="top" width="0pt">
28513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28516 \begin_layout Plain Layout
28522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28525 \begin_layout Plain Layout
28531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28534 \begin_layout Plain Layout
28539 \begin_layout Plain Layout
28540 This is a footnote within a table.
28550 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28553 \begin_layout Plain Layout
28561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28564 \begin_layout Plain Layout
28570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28573 \begin_layout Plain Layout
28579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28582 \begin_layout Plain Layout
28588 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28591 \begin_layout Plain Layout
28599 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28602 \begin_layout Plain Layout
28608 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28611 \begin_layout Plain Layout
28617 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28620 \begin_layout Plain Layout
28626 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28629 \begin_layout Plain Layout
28648 \begin_layout Standard
28649 \begin_inset VSpace bigskip
28652 The document-wide paragraph settings are ignored within minipages.
28653 That means that there will be no space between paragraphs in minipages
28654 although you set it to e.
28655 \begin_inset space \thinspace{}
28659 \begin_inset space \space{}
28666 in the document settings.
28669 \begin_layout Standard
28670 Minipages can also be used to set a background color for text parts, see
28672 \begin_inset space ~
28676 \begin_inset CommandInset ref
28678 reference "sub:Color-for-Paragraphs"
28685 \begin_layout Standard
28686 \begin_inset Note Greyedout
28689 \begin_layout Plain Layout
28694 You cannot have floats or margin notes inside minipages but minipages can
28695 be used inside tables, floats, and other boxes.
28703 \begin_layout Section
28705 \begin_inset CommandInset label
28707 name "sec:Parboxes"
28715 \begin_layout Plain Layout
28724 \begin_layout Standard
28725 Parboxes are very similar to minipages with the difference that they cannot
28727 The main difference to minipages is that minipages are in contrary to parboxes
28728 no real boxes but LaTeX-environments.
28731 \begin_layout Standard
28733 \begin_inset Box Frameless
28742 height_special "totalheight"
28745 \begin_layout Plain Layout
28746 This a text within a parbox.
28747 This a text within a parbox.
28750 \begin_layout Plain Layout
28751 This footnote won't appear:
28755 \begin_layout Plain Layout
28756 This footnote is inside a parbox and will therefore not appear.
28769 \begin_layout Section
28770 Boxes for Words and Characters
28774 \begin_layout Plain Layout
28775 Boxes ! for Characters
28783 \begin_layout Subsection
28784 Prevent Hyphenation
28785 \begin_inset CommandInset label
28787 name "sec:Prevent-Hyphenation"
28795 \begin_layout Plain Layout
28796 Boxes ! to Prevent Hyphenation
28804 \begin_layout Standard
28805 You can use a special kind of boxes to prevent words or text to be hyphenated.
28806 \begin_inset Newline newline
28809 Here is an example text:
28812 \begin_layout Standard
28813 This line is an example to show how you can prevent the hyphenation of
28814 \begin_inset Quotes eld
28818 \begin_inset Quotes erd
28824 \begin_layout Standard
28825 To prevent the hyphenation of the word
28826 \begin_inset Quotes eld
28830 \begin_inset Quotes erd
28836 \begin_layout Standard
28844 \begin_layout Standard
28845 in TeX-Code before the word.
28846 Behind the word insert a closing brace
28847 \begin_inset Quotes eld
28855 \begin_inset Quotes erd
28861 \begin_layout Standard
28862 This is the result:
28865 \begin_layout Standard
28866 This line is an example to show how you can prevent the hyphenation of
28870 \begin_layout Plain Layout
28880 \begin_inset Quotes eld
28884 \begin_inset Quotes erd
28891 \begin_layout Plain Layout
28901 \begin_layout Standard
28902 You can alternatively set the command
28903 \begin_inset Quotes eld
28913 \begin_inset Quotes grd
28916 as TeX-Code directly before the word:
28919 \begin_layout Standard
28920 This line is an example to show how you can prevent the hyphenation of
28921 \begin_inset Quotes eld
28928 \begin_layout Plain Layout
28938 \begin_inset Quotes erd
28944 \begin_layout Standard
28945 Of course the word now protrudes over the side margin.
28946 To avoid this, add via the menu
28948 Insert\SpecialChar \menuseparator
28950 \begin_inset space ~
28953 Formatting\SpecialChar \menuseparator
28955 \begin_inset space ~
28963 arg "newline-insert newline"
28966 ) a line break before the word:
28969 \begin_layout Standard
28970 This line is an example to show how you can prevent the hyphenation of
28971 \begin_inset Newline newline
28978 \begin_layout Plain Layout
28988 \begin_inset Quotes eld
28992 \begin_inset Quotes erd
28999 \begin_layout Plain Layout
29009 \begin_layout Subsection
29011 \begin_inset CommandInset label
29013 name "sub:Vertical-Alignment"
29021 \begin_layout Plain Layout
29022 Boxes ! for Vertical Alignment
29031 \begin_layout Plain Layout
29040 \begin_layout Standard
29041 With the help of the command
29047 you can align words, characters or other boxes vertically to the surrounding
29055 is used with the following scheme:
29058 \begin_layout Standard
29063 raisebox{lift}[height][depth]{box content}
29066 \begin_layout Standard
29067 The lift can be a positive value to raise the box or a negative value to
29071 \begin_layout Standard
29072 To align for example the word
29073 \begin_inset Quotes eld
29077 \begin_inset Quotes erd
29080 so that the bottom of the
29081 \begin_inset Quotes eld
29085 \begin_inset Quotes erd
29089 \begin_inset Quotes eld
29093 \begin_inset Quotes erd
29096 is at the baseline, insert the command
29099 \begin_layout Standard
29109 \begin_layout Standard
29110 in TeX-Code before the word.
29111 Behind the word insert a closing brace
29112 \begin_inset Quotes eld
29120 \begin_inset Quotes erd
29124 \begin_inset Newline newline
29127 This is the result:
29130 \begin_layout Standard
29131 This is a text line with the word
29135 \begin_layout Plain Layout
29147 \begin_inset Quotes eld
29151 \begin_inset Quotes erd
29158 \begin_layout Plain Layout
29168 \begin_layout Standard
29169 \begin_inset VSpace bigskip
29172 When you raise or lower characters in a line, the line distance will be
29176 \begin_layout Standard
29177 This is a text line with the word
29181 \begin_layout Plain Layout
29193 \begin_inset Quotes eld
29197 \begin_inset Quotes erd
29204 \begin_layout Plain Layout
29212 \begin_inset Newline newline
29215 This is a text line with the word
29219 \begin_layout Plain Layout
29229 \begin_inset Quotes eld
29233 \begin_inset Quotes erd
29240 \begin_layout Plain Layout
29250 \begin_layout Standard
29251 If you want to prevent this for a certain reason, set the box height to
29256 \begin_layout Standard
29266 \begin_layout Standard
29267 This is a text line with the word
29271 \begin_layout Plain Layout
29283 \begin_inset Quotes eld
29287 \begin_inset Quotes erd
29294 \begin_layout Plain Layout
29302 \begin_inset Newline newline
29305 This is a text line with the word
29309 \begin_layout Plain Layout
29313 raisebox{0.5cm}[0pt]{
29319 \begin_inset Quotes eld
29323 \begin_inset Quotes erd
29330 \begin_layout Plain Layout
29340 \begin_layout Section
29342 \begin_inset CommandInset label
29344 name "sec:Colored-Boxes"
29352 \begin_layout Plain Layout
29361 \begin_layout Subsection
29366 \begin_layout Plain Layout
29375 \begin_layout Standard
29376 To color the background of text the text must be put into a so called
29377 \begin_inset Quotes eld
29381 \begin_inset Quotes erd
29385 This requires that the LaTeX-package
29393 \begin_layout Plain Layout
29394 LaTeX-packages ! color
29399 is loaded in the document preamble with the command
29402 \begin_layout Standard
29407 @ifundefined{textcolor}
29408 \begin_inset Newline newline
29415 \begin_layout Plain Layout
29426 usepackage{color}}{}
29429 \begin_layout Standard
29434 will be loaded automatically by LyX when you color text
29438 \begin_layout Plain Layout
29439 To avoid that it is loaded twice the command
29453 \begin_layout Standard
29454 \begin_inset VSpace medskip
29457 Colorboxes are created with the command
29464 This will be used with the following scheme:
29467 \begin_layout Standard
29472 colorbox{color}{box content}
29475 \begin_layout Standard
29476 The box content can also be a box and colorboxes can also be within other
29480 \begin_layout Standard
29481 The following colors are predefined:
29482 \begin_inset Newline newline
29521 \begin_inset Newline newline
29524 You can also define your own color as described in section
29525 \begin_inset space ~
29529 \begin_inset CommandInset ref
29531 reference "sec:Colored-Tables"
29538 \begin_layout Standard
29540 \begin_inset space \thinspace{}
29544 \begin_inset space \space{}
29547 a red background for a word, insert the command
29550 \begin_layout Standard
29558 \begin_layout Standard
29559 before the word in TeX-Code.
29560 Behind the word insert a closing brace
29561 \begin_inset Quotes eld
29569 \begin_inset Quotes erd
29573 \begin_inset Newline newline
29576 This is the result:
29579 \begin_layout Standard
29580 This is a line where the word
29584 \begin_layout Plain Layout
29594 \begin_inset Quotes eld
29598 \begin_inset Quotes erd
29605 \begin_layout Plain Layout
29612 has a red background.
29615 \begin_layout Standard
29616 \begin_inset VSpace bigskip
29619 If you would have the box frame in a different color, you can use the command
29626 with the following scheme:
29629 \begin_layout Standard
29634 fcolorbox{frame color}{box color}{box content}
29637 \begin_layout Standard
29651 The frame thickness and the space between the frame and the box content
29652 can be adjusted with the lengths
29664 , respectively, as described in section
29665 \begin_inset space ~
29669 \begin_inset CommandInset ref
29671 reference "sec:Decoration"
29678 \begin_layout Standard
29679 For the following example the command
29682 \begin_layout Standard
29687 fcolorbox{cyan}{magenta}{
29690 \begin_layout Standard
29694 \begin_layout Standard
29695 Here is an example where the frame line thickness was set to 1
29696 \begin_inset space \thinspace{}
29700 \begin_inset Newline newline
29707 \begin_layout Plain Layout
29722 \begin_layout Plain Layout
29726 fcolorbox{cyan}{magenta}{
29731 This is text within a colored, framed box.
29735 \begin_layout Plain Layout
29745 \begin_layout Standard
29746 \begin_inset VSpace bigskip
29749 Of course you can also have colored text inside a colorbox:
29750 \begin_inset Newline newline
29757 \begin_layout Plain Layout
29761 fcolorbox{cyan}{magenta}{
29768 This is colored text within a colored, framed box.
29774 \begin_layout Plain Layout
29785 \begin_layout Plain Layout
29799 \begin_layout Standard
29802 \begin_inset VSpace medskip
29808 \begin_layout Standard
29809 \begin_inset Note Greyedout
29812 \begin_layout Plain Layout
29817 Text in colorboxes cannot have line breaks.
29818 To color multiple text lines or paragraphs, use a box inside a colorbox
29819 as described in the following.
29827 \begin_layout Subsection
29828 Color for Paragraphs
29829 \begin_inset CommandInset label
29831 name "sub:Color-for-Paragraphs"
29839 \begin_layout Plain Layout
29840 Color ! for Paragraphs
29848 \begin_layout Standard
29849 To set the background color for more than one text line, put the text into
29851 Before the minipage insert the
29860 \begin_layout Standard
29868 \begin_layout Standard
29870 Behind the minipage insert a closing brace
29871 \begin_inset Quotes eld
29879 \begin_inset Quotes erd
29885 \begin_layout Standard
29889 \begin_layout Plain Layout
29893 colorbox{lightgrey}{
29899 \begin_inset Box Frameless
29908 height_special "totalheight"
29911 \begin_layout Plain Layout
29912 This is text with background color.
29913 This is text with background color.
29916 \begin_layout Plain Layout
29917 \begin_inset VSpace defskip
29920 The text can have footnotes
29924 \begin_layout Plain Layout
29925 Another example footnote
29930 and can include tables and figures.
29933 \begin_layout Plain Layout
29935 \begin_inset Tabular
29936 <lyxtabular version="3" rows="3" columns="3">
29938 <column alignment="center" valignment="top" width="0">
29939 <column alignment="center" valignment="top" width="0">
29940 <column alignment="center" valignment="top" width="0">
29942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29945 \begin_layout Plain Layout
29951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29954 \begin_layout Plain Layout
29960 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29963 \begin_layout Plain Layout
29971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29974 \begin_layout Plain Layout
29980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29983 \begin_layout Plain Layout
29985 \begin_inset Quotes erd
29993 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29996 \begin_layout Plain Layout
30004 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30007 \begin_layout Plain Layout
30013 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30016 \begin_layout Plain Layout
30022 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30025 \begin_layout Plain Layout
30045 \begin_layout Plain Layout
30055 \begin_layout Section
30056 Rotated and Scaled Boxes
30059 \begin_layout Standard
30060 To use the the commands described in this section, the LaTeX-package
30068 \begin_layout Plain Layout
30069 LaTeX-packages ! graphicx
30074 needs to be loaded in the document preamble with the command
30077 \begin_layout Standard
30082 @ifundefined{rotatebox}
30083 \begin_inset Newline newline
30090 \begin_layout Plain Layout
30101 usepackage{graphicx}}{}
30104 \begin_layout Standard
30105 \begin_inset Note Greyedout
30108 \begin_layout Plain Layout
30113 Some DVI-viewers can't display rotated or scaled material.
30121 \begin_layout Standard
30122 \begin_inset Note Greyedout
30125 \begin_layout Plain Layout
30130 Floats mustn't be inside a rotated or scaled box.
30138 \begin_layout Subsection
30143 \begin_layout Plain Layout
30153 \begin_layout Plain Layout
30163 \begin_layout Plain Layout
30173 \begin_layout Plain Layout
30174 Table Customization ! Rotating
30182 \begin_layout Standard
30183 To rotate material, you can put it into a rotated box.
30184 Such a box is created using the command
30190 in TeX-Code with the following scheme:
30193 \begin_layout Standard
30198 rotatebox[rotation origin]{rotation angle}{box content}
30201 \begin_layout Standard
30202 The rotation origin is specified in the form
30207 The following positions are possible:
30227 (top), and also expedient combinations of the four base positions.
30232 means, that the rotation origin is at the top left corner of the box.
30233 When no rotation origin is specified, the position
30238 The rotation angle is a number that can be negative that specifies the
30240 The rotation direction is counterclockwise.
30243 \begin_layout Standard
30244 In the following example the command
30248 rotatebox[origin=c]{60}{
30250 was inserted as TeX-Code before the text
30251 \begin_inset Quotes eld
30255 \begin_inset Quotes erd
30258 ; after the text the box was closed by a closing brace
30265 \begin_layout Standard
30270 \begin_layout Plain Layout
30274 rotatebox[origin=c]{60}{
30283 \begin_layout Plain Layout
30293 \begin_layout Standard
30294 The box content can also be another box or an inline formula:
30297 \begin_layout Standard
30302 \begin_layout Plain Layout
30306 rotatebox[origin=r]{-60}{
30312 \begin_inset Box Doublebox
30321 height_special "totalheight"
30324 \begin_layout Plain Layout
30334 \begin_layout Plain Layout
30345 \begin_layout Plain Layout
30349 rotatebox[origin=lb]{60}{
30355 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30362 \begin_layout Plain Layout
30372 \begin_layout Standard
30373 or an image or table:
30376 \begin_layout Standard
30381 \begin_layout Plain Layout
30385 rotatebox[origin=lb]{90}{
30391 \begin_inset Graphics
30392 filename clipart/platypus.eps
30402 \begin_layout Plain Layout
30409 with a rotated image
30413 \begin_layout Plain Layout
30417 rotatebox[origin=l]{-90}{
30423 \begin_inset Tabular
30424 <lyxtabular version="3" rows="2" columns="2">
30426 <column alignment="center" valignment="top" width="0">
30427 <column alignment="center" valignment="top" width="0">
30429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30432 \begin_layout Plain Layout
30438 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30441 \begin_layout Plain Layout
30449 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30452 \begin_layout Plain Layout
30458 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30461 \begin_layout Plain Layout
30476 \begin_layout Plain Layout
30486 \begin_layout Subsection
30491 \begin_layout Plain Layout
30501 \begin_layout Plain Layout
30511 \begin_layout Plain Layout
30521 \begin_layout Plain Layout
30522 Table Customization ! Scaling
30530 \begin_layout Standard
30531 To scale material the commands
30543 can be used as TeX-Code.
30546 \begin_layout Standard
30553 is used with the following scheme:
30556 \begin_layout Standard
30561 scalebox{horizontal}[vertical]{box content}
30564 \begin_layout Standard
30565 Horizontal and vertical are the corresponding scaling factors.
30566 If no vertical scaling factor is given, the horizontal factor will also
30567 be used as vertical one.
30570 \begin_layout Standard
30577 creates for example a double size
30581 \begin_layout Plain Layout
30594 \begin_layout Plain Layout
30601 , compared to the document text size.
30604 \begin_layout Standard
30609 scalebox{2}[1]{Hello}
30611 in contrary distorts the
30615 \begin_layout Plain Layout
30628 \begin_layout Plain Layout
30638 \begin_layout Standard
30639 If a the scaling factor is negative, the box content will be mirrored.
30640 Therefore the command
30644 scalebox{-1}[1]{Hello}
30646 can be used to create mirror writing:
30650 \begin_layout Plain Layout
30663 \begin_layout Plain Layout
30673 \begin_layout Standard
30678 scalebox{1}[-1]{Hello}
30684 \begin_layout Plain Layout
30697 \begin_layout Plain Layout
30707 \begin_layout Standard
30712 scalebox{-1}[1]{box content}
30714 there exists the command
30715 \begin_inset Newline newline
30722 reflectbox{box content}
30727 \begin_layout Standard
30728 \begin_inset VSpace bigskip
30737 is used to scale the box to a defined width and height.
30738 The command scheme is:
30741 \begin_layout Standard
30746 resizebox{width}{height}{box content}
30749 \begin_layout Standard
30750 Is one of the two command arguments given as exclamation mark
30754 , the size is set so that the aspect ratio of the box content is kept.
30757 \begin_layout Standard
30762 resizebox{2cm}{1cm}{Hello}
30768 \begin_layout Plain Layout
30772 resizebox{2cm}{1cm}{
30781 \begin_layout Plain Layout
30789 \begin_inset Newline newline
30796 resizebox{2cm}{!}{Hello}
30802 \begin_layout Plain Layout
30815 \begin_layout Plain Layout
30825 \begin_layout Standard
30826 \begin_inset VSpace bigskip
30830 \begin_inset Note Greyedout
30833 \begin_layout Plain Layout
30850 are set to zero, no LaTeX-errors occur when exporting the document but
30851 the exported files can not or only partly be displayed.
30859 \begin_layout Standard
30860 \begin_inset VSpace bigskip
30866 \begin_layout Standard
30867 The boxes can be combined in any order.
30869 \begin_inset space \thinspace{}
30873 \begin_inset space \space{}
30877 \begin_inset Newline newline
30884 rotatebox[origin=c]{-45}{
30888 reflectbox{Hello}}}
30889 \begin_inset Newline newline
30897 \begin_layout Standard
30902 \begin_layout Plain Layout
30906 rotatebox[origin=c]{-45}{
30919 \begin_layout Plain Layout
30929 \begin_layout Standard
30931 Images, tables, and inline formulas are allowed as box content:
30934 \begin_layout Standard
30939 \begin_layout Plain Layout
30943 rotatebox[origin=c]{-30}{
30953 \begin_inset Graphics
30954 filename clipart/platypus.eps
30964 \begin_layout Plain Layout
30975 \begin_layout Plain Layout
30979 rotatebox[origin=c]{-45}{
30989 \begin_inset Tabular
30990 <lyxtabular version="3" rows="2" columns="2">
30992 <column alignment="center" valignment="top" width="0">
30993 <column alignment="center" valignment="top" width="0">
30995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30998 \begin_layout Plain Layout
31004 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31007 \begin_layout Plain Layout
31015 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31018 \begin_layout Plain Layout
31024 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31027 \begin_layout Plain Layout
31042 \begin_layout Plain Layout
31053 \begin_layout Plain Layout
31057 rotatebox[origin=c]{-45}{
31067 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31074 \begin_layout Plain Layout
31084 \begin_layout Standard
31085 When the global formula style
31089 is used in the document
31093 \begin_layout Plain Layout
31095 \begin_inset Quotes eld
31099 \begin_inset Quotes erd
31102 is added to the document class options.
31107 , also display formulas can be scaled.
31110 \begin_layout Chapter
31115 \begin_layout Plain Layout
31124 \begin_layout Standard
31127 Insert\SpecialChar \menuseparator
31130 you can insert external material to your document.
31134 \begin_layout Description
31136 \begin_inset space ~
31139 Document Another LyX document; its content is directly inserted to your
31143 \begin_layout Description
31145 \begin_inset space ~
31148 Text A text document; every of its text lines is inserted to your document
31152 \begin_layout Description
31154 \begin_inset space ~
31158 \begin_inset space ~
31162 \begin_inset space ~
31165 Lines A text document; its text lines are inserted as they are.
31166 Empty text lines creates a new paragraph in your document.
31169 \begin_layout Description
31171 \begin_inset space ~
31174 Material Files in various formats.
31177 \begin_layout Description
31179 \begin_inset space ~
31182 Document LyX or LaTeX-documents.
31185 \begin_layout Section
31190 \begin_layout Plain Layout
31191 External Stuff ! External Material
31199 \begin_layout Standard
31200 The external material feature allows you to insert files to your document
31201 without converting them previously to a format that can be read by the
31202 document output format because LyX takes care of needed conversions.
31203 This is similar to images that can be inserted in various image formats
31205 When you have enabled Instant Preview in LyX's preferences under
31208 \begin_inset space ~
31212 \begin_inset space ~
31215 feel\SpecialChar \menuseparator
31218 , the external material types Dia and Xfig is directly shown in LyX.
31221 \begin_layout Standard
31222 External material can be inserted via the
31226 dialog that is accessible with the menu
31228 Insert\SpecialChar \menuseparator
31229 File\SpecialChar \menuseparator
31231 \begin_inset space ~
31237 Currently the following file types (
31244 \begin_layout Description
31245 ChessDiagram This template supports chess position diagrams made with the
31249 \begin_inset CommandInset href
31252 target "http://en.wikipedia.org/wiki/XBoard"
31261 \begin_layout Description
31262 Date This inserts the date in the form
31267 This is a date inserted as external material:
31268 \begin_inset External
31275 \begin_inset space ~
31279 \begin_inset Note Note
31282 \begin_layout Plain Layout
31283 Remove the protected space when bug 4398 is fixed!
31289 \begin_inset Newline newline
31292 The date is not shown within LyX, only in the output.
31293 There are two other methods of inserting a date: Via menu
31295 Insert\SpecialChar \menuseparator
31298 and with the LaTeX command
31305 The different methods are compared in Table
31306 \begin_inset space ~
31310 \begin_inset CommandInset ref
31312 reference "tab:Comparison-of-the"
31319 \begin_layout Description
31320 Dia This template supports diagrams created with the program
31323 \begin_inset CommandInset href
31326 target "http://en.wikipedia.org/wiki/Dia_(software)"
31335 \begin_layout Description
31336 LilyPond This template is used for music notation typeset with the program
31337 \begin_inset Newline linebreak
31343 \begin_inset CommandInset href
31346 target "http://en.wikipedia.org/wiki/LilyPond"
31355 \begin_layout Description
31356 PDFPages With this template you can insert PDF documents to your document.
31357 To insert certain or all pages of a PDF, use the
31367 LaTeX and LyX options
31369 tab according to the template description in the dialog.
31374 option is given, only the first page of the PDF will be inserted.
31377 \begin_layout Description
31378 RasterImage This can be used for bitmap images.
31379 Nearly all popular image formats are supported.
31380 The image can be treated in the
31384 dialog like the images that are usually included via the
31388 dialog as described in section
31389 \begin_inset space ~
31393 \begin_inset CommandInset ref
31395 reference "sec:Graphics-Dialog"
31400 The difference is that only raster images are allowed, that means that
31401 PDF and EPS-images are not supported.
31404 \begin_layout Description
31405 XFig This template supports images created with the program
31408 \begin_inset CommandInset href
31411 target "http://en.wikipedia.org/wiki/Xfig"
31420 \begin_layout Standard
31421 \begin_inset Float table
31427 \begin_layout Plain Layout
31428 \begin_inset Caption
31430 \begin_layout Plain Layout
31431 \begin_inset CommandInset label
31433 name "tab:Comparison-of-the"
31437 Comparison of the date input methods.
31445 \begin_layout Plain Layout
31447 \begin_inset Tabular
31448 <lyxtabular version="3" rows="4" columns="4">
31450 <column alignment="center" valignment="top" width="0">
31451 <column alignment="center" valignment="top" width="0">
31452 <column alignment="center" valignment="top" width="0">
31453 <column alignment="center" valignment="top" width="0">
31455 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31458 \begin_layout Plain Layout
31464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31467 \begin_layout Plain Layout
31470 External Material\SpecialChar \menuseparator
31476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31479 \begin_layout Plain Layout
31482 Insert\SpecialChar \menuseparator
31488 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31491 \begin_layout Plain Layout
31503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31506 \begin_layout Plain Layout
31512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31515 \begin_layout Plain Layout
31521 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31524 \begin_layout Plain Layout
31530 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31533 \begin_layout Plain Layout
31534 as TeX-Code inset box
31541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31544 \begin_layout Plain Layout
31550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31553 \begin_layout Plain Layout
31559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31562 \begin_layout Plain Layout
31568 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31571 \begin_layout Plain Layout
31579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31582 \begin_layout Plain Layout
31588 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31591 \begin_layout Plain Layout
31597 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31600 \begin_layout Plain Layout
31606 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31609 \begin_layout Plain Layout
31628 \begin_layout Standard
31629 When you use the option
31641 dialog, only the path to the inserted file is shown in the output.
31642 \begin_inset Newline newline
31645 External material is displayed in LyX either as box like this:
31646 \begin_inset Graphics
31647 filename clipart/ExternalMaterialQt4.png
31649 scaleBeforeRotation
31653 or as image, depending on the option
31659 LaTeX and LyX options
31664 \begin_layout Standard
31671 manual explains how you can define your own templates.
31674 \begin_layout Section
31676 \begin_inset CommandInset label
31678 name "sec:Child-Documents"
31686 \begin_layout Plain Layout
31687 External Stuff ! Child Documents
31696 \begin_layout Plain Layout
31705 \begin_layout Standard
31706 Child documents are used when you have a long document consisting of several
31707 larger parts or sections.
31708 For maintenance it is often useful and sometimes even required to split
31709 the document in several files that can be revised separately.
31710 The different documents are then the so called child documents and a master
31711 document connects them to print the full document or parts of it.
31712 A child documents inherits contents of its master, for example the bibliography
31713 and the labels for cross-references.
31716 \begin_layout Standard
31717 To be able to work on child documents without the need to open its master,
31718 specify in the child document the master in the menu
31720 Document\SpecialChar \menuseparator
31721 Settings\SpecialChar \menuseparator
31723 \begin_inset space ~
31729 This master file will then be used in the background by LyX when you edit
31730 the child document.
31733 \begin_layout Standard
31734 Included documents are displayed in LyX as a box like this:
31735 \begin_inset Graphics
31736 filename clipart/ChildDocumentQt4.png
31738 scaleBeforeRotation
31742 To include child documents to a master document use the menu
31744 Insert\SpecialChar \menuseparator
31745 File\SpecialChar \menuseparator
31747 \begin_inset space ~
31753 A dialog pops up where you can choose between four include methods:
31756 \begin_layout Description
31757 Include You can include LyX and LaTeX-documents.
31766 dialog, the included documents will be opened in LyX in a new file tab
31767 so that you can modify it.
31768 \begin_inset Newline newline
31774 \begin_layout Standard
31775 Here is a child document inserted using
31780 \begin_inset CommandInset include
31781 LatexCommand include
31782 filename "DummyDocument1.lyx"
31789 \begin_layout Standard
31790 The section numbering includes the sections of the included files in the
31791 order they are inserted in the master document.
31792 The included example document has for example a subsection that is numbered
31793 as subsection of this section.
31794 Labels of included documents can be referenced: Subsection
31795 \begin_inset space ~
31799 \begin_inset CommandInset ref
31801 reference "sub:External-Subsection-1"
31808 \begin_layout Standard
31809 The preamble of the child document is ignored, only the preamble of the
31810 master document is used.
31811 Included documents are inserted starting on a new page and end with a page
31815 \begin_layout Standard
31816 With the LaTeX-command
31822 you can specify which included child documents are processed when the output
31824 This is useful when you are perhaps only working on a certain chapter of
31825 your large document as this saves compiling time.
31832 is inserted to the master document preamble.
31833 It takes a comma-separated list of the filenames as argument, e.
31834 \begin_inset space \thinspace{}
31840 \begin_layout Standard
31845 includeonly{chapter1,chapter5}
31848 \begin_layout Standard
31849 will only process the included files named
31850 \begin_inset Quotes eld
31854 \begin_inset Quotes erd
31858 \begin_inset Quotes eld
31862 \begin_inset Quotes erd
31866 \begin_inset Quotes eld
31870 \begin_inset Quotes erd
31876 \begin_layout Standard
31877 \begin_inset Note Greyedout
31880 \begin_layout Plain Layout
31885 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
31886 w the document in case that the child document uses another document class
31887 than the master document as this will lead to unexpected outputs.
31895 \begin_layout Description
31896 Input This method is very similar to the Include method.
31897 The differences are:
31901 \begin_layout Itemize
31902 Input files don't start with a new page and don't end with a page break.
31905 \begin_layout Itemize
31906 Input files can be previewed in LyX when
31909 \begin_inset space ~
31914 is enabled in LyX's preferences under
31917 \begin_inset space ~
31921 \begin_inset space ~
31924 feel\SpecialChar \menuseparator
31930 \begin_layout Itemize
31941 \begin_layout Standard
31942 Here is a child document inserted using
31947 \begin_inset CommandInset include
31949 filename "DummyDocument2.lyx"
31956 \begin_layout Description
31957 Verbatim With this method every text file can be included.
31958 The file is shown in the output with its source code, no command used in
31959 the text is invoked.
31960 You can use the option
31962 Mark spaces in output
31964 that displays the character
31965 \begin_inset Quotes eld
31972 \begin_layout Plain Layout
31982 \begin_inset Quotes erd
31985 for every space character in the source code.
31986 The difference to the method via the menu
31988 Insert\SpecialChar \menuseparator
31989 File\SpecialChar \menuseparator
31991 \begin_inset space ~
31996 is that the document content is not shown in LyX.
31999 \begin_layout Standard
32000 Here is a child document inserted as Verbatim:
32001 \begin_inset CommandInset include
32002 LatexCommand verbatiminput
32003 filename "DummyTextDocument.txt"
32008 \begin_inset VSpace bigskip
32011 Here is a child document inserted as Verbatim using the
32013 Mark spaces in output
32016 \begin_inset CommandInset include
32017 LatexCommand verbatiminput*
32018 filename "DummyTextDocument.txt"
32025 \begin_layout Standard
32026 \begin_inset VSpace bigskip
32032 \begin_layout Standard
32033 \begin_inset Note Greyedout
32036 \begin_layout Plain Layout
32041 As you can see in the examples above, the text of the documents included
32046 is not broken at the end of the document lines.
32054 \begin_layout Description
32055 Listings This type is described in chapter
32056 \begin_inset space ~
32060 \begin_inset CommandInset ref
32062 reference "cha:Program-Code-Listings"
32069 \begin_layout Standard
32070 \begin_inset Note Greyedout
32073 \begin_layout Plain Layout
32078 Including the same document twice in a document using different methods
32079 could cause LaTeX-problems.
32087 \begin_layout Chapter
32088 Program Code Listings
32089 \begin_inset CommandInset label
32091 name "cha:Program-Code-Listings"
32099 \begin_layout Plain Layout
32109 \begin_layout Plain Layout
32119 \begin_layout Plain Layout
32128 \begin_layout Standard
32129 To include and typeset program code you can use the
32133 inset that can be inserted via the menu
32135 Insert\SpecialChar \menuseparator
32147 \begin_layout Plain Layout
32148 LaTeX-packages ! listings
32153 provides a powerful and flexible way to insert program source code to your
32157 \begin_layout Standard
32158 Right-clicking on a listings inset opens the context menu containing where
32159 you can set the listings format.
32162 \begin_layout Standard
32163 By default, a listing starts a new paragraph in the output.
32164 The placement option
32167 \begin_inset space ~
32172 prints the listing inline like this:
32173 \begin_inset listings
32174 lstparams "language={C++}"
32178 \begin_layout Plain Layout
32186 \begin_inset Newline newline
32193 creates a listings float where you can specify the placement options
32194 \begin_inset Quotes eld
32202 \begin_inset Quotes erd
32206 \begin_inset Quotes eld
32214 \begin_inset Quotes erd
32218 \begin_inset Quotes eld
32226 \begin_inset Quotes erd
32230 \begin_inset Quotes eld
32238 \begin_inset Quotes erd
32241 corresponding to the float placement options described in section
32242 \begin_inset space ~
32246 \begin_inset CommandInset ref
32248 reference "sec:Float-Placement"
32253 The placement options can be mixed and are inserted without any separation,
32255 \begin_inset space \thinspace{}
32259 \begin_inset space \space{}
32263 \begin_inset Quotes eld
32271 \begin_inset Quotes erd
32276 \begin_inset Quotes eld
32280 \begin_inset Quotes erd
32283 has sometimes no effect, but you don't need to use the
32287 option in this case as also non-float listings can have captions and be
32291 \begin_layout Standard
32292 You can add captions to listings with the menu
32294 Insert\SpecialChar \menuseparator
32298 Listings can be referenced like floats: Listing
32299 \begin_inset space ~
32303 \begin_inset CommandInset ref
32305 reference "lst:Example-Listing"
32312 \begin_layout Standard
32313 \begin_inset listings
32314 lstparams "language=Python"
32318 \begin_layout Plain Layout
32320 \begin_inset Caption
32322 \begin_layout Plain Layout
32323 \begin_inset CommandInset label
32325 name "lst:Example-Listing"
32329 Example Listing float
32334 # Example listing float
32337 \begin_layout Plain Layout
32342 \begin_layout Plain Layout
32344 'this is a python function'
32347 \begin_layout Plain Layout
32357 \begin_layout Standard
32358 When you have set a programming language in the listings dialog, the keywords
32359 of this language will be recognized and specially typeset in the output.
32360 In the example listings the Python keyword
32361 \begin_inset Quotes eld
32365 \begin_inset Quotes erd
32368 is recognized and printed bold in the output.
32371 \begin_layout Standard
32372 \begin_inset Note Greyedout
32375 \begin_layout Plain Layout
32380 If you don't get bold keywords when using typewriter fonts, your
32384 font probably doesn't provide a bold shape.
32385 In this case select a different one in the menu
32387 Document\SpecialChar \menuseparator
32388 Settings\SpecialChar \menuseparator
32400 provide bold shapes.)
32408 \begin_layout Standard
32412 \begin_inset space ~
32417 of the listings dialog you can specify the line numbering style.
32418 You can insert a number to specify which lines are numbered to the field
32425 \begin_inset space \thinspace{}
32429 \begin_inset space \space{}
32433 \begin_inset Quotes eld
32437 \begin_inset Quotes erd
32440 , only every 3rd line will be numbered.
32443 \begin_layout Standard
32444 You can furthermore specify a range of lines, only these will then appear
32448 Extended character table
32450 should be used when you use national characters like the German umlauts
32452 \begin_inset Newline newline
32455 Here is an example listing with left line numbering, step
32456 \begin_inset Quotes eld
32460 \begin_inset Quotes erd
32464 \begin_inset Quotes eld
32468 \begin_inset Quotes erd
32472 \begin_inset Quotes eld
32475 Extended character table
32476 \begin_inset Quotes erd
32480 \begin_inset Quotes eld
32484 \begin_inset space ~
32488 \begin_inset space ~
32492 \begin_inset Quotes erd
32496 \begin_inset space \thinspace{}
32500 \begin_inset space \thinspace{}
32506 \begin_layout Standard
32507 \begin_inset listings
32508 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
32512 \begin_layout Plain Layout
32517 \begin_layout Plain Layout
32519 'this is a python function'
32522 \begin_layout Plain Layout
32527 \begin_layout Plain Layout
32532 \begin_layout Plain Layout
32534 'This is a German word: Tschüß'
32537 \begin_layout Plain Layout
32542 \begin_layout Plain Layout
32547 \begin_layout Plain Layout
32549 'this is a python function'
32552 \begin_layout Plain Layout
32562 \begin_layout Standard
32563 When you have tabulators in your listing, you can specify the number of
32564 characters that are spanned by a tabulator in the field
32567 \begin_inset space ~
32575 \begin_layout Standard
32576 \begin_inset Note Greyedout
32579 \begin_layout Plain Layout
32584 Due to a bug in the
32588 package the line numbering is shifted by a line by every previous listing.
32589 That's the reason why the lines 2 and 5 are numbered in the above listing
32590 and not the lines 3 and 6.
32598 \begin_layout Standard
32599 \begin_inset VSpace bigskip
32605 \begin_layout Standard
32606 It is also possible to print lines from a file as listing.
32607 To do this, use the menu
32609 Insert\SpecialChar \menuseparator
32610 File\SpecialChar \menuseparator
32613 and choose the type
32621 \begin_layout Plain Layout
32622 The other child document types are described in section
32623 \begin_inset space ~
32627 \begin_inset CommandInset ref
32629 reference "sec:Child-Documents"
32638 In the child document dialog you can specify the listing parameters in
32640 To show a list of all available parameters, type in a question mark
32641 \begin_inset Quotes eld
32645 \begin_inset Quotes erd
32651 \begin_layout Standard
32652 To reference child document listings, write a label text into the corresponding
32653 field of the child document dialog.
32654 The label can then be referenced using the menu
32656 Insert\SpecialChar \menuseparator
32662 \begin_layout Standard
32664 \begin_inset space ~
32668 \begin_inset CommandInset ref
32670 reference "lst:file-listing"
32674 is an example for a listing of a file; there the lines 10
32675 \begin_inset space \thinspace{}
32679 \begin_inset space \thinspace{}
32682 15 of this LyX file are listed.
32685 \begin_layout Standard
32686 \begin_inset CommandInset include
32687 LatexCommand lstinputlisting
32688 filename "EmbeddedObjects.lyx"
32689 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
32696 \begin_layout Standard
32697 \begin_inset VSpace bigskip
32703 \begin_layout Standard
32704 Global listings settings can be set in the
32706 Document\SpecialChar \menuseparator
32707 Settings\SpecialChar \menuseparator
32711 To get there a list of available options, type in a question mark
32712 \begin_inset Quotes eld
32716 \begin_inset Quotes erd
32722 \begin_inset space ~
32730 \begin_layout Standard
32731 For more information about the
32735 package, we refer to its documentation
32736 \begin_inset CommandInset citation
32745 \begin_layout Standard
32746 \begin_inset Newpage newpage
32752 \begin_layout Chapter
32754 Units available in LyX
32758 \begin_layout Plain Layout
32765 \begin_inset CommandInset label
32767 name "cha:Units-available-in"
32774 \begin_layout Standard
32775 To understand the units described in this documentation, Table
32776 \begin_inset space ~
32780 \begin_inset CommandInset ref
32782 reference "tab:Units"
32786 explains all units available in LyX.
32789 \begin_layout Standard
32790 \begin_inset Float table
32796 \begin_layout Plain Layout
32797 \begin_inset Caption
32799 \begin_layout Plain Layout
32800 \begin_inset CommandInset label
32814 \begin_layout Plain Layout
32815 \begin_inset VSpace medskip
32821 \begin_layout Plain Layout
32823 \begin_inset Tabular
32824 <lyxtabular version="3" rows="20" columns="2">
32826 <column alignment="center" valignment="top" width="0">
32827 <column alignment="center" valignment="top" width="0">
32829 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32832 \begin_layout Plain Layout
32838 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32841 \begin_layout Plain Layout
32849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32852 \begin_layout Plain Layout
32858 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32861 \begin_layout Plain Layout
32869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32872 \begin_layout Plain Layout
32878 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32881 \begin_layout Plain Layout
32889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32892 \begin_layout Plain Layout
32898 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32901 \begin_layout Plain Layout
32909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32912 \begin_layout Plain Layout
32918 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32921 \begin_layout Plain Layout
32923 \begin_inset space \thinspace{}
32927 \begin_inset space \thinspace{}
32937 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32940 \begin_layout Plain Layout
32946 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32949 \begin_layout Plain Layout
32951 \begin_inset space \thinspace{}
32955 \begin_inset space \thinspace{}
32965 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32968 \begin_layout Plain Layout
32974 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32977 \begin_layout Plain Layout
32978 scaled point (65536
32979 \begin_inset space \thinspace{}
32983 \begin_inset space \thinspace{}
32993 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32996 \begin_layout Plain Layout
33002 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33005 \begin_layout Plain Layout
33007 \begin_inset space \thinspace{}
33011 \begin_inset space \thinspace{}
33021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33024 \begin_layout Plain Layout
33030 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33033 \begin_layout Plain Layout
33035 \begin_inset space \thinspace{}
33039 \begin_inset Formula $\approx$
33043 \begin_inset space \thinspace{}
33053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33056 \begin_layout Plain Layout
33062 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33065 \begin_layout Plain Layout
33067 \begin_inset space \thinspace{}
33071 \begin_inset space \thinspace{}
33081 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33084 \begin_layout Plain Layout
33090 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33093 \begin_layout Plain Layout
33094 % of original image width
33101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33104 \begin_layout Plain Layout
33110 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33113 \begin_layout Plain Layout
33121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33124 \begin_layout Plain Layout
33130 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33133 \begin_layout Plain Layout
33141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33144 \begin_layout Plain Layout
33150 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33153 \begin_layout Plain Layout
33161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33164 \begin_layout Plain Layout
33170 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33173 \begin_layout Plain Layout
33181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33184 \begin_layout Plain Layout
33190 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33193 \begin_layout Plain Layout
33201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33204 \begin_layout Plain Layout
33210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33213 \begin_layout Plain Layout
33221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33224 \begin_layout Plain Layout
33230 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33233 \begin_layout Plain Layout
33245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33248 \begin_layout Plain Layout
33254 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33257 \begin_layout Plain Layout
33269 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33272 \begin_layout Plain Layout
33278 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33281 \begin_layout Plain Layout
33283 \begin_inset space \thinspace{}
33287 \begin_inset space \thinspace{}
33308 \begin_layout Chapter
33309 Output File Formats with Graphics
33310 \begin_inset CommandInset label
33312 name "cha:Output-File-Formats"
33319 \begin_layout Section
33324 \begin_layout Plain Layout
33334 \begin_layout Plain Layout
33339 \begin_layout Plain Layout
33350 \begin_layout Plain Layout
33365 \begin_layout Standard
33366 This file type has the extension
33367 \begin_inset Quotes eld
33375 \begin_inset Quotes erd
33380 \begin_inset Quotes eld
33384 \begin_inset Quotes erd
33387 (DVI), because it is completely portable; you can move them from one machine
33388 to another without needing to do any sort of conversion.
33389 At the time when this file-format was developed, this was no matter of
33391 DVIs are used for quick previews and as pre-stage for other output formats,
33395 \begin_layout Standard
33396 \begin_inset Note Greyedout
33399 \begin_layout Plain Layout
33404 DVI-files doesn't contain images, they will only be a linked.
33409 So don't forget this, if you move your
33413 file to another computer.
33414 This property can also slow down your computer when you view the DVI.
33415 Because the DVI-viewer has to convert the image in the background to make
33416 it visible when you scroll in the DVI.
33417 So we recommend to use PDF for files with many images.
33420 \begin_layout Standard
33421 You can export your document to DVI by using the menu
33423 File\SpecialChar \menuseparator
33424 Export\SpecialChar \menuseparator
33428 You can view your document as DVI via the
33432 menu or by using the toolbar button
33433 \begin_inset Graphics
33434 filename ../images/buffer-view_dvi.png
33436 scaleBeforeRotation
33443 \begin_layout Section
33445 \begin_inset CommandInset label
33447 name "sec:PostScript"
33455 \begin_layout Plain Layout
33456 File Formats ! PostScript
33465 \begin_layout Plain Layout
33470 \begin_layout Plain Layout
33481 \begin_layout Plain Layout
33496 \begin_layout Standard
33497 This file type has the extension
33498 \begin_inset Quotes eld
33506 \begin_inset Quotes erd
33510 PostScript was developed by the company
33514 as printer language.
33515 The file contains therefore commands that the printer uses to print the
33517 PostScript can be seen as
33518 \begin_inset Quotes eld
33521 programming language
33522 \begin_inset Quotes erd
33525 ; you can calculate with it and draw diagrams and images
33529 \begin_layout Plain Layout
33530 If you are interested to learn more about this, have a look at the LaTeX-package
33536 \begin_inset CommandInset citation
33548 Due to this ability, the files are often bigger than PDFs.
33551 \begin_layout Standard
33552 PostScript can only contain images in the format
33553 \begin_inset Quotes eld
33556 Encapsulated PostScript
33557 \begin_inset Quotes erd
33560 (EPS, file extension
33561 \begin_inset Quotes eld
33569 \begin_inset Quotes erd
33573 As LyX allows you to use any known image format in your document, it has
33574 to convert images in the background to EPS.
33575 If you have e.g 50 images in your document, LyX has to do 50 conversions
33576 whenever you view or export your document.
33577 This will slow down your work flow with LyX drastically.
33578 So if you plan to use PostScript, you can insert your images directly as
33579 EPS to avoid this problem.
33582 \begin_layout Standard
33583 You can export your document to PostScript using the menu
33585 File\SpecialChar \menuseparator
33586 Export\SpecialChar \menuseparator
33590 You can view your document as PostScript via the
33594 menu or by using the toolbar button
33595 \begin_inset Graphics
33596 filename ../images/buffer-view_ps.png
33598 scaleBeforeRotation
33605 \begin_layout Section
33610 \begin_layout Plain Layout
33620 \begin_layout Plain Layout
33629 \begin_layout Standard
33630 This file type has the extension
33631 \begin_inset Quotes eld
33639 \begin_inset Quotes erd
33644 \begin_inset Quotes eld
33647 Portable Document Format
33648 \begin_inset Quotes erd
33651 (PDF) is developed by
33655 as derivative from PostScript.
33656 It is more compressed and it uses much less commands than PostScript.
33658 \begin_inset Quotes eld
33662 \begin_inset Quotes erd
33665 implies, it can be processed at any computer system and the printed output
33666 looks exactly the same.
33669 \begin_layout Standard
33670 PDF can contain images in its own PDF format, in the format
33671 \begin_inset Quotes eld
33674 Joint Photographic Experts Group
33675 \begin_inset Quotes erd
33678 (JPG, file extension
33679 \begin_inset Quotes eld
33687 \begin_inset Quotes erd
33691 \begin_inset Quotes eld
33699 \begin_inset Quotes erd
33702 ), and in the format
33703 \begin_inset Quotes eld
33706 Portable Network Graphics
33707 \begin_inset Quotes erd
33710 (PNG, file extension
33711 \begin_inset Quotes eld
33719 \begin_inset Quotes erd
33723 Nevertheless you can use any other image format, because LyX converts them
33724 in the background to one of these formats.
33725 But as described in the section about PostScript, the image conversion
33726 will slow down your work flow.
33727 So it is recommended to use images in one of the three mentioned formats.
33730 \begin_layout Standard
33731 You can export your document to PDF via the menu
33733 File\SpecialChar \menuseparator
33736 in three different ways:
33739 \begin_layout Description
33741 \begin_inset space ~
33744 (ps2pdf) This uses the program
33748 that creates a PDF from a PostScript-version of your file.
33749 The PostScript-version is produced by the program
33753 which uses a DVI-version as intermediate step.
33754 So this export variant consist of three conversions.
33757 \begin_layout Description
33759 \begin_inset space ~
33762 (dvipdfm) This uses the program
33766 that converts your file in the background to DVI and in a second step to
33770 \begin_layout Description
33772 \begin_inset space ~
33775 (pdflatex) This uses the program
33779 that converts your file directly to PDF.
33782 \begin_layout Standard
33783 It is recommended to use
33786 \begin_inset space ~
33795 supports all features of actual PDF-versions, is quick and works stable
33801 is not under development and therefore a bit outdated.
33804 \begin_layout Standard
33805 You can view your document as PDF via the
33809 menu or by using the toolbar button
33810 \begin_inset Graphics
33811 filename ../images/buffer-view_pdf2.png
33813 scaleBeforeRotation
33824 \begin_inset space ~
33832 \begin_layout Chapter
33833 Explanation of Equation
33834 \begin_inset space ~
33838 \begin_inset CommandInset ref
33845 \begin_inset CommandInset label
33847 name "cha:Explanation-of-Equation"
33854 \begin_layout Standard
33860 \begin_inset Formula $W_{\mathrm{tot\, n}}$
33863 can be calculated to
33866 \begin_layout Standard
33867 \begin_inset Formula \begin{equation}
33868 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}
33875 \begin_layout Standard
33877 \begin_inset Formula $W_{g\, n}$
33880 is the given width of all cells.
33887 is the LaTeX-length between the cell text and the cell border, its default
33889 \begin_inset space \thinspace{}
33899 is the thickness of the cell border line, the default is 0.4
33900 \begin_inset space \thinspace{}
33906 \begin_layout Standard
33908 \begin_inset space ~
33912 \begin_inset CommandInset ref
33914 reference "eq:Wtot_n"
33918 , the total width of a multicolumn
33919 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
33925 \begin_layout Standard
33926 \begin_inset Formula \begin{equation}
33927 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
33934 \begin_layout Standard
33935 By setting equation
33936 \begin_inset space ~
33940 \begin_inset CommandInset ref
33942 reference "eq:Wtot_n"
33947 \begin_inset CommandInset ref
33949 reference "eq:Wtot_mult"
33953 equal we can calculate the needed given width
33954 \begin_inset Formula $W_{g\, n}$
33961 columns are spanned, so that each column has a total width of
33962 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
33968 \begin_layout Standard
33969 \begin_inset Formula \begin{equation}
33970 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
33977 \begin_layout Bibliography
33978 \begin_inset CommandInset bibitem
33979 LatexCommand bibitem
33980 key "latexcompanion"
33984 Frank Mittelbach and Michel Goossens:
33986 The LaTeX Companion Second Edition.
33989 Addison-Wesley, 2004
33992 \begin_layout Bibliography
33993 \begin_inset CommandInset bibitem
33994 LatexCommand bibitem
33999 Helmut Kopka and Patrick W.
34002 A Guide to LaTeX Fourth Edition.
34005 Addison-Wesley, 2003
34008 \begin_layout Bibliography
34009 \begin_inset CommandInset bibitem
34010 LatexCommand bibitem
34017 LaTeX: A Document Preparation System.
34020 Addison-Wesley, second edition, 1994
34023 \begin_layout Bibliography
34024 \begin_inset CommandInset bibitem
34025 LatexCommand bibitem
34030 Documentation of the LaTeX-package
34033 \begin_inset CommandInset href
34036 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
34046 \begin_layout Plain Layout
34047 LaTeX-packages ! booktabs
34055 \begin_layout Bibliography
34056 \begin_inset CommandInset bibitem
34057 LatexCommand bibitem
34062 Documentation of the LaTeX-package
34065 \begin_inset CommandInset href
34068 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
34078 \begin_layout Plain Layout
34079 LaTeX-packages ! caption
34087 \begin_layout Bibliography
34088 \begin_inset CommandInset bibitem
34089 LatexCommand bibitem
34094 Documentation of the LaTeX-package
34097 \begin_inset CommandInset href
34100 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
34110 \begin_layout Plain Layout
34111 LaTeX-packages ! endfloat
34119 \begin_layout Bibliography
34120 \begin_inset CommandInset bibitem
34121 LatexCommand bibitem
34126 Documentation of the LaTeX-package
34129 \begin_inset CommandInset href
34132 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
34142 \begin_layout Plain Layout
34143 LaTeX-packages ! wrapfig
34147 \begin_layout Plain Layout
34164 \begin_layout Bibliography
34165 \begin_inset CommandInset bibitem
34166 LatexCommand bibitem
34171 Documentation of the LaTeX-package
34174 \begin_inset CommandInset href
34177 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
34187 \begin_layout Plain Layout
34188 LaTeX-packages ! footmisc
34196 \begin_layout Bibliography
34197 \begin_inset CommandInset bibitem
34198 LatexCommand bibitem
34203 Documentation of the LaTeX-package
34206 \begin_inset CommandInset href
34209 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
34219 \begin_layout Plain Layout
34220 LaTeX-packages ! hyperref
34228 \begin_layout Bibliography
34229 \begin_inset CommandInset bibitem
34230 LatexCommand bibitem
34235 Documentation of the LaTeX-package
34238 \begin_inset CommandInset href
34241 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
34251 \begin_layout Plain Layout
34252 LaTeX-packages ! hyperref
34260 \begin_layout Bibliography
34261 \begin_inset CommandInset bibitem
34262 LatexCommand bibitem
34267 Documentation of the LaTeX-package
34270 \begin_inset CommandInset href
34273 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
34283 \begin_layout Plain Layout
34284 LaTeX-packages ! koma-script
34292 \begin_layout Bibliography
34293 \begin_inset CommandInset bibitem
34294 LatexCommand bibitem
34299 Documentation of the LaTeX-package
34302 \begin_inset CommandInset href
34305 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
34315 \begin_layout Plain Layout
34316 LaTeX-packages ! listings
34324 \begin_layout Bibliography
34325 \begin_inset CommandInset bibitem
34326 LatexCommand bibitem
34331 Documentation of the LaTeX-package
34334 \begin_inset CommandInset href
34337 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
34347 \begin_layout Plain Layout
34348 LaTeX-packages ! marginnote
34356 \begin_layout Bibliography
34357 \begin_inset CommandInset bibitem
34358 LatexCommand bibitem
34363 Web page of the LaTeX-package
34366 \begin_inset CommandInset href
34369 target "http://tug.org/PSTricks/"
34379 \begin_layout Plain Layout
34380 LaTeX-packages ! PSTricks
34388 \begin_layout Bibliography
34389 \begin_inset CommandInset bibitem
34390 LatexCommand bibitem
34395 Documentation of the LaTeX-package
34398 \begin_inset CommandInset href
34401 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
34411 \begin_layout Plain Layout
34412 LaTeX-packages ! sidecap
34420 \begin_layout Bibliography
34421 \begin_inset CommandInset bibitem
34422 LatexCommand bibitem
34428 \begin_inset CommandInset href
34431 target "http://wiki.lyx.org/LyX/NewInLyX16"
34435 about new features in
34442 \begin_layout Standard
34443 \begin_inset CommandInset index_print
34444 LatexCommand printindex
34451 \begin_layout Standard
34452 \begin_inset FloatList figure
34459 \begin_layout Standard
34460 \begin_inset FloatList table
34467 \begin_layout Standard
34468 \begin_inset FloatList algorithm