1 #LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC are numbered roman
23 % and a PDF-bookmark for the TOC is added
25 \let\myTOC\tableofcontents
26 \renewcommand{\tableofcontents}{%
27 \pdfbookmark[1]{\contentsname}{}
30 \pagenumbering{arabic}}
32 % provides caption formatting
33 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
35 % provides commands to set caption
36 % beside tables/images
39 \newcommand{\TabBesBeg}{%
41 \let\MyEndtable\endtable
42 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
44 \newcommand{\TabBesEnd}{%
46 \let\endtable\MyEndtable}
48 \newcommand{\FigBesBeg}{%
50 \let\MyEndfigure\endfigure
51 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
53 \newcommand{\FigBesEnd}{%
55 \let\endfigure\MyEndfigure}
57 % enables calculation of values,
60 % provides special table cell alignments
63 % increase the bottom float placement fraction
64 \renewcommand{\bottomfraction}{0.5}
66 % avoids that floats are placed before their
67 % corresponding section starts
68 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
70 % speed up the longtable calculation
71 \setcounter{LTchunksize}{100}
73 % used for scaled and rotated boxes
74 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
76 % used for colored tables
77 \@ifundefined{textcolor}
78 {\usepackage{color}}{}
79 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
80 \definecolor{lightgrey}{gray}{0.8}
82 % check for package colortbl
83 % used for colored table cells
85 \IfFileExists{colortbl.sty}
86 {\usepackage{colortbl}
87 \setboolean{colortbl}{true}}
88 {\setboolean{colortbl}{false}}
92 %\renewcommand{\multirowsetup}{\centering}
94 % used for book-style tables
97 % used to have extra space in table cells
98 \@ifundefined{extrarowheight}
99 {\usepackage{array}}{}
100 \setlength{\extrarowheight}{2pt}
102 % used for customized tables
105 {>{\centering\hspace{0pt}}m{#1}}
108 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
111 {>{\columncolor{#1}\hspace{0pt}}c}
113 \newcolumntype{V}{!{\vrule width 1.5pt}}
115 \newcolumntype{W}{!{\color{green}\vline}}
118 % insert additional vertical space of
119 % 1.5 mm between footnotes
121 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
123 % number algorithm floats within chapters
124 \numberwithin{algorithm}{chapter}
126 % redefine the greyed out note
127 \renewenvironment{lyxgreyedout}
128 {\textcolor{blue}\bgroup}{\egroup}
130 % ------------------------------------
131 % used to check for needed LaTeX packages
134 % check for package arydshln
135 % used for tables with dashed lines
136 \newboolean{arydshln}
137 \IfFileExists{arydshln.sty}
138 {\usepackage{arydshln}
139 \setboolean{arydshln}{true}}
140 {\setboolean{arydshln}{false}}
142 % check for package marginnote
143 % used for margin notes
144 \newboolean{marginnote}
145 \IfFileExists{marginnote.sty}
146 {\usepackage{marginnote}
147 \let\marginpar\marginnote
148 \setboolean{marginnote}{true}}
149 {\setboolean{marginnote}{false}}
151 % check for package sidecap
152 % used for captions on the side
154 \IfFileExists{sidecap.sty}
155 {\usepackage{sidecap}
156 \let\marginpar\marginnote
157 \setboolean{sidecap}{true}}
158 {\setboolean{sidecap}{false}}
160 % redefine the \LyX macro for PDF bookmarks
161 \def\LyX{\texorpdfstring{%
162 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
165 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
170 \font_typewriter default
171 \font_default_family default
181 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
182 \pdf_author "LyX Team, Uwe Stöhr"
183 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
184 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
186 \pdf_bookmarksnumbered true
187 \pdf_bookmarksopen true
188 \pdf_bookmarksopenlevel 1
189 \pdf_breaklinks false
193 \pdf_pagebackref false
194 \pdf_pdfusetitle false
195 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false, pdfpagelabels"
202 \paperorientation portrait
205 \paragraph_separation skip
207 \quotes_language english
210 \paperpagestyle default
214 \tracking_changes false
215 \output_changes false
223 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
232 \begin_layout Plain Layout
234 If you have comments or error corrections, please send them to the LyX Documenta
236 \begin_inset CommandInset href
238 name "lyx-docs@lists.lyx.org"
239 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
250 \begin_inset Note Note
253 \begin_layout Plain Layout
260 \begin_inset Newline newline
264 \begin_inset Newline newline
272 \begin_layout Standard
273 \begin_inset CommandInset toc
274 LatexCommand tableofcontents
281 \begin_layout Standard
282 \begin_inset Note Note
285 \begin_layout Plain Layout
286 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
304 If they are not installed you can export the document anyway but the sections
305 where the packages are required won't appear in the output.
308 \begin_layout Plain Layout
309 The latest PDF-version of this document can be found here:
310 \begin_inset Newline newline
315 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
323 \begin_layout Chapter
325 \begin_inset CommandInset label
335 \begin_layout Plain Layout
345 \begin_layout Plain Layout
350 \begin_layout Plain Layout
361 \begin_layout Plain Layout
376 \begin_layout Section
381 \begin_layout Plain Layout
382 Figures ! Graphics Dialog
388 \begin_inset CommandInset label
390 name "sec:Graphics-Dialog"
397 \begin_layout Standard
398 To insert an image into your document, place the cursor at the text position
399 you want and click on the toolbar icon
400 \begin_inset Graphics
401 filename ../images/dialog-show-new-inset_graphics.png
409 Insert\SpecialChar \menuseparator
413 Then a dialog will appear to choose the file to load.
414 The image will appear in the output exactly at the position where it is
418 \begin_layout Standard
419 The graphics dialog can be called at any time by right-clicking on an image.
420 This dialog has three tabs:
423 \begin_layout Description
428 Here you can choose an image file and adjust its appearance in the output.
429 The available units for the image size are explained in appendix
434 \begin_inset CommandInset ref
436 reference "cha:Units-available-in"
441 \begin_inset Newline newline
448 \begin_layout Plain Layout
454 You can rotate images counter-clockwise by setting a rotation angle and
456 The image will also be rotated inside LyX.
457 \begin_inset Newline newline
464 \begin_layout Plain Layout
470 Images can be scaled by using a percentage value or by setting the width
471 and height explicitly.
472 If you set only the width or only the height, the other size will be determined
474 If you set both, then the image will be transformed to the given size,
475 possibly distorting it.
476 To prevent the image from distortion, use the option
478 Maintain aspect ratio
481 The image will then be scaled so that its width and height don't exceed
482 the specified dimensions.
483 \begin_inset Newline newline
486 Images can be opened in a program of your choice when pressing the
491 The program can be set for every image format in the file format settings
492 in LyX's preferences.
495 \begin_layout Description
500 Alternatively to the usage of scaling units it is possible to set image
501 coordinates to adjust the height and width of the image in the output.
502 The coordinates can also be calculated automatically by pressing the button
532 will only print the image region within the given coordinates.
533 Normally you don't need to take care about image coordinates and can ignore
537 \begin_layout Description
546 In this tab you can modify the appearance of the image within LyX and set
547 the image to be a subfigure of a figure float with an own caption.
548 Subfigures are explained in section
553 \begin_inset CommandInset ref
555 reference "sec:Figure-Floats"
560 \begin_inset Newline newline
563 LaTeX experts can also specify on this tab additional LaTeX options.
564 \begin_inset Newline newline
575 makes the image appear in the output only as a frame with the size of the
577 \begin_inset Newline newline
596 option only affects zipped EPS-graphics, e.
597 \begin_inset space \thinspace{}
609 When the option is used the images will not be unzipped on export, since
610 LaTeX can handle them as they are.
611 \begin_inset Newline newline
614 Zipped EPS-graphics are useful to save disk space when you choose PostScript
615 as output format, see appendix
620 \begin_inset CommandInset ref
622 reference "sec:PostScript"
627 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
629 \begin_inset Newline newline
637 \begin_inset Newline newline
642 zgrep %%Bounding x.eps.gz > x.eps.bb
645 \begin_inset Newline newline
648 The second command creates the bounding box file
649 \begin_inset Quotes eld
653 \begin_inset Quotes erd
656 that is needed by LaTeX for zipped graphics.
659 \begin_layout Standard
660 \begin_inset VSpace bigskip
666 \begin_layout Standard
667 This is an example image in EPS format
671 \begin_layout Plain Layout
672 Image formats are explained in section
677 \begin_inset CommandInset ref
679 reference "sec:Image-Formats"
688 within a separate, horizontally centered paragraph:
691 \begin_layout Standard
693 \begin_inset Graphics
694 filename clipart/mobius.eps
704 \begin_layout Standard
705 This is the same image like the one above but in draft mode:
708 \begin_layout Standard
710 \begin_inset Graphics
711 filename clipart/mobius.eps
722 \begin_layout Section
724 \begin_inset CommandInset label
726 name "sec:Figure-Floats"
734 \begin_layout Plain Layout
744 \begin_layout Plain Layout
753 \begin_layout Standard
754 For general explanations about floats, have a look at section
759 \begin_inset CommandInset ref
761 reference "sec:FloatIntroduction"
768 \begin_layout Standard
770 \begin_inset Graphics
771 filename ../images/float-insert_figure.png
779 Insert\SpecialChar \menuseparator
780 Float\SpecialChar \menuseparator
783 inserts a float with a caption that has the label
784 \begin_inset Quotes eld
792 \begin_inset Quotes erd
795 (# is the actual number).
796 You can insert the image above the caption, like in Figure
801 \begin_inset CommandInset ref
803 reference "fig:kill-plat"
807 or below the caption, like in Figure
812 \begin_inset CommandInset ref
814 reference "fig:escher"
819 More about the caption placement is described in section
824 \begin_inset CommandInset ref
826 reference "sec:Caption-Placement"
833 \begin_layout Standard
834 \begin_inset Float figure
839 \begin_layout Plain Layout
841 \begin_inset Graphics
842 filename clipart/platypus.eps
852 \begin_layout Plain Layout
855 \begin_layout Plain Layout
856 \begin_inset CommandInset label
862 A severely distorted platypus in a float.
875 \begin_layout Standard
876 \begin_inset Float figure
881 \begin_layout Plain Layout
884 \begin_layout Plain Layout
885 \begin_inset CommandInset label
900 \begin_layout Plain Layout
902 \begin_inset Graphics
903 filename clipart/escher-lsd.eps
918 \begin_layout Standard
922 \begin_layout Plain Layout
923 References ! to Figures
933 \begin_inset CommandInset ref
935 reference "fig:kill-plat"
940 \begin_inset CommandInset ref
942 reference "fig:escher"
946 are examples of referenced figures.
947 Figures can be referenced in the text by referencing their label.
948 To do this insert a label in the caption using the menu
950 Insert\SpecialChar \menuseparator
953 or the toolbar button
954 \begin_inset Graphics
955 filename ../images/label-insert.png
962 You can now refer to the label using the menu
964 Insert\SpecialChar \menuseparator
971 or the toolbar button
972 \begin_inset Graphics
973 filename ../images/dialog-show-new-inset_ref.png
980 It is important to use references to floats, rather than using vague references
982 \begin_inset Quotes eld
986 \begin_inset Quotes erd
989 , because as LaTeX will reposition the floats in the final document, it
991 \begin_inset Quotes eld
995 \begin_inset Quotes erd
999 \begin_inset Newline newline
1002 Referencing is explained in detail in section
1003 \begin_inset space ~
1007 \begin_inset CommandInset ref
1009 reference "sec:Referencing-Floats"
1016 \begin_layout Standard
1017 Normally only one image is inserted to a figure float, but sometimes you
1018 might want to use two images with separate subcaptions.
1019 This can be done by inserting image floats into existing image floats.
1020 Note that only the main caption of the float is added to the List of Figures.
1022 \begin_inset space ~
1026 \begin_inset CommandInset ref
1028 reference "fig:Two-distorted-images"
1032 is an example of a figure float with two images set side by side.
1033 You can also set the images one below the other.
1035 \begin_inset space ~
1039 \begin_inset CommandInset ref
1041 reference "fig:Undefinable-structure"
1046 \begin_inset CommandInset ref
1048 reference "fig:A-Platypus"
1055 \begin_layout Standard
1056 \begin_inset Float figure
1061 \begin_layout Plain Layout
1062 \begin_inset space \hfill{}
1066 \begin_inset Float figure
1071 \begin_layout Plain Layout
1072 \begin_inset Caption
1074 \begin_layout Plain Layout
1075 \begin_inset CommandInset label
1077 name "fig:Undefinable-structure"
1081 Undefinable structure.
1089 \begin_layout Plain Layout
1090 \begin_inset Graphics
1091 filename clipart/escher-lsd.eps
1103 \begin_inset space \hfill{}
1107 \begin_inset Float figure
1112 \begin_layout Plain Layout
1113 \begin_inset Caption
1115 \begin_layout Plain Layout
1116 \begin_inset CommandInset label
1118 name "fig:A-Platypus"
1130 \begin_layout Plain Layout
1131 \begin_inset Graphics
1132 filename clipart/platypus.eps
1145 \begin_inset space \hfill{}
1151 \begin_layout Plain Layout
1152 \begin_inset Caption
1154 \begin_layout Plain Layout
1155 \begin_inset CommandInset label
1157 name "fig:Two-distorted-images"
1161 Two distorted images.
1174 \begin_layout Section
1176 \begin_inset CommandInset label
1178 name "sec:Image-Formats"
1186 \begin_layout Plain Layout
1196 \begin_layout Plain Layout
1197 Figures ! Image Formats
1205 \begin_layout Standard
1206 You can insert images in any known file format.
1207 But as explained in appendix
1208 \begin_inset space ~
1212 \begin_inset CommandInset ref
1214 reference "cha:Output-File-Formats"
1218 , every output document format allows only a few image formats.
1219 LyX uses therefore the program
1223 in the background to convert the images to the right format.
1224 To increase your work flow by avoiding these conversions in the background,
1225 you can use only the image formats that can directly be embedded in the
1227 The output file formats are explained in appendix
1228 \begin_inset space ~
1232 \begin_inset CommandInset ref
1234 reference "cha:Output-File-Formats"
1241 \begin_layout Standard
1242 Similar to fonts there are two types of image formats:
1245 \begin_layout Description
1247 \begin_inset space ~
1250 images consist of pixel values, often in a compressed form.
1251 They are therefore not fully scalable and look pixeled in large zooms.
1252 Well-known bitmap image formats are
1253 \begin_inset Quotes eld
1256 Graphics Interchange Format
1257 \begin_inset Quotes erd
1260 (GIF, file extension
1261 \begin_inset Quotes eld
1269 \begin_inset Quotes erd
1276 \begin_layout Plain Layout
1281 \begin_layout Plain Layout
1292 \begin_layout Plain Layout
1305 \begin_inset Quotes eld
1308 Portable Network Graphics
1309 \begin_inset Quotes erd
1312 (PNG, file extension
1313 \begin_inset Quotes eld
1321 \begin_inset Quotes erd
1328 \begin_layout Plain Layout
1333 \begin_layout Plain Layout
1344 \begin_layout Plain Layout
1357 \begin_inset Quotes eld
1360 Joint Photographic Experts Group
1361 \begin_inset Quotes erd
1364 (JPG, file extension
1365 \begin_inset Quotes eld
1373 \begin_inset Quotes erd
1377 \begin_inset Quotes eld
1385 \begin_inset Quotes erd
1392 \begin_layout Plain Layout
1397 \begin_layout Plain Layout
1408 \begin_layout Plain Layout
1423 \begin_layout Description
1425 \begin_inset space ~
1428 images consist of vectors and can therefore be scaled to any size without
1430 The scaling ability is necessary if you want to create presentations, because
1431 presentations are always scaled by the video projector.
1432 Scaling is also useful for online documents to let the user zoom into diagrams.
1433 \begin_inset Newline newline
1436 Well-known scalable image formats are
1437 \begin_inset Quotes eld
1440 Scalable Vector Graphics
1441 \begin_inset Quotes erd
1444 (SVG, file extension
1445 \begin_inset Quotes eld
1453 \begin_inset Quotes erd
1460 \begin_layout Plain Layout
1465 \begin_layout Plain Layout
1476 \begin_layout Plain Layout
1489 \begin_inset Quotes eld
1492 Encapsulated PostScript
1493 \begin_inset Quotes erd
1496 (EPS, file extension
1497 \begin_inset Quotes eld
1505 \begin_inset Quotes erd
1512 \begin_layout Plain Layout
1517 \begin_layout Plain Layout
1528 \begin_layout Plain Layout
1541 \begin_inset Quotes eld
1544 Portable Document Format
1545 \begin_inset Quotes erd
1548 (PDF, file extension
1549 \begin_inset Quotes eld
1557 \begin_inset Quotes erd
1564 \begin_layout Plain Layout
1571 \begin_inset Quotes eld
1575 \begin_inset Quotes erd
1578 (WMF, file extension
1579 \begin_inset Quotes eld
1587 \begin_inset Quotes erd
1594 \begin_layout Plain Layout
1599 \begin_layout Plain Layout
1610 \begin_layout Plain Layout
1624 \begin_inset Quotes eld
1628 \begin_inset Quotes erd
1631 , because you can convert any bitmap image to a PDF or EPS-image and the
1632 result will still be a bitmap image.
1633 In this cases only a header with the image properties is added to the original
1638 \begin_layout Plain Layout
1639 In the case of PDF, the original image is additionally compressed.
1645 The PDF-files generated by
1649 are for example bitmap images.
1652 \begin_layout Standard
1653 Normally it is not possible to convert a bitmap image into a scalable one,
1655 Only the image formats PDF and EPS can directly be embedded to PDF and
1656 PostScript output files, respectively.
1657 SVG and WMF-images are recalculated to bitmaps when the output file is
1658 generated because there is currently no adequate WMF/SVG
1659 \begin_inset Formula $\to$
1662 PDF/EPS converter available.
1665 \begin_layout Chapter
1667 \begin_inset CommandInset label
1677 \begin_layout Plain Layout
1686 \begin_layout Section
1691 \begin_layout Plain Layout
1692 Table ! Introduction
1700 \begin_layout Standard
1701 You can insert a table using either the toolbar button
1702 \begin_inset Graphics
1703 filename ../images/tabular-insert.png
1711 Insert\SpecialChar \menuseparator
1715 The toolbar button offers you a graphical selection: Move the mouse to
1716 set the column/row number of the table that should be created and then
1717 press a mouse button.
1718 When you use the menu to create a table, a dialog will appear, asking you
1719 for the number of rows and columns.
1720 \begin_inset Newline newline
1723 The default table has lines around any cell and the first row appears separated
1724 from the rest of the table.
1725 This separation occurs due to a double line: The cells of the first row
1726 have a line below them and the cells of the second row have a line above
1728 Here is an example table:
1731 \begin_layout Standard
1733 \begin_inset Tabular
1734 <lyxtabular version="3" rows="4" columns="4">
1736 <column alignment="center" valignment="top" width="0">
1737 <column alignment="center" valignment="top" width="0">
1738 <column alignment="center" valignment="top" width="0">
1739 <column alignment="center" valignment="top" width="0">
1741 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1744 \begin_layout Plain Layout
1750 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1753 \begin_layout Plain Layout
1768 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1771 \begin_layout Plain Layout
1777 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1780 \begin_layout Plain Layout
1788 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1791 \begin_layout Plain Layout
1806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1809 \begin_layout Plain Layout
1815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1818 \begin_layout Plain Layout
1824 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1827 \begin_layout Plain Layout
1835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1838 \begin_layout Plain Layout
1853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1856 \begin_layout Plain Layout
1862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1865 \begin_layout Plain Layout
1871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1874 \begin_layout Plain Layout
1882 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1885 \begin_layout Plain Layout
1900 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1903 \begin_layout Plain Layout
1909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1912 \begin_layout Plain Layout
1918 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1921 \begin_layout Plain Layout
1935 \begin_layout Section
1940 \begin_layout Plain Layout
1949 \begin_layout Standard
1950 You can alter a table by clicking on it with the right mouse button, which
1951 brings up the table dialog.
1952 Here you can adjust the settings of that cell and row/column respectively
1953 where the cursor is currently placed.
1954 Most of the dialog options also work on selections.
1955 This means if you select more cells, columns or rows, the action is done
1956 for the whole selection.
1957 Note that there is a difference between selecting the
1961 of the cell, and the cell itself.
1962 You can alter tables with the following tabs of the table dialog:
1965 \begin_layout Description
1969 \begin_inset space ~
1974 Here you can set the horizontal alignment and the width of the current
1976 When you have set a width you can also adjust the vertical alignment of
1978 A given width will allow the cell to have line breaks and multiple paragraphs
1979 of text, see section
1980 \begin_inset space ~
1984 \begin_inset CommandInset ref
1986 reference "sub:Multiple-Lines-in"
1991 If you set no width, the column is as wide as their widest cell content
1993 \begin_inset Newline newline
1996 Furthermore, you can mark one or multiple cells of one row as a multicolumn
1998 \begin_inset space ~
2002 \begin_inset CommandInset ref
2004 reference "sub:Multicolumns"
2009 \begin_inset Newline newline
2012 The rotate check boxes rotates the current cell, a selection, or the whole
2013 table counter-clockwise by 90°.
2014 The rotation is not shown within LyX, only in the output.
2015 \begin_inset Newline newline
2019 \begin_inset Note Greyedout
2022 \begin_layout Plain Layout
2027 Not all DVI-viewers are able to display rotations.
2033 \begin_inset Newline newline
2036 It is also possible to enter a LaTeX-argument which is needed for special
2037 table formattings, see section
2038 \begin_inset space ~
2042 \begin_inset CommandInset ref
2044 reference "sub:Multicolumn-Calculations"
2049 \begin_inset CommandInset ref
2051 reference "sec:Colored-Tables"
2058 \begin_layout Description
2063 In this tab you can add and delete border lines for the current row/column.
2064 \begin_inset Newline newline
2067 Using the style option
2071 will convert the table to a formal table as described in section
2072 \begin_inset space ~
2076 \begin_inset CommandInset ref
2078 reference "sec:Formal-Tables"
2083 \begin_inset Newline newline
2086 You can also add here space to table rows as decribed in section
2087 \begin_inset space ~
2091 \begin_inset CommandInset ref
2093 reference "sub:Row-Spacing"
2100 \begin_layout Description
2105 This tab is to make a table a so called
2106 \begin_inset Quotes eld
2114 \begin_inset Quotes erd
2117 that can run over several pages.
2119 \begin_inset space ~
2123 \begin_inset CommandInset ref
2125 reference "sec:Longtables"
2130 \begin_inset CommandInset ref
2132 reference "sec:Special-Longtable-Issues"
2136 describe the longtable features in detail.
2139 \begin_layout Standard
2140 When the table toolbar is opened, you can move the cursor with the arrow
2141 keys from cell to cell and the property of the current cell will immediately
2142 be displayed in the dialog.
2145 \begin_layout Section
2150 \begin_layout Plain Layout
2159 \begin_layout Standard
2160 The table toolbar is an alternative to the table dialog to be able to alter
2162 It should normally appear at the bottom of LyX's main window when the cursor
2164 You can alternatively switch it on to appear always, by right-clicking
2165 in LyX's main menu bar.
2168 \begin_layout Standard
2169 The toolbar has the following icons:
2172 \begin_layout Labeling
2173 \labelwidthstring 00.00.0000
2174 \begin_inset Graphics
2175 filename ../images/tabular-feature_append-row.png
2180 adds a row below the current cell or selection
2183 \begin_layout Labeling
2184 \labelwidthstring 00.00.0000
2185 \begin_inset Graphics
2186 filename ../images/tabular-feature_append-column.png
2191 adds a column right beside the current cell or selection
2194 \begin_layout Labeling
2195 \labelwidthstring 00.00.0000
2196 \begin_inset Graphics
2197 filename ../images/tabular-feature_delete-row.png
2202 deletes the current row or selection
2205 \begin_layout Labeling
2206 \labelwidthstring 00.00.0000
2207 \begin_inset Graphics
2208 filename ../images/tabular-feature_delete-column.png
2213 deletes the current column or selection
2216 \begin_layout Labeling
2217 \labelwidthstring 00.00.0000
2218 \begin_inset Graphics
2219 filename ../images/tabular-feature_toggle-line-top.png
2224 adds a line at the top of the current cell / row or of a selection
2227 \begin_layout Labeling
2228 \labelwidthstring 00.00.0000
2229 \begin_inset Graphics
2230 filename ../images/tabular-feature_toggle-line-bottom.png
2235 adds a line at the bottom of the current cell / row or of a selection
2238 \begin_layout Labeling
2239 \labelwidthstring 00.00.0000
2240 \begin_inset Graphics
2241 filename ../images/tabular-feature_toggle-line-left.png
2246 adds a line at the left side of the current cell / row or of a selection
2249 \begin_layout Labeling
2250 \labelwidthstring 00.00.0000
2251 \begin_inset Graphics
2252 filename ../images/tabular-feature_toggle-line-right.png
2257 adds a line at the right side of the current cell / row or of a selection
2260 \begin_layout Labeling
2261 \labelwidthstring 00.00.0000
2262 \begin_inset Graphics
2263 filename ../images/tabular-feature_set-all-lines.png
2268 adds lines around the current or selected cells - if the current cell no
2269 multicolumn this also affects the current row and column
2272 \begin_layout Labeling
2273 \labelwidthstring 00.00.0000
2274 \begin_inset Graphics
2275 filename ../images/tabular-feature_unset-all-lines.png
2280 deletes all lines of the current or selected cells - if the current cell
2281 no multicolumn this also affects the current row and column
2284 \begin_layout Labeling
2285 \labelwidthstring 00.00.0000
2286 \begin_inset Graphics
2287 filename ../images/tabular-feature_align-left.png
2292 left-aligns the content of the current cell / column
2295 \begin_layout Labeling
2296 \labelwidthstring 00.00.0000
2297 \begin_inset Graphics
2298 filename ../images/tabular-feature_align-center.png
2303 centers the content of the current cell / column horizontally
2306 \begin_layout Labeling
2307 \labelwidthstring 00.00.0000
2308 \begin_inset Graphics
2309 filename ../images/tabular-feature_align-right.png
2314 right-aligns the content of the current cell / column
2317 \begin_layout Labeling
2318 \labelwidthstring 00.00.0000
2319 \begin_inset Graphics
2320 filename ../images/tabular-feature_valign-top.png
2325 aligns the content of the current cell vertically to the top
2328 \begin_layout Labeling
2329 \labelwidthstring 00.00.0000
2330 \begin_inset Graphics
2331 filename ../images/tabular-feature_valign-middle.png
2336 centers the content of the current cell vertically
2339 \begin_layout Labeling
2340 \labelwidthstring 00.00.0000
2341 \begin_inset Graphics
2342 filename ../images/tabular-feature_valign-bottom.png
2347 aligns the content of the current cell vertically to the bottom
2350 \begin_layout Labeling
2351 \labelwidthstring 00.00.0000
2352 \begin_inset Graphics
2353 filename ../images/tabular-feature_set-rotate-cell.png
2358 rotates the current cell or selection counter-clockwise by 90°
2361 \begin_layout Labeling
2362 \labelwidthstring 00.00.0000
2363 \begin_inset Graphics
2364 filename ../images/tabular-feature_set-rotate-tabular.png
2369 rotates the whole table counter-clockwise by 90°
2372 \begin_layout Labeling
2373 \labelwidthstring 00.00.0000
2374 \begin_inset Graphics
2375 filename ../images/tabular-feature_multicolumn.png
2380 sets the current cell or selection as a multicolumn
2383 \begin_layout Standard
2384 \begin_inset Note Greyedout
2387 \begin_layout Plain Layout
2392 For the output the vertical alignment of the first cell in a row is used
2393 for all following cells in the row.
2401 \begin_layout Section
2406 \begin_layout Plain Layout
2415 \begin_layout Standard
2416 Additionally to the table dialog and toolbar, the menu
2418 Edit\SpecialChar \menuseparator
2421 allows you to add and delete border lines for the current row/column and
2422 to set the current selection as multicolumn.
2423 The menu is only available when the cursor is inside a table.
2426 \begin_layout Section
2428 \begin_inset CommandInset label
2430 name "sec:Table-Floats"
2438 \begin_layout Plain Layout
2448 \begin_layout Plain Layout
2457 \begin_layout Standard
2458 For general explanations about floats, have a look at section
2459 \begin_inset space ~
2463 \begin_inset CommandInset ref
2465 reference "sec:FloatIntroduction"
2472 \begin_layout Standard
2473 \begin_inset Float table
2479 \begin_layout Plain Layout
2480 \begin_inset Caption
2482 \begin_layout Plain Layout
2483 \begin_inset CommandInset label
2485 name "tab:a table float"
2497 \begin_layout Plain Layout
2499 \begin_inset Tabular
2500 <lyxtabular version="3" rows="3" columns="3">
2502 <column alignment="center" valignment="top" width="0pt">
2503 <column alignment="center" valignment="top" width="0pt">
2504 <column alignment="center" valignment="top" width="0pt">
2506 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2509 \begin_layout Plain Layout
2524 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2527 \begin_layout Plain Layout
2542 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2545 \begin_layout Plain Layout
2562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2565 \begin_layout Plain Layout
2580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2583 \begin_layout Plain Layout
2598 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2601 \begin_layout Plain Layout
2618 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2621 \begin_layout Plain Layout
2631 \begin_inset Formula $\int x^{2}dx$
2639 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2642 \begin_layout Plain Layout
2652 \begin_inset Formula $\left[\begin{array}{cc}
2654 c & d\end{array}\right]$
2662 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2665 \begin_layout Plain Layout
2675 \begin_inset Formula $1+1=2$
2696 \begin_layout Standard
2697 Table floats can be inserted using the menu
2699 Insert\SpecialChar \menuseparator
2700 Float\SpecialChar \menuseparator
2703 or the toolbar button
2704 \begin_inset Graphics
2705 filename ../images/float-insert_table.png
2714 \begin_layout Standard
2715 The float appears as a collapsible box with a caption that has the label
2717 \begin_inset Quotes eld
2721 \begin_inset space ~
2725 \begin_inset Quotes erd
2728 (# is the actual table number).
2729 You can insert tables to the float above or below the caption.
2732 \begin_layout Standard
2734 \begin_inset space ~
2738 \begin_inset CommandInset ref
2740 reference "tab:a table float"
2744 is an example table within a table float.
2747 \begin_layout Standard
2748 Having the caption above the table is the common rule that is unfortunately
2749 not supported in LaTeX's standard classes.
2750 That means if you are using the document classes
2766 there will be no space between the caption and the table.
2767 To insert the needed space, add the following option to the load command
2768 of the LaTeX-package
2776 \begin_layout Plain Layout
2777 LaTeX-packages ! caption
2782 in your document preamble
2786 \begin_layout Plain Layout
2787 For more information have a look at section
2788 \begin_inset space ~
2792 \begin_inset CommandInset ref
2794 reference "sec:Caption-Placement"
2806 \begin_layout Standard
2812 \begin_layout Standard
2817 , which is described in section
2818 \begin_inset space ~
2822 \begin_inset CommandInset ref
2824 reference "sec:Caption-Formatting"
2828 , is used to adjust the caption format.
2831 \begin_layout Standard
2835 \begin_layout Plain Layout
2836 References ! to Tables
2841 Tables can be cross-referenced in the text by referencing their label.
2842 To do this insert a label in the caption using the menu
2844 Insert\SpecialChar \menuseparator
2847 or the toolbar button
2848 \begin_inset Graphics
2849 filename ../images/label-insert.png
2856 You can now refer to the label using the menu
2858 Insert\SpecialChar \menuseparator
2860 \begin_inset space ~
2865 or the toolbar button
2866 \begin_inset Graphics
2867 filename ../images/dialog-show-new-inset_ref.png
2874 \begin_inset Newline newline
2877 Referencing is explained in detail in section
2878 \begin_inset space ~
2882 \begin_inset CommandInset ref
2884 reference "sec:Referencing-Floats"
2891 \begin_layout Section
2893 \begin_inset CommandInset label
2895 name "sec:Longtables"
2903 \begin_layout Plain Layout
2913 \begin_layout Plain Layout
2922 \begin_layout Standard
2923 If the table is too long to fit on one page, you can use the option
2926 \begin_inset space ~
2930 \begin_inset space ~
2939 of the table dialog to split the table automatically over more pages.
2940 Doing this enables some check boxes and you can now define:
2943 \begin_layout Description
2948 : The current row and all rows above, that don't have any special options
2949 defined, are defined to be the header rows of all pages of the longtable;
2950 except for the first page, if
2953 \begin_inset space ~
2959 This therefore called the main header.
2962 \begin_layout Description
2966 \begin_inset space ~
2971 : The current row and all rows above, that don't have any special options
2972 defined, are defined to be the header rows of the first page of the longtable.
2975 \begin_layout Description
2980 : The current row and all rows below, that don't have any special options
2981 defined, are defined to be the footer rows of all pages of the longtable;
2982 except for the last page, if
2985 \begin_inset space ~
2993 \begin_layout Description
2997 \begin_inset space ~
3002 : The current row and all rows below, that don't have any special options
3003 defined, are defined to be the footer rows of the last page of the longtable.
3006 \begin_layout Standard
3007 You can also specify a row where the table is splitted.
3008 If you set more than one option in the same table row, you should be aware
3009 of the fact that only the first one is used in the given table row.
3010 The others will then be defined as
3015 In this context, first means first in this order:
3022 \begin_inset space ~
3025 header, Footer, Last
3026 \begin_inset space ~
3032 See the following longtable to see how it works:
3035 \begin_layout Standard
3037 \begin_inset Tabular
3038 <lyxtabular version="3" rows="69" columns="3">
3039 <features islongtable="true">
3040 <column alignment="left" valignment="top" width="0cm">
3041 <column alignment="left" valignment="top" width="0pt">
3042 <column alignment="center" valignment="top" width="0pt">
3043 <row endfirsthead="true">
3044 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3047 \begin_layout Plain Layout
3050 Example Phone List (ignore the names)
3055 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3058 \begin_layout Plain Layout
3064 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3067 \begin_layout Plain Layout
3074 <row endfirsthead="true">
3075 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3078 \begin_layout Plain Layout
3086 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3089 \begin_layout Plain Layout
3095 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3098 \begin_layout Plain Layout
3107 <row endhead="true">
3108 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3111 \begin_layout Plain Layout
3119 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3122 \begin_layout Plain Layout
3128 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3131 \begin_layout Plain Layout
3138 <row endhead="true">
3139 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3142 \begin_layout Plain Layout
3150 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3153 \begin_layout Plain Layout
3159 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3162 \begin_layout Plain Layout
3171 <row endfoot="true">
3172 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
3175 \begin_layout Plain Layout
3176 continued on next page
3181 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3184 \begin_layout Plain Layout
3190 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3193 \begin_layout Plain Layout
3201 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3204 \begin_layout Plain Layout
3212 <cell alignment="center" valignment="top" usebox="none">
3215 \begin_layout Plain Layout
3221 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3224 \begin_layout Plain Layout
3232 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3235 \begin_layout Plain Layout
3243 <cell alignment="center" valignment="top" usebox="none">
3246 \begin_layout Plain Layout
3252 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3255 \begin_layout Plain Layout
3263 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3266 \begin_layout Plain Layout
3274 <cell alignment="center" valignment="top" usebox="none">
3277 \begin_layout Plain Layout
3283 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3286 \begin_layout Plain Layout
3294 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3297 \begin_layout Plain Layout
3305 <cell alignment="center" valignment="top" usebox="none">
3308 \begin_layout Plain Layout
3314 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3317 \begin_layout Plain Layout
3325 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3328 \begin_layout Plain Layout
3336 <cell alignment="center" valignment="top" usebox="none">
3339 \begin_layout Plain Layout
3345 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3348 \begin_layout Plain Layout
3356 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3359 \begin_layout Plain Layout
3367 <cell alignment="center" valignment="top" usebox="none">
3370 \begin_layout Plain Layout
3376 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3379 \begin_layout Plain Layout
3387 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3390 \begin_layout Plain Layout
3398 <cell alignment="center" valignment="top" usebox="none">
3401 \begin_layout Plain Layout
3407 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3410 \begin_layout Plain Layout
3418 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3421 \begin_layout Plain Layout
3429 <cell alignment="center" valignment="top" usebox="none">
3432 \begin_layout Plain Layout
3438 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3441 \begin_layout Plain Layout
3449 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3452 \begin_layout Plain Layout
3460 <cell alignment="center" valignment="top" usebox="none">
3463 \begin_layout Plain Layout
3469 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3472 \begin_layout Plain Layout
3480 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3483 \begin_layout Plain Layout
3491 <cell alignment="center" valignment="top" usebox="none">
3494 \begin_layout Plain Layout
3500 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3503 \begin_layout Plain Layout
3511 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3514 \begin_layout Plain Layout
3522 <cell alignment="center" valignment="top" usebox="none">
3525 \begin_layout Plain Layout
3531 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3534 \begin_layout Plain Layout
3542 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3545 \begin_layout Plain Layout
3553 <cell alignment="center" valignment="top" usebox="none">
3556 \begin_layout Plain Layout
3562 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3565 \begin_layout Plain Layout
3573 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3576 \begin_layout Plain Layout
3584 <cell alignment="center" valignment="top" usebox="none">
3587 \begin_layout Plain Layout
3593 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3596 \begin_layout Plain Layout
3604 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3607 \begin_layout Plain Layout
3615 <cell alignment="center" valignment="top" usebox="none">
3618 \begin_layout Plain Layout
3624 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3627 \begin_layout Plain Layout
3635 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3638 \begin_layout Plain Layout
3646 <cell alignment="center" valignment="top" usebox="none">
3649 \begin_layout Plain Layout
3655 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3658 \begin_layout Plain Layout
3666 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3669 \begin_layout Plain Layout
3677 <cell alignment="center" valignment="top" usebox="none">
3680 \begin_layout Plain Layout
3686 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3689 \begin_layout Plain Layout
3697 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3700 \begin_layout Plain Layout
3708 <cell alignment="center" valignment="top" usebox="none">
3711 \begin_layout Plain Layout
3717 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3720 \begin_layout Plain Layout
3728 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3731 \begin_layout Plain Layout
3739 <cell alignment="center" valignment="top" usebox="none">
3742 \begin_layout Plain Layout
3748 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3751 \begin_layout Plain Layout
3759 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3762 \begin_layout Plain Layout
3770 <cell alignment="center" valignment="top" usebox="none">
3773 \begin_layout Plain Layout
3779 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3782 \begin_layout Plain Layout
3790 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3793 \begin_layout Plain Layout
3801 <cell alignment="center" valignment="top" usebox="none">
3804 \begin_layout Plain Layout
3810 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3813 \begin_layout Plain Layout
3821 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3824 \begin_layout Plain Layout
3832 <cell alignment="center" valignment="top" usebox="none">
3835 \begin_layout Plain Layout
3841 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3844 \begin_layout Plain Layout
3852 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3855 \begin_layout Plain Layout
3863 <cell alignment="center" valignment="top" usebox="none">
3866 \begin_layout Plain Layout
3872 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3875 \begin_layout Plain Layout
3883 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3886 \begin_layout Plain Layout
3894 <cell alignment="center" valignment="top" usebox="none">
3897 \begin_layout Plain Layout
3903 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3906 \begin_layout Plain Layout
3914 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3917 \begin_layout Plain Layout
3925 <cell alignment="center" valignment="top" usebox="none">
3928 \begin_layout Plain Layout
3934 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3937 \begin_layout Plain Layout
3945 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3948 \begin_layout Plain Layout
3956 <cell alignment="center" valignment="top" usebox="none">
3959 \begin_layout Plain Layout
3965 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3968 \begin_layout Plain Layout
3976 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3979 \begin_layout Plain Layout
3987 <cell alignment="center" valignment="top" usebox="none">
3990 \begin_layout Plain Layout
3996 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3999 \begin_layout Plain Layout
4007 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4010 \begin_layout Plain Layout
4018 <cell alignment="center" valignment="top" usebox="none">
4021 \begin_layout Plain Layout
4027 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4030 \begin_layout Plain Layout
4038 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4041 \begin_layout Plain Layout
4049 <cell alignment="center" valignment="top" usebox="none">
4052 \begin_layout Plain Layout
4058 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4061 \begin_layout Plain Layout
4069 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4072 \begin_layout Plain Layout
4080 <cell alignment="center" valignment="top" usebox="none">
4083 \begin_layout Plain Layout
4089 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4092 \begin_layout Plain Layout
4100 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4103 \begin_layout Plain Layout
4111 <cell alignment="center" valignment="top" usebox="none">
4114 \begin_layout Plain Layout
4120 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4123 \begin_layout Plain Layout
4131 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4134 \begin_layout Plain Layout
4142 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4145 \begin_layout Plain Layout
4151 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4154 \begin_layout Plain Layout
4162 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4165 \begin_layout Plain Layout
4171 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4174 \begin_layout Plain Layout
4180 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4183 \begin_layout Plain Layout
4191 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4194 \begin_layout Plain Layout
4202 <cell alignment="center" valignment="top" usebox="none">
4205 \begin_layout Plain Layout
4211 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4214 \begin_layout Plain Layout
4222 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4225 \begin_layout Plain Layout
4233 <cell alignment="center" valignment="top" usebox="none">
4236 \begin_layout Plain Layout
4242 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4245 \begin_layout Plain Layout
4253 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4256 \begin_layout Plain Layout
4264 <cell alignment="center" valignment="top" usebox="none">
4267 \begin_layout Plain Layout
4273 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4276 \begin_layout Plain Layout
4284 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4287 \begin_layout Plain Layout
4295 <cell alignment="center" valignment="top" usebox="none">
4298 \begin_layout Plain Layout
4304 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4307 \begin_layout Plain Layout
4315 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4318 \begin_layout Plain Layout
4326 <cell alignment="center" valignment="top" usebox="none">
4329 \begin_layout Plain Layout
4335 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4338 \begin_layout Plain Layout
4346 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4349 \begin_layout Plain Layout
4357 <cell alignment="center" valignment="top" usebox="none">
4360 \begin_layout Plain Layout
4366 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4369 \begin_layout Plain Layout
4377 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4380 \begin_layout Plain Layout
4388 <cell alignment="center" valignment="top" usebox="none">
4391 \begin_layout Plain Layout
4397 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4400 \begin_layout Plain Layout
4408 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4411 \begin_layout Plain Layout
4419 <cell alignment="center" valignment="top" usebox="none">
4422 \begin_layout Plain Layout
4428 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4431 \begin_layout Plain Layout
4439 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4442 \begin_layout Plain Layout
4450 <cell alignment="center" valignment="top" usebox="none">
4453 \begin_layout Plain Layout
4459 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4462 \begin_layout Plain Layout
4470 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4473 \begin_layout Plain Layout
4481 <cell alignment="center" valignment="top" usebox="none">
4484 \begin_layout Plain Layout
4490 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4493 \begin_layout Plain Layout
4501 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4504 \begin_layout Plain Layout
4512 <cell alignment="center" valignment="top" usebox="none">
4515 \begin_layout Plain Layout
4521 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4524 \begin_layout Plain Layout
4532 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4535 \begin_layout Plain Layout
4543 <cell alignment="center" valignment="top" usebox="none">
4546 \begin_layout Plain Layout
4552 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4555 \begin_layout Plain Layout
4563 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4566 \begin_layout Plain Layout
4574 <cell alignment="center" valignment="top" usebox="none">
4577 \begin_layout Plain Layout
4583 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4586 \begin_layout Plain Layout
4594 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4597 \begin_layout Plain Layout
4605 <cell alignment="center" valignment="top" usebox="none">
4608 \begin_layout Plain Layout
4614 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4617 \begin_layout Plain Layout
4625 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4628 \begin_layout Plain Layout
4636 <cell alignment="center" valignment="top" usebox="none">
4639 \begin_layout Plain Layout
4645 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4648 \begin_layout Plain Layout
4656 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4659 \begin_layout Plain Layout
4667 <cell alignment="center" valignment="top" usebox="none">
4670 \begin_layout Plain Layout
4676 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4679 \begin_layout Plain Layout
4687 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4690 \begin_layout Plain Layout
4698 <cell alignment="center" valignment="top" usebox="none">
4701 \begin_layout Plain Layout
4707 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4710 \begin_layout Plain Layout
4718 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4721 \begin_layout Plain Layout
4729 <cell alignment="center" valignment="top" usebox="none">
4732 \begin_layout Plain Layout
4738 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4741 \begin_layout Plain Layout
4749 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4752 \begin_layout Plain Layout
4760 <cell alignment="center" valignment="top" usebox="none">
4763 \begin_layout Plain Layout
4769 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4772 \begin_layout Plain Layout
4780 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4783 \begin_layout Plain Layout
4791 <cell alignment="center" valignment="top" usebox="none">
4794 \begin_layout Plain Layout
4800 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4803 \begin_layout Plain Layout
4811 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4814 \begin_layout Plain Layout
4822 <cell alignment="center" valignment="top" usebox="none">
4825 \begin_layout Plain Layout
4831 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4834 \begin_layout Plain Layout
4842 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4845 \begin_layout Plain Layout
4853 <cell alignment="center" valignment="top" usebox="none">
4856 \begin_layout Plain Layout
4862 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4865 \begin_layout Plain Layout
4873 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4876 \begin_layout Plain Layout
4884 <cell alignment="center" valignment="top" usebox="none">
4887 \begin_layout Plain Layout
4893 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4896 \begin_layout Plain Layout
4904 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4907 \begin_layout Plain Layout
4915 <cell alignment="center" valignment="top" usebox="none">
4918 \begin_layout Plain Layout
4924 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4927 \begin_layout Plain Layout
4935 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4938 \begin_layout Plain Layout
4946 <cell alignment="center" valignment="top" usebox="none">
4949 \begin_layout Plain Layout
4955 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4958 \begin_layout Plain Layout
4966 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4969 \begin_layout Plain Layout
4977 <cell alignment="center" valignment="top" usebox="none">
4980 \begin_layout Plain Layout
4986 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4989 \begin_layout Plain Layout
4997 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5000 \begin_layout Plain Layout
5008 <cell alignment="center" valignment="top" usebox="none">
5011 \begin_layout Plain Layout
5017 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5020 \begin_layout Plain Layout
5028 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5031 \begin_layout Plain Layout
5039 <cell alignment="center" valignment="top" usebox="none">
5042 \begin_layout Plain Layout
5048 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5051 \begin_layout Plain Layout
5059 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5062 \begin_layout Plain Layout
5070 <cell alignment="center" valignment="top" usebox="none">
5073 \begin_layout Plain Layout
5079 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5082 \begin_layout Plain Layout
5090 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5093 \begin_layout Plain Layout
5101 <cell alignment="center" valignment="top" usebox="none">
5104 \begin_layout Plain Layout
5110 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5113 \begin_layout Plain Layout
5121 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5124 \begin_layout Plain Layout
5132 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5135 \begin_layout Plain Layout
5141 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5144 \begin_layout Plain Layout
5151 <row endlastfoot="true">
5152 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5155 \begin_layout Plain Layout
5161 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5164 \begin_layout Plain Layout
5170 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5173 \begin_layout Plain Layout
5188 \begin_layout Plain Layout
5192 addtocounter{table}{-1}
5198 \begin_inset Note Note
5201 \begin_layout Plain Layout
5202 See greyed-out note in section
5203 \begin_inset space ~
5207 \begin_inset CommandInset ref
5209 reference "sub:Longtable-Captions"
5213 for an explanation of this command.
5221 \begin_layout Subsection
5222 Footnotes in Longtables
5223 \begin_inset CommandInset label
5225 name "sub:Footnotes-in-Longtables"
5233 \begin_layout Plain Layout
5234 Longtables ! Footnotes
5242 \begin_layout Standard
5243 Footnotes can be inserted to every longtable cell.
5244 They appear at the bottom of the page where the table cell with the footnote
5247 \begin_inset space ~
5251 \begin_inset CommandInset ref
5253 reference "tab:DiffCaptions"
5257 has for example a footnote.
5260 \begin_layout Subsection
5265 \begin_layout Plain Layout
5266 Longtables ! Alignment
5274 \begin_layout Standard
5275 Longtables are by default centered.
5276 In contrary to the alignment of the table columns and row, the table alignment
5277 can currently not be changed in the table dialog.
5278 To change the alignment of longtables you have to change the value of the
5291 by inserting this line as TeX-Code before the corresponding longtable:
5294 \begin_layout Standard
5304 \begin_layout Standard
5305 Where the value can have any of the units listed in Table
5306 \begin_inset space ~
5310 \begin_inset CommandInset ref
5312 reference "tab:Units"
5323 controls the horizontal distance from the left page border to the longtable,
5330 the distance from the right side.
5331 The default value for both lengths is
5337 , which is in this case the same as an horizontal fill in LyX.
5340 \begin_layout Standard
5341 The following longtable was left-aligned by setting
5348 \begin_inset space \thinspace{}
5355 \begin_layout Plain Layout
5369 \begin_layout Standard
5370 \begin_inset Tabular
5371 <lyxtabular version="3" rows="5" columns="5">
5372 <features islongtable="true">
5373 <column alignment="center" valignment="top" width="0">
5374 <column alignment="center" valignment="top" width="0">
5375 <column alignment="center" valignment="top" width="0">
5376 <column alignment="center" valignment="top" width="0">
5377 <column alignment="center" valignment="top" width="0">
5379 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5382 \begin_layout Plain Layout
5388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5391 \begin_layout Plain Layout
5397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5400 \begin_layout Plain Layout
5406 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5409 \begin_layout Plain Layout
5415 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5418 \begin_layout Plain Layout
5426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5429 \begin_layout Plain Layout
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" rightline="true" usebox="none">
5465 \begin_layout Plain Layout
5473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5476 \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" rightline="true" usebox="none">
5512 \begin_layout Plain Layout
5520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5523 \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" rightline="true" usebox="none">
5559 \begin_layout Plain Layout
5567 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5570 \begin_layout Plain Layout
5576 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5579 \begin_layout Plain Layout
5585 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5588 \begin_layout Plain Layout
5594 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5597 \begin_layout Plain Layout
5603 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5606 \begin_layout Plain Layout
5621 \begin_layout Plain Layout
5637 \begin_layout Subsection
5642 \begin_layout Plain Layout
5643 Longtables ! Captions
5649 \begin_inset CommandInset label
5651 name "sub:Longtable-Captions"
5658 \begin_layout Standard
5659 A longtable cannot be put into a table float because floats can only be
5660 on one page but the caption environment of floats can also be used for
5664 \begin_layout Standard
5665 As LyX does not yet fully support captions in longtables, a hack is needed
5669 \begin_layout Enumerate
5675 \begin_layout Enumerate
5676 Mark the first row and disable its upper line.
5679 \begin_layout Enumerate
5680 Insert a caption via the menu
5682 Insert\SpecialChar \menuseparator
5685 into the first table cell.
5686 \begin_inset Newline newline
5689 You can also add a short title for the caption.
5692 \begin_layout Enumerate
5694 \begin_inset Quotes eld
5706 \begin_inset Quotes erd
5709 as TeX-Code behind the caption.
5712 \begin_layout Standard
5713 A short title that will appear in the LOT instead of the full title.
5722 behind the caption omits the vertical lines between the following cells
5724 The first table row is now only a dummy row for the caption, the actual
5725 table starts with the second row.
5728 \begin_layout Standard
5729 Here is a short longtable to see how it works:
5732 \begin_layout Standard
5733 \begin_inset Tabular
5734 <lyxtabular version="3" rows="6" columns="5">
5735 <features islongtable="true">
5736 <column alignment="center" valignment="top" width="0">
5737 <column alignment="center" valignment="top" width="0">
5738 <column alignment="center" valignment="top" width="0">
5739 <column alignment="center" valignment="top" width="0">
5740 <column alignment="center" valignment="top" width="0">
5741 <row caption="true">
5742 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5745 \begin_layout Plain Layout
5746 \begin_inset Caption
5748 \begin_layout Plain Layout
5749 Longtable with caption
5753 \begin_layout Plain Layout
5769 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5772 \begin_layout Plain Layout
5778 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5781 \begin_layout Plain Layout
5787 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5790 \begin_layout Plain Layout
5796 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5799 \begin_layout Plain Layout
5807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5810 \begin_layout Plain Layout
5816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5819 \begin_layout Plain Layout
5825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5828 \begin_layout Plain Layout
5834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5837 \begin_layout Plain Layout
5843 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5846 \begin_layout Plain Layout
5854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5857 \begin_layout Plain Layout
5863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5866 \begin_layout Plain Layout
5872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5875 \begin_layout Plain Layout
5881 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5884 \begin_layout Plain Layout
5890 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5893 \begin_layout Plain Layout
5901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5904 \begin_layout Plain Layout
5910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5913 \begin_layout Plain Layout
5919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5922 \begin_layout Plain Layout
5928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5931 \begin_layout Plain Layout
5937 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5940 \begin_layout Plain Layout
5948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5951 \begin_layout Plain Layout
5957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5960 \begin_layout Plain Layout
5966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5969 \begin_layout Plain Layout
5975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5978 \begin_layout Plain Layout
5984 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5987 \begin_layout Plain Layout
5995 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5998 \begin_layout Plain Layout
6004 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6007 \begin_layout Plain Layout
6013 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6016 \begin_layout Plain Layout
6022 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6025 \begin_layout Plain Layout
6031 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6034 \begin_layout Plain Layout
6048 \begin_layout Standard
6049 \begin_inset VSpace medskip
6053 \begin_inset Note Greyedout
6056 \begin_layout Plain Layout
6061 The table number is increased for every longtable, also if you didn't set
6063 For this reason you could have the case that e.g.
6065 \begin_inset space ~
6068 2.4 follows on Table
6069 \begin_inset space ~
6072 2.1 in the list of tables if there are two longtables without captions.
6073 To avoid this you can add the following command in TeX-Code behind every
6074 longtable without a caption:
6077 \begin_layout Plain Layout
6082 addtocounter{table}{-1}
6090 \begin_layout Standard
6091 \begin_inset Note Greyedout
6094 \begin_layout Plain Layout
6099 If you are using the LaTeX-package
6107 \begin_layout Plain Layout
6108 LaTeX-packages ! hyperref
6113 to link cross-references, the link to a longtable caption will always point
6114 to the beginning of the document.
6122 \begin_layout Standard
6123 \begin_inset Newpage newpage
6129 \begin_layout Subsubsection
6130 References to Longtables
6134 \begin_layout Plain Layout
6135 Longtables ! References
6143 \begin_layout Standard
6144 \begin_inset Tabular
6145 <lyxtabular version="3" rows="6" columns="5">
6146 <features islongtable="true">
6147 <column alignment="center" valignment="top" width="0">
6148 <column alignment="center" valignment="top" width="0">
6149 <column alignment="center" valignment="top" width="0">
6150 <column alignment="center" valignment="top" width="0">
6151 <column alignment="center" valignment="top" width="0">
6152 <row caption="true">
6153 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6156 \begin_layout Plain Layout
6157 \begin_inset Caption
6159 \begin_layout Plain Layout
6160 Referenced longtable
6161 \begin_inset CommandInset label
6163 name "tab:RefExample"
6177 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6180 \begin_layout Plain Layout
6186 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6189 \begin_layout Plain Layout
6195 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6198 \begin_layout Plain Layout
6204 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6207 \begin_layout Plain Layout
6215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6218 \begin_layout Plain Layout
6224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6227 \begin_layout Plain Layout
6233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6236 \begin_layout Plain Layout
6242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6245 \begin_layout Plain Layout
6251 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6254 \begin_layout Plain Layout
6262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6265 \begin_layout Plain Layout
6271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6274 \begin_layout Plain Layout
6280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6283 \begin_layout Plain Layout
6289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6292 \begin_layout Plain Layout
6298 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6301 \begin_layout Plain Layout
6309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6312 \begin_layout Plain Layout
6318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6321 \begin_layout Plain Layout
6327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6330 \begin_layout Plain Layout
6336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6339 \begin_layout Plain Layout
6345 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6348 \begin_layout Plain Layout
6356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6359 \begin_layout Plain Layout
6365 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6368 \begin_layout Plain Layout
6374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6377 \begin_layout Plain Layout
6383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6386 \begin_layout Plain Layout
6392 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6395 \begin_layout Plain Layout
6403 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6406 \begin_layout Plain Layout
6412 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6415 \begin_layout Plain Layout
6421 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6424 \begin_layout Plain Layout
6430 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6433 \begin_layout Plain Layout
6439 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6442 \begin_layout Plain Layout
6456 \begin_layout Standard
6457 To reference a longtable, insert a label into the caption.
6458 Note that you have to add the label prefix
6459 \begin_inset Quotes eld
6467 \begin_inset Quotes eld
6470 manually in the label field.
6473 \begin_layout Standard
6474 This is a reference to Table
6475 \begin_inset space ~
6479 \begin_inset CommandInset ref
6481 reference "tab:RefExample"
6488 \begin_layout Standard
6489 The caption layout can be set together with all other caption of your document
6490 using the LaTeX-package
6498 \begin_layout Plain Layout
6499 LaTeX-packages ! caption
6505 \begin_inset space ~
6509 \begin_inset CommandInset ref
6511 reference "sec:Caption-Formatting"
6518 \begin_layout Subsubsection
6523 \begin_layout Plain Layout
6524 Longtables ! Caption Width
6532 \begin_layout Standard
6533 The maximal width of of caption lines is defined by the length
6540 Its default value is 4
6541 \begin_inset space \thinspace{}
6545 To change it add the following command to your document preamble or as
6546 TeX-Code into your document before the longtable that should be affected
6549 \begin_layout Standard
6559 \begin_layout Standard
6560 where the width could have one of the units listed in appendix
6561 \begin_inset space ~
6565 \begin_inset CommandInset ref
6567 reference "cha:Units-available-in"
6574 \begin_layout Standard
6575 The following tables show the difference:
6578 \begin_layout Standard
6579 \begin_inset Tabular
6580 <lyxtabular version="3" rows="6" columns="5">
6581 <features islongtable="true">
6582 <column alignment="center" valignment="top" width="0">
6583 <column alignment="center" valignment="top" width="0">
6584 <column alignment="center" valignment="top" width="0">
6585 <column alignment="center" valignment="top" width="0">
6586 <column alignment="center" valignment="top" width="0">
6587 <row caption="true">
6588 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6591 \begin_layout Plain Layout
6592 \begin_inset Caption
6594 \begin_layout Plain Layout
6595 long full title with default width long full title with default width long
6596 full title with default width
6600 \begin_layout Plain Layout
6601 caption with default width
6616 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6619 \begin_layout Plain Layout
6625 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6628 \begin_layout Plain Layout
6634 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6637 \begin_layout Plain Layout
6643 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6646 \begin_layout Plain Layout
6654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6657 \begin_layout Plain Layout
6663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6666 \begin_layout Plain Layout
6672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6675 \begin_layout Plain Layout
6681 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6684 \begin_layout Plain Layout
6690 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6693 \begin_layout Plain Layout
6701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6704 \begin_layout Plain Layout
6710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6713 \begin_layout Plain Layout
6719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6722 \begin_layout Plain Layout
6728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6731 \begin_layout Plain Layout
6737 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6740 \begin_layout Plain Layout
6748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6751 \begin_layout Plain Layout
6757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6760 \begin_layout Plain Layout
6766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6769 \begin_layout Plain Layout
6775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6778 \begin_layout Plain Layout
6784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6787 \begin_layout Plain Layout
6795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6798 \begin_layout Plain Layout
6804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6807 \begin_layout Plain Layout
6813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6816 \begin_layout Plain Layout
6822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6825 \begin_layout Plain Layout
6831 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6834 \begin_layout Plain Layout
6842 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6845 \begin_layout Plain Layout
6851 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6854 \begin_layout Plain Layout
6860 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6863 \begin_layout Plain Layout
6869 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6872 \begin_layout Plain Layout
6878 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6881 \begin_layout Plain Layout
6895 \begin_layout Standard
6899 \begin_layout Plain Layout
6911 \begin_inset Tabular
6912 <lyxtabular version="3" rows="6" columns="5">
6913 <features islongtable="true">
6914 <column alignment="center" valignment="top" width="0">
6915 <column alignment="center" valignment="top" width="0">
6916 <column alignment="center" valignment="top" width="0">
6917 <column alignment="center" valignment="top" width="0">
6918 <column alignment="center" valignment="top" width="0">
6919 <row caption="true">
6920 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6923 \begin_layout Plain Layout
6924 \begin_inset Caption
6926 \begin_layout Plain Layout
6927 long full title with width set to 5
6928 \begin_inset space \thinspace{}
6931 cm long full title with width set to 5
6932 \begin_inset space \thinspace{}
6935 cm long full title with width set to 5
6936 \begin_inset space \thinspace{}
6943 \begin_layout Plain Layout
6945 \begin_inset space \thinspace{}
6949 \begin_inset space \thinspace{}
6953 \begin_inset space \thinspace{}
6971 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6974 \begin_layout Plain Layout
6980 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6983 \begin_layout Plain Layout
6989 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6992 \begin_layout Plain Layout
6998 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7001 \begin_layout Plain Layout
7009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7012 \begin_layout Plain Layout
7018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7021 \begin_layout Plain Layout
7027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7030 \begin_layout Plain Layout
7036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7039 \begin_layout Plain Layout
7045 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7048 \begin_layout Plain Layout
7056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7059 \begin_layout Plain Layout
7065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7068 \begin_layout Plain Layout
7074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7077 \begin_layout Plain Layout
7083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7086 \begin_layout Plain Layout
7092 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7095 \begin_layout Plain Layout
7103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7106 \begin_layout Plain Layout
7112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7115 \begin_layout Plain Layout
7121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7124 \begin_layout Plain Layout
7130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7133 \begin_layout Plain Layout
7139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7142 \begin_layout Plain Layout
7150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7153 \begin_layout Plain Layout
7159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7162 \begin_layout Plain Layout
7168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7171 \begin_layout Plain Layout
7177 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7180 \begin_layout Plain Layout
7186 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7189 \begin_layout Plain Layout
7197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7200 \begin_layout Plain Layout
7206 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7209 \begin_layout Plain Layout
7215 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7218 \begin_layout Plain Layout
7224 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7227 \begin_layout Plain Layout
7233 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7236 \begin_layout Plain Layout
7250 \begin_layout Standard
7254 \begin_layout Plain Layout
7268 \begin_layout Standard
7269 \begin_inset Note Greyedout
7272 \begin_layout Plain Layout
7277 When the LaTeX-package
7285 \begin_layout Plain Layout
7286 LaTeX-packages ! caption
7291 is used, as in this document, the full page width is used for the caption
7292 when you use the default value of 4
7293 \begin_inset space \thinspace{}
7303 To get in this case exactly a 4
7304 \begin_inset space \thinspace{}
7307 in wide caption, you can either use a value slightly different from 4.0
7308 \begin_inset space \thinspace{}
7313 \begin_inset space \thinspace{}
7316 in, or the LaTeX-command
7320 captionsetup{width=value}
7322 that is provided by the
7334 \begin_layout Subsubsection
7335 Different Captions for Table Pages
7339 \begin_layout Plain Layout
7340 Longtables ! Different Captions for Pages
7348 \begin_layout Standard
7349 When the other captions should differ from the one of the first table page,
7350 insert a caption with a non-empty short title in a dummy caption row marked
7352 The caption used for the other table pages is inserted as caption without
7353 a short title in a dummy caption row that is marked as main header.
7354 When this caption shouldn't include the table number, use the command
7357 \begin_layout Standard
7362 caption*{caption text}
7365 \begin_layout Standard
7366 instead of LyX's caption box.
7367 The label to reference the table is inserted into the caption of the first
7370 \begin_inset space ~
7374 \begin_inset CommandInset ref
7376 reference "tab:DiffCaptions"
7380 is an example for a longtable with different heading where the second caption
7381 doesn't include the table number.
7384 \begin_layout Standard
7386 \begin_inset Tabular
7387 <lyxtabular version="3" rows="59" columns="3">
7388 <features islongtable="true">
7389 <column alignment="left" valignment="top" width="0cm">
7390 <column alignment="left" valignment="top" width="0pt">
7391 <column alignment="center" valignment="top" width="0pt">
7392 <row endfirsthead="true" caption="true">
7393 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7396 \begin_layout Plain Layout
7397 \begin_inset Caption
7399 \begin_layout Plain Layout
7401 \begin_inset CommandInset label
7403 name "tab:DiffCaptions"
7411 \begin_layout Plain Layout
7427 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7430 \begin_layout Plain Layout
7436 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7439 \begin_layout Plain Layout
7446 <row endfirsthead="true">
7447 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7450 \begin_layout Plain Layout
7453 Example Phone List (ignore the names)
7458 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7461 \begin_layout Plain Layout
7467 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7470 \begin_layout Plain Layout
7477 <row endfirsthead="true">
7478 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7481 \begin_layout Plain Layout
7489 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7492 \begin_layout Plain Layout
7498 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7501 \begin_layout Plain Layout
7510 <row endhead="true" caption="true">
7511 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7514 \begin_layout Plain Layout
7518 \begin_layout Plain Layout
7522 caption*{Continued Example Phone List}
7536 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7539 \begin_layout Plain Layout
7545 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7548 \begin_layout Plain Layout
7555 <row endhead="true">
7556 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7559 \begin_layout Plain Layout
7567 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7570 \begin_layout Plain Layout
7576 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7579 \begin_layout Plain Layout
7586 <row endhead="true">
7587 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
7590 \begin_layout Plain Layout
7598 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7601 \begin_layout Plain Layout
7607 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7610 \begin_layout Plain Layout
7619 <row endfoot="true">
7620 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7623 \begin_layout Plain Layout
7624 continued on next page
7629 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7632 \begin_layout Plain Layout
7638 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7641 \begin_layout Plain Layout
7649 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7652 \begin_layout Plain Layout
7660 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7663 \begin_layout Plain Layout
7669 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7672 \begin_layout Plain Layout
7680 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7683 \begin_layout Plain Layout
7691 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7694 \begin_layout Plain Layout
7700 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7703 \begin_layout Plain Layout
7711 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7714 \begin_layout Plain Layout
7722 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7725 \begin_layout Plain Layout
7731 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7734 \begin_layout Plain Layout
7742 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7745 \begin_layout Plain Layout
7753 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7756 \begin_layout Plain Layout
7762 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7765 \begin_layout Plain Layout
7773 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7776 \begin_layout Plain Layout
7784 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7787 \begin_layout Plain Layout
7793 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7796 \begin_layout Plain Layout
7804 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7807 \begin_layout Plain Layout
7815 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7818 \begin_layout Plain Layout
7824 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7827 \begin_layout Plain Layout
7835 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7838 \begin_layout Plain Layout
7846 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7849 \begin_layout Plain Layout
7855 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7858 \begin_layout Plain Layout
7866 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7869 \begin_layout Plain Layout
7877 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7880 \begin_layout Plain Layout
7886 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7889 \begin_layout Plain Layout
7897 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7900 \begin_layout Plain Layout
7908 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7911 \begin_layout Plain Layout
7917 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7920 \begin_layout Plain Layout
7928 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7931 \begin_layout Plain Layout
7939 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7942 \begin_layout Plain Layout
7948 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7951 \begin_layout Plain Layout
7959 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7962 \begin_layout Plain Layout
7970 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7973 \begin_layout Plain Layout
7979 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7982 \begin_layout Plain Layout
7990 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7993 \begin_layout Plain Layout
8001 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8004 \begin_layout Plain Layout
8010 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8013 \begin_layout Plain Layout
8021 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8024 \begin_layout Plain Layout
8032 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8035 \begin_layout Plain Layout
8041 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8044 \begin_layout Plain Layout
8052 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8055 \begin_layout Plain Layout
8063 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8066 \begin_layout Plain Layout
8072 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8075 \begin_layout Plain Layout
8083 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8086 \begin_layout Plain Layout
8095 \begin_layout Plain Layout
8106 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8109 \begin_layout Plain Layout
8115 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8118 \begin_layout Plain Layout
8126 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8129 \begin_layout Plain Layout
8137 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8140 \begin_layout Plain Layout
8146 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8149 \begin_layout Plain Layout
8157 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8160 \begin_layout Plain Layout
8168 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8171 \begin_layout Plain Layout
8177 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8180 \begin_layout Plain Layout
8188 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8191 \begin_layout Plain Layout
8199 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8202 \begin_layout Plain Layout
8208 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8211 \begin_layout Plain Layout
8219 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8222 \begin_layout Plain Layout
8230 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8233 \begin_layout Plain Layout
8239 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8242 \begin_layout Plain Layout
8250 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8253 \begin_layout Plain Layout
8261 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8264 \begin_layout Plain Layout
8270 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8273 \begin_layout Plain Layout
8281 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8284 \begin_layout Plain Layout
8292 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8295 \begin_layout Plain Layout
8301 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8304 \begin_layout Plain Layout
8312 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8315 \begin_layout Plain Layout
8323 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8326 \begin_layout Plain Layout
8332 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8335 \begin_layout Plain Layout
8343 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8346 \begin_layout Plain Layout
8354 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8357 \begin_layout Plain Layout
8363 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8366 \begin_layout Plain Layout
8374 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8377 \begin_layout Plain Layout
8385 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8388 \begin_layout Plain Layout
8394 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8397 \begin_layout Plain Layout
8405 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8408 \begin_layout Plain Layout
8416 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8419 \begin_layout Plain Layout
8425 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8428 \begin_layout Plain Layout
8436 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8439 \begin_layout Plain Layout
8447 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8450 \begin_layout Plain Layout
8456 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8459 \begin_layout Plain Layout
8467 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8470 \begin_layout Plain Layout
8478 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8481 \begin_layout Plain Layout
8487 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8490 \begin_layout Plain Layout
8498 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8501 \begin_layout Plain Layout
8509 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8512 \begin_layout Plain Layout
8518 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8521 \begin_layout Plain Layout
8529 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8532 \begin_layout Plain Layout
8540 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8543 \begin_layout Plain Layout
8549 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8552 \begin_layout Plain Layout
8560 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8563 \begin_layout Plain Layout
8571 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8574 \begin_layout Plain Layout
8580 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8583 \begin_layout Plain Layout
8591 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8594 \begin_layout Plain Layout
8602 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8605 \begin_layout Plain Layout
8611 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8614 \begin_layout Plain Layout
8622 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8625 \begin_layout Plain Layout
8631 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8634 \begin_layout Plain Layout
8640 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8643 \begin_layout Plain Layout
8651 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8654 \begin_layout Plain Layout
8662 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8665 \begin_layout Plain Layout
8671 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8674 \begin_layout Plain Layout
8682 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8685 \begin_layout Plain Layout
8693 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8696 \begin_layout Plain Layout
8702 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8705 \begin_layout Plain Layout
8713 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8716 \begin_layout Plain Layout
8724 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8727 \begin_layout Plain Layout
8733 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8736 \begin_layout Plain Layout
8744 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8747 \begin_layout Plain Layout
8755 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8758 \begin_layout Plain Layout
8764 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8767 \begin_layout Plain Layout
8775 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8778 \begin_layout Plain Layout
8786 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8789 \begin_layout Plain Layout
8795 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8798 \begin_layout Plain Layout
8806 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8809 \begin_layout Plain Layout
8817 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8820 \begin_layout Plain Layout
8826 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8829 \begin_layout Plain Layout
8837 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8840 \begin_layout Plain Layout
8848 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8851 \begin_layout Plain Layout
8857 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8860 \begin_layout Plain Layout
8868 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8871 \begin_layout Plain Layout
8879 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8882 \begin_layout Plain Layout
8888 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8891 \begin_layout Plain Layout
8899 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8902 \begin_layout Plain Layout
8910 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8913 \begin_layout Plain Layout
8919 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8922 \begin_layout Plain Layout
8930 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8933 \begin_layout Plain Layout
8941 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8944 \begin_layout Plain Layout
8950 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8953 \begin_layout Plain Layout
8961 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8964 \begin_layout Plain Layout
8972 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8975 \begin_layout Plain Layout
8981 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8984 \begin_layout Plain Layout
8992 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8995 \begin_layout Plain Layout
9003 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9006 \begin_layout Plain Layout
9012 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9015 \begin_layout Plain Layout
9023 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9026 \begin_layout Plain Layout
9034 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9037 \begin_layout Plain Layout
9043 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9046 \begin_layout Plain Layout
9054 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9057 \begin_layout Plain Layout
9065 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9068 \begin_layout Plain Layout
9074 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9077 \begin_layout Plain Layout
9085 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9088 \begin_layout Plain Layout
9096 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9099 \begin_layout Plain Layout
9105 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9108 \begin_layout Plain Layout
9116 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9119 \begin_layout Plain Layout
9127 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9130 \begin_layout Plain Layout
9136 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9139 \begin_layout Plain Layout
9147 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9150 \begin_layout Plain Layout
9158 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9161 \begin_layout Plain Layout
9167 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9170 \begin_layout Plain Layout
9178 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9181 \begin_layout Plain Layout
9189 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9192 \begin_layout Plain Layout
9198 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9201 \begin_layout Plain Layout
9209 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9212 \begin_layout Plain Layout
9220 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9223 \begin_layout Plain Layout
9229 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9232 \begin_layout Plain Layout
9240 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9243 \begin_layout Plain Layout
9251 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9254 \begin_layout Plain Layout
9260 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9263 \begin_layout Plain Layout
9277 \begin_layout Section
9278 Special Longtable Issues
9279 \begin_inset CommandInset label
9281 name "sec:Special-Longtable-Issues"
9288 \begin_layout Subsection
9289 Longtable Calculation
9293 \begin_layout Plain Layout
9294 Longtables ! Calculation
9302 \begin_layout Standard
9303 LaTeX calculates the height of table pages and their page breaks using so
9305 Chunks are pieces of the tables that are at once in LaTeX's memory.
9306 The default value is historically set to only 20 table rows.
9307 If you are using longtables with many pages this may slow down the creation
9309 You can safely increase the chunk size to values of 100-1000 by adding
9310 this command line to your document preamble:
9313 \begin_layout Standard
9318 setcounter{LTchunksize}{100}
9321 \begin_layout Subsection
9322 Floats and Longtables
9326 \begin_layout Plain Layout
9335 \begin_layout Standard
9336 There might be problems when a float appears on the same page where a longtable
9338 To avoid such situation, add the command
9344 as TeX-Code before your longtable.
9347 \begin_layout Subsection
9352 \begin_layout Plain Layout
9353 Longtables ! Forced Page Breaks
9361 \begin_layout Standard
9362 By default tables are only broken between rows.
9363 If you have a cell with multiples lines and want to have a page break within
9364 the cell, insert the new line command
9365 \begin_inset Quotes eld
9377 \begin_inset Quotes erd
9380 as TeX-Code at this point of the cell where it should be broken.
9389 command you have to insert in TeX-Code so many
9390 \begin_inset Quotes eld
9398 \begin_inset Quotes erd
9401 characters like the number of the following table columns.
9406 is the character to separate table cells.
9407 Write in TeX-Code after each
9411 the content of the corresponding following cell and delete the content
9413 \begin_inset Newline newline
9424 command, insert so many
9428 characters like the number of table columns before the current column.
9430 \begin_inset space ~
9434 \begin_inset CommandInset ref
9436 reference "tab:ForcedPagebreak"
9440 the cell that should be broken is in the second column followed by another
9442 Therefore the following command was inserted in the cell as TeX-Code behind
9444 \begin_inset Quotes eld
9452 \begin_inset Quotes erd
9458 \begin_layout Standard
9466 \begin_inset Newline newline
9472 \begin_layout Standard
9474 \begin_inset Quotes eld
9478 \begin_inset Quotes erd
9481 in the third columns of the row was deleted.
9482 If your footer row of the longtable has for a certain reason no upper line
9483 but you would have a horizontal line where the cell is broken, use this
9487 \begin_layout Standard
9495 \begin_inset Newline newline
9503 \begin_layout Standard
9504 When the cell to be broken is in the last column, the command
9507 \begin_layout Standard
9517 \begin_layout Standard
9518 must be inserted as TeX-Code at the beginning of the cell.
9519 This assures that the part of the cell that will be displayed on the new
9520 page appears with the full width.
9523 \begin_layout Standard
9525 \begin_inset Tabular
9526 <lyxtabular version="3" rows="38" columns="3">
9527 <features islongtable="true">
9528 <column alignment="left" valignment="top" width="0cm">
9529 <column alignment="left" valignment="top" width="3cm">
9530 <column alignment="center" valignment="top" width="0pt">
9531 <row endfirsthead="true" caption="true">
9532 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9535 \begin_layout Plain Layout
9536 \begin_inset Caption
9538 \begin_layout Plain Layout
9539 Table with forced page break in table cell
9540 \begin_inset CommandInset label
9542 name "tab:ForcedPagebreak"
9550 \begin_layout Plain Layout
9551 Table with forced page break in table cell
9566 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9569 \begin_layout Plain Layout
9575 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9578 \begin_layout Plain Layout
9585 <row endfirsthead="true">
9586 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9589 \begin_layout Plain Layout
9592 Example Phone List (ignore the names)
9597 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9600 \begin_layout Plain Layout
9606 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9609 \begin_layout Plain Layout
9616 <row endfirsthead="true">
9617 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9620 \begin_layout Plain Layout
9628 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9631 \begin_layout Plain Layout
9637 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9640 \begin_layout Plain Layout
9649 <row endhead="true" caption="true">
9650 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9653 \begin_layout Plain Layout
9657 \begin_layout Plain Layout
9661 caption*{Continued table with forced page break in table cell}
9675 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9678 \begin_layout Plain Layout
9684 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9687 \begin_layout Plain Layout
9694 <row endhead="true">
9695 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9698 \begin_layout Plain Layout
9706 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9709 \begin_layout Plain Layout
9715 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9718 \begin_layout Plain Layout
9725 <row endhead="true">
9726 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9729 \begin_layout Plain Layout
9737 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9740 \begin_layout Plain Layout
9746 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9749 \begin_layout Plain Layout
9758 <row endfoot="true">
9759 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9762 \begin_layout Plain Layout
9763 continued on next page
9768 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9771 \begin_layout Plain Layout
9777 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9780 \begin_layout Plain Layout
9788 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9791 \begin_layout Plain Layout
9799 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9802 \begin_layout Plain Layout
9808 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9811 \begin_layout Plain Layout
9819 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9822 \begin_layout Plain Layout
9830 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9833 \begin_layout Plain Layout
9839 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9842 \begin_layout Plain Layout
9850 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9853 \begin_layout Plain Layout
9861 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9864 \begin_layout Plain Layout
9870 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9873 \begin_layout Plain Layout
9881 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9884 \begin_layout Plain Layout
9892 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9895 \begin_layout Plain Layout
9901 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9904 \begin_layout Plain Layout
9912 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9915 \begin_layout Plain Layout
9923 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9926 \begin_layout Plain Layout
9932 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9935 \begin_layout Plain Layout
9943 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9946 \begin_layout Plain Layout
9954 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9957 \begin_layout Plain Layout
9963 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9966 \begin_layout Plain Layout
9974 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9977 \begin_layout Plain Layout
9985 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9988 \begin_layout Plain Layout
9994 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9997 \begin_layout Plain Layout
10005 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10008 \begin_layout Plain Layout
10016 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10019 \begin_layout Plain Layout
10025 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10028 \begin_layout Plain Layout
10036 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10039 \begin_layout Plain Layout
10047 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10050 \begin_layout Plain Layout
10056 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10059 \begin_layout Plain Layout
10067 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10070 \begin_layout Plain Layout
10078 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10081 \begin_layout Plain Layout
10087 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10090 \begin_layout Plain Layout
10098 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10101 \begin_layout Plain Layout
10109 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10112 \begin_layout Plain Layout
10118 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10121 \begin_layout Plain Layout
10129 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10132 \begin_layout Plain Layout
10140 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10143 \begin_layout Plain Layout
10149 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10152 \begin_layout Plain Layout
10160 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10163 \begin_layout Plain Layout
10171 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10174 \begin_layout Plain Layout
10180 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10183 \begin_layout Plain Layout
10191 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10194 \begin_layout Plain Layout
10202 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10205 \begin_layout Plain Layout
10211 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10214 \begin_layout Plain Layout
10222 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10225 \begin_layout Plain Layout
10233 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10236 \begin_layout Plain Layout
10242 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10245 \begin_layout Plain Layout
10253 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10256 \begin_layout Plain Layout
10264 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10267 \begin_layout Plain Layout
10273 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10276 \begin_layout Plain Layout
10284 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10287 \begin_layout Plain Layout
10295 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10298 \begin_layout Plain Layout
10304 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10307 \begin_layout Plain Layout
10315 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10318 \begin_layout Plain Layout
10326 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10329 \begin_layout Plain Layout
10335 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10338 \begin_layout Plain Layout
10346 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10349 \begin_layout Plain Layout
10357 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10360 \begin_layout Plain Layout
10366 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10369 \begin_layout Plain Layout
10377 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10380 \begin_layout Plain Layout
10388 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10391 \begin_layout Plain Layout
10397 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10400 \begin_layout Plain Layout
10408 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10411 \begin_layout Plain Layout
10419 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10422 \begin_layout Plain Layout
10428 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10431 \begin_layout Plain Layout
10439 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10442 \begin_layout Plain Layout
10450 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10453 \begin_layout Plain Layout
10459 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10462 \begin_layout Plain Layout
10470 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10473 \begin_layout Plain Layout
10481 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10484 \begin_layout Plain Layout
10486 Fürst von Montecompatri, 11.
10487 Fürst von Sulmona und Vivaro, 10.
10488 Fürst von Rossano, 5.
10489 Herzog von Canemorte, 11.
10490 Herzog von Palombara, 5.
10491 Herzog von Castelchiodato,
10495 \begin_layout Plain Layout
10504 \begin_layout Plain Layout
10512 Herzog von Poggionativo, 11.
10513 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10514 Graf von Valinfreda, 11.
10515 Baron von Cropalati, 11.
10516 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10521 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10524 \begin_layout Plain Layout
10532 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10535 \begin_layout Plain Layout
10543 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10546 \begin_layout Plain Layout
10552 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10555 \begin_layout Plain Layout
10563 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10566 \begin_layout Plain Layout
10574 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10577 \begin_layout Plain Layout
10583 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10586 \begin_layout Plain Layout
10594 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10597 \begin_layout Plain Layout
10605 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10608 \begin_layout Plain Layout
10614 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10617 \begin_layout Plain Layout
10625 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10628 \begin_layout Plain Layout
10636 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10639 \begin_layout Plain Layout
10645 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10648 \begin_layout Plain Layout
10656 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10659 \begin_layout Plain Layout
10667 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10670 \begin_layout Plain Layout
10676 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10679 \begin_layout Plain Layout
10687 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10690 \begin_layout Plain Layout
10698 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10701 \begin_layout Plain Layout
10707 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10710 \begin_layout Plain Layout
10718 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10721 \begin_layout Plain Layout
10729 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10732 \begin_layout Plain Layout
10738 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10741 \begin_layout Plain Layout
10749 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10752 \begin_layout Plain Layout
10760 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10763 \begin_layout Plain Layout
10769 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10772 \begin_layout Plain Layout
10786 \begin_layout Standard
10787 \begin_inset Newpage newpage
10793 \begin_layout Section
10794 Multiple Lines Columns and Rows
10797 \begin_layout Subsection
10798 Multiple Lines in Table Cells
10799 \begin_inset CommandInset label
10801 name "sub:Multiple-Lines-in"
10809 \begin_layout Plain Layout
10810 Multiple Lines in Table Cells
10819 \begin_layout Plain Layout
10828 \begin_layout Standard
10830 \begin_inset Float table
10836 \begin_layout Plain Layout
10837 \begin_inset Caption
10839 \begin_layout Plain Layout
10840 \begin_inset CommandInset label
10842 name "tab:Table-with-multiple"
10846 Table with multiple lines in cells
10854 \begin_layout Plain Layout
10856 \begin_inset Tabular
10857 <lyxtabular version="3" rows="3" columns="3">
10859 <column alignment="center" valignment="middle" width="2.5cm">
10860 <column alignment="center" valignment="middle" width="0">
10861 <column alignment="center" valignment="middle" width="0">
10863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10866 \begin_layout Plain Layout
10868 \begin_inset Newline linebreak
10876 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10879 \begin_layout Plain Layout
10885 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10888 \begin_layout Plain Layout
10896 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10899 \begin_layout Plain Layout
10905 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10908 \begin_layout Plain Layout
10914 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10917 \begin_layout Plain Layout
10925 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10928 \begin_layout Plain Layout
10934 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10937 \begin_layout Plain Layout
10943 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10946 \begin_layout Plain Layout
10965 \begin_layout Standard
10966 Adjusting a fixed width for a column, enables to enter text as a paragraph
10967 with multiple lines and hyphenations.
10970 \begin_layout Standard
10972 \begin_inset space ~
10976 \begin_inset CommandInset ref
10978 reference "tab:Table-with-multiple"
10982 , create a 3×3 table, mark the first cell and right-click on it.
10983 In the appearing table dialog we set a cell width of 2.5
10984 \begin_inset space \thinspace{}
10987 cm and choose centered for the vertical and horizontal alignment.
10988 The vertical alignment is used for all cells of the row.
10989 As our text is smaller than than 2.5
10990 \begin_inset space \thinspace{}
10993 cm, only one line will appear.
10994 To get two lines, a justified line break (shortcut
10999 If the text is wider than the set cell width, it will automatically be
11000 broken to several lines.
11003 \begin_layout Standard
11004 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11005 by LaTeX if it is the first entry.
11006 Therefore you need to insert something, to make the word not being the
11008 So add a horizontal space of 0
11009 \begin_inset space \thinspace{}
11012 pt before the word.
11013 As the space is zero, it doesn't change the output.
11015 \begin_inset space ~
11019 \begin_inset CommandInset ref
11021 reference "tab:Table-with-and"
11028 \begin_layout Standard
11029 \begin_inset Float table
11035 \begin_layout Plain Layout
11036 \begin_inset Caption
11038 \begin_layout Plain Layout
11039 \begin_inset CommandInset label
11041 name "tab:Table-with-and"
11045 Table with and without hyphenation
11053 \begin_layout Plain Layout
11054 \begin_inset space \hfill{}
11058 \begin_inset Tabular
11059 <lyxtabular version="3" rows="3" columns="3">
11061 <column alignment="center" valignment="middle" width="2.5cm">
11062 <column alignment="center" valignment="middle" width="0">
11063 <column alignment="center" valignment="middle" width="0">
11065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11068 \begin_layout Plain Layout
11069 verylongtablecellword
11074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11077 \begin_layout Plain Layout
11083 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11086 \begin_layout Plain Layout
11094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11097 \begin_layout Plain Layout
11103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11106 \begin_layout Plain Layout
11112 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11115 \begin_layout Plain Layout
11123 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11126 \begin_layout Plain Layout
11132 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11135 \begin_layout Plain Layout
11141 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11144 \begin_layout Plain Layout
11156 \begin_inset space \hfill{}
11160 \begin_inset Tabular
11161 <lyxtabular version="3" rows="3" columns="3">
11163 <column alignment="center" valignment="middle" width="2.5cm">
11164 <column alignment="center" valignment="middle" width="0">
11165 <column alignment="center" valignment="middle" width="0">
11167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11170 \begin_layout Plain Layout
11171 \begin_inset space \hspace{}
11175 verylongtablecellword
11180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11183 \begin_layout Plain Layout
11189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11192 \begin_layout Plain Layout
11200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11203 \begin_layout Plain Layout
11209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11212 \begin_layout Plain Layout
11218 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11221 \begin_layout Plain Layout
11229 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11232 \begin_layout Plain Layout
11238 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11241 \begin_layout Plain Layout
11247 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11250 \begin_layout Plain Layout
11262 \begin_inset space \hfill{}
11273 \begin_layout Standard
11274 \begin_inset Newpage newpage
11280 \begin_layout Subsection
11282 \begin_inset CommandInset label
11284 name "sub:Multicolumns"
11292 \begin_layout Plain Layout
11302 \begin_layout Plain Layout
11303 Table ! Multicolumns
11311 \begin_layout Subsubsection
11315 \begin_layout Standard
11316 To span a cell over multiple columns, mark as much cells within a line that
11317 should be one spanned cell and use either the table-toolbar button
11318 \begin_inset Graphics
11319 filename ../images/tabular-feature_multicolumn.png
11321 scaleBeforeRotation
11327 Edit\SpecialChar \menuseparator
11328 Table\SpecialChar \menuseparator
11331 , or right click on the marked cells and choose multicolumn in the appearing
11332 table dialog under the tab
11339 \begin_layout Standard
11340 Multicolumns have there own cell settings.
11341 That means changing cell borders, cell alignment, and the width only affects
11343 Here is an example table with a multicolumn cell in the first row and one
11344 in the last row without the upper border:
11347 \begin_layout Standard
11349 \begin_inset Tabular
11350 <lyxtabular version="3" rows="3" columns="4">
11351 <features firstHeadTopDL="true" firstHeadBottomDL="true">
11352 <column alignment="center" valignment="top" width="0pt">
11353 <column alignment="center" valignment="middle" width="0">
11354 <column alignment="center" valignment="top" width="0in">
11355 <column alignment="center" valignment="top" width="0pt">
11357 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11360 \begin_layout Plain Layout
11366 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11369 \begin_layout Plain Layout
11375 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11378 \begin_layout Plain Layout
11384 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11387 \begin_layout Plain Layout
11395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11398 \begin_layout Plain Layout
11413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11416 \begin_layout Plain Layout
11422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11425 \begin_layout Plain Layout
11431 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11434 \begin_layout Plain Layout
11442 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11445 \begin_layout Plain Layout
11451 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11454 \begin_layout Plain Layout
11460 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11463 \begin_layout Plain Layout
11469 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11472 \begin_layout Plain Layout
11486 \begin_layout Subsubsection
11487 Multicolumn Calculations
11488 \begin_inset CommandInset label
11490 name "sub:Multicolumn-Calculations"
11498 \begin_layout Plain Layout
11499 Multicolumns ! Calculations
11507 \begin_layout Standard
11508 LyX supports multicolumns directly, but we have to take notice of the cell
11509 width of the columns spanned by the multicolumn cell.
11512 \begin_layout Standard
11513 \begin_inset Float table
11519 \begin_layout Plain Layout
11520 \begin_inset Caption
11522 \begin_layout Plain Layout
11523 \begin_inset CommandInset label
11525 name "tab:Table-with-centered"
11529 Table with centered multicolumn text above two columns that have exactly
11530 half the width of the multicolumn cell
11531 \begin_inset OptArg
11534 \begin_layout Plain Layout
11535 Perfect multicolumn table
11548 \begin_layout Plain Layout
11550 \begin_inset Tabular
11551 <lyxtabular version="3" rows="3" columns="3">
11553 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11554 <column alignment="center" valignment="middle" width="0">
11555 <column alignment="center" valignment="top" width="0">
11557 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11560 \begin_layout Plain Layout
11561 multiple lines multicolumn
11566 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11569 \begin_layout Plain Layout
11575 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11578 \begin_layout Plain Layout
11586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11589 \begin_layout Plain Layout
11595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11598 \begin_layout Plain Layout
11604 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11607 \begin_layout Plain Layout
11615 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11618 \begin_layout Plain Layout
11624 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11627 \begin_layout Plain Layout
11633 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11636 \begin_layout Plain Layout
11655 \begin_layout Standard
11656 To create for example Table
11657 \begin_inset space ~
11661 \begin_inset CommandInset ref
11663 reference "tab:Table-with-centered"
11667 , mark the first two cells in the first row of a 3×3 table and right-click
11669 Now choose for this cell
11678 \begin_inset space \thinspace{}
11681 cm in the table dialog.
11682 The spanned columns should have exactly half the width of the multicolumn
11683 cell, so that you would adjust a width of 1.25
11684 \begin_inset space \thinspace{}
11687 cm for the first column.
11688 The second column has then automatically a width of 1.25
11689 \begin_inset space \thinspace{}
11692 cm (multicolumn width - width of first column).
11693 This was done for Table
11694 \begin_inset space ~
11698 \begin_inset CommandInset ref
11700 reference "tab:Table-without-half"
11707 \begin_layout Standard
11708 \begin_inset Float table
11713 \begin_layout Plain Layout
11714 \begin_inset Caption
11716 \begin_layout Plain Layout
11717 \begin_inset CommandInset label
11719 name "tab:Table-without-half"
11723 Table where the spanned table columns have not exactly half the width of
11724 the multicolumn cell
11725 \begin_inset OptArg
11728 \begin_layout Plain Layout
11729 Imperfect multicolumn table
11742 \begin_layout Plain Layout
11744 \begin_inset Tabular
11745 <lyxtabular version="3" rows="3" columns="3">
11747 <column alignment="center" valignment="top" width="1.25cm">
11748 <column alignment="center" valignment="top" width="0">
11749 <column alignment="center" valignment="top" width="0">
11751 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11754 \begin_layout Plain Layout
11755 multiple lines multicolumn
11760 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11763 \begin_layout Plain Layout
11769 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11772 \begin_layout Plain Layout
11780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11783 \begin_layout Plain Layout
11789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11792 \begin_layout Plain Layout
11798 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11801 \begin_layout Plain Layout
11809 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11812 \begin_layout Plain Layout
11818 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11821 \begin_layout Plain Layout
11827 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11830 \begin_layout Plain Layout
11849 \begin_layout Standard
11850 You can see that the first column has not the half width of the multicolumn
11851 cell, it is a bit bigger.
11852 The reason is that the given width of a cell
11853 \begin_inset Formula $W_{g}$
11856 is not its total width
11857 \begin_inset Formula $W_{\mathrm{tot}}$
11860 because a cell is always a bit larger than its given width.
11862 \begin_inset space ~
11866 \begin_inset CommandInset ref
11868 reference "cha:Explanation-of-Equation"
11872 explains it in detail.
11875 \begin_layout Standard
11876 The needed given width
11877 \begin_inset Formula $W_{g\, n}$
11884 columns are spanned can be calculated, so that each column has a total
11886 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11890 \begin_inset Formula \begin{equation}
11891 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11898 \begin_layout Standard
11899 In our case we have
11900 \begin_inset Formula $n=2$
11904 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11907 cm and the default values for the lengths, so that equation
11908 \begin_inset CommandInset ref
11915 \begin_inset Formula \begin{equation}
11916 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11923 \begin_layout Standard
11924 To enable calculations in LaTeX, the LaTeX-package
11928 must be loaded with the document preamble line
11932 \begin_layout Plain Layout
11933 LaTeX-packages ! calc
11941 \begin_layout Standard
11949 \begin_layout Standard
11950 LyX does not allow to calculate lengths in the width-field of the table
11952 Therefore you have to format the column by inserting a LaTeX-argument in
11954 Here is an overview about the arguments:
11957 \begin_layout Itemize
11962 creates cell with a fixed width, its text is vertically top-aligned
11965 \begin_layout Itemize
11970 creates cell with a fixed width, its text is vertically centered
11973 \begin_layout Itemize
11978 creates cell with a fixed width, its text is vertically bottom-aligned
11981 \begin_layout Standard
11982 By entering a LaTeX-argument, all cell settings set in the table dialog
11986 \begin_layout Standard
11987 \begin_inset Note Greyedout
11990 \begin_layout Plain Layout
11995 Due to a bug, LyX shows the overwritten settings anyway.
12003 \begin_layout Standard
12004 As the text should be horizontally centered, the command
12011 You can now enter the following LaTeX-argument for the first spanned column:
12014 \begin_layout Standard
12019 centering}m{1.25cm-6.2pt}
12022 \begin_layout Standard
12027 means, that the commands inside the braces are applied before the cell
12031 \begin_layout Standard
12032 Although we have chosen centered alignment for the text of the multicolumn
12033 cell, it is still left aligned.
12034 This is because LyX only applies the alignment to single columns.
12035 So we have to use for the multicolumn the LaTeX-argument
12038 \begin_layout Standard
12046 \begin_layout Subsection
12051 \begin_layout Plain Layout
12061 \begin_layout Plain Layout
12071 \begin_layout Plain Layout
12072 LaTeX-packages ! multirow
12080 \begin_layout Standard
12081 In contrary to multicolumns multirows are not yet supported by LyX so a
12082 bit of TeX-Code needs to be used.
12083 To use multirows load the LaTeX-package
12087 in your document preamble with the command
12090 \begin_layout Standard
12095 usepackage{multirow}
12098 \begin_layout Standard
12099 Multirows are created with the command
12102 \begin_layout Standard
12107 multirow{number of rows}{cell width}{cell entry}
12110 \begin_layout Standard
12111 To create the following table:
12114 \begin_layout Standard
12119 \begin_layout Plain Layout
12133 \begin_inset Tabular
12134 <lyxtabular version="3" rows="3" columns="3">
12136 <column alignment="center" valignment="top" width="0">
12137 <column alignment="center" valignment="top" width="0">
12138 <column alignment="center" valignment="top" width="0">
12140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12143 \begin_layout Plain Layout
12149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12152 \begin_layout Plain Layout
12158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12161 \begin_layout Plain Layout
12169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12172 \begin_layout Plain Layout
12176 \begin_layout Plain Layout
12180 multirow{2}{2.5cm}{
12189 \begin_layout Plain Layout
12201 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12204 \begin_layout Plain Layout
12210 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12213 \begin_layout Plain Layout
12221 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12224 \begin_layout Plain Layout
12230 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12233 \begin_layout Plain Layout
12239 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12242 \begin_layout Plain Layout
12257 \begin_layout Plain Layout
12273 \begin_layout Standard
12274 create a 3×3 table.
12275 To get rid of the line above the last cell in the first column, the cell
12276 is marked as multicolumn and the upper border is unset.
12277 The multirow is now created in the second row of the first column by inserting
12281 \begin_layout Standard
12286 multirow{2}{2.5cm}{
12289 \begin_layout Standard
12291 According to the command parameters the multirow spans now two rows and
12293 \begin_inset space \thinspace{}
12297 The content of the multirow cell follows outside the TeX-Code box and the
12298 command is finished with a right brace
12302 in another TeX-Code-box behind the text.
12305 \begin_layout Standard
12312 left-aligns its content by default.
12313 To override the default, renew the command
12322 \begin_layout Standard
12334 \begin_layout Standard
12335 in TeX-Code in the document preamble.
12336 Then all entries of multirow cells in the document are centered.
12337 If centering is only needed for several tables, you can renew the command
12338 in an TeX-Code box just before the table instead of the preamble.
12339 If the text should be right-aligned, replace
12352 To return to left-alignment
12361 \begin_layout Section
12363 \begin_inset CommandInset label
12365 name "sec:Formal-Tables"
12373 \begin_layout Plain Layout
12382 \begin_layout Standard
12383 Tables are often typeset in books similar to Table
12384 \begin_inset space ~
12388 \begin_inset CommandInset ref
12390 reference "tab:Example-booktabs-table"
12395 This kind of tables is called
12396 \begin_inset Quotes eld
12404 \begin_inset Quotes erd
12408 To make a table a formal table use the option
12416 tab of the table dialog.
12419 \begin_layout Standard
12420 \begin_inset Float table
12426 \begin_layout Plain Layout
12427 \begin_inset Caption
12429 \begin_layout Plain Layout
12430 \begin_inset CommandInset label
12432 name "tab:Example-booktabs-table"
12436 Example booktabs-table
12444 \begin_layout Plain Layout
12446 \begin_inset Tabular
12447 <lyxtabular version="3" rows="8" columns="4">
12448 <features booktabs="true">
12449 <column alignment="center" valignment="top" width="0">
12450 <column alignment="center" valignment="top" width="0">
12451 <column alignment="center" valignment="top" width="0">
12452 <column alignment="center" valignment="top" width="0">
12454 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12457 \begin_layout Plain Layout
12463 <cell alignment="center" valignment="top" topline="true" usebox="none">
12466 \begin_layout Plain Layout
12468 \begin_inset Formula $\,$
12476 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
12479 \begin_layout Plain Layout
12481 \begin_inset Formula $\,$
12489 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12492 \begin_layout Plain Layout
12500 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12503 \begin_layout Plain Layout
12507 \begin_layout Plain Layout
12520 \begin_layout Plain Layout
12529 Detector thickness [µm]
12534 <cell alignment="center" valignment="top" usebox="none">
12537 \begin_layout Plain Layout
12543 <cell alignment="center" valignment="top" usebox="none">
12546 \begin_layout Plain Layout
12552 <cell alignment="center" valignment="top" usebox="none">
12555 \begin_layout Plain Layout
12563 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12566 \begin_layout Plain Layout
12572 <cell alignment="center" valignment="top" topline="true" usebox="none">
12575 \begin_layout Plain Layout
12581 <cell alignment="center" valignment="top" topline="true" usebox="none">
12584 \begin_layout Plain Layout
12590 <cell alignment="center" valignment="top" topline="true" usebox="none">
12593 \begin_layout Plain Layout
12600 <row topspace="default">
12601 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12604 \begin_layout Plain Layout
12605 Spatial resolution [µm]
12610 <cell alignment="center" valignment="top" usebox="none">
12613 \begin_layout Plain Layout
12619 <cell alignment="center" valignment="top" usebox="none">
12622 \begin_layout Plain Layout
12628 <cell alignment="center" valignment="top" usebox="none">
12631 \begin_layout Plain Layout
12638 <row topspace="default">
12639 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12642 \begin_layout Plain Layout
12644 \begin_inset Formula $f_{\mathrm{max}}$
12652 <cell alignment="center" valignment="top" usebox="none">
12655 \begin_layout Plain Layout
12661 <cell alignment="center" valignment="top" usebox="none">
12664 \begin_layout Plain Layout
12670 <cell alignment="center" valignment="top" usebox="none">
12673 \begin_layout Plain Layout
12680 <row topspace="default">
12681 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12684 \begin_layout Plain Layout
12688 \begin_layout Plain Layout
12692 cmidrule(l{10pt}){1-1}
12697 LSF-spatial resolution
12702 <cell alignment="center" valignment="top" usebox="none">
12705 \begin_layout Plain Layout
12711 <cell alignment="center" valignment="top" usebox="none">
12714 \begin_layout Plain Layout
12720 <cell alignment="center" valignment="top" usebox="none">
12723 \begin_layout Plain Layout
12731 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12734 \begin_layout Plain Layout
12740 <cell alignment="center" valignment="top" usebox="none">
12743 \begin_layout Plain Layout
12749 <cell alignment="center" valignment="top" usebox="none">
12752 \begin_layout Plain Layout
12758 <cell alignment="center" valignment="top" usebox="none">
12761 \begin_layout Plain Layout
12769 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12772 \begin_layout Plain Layout
12778 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12781 \begin_layout Plain Layout
12787 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12790 \begin_layout Plain Layout
12796 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12799 \begin_layout Plain Layout
12818 \begin_layout Standard
12819 Spaces to table rows can be added using the
12823 tab of the table dialog as described in section
12824 \begin_inset space ~
12828 \begin_inset CommandInset ref
12830 reference "sub:Row-Spacing"
12837 \begin_layout Standard
12838 In contrary to normal tables, formal tables have no vertical table lines.
12839 The horizontal table lines can be set like for normal tables but they appear
12840 with different width in the output:
12841 \begin_inset Newline newline
12844 The first and the last table line have a default width of 0.08
12845 \begin_inset space \thinspace{}
12848 em while the other lines have a default width of 0.05
12849 \begin_inset space \thinspace{}
12855 \begin_layout Standard
12856 The default widths can be changed with the following preamble lines
12859 \begin_layout Standard
12869 \begin_inset Newline newline
12881 \begin_layout Standard
12882 This example is for the first line, the so called
12887 If you want to change the width for the last line, replace
12896 To change the width for the other lines replace
12905 You can use all units listed in appendix
12906 \begin_inset space ~
12910 \begin_inset CommandInset ref
12912 reference "cha:Units-available-in"
12919 \begin_layout Standard
12920 Lines that don't span over all table columns can be created by setting a
12921 table line for multicolumn cells.
12922 LyX will then internally use the command
12928 to create this line.
12932 \begin_layout Standard
12937 cmidrule[width](trim){startcol-endcol}
12940 \begin_layout Standard
12947 are are currently not supported by LyX so you have to use TeX-Code to be
12955 s can manually be created by inserting the command as TeX-Code as first
12956 cell entry of the first cell of a row.
12957 The line is then drawn in the output above the current row.
12960 \begin_layout Standard
12961 The default for the width is 0.03
12962 \begin_inset space \thinspace{}
12966 Startcol is the number of the column where the line starts and endcol the
12967 column number where the line ends.
12968 The endcol always needs to be specified, also when the line should span
12970 The optional parameter trim could be either
12978 where the trimwidth is also optional.
12979 Using for example the parameter
12983 means that the line is trimmed from its left end by 2
12984 \begin_inset space \thinspace{}
12988 If you don't specify the trimwidth the lines are trimmed by the default
12990 \begin_inset space \thinspace{}
12996 \begin_layout Standard
12997 \begin_inset VSpace bigskip
13001 \begin_inset space ~
13005 \begin_inset CommandInset ref
13007 reference "tab:Example-booktabs-table"
13011 was created using the commands
13014 \begin_layout Standard
13024 \begin_layout Standard
13025 at the beginning of the in the second row and
13028 \begin_layout Standard
13033 cmidrule(l{10pt}){1-1}
13036 \begin_layout Standard
13040 \begin_layout Standard
13041 \begin_inset VSpace bigskip
13047 \begin_layout Standard
13048 You might want to have overlapping
13055 \begin_inset space ~
13059 \begin_inset CommandInset ref
13061 reference "tab:Special-booktabs-table"
13066 This can be achieved with the TeX-Code command
13069 \begin_layout Standard
13077 \begin_layout Standard
13078 The command that was used for the second row of Table
13079 \begin_inset space ~
13083 \begin_inset CommandInset ref
13085 reference "tab:Special-booktabs-table"
13092 \begin_layout Standard
13106 \begin_layout Standard
13107 The command for the sixth row is
13110 \begin_layout Standard
13122 \begin_layout Standard
13123 \begin_inset VSpace bigskip
13129 \begin_layout Standard
13130 If you are anyway not satisfied with the border line spacing, you can use
13131 the following command to produce lines that span over all table columns
13136 \begin_layout Standard
13141 specialrule{width}{space above}{space below}
13144 \begin_layout Standard
13145 For more informations about these specialties, we refer to the manual of
13151 \begin_inset CommandInset citation
13161 \begin_layout Plain Layout
13162 LaTeX-packages ! booktabs
13170 \begin_layout Standard
13171 \begin_inset Float table
13177 \begin_layout Plain Layout
13178 \begin_inset Caption
13180 \begin_layout Plain Layout
13181 \begin_inset CommandInset label
13183 name "tab:Special-booktabs-table"
13187 Special booktabs-table
13195 \begin_layout Plain Layout
13197 \begin_inset Tabular
13198 <lyxtabular version="3" rows="8" columns="4">
13199 <features booktabs="true">
13200 <column alignment="center" valignment="top" width="0">
13201 <column alignment="center" valignment="top" width="0">
13202 <column alignment="center" valignment="top" width="0">
13203 <column alignment="center" valignment="top" width="0">
13205 <cell alignment="center" valignment="top" topline="true" usebox="none">
13208 \begin_layout Plain Layout
13214 <cell alignment="center" valignment="top" topline="true" usebox="none">
13217 \begin_layout Plain Layout
13219 \begin_inset space \thinspace{}
13227 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
13230 \begin_layout Plain Layout
13232 \begin_inset space \thinspace{}
13240 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13243 \begin_layout Plain Layout
13251 <cell alignment="center" valignment="top" usebox="none">
13254 \begin_layout Plain Layout
13258 \begin_layout Plain Layout
13271 \begin_layout Plain Layout
13284 \begin_layout Plain Layout
13297 \begin_layout Plain Layout
13306 Detector thickness [µm]
13311 <cell alignment="center" valignment="top" usebox="none">
13314 \begin_layout Plain Layout
13320 <cell alignment="center" valignment="top" usebox="none">
13323 \begin_layout Plain Layout
13329 <cell alignment="center" valignment="top" usebox="none">
13332 \begin_layout Plain Layout
13340 <cell alignment="center" valignment="top" topline="true" usebox="none">
13343 \begin_layout Plain Layout
13349 <cell alignment="center" valignment="top" topline="true" usebox="none">
13352 \begin_layout Plain Layout
13358 <cell alignment="center" valignment="top" topline="true" usebox="none">
13361 \begin_layout Plain Layout
13367 <cell alignment="center" valignment="top" topline="true" usebox="none">
13370 \begin_layout Plain Layout
13377 <row topspace="default">
13378 <cell alignment="center" valignment="top" usebox="none">
13381 \begin_layout Plain Layout
13382 Spatial resolution [µm]
13387 <cell alignment="center" valignment="top" usebox="none">
13390 \begin_layout Plain Layout
13396 <cell alignment="center" valignment="top" usebox="none">
13399 \begin_layout Plain Layout
13405 <cell alignment="center" valignment="top" usebox="none">
13408 \begin_layout Plain Layout
13415 <row topspace="default">
13416 <cell alignment="center" valignment="top" usebox="none">
13419 \begin_layout Plain Layout
13421 \begin_inset Formula $f_{\mathrm{max}}$
13429 <cell alignment="center" valignment="top" usebox="none">
13432 \begin_layout Plain Layout
13438 <cell alignment="center" valignment="top" usebox="none">
13441 \begin_layout Plain Layout
13447 <cell alignment="center" valignment="top" usebox="none">
13450 \begin_layout Plain Layout
13458 <cell alignment="center" valignment="top" topline="true" usebox="none">
13461 \begin_layout Plain Layout
13465 \begin_layout Plain Layout
13478 \begin_layout Plain Layout
13487 LSF-spatial resolution
13492 <cell alignment="center" valignment="top" topline="true" usebox="none">
13495 \begin_layout Plain Layout
13501 <cell alignment="center" valignment="top" topline="true" usebox="none">
13504 \begin_layout Plain Layout
13510 <cell alignment="center" valignment="top" topline="true" usebox="none">
13513 \begin_layout Plain Layout
13521 <cell alignment="center" valignment="top" usebox="none">
13524 \begin_layout Plain Layout
13530 <cell alignment="center" valignment="top" usebox="none">
13533 \begin_layout Plain Layout
13539 <cell alignment="center" valignment="top" usebox="none">
13542 \begin_layout Plain Layout
13548 <cell alignment="center" valignment="top" usebox="none">
13551 \begin_layout Plain Layout
13559 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13562 \begin_layout Plain Layout
13568 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13571 \begin_layout Plain Layout
13577 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13580 \begin_layout Plain Layout
13586 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13589 \begin_layout Plain Layout
13608 \begin_layout Section
13609 Vertical Table Alignment
13613 \begin_layout Plain Layout
13622 \begin_layout Standard
13623 To align tables vertically in a text line the table must be inside a box.
13624 The box can then be vertically aligned as described in section
13625 \begin_inset space ~
13629 \begin_inset CommandInset ref
13631 reference "sec:Box-Dialog"
13638 \begin_layout Standard
13639 In the following example the tables are inside a minipage
13643 \begin_layout Plain Layout
13644 Minipages are described in section
13645 \begin_inset space ~
13649 \begin_inset CommandInset ref
13651 reference "sec:Minipages"
13660 box that has a width of 15
13661 \begin_inset space \thinspace{}
13667 \begin_layout Itemize
13669 \begin_inset Box Frameless
13678 height_special "totalheight"
13681 \begin_layout Plain Layout
13682 \begin_inset Tabular
13683 <lyxtabular version="3" rows="3" columns="3">
13685 <column alignment="center" valignment="top" width="0">
13686 <column alignment="center" valignment="top" width="0">
13687 <column alignment="center" valignment="top" width="0">
13689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13692 \begin_layout Plain Layout
13698 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13701 \begin_layout Plain Layout
13707 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13710 \begin_layout Plain Layout
13718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13721 \begin_layout Plain Layout
13727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13730 \begin_layout Plain Layout
13736 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13739 \begin_layout Plain Layout
13747 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13750 \begin_layout Plain Layout
13756 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13759 \begin_layout Plain Layout
13765 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13768 \begin_layout Plain Layout
13788 \begin_layout Plain Layout
13800 \begin_inset Box Frameless
13809 height_special "totalheight"
13812 \begin_layout Plain Layout
13813 \begin_inset Tabular
13814 <lyxtabular version="3" rows="3" columns="3">
13816 <column alignment="center" valignment="top" width="0">
13817 <column alignment="center" valignment="top" width="0">
13818 <column alignment="center" valignment="top" width="0">
13820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13823 \begin_layout Plain Layout
13829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13832 \begin_layout Plain Layout
13838 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13841 \begin_layout Plain Layout
13849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13852 \begin_layout Plain Layout
13858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13861 \begin_layout Plain Layout
13867 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13870 \begin_layout Plain Layout
13878 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13881 \begin_layout Plain Layout
13887 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13890 \begin_layout Plain Layout
13896 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13899 \begin_layout Plain Layout
13919 \begin_layout Plain Layout
13929 \begin_layout Itemize
13931 \begin_inset Box Frameless
13940 height_special "totalheight"
13943 \begin_layout Plain Layout
13944 \begin_inset Tabular
13945 <lyxtabular version="3" rows="3" columns="3">
13947 <column alignment="center" valignment="top" width="0">
13948 <column alignment="center" valignment="top" width="0">
13949 <column alignment="center" valignment="top" width="0">
13951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13954 \begin_layout Plain Layout
13960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13963 \begin_layout Plain Layout
13969 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13972 \begin_layout Plain Layout
13980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13983 \begin_layout Plain Layout
13989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13992 \begin_layout Plain Layout
13998 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14001 \begin_layout Plain Layout
14009 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14012 \begin_layout Plain Layout
14018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14021 \begin_layout Plain Layout
14027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14030 \begin_layout Plain Layout
14049 \begin_layout Itemize
14051 \begin_inset Box Frameless
14060 height_special "totalheight"
14063 \begin_layout Plain Layout
14064 \begin_inset Tabular
14065 <lyxtabular version="3" rows="3" columns="3">
14067 <column alignment="center" valignment="top" width="0">
14068 <column alignment="center" valignment="top" width="0">
14069 <column alignment="center" valignment="top" width="0">
14071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14074 \begin_layout Plain Layout
14080 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14083 \begin_layout Plain Layout
14089 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14092 \begin_layout Plain Layout
14100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14103 \begin_layout Plain Layout
14109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14112 \begin_layout Plain Layout
14118 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14121 \begin_layout Plain Layout
14129 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14132 \begin_layout Plain Layout
14138 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14141 \begin_layout Plain Layout
14147 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14150 \begin_layout Plain Layout
14170 \begin_layout Plain Layout
14182 \begin_inset Box Frameless
14191 height_special "totalheight"
14194 \begin_layout Plain Layout
14195 \begin_inset Tabular
14196 <lyxtabular version="3" rows="3" columns="3">
14198 <column alignment="center" valignment="top" width="0">
14199 <column alignment="center" valignment="top" width="0">
14200 <column alignment="center" valignment="top" width="0">
14202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14205 \begin_layout Plain Layout
14211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14214 \begin_layout Plain Layout
14220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14223 \begin_layout Plain Layout
14231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14234 \begin_layout Plain Layout
14240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14243 \begin_layout Plain Layout
14249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14252 \begin_layout Plain Layout
14260 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14263 \begin_layout Plain Layout
14269 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14272 \begin_layout Plain Layout
14278 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14281 \begin_layout Plain Layout
14301 \begin_layout Plain Layout
14311 \begin_layout Standard
14312 As you can see, the content of the first and last table row is not correctly
14313 aligned with the text line where the table is in.
14314 To get this alignment, the minipage box must be set into a raisebox
14318 \begin_layout Plain Layout
14319 Raiseboxes are described in section
14320 \begin_inset space ~
14324 \begin_inset CommandInset ref
14326 reference "sub:Vertical-Alignment"
14336 In the example above the second table in the first item is aligned using
14337 the TeX-Code-command
14340 \begin_layout Standard
14350 \begin_layout Standard
14352 Behind the box the closing brace
14356 is inserted as TeX-Code.
14357 For the second table in the last item the command
14360 \begin_layout Standard
14370 \begin_layout Standard
14374 \begin_layout Standard
14375 \begin_inset Note Greyedout
14378 \begin_layout Plain Layout
14383 The alignment of the table row content to the surrounding text line is
14385 The needed factor of the
14391 command for this alignment depends on the document font, the font size,
14392 and the table line thickness.
14400 \begin_layout Section
14402 \begin_inset CommandInset label
14404 name "sec:Colored-Tables"
14412 \begin_layout Plain Layout
14421 \begin_layout Subsection
14426 \begin_layout Plain Layout
14427 Table Color ! for Cells
14436 \begin_layout Plain Layout
14437 Color ! for Table Cells
14445 \begin_layout Standard
14446 \begin_inset Float table
14452 \begin_layout Plain Layout
14453 \begin_inset Caption
14455 \begin_layout Plain Layout
14456 \begin_inset CommandInset label
14458 name "tab:Table-colored-without"
14462 Table colored without using the package
14467 \begin_inset OptArg
14470 \begin_layout Plain Layout
14471 Table without colortbl
14484 \begin_layout Plain Layout
14486 \begin_inset Tabular
14487 <lyxtabular version="3" rows="3" columns="3">
14489 <column alignment="center" valignment="top" width="0">
14490 <column alignment="center" valignment="top" width="0">
14491 <column alignment="center" valignment="top" width="0">
14493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14496 \begin_layout Plain Layout
14504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14507 \begin_layout Plain Layout
14515 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14518 \begin_layout Plain Layout
14528 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14531 \begin_layout Plain Layout
14539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14542 \begin_layout Plain Layout
14550 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14553 \begin_layout Plain Layout
14563 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14566 \begin_layout Plain Layout
14574 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14577 \begin_layout Plain Layout
14585 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14588 \begin_layout Plain Layout
14609 \begin_layout Standard
14610 If you only need colored text, mark the cells and choose a color in the
14613 Edit\SpecialChar \menuseparator
14615 \begin_inset space ~
14621 This was used to create Table
14622 \begin_inset space ~
14626 \begin_inset CommandInset ref
14628 reference "tab:Table-colored-without"
14633 In any other case you have to use the LaTeX-package
14641 \begin_layout Plain Layout
14642 LaTeX-packages ! colortbl
14650 \begin_layout Standard
14654 \begin_layout Plain Layout
14664 \begin_inset Note Note
14667 \begin_layout Plain Layout
14668 The following section part will only be displayed when the LaTeX-package
14681 \begin_layout Standard
14682 To create colored tables,
14686 must be loaded in the preamble with the line
14689 \begin_layout Standard
14694 usepackage{colortbl}
14697 \begin_layout Standard
14698 The color of a column is adjusted with the command
14701 \begin_layout Standard
14706 columncolor{name of color}
14709 \begin_layout Standard
14715 More about the command
14719 is described in section
14720 \begin_inset space ~
14724 \begin_inset CommandInset ref
14726 reference "sub:Multicolumn-Calculations"
14733 \begin_layout Standard
14734 The following color names are predefined:
14737 \begin_layout Standard
14771 \begin_layout Standard
14772 \begin_inset VSpace medskip
14778 \begin_layout Standard
14779 You can also define your own color with the command
14782 \begin_layout Standard
14787 definecolor{color name}{color model}{color values}
14790 \begin_layout Standard
14791 The color model can be
14794 \begin_layout Labeling
14795 \labelwidthstring 00.00.0000
14796 cmyk: cyan, magenta, yellow, black
14799 \begin_layout Labeling
14800 \labelwidthstring 00.00.0000
14801 rgb: red, green blue
14804 \begin_layout Labeling
14805 \labelwidthstring 00.00.0000
14809 \begin_layout Standard
14810 and the color values are comma separated numbers between 0 and 1 describing
14811 the factor for the corresponding color of the color model.
14814 \begin_layout Standard
14816 \begin_inset space \thinspace{}
14820 \begin_inset space ~
14827 " in the preamble with
14830 \begin_layout Standard
14835 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14838 \begin_layout Standard
14846 \begin_layout Standard
14851 definecolor{lightgray}{gray}{0.8}
14854 \begin_layout Standard
14855 \begin_inset VSpace medskip
14861 \begin_layout Standard
14862 Lines are colored with the command
14865 \begin_layout Standard
14870 rowcolor{name of color}
14873 \begin_layout Standard
14874 and cells are colored with the command
14877 \begin_layout Standard
14882 cellcolor{name of color}
14885 \begin_layout Standard
14886 Both commands are inserted at the beginning of a cell as TeX-Code.
14889 \begin_layout Standard
14890 To color characters in the table, mark the cells and use the LyX menu
14892 Edit\SpecialChar \menuseparator
14894 \begin_inset space ~
14900 If a cell contains TeX-Code mark only the characters, otherwise the colored
14901 TeX-Code will cause LaTeX-errors.
14904 \begin_layout Standard
14905 \begin_inset Note Greyedout
14908 \begin_layout Plain Layout
14913 Not all DVI-viewers are able to display self-defined colors.
14921 \begin_layout Standard
14922 \begin_inset VSpace bigskip
14928 \begin_layout Standard
14930 \begin_inset space ~
14934 \begin_inset CommandInset ref
14936 reference "tab:Table-colored-using"
14940 do the following: The color of the first column should be
14948 \begin_layout Standard
14953 columncolor{darkgreen}
14958 \begin_layout Standard
14959 as LaTeX-argument for this column.
14960 The first row should be blue, therefore the TeX-Code command
14963 \begin_layout Standard
14971 \begin_layout Standard
14972 is inserted to the first cell of this row.
14973 Note that this overwrites the column color for the first cell.
14974 The last cell of the last row is colored magenta by inserting the TeX-Code
14978 \begin_layout Standard
14986 \begin_layout Standard
14987 The characters could now be colored using the menu
14989 Edit\SpecialChar \menuseparator
14991 \begin_inset space ~
14999 \begin_layout Standard
15000 \begin_inset Float table
15006 \begin_layout Plain Layout
15007 \begin_inset Caption
15009 \begin_layout Plain Layout
15010 \begin_inset CommandInset label
15012 name "tab:Table-colored-using"
15016 Table colored using the package
15021 \begin_inset OptArg
15024 \begin_layout Plain Layout
15025 Table with colortbl
15038 \begin_layout Plain Layout
15040 \begin_inset Tabular
15041 <lyxtabular version="3" rows="3" columns="3">
15043 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15044 <column alignment="center" valignment="top" width="0">
15045 <column alignment="center" valignment="top" width="0">
15047 <cell alignment="center" valignment="top" usebox="none">
15050 \begin_layout Plain Layout
15054 \begin_layout Plain Layout
15070 <cell alignment="center" valignment="top" usebox="none">
15073 \begin_layout Plain Layout
15081 <cell alignment="center" valignment="top" usebox="none">
15084 \begin_layout Plain Layout
15094 <cell alignment="center" valignment="top" usebox="none">
15097 \begin_layout Plain Layout
15105 <cell alignment="center" valignment="top" usebox="none">
15108 \begin_layout Plain Layout
15116 <cell alignment="center" valignment="top" usebox="none">
15119 \begin_layout Plain Layout
15129 <cell alignment="center" valignment="top" usebox="none">
15132 \begin_layout Plain Layout
15140 <cell alignment="center" valignment="top" usebox="none">
15143 \begin_layout Plain Layout
15151 <cell alignment="center" valignment="top" usebox="none">
15154 \begin_layout Plain Layout
15158 \begin_layout Plain Layout
15187 \begin_layout Standard
15191 \begin_layout Plain Layout
15201 \begin_inset Note Note
15204 \begin_layout Plain Layout
15205 The following will be displayed when the LaTeX-package
15217 \begin_layout Standard
15218 You need to install the package
15222 to see the content of this section in the output.
15225 \begin_layout Standard
15229 \begin_layout Plain Layout
15241 \begin_layout Subsection
15246 \begin_layout Plain Layout
15247 Table Color ! for Lines
15256 \begin_layout Plain Layout
15257 Color ! for Table Lines
15265 \begin_layout Standard
15266 As described in section
15267 \begin_inset space ~
15271 \begin_inset CommandInset ref
15273 reference "sub:Line-Thickness"
15277 , the line thickness for all lines in a table can be adjusted with the length
15286 \begin_inset space \thinspace{}
15289 pt for all tables of this section.
15293 \begin_layout Plain Layout
15299 arrayrulewidth}{1.5pt}
15307 \begin_layout Standard
15308 To color vertical lines for example with green, create the following column
15309 format in the document preamble, according to the description in section
15310 \begin_inset space ~
15314 \begin_inset CommandInset ref
15316 reference "sub:Customized-Format"
15323 \begin_layout Standard
15328 newcolumntype{W}{!{
15335 \begin_layout Standard
15337 \begin_inset space ~
15341 \begin_inset CommandInset ref
15343 reference "tab:Table-with-vertical-colored"
15351 was used for the last column and
15355 for the other columns.
15358 \begin_layout Standard
15359 If you want to have several colors, define more column formats.
15362 \begin_layout Standard
15363 \begin_inset Float table
15369 \begin_layout Plain Layout
15370 \begin_inset Caption
15372 \begin_layout Plain Layout
15373 \begin_inset CommandInset label
15375 name "tab:Table-with-vertical-colored"
15379 Table with colored vertical lines
15387 \begin_layout Plain Layout
15389 \begin_inset Tabular
15390 <lyxtabular version="3" rows="3" columns="3">
15392 <column alignment="center" valignment="top" width="0" special="Wc">
15393 <column alignment="center" valignment="top" width="0" special="Wc">
15394 <column alignment="center" valignment="top" width="0" special="WcW">
15396 <cell alignment="center" valignment="top" topline="true" usebox="none">
15399 \begin_layout Plain Layout
15405 <cell alignment="center" valignment="top" topline="true" usebox="none">
15408 \begin_layout Plain Layout
15414 <cell alignment="center" valignment="top" topline="true" usebox="none">
15417 \begin_layout Plain Layout
15425 <cell alignment="center" valignment="top" topline="true" usebox="none">
15428 \begin_layout Plain Layout
15434 <cell alignment="center" valignment="top" topline="true" usebox="none">
15437 \begin_layout Plain Layout
15443 <cell alignment="center" valignment="top" topline="true" usebox="none">
15446 \begin_layout Plain Layout
15454 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15457 \begin_layout Plain Layout
15463 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15466 \begin_layout Plain Layout
15472 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15475 \begin_layout Plain Layout
15494 \begin_layout Standard
15495 \begin_inset VSpace bigskip
15498 To color horizontal lines for example with red, like in Table
15499 \begin_inset space ~
15503 \begin_inset CommandInset ref
15505 reference "tab:Table-with-horizontal-colored"
15509 , insert these commands in TeX-Code before the table or table float:
15512 \begin_layout Standard
15522 \begin_inset Newline newline
15530 \begin_inset Newline newline
15537 \begin_layout Plain Layout
15548 arrayrulecolor{red}
15552 arrayrulecolor{black}}
15555 \begin_layout Standard
15559 \begin_layout Plain Layout
15570 \begin_layout Plain Layout
15579 \begin_layout Plain Layout
15583 arrayrulecolor{red}
15587 arrayrulecolor{black}}
15593 \begin_inset Float table
15599 \begin_layout Plain Layout
15600 \begin_inset Caption
15602 \begin_layout Plain Layout
15603 \begin_inset CommandInset label
15605 name "tab:Table-with-horizontal-colored"
15609 Table with colored horizontal lines
15617 \begin_layout Plain Layout
15619 \begin_inset Tabular
15620 <lyxtabular version="3" rows="3" columns="3">
15622 <column alignment="center" valignment="top" width="0">
15623 <column alignment="center" valignment="top" width="0">
15624 <column alignment="center" valignment="top" width="0">
15626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15629 \begin_layout Plain Layout
15635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15638 \begin_layout Plain Layout
15644 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15647 \begin_layout Plain Layout
15655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15658 \begin_layout Plain Layout
15664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15667 \begin_layout Plain Layout
15673 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15676 \begin_layout Plain Layout
15684 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15687 \begin_layout Plain Layout
15693 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15696 \begin_layout Plain Layout
15702 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15705 \begin_layout Plain Layout
15724 \begin_layout Standard
15725 To return to the default line color black, insert this command in TeX-Code
15726 behind the table or table float:
15729 \begin_layout Standard
15741 \begin_layout Standard
15743 \begin_inset space ~
15747 \begin_inset CommandInset ref
15749 reference "tab:Table-with-colored"
15753 is an example with colored vertical and horizontal lines.
15756 \begin_layout Standard
15757 \begin_inset Float table
15763 \begin_layout Plain Layout
15764 \begin_inset Caption
15766 \begin_layout Plain Layout
15767 \begin_inset CommandInset label
15769 name "tab:Table-with-colored"
15773 Table with colored lines
15781 \begin_layout Plain Layout
15783 \begin_inset Tabular
15784 <lyxtabular version="3" rows="3" columns="3">
15786 <column alignment="center" valignment="top" width="0" special="Wc">
15787 <column alignment="center" valignment="top" width="0" special="Wc">
15788 <column alignment="center" valignment="top" width="0" special="WcW">
15790 <cell alignment="center" valignment="top" topline="true" usebox="none">
15793 \begin_layout Plain Layout
15799 <cell alignment="center" valignment="top" topline="true" usebox="none">
15802 \begin_layout Plain Layout
15808 <cell alignment="center" valignment="top" topline="true" usebox="none">
15811 \begin_layout Plain Layout
15819 <cell alignment="center" valignment="top" topline="true" usebox="none">
15822 \begin_layout Plain Layout
15828 <cell alignment="center" valignment="top" topline="true" usebox="none">
15831 \begin_layout Plain Layout
15837 <cell alignment="center" valignment="top" topline="true" usebox="none">
15840 \begin_layout Plain Layout
15847 <row topspace="default">
15848 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15851 \begin_layout Plain Layout
15857 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15860 \begin_layout Plain Layout
15866 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15869 \begin_layout Plain Layout
15888 \begin_layout Standard
15892 \begin_layout Plain Layout
15908 \begin_layout Standard
15912 \begin_layout Plain Layout
15918 arrayrulewidth}{0.4pt}
15926 \begin_layout Section
15927 Table Customization
15931 \begin_layout Plain Layout
15932 Table Customization
15941 \begin_layout Plain Layout
15942 Table ! Customization
15950 \begin_layout Subsection
15952 \begin_inset CommandInset label
15954 name "sub:Row-Spacing"
15962 \begin_layout Plain Layout
15963 Table Customization ! Row Spacing
15971 \begin_layout Standard
15972 You can add vertical space to table rows in the
15976 tab of the table dialog.
15977 You find there three possibilities:
15980 \begin_layout Description
15982 \begin_inset space ~
15986 \begin_inset space ~
15989 row will add space above the characters of the table row.
15990 If the table is a formal table
15994 \begin_layout Plain Layout
15995 Formal tables are explained in section
15996 \begin_inset space ~
16000 \begin_inset CommandInset ref
16002 reference "sec:Formal-Tables"
16011 LyX will insert as default 0.5
16012 \begin_inset space \thinspace{}
16016 For normal tables the inserted space will unfortunately destroy the vertical
16017 table lines as in the following table:
16018 \begin_inset VSpace medskip
16022 \begin_inset Newline newline
16026 \begin_inset space \hspace*{}
16031 \begin_inset space \hfill{}
16035 \begin_inset Tabular
16036 <lyxtabular version="3" rows="3" columns="1">
16038 <column alignment="center" valignment="top" width="0">
16040 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16043 \begin_layout Plain Layout
16050 <row topspace="3mm">
16051 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16054 \begin_layout Plain Layout
16056 \begin_inset space \thinspace{}
16059 mm space top of row
16066 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16069 \begin_layout Plain Layout
16081 \begin_inset space \hfill{}
16085 \begin_inset space \hspace*{}
16090 \begin_inset VSpace medskip
16094 \begin_inset Newline newline
16097 So inserting space to the top of row for normal tables is only useful when
16098 you don't have vertical lines.
16101 \begin_layout Description
16103 \begin_inset space ~
16107 \begin_inset space ~
16110 row will add space below the characters of the table row.
16111 If the table is a formal table LyX will insert as default 0.5
16112 \begin_inset space \thinspace{}
16115 em space, for normal tables the default size is 2
16116 \begin_inset space \thinspace{}
16122 \begin_layout Description
16124 \begin_inset space ~
16127 rows adds space between the current and the following row.
16128 If the table is a formal table LyX will insert as default 0.5
16129 \begin_inset space \thinspace{}
16133 For normal tables the inserted space will unfortunately destroy the vertical
16134 table lines as in the following table:
16135 \begin_inset VSpace medskip
16139 \begin_inset Newline newline
16143 \begin_inset space \hspace*{}
16148 \begin_inset space \hfill{}
16152 \begin_inset Tabular
16153 <lyxtabular version="3" rows="3" columns="1">
16155 <column alignment="center" valignment="top" width="0">
16157 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16160 \begin_layout Plain Layout
16167 <row interlinespace="3mm">
16168 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16171 \begin_layout Plain Layout
16172 \begin_inset Formula $\downarrow$
16176 \begin_inset space \thinspace{}
16179 mm space between row
16180 \begin_inset Formula $\downarrow$
16190 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16193 \begin_layout Plain Layout
16194 \begin_inset Formula $\uparrow$
16198 \begin_inset space \thinspace{}
16201 mm space between row
16202 \begin_inset Formula $\uparrow$
16216 \begin_inset space \hfill{}
16220 \begin_inset space \hspace*{}
16225 \begin_inset VSpace medskip
16229 \begin_inset Newline newline
16232 So inserting space between rows for normal tables is only useful when you
16233 don't have vertical lines.
16236 \begin_layout Standard
16237 \begin_inset VSpace bigskip
16240 When you want to add extra height to all cells of all tables, you can do
16241 this with the following preamble lines:
16244 \begin_layout Standard
16249 @ifundefined{extrarowheight}
16250 \begin_inset Newline newline
16257 \begin_layout Plain Layout
16268 usepackage{array}}{}
16269 \begin_inset Newline newline
16276 extrarowheight}{height}
16279 \begin_layout Standard
16280 But this has the disadvantage that the cell texts are no longer exactly
16281 vertically centered.
16286 will be loaded automatically by LyX when you use self defined table formats.
16287 To avoid that it is loaded twice the command
16293 is used in the above command.)
16296 \begin_layout Subsection
16297 Special Cell Alignment
16301 \begin_layout Plain Layout
16302 Table Customization ! Special Cell Alignment
16310 \begin_layout Standard
16311 Sometimes it looks better when the cell entries of a column are aligned
16312 with a special character, e.
16313 \begin_inset space \thinspace{}
16317 \begin_inset space ~
16320 with the decimal separator as in Table
16321 \begin_inset space ~
16325 \begin_inset CommandInset ref
16327 reference "tab:Table-cells-of"
16334 \begin_layout Standard
16335 \begin_inset Float table
16341 \begin_layout Plain Layout
16342 \begin_inset Caption
16344 \begin_layout Plain Layout
16345 \begin_inset CommandInset label
16347 name "tab:Table-cells-of"
16351 Table cells of a column aligned with the decimal separator.
16359 \begin_layout Plain Layout
16361 \begin_inset Tabular
16362 <lyxtabular version="3" rows="4" columns="2">
16364 <column alignment="right" valignment="top" width="0">
16365 <column alignment="left" valignment="top" width="0" special="@{}l">
16367 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16370 \begin_layout Plain Layout
16376 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16379 \begin_layout Plain Layout
16387 <cell alignment="center" valignment="top" usebox="none">
16390 \begin_layout Plain Layout
16396 <cell alignment="center" valignment="top" usebox="none">
16399 \begin_layout Plain Layout
16407 <cell alignment="center" valignment="top" usebox="none">
16410 \begin_layout Plain Layout
16416 <cell alignment="center" valignment="top" usebox="none">
16419 \begin_layout Plain Layout
16427 <cell alignment="center" valignment="top" usebox="none">
16430 \begin_layout Plain Layout
16436 <cell alignment="center" valignment="top" usebox="none">
16439 \begin_layout Plain Layout
16458 \begin_layout Standard
16459 This table was created with a 4×2 table.
16460 The heading is a centered multicolumn.
16461 The first column is right-aligned and contains the digits before the decimal
16462 point and the decimal point.
16463 The second column is left aligned and contains the digits after the decimal
16465 To omit the space that is normally between two table columns, use the following
16466 LaTeX-argument for the second column:
16469 \begin_layout Standard
16475 \begin_layout Standard
16477 \begin_inset space ~
16481 \begin_inset CommandInset ref
16483 reference "tab:Several-table-cell"
16487 shows some example alignments.
16488 For the alignment with the relation sign, you must add the second smallest
16489 math-space at the beginning of the last column to get the correct space
16490 surrounding the relation sign.
16493 \begin_layout Standard
16494 \begin_inset Float table
16499 \begin_layout Plain Layout
16500 \begin_inset Caption
16502 \begin_layout Plain Layout
16503 \begin_inset CommandInset label
16505 name "tab:Several-table-cell"
16509 Several table cell alignments.
16517 \begin_layout Plain Layout
16519 \begin_inset Tabular
16520 <lyxtabular version="3" rows="4" columns="6">
16522 <column alignment="right" valignment="top" width="0">
16523 <column alignment="left" valignment="top" width="0" special="@{}l">
16524 <column alignment="right" valignment="top" width="0">
16525 <column alignment="left" valignment="top" width="0" special="@{}l">
16526 <column alignment="right" valignment="top" width="0">
16527 <column alignment="left" valignment="top" width="0" special="@{}l">
16529 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16532 \begin_layout Plain Layout
16538 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16541 \begin_layout Plain Layout
16547 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16550 \begin_layout Plain Layout
16556 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16559 \begin_layout Plain Layout
16565 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16568 \begin_layout Plain Layout
16574 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16577 \begin_layout Plain Layout
16585 <cell alignment="center" valignment="top" usebox="none">
16588 \begin_layout Plain Layout
16594 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16597 \begin_layout Plain Layout
16599 \begin_inset space \thinspace{}
16607 <cell alignment="center" valignment="top" usebox="none">
16610 \begin_layout Plain Layout
16611 \begin_inset Formula $10\cdot$
16619 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16622 \begin_layout Plain Layout
16623 \begin_inset Formula $10^{\mbox{-}17}$
16631 <cell alignment="center" valignment="top" usebox="none">
16634 \begin_layout Plain Layout
16635 \begin_inset Formula $\Gamma(t)\propto$
16643 <cell alignment="center" valignment="top" usebox="none">
16646 \begin_layout Plain Layout
16647 \begin_inset Formula $\:\Upsilon(t)$
16657 <cell alignment="center" valignment="top" usebox="none">
16660 \begin_layout Plain Layout
16666 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16669 \begin_layout Plain Layout
16671 \begin_inset space \thinspace{}
16679 <cell alignment="center" valignment="top" usebox="none">
16682 \begin_layout Plain Layout
16683 \begin_inset Formula $5.78\cdot$
16691 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16694 \begin_layout Plain Layout
16695 \begin_inset Formula $10^{7}$
16703 <cell alignment="center" valignment="top" usebox="none">
16706 \begin_layout Plain Layout
16707 \begin_inset Formula $A\ne$
16715 <cell alignment="center" valignment="top" usebox="none">
16718 \begin_layout Plain Layout
16719 \begin_inset Formula $\: B_{\mathrm{red}}$
16729 <cell alignment="center" valignment="top" usebox="none">
16732 \begin_layout Plain Layout
16738 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16741 \begin_layout Plain Layout
16743 \begin_inset space \thinspace{}
16751 <cell alignment="center" valignment="top" usebox="none">
16754 \begin_layout Plain Layout
16756 \begin_inset Formula $33.5\cdot$
16764 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16767 \begin_layout Plain Layout
16768 \begin_inset Formula $10^{4}$
16776 <cell alignment="center" valignment="top" usebox="none">
16779 \begin_layout Plain Layout
16780 \begin_inset Formula $\sin(\alpha)\ge$
16788 <cell alignment="center" valignment="top" usebox="none">
16791 \begin_layout Plain Layout
16792 \begin_inset Formula $\:\sin(\beta)$
16813 \begin_layout Standard
16814 \begin_inset VSpace bigskip
16817 There is also the LaTeX-package
16825 \begin_layout Plain Layout
16826 LaTeX-packages ! dcolumn
16831 that provides table cell alignments.
16832 But this unfortunately treats the cell entries as math and doesn't allow
16833 formulas in table cells: The first column of Table
16834 \begin_inset space ~
16838 \begin_inset CommandInset ref
16840 reference "tab:Several-table-cell"
16848 like the first column in Table
16849 \begin_inset space ~
16853 \begin_inset CommandInset ref
16855 reference "tab:Alignments-when"
16859 and only with some tricks like the expected.
16860 The alignment of the second and third column of Table
16861 \begin_inset space ~
16865 \begin_inset CommandInset ref
16867 reference "tab:Several-table-cell"
16871 is not possible with
16878 \begin_layout Standard
16879 \begin_inset Float table
16885 \begin_layout Plain Layout
16886 \begin_inset Caption
16888 \begin_layout Plain Layout
16889 \begin_inset CommandInset label
16891 name "tab:Alignments-when"
16895 Alignments when LaTeX-package dcolumn is used.
16896 For all column alignments tricks have to be used to get the output.
16904 \begin_layout Plain Layout
16906 \begin_inset Tabular
16907 <lyxtabular version="3" rows="4" columns="3">
16909 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
16910 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
16911 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
16913 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16916 \begin_layout Plain Layout
16922 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16925 \begin_layout Plain Layout
16931 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16934 \begin_layout Plain Layout
16942 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16945 \begin_layout Plain Layout
16947 \begin_inset space \thinspace{}
16955 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16958 \begin_layout Plain Layout
16960 \begin_inset space \thinspace{}
16964 \begin_inset Formula $\mbox{bottles}$
16972 <cell alignment="center" valignment="top" usebox="none">
16975 \begin_layout Plain Layout
16980 \begin_layout Plain Layout
16990 \begin_inset Formula $\mbox{bottles}$
17000 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17003 \begin_layout Plain Layout
17005 \begin_inset space \thinspace{}
17013 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17016 \begin_layout Plain Layout
17018 \begin_inset space \thinspace{}
17022 \begin_inset Formula $\mbox{Pixels}$
17030 <cell alignment="center" valignment="top" usebox="none">
17033 \begin_layout Plain Layout
17038 \begin_layout Plain Layout
17048 \begin_inset Formula $\mbox{Pixels}$
17058 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17061 \begin_layout Plain Layout
17063 \begin_inset space \thinspace{}
17071 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17074 \begin_layout Plain Layout
17076 \begin_inset space \thinspace{}
17080 \begin_inset Formula $\mbox{cm}$
17088 <cell alignment="center" valignment="top" usebox="none">
17091 \begin_layout Plain Layout
17096 \begin_layout Plain Layout
17106 \begin_inset Formula $\mbox{cm}$
17127 \begin_layout Subsection
17128 Customized Cell/Column Format
17129 \begin_inset CommandInset label
17131 name "sub:Customized-Format"
17139 \begin_layout Plain Layout
17140 Table Customization ! Cell/Column Format
17148 \begin_layout Standard
17149 Calculating the needed width for spanned columns like in section
17150 \begin_inset space ~
17154 \begin_inset CommandInset ref
17156 reference "sub:Multicolumn-Calculations"
17160 is very annoying if you have several tables with multicolumn cells.
17161 To make life easier, you can define a cell/column format in the preamble,
17162 so that it can be used in all tables of the document.
17163 The format is defined with the command
17166 \begin_layout Standard
17171 newcolumntype{name of format}[number of arguments]{commands}
17174 \begin_layout Standard
17175 The format name may only consist of one letter.
17200 are predefined and cannot be used.
17201 But all letters are allowed as capitals.
17204 \begin_layout Standard
17205 \begin_inset VSpace medskip
17211 \begin_layout Standard
17212 For vertically and horizontally centered multicolumn cells with a fixed
17213 width you can define the cell format
17216 \begin_layout Standard
17221 newcolumntype{M}[1]{>{
17228 \begin_layout Standard
17235 avoids the problem of hyphenating the first word, as described in section
17236 \begin_inset space ~
17240 \begin_inset CommandInset ref
17242 reference "sub:Multiple-Lines-in"
17247 Now you can simply enter
17250 \begin_layout Standard
17256 \begin_layout Standard
17257 as LaTeX-argument in the table dialog to create a multicolumn.
17260 \begin_layout Standard
17261 \begin_inset VSpace bigskip
17267 \begin_layout Standard
17268 For cells spanned by a multicolumn cell, you can define the format
17271 \begin_layout Standard
17276 newcolumntype{S}[2]{>{
17281 \begin_inset Newline newline
17288 \begin_layout Plain Layout
17303 \begin_layout Plain Layout
17314 arrayrulewidth)*(1-#2))/#2}}
17317 \begin_layout Standard
17318 This format uses equation
17319 \begin_inset CommandInset ref
17325 to calculate the needed width so that each spanned cell has the same width.
17328 \begin_layout Standard
17332 \begin_layout Standard
17335 S{width of multicolumn cell}{number of spanned columns}
17338 \begin_layout Standard
17339 as LaTeX-argument of the column.
17342 \begin_layout Standard
17343 \begin_inset VSpace bigskip
17349 \begin_layout Standard
17350 For colored columns, you can define
17353 \begin_layout Standard
17358 newcolumntype{K}[1]{>{
17365 \begin_layout Standard
17367 \begin_inset Quotes eld
17371 \begin_inset Quotes erd
17374 at the end creates a column with a flexible width whose text is horizontally
17379 \begin_layout Standard
17385 \begin_layout Standard
17389 \begin_layout Standard
17390 \begin_inset VSpace bigskip
17396 \begin_layout Standard
17398 \begin_inset space ~
17402 \begin_inset CommandInset ref
17404 reference "tab:Table-using-user-defined"
17408 use the LaTeX-arguments
17411 \begin_layout Standard
17417 \begin_layout Standard
17418 for the first column and the multicolumn,
17421 \begin_layout Standard
17427 \begin_layout Standard
17428 for the the last column, and
17431 \begin_layout Standard
17437 \begin_layout Standard
17438 for the cells in the second column.
17441 \begin_layout Standard
17442 \begin_inset Float table
17448 \begin_layout Plain Layout
17449 \begin_inset Caption
17451 \begin_layout Plain Layout
17452 \begin_inset CommandInset label
17454 name "tab:Table-using-user-defined"
17458 Table using user-defined table formats
17466 \begin_layout Plain Layout
17468 \begin_inset Tabular
17469 <lyxtabular version="3" rows="3" columns="4">
17471 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17472 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17473 <column alignment="center" valignment="middle" width="0">
17474 <column alignment="center" valignment="middle" width="0" special="K{red}">
17476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17479 \begin_layout Plain Layout
17480 verylongtablecellword
17485 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17488 \begin_layout Plain Layout
17489 multiple lines multicolumn
17494 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17497 \begin_layout Plain Layout
17503 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17506 \begin_layout Plain Layout
17514 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17517 \begin_layout Plain Layout
17523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17526 \begin_layout Plain Layout
17532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17535 \begin_layout Plain Layout
17541 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17544 \begin_layout Plain Layout
17552 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17555 \begin_layout Plain Layout
17561 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17564 \begin_layout Plain Layout
17570 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17573 \begin_layout Plain Layout
17579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17582 \begin_layout Plain Layout
17601 \begin_layout Subsection
17603 \begin_inset CommandInset label
17605 name "sub:Line-Thickness"
17613 \begin_layout Plain Layout
17614 Table Customization ! Line Thickness
17622 \begin_layout Standard
17623 The line thickness for all lines in a table can be adjusted with the length
17631 To set for example a line thickness of 1.5
17632 \begin_inset space \thinspace{}
17636 \begin_inset space ~
17640 \begin_inset CommandInset ref
17642 reference "tab:Table-with-1.5"
17646 , insert the command
17649 \begin_layout Standard
17656 arrayrulewidth}{1.5pt}
17659 \begin_layout Standard
17660 in TeX-Code before the table or table float.
17661 The changed thickness is valid for all following tables.
17662 To use the default value again, set
17669 \begin_inset space \thinspace{}
17672 pt in TeX-Code behind the table or table float.
17675 \begin_layout Standard
17679 \begin_layout Plain Layout
17685 arrayrulewidth}{1.5pt}
17691 \begin_inset Float table
17696 \begin_layout Plain Layout
17697 \begin_inset Caption
17699 \begin_layout Plain Layout
17700 \begin_inset CommandInset label
17702 name "tab:Table-with-1.5"
17707 \begin_inset space \thinspace{}
17718 \begin_layout Plain Layout
17720 \begin_inset Tabular
17721 <lyxtabular version="3" rows="3" columns="3">
17723 <column alignment="center" valignment="top" width="0">
17724 <column alignment="center" valignment="top" width="0">
17725 <column alignment="center" valignment="top" width="0">
17727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17730 \begin_layout Plain Layout
17736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17739 \begin_layout Plain Layout
17745 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17748 \begin_layout Plain Layout
17756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17759 \begin_layout Plain Layout
17765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17768 \begin_layout Plain Layout
17774 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17777 \begin_layout Plain Layout
17785 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17788 \begin_layout Plain Layout
17794 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17797 \begin_layout Plain Layout
17803 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17806 \begin_layout Plain Layout
17826 \begin_layout Plain Layout
17832 arrayrulewidth}{0.4pt}
17840 \begin_layout Standard
17841 \begin_inset VSpace bigskip
17844 To set the line thickness to 1.5
17845 \begin_inset space \thinspace{}
17848 pt only for horizontal lines, like in Table
17849 \begin_inset space ~
17853 \begin_inset CommandInset ref
17855 reference "tab:Table-with-horizontal"
17859 , insert these commands in TeX-Code before the table or table float:
17862 \begin_layout Standard
17872 \begin_inset Newline newline
17880 \begin_inset Newline newline
17889 arrayrulewidth 1.5pt}
17890 \begin_inset Newline newline
17901 arrayrulewidth 0.4pt}}
17904 \begin_layout Standard
17905 To return to the default line thickness, insert this command in TeX-Code
17906 behind the table or table float:
17909 \begin_layout Standard
17921 \begin_layout Standard
17925 \begin_layout Plain Layout
17936 \begin_layout Plain Layout
17945 \begin_layout Plain Layout
17953 arrayrulewidth 1.5pt}
17956 \begin_layout Plain Layout
17966 arrayrulewidth 0.4pt}}
17972 \begin_inset Float table
17977 \begin_layout Plain Layout
17978 \begin_inset Caption
17980 \begin_layout Plain Layout
17981 \begin_inset CommandInset label
17983 name "tab:Table-with-horizontal"
17988 \begin_inset space \thinspace{}
17991 pt thick horizontal lines
17999 \begin_layout Plain Layout
18001 \begin_inset Tabular
18002 <lyxtabular version="3" rows="3" columns="3">
18004 <column alignment="center" valignment="top" width="0">
18005 <column alignment="center" valignment="top" width="0">
18006 <column alignment="center" valignment="top" width="0">
18008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18011 \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" rightline="true" usebox="none">
18029 \begin_layout Plain Layout
18037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18040 \begin_layout Plain Layout
18046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18049 \begin_layout Plain Layout
18055 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18058 \begin_layout Plain Layout
18066 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18069 \begin_layout Plain Layout
18075 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18078 \begin_layout Plain Layout
18084 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18087 \begin_layout Plain Layout
18107 \begin_layout Plain Layout
18123 \begin_layout Standard
18124 \begin_inset VSpace bigskip
18127 To set the line thickness to 1.5
18128 \begin_inset space \thinspace{}
18131 pt only for vertical lines, create the following column format in the document
18132 preamble, according to the description in section
18133 \begin_inset space ~
18137 \begin_inset CommandInset ref
18139 reference "sub:Customized-Format"
18146 \begin_layout Standard
18151 newcolumntype{V}{!{
18153 vrule width 1.5pt}}
18156 \begin_layout Standard
18158 \begin_inset space ~
18162 \begin_inset CommandInset ref
18164 reference "tab:Table-with-vertical"
18171 \begin_layout Standard
18177 \begin_layout Standard
18178 was used for the last column and
18181 \begin_layout Standard
18187 \begin_layout Standard
18188 for the other columns.
18191 \begin_layout Standard
18192 \begin_inset Float table
18197 \begin_layout Plain Layout
18198 \begin_inset Caption
18200 \begin_layout Plain Layout
18201 \begin_inset CommandInset label
18203 name "tab:Table-with-vertical"
18208 \begin_inset space \thinspace{}
18211 pt thick vertical lines
18219 \begin_layout Plain Layout
18221 \begin_inset Tabular
18222 <lyxtabular version="3" rows="3" columns="3">
18224 <column alignment="center" valignment="top" width="0" special="Vc">
18225 <column alignment="center" valignment="top" width="0" special="Vc">
18226 <column alignment="center" valignment="top" width="0" special="VcV">
18228 <cell alignment="center" valignment="top" topline="true" usebox="none">
18231 \begin_layout Plain Layout
18237 <cell alignment="center" valignment="top" topline="true" usebox="none">
18240 \begin_layout Plain Layout
18246 <cell alignment="center" valignment="top" topline="true" usebox="none">
18249 \begin_layout Plain Layout
18257 <cell alignment="center" valignment="top" topline="true" usebox="none">
18260 \begin_layout Plain Layout
18266 <cell alignment="center" valignment="top" topline="true" usebox="none">
18269 \begin_layout Plain Layout
18275 <cell alignment="center" valignment="top" topline="true" usebox="none">
18278 \begin_layout Plain Layout
18286 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18289 \begin_layout Plain Layout
18295 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18298 \begin_layout Plain Layout
18304 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18307 \begin_layout Plain Layout
18326 \begin_layout Subsection
18331 \begin_layout Plain Layout
18332 Table Customization ! Dashed Lines
18340 \begin_layout Standard
18344 \begin_layout Plain Layout
18354 \begin_inset Note Note
18357 \begin_layout Plain Layout
18358 The following section will only be displayed when the LaTeX-package
18370 \begin_layout Standard
18371 \begin_inset Float table
18377 \begin_layout Plain Layout
18378 \begin_inset Caption
18380 \begin_layout Plain Layout
18381 \begin_inset CommandInset label
18383 name "tab:Table-with-dashed"
18387 Table with dashed lines
18395 \begin_layout Plain Layout
18397 \begin_inset Tabular
18398 <lyxtabular version="3" rows="5" columns="5">
18400 <column alignment="center" valignment="top" width="0">
18401 <column alignment="center" valignment="top" width="0">
18402 <column alignment="center" valignment="top" width="0" special=":c">
18403 <column alignment="center" valignment="top" width="0">
18404 <column alignment="center" valignment="top" width="0">
18406 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18409 \begin_layout Plain Layout
18415 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18418 \begin_layout Plain Layout
18424 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18427 \begin_layout Plain Layout
18433 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18436 \begin_layout Plain Layout
18442 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18445 \begin_layout Plain Layout
18453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18456 \begin_layout Plain Layout
18462 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18465 \begin_layout Plain Layout
18471 <cell alignment="center" valignment="top" topline="true" usebox="none">
18474 \begin_layout Plain Layout
18480 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18483 \begin_layout Plain Layout
18489 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18492 \begin_layout Plain Layout
18500 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18503 \begin_layout Plain Layout
18507 \begin_layout Plain Layout
18521 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18524 \begin_layout Plain Layout
18530 <cell alignment="center" valignment="top" usebox="none">
18533 \begin_layout Plain Layout
18539 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18542 \begin_layout Plain Layout
18548 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18551 \begin_layout Plain Layout
18559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18562 \begin_layout Plain Layout
18566 \begin_layout Plain Layout
18580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18583 \begin_layout Plain Layout
18589 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
18592 \begin_layout Plain Layout
18598 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
18601 \begin_layout Plain Layout
18607 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18610 \begin_layout Plain Layout
18618 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18621 \begin_layout Plain Layout
18627 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18630 \begin_layout Plain Layout
18636 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18639 \begin_layout Plain Layout
18645 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18648 \begin_layout Plain Layout
18654 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18657 \begin_layout Plain Layout
18676 \begin_layout Standard
18677 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
18678 As prerequisite the LaTeX-package
18686 \begin_layout Plain Layout
18687 LaTeX-packages ! arydshln
18692 must be loaded in the document preamble with the command
18695 \begin_layout Standard
18700 usepackage{arydshln}
18703 \begin_layout Standard
18704 To make a vertical line dashed, enter the colon
18705 \begin_inset Quotes eld
18709 \begin_inset Quotes erd
18712 together with the character for the horizontal alignment as LaTeX-argument
18713 in the table cell dialog.
18716 \begin_layout Standard
18717 For a horizontal dashed line add the command
18720 \begin_layout Standard
18728 \begin_layout Standard
18729 in TeX-Code as first element of the first cell in the table row.
18732 \begin_layout Standard
18733 For dashed multicolumn lines use the command
18736 \begin_layout Standard
18741 cdashline{line number
18746 \begin_layout Standard
18747 in TeX-Code as first element of the first cell in the table row.
18748 If you have for example a multicolumn spanning over columns 2 to 4 and
18749 you want to have a dashed line above, add the command
18752 \begin_layout Standard
18760 \begin_layout Standard
18761 as first element of the first cell in the row of the multicolumn.
18764 \begin_layout Standard
18765 \begin_inset VSpace bigskip
18771 \begin_layout Standard
18773 \begin_inset space ~
18777 \begin_inset CommandInset ref
18779 reference "tab:Table-with-dashed"
18784 \begin_inset Quotes eld
18792 \begin_inset Quotes erd
18795 as LaTeX-argument of the third column.
18796 The TeX-Code command
18802 was inserted to the first cell of the third row and the the TeX-Code command
18803 \begin_inset Newline newline
18812 was inserted to the first cell of the fourth row.
18815 \begin_layout Standard
18816 \begin_inset Note Greyedout
18819 \begin_layout Plain Layout
18824 The used LaTeX-package
18828 is apparently not compatible with the LaTeX-package
18836 \begin_layout Plain Layout
18837 LaTeX-packages ! colortbl
18842 that is used for colored tables in section
18843 \begin_inset space ~
18847 \begin_inset CommandInset ref
18849 reference "sec:Colored-Tables"
18854 That means colored tables cannot have dashed lines.
18862 \begin_layout Standard
18866 \begin_layout Plain Layout
18876 \begin_inset Note Note
18879 \begin_layout Plain Layout
18880 The following will be displayed when the LaTeX-package
18892 \begin_layout Standard
18893 You need to install the package
18897 to see the content of this section in the output.
18900 \begin_layout Standard
18904 \begin_layout Plain Layout
18916 \begin_layout Chapter
18921 \begin_layout Plain Layout
18928 \begin_inset CommandInset label
18937 \begin_layout Section
18939 \begin_inset CommandInset label
18941 name "sec:FloatIntroduction"
18949 \begin_layout Plain Layout
18950 Floats ! Introduction
18958 \begin_layout Standard
18959 A float is a block of text associated with some sort of label, which doesn't
18960 have a fixed location.
18962 \begin_inset Quotes eld
18966 \begin_inset Quotes erd
18969 forward or backward a page or two, to wherever it fits best.
18977 \begin_inset space ~
18982 are also floats, because they can float to the next page when there are
18983 too many notes at the page.
18986 \begin_layout Standard
18987 Floats allow a high quality layout.
18988 Images and tables can evenly be spread to the pages to avoid white space
18989 and pages without text.
18990 As the floating often destroys the context between the text and the image/table
18991 , every float can be referenced in the text.
18992 Floats are therefore numbered.
18993 Referencing is described in section
18994 \begin_inset space ~
18998 \begin_inset CommandInset ref
19000 reference "sec:Referencing-Floats"
19007 \begin_layout Standard
19008 To insert a float, use the menu
19010 Insert\SpecialChar \menuseparator
19018 inset, a box with a label.
19019 The label will automatically be translated to the document language in
19021 Behind the label you can insert the caption text.
19022 The image or table is inserted above or below the caption in a separate
19023 paragraph within the float.
19024 More about the caption placement is described in section
19025 \begin_inset space ~
19029 \begin_inset CommandInset ref
19031 reference "sec:Caption-Placement"
19036 To keep your LyX-document readable, you can open and close the float box
19037 by left-clicking on the box label.
19038 A closed float box looks like this:
19039 \begin_inset Graphics
19040 filename clipart/floatQt4.png
19042 scaleBeforeRotation
19046 -- a gray button with a red label.
19049 \begin_layout Standard
19050 It is recommended to insert floats as a separate paragraph to avoid possible
19051 LaTeX-errors that can occur when the surrounding text is specially formatted.
19054 \begin_layout Standard
19055 Existing figures or tables can be put into a float by marking them and then
19056 pressing the corresponding toolbar button for a new float.
19059 \begin_layout Section
19063 \begin_layout Standard
19064 Besides figure and table floats that are described in section
19065 \begin_inset space ~
19069 \begin_inset CommandInset ref
19071 reference "sec:Figure-Floats"
19076 \begin_inset CommandInset ref
19078 reference "sec:Table-Floats"
19082 , respectively, LyX offers the float types
19089 \begin_inset space ~
19093 \begin_inset space ~
19101 \begin_layout Subsection
19106 \begin_layout Plain Layout
19107 Floats ! Algorithms
19113 \begin_inset CommandInset label
19115 name "sub:Algorithm-Floats"
19122 \begin_layout Standard
19123 \begin_inset Float algorithm
19129 \begin_layout Plain Layout
19130 \begin_inset Caption
19132 \begin_layout Plain Layout
19133 \begin_inset CommandInset label
19135 name "alg:Example-Algorithm-float"
19139 Example Algorithm float
19147 \begin_layout LyX-Code
19149 \begin_inset Newline newline
19152 Sum:= Sum + A(I); /*comment*/
19153 \begin_inset Newline newline
19157 \begin_inset VSpace -4mm
19168 \begin_layout Standard
19169 This float type is inserted with the menu
19171 Insert\SpecialChar \menuseparator
19172 Floats\SpecialChar \menuseparator
19176 It is used for program codes and descriptions of algorithms.
19177 A possible environment for algorithms is the
19181 , described in LyX's
19187 \begin_inset space ~
19191 \begin_inset CommandInset ref
19193 reference "alg:Example-Algorithm-float"
19197 is an example of an algorithm float where -4
19198 \begin_inset space \thinspace{}
19201 mm vertical space was added at the end of the float to have the bottom rule
19202 exactly below the last text line.
19205 \begin_layout Standard
19206 The float label is not automatically translated into the document language.
19207 If your document is not in English, you have to do this manually by adding
19208 the following line to the document preamble
19213 \begin_layout Standard
19218 floatname{algorithm}{your
19219 \begin_inset space ~
19225 \begin_layout Standard
19229 \begin_inset space ~
19235 \begin_inset Quotes eld
19243 \begin_inset Quotes erd
19249 \begin_layout Standard
19250 To insert the list of algorithms you can in this case not use the menu
19252 Insert\SpecialChar \menuseparator
19254 \begin_inset space \thinspace{}
19258 \begin_inset space \thinspace{}
19261 TOC\SpecialChar \menuseparator
19264 when your document is an English one.
19265 For non-English documents, use this command in TeX-Code instead:
19268 \begin_layout Standard
19273 listof{algorithm}{your
19274 \begin_inset space ~
19280 \begin_layout Standard
19284 \begin_inset space ~
19290 \begin_inset Quotes eld
19298 \begin_inset Quotes erd
19304 \begin_layout Standard
19305 Algorithm floats are not by default numbered in the scheme
19306 \begin_inset Quotes eld
19310 \begin_inset Quotes erd
19313 like it is the case for table and figure floats in many document-classes.
19314 To number algorithm floats in the same scheme, add this command to your
19318 \begin_layout Standard
19323 numberwithin{algorithm}{chapter}
19326 \begin_layout Standard
19327 To be able to use the command
19336 \begin_inset space ~
19341 in the document settings the option
19344 \begin_inset space ~
19348 \begin_inset space ~
19352 \begin_inset space ~
19360 \begin_layout Subsection
19365 \begin_layout Plain Layout
19366 Floats ! Text Wrap Floats
19372 \begin_inset CommandInset label
19374 name "sub:floatflt-wrap-float"
19381 \begin_layout Standard
19382 \begin_inset Wrap figure
19389 \begin_layout Plain Layout
19390 \begin_inset Graphics
19391 filename clipart/mobius.eps
19393 scaleBeforeRotation
19394 rotateOrigin center
19401 \begin_layout Plain Layout
19402 \begin_inset Caption
19404 \begin_layout Plain Layout
19405 \begin_inset CommandInset label
19407 name "fig:This-is-a"
19411 This is a wrapped figure, and this is the brilliant caption that describes
19413 \begin_inset VSpace medskip
19426 This float type is used if you want to
19427 \begin_inset Quotes eld
19431 \begin_inset Quotes erd
19434 text around a figure so that it only occupies some fraction of the column
19436 It can be inserted using the menu
19438 Insert\SpecialChar \menuseparator
19439 Floats\SpecialChar \menuseparator
19441 \begin_inset space ~
19445 \begin_inset space ~
19450 if the LaTeX-package
19458 \begin_layout Plain Layout
19459 LaTeX-packages ! wrapfig
19463 \begin_layout Plain Layout
19471 \begin_layout Plain Layout
19482 \begin_layout Plain Layout
19498 \begin_layout Plain Layout
19509 \begin_layout Plain Layout
19525 \begin_layout Plain Layout
19526 Installing a LaTeX-package is explained it in the
19529 \begin_inset space ~
19539 The width and placement of the float is adjusted by right-clicking on the
19542 \begin_inset space ~
19546 \begin_inset CommandInset ref
19548 reference "fig:This-is-a"
19552 is an example text wrap float with a width of 40
19553 \begin_inset space \thinspace{}
19560 \begin_layout Plain Layout
19561 Available units are explained in appendix
19562 \begin_inset space ~
19566 \begin_inset CommandInset ref
19568 reference "cha:Units-available-in"
19577 Some space was added under the caption to separate it better from the surroundi
19581 \begin_layout Standard
19586 also supports table wrap floats, but they are not yet supported by LyX.
19587 If you need this, read the documentation of
19592 \begin_inset CommandInset citation
19601 \begin_layout Standard
19602 \begin_inset Note Greyedout
19605 \begin_layout Plain Layout
19611 \begin_inset space ~
19614 wrap float floats are fragile! E.
19615 \begin_inset space \thinspace{}
19619 \begin_inset space ~
19622 having a figure too close to the bottom of the page can mess things up in
19623 the way that the float doesn't appear in the output or that it is placed
19624 over some other text.
19632 \begin_layout Standard
19636 \begin_layout Itemize
19637 Wrap floats should not be placed in paragraphs that run over a page break.
19638 That means that wrap floats should better be inserted to the exact place
19639 when the document is nearly finished and you are able to estimate where
19640 page breaks will appear.
19643 \begin_layout Itemize
19644 Wrap floats should either be placed in an own paragraph before the paragraph
19645 where they should wrap into or within a paragraph.
19648 \begin_layout Itemize
19649 Wrap floats in consecutive paragraphs may cause troubles, so assure that
19650 there is a text paragraph between them as separator.
19653 \begin_layout Itemize
19654 Wrap floats are not allowed in section headings or tables.
19657 \begin_layout Section
19659 \begin_inset CommandInset label
19661 name "sec:Float-Numbering"
19669 \begin_layout Plain Layout
19678 \begin_layout Standard
19679 Floats are usually numbered either independent from the sections the floats
19680 are in, or in the scheme
19681 \begin_inset Quotes eld
19685 \begin_inset Quotes erd
19689 \begin_inset Quotes eld
19693 \begin_inset Quotes erd
19697 This depends on the used document class.
19700 \begin_layout Standard
19701 To change the section independent numbering, you can use this command in
19702 the document preamble:
19705 \begin_layout Standard
19717 \begin_layout Standard
19724 is the command that prints the table number, for figure floats, the command
19738 prints in the command above the table number as small roman number.
19741 \begin_layout Standard
19742 To change the numbering scheme for example to
19743 \begin_inset Quotes eld
19747 \begin_inset Quotes erd
19750 , use this command in the preamble:
19753 \begin_layout Standard
19758 numberwithin{table}{subsection}
19761 \begin_layout Standard
19762 To be able to use the command
19771 \begin_inset space ~
19776 in the document settings the option
19779 \begin_inset space ~
19783 \begin_inset space ~
19787 \begin_inset space ~
19795 \begin_layout Standard
19796 Please also have a look at section
19797 \begin_inset space ~
19801 \begin_inset CommandInset ref
19803 reference "sub:Footnote-Numbering"
19807 for the details and important notes about the numbering commands.
19810 \begin_layout Section
19812 \begin_inset CommandInset label
19814 name "sec:Referencing-Floats"
19822 \begin_layout Plain Layout
19823 Floats ! References
19832 \begin_layout Plain Layout
19841 \begin_layout Standard
19842 To reference a float, insert a label into its caption using the menu
19844 Insert\SpecialChar \menuseparator
19847 or the toolbar button
19848 \begin_inset Graphics
19849 filename ../images/label-insert.png
19851 scaleBeforeRotation
19856 A grey label box like this one:
19857 \begin_inset Graphics
19858 filename clipart/labelQt4.png
19860 scaleBeforeRotation
19864 will be inserted and the label window pops up asking for the label text.
19865 LyX offers as text the first words of the caption with a prefix.
19866 The prefix depends on the float type, e.
19867 \begin_inset space \thinspace{}
19871 \begin_inset space ~
19874 for figure floats the prefix will be "
19881 \begin_layout Standard
19882 The label is used as anchor and name for the reference.
19883 You can refer to the label using the menu
19885 Insert\SpecialChar \menuseparator
19888 or the toolbar button
19889 \begin_inset Graphics
19890 filename ../images/dialog-show-new-inset_ref.png
19892 scaleBeforeRotation
19897 A grey cross-reference box like this one:
19898 \begin_inset Graphics
19899 filename clipart/referenceQt4.png
19901 scaleBeforeRotation
19905 will be inserted and the cross-reference window appear showing all labels
19907 If you have multiple LyX-documents opened, choose the one you are working
19908 on from the drop-list at the top of the dialog.
19909 You can now sort the labels alphabetically and then choose one.
19910 At the position of the cross-reference box the float number will appear
19914 \begin_layout Standard
19915 It is recommended to use a protected space between the cross-reference name
19916 and its number to avoid line breaks between them.
19917 If a cross-reference refers to a non-existing label, you will see two question
19918 marks in the output instead of the reference.
19921 \begin_layout Standard
19922 You can change labels at any time by clicking on the label box.
19923 References to the changed label will automatically change its link to the
19924 new label text, so that you don't need to take care about this.
19927 \begin_layout Standard
19931 \begin_inset space ~
19935 \begin_inset space ~
19940 in the cross-reference window sets the cursor before the referred label.
19941 The button text changes then to Go
19942 \begin_inset space ~
19945 Back and you can use it to set the cursor back to the cross-reference.
19946 Right-clicking on a cross-reference box also sets the cursor before the
19947 referenced label but without a possibility to go back.
19950 \begin_layout Subsection
19951 Cross-Reference Formats
19952 \begin_inset CommandInset label
19954 name "sub:Cross-Reference-Formats"
19962 \begin_layout Plain Layout
19963 References ! Formats
19971 \begin_layout Standard
19972 There are six varieties of cross-references:
19975 \begin_layout Description
19976 <reference>: prints the float number, this is the default:
19977 \begin_inset CommandInset ref
19979 reference "fig:Two-distorted-images"
19986 \begin_layout Description
19987 (<reference>): prints the float number within two parentheses, this is the
19988 style normally used to reference formulas, especially when the reference
19990 \begin_inset Quotes eld
19994 \begin_inset Quotes erd
19998 \begin_inset CommandInset ref
20007 \begin_layout Description
20008 <page>: prints the page number: Page
20009 \begin_inset space ~
20013 \begin_inset CommandInset ref
20014 LatexCommand pageref
20015 reference "fig:Two-distorted-images"
20022 \begin_layout Description
20024 \begin_inset space ~
20028 \begin_inset space ~
20031 <page>: prints the text "on page" and the page number:
20032 \begin_inset CommandInset ref
20033 LatexCommand vpageref
20034 reference "fig:Two-distorted-images"
20041 \begin_layout Description
20043 \begin_inset space ~
20047 \begin_inset space ~
20051 \begin_inset space ~
20054 <page>: prints the float number, the text "on page", and the page number:
20056 \begin_inset CommandInset ref
20058 reference "fig:Two-distorted-images"
20065 \begin_layout Description
20067 \begin_inset space ~
20070 reference: prints a self defined cross-reference format.
20072 \begin_inset Note Greyedout
20075 \begin_layout Plain Layout
20080 This feature is only available when you have the LaTeX-package
20092 \begin_layout Standard
20093 Note that the style <page> won't print the page number if the label is on
20094 the previous, the same, or the next page.
20096 \begin_inset space \thinspace{}
20100 \begin_inset space ~
20104 \begin_inset Quotes eld
20112 \begin_inset Quotes erd
20118 \begin_layout Standard
20119 The number and current page of the referred document part in the output,
20120 is automatically calculated by LaTeX.
20121 The varieties are adjusted in the field
20125 of the cross-reference window, that appear when you click on the cross-referenc
20129 \begin_layout Subsection
20130 Automatic Reference Naming
20134 \begin_layout Plain Layout
20135 References ! Automatic Reference Naming
20143 \begin_layout Standard
20148 provides a very useful feature that cross-references automatically include
20149 the name of the referenced floats (or text parts like sections).
20150 You save to write e.
20151 \begin_inset space \thinspace{}
20155 \begin_inset space ~
20159 \begin_inset Quotes eld
20163 \begin_inset Quotes erd
20166 before every reference box.
20167 To get this automatic reference naming, you have to load the LaTeX-package
20176 \begin_layout Plain Layout
20177 LaTeX-packages ! hyperref
20182 in the document preamble with
20185 \begin_layout Standard
20190 usepackage[pdfborder={0 0 0}]{hyperref}
20191 \begin_inset Newline newline
20207 \begin_layout Standard
20212 is used to link cross-references in the DVI- and PDF-output, this means
20213 that the reader of your document will be able to click on a table of content
20214 (TOC) entry or on a reference and he will be shown the referenced document
20220 also creates PDF-bookmarks for every section of your document to make it
20221 easier for readers to navigate through the document.
20222 This is also used in this document but when you have a look in the document
20223 preamble you will find various options in the load command of
20228 To learn more about the
20232 package, we refer to its documentation
20233 \begin_inset CommandInset citation
20242 \begin_layout Standard
20243 \begin_inset Note Greyedout
20246 \begin_layout Plain Layout
20251 Automatic reference naming cannot be used when you use cross-references
20255 \begin_inset space ~
20260 style, described in section
20261 \begin_inset space ~
20265 \begin_inset CommandInset ref
20267 reference "sub:Cross-Reference-Formats"
20279 \begin_layout Subsection
20281 \begin_inset CommandInset label
20283 name "sub:Reference-Position"
20291 \begin_layout Plain Layout
20292 References ! Reference Position
20300 \begin_layout Standard
20309 \begin_layout Plain Layout
20310 LaTeX-packages ! hyperref
20315 to link cross-references in the output, you will see that clicking on an
20316 image float reference jumps to the image label.
20317 The caption will be the first text part on the screen, so that you cannot
20318 see the image without scrolling.
20319 This is because the reference link anchor is placed at the position of
20321 With the use of the package
20329 \begin_layout Plain Layout
20330 LaTeX-packages ! hypcap
20335 , which is part of the LaTeX-package
20343 \begin_layout Plain Layout
20344 LaTeX-packages ! oberdiek
20349 , the link anchor is placed at the beginning of a float.
20350 To use this feature for figure floats, load
20354 in the document preamble with the line
20357 \begin_layout Standard
20362 usepackage[figure]{hypcap}
20365 \begin_layout Standard
20370 for all floats but this isn't recommended for stability reasons.
20371 For more informations, have a look at
20376 \begin_inset CommandInset citation
20385 \begin_layout Standard
20386 \begin_inset Note Greyedout
20389 \begin_layout Plain Layout
20398 must be loaded after
20402 in the document preamble.
20410 \begin_layout Standard
20411 \begin_inset Note Greyedout
20414 \begin_layout Plain Layout
20423 has no effect for references to subfigures.
20431 \begin_layout Section
20433 \begin_inset CommandInset label
20435 name "sec:Float-Placement"
20443 \begin_layout Plain Layout
20452 \begin_layout Standard
20453 Right-clicking on a float-box opens a dialog where you can alter the placement
20454 options that LaTeX uses for positioning the float.
20455 \begin_inset Newline newline
20461 \begin_inset space ~
20466 is only useful for two-column documents: If you select it, the float will
20467 span across both columns on the page instead of being confined to just
20469 \begin_inset Newline newline
20475 \begin_inset space ~
20480 is used to rotate floats, see section
20481 \begin_inset CommandInset ref
20483 reference "sec:Rotated-Floats"
20490 \begin_layout Standard
20491 You can use one ore more of the following options in the float dialog to
20492 set the placement for a particular float when you uncheck the option
20495 \begin_inset space ~
20499 \begin_inset space ~
20507 \begin_layout Description
20509 \begin_inset space ~
20513 \begin_inset space ~
20516 possible try to place the float on the position where it is inserted
20519 \begin_layout Description
20521 \begin_inset space ~
20525 \begin_inset space ~
20528 page try to place the float on the top of the current page
20531 \begin_layout Description
20533 \begin_inset space ~
20537 \begin_inset space ~
20540 page try to place the float on the bottom of the current page
20543 \begin_layout Description
20545 \begin_inset space ~
20549 \begin_inset space ~
20552 floats try to place the float on an own page
20555 \begin_layout Standard
20556 The order of the above option is
20561 That means, if you use the default placement, LaTeX will first try out
20565 \begin_inset space ~
20569 \begin_inset space ~
20577 \begin_inset space ~
20581 \begin_inset space ~
20586 , and then the others.
20587 If you don't use the default, LaTeX will try only the checked options but
20589 If none of the 4 placements are possible the procedure is internally repeated
20590 but it is tried to put the float on the following page.
20593 \begin_layout Standard
20594 By default, each option has its own rules:
20597 \begin_layout Labeling
20598 \labelwidthstring 00.00.0000
20602 \begin_inset space ~
20606 \begin_inset space ~
20611 only floats occupying less than 70
20612 \begin_inset space \thinspace{}
20615 % of the page can be placed at the top of a page (
20624 \begin_layout Labeling
20625 \labelwidthstring 00.00.0000
20629 \begin_inset space ~
20633 \begin_inset space ~
20638 : only floats occupying less than 30
20639 \begin_inset space \thinspace{}
20642 % of the page can be placed at the bottom of a page.
20652 \begin_layout Labeling
20653 \labelwidthstring 00.00.0000
20657 \begin_inset space ~
20661 \begin_inset space ~
20666 : only if more than 50
20667 \begin_inset space \thinspace{}
20670 % of the page are occupied by floats, several floats can be set together
20681 \begin_layout Standard
20682 If you don't like these rules, you can ignore them by using the additional
20686 \begin_inset space ~
20690 \begin_inset space ~
20696 \begin_inset Newline newline
20699 You can also redefine the rules with LaTeX-commands that are given in parenthese
20700 s behind the rules description above.
20701 To increase for example the often too small default of the bottom-rule
20703 \begin_inset space \thinspace{}
20706 % of the page, add this line to your document preamble:
20709 \begin_layout Standard
20716 bottomfraction}{0.5}
20719 \begin_layout Standard
20720 Sometimes you might need, under all circumstances, a float to be placed
20721 exactly at the position where it is inserted.
20722 For this case you can use the option
20725 \begin_inset space ~
20731 Use this option very rarely and only if the document is nearly ready to
20733 Because the float is then no longer able to
20734 \begin_inset Quotes eld
20738 \begin_inset Quotes erd
20741 when you change your document and this will often destroy the page layout.
20744 \begin_layout Standard
20745 There are no placement options for text wrap floats, because they are always
20746 surrounded by the text of a certain paragraph.
20747 \begin_inset VSpace bigskip
20753 \begin_layout Standard
20754 Sometimes you have the problem that a float is placed at the top of a page
20755 while its corresponding section starts at the middle of the page, so that
20756 the reader could think the float is part of the previous section.
20757 To avoid this the LaTeX-command
20764 It suppresses a given float placement for the page where it is inserted
20765 and can therefore be used to avoid that floats could be set before a section
20767 To get this, add these commands to your document preamble:
20770 \begin_layout Standard
20780 \begin_inset Newline newline
20794 \begin_layout Standard
20795 You can define the same for all section headings, like chapters and subsections.
20796 This definition is not recommended to be used for small text parts like
20797 subsubsections because LaTeX may then have problems to find a suitable
20801 \begin_layout Standard
20802 \begin_inset VSpace bigskip
20805 In some cases it is required to have all figures/tables at the end of the
20807 For this purpose the LaTeX-package
20815 \begin_layout Plain Layout
20816 LaTeX-packages ! endfloat
20822 It puts all figure and table floats at the end of the document into own
20824 At the original float position a text hint like
20825 \begin_inset Quotes eld
20831 \begin_inset space ~
20837 \begin_inset Quotes erd
20841 The endfloat-package is loaded in the preamble with the line
20844 \begin_layout Standard
20849 usepackage[options]{endfloat}
20852 \begin_layout Standard
20853 There are various package options to format the created figure/table sections.
20854 For more information we refer to the
20859 \begin_inset CommandInset citation
20866 \begin_inset Newline newline
20870 \begin_inset Note Greyedout
20873 \begin_layout Plain Layout
20878 doesn't provide an automatic translation for the text hint, you have to
20879 do this manually, see section
20880 \begin_inset space ~
20884 \begin_inset CommandInset citation
20896 \begin_inset Newline newline
20900 \begin_inset Note Greyedout
20903 \begin_layout Plain Layout
20908 There is currently a bug in
20912 when the caption contains a German
20913 \begin_inset Quotes eld
20917 \begin_inset Quotes erd
20921 Use in this case the command
20922 \begin_inset Quotes eld
20932 \begin_inset Quotes erd
20935 in TeX-Code instead of
20936 \begin_inset Quotes eld
20940 \begin_inset Quotes erd
20951 \begin_layout Standard
20952 \begin_inset VSpace bigskip
20955 For more details about float placements, have a look at LaTeX books,
20956 \begin_inset CommandInset citation
20958 key "latexcompanion,latexguide,latexbook"
20965 \begin_layout Section
20967 \begin_inset CommandInset label
20969 name "sec:Rotated-Floats"
20977 \begin_layout Plain Layout
20986 \begin_layout Standard
20987 Especially for wide tables you might have floats rotated.
20988 To rotate a whole float including the caption, right-click on the float-box
20992 \begin_inset space ~
21000 \begin_layout Standard
21001 Rotated floats are always placed on its own page (or column, when you have
21002 a two-column document).
21003 They are rotated so that you can read them from the outside margin.
21004 To force a certain rotation direction for all pages, you can add either
21013 to the document class options.
21016 \begin_layout Standard
21017 Referencing rotated floats is the same like for normal floats, the caption
21018 format is also the same: Table
21019 \begin_inset space ~
21023 \begin_inset CommandInset ref
21025 reference "tab:Rotated-table"
21029 is an example of a rotated table float.
21032 \begin_layout Standard
21033 \begin_inset Note Greyedout
21036 \begin_layout Plain Layout
21041 Not all DVI-viewers are able to display rotated floats.
21049 \begin_layout Standard
21050 \begin_inset Float table
21055 \begin_layout Plain Layout
21056 \begin_inset Caption
21058 \begin_layout Plain Layout
21059 \begin_inset CommandInset label
21061 name "tab:Rotated-table"
21073 \begin_layout Plain Layout
21075 \begin_inset Tabular
21076 <lyxtabular version="3" rows="1" columns="5">
21078 <column alignment="center" valignment="top" width="0">
21079 <column alignment="center" valignment="top" width="0">
21080 <column alignment="center" valignment="top" width="0">
21081 <column alignment="center" valignment="top" width="0">
21082 <column alignment="center" valignment="top" width="0">
21084 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21087 \begin_layout Plain Layout
21093 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21096 \begin_layout Plain Layout
21102 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21105 \begin_layout Plain Layout
21111 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21114 \begin_layout Plain Layout
21120 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21123 \begin_layout Plain Layout
21142 \begin_layout Section
21143 Floats Side by Side
21147 \begin_layout Plain Layout
21148 Floats ! Side by side
21156 \begin_layout Standard
21157 To place floats side by side, like for Figure
21158 \begin_inset space ~
21162 \begin_inset CommandInset ref
21164 reference "fig:Float-left"
21169 \begin_inset CommandInset ref
21171 reference "fig:Float-right"
21180 In it two minipage boxes are inserted.
21184 \begin_layout Plain Layout
21185 Minipages are explained in section
21186 \begin_inset space ~
21190 \begin_inset CommandInset ref
21192 reference "sec:Minipages"
21201 The width is set to 45
21202 \begin_inset space \thinspace{}
21206 \begin_inset space \thinspace{}
21209 column% and the box alignment to
21214 The minipage boxes contain the image and the caption in the same way as
21215 they are in a float.
21216 The only difference is that the image unit
21219 \begin_inset space ~
21223 \begin_inset space ~
21228 is now calculated according to the width of the minipage boxes.
21231 \begin_layout Standard
21232 \begin_inset Float figure
21237 \begin_layout Plain Layout
21238 \begin_inset Box Frameless
21247 height_special "totalheight"
21250 \begin_layout Plain Layout
21252 \begin_inset Graphics
21253 filename clipart/mobius.eps
21256 scaleBeforeRotation
21263 \begin_layout Plain Layout
21264 \begin_inset Caption
21266 \begin_layout Plain Layout
21267 \begin_inset CommandInset label
21269 name "fig:Float-left"
21273 Float on the left side.
21284 \begin_inset space \hfill{}
21288 \begin_inset Box Frameless
21297 height_special "totalheight"
21300 \begin_layout Plain Layout
21302 \begin_inset Graphics
21303 filename clipart/platypus.eps
21306 scaleBeforeRotation
21313 \begin_layout Plain Layout
21314 \begin_inset Caption
21316 \begin_layout Plain Layout
21317 \begin_inset CommandInset label
21319 name "fig:Float-right"
21323 Float on the right side.
21336 \begin_layout Plain Layout
21345 \begin_layout Section
21350 \begin_layout Plain Layout
21351 Caption ! Formatting
21360 \begin_layout Plain Layout
21361 Floats ! Caption Formatting
21370 \begin_layout Plain Layout
21371 LaTeX-packages ! caption
21377 \begin_inset CommandInset label
21379 name "sec:Caption-Formatting"
21386 \begin_layout Standard
21391 environment is the default paragraph environment for
21396 On the LyX screen captions appear as label, e.
21397 \begin_inset space \thinspace{}
21401 \begin_inset space ~
21405 \begin_inset Quotes eld
21413 \begin_inset Quotes erd
21416 followed by the caption text.
21418 \begin_inset Quotes eld
21422 \begin_inset Quotes erd
21425 is the actual reference number.
21426 By default the label and the number are in the same font as the caption
21427 text and a colon follows the number to divide the label from the text.
21428 This caption format is not suitable for all document formats.
21432 \begin_layout Standard
21433 To change the default caption format, load the LaTeX-package
21441 \begin_layout Plain Layout
21442 LaTeX-packages ! caption
21447 in the document preamble with this line:
21450 \begin_layout Standard
21455 usepackage[format definition]{caption}
21458 \begin_layout Standard
21459 To have for example the label and the number in sans-serif bold font and
21460 the table captions always above the table like in this document, use the
21464 \begin_layout Standard
21469 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
21472 \begin_layout Standard
21473 You can also define different caption formats for the different float types.
21474 In this case load the
21478 package without format specific options and define the different formats
21479 with the help of the command
21482 \begin_layout Standard
21487 captionsetup[float type]{format definition}
21490 \begin_layout Standard
21491 in the document preamble.
21492 For example the caption formats of Figure
21493 \begin_inset space ~
21497 \begin_inset CommandInset ref
21499 reference "fig:This-is-an-fig"
21504 \begin_inset space ~
21508 \begin_inset CommandInset ref
21510 reference "tab:This-is-an-tab"
21514 can be created using these commands in the document preamble:
21517 \begin_layout Standard
21522 usepackage[tableposition=top]{caption}
21525 \begin_inset Newline newline
21532 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
21533 \begin_inset Newline newline
21540 \begin_layout Plain Layout
21548 captionsetup[figure]
21556 \begin_inset Newline newline
21561 captionsetup[table]{labelfont={bf,sf}}
21564 \begin_layout Standard
21565 \begin_inset Note Greyedout
21568 \begin_layout Plain Layout
21577 has no effect when a
21585 \begin_layout Plain Layout
21586 LaTeX-packages ! koma-script
21591 document class is used.
21592 In this case the document class option
21604 \begin_layout Standard
21605 For more information about the package
21609 we refer to its documentation
21610 \begin_inset CommandInset citation
21612 key "caption,caption-de"
21619 \begin_layout Standard
21620 To change the label name from e.g.
21622 \begin_inset Quotes eld
21626 \begin_inset Quotes erd
21630 \begin_inset Quotes eld
21634 \begin_inset Quotes erd
21637 use this preamble command:
21640 \begin_layout Standard
21647 fnum@figure}{Image~
21652 \begin_layout Standard
21659 inserts the figure number and
21662 \begin_inset Quotes eld
21668 \begin_inset Quotes erd
21671 creates a protected space.
21674 \begin_layout Standard
21675 \begin_inset VSpace bigskip
21686 \begin_layout Plain Layout
21687 LaTeX-packages ! koma-script
21694 article (koma-script)
21702 letter (koma-script)
21706 report (koma-script)
21709 \begin_inset space \thinspace{}
21712 ), you can alternatively to the
21720 's built-in command
21727 For example, to have the caption label in bold, add this command to your
21731 \begin_layout Standard
21736 setkomafont{captionlabel}{
21741 \begin_layout Standard
21742 For more information about
21753 \begin_inset CommandInset citation
21762 \begin_layout Standard
21766 \begin_layout Plain Layout
21770 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
21777 \begin_inset Note Note
21780 \begin_layout Plain Layout
21781 The caption format is changed only for this example.
21789 \begin_layout Standard
21790 \begin_inset Float figure
21796 \begin_layout Plain Layout
21798 \begin_inset Graphics
21799 filename clipart/mobius.eps
21802 scaleBeforeRotation
21809 \begin_layout Plain Layout
21810 \begin_inset Caption
21812 \begin_layout Plain Layout
21813 \begin_inset CommandInset label
21815 name "fig:This-is-an-fig"
21819 This is an example figure caption that is longer than one line to show the
21820 different caption format.
21821 Here a self-defined caption format is used.
21834 \begin_layout Standard
21838 \begin_layout Plain Layout
21842 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
21851 \begin_layout Standard
21852 \begin_inset Float table
21858 \begin_layout Plain Layout
21859 \begin_inset Caption
21861 \begin_layout Plain Layout
21862 \begin_inset CommandInset label
21864 name "tab:This-is-an-tab"
21868 This is an example table caption that is longer than one line to show the
21869 different caption format.
21870 Here the standard caption format for tables in this document is used.
21878 \begin_layout Plain Layout
21880 \begin_inset Tabular
21881 <lyxtabular version="3" rows="1" columns="5">
21883 <column alignment="center" valignment="top" width="0">
21884 <column alignment="center" valignment="top" width="0">
21885 <column alignment="center" valignment="top" width="0">
21886 <column alignment="center" valignment="top" width="0">
21887 <column alignment="center" valignment="top" width="0">
21889 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21892 \begin_layout Plain Layout
21898 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21901 \begin_layout Plain Layout
21907 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21910 \begin_layout Plain Layout
21916 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21919 \begin_layout Plain Layout
21925 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21928 \begin_layout Plain Layout
21947 \begin_layout Section
21952 \begin_layout Plain Layout
21953 Caption ! Placement
21962 \begin_layout Plain Layout
21963 Floats ! Caption Placement
21969 \begin_inset CommandInset label
21971 name "sec:Caption-Placement"
21978 \begin_layout Standard
21979 The common caption placement rule is:
21982 \begin_layout Description
21983 Figure: Caption is set below the figure
21986 \begin_layout Description
21987 Table: Caption is set above the table
21990 \begin_layout Standard
21991 Having the caption above the table is unfortunately not supported in LaTeX's
21993 That means if you are using the document classes
22009 there will be no space between the caption and the table.
22010 To insert the needed space, add the following option to the load command
22011 of the LaTeX-package
22015 in your document preamble
22019 \begin_layout Plain Layout
22021 \begin_inset space ~
22025 \begin_inset CommandInset ref
22027 reference "sec:Caption-Formatting"
22031 for more information of the package
22043 \begin_layout Standard
22049 \begin_layout Standard
22058 \begin_layout Plain Layout
22059 LaTeX-packages ! koma-script
22066 article (koma-script)
22074 letter (koma-script)
22078 report (koma-script)
22081 \begin_inset space \thinspace{}
22084 ), you can alternatively to the
22088 package set the document class option
22095 \begin_layout Standard
22096 \begin_inset VSpace bigskip
22099 It is also possible to set the caption beside a figure or table.
22100 To get this the LaTeX-package
22108 \begin_layout Plain Layout
22109 LaTeX-packages ! sidecap
22114 has to be loaded in the document preamble with the line
22117 \begin_layout Standard
22122 usepackage[option]{sidecap}
22125 \begin_layout Standard
22126 If you set no option, the caption is placed on the side of the outer page
22127 margin -- to the right on odd pages, to the left on even pages.
22128 You can change the placement to inner margin with the option
22133 To force the placement always to the right or left, use the option
22144 \begin_layout Standard
22148 \begin_layout Plain Layout
22158 \begin_inset Note Note
22161 \begin_layout Plain Layout
22162 The following section will only be displayed when the LaTeX-package
22174 \begin_layout Standard
22175 To place in LyX the caption of a float on the side, it is necessary to add
22176 these commands to the document preamble:
22179 \begin_layout Standard
22185 \begin_layout Standard
22193 \begin_inset Newline newline
22200 \begin_layout Plain Layout
22216 \begin_inset Newline newline
22223 \begin_layout Plain Layout
22239 \begin_inset Newline newline
22246 \begin_layout Plain Layout
22257 renewenvironment{table}{
22264 \begin_layout Standard
22272 \begin_inset Newline newline
22279 \begin_layout Plain Layout
22295 \begin_inset Newline newline
22302 \begin_layout Plain Layout
22320 \begin_layout Standard
22328 \begin_inset Newline newline
22335 \begin_layout Plain Layout
22351 \begin_inset Newline newline
22358 \begin_layout Plain Layout
22374 \begin_inset Newline newline
22381 \begin_layout Plain Layout
22392 renewenvironment{figure}{
22399 \begin_layout Standard
22407 \begin_inset Newline newline
22414 \begin_layout Plain Layout
22430 \begin_inset Newline newline
22437 \begin_layout Plain Layout
22455 \begin_layout Standard
22461 \begin_layout Standard
22462 The commands allow you to redefine the floats so that the caption is set
22464 For figure floats use the command
22467 \begin_layout Standard
22475 \begin_layout Standard
22476 in TeX-Code before the float.
22477 Behind the float insert the command
22480 \begin_layout Standard
22488 \begin_layout Standard
22489 in TeX-Code to get back to the original float definition.
22492 \begin_layout Standard
22493 For table floats use the corresponding commands
22496 \begin_layout Standard
22510 \begin_layout Standard
22512 \begin_inset space ~
22516 \begin_inset CommandInset ref
22518 reference "fig:cap-beside-fig"
22523 \begin_inset space ~
22527 \begin_inset CommandInset ref
22529 reference "tab:cap-beside-tab"
22533 are examples where the caption is set beside.
22536 \begin_layout Standard
22537 You can see in the examples that the caption text appears at the top of
22538 the floats for table floats and at the bottom for figure floats.
22539 To change this, you can use the command
22542 \begin_layout Standard
22547 sidecaptionvpos{float type}{placement}
22550 \begin_layout Standard
22551 in the document preamble or in TeX-Code before the float.
22552 The float type is either
22560 , the placement can be
22561 \begin_inset Quotes eld
22569 \begin_inset Quotes erd
22573 \begin_inset Quotes eld
22581 \begin_inset Quotes erd
22585 \begin_inset Quotes eld
22593 \begin_inset Quotes erd
22597 To have for example the caption of figure floats vertically centered, use
22601 \begin_layout Standard
22606 sidecaptionvpos{figure}{c}
22609 \begin_layout Standard
22610 This was used for Figure
22611 \begin_inset space ~
22615 \begin_inset CommandInset ref
22617 reference "fig:cap-beside-fig-2"
22624 \begin_layout Standard
22625 \begin_inset VSpace medskip
22628 For more information about the package
22632 we refer to its documentation
22633 \begin_inset CommandInset citation
22642 \begin_layout Standard
22643 \begin_inset Note Greyedout
22646 \begin_layout Plain Layout
22659 \begin_layout Plain Layout
22660 LaTeX-packages ! hypcap
22665 , described in section
22666 \begin_inset space ~
22670 \begin_inset CommandInset ref
22672 reference "sub:Reference-Position"
22676 , has no effect on floats with the caption set beside.
22684 \begin_layout Standard
22688 \begin_layout Plain Layout
22700 \begin_layout Standard
22701 \begin_inset Float figure
22706 \begin_layout Plain Layout
22707 \begin_inset Graphics
22708 filename clipart/escher-lsd.eps
22710 scaleBeforeRotation
22717 \begin_layout Plain Layout
22718 \begin_inset Caption
22720 \begin_layout Plain Layout
22721 \begin_inset CommandInset label
22723 name "fig:cap-beside-fig"
22727 This is a caption beside a figure.
22740 \begin_layout Standard
22744 \begin_layout Plain Layout
22756 \begin_layout Standard
22757 \begin_inset Float table
22762 \begin_layout Plain Layout
22763 \begin_inset Caption
22765 \begin_layout Plain Layout
22766 \begin_inset CommandInset label
22768 name "tab:cap-beside-tab"
22772 This is a caption beside a table.
22780 \begin_layout Plain Layout
22781 \begin_inset Tabular
22782 <lyxtabular version="3" rows="4" columns="5">
22784 <column alignment="center" valignment="top" width="0">
22785 <column alignment="center" valignment="top" width="0">
22786 <column alignment="center" valignment="top" width="0">
22787 <column alignment="center" valignment="top" width="0">
22788 <column alignment="center" valignment="top" width="0">
22790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22793 \begin_layout Plain Layout
22799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22802 \begin_layout Plain Layout
22808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22811 \begin_layout Plain Layout
22817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22820 \begin_layout Plain Layout
22826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22829 \begin_layout Plain Layout
22837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22840 \begin_layout Plain Layout
22846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22849 \begin_layout Plain Layout
22855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22858 \begin_layout Plain Layout
22864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22867 \begin_layout Plain Layout
22873 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22876 \begin_layout Plain Layout
22884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22887 \begin_layout Plain Layout
22893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22896 \begin_layout Plain Layout
22902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22905 \begin_layout Plain Layout
22911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22914 \begin_layout Plain Layout
22920 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22923 \begin_layout Plain Layout
22931 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22934 \begin_layout Plain Layout
22940 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22943 \begin_layout Plain Layout
22949 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22952 \begin_layout Plain Layout
22958 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22961 \begin_layout Plain Layout
22967 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22970 \begin_layout Plain Layout
22989 \begin_layout Standard
22993 \begin_layout Plain Layout
23005 \begin_layout Standard
23009 \begin_layout Plain Layout
23013 sidecaptionvpos{figure}{c}
23019 \begin_inset Float figure
23024 \begin_layout Plain Layout
23025 \begin_inset Graphics
23026 filename clipart/escher-lsd.eps
23028 scaleBeforeRotation
23035 \begin_layout Plain Layout
23036 \begin_inset Caption
23038 \begin_layout Plain Layout
23039 \begin_inset CommandInset label
23041 name "fig:cap-beside-fig-2"
23045 This is a vertically centered caption beside a figure.
23058 \begin_layout Standard
23062 \begin_layout Plain Layout
23074 \begin_layout Standard
23078 \begin_layout Plain Layout
23088 \begin_inset Note Note
23091 \begin_layout Plain Layout
23092 The following will be displayed when the LaTeX-package
23104 \begin_layout Standard
23105 You need to install the LaTeX-package
23109 to see the following part of this section in the output.
23112 \begin_layout Standard
23116 \begin_layout Plain Layout
23128 \begin_layout Section
23130 \begin_inset CommandInset label
23132 name "sec:Listings-of-Floats"
23140 \begin_layout Plain Layout
23141 Floats ! Float Lists
23149 \begin_layout Standard
23150 Similar to the the table of contents where the sections of the document
23151 are listed, there are listings for all float types, like the figures of
23153 You can insert them via the
23155 Insert\SpecialChar \menuseparator
23157 \begin_inset space ~
23161 \begin_inset space ~
23169 \begin_layout Standard
23170 The list entries are the float captions or its short title, the float number,
23171 and the page number where they appear in the document.
23174 \begin_layout Standard
23175 You can find the list of figures and tables at the end of this document.
23178 \begin_layout Chapter
23182 \begin_layout Section
23184 \begin_inset CommandInset label
23186 name "sec:LyX-Notes"
23194 \begin_layout Plain Layout
23203 \begin_layout Standard
23204 Notes are inserted with the toolbar button
23205 \begin_inset Graphics
23206 filename ../images/note-insert.png
23208 scaleBeforeRotation
23214 Insert\SpecialChar \menuseparator
23218 There are five types of notes:
23221 \begin_layout Description
23223 \begin_inset space ~
23226 Note This note type is for internal notes that won't appear in the output.
23227 Its note-box looks like this:
23228 \begin_inset Newline newline
23232 \begin_inset Newline newline
23236 \begin_inset Graphics
23237 filename clipart/LyXNoteImageQt4.png
23240 scaleBeforeRotation
23245 \begin_inset Note Note
23248 \begin_layout Plain Layout
23249 This is text in a note box that doesn't appear in the output.
23257 \begin_layout Description
23258 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
23259 ent, when you export the document to LaTeX via the menu
23261 File\SpecialChar \menuseparator
23262 Export\SpecialChar \menuseparator
23263 LaTeX (pdflatex) / (plain)
23266 Its note-box looks like this:
23267 \begin_inset Newline newline
23271 \begin_inset Newline newline
23275 \begin_inset Graphics
23276 filename clipart/CommentNoteImageQt4.png
23279 scaleBeforeRotation
23284 \begin_inset Note Comment
23287 \begin_layout Plain Layout
23288 This is text in a note box that only appears as comment in LaTeX-files.
23296 \begin_layout Description
23298 \begin_inset space ~
23301 Out This note will appear in the output as grey text.
23302 Its note-box looks like this:
23303 \begin_inset Newline newline
23307 \begin_inset Newline newline
23311 \begin_inset Graphics
23312 filename clipart/GreyedOutNoteImageQt4.png
23315 scaleBeforeRotation
23320 \begin_inset Newline newline
23327 \begin_layout Plain Layout
23331 renewenvironment{lyxgreyedout}
23334 \begin_layout Plain Layout
23338 textcolor[gray]{0.8}
23348 \begin_inset Note Greyedout
23351 \begin_layout Plain Layout
23356 \begin_layout Plain Layout
23357 This is an example footnote within a greyed out note.
23362 of a comment that appears in the output as grey text.
23371 \begin_layout Plain Layout
23375 renewenvironment{lyxgreyedout}
23378 \begin_layout Plain Layout
23392 \begin_inset Note Note
23395 \begin_layout Plain Layout
23396 The greyed out note is here redefined to show it with the original LyX definitio
23397 n because greyed out notes are redefined in the preamble of this document,
23398 as described below, to have blue text.
23404 \begin_inset Newline newline
23408 \begin_inset Newline newline
23411 As you can see in the example, the first line of greyed out notes is a bit
23412 indented and greyed out notes can have footnotes.
23415 \begin_layout Description
23416 Framed This note will appear in the output as framed text.
23417 Its note-box looks like this:
23418 \begin_inset Newline newline
23422 \begin_inset Newline newline
23426 \begin_inset Graphics
23427 filename clipart/FramedNoteImageQt4.png
23430 scaleBeforeRotation
23435 \begin_inset Box Framed
23444 height_special "totalheight"
23447 \begin_layout Plain Layout
23448 This is text in a note box that appears framed in the output.
23453 In contrary to framed boxes
23457 \begin_layout Plain Layout
23458 Framed boxes are described in section
23459 \begin_inset space ~
23463 \begin_inset CommandInset ref
23465 reference "sec:Framed-Boxes"
23474 the frame uses always the whole text width and the note is set into its
23478 \begin_layout Description
23479 Shaded This note will appear in the output with red background color.
23480 Its note box looks like this:
23481 \begin_inset Newline newline
23485 \begin_inset Newline newline
23489 \begin_inset Graphics
23490 filename clipart/ShadedNoteImageQt4.png
23493 scaleBeforeRotation
23498 \begin_inset Box Shaded
23507 height_special "totalheight"
23510 \begin_layout Plain Layout
23511 This text in a note box appears in the output with red background.
23516 In contrary to colored boxes
23520 \begin_layout Plain Layout
23521 Colored boxes are described in section
23522 \begin_inset space ~
23526 \begin_inset CommandInset ref
23528 reference "sec:Colored-Boxes"
23537 the note uses always the whole text width and the note is set into its
23541 \begin_layout Standard
23542 \begin_inset VSpace bigskip
23545 When you use the toolbar button
23546 \begin_inset Graphics
23547 filename ../images/note-insert.png
23549 scaleBeforeRotation
23556 \begin_inset space ~
23562 You can switch between the five note types by right-clicking on the note-box.
23567 If you want to turn existing text into a note, mark it and click on the
23581 To change a note to text, press the backspace key when the cursor is in
23582 the first position of a note, or press the deletey key when the cursor
23583 is in the very last position of the note, respectively.
23586 \begin_layout Standard
23587 \begin_inset VSpace bigskip
23590 You can change the text color of the greyed out notes in the preamble with
23591 the following command:
23594 \begin_layout Standard
23599 renewenvironment{lyxgreyedout}
23600 \begin_inset Newline newline
23607 \begin_layout Plain Layout
23625 \begin_layout Standard
23626 The available colors and the method to define own colors is explained in
23628 \begin_inset space ~
23632 \begin_inset CommandInset ref
23634 reference "sec:Colored-Tables"
23641 \begin_layout Standard
23642 Notes that appear in blue in this document are set using greyed out notes
23646 \begin_layout Standard
23647 \begin_inset VSpace bigskip
23653 \begin_layout Standard
23662 notes can be set in the
23669 \begin_layout Standard
23670 The default frame width for
23675 \begin_inset space \thinspace{}
23678 pt; it can be changed by changing the size
23685 The default space between the note content and the frame is 9
23686 \begin_inset space \thinspace{}
23689 pt; it can be changed by changing the size
23696 For example the frame appearance of the following
23700 note is set with the TeX-Code commands
23703 \begin_layout Standard
23713 \begin_layout Standard
23717 \begin_layout Plain Layout
23729 \begin_inset Box Framed
23738 height_special "totalheight"
23741 \begin_layout Plain Layout
23755 \begin_layout Plain Layout
23769 \begin_layout Standard
23770 \begin_inset VSpace bigskip
23776 \begin_layout Standard
23781 notes the default space between the note content and the note border is
23783 \begin_inset space \thinspace{}
23786 pt; it can be changed by changing the size
23793 \begin_inset Newline newline
23796 The default background color red can be changed with the command
23800 definecolor{shadebox}
23809 command is explained in section
23810 \begin_inset space ~
23814 \begin_inset CommandInset ref
23816 reference "sec:Colored-Tables"
23824 \begin_layout Plain Layout
23831 \SpecialChar \textcompwordmark{}
23836 requires the LaTeX-package
23840 in the preamble, see section
23841 \begin_inset space ~
23845 \begin_inset CommandInset ref
23847 reference "sec:Colored-Boxes"
23859 \begin_layout Standard
23860 For example the appearance of the following
23864 note is set with the TeX-Code commands
23867 \begin_layout Standard
23875 \begin_inset Newline newline
23882 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
23885 \begin_layout Standard
23889 \begin_layout Plain Layout
23902 \begin_layout Plain Layout
23906 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
23912 \begin_inset Box Shaded
23921 height_special "totalheight"
23924 \begin_layout Plain Layout
23927 This is yellow text in a
23937 note with darkgreen background.
23946 \begin_layout Plain Layout
23959 \begin_layout Plain Layout
23963 definecolor{shadecolor}{rgb}{1,0,0}
23971 \begin_layout Section
23973 \begin_inset CommandInset label
23975 name "sec:Footnotes"
23983 \begin_layout Plain Layout
23993 \begin_layout Plain Layout
24002 \begin_layout Standard
24003 Footnotes can be inserted using the toolbar button
24004 \begin_inset Graphics
24005 filename ../images/footnote-insert.png
24007 scaleBeforeRotation
24013 Insert\SpecialChar \menuseparator
24025 then the following footnote-box:
24026 \begin_inset Graphics
24027 filename clipart/footnoteQt4.png
24029 scaleBeforeRotation
24037 where you can enter the footnote text.
24038 If you want to turn existing text into a footnote, mark it and click on
24060 to text, press the Backspace key when the cursor is in the first position
24069 , or press the Delete key when the cursor is in the very last position of
24081 \begin_layout Standard
24082 Here is an example footnote:
24090 \begin_layout Plain Layout
24091 \begin_inset CommandInset label
24093 name "foot:This-is-an"
24097 This is an example footnote.
24110 \begin_layout Plain Layout
24114 newcounter{MyRepeatFoot}
24117 \begin_layout Plain Layout
24121 setcounter{MyRepeatFoot}{
24131 \begin_layout Standard
24132 The footnote will appear in the output as a superscript number at the text
24133 position where the footnote box is placed.
24134 The footnote text is placed at the bottom of the current page.
24135 The footnote number is calculated by LaTeX, the numbers are consecutive.
24136 It depends on your document-class, if the footnote number is reset for
24140 \begin_layout Standard
24141 Footnotes can be referenced like floats: Insert a label into the footnote
24142 and cross-reference this label in the text as described in section
24143 \begin_inset space ~
24147 \begin_inset CommandInset ref
24149 reference "sec:Referencing-Floats"
24154 \begin_inset Newline newline
24157 This is a cross-reference of Footnote
24158 \begin_inset space ~
24162 \begin_inset CommandInset ref
24164 reference "foot:This-is-an"
24171 \begin_layout Standard
24172 \begin_inset VSpace defskip
24175 To use footnotes within tables, you have to use minipages, see section
24176 \begin_inset space ~
24180 \begin_inset CommandInset ref
24182 reference "sec:Minipages"
24187 Footnotes within longtables are described in section
24188 \begin_inset space ~
24192 \begin_inset CommandInset ref
24194 reference "sub:Footnotes-in-Longtables"
24201 \begin_layout Standard
24202 \begin_inset VSpace defskip
24205 To create only a mark for a footnote, use the command
24209 footnotemark[number]
24212 This is used when you have the same annotation several times in a text
24213 but doesn't want to print the footnote text every time.
24214 \begin_inset Newline newline
24217 As you don't know the number of the repeating footnote while you are writing
24218 the text, you have to store its number.
24219 For the following footnote mark example, these commands were inserted in
24220 TeX-Code behind Footnote
24221 \begin_inset space ~
24225 \begin_inset CommandInset ref
24227 reference "foot:This-is-an"
24231 to store the footnote number:
24234 \begin_layout Standard
24239 newcounter{MyRepeatFoot}
24240 \begin_inset Newline newline
24245 setcounter{MyRepeatFoot}{
24250 \begin_layout Standard
24251 The footnote mark was then created with this command:
24254 \begin_layout Standard
24264 \begin_layout Standard
24265 Here is an example footnote mark:
24273 \begin_layout Plain Layout
24287 \begin_layout Subsection
24289 \begin_inset CommandInset label
24291 name "sub:Footnote-Numbering"
24299 \begin_layout Plain Layout
24300 Footnotes ! Numbering
24308 \begin_layout Standard
24309 To reset the footnote number back to 1 after each section
24311 , add this command to your document preamble:
24314 \begin_layout Standard
24319 @addtoreset{footnote}{section}
24322 \begin_layout Standard
24323 \begin_inset VSpace bigskip
24326 The following preamble command changes the footnote numbering style to small
24330 \begin_layout Standard
24342 \begin_layout Standard
24346 \begin_layout Plain Layout
24359 This is a footnote with roman numbering:
24363 \begin_layout Plain Layout
24364 This is an example footnote with roman numbering.
24372 \begin_layout Standard
24373 To change the numbering style to capital roman numerals replace in the command
24388 \begin_inset Quotes eld
24392 \begin_inset Quotes erd
24395 footnotes with capital or small Latin letters use
24409 \begin_inset Quotes eld
24413 \begin_inset Quotes erd
24416 footnotes with symbols use
24425 \begin_layout Standard
24426 \begin_inset Note Greyedout
24429 \begin_layout Plain Layout
24434 You can only number 26 footnotes with Latin letters, because this numbering
24435 is limited to single letters.
24441 \begin_inset Newline newline
24445 \begin_inset Note Greyedout
24448 \begin_layout Plain Layout
24453 You can only number 9 footnotes with symbols.
24461 \begin_layout Standard
24462 To return to the default numbering style when you changed to another one,
24475 in the command above.
24479 \begin_layout Plain Layout
24495 \begin_layout Standard
24496 \begin_inset VSpace bigskip
24502 \begin_layout Standard
24503 If you want to have footnotes numbered in the scheme
24504 \begin_inset Quotes eld
24508 \begin_inset Quotes erd
24511 , add the following command to your document preamble:
24514 \begin_layout Standard
24519 numberwithin{footnote}{chapter}
24522 \begin_layout Standard
24523 To be able to use the command
24532 \begin_inset space ~
24537 in the document settings the option
24540 \begin_inset space ~
24544 \begin_inset space ~
24548 \begin_inset space ~
24556 \begin_layout Standard
24560 \begin_layout Plain Layout
24564 numberwithin{footnote}{chapter}
24569 This is another example footnote:
24575 \begin_layout Plain Layout
24576 This is a footnote numbered in the scheme
24577 \begin_inset Quotes eld
24581 \begin_inset Quotes erd
24595 \begin_layout Plain Layout
24611 \begin_layout Standard
24612 \begin_inset Note Greyedout
24615 \begin_layout Plain Layout
24626 always prints out the footnote number as arabic number; previous redefinitions
24627 to get non-arabic numbers are overwritten.
24635 \begin_layout Standard
24636 So to get for example the scheme
24637 \begin_inset Quotes eld
24643 \begin_inset Quotes erd
24646 , use this command instead of
24655 \begin_layout Standard
24669 \begin_layout Subsection
24674 \begin_layout Plain Layout
24675 Footnotes ! Placement
24683 \begin_layout Standard
24684 If you have several footnotes in one page, they appear without vertical
24685 space between them at the bottom of the page.
24686 To make them better readable you can e.
24687 \begin_inset space \thinspace{}
24691 \begin_inset space ~
24695 \begin_inset space \thinspace{}
24698 mm space with the following preamble command:
24701 \begin_layout Standard
24711 \begin_inset Newline newline
24725 \begin_layout Standard
24726 \begin_inset VSpace bigskip
24729 In a two-column document the footnotes appear at the bottom of every column,
24731 \begin_inset space ~
24735 \begin_inset CommandInset ref
24737 reference "fig:Standard-footnote-placement"
24742 If the footnotes should only appear at the bottom of the right column,
24744 \begin_inset space ~
24748 \begin_inset CommandInset ref
24750 reference "fig:Footnote-placement-in"
24754 , use the LaTeX-package
24762 \begin_layout Plain Layout
24763 LaTeX-packages ! ftnright
24768 with this command in the document preamble:
24771 \begin_layout Standard
24776 usepackage{ftnright}
24779 \begin_layout Standard
24780 \begin_inset Float figure
24786 \begin_layout Plain Layout
24790 \begin_layout Plain Layout
24800 \begin_inset Graphics
24801 filename clipart/without_fntright.pdf
24803 scaleBeforeRotation
24811 \begin_layout Plain Layout
24821 \begin_layout Plain Layout
24822 \begin_inset Caption
24824 \begin_layout Plain Layout
24825 \begin_inset CommandInset label
24827 name "fig:Standard-footnote-placement"
24831 Standard footnote placement in two-column documents.
24844 \begin_layout Standard
24845 \begin_inset Float figure
24851 \begin_layout Plain Layout
24855 \begin_layout Plain Layout
24865 \begin_inset Graphics
24866 filename clipart/with_fntright.pdf
24868 scaleBeforeRotation
24876 \begin_layout Plain Layout
24886 \begin_layout Plain Layout
24887 \begin_inset Caption
24889 \begin_layout Plain Layout
24890 \begin_inset CommandInset label
24892 name "fig:Footnote-placement-in"
24896 Footnote placement in two-column documents when the LaTeX-package
24913 \begin_layout Standard
24914 \begin_inset VSpace bigskip
24917 In some scientific literature it is usual to collect the footnotes and print
24918 them in a separate paragraph at the the end of a section, like in Figure
24919 \begin_inset space ~
24923 \begin_inset CommandInset ref
24925 reference "fig:Endnotes----footnotes"
24930 They are then so called
24931 \begin_inset Quotes eld
24935 \begin_inset Quotes erd
24942 \begin_layout Plain Layout
24948 To use endnotes instead of footnotes in your document, load the LaTeX-package
24957 \begin_layout Plain Layout
24958 LaTeX-packages ! endnotes
24963 with the document preamble lines
24966 \begin_layout Standard
24971 usepackage{endnotes}
24972 \begin_inset Newline newline
24984 \begin_layout Standard
24985 To insert the collected footnotes, insert the command
24988 \begin_layout Standard
24996 \begin_layout Standard
24997 in TeX-Code at the the end of a section or chapter.
25000 \begin_layout Standard
25001 \begin_inset Float figure
25006 \begin_layout Plain Layout
25011 \begin_layout Plain Layout
25021 \begin_inset Graphics
25022 filename clipart/endnotes.pdf
25023 scaleBeforeRotation
25031 \begin_layout Plain Layout
25041 \begin_layout Plain Layout
25042 \begin_inset Caption
25044 \begin_layout Plain Layout
25045 \begin_inset CommandInset label
25047 name "fig:Endnotes----footnotes"
25051 Endnotes -- footnotes are printed in a separate paragraph at the end of
25052 sections or chapters.
25065 \begin_layout Standard
25066 \begin_inset VSpace medskip
25069 The paragraph heading for the endnotes isn't automatically translated into
25070 the document language, this must be done manually.
25071 The following preamble command translate the default English name
25072 \begin_inset Quotes eld
25076 \begin_inset Quotes erd
25079 to the German translation
25080 \begin_inset Quotes eld
25084 \begin_inset Quotes erd
25090 \begin_layout Standard
25097 notesname}{Anmerkungen}
25100 \begin_layout Standard
25101 \begin_inset VSpace medskip
25104 The numbering of endnotes can be changed like the footnote numbering as
25105 described in section
25106 \begin_inset space ~
25110 \begin_inset CommandInset ref
25112 reference "sub:Footnote-Numbering"
25116 ; just replace the command
25129 To reset the endnote number use the command
25135 as described in section
25136 \begin_inset space ~
25140 \begin_inset CommandInset ref
25142 reference "sub:Footnote-Numbering"
25146 and replace the command parameter
25157 \begin_layout Standard
25158 To create only a mark for an endnote, use the command
25162 endnotemark[number]
25164 similar to the command
25170 , described in section
25171 \begin_inset space ~
25175 \begin_inset CommandInset ref
25177 reference "sec:Footnotes"
25184 \begin_layout Standard
25185 \begin_inset VSpace bigskip
25188 Footnotes can also be placed in the page margin and the footnote text alignment
25189 can be changed, see the LaTeX-package
25197 \begin_layout Plain Layout
25198 LaTeX-packages ! footmisc
25204 \begin_inset CommandInset citation
25210 for more information about this.
25213 \begin_layout Standard
25214 For various further footnote formatting issues have a look at LaTeX-books,
25216 \begin_inset CommandInset citation
25218 key "latexcompanion,latexguide,latexbook"
25225 \begin_layout Section
25230 \begin_layout Plain Layout
25231 Notes ! Margin Notes
25239 \begin_layout Standard
25240 Margin notes look and behave in LyX like footnotes.
25241 They are inserted via the menu
25243 Insert\SpecialChar \menuseparator
25245 \begin_inset space ~
25250 or the toolbar button
25251 \begin_inset Graphics
25252 filename ../images/marginalnote-insert.png
25254 scaleBeforeRotation
25269 \begin_inset Quotes eld
25273 \begin_inset Quotes erd
25276 appears where you can enter the text of the margin note.
25279 \begin_layout Standard
25280 At the side is an example margin note.
25285 \begin_inset Marginal
25288 \begin_layout Plain Layout
25289 This is a margin note.
25297 \begin_layout Standard
25298 Margin notes appear at the right side in single-sided documents.
25299 In double-sided documents they appear in the outer margin -- left on even
25300 pages, right on odd pages.
25301 The text of margin notes is aligned opposite to the outer margin -- right-align
25302 ed when the note appears in the left margin.
25303 The first line of the margin note is placed at the position of the text
25304 line where it is inserted in the document.
25307 \begin_layout Standard
25308 \begin_inset VSpace bigskip
25311 To place the margin note in the inner margin, add the command
25314 \begin_layout Standard
25322 \begin_layout Standard
25323 in TeX-Code before a margin note.
25324 The new placement is valid for all following margin notes.
25329 \begin_layout Plain Layout
25339 \begin_inset Marginal
25342 \begin_layout Plain Layout
25343 This is a margin note in the inner margin.
25351 \begin_inset Newline newline
25357 \begin_inset Note Greyedout
25360 \begin_layout Plain Layout
25365 There is often not enough space in the inner margin so that the notes are
25366 not correctly displayed in the output.
25374 \begin_layout Standard
25375 To return to the default placement insert the command
25378 \begin_layout Standard
25386 \begin_layout Standard
25391 \begin_layout Plain Layout
25401 \begin_inset Note Greyedout
25404 \begin_layout Plain Layout
25409 The command is ignored when it is within a paragraph where also the command
25424 \begin_layout Standard
25425 \begin_inset VSpace bigskip
25432 \begin_inset Marginal
25435 \begin_layout Plain Layout
25436 AVeryLongMarginParWord that isn't hyphenated.
25444 Similar to the case described in section
25445 \begin_inset space ~
25449 \begin_inset CommandInset ref
25451 reference "sub:Multiple-Lines-in"
25455 , long words cannot be hyphenated when they are the first word in a margin
25457 To avoid this, insert 0
25458 \begin_inset space \thinspace{}
25461 pt horizontal space before the word
25466 \begin_inset Marginal
25469 \begin_layout Plain Layout
25470 \begin_inset space \hspace*{}
25474 AVeryLongMarginParWord that is hyphenated.
25482 \begin_layout Standard
25483 \begin_inset VSpace bigskip
25489 \begin_layout Standard
25490 \begin_inset Note Greyedout
25493 \begin_layout Plain Layout
25498 Margin notes can normally not be used inside tables, floats, and footnotes.
25506 \begin_layout Standard
25507 \begin_inset VSpace bigskip
25513 \begin_layout Standard
25517 \begin_layout Plain Layout
25527 \begin_inset Note Note
25530 \begin_layout Plain Layout
25531 The following section will only be displayed when the LaTeX-package
25543 \begin_layout Standard
25544 This restriction can be evaded by using the LaTeX-package
25552 \begin_layout Plain Layout
25553 LaTeX-packages ! marginnote
25559 By adding these two lines to your document preamble, the command used by
25560 LyX for margin notes is redefined to use the command provided by the
25567 \begin_layout Standard
25572 usepackage{marginnote}
25573 \begin_inset Newline newline
25585 \begin_layout Standard
25586 This is also used in this document because
25590 has another useful feature: You can set a vertical offset for the note.
25591 This is often needed when too many margin notes are too close together
25592 or for a better page layout.
25593 The offset is set in LyX as TeX-Code directly behind the margin note in
25597 \begin_layout Standard
25603 \begin_layout Standard
25604 where the offset is a length with one of the units listed in Table
25605 \begin_inset space ~
25609 \begin_inset CommandInset ref
25611 reference "tab:Units"
25616 A negative value shifts the note up, a positive value shifts it down.
25620 For example the margin note beside this text line is shifted up 1.5
25621 \begin_inset space \thinspace{}
25624 cm with the TeX-Code-command
25625 \begin_inset Quotes eld
25635 \begin_inset Quotes erd
25639 \begin_inset Marginal
25642 \begin_layout Plain Layout
25643 This margin note is shifted up 1.5
25644 \begin_inset space \thinspace{}
25647 cm from its original position.
25659 \begin_layout Plain Layout
25669 \begin_layout Standard
25670 \begin_inset VSpace medskip
25677 you can also change the alignment of the text in the margin note.
25678 For example the commands
25681 \begin_layout Standard
25688 raggedleftmarginnote}{
25691 \begin_inset Newline newline
25698 raggedrightmarginnote}{
25703 \begin_layout Standard
25704 set the alignment to centered.
25709 raggedleftmarginnote
25711 denotes margin notes that appear at the left side.
25718 \begin_layout Plain Layout
25724 raggedleftmarginnote}{
25729 \begin_layout Plain Layout
25735 raggedrightmarginnote}{
25743 \begin_inset Marginal
25746 \begin_layout Plain Layout
25747 The text of this margin note is centered.
25758 \begin_layout Standard
25765 raggedleftmarginnote}{
25768 \begin_inset Newline newline
25775 raggedrightmarginnote}{
25784 \begin_layout Plain Layout
25790 raggedleftmarginnote}{
25795 \begin_layout Plain Layout
25801 raggedrightmarginnote}{
25811 \begin_layout Standard
25812 \begin_inset VSpace medskip
25815 For the other features of
25819 we refer to its documentation
25820 \begin_inset CommandInset citation
25829 \begin_layout Standard
25830 \begin_inset VSpace bigskip
25833 You can adjust the layout of margin notes by changing its definition.
25834 To create for example a header for all margin notes with the underlined,
25835 sans-serif, and bold header text
25836 \begin_inset Quotes eld
25848 \begin_inset Quotes erd
25851 , add this to your document preamble:
25854 \begin_layout Standard
25864 \begin_inset Newline newline
25874 \begin_inset Newline newline
25881 \begin_layout Plain Layout
25898 underbar{Attention!}}}%
25899 \begin_inset Newline newline
25906 \begin_layout Plain Layout
25924 \begin_layout Standard
25931 \begin_layout Plain Layout
25942 \begin_layout Plain Layout
25953 \begin_layout Plain Layout
25961 underbar{Attention!}}}%
25964 \begin_layout Plain Layout
25978 \begin_inset Marginal
25981 \begin_layout Plain Layout
25982 This is a margin note with a defined heading.
25994 \begin_layout Plain Layout
26008 \begin_layout Plain Layout
26025 \begin_inset Note Note
26028 \begin_layout Plain Layout
26029 The margin note format is changed only for this example.
26037 \begin_layout Standard
26041 \begin_layout Plain Layout
26051 \begin_inset Note Note
26054 \begin_layout Plain Layout
26055 The following will be displayed when the LaTeX-package
26067 \begin_layout Standard
26068 You need to install the LaTeX-package
26072 to see the following part of this section in the output.
26075 \begin_layout Standard
26079 \begin_layout Plain Layout
26091 \begin_layout Chapter
26095 \begin_layout Section
26100 \begin_layout Plain Layout
26101 Boxes ! Introduction
26109 \begin_layout Standard
26110 Boxes are used to format a block of text.
26111 Boxes can be used to write documents with multiple languages, see section
26112 \begin_inset space ~
26116 \begin_inset CommandInset ref
26118 reference "sec:Minipages"
26122 , to frame texts, see section
26123 \begin_inset space ~
26127 \begin_inset CommandInset ref
26129 reference "sec:Framed-Boxes"
26133 , to prevent words to be hyphenated, see section
26134 \begin_inset space ~
26138 \begin_inset CommandInset ref
26140 reference "sec:Prevent-Hyphenation"
26144 , to align text, see section
26145 \begin_inset space ~
26149 \begin_inset CommandInset ref
26151 reference "sub:Vertical-Alignment"
26155 , or to set the background color of texts, see section
26156 \begin_inset space ~
26160 \begin_inset CommandInset ref
26162 reference "sec:Colored-Boxes"
26169 \begin_layout Standard
26170 Boxes can be inserted with the menu
26172 Insert\SpecialChar \menuseparator
26175 or the toolbar button
26176 \begin_inset Graphics
26177 filename ../images/box-insert.png
26179 scaleBeforeRotation
26184 A grey box with the label
26189 \begin_inset Graphics
26190 filename clipart/BoxInsetDefaultQt4.png
26192 scaleBeforeRotation
26196 , will be inserted.
26197 The box type can be specified by right-clicking on the box.
26198 The appearing box dialog offers the
26201 \begin_inset space ~
26219 is the default for new boxes and is explained in section
26220 \begin_inset space ~
26224 \begin_inset CommandInset ref
26226 reference "sec:Minipages"
26234 is described in section
26235 \begin_inset space ~
26239 \begin_inset CommandInset ref
26241 reference "sec:Parboxes"
26248 \begin_layout Standard
26249 Boxes aren't numbered and can therefore not be referenced like floats or
26253 \begin_layout Standard
26254 \begin_inset Note Greyedout
26257 \begin_layout Plain Layout
26262 Boxes must not be the item in an
26278 \begin_layout Standard
26279 \begin_inset Note Greyedout
26282 \begin_layout Plain Layout
26287 For an unknown reason you can only set the
26290 \begin_inset space ~
26299 when you use a framed box.
26303 \begin_inset space ~
26308 type and without frames are explained in section
26309 \begin_inset space ~
26313 \begin_inset CommandInset ref
26315 reference "sec:Prevent-Hyphenation"
26327 \begin_layout Section
26329 \begin_inset CommandInset label
26331 name "sec:Box-Dialog"
26339 \begin_layout Plain Layout
26348 \begin_layout Subsection
26353 \begin_layout Plain Layout
26362 \begin_layout Standard
26363 In the box dialog you can adjust the box geometry in the fields
26372 The available units for the geometry are explained in Table
26373 \begin_inset space ~
26377 \begin_inset CommandInset ref
26379 reference "tab:Units"
26388 offers the following additional sizes:
26391 \begin_layout Description
26392 Depth This is the plain text
26393 \begin_inset Quotes eld
26397 \begin_inset Quotes erd
26401 It ignores the total depth when there are multiple text lines in the box:
26402 \begin_inset Newline newline
26406 \begin_inset Newline newline
26410 \begin_inset Newline newline
26414 \begin_inset Box Boxed
26423 height_special "depth"
26426 \begin_layout Plain Layout
26428 Box height set to 1
26429 \begin_inset space \thinspace{}
26438 \begin_inset Newline newline
26442 \begin_inset Newline newline
26448 \begin_layout Description
26449 Height This is the heigth of the text that is inside the box.
26451 \begin_inset space \thinspace{}
26455 \begin_inset space ~
26458 2 for this size will set the box heigth to 2 times the text height:
26459 \begin_inset Box Boxed
26468 height_special "height"
26471 \begin_layout Plain Layout
26473 Box height set to 2
26474 \begin_inset space \thinspace{}
26485 \begin_layout Description
26487 \begin_inset space ~
26490 Height This is the Height
26491 \begin_inset space \thinspace{}
26495 \begin_inset space \thinspace{}
26499 \begin_inset Box Boxed
26508 height_special "totalheight"
26511 \begin_layout Plain Layout
26513 Box height set to 1
26514 \begin_inset space \thinspace{}
26518 \begin_inset space ~
26529 \begin_layout Description
26530 Width This sets the width of the box as heigth:
26531 \begin_inset Box Boxed
26540 height_special "width"
26543 \begin_layout Plain Layout
26545 Box height set to 1
26546 \begin_inset space \thinspace{}
26557 \begin_layout Subsection
26562 \begin_layout Plain Layout
26571 \begin_layout Standard
26572 When you have chosen an
26575 \begin_inset space ~
26580 , the vertical box alignment can be:
26583 \begin_layout Description
26584 Top This is an example text line.
26586 \begin_inset Box Boxed
26595 height_special "totalheight"
26598 \begin_layout Plain Layout
26600 This box is top-aligned.
26605 This is an example text line.
26608 \begin_layout Description
26609 Middle This is an example text line.
26611 \begin_inset Box Boxed
26620 height_special "totalheight"
26623 \begin_layout Plain Layout
26625 This box is middle-aligned.
26630 This is an example text line.
26633 \begin_layout Description
26634 Bottom This is an example text line.
26636 \begin_inset Box Boxed
26645 height_special "totalheight"
26648 \begin_layout Plain Layout
26650 This box is bottom-aligned.
26655 This is an example text line.
26658 \begin_layout Standard
26659 \begin_inset Note Greyedout
26662 \begin_layout Plain Layout
26667 The vertical box aligment can be lost in the output when you have two boxes
26668 in a line and one has e.
26669 \begin_inset space \thinspace{}
26673 \begin_inset space ~
26676 a shadow and the other one not.
26684 \begin_layout Standard
26685 The horizontal box alignment can be set via LyX's paragraph dialog when
26686 you set the box into its own paragraph.
26689 \begin_layout Standard
26690 \begin_inset VSpace bigskip
26693 When you have chosen an
26696 \begin_inset space ~
26701 , the box content can be vertical aligned to:
26704 \begin_layout Description
26705 top This is an example text line.
26707 \begin_inset Box Boxed
26716 height_special "totalheight"
26719 \begin_layout Plain Layout
26721 This box text is top-aligned.
26726 This is an example text line.
26729 \begin_layout Description
26730 middle This is an example text line.
26732 \begin_inset Box Boxed
26741 height_special "totalheight"
26744 \begin_layout Plain Layout
26746 This box text is middle-aligned.
26751 This is an example text line.
26754 \begin_layout Description
26755 bottom This is an example text line.
26757 \begin_inset Box Boxed
26766 height_special "totalheight"
26769 \begin_layout Plain Layout
26771 This box text is bottom-aligned.
26776 This is an example text line.
26779 \begin_layout Description
26780 stretch This is an example text line.
26782 \begin_inset Box Boxed
26791 height_special "totalheight"
26794 \begin_layout Plain Layout
26799 \begin_layout Plain Layout
26804 \begin_layout Plain Layout
26811 This is an example text line.
26814 \begin_layout Standard
26815 To stretch the box content, it must consist of more than one paragraph.
26816 In the example above every text line is in an own paragraph.
26819 \begin_layout Standard
26820 \begin_inset VSpace bigskip
26823 To align the box content horizontally you can use LyX's paragraph dialog
26824 when you have chosen an
26827 \begin_inset space ~
26835 \begin_layout Standard
26837 \begin_inset Box Boxed
26846 height_special "totalheight"
26849 \begin_layout Plain Layout
26854 \begin_layout Plain Layout
26859 \begin_layout Plain Layout
26869 \begin_layout Standard
26870 If you haven't set an
26873 \begin_inset space ~
26878 , you can align the box content horizontally in the box dialog.
26881 \begin_layout Standard
26883 \begin_inset Box Boxed
26892 height_special "totalheight"
26895 \begin_layout Plain Layout
26897 This box text is horizontally stretched.
26905 \begin_layout Section
26907 \begin_inset CommandInset label
26909 name "sec:Framed-Boxes"
26917 \begin_layout Plain Layout
26926 \begin_layout Standard
26927 The frame style of the box can be specified in the box-dialog in the drop-down
26933 The following frame types are possible:
26936 \begin_layout Description
26938 \begin_inset space ~
26941 box This draws a rectangle frame around the box.
26942 The frame line thickness has the size of
26950 \begin_inset Box Boxed
26959 height_special "totalheight"
26962 \begin_layout Plain Layout
26972 \begin_layout Description
26974 \begin_inset space ~
26978 \begin_inset space ~
26981 thin This draws an oval frame around the box.
26982 The frame line thickness has the size 0.4
26983 \begin_inset space \thinspace{}
26988 \begin_inset Box ovalbox
26997 height_special "totalheight"
27000 \begin_layout Plain Layout
27010 \begin_layout Description
27012 \begin_inset space ~
27016 \begin_inset space ~
27019 thick This draws an oval frame around the box.
27020 The frame line thickness has the size 0.8
27021 \begin_inset space \thinspace{}
27026 \begin_inset Box Ovalbox
27035 height_special "totalheight"
27038 \begin_layout Plain Layout
27048 \begin_layout Description
27050 \begin_inset space ~
27053 box This draws a rectangle frame with a shadow around the box.
27054 The frame line thickness has the size of
27060 , the shadow has a width of 4
27061 \begin_inset space \thinspace{}
27066 \begin_inset Box Shadowbox
27075 height_special "totalheight"
27078 \begin_layout Plain Layout
27088 \begin_layout Description
27090 \begin_inset space ~
27093 box This draws a double-line rectangle frame around the box.
27094 The line thickness of the inner frame is 0.75
27095 \begin_inset space \thinspace{}
27104 , the thickness of the outer frame is 1.5
27105 \begin_inset space \thinspace{}
27115 The distance between the lines is 1.5
27116 \begin_inset space \thinspace{}
27126 \begin_inset space \thinspace{}
27130 \begin_inset space \thinspace{}
27134 \begin_inset space \thinspace{}
27139 \begin_inset Box Doublebox
27148 height_special "totalheight"
27151 \begin_layout Plain Layout
27161 \begin_layout Standard
27162 \begin_inset VSpace bigskip
27165 LyX's box label will change to the used frame style when you set a frame.
27166 To be able to use the different frame styles, the LaTeX-package
27174 \begin_layout Plain Layout
27175 LaTeX-packages ! fancybox
27183 \begin_layout Standard
27184 \begin_inset VSpace bigskip
27187 The default value for the size
27194 \begin_inset space \thinspace{}
27198 It can be changed with the following command in TeX-Code to e.
27199 \begin_inset space \thinspace{}
27203 \begin_inset space ~
27207 \begin_inset space \thinspace{}
27213 \begin_layout Standard
27223 \begin_layout Standard
27227 \begin_layout Plain Layout
27239 \begin_inset Box Boxed
27248 height_special "totalheight"
27251 \begin_layout Plain Layout
27253 Rectangular box with
27260 \begin_inset space \thinspace{}
27264 \begin_inset space \thinspace{}
27268 \begin_inset space \thinspace{}
27280 \begin_layout Plain Layout
27294 \begin_layout Standard
27295 \begin_inset VSpace bigskip
27298 The space between the frame and the box content is for all frame styles
27300 \begin_inset space \thinspace{}
27304 You can change it by setting the length
27311 For example the command
27314 \begin_layout Standard
27324 \begin_layout Standard
27325 sets the value to 10
27326 \begin_inset space \thinspace{}
27329 pt, like for the following box:
27332 \begin_layout Standard
27336 \begin_layout Plain Layout
27348 \begin_inset Box Boxed
27357 height_special "totalheight"
27360 \begin_layout Plain Layout
27362 Rectangular box with
27369 \begin_inset space \thinspace{}
27373 \begin_inset space \thinspace{}
27377 \begin_inset space \thinspace{}
27389 \begin_layout Plain Layout
27403 \begin_layout Standard
27404 \begin_inset VSpace bigskip
27407 The diameter of the round corners of the oval boxes can be set with the
27418 \begin_layout Standard
27426 \begin_layout Standard
27427 sets the diameter to 1
27428 \begin_inset space \thinspace{}
27435 \begin_layout Standard
27443 \begin_layout Standard
27444 sets the diameter to
27447 \begin_inset space \thinspace{}
27451 \begin_inset space \thinspace{}
27454 minimum(width and heigth of box)
27466 \begin_layout Standard
27470 \begin_layout Plain Layout
27480 \begin_inset Box Ovalbox
27489 height_special "totalheight"
27492 \begin_layout Plain Layout
27501 \begin_inset space \thinspace{}
27505 \begin_inset space \thinspace{}
27509 \begin_inset space \thinspace{}
27521 \begin_layout Plain Layout
27533 \begin_layout Standard
27534 \begin_inset VSpace bigskip
27537 The size of the shadow can be adjusted by changing the length
27545 \begin_inset space \thinspace{}
27548 pt for the following box by this command:
27551 \begin_layout Standard
27561 \begin_layout Standard
27565 \begin_layout Plain Layout
27577 \begin_inset Box Shadowbox
27586 height_special "totalheight"
27589 \begin_layout Plain Layout
27598 \begin_inset space \thinspace{}
27602 \begin_inset space \thinspace{}
27606 \begin_inset space \thinspace{}
27618 \begin_layout Plain Layout
27632 \begin_layout Standard
27633 \begin_inset VSpace bigskip
27636 Changed lengths and widths are valid for all boxes following the commands
27640 \begin_layout Section
27642 \begin_inset CommandInset label
27644 name "sec:Minipages"
27652 \begin_layout Plain Layout
27661 \begin_layout Standard
27662 Minipages are treated by LaTeX as pages within pages and can therefore for
27663 example have their own footnotes.
27666 \begin_layout Standard
27667 Minipages are useful when you write documents with different languages.
27670 \begin_layout Standard
27671 Below are two example minipages side by side.
27672 Their width is set to 45
27673 \begin_inset space \thinspace{}
27676 col% and they are separated by a horizontal fill, that was inserted via
27679 Insert\SpecialChar \menuseparator
27681 \begin_inset space ~
27684 Formatting\SpecialChar \menuseparator
27686 \begin_inset space ~
27694 \begin_layout Standard
27695 \begin_inset Box Frameless
27704 height_special "totalheight"
27707 \begin_layout Plain Layout
27710 Dies ist ein deutscher Text.
27711 Dies ist ein deutscher Text.
27712 Dies ist ein deutscher Text.
27713 Dies ist ein deutscher Text.
27714 Dies ist ein deutscher Text.
27715 Dies ist ein deutscher Text.
27716 Dies ist ein deutscher Text.
27717 Dies ist ein deutscher Text.
27718 Dies ist ein deutscher Text.
27719 Dies ist ein deutscher Text.
27720 Dies ist ein deutscher Text.
27721 Dies ist ein deutscher Text.
27722 Dies ist ein deutscher Text
27726 \begin_layout Plain Layout
27729 Dies ist eine deutsche Fußnote.
27735 Dies ist ein deutscher Text.
27736 Dies ist ein deutscher Text.
27742 \begin_inset space \hfill{}
27746 \begin_inset Box Frameless
27755 height_special "totalheight"
27758 \begin_layout Plain Layout
27759 This is an English Text.
27760 This is an English Text.
27761 This is an English Text.
27762 This is an English Text.
27763 This is an English Text.
27764 This is an English Text.
27765 This is an English Text.
27766 This is an English Text.
27767 This is an English Text.
27768 This is an English Text.
27769 This is an English Text.
27770 This is an English Text.
27771 This is an English Text.
27772 This is an English Text.
27773 This is an English Text.
27774 This is an English Text.
27778 \begin_layout Plain Layout
27779 This is an English footnote.
27784 This is an English Text.
27793 \begin_layout Standard
27794 \begin_inset VSpace bigskip
27797 Another application for minipages are footnotes within tables.
27798 Due to a LaTeX restriction footnotes within tables doesn't appear at the
27799 bottom of the current page.
27800 But when you put the table with the footnote to a minipage, the footnote
27801 will appear at its bottom, numbered with Latin letters.
27802 The footnote number is reset to 1 in every minipage but not outside the
27806 \begin_layout Standard
27807 The footnote of this table doesn't appear:
27808 \begin_inset Tabular
27809 <lyxtabular version="3" rows="3" columns="4">
27811 <column alignment="center" valignment="top" width="0pt">
27812 <column alignment="center" valignment="top" width="0pt">
27813 <column alignment="center" valignment="top" width="0pt">
27814 <column alignment="center" valignment="top" width="0pt">
27816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27819 \begin_layout Plain Layout
27825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27828 \begin_layout Plain Layout
27834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27837 \begin_layout Plain Layout
27842 \begin_layout Plain Layout
27843 This is a footnote within a table.
27853 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27856 \begin_layout Plain Layout
27864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27867 \begin_layout Plain Layout
27873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27876 \begin_layout Plain Layout
27882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27885 \begin_layout Plain Layout
27891 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27894 \begin_layout Plain Layout
27902 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27905 \begin_layout Plain Layout
27911 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27914 \begin_layout Plain Layout
27920 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27923 \begin_layout Plain Layout
27929 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27932 \begin_layout Plain Layout
27946 \begin_layout Standard
27948 \begin_inset Box Frameless
27957 height_special "totalheight"
27960 \begin_layout Plain Layout
27962 \begin_inset Tabular
27963 <lyxtabular version="3" rows="3" columns="4">
27965 <column alignment="center" valignment="top" width="0pt">
27966 <column alignment="center" valignment="top" width="0pt">
27967 <column alignment="center" valignment="top" width="0pt">
27968 <column alignment="center" valignment="top" width="0pt">
27970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27973 \begin_layout Plain Layout
27979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27982 \begin_layout Plain Layout
27988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27991 \begin_layout Plain Layout
27996 \begin_layout Plain Layout
27997 This is a footnote within a table.
28007 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28010 \begin_layout Plain Layout
28018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28021 \begin_layout Plain Layout
28027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28030 \begin_layout Plain Layout
28036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28039 \begin_layout Plain Layout
28045 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28048 \begin_layout Plain Layout
28056 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28059 \begin_layout Plain Layout
28065 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28068 \begin_layout Plain Layout
28074 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28077 \begin_layout Plain Layout
28083 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28086 \begin_layout Plain Layout
28105 \begin_layout Standard
28106 \begin_inset VSpace bigskip
28109 The document-wide paragraph settings are ignored within minipages.
28110 That means that there will be no space between paragraphs in minipages
28111 although you set it to e.
28112 \begin_inset space \thinspace{}
28116 \begin_inset space ~
28123 in the document settings.
28126 \begin_layout Standard
28127 Minipages can also be used to set a background color for text parts, see
28129 \begin_inset space ~
28133 \begin_inset CommandInset ref
28135 reference "sub:Color-for-Paragraphs"
28142 \begin_layout Standard
28143 \begin_inset Note Greyedout
28146 \begin_layout Plain Layout
28151 You cannot have floats or margin notes inside minipages but minipages can
28152 be used inside tables, floats, and other boxes.
28160 \begin_layout Section
28162 \begin_inset CommandInset label
28164 name "sec:Parboxes"
28172 \begin_layout Plain Layout
28181 \begin_layout Standard
28182 Parboxes are very similar to minipages with the difference that they cannot
28184 The main difference to minipages is that minipages are in contrary to parboxes
28185 no real boxes but LaTeX-environments.
28188 \begin_layout Standard
28190 \begin_inset Box Frameless
28199 height_special "totalheight"
28202 \begin_layout Plain Layout
28203 This a text within a parbox.
28204 This a text within a parbox.
28207 \begin_layout Plain Layout
28208 This footnote won't appear:
28212 \begin_layout Plain Layout
28213 This footnote is inside a parbox and will therefore not appear.
28226 \begin_layout Section
28227 Boxes for Words and Characters
28231 \begin_layout Plain Layout
28232 Boxes ! for Characters
28240 \begin_layout Subsection
28241 Prevent Hyphenation
28242 \begin_inset CommandInset label
28244 name "sec:Prevent-Hyphenation"
28252 \begin_layout Plain Layout
28253 Boxes ! to Prevent Hyphenation
28261 \begin_layout Standard
28262 You can use a special kind of boxes to prevent words or text to be hyphenated.
28263 \begin_inset Newline newline
28266 Here is an example text:
28269 \begin_layout Standard
28270 This line is an example to show how you can prevent the hyphenation of
28271 \begin_inset Quotes eld
28275 \begin_inset Quotes erd
28281 \begin_layout Standard
28282 To prevent the hyphenation of the word
28283 \begin_inset Quotes eld
28287 \begin_inset Quotes erd
28293 \begin_layout Standard
28301 \begin_layout Standard
28302 in TeX-Code before the word.
28303 Behind the word insert a closing brace
28304 \begin_inset Quotes eld
28312 \begin_inset Quotes erd
28318 \begin_layout Standard
28319 This is the result:
28322 \begin_layout Standard
28323 This line is an example to show how you can prevent the hyphenation of
28327 \begin_layout Plain Layout
28337 \begin_inset Quotes eld
28341 \begin_inset Quotes erd
28348 \begin_layout Plain Layout
28358 \begin_layout Standard
28359 You can alternatively set the command
28360 \begin_inset Quotes eld
28370 \begin_inset Quotes grd
28373 as TeX-Code directly before the word:
28376 \begin_layout Standard
28377 This line is an example to show how you can prevent the hyphenation of
28378 \begin_inset Quotes eld
28385 \begin_layout Plain Layout
28395 \begin_inset Quotes erd
28401 \begin_layout Standard
28402 Of course the word now protrudes over the side margin.
28403 To avoid this, add via the menu
28405 Insert\SpecialChar \menuseparator
28407 \begin_inset space ~
28410 Formatting\SpecialChar \menuseparator
28412 \begin_inset space ~
28421 ) a line break before the word:
28424 \begin_layout Standard
28425 This line is an example to show how you can prevent the hyphenation of
28426 \begin_inset Newline newline
28433 \begin_layout Plain Layout
28443 \begin_inset Quotes eld
28447 \begin_inset Quotes erd
28454 \begin_layout Plain Layout
28464 \begin_layout Subsection
28466 \begin_inset CommandInset label
28468 name "sub:Vertical-Alignment"
28476 \begin_layout Plain Layout
28477 Boxes ! for Vertical Alignment
28486 \begin_layout Plain Layout
28495 \begin_layout Standard
28496 With the help of the command
28502 you can align words, characters or other boxes vertically to the surrounding
28510 is used with the following scheme:
28513 \begin_layout Standard
28518 raisebox{lift}[height][depth]{box content}
28521 \begin_layout Standard
28522 The lift can be a positive value to raise the box or a negative value to
28526 \begin_layout Standard
28527 To align for example the word
28528 \begin_inset Quotes eld
28532 \begin_inset Quotes erd
28535 so that the bottom of the
28536 \begin_inset Quotes eld
28540 \begin_inset Quotes erd
28544 \begin_inset Quotes eld
28548 \begin_inset Quotes erd
28551 is at the baseline, insert the command
28554 \begin_layout Standard
28564 \begin_layout Standard
28565 in TeX-Code before the word.
28566 Behind the word insert a closing brace
28567 \begin_inset Quotes eld
28575 \begin_inset Quotes erd
28579 \begin_inset Newline newline
28582 This is the result:
28585 \begin_layout Standard
28586 This is a text line with the word
28590 \begin_layout Plain Layout
28602 \begin_inset Quotes eld
28606 \begin_inset Quotes erd
28613 \begin_layout Plain Layout
28623 \begin_layout Standard
28624 \begin_inset VSpace bigskip
28627 When you raise or lower characters in a line, the line distance will be
28631 \begin_layout Standard
28632 This is a text line with the word
28636 \begin_layout Plain Layout
28648 \begin_inset Quotes eld
28652 \begin_inset Quotes erd
28659 \begin_layout Plain Layout
28667 \begin_inset Newline newline
28670 This is a text line with the word
28674 \begin_layout Plain Layout
28684 \begin_inset Quotes eld
28688 \begin_inset Quotes erd
28695 \begin_layout Plain Layout
28705 \begin_layout Standard
28706 If you want to prevent this for a certain reason, set the box height to
28711 \begin_layout Standard
28721 \begin_layout Standard
28722 This is a text line with the word
28726 \begin_layout Plain Layout
28738 \begin_inset Quotes eld
28742 \begin_inset Quotes erd
28749 \begin_layout Plain Layout
28757 \begin_inset Newline newline
28760 This is a text line with the word
28764 \begin_layout Plain Layout
28768 raisebox{0.5cm}[0pt]{
28774 \begin_inset Quotes eld
28778 \begin_inset Quotes erd
28785 \begin_layout Plain Layout
28795 \begin_layout Section
28797 \begin_inset CommandInset label
28799 name "sec:Colored-Boxes"
28807 \begin_layout Plain Layout
28816 \begin_layout Subsection
28821 \begin_layout Plain Layout
28830 \begin_layout Standard
28831 To color the background of text the text must be put into a so called
28832 \begin_inset Quotes eld
28836 \begin_inset Quotes erd
28840 This requires that the LaTeX-package
28848 \begin_layout Plain Layout
28849 LaTeX-packages ! color
28854 is loaded in the document preamble with the command
28857 \begin_layout Standard
28862 @ifundefined{textcolor}
28863 \begin_inset Newline newline
28870 \begin_layout Plain Layout
28881 usepackage{color}}{}
28884 \begin_layout Standard
28889 will be loaded automatically by LyX when you color text
28893 \begin_layout Plain Layout
28894 To avoid that it is loaded twice the command
28898 @ifundef\SpecialChar \textcompwordmark{}
28909 \begin_layout Standard
28910 \begin_inset VSpace medskip
28913 Colorboxes are created with the command
28920 This will be used with the following scheme:
28923 \begin_layout Standard
28928 colorbox{color}{box content}
28931 \begin_layout Standard
28932 The box content can also be a box and colorboxes can also be within other
28936 \begin_layout Standard
28937 The following colors are predefined:
28938 \begin_inset Newline newline
28977 \begin_inset Newline newline
28980 You can also define your own color as described in section
28981 \begin_inset space ~
28985 \begin_inset CommandInset ref
28987 reference "sec:Colored-Tables"
28994 \begin_layout Standard
28996 \begin_inset space \thinspace{}
29000 \begin_inset space ~
29003 a red background for a word, insert the command
29006 \begin_layout Standard
29014 \begin_layout Standard
29015 before the word in TeX-Code.
29016 Behind the word insert a closing brace
29017 \begin_inset Quotes eld
29025 \begin_inset Quotes erd
29029 \begin_inset Newline newline
29032 This is the result:
29035 \begin_layout Standard
29036 This is a line where the word
29040 \begin_layout Plain Layout
29050 \begin_inset Quotes eld
29054 \begin_inset Quotes erd
29061 \begin_layout Plain Layout
29068 has a red background.
29071 \begin_layout Standard
29072 \begin_inset VSpace bigskip
29075 If you would have the box frame in a different color, you can use the command
29082 with the following scheme:
29085 \begin_layout Standard
29090 fcolorbox{frame color}{box color}{box content}
29093 \begin_layout Standard
29107 The frame thickness and the space between the frame and the box content
29108 can be adjusted with the lengths
29120 , respectively, as described in section
29121 \begin_inset space ~
29125 \begin_inset CommandInset ref
29127 reference "sec:Framed-Boxes"
29134 \begin_layout Standard
29135 For the following example the command
29138 \begin_layout Standard
29143 fcolorbox{cyan}{magenta}{
29146 \begin_layout Standard
29150 \begin_layout Standard
29151 Here is an example where the frame line thickness was set to 1
29152 \begin_inset space \thinspace{}
29156 \begin_inset Newline newline
29163 \begin_layout Plain Layout
29178 \begin_layout Plain Layout
29182 fcolorbox{cyan}{magenta}{
29187 This is text within a colored, framed box.
29191 \begin_layout Plain Layout
29201 \begin_layout Standard
29202 \begin_inset VSpace bigskip
29205 Of course you can also have colored text inside a colorbox:
29206 \begin_inset Newline newline
29213 \begin_layout Plain Layout
29217 fcolorbox{cyan}{magenta}{
29224 This is colored text within a colored, framed box.
29230 \begin_layout Plain Layout
29241 \begin_layout Plain Layout
29255 \begin_layout Standard
29258 \begin_inset VSpace medskip
29264 \begin_layout Standard
29265 \begin_inset Note Greyedout
29268 \begin_layout Plain Layout
29273 Text in colorboxes cannot have line breaks.
29274 To color multiple text lines or paragraphs, use a box inside a colorbox
29275 as described in the following.
29283 \begin_layout Subsection
29284 Color for Paragraphs
29285 \begin_inset CommandInset label
29287 name "sub:Color-for-Paragraphs"
29295 \begin_layout Plain Layout
29296 Color ! for Paragraphs
29304 \begin_layout Standard
29305 To set the background color for more than one text line, put the text into
29307 Before the minipage insert the
29316 \begin_layout Standard
29324 \begin_layout Standard
29326 Behind the minipage insert a closing brace
29327 \begin_inset Quotes eld
29335 \begin_inset Quotes erd
29341 \begin_layout Standard
29345 \begin_layout Plain Layout
29349 colorbox{lightgrey}{
29355 \begin_inset Box Frameless
29364 height_special "totalheight"
29367 \begin_layout Plain Layout
29368 This is text with background color.
29369 This is text with background color.
29372 \begin_layout Plain Layout
29373 \begin_inset VSpace defskip
29376 The text can have footnotes
29380 \begin_layout Plain Layout
29381 Another example footnote
29386 and can include tables and figures.
29389 \begin_layout Plain Layout
29391 \begin_inset Tabular
29392 <lyxtabular version="3" rows="3" columns="3">
29394 <column alignment="center" valignment="top" width="0">
29395 <column alignment="center" valignment="top" width="0">
29396 <column alignment="center" valignment="top" width="0">
29398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29401 \begin_layout Plain Layout
29407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29410 \begin_layout Plain Layout
29416 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29419 \begin_layout Plain Layout
29427 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29430 \begin_layout Plain Layout
29436 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29439 \begin_layout Plain Layout
29441 \begin_inset Quotes erd
29449 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29452 \begin_layout Plain Layout
29460 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29463 \begin_layout Plain Layout
29469 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29472 \begin_layout Plain Layout
29478 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29481 \begin_layout Plain Layout
29501 \begin_layout Plain Layout
29511 \begin_layout Section
29512 Rotated and Scaled Boxes
29515 \begin_layout Standard
29516 To use the the commands described in this section, the LaTeX-package
29524 \begin_layout Plain Layout
29525 LaTeX-packages ! graphicx
29530 needs to be loaded in the document preamble with the command
29533 \begin_layout Standard
29538 @ifundefined{rotatebox}
29539 \begin_inset Newline newline
29546 \begin_layout Plain Layout
29557 usepackage{graphicx}}{}
29560 \begin_layout Standard
29561 \begin_inset Note Greyedout
29564 \begin_layout Plain Layout
29569 Some DVI-viewers can't display rotated or scaled material.
29577 \begin_layout Standard
29578 \begin_inset Note Greyedout
29581 \begin_layout Plain Layout
29586 Floats mustn't be inside a rotated or scaled box.
29594 \begin_layout Subsection
29599 \begin_layout Plain Layout
29609 \begin_layout Plain Layout
29619 \begin_layout Plain Layout
29629 \begin_layout Plain Layout
29630 Table Customization ! Rotating
29638 \begin_layout Standard
29639 To rotate material, you can put it into a rotated box.
29640 Such a box is created using the command
29646 in TeX-Code with the following scheme:
29649 \begin_layout Standard
29654 rotatebox[rotation origin]{rotation angle}{box content}
29657 \begin_layout Standard
29658 The rotation origin is specified in the form
29663 The following positions are possible:
29683 (top), and also expedient combinations of the four base positions.
29688 means, that the rotation origin is at the top left corner of the box.
29689 When no rotation origin is specified, the position
29694 The rotation angle is a number that can be negative that specifies the
29696 The rotation direction is counterclockwise.
29699 \begin_layout Standard
29700 In the following example the command
29704 rotatebox[origin=c]{60}{
29706 was inserted as TeX-Code before the text
29707 \begin_inset Quotes eld
29711 \begin_inset Quotes erd
29714 ; after the text the box was closed by a closing brace
29721 \begin_layout Standard
29726 \begin_layout Plain Layout
29730 rotatebox[origin=c]{60}{
29739 \begin_layout Plain Layout
29749 \begin_layout Standard
29750 The box content can also be another box or an inline formula:
29753 \begin_layout Standard
29758 \begin_layout Plain Layout
29762 rotatebox[origin=r]{-60}{
29768 \begin_inset Box Doublebox
29777 height_special "totalheight"
29780 \begin_layout Plain Layout
29790 \begin_layout Plain Layout
29801 \begin_layout Plain Layout
29805 rotatebox[origin=lb]{60}{
29811 \begin_inset Formula $\int A\,\mathrm{d}x=B$
29818 \begin_layout Plain Layout
29828 \begin_layout Standard
29829 or an image or table:
29832 \begin_layout Standard
29837 \begin_layout Plain Layout
29841 rotatebox[origin=lb]{90}{
29847 \begin_inset Graphics
29848 filename clipart/platypus.eps
29858 \begin_layout Plain Layout
29865 with a rotated image
29869 \begin_layout Plain Layout
29873 rotatebox[origin=l]{-90}{
29879 \begin_inset Tabular
29880 <lyxtabular version="3" rows="2" columns="2">
29882 <column alignment="center" valignment="top" width="0">
29883 <column alignment="center" valignment="top" width="0">
29885 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29888 \begin_layout Plain Layout
29894 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29897 \begin_layout Plain Layout
29905 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29908 \begin_layout Plain Layout
29914 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29917 \begin_layout Plain Layout
29932 \begin_layout Plain Layout
29942 \begin_layout Subsection
29947 \begin_layout Plain Layout
29957 \begin_layout Plain Layout
29967 \begin_layout Plain Layout
29977 \begin_layout Plain Layout
29978 Table Customization ! Scaling
29986 \begin_layout Standard
29987 To scale material the commands
29999 can be used as TeX-Code.
30002 \begin_layout Standard
30009 is used with the following scheme:
30012 \begin_layout Standard
30017 scalebox{horizontal}[vertical]{box content}
30020 \begin_layout Standard
30021 Horizontal and vertical are the corresponding scaling factors.
30022 If no vertical scaling factor is given, the horizontal factor will also
30023 be used as vertical one.
30026 \begin_layout Standard
30033 creates for example a double size
30037 \begin_layout Plain Layout
30050 \begin_layout Plain Layout
30057 , compared to the document text size.
30060 \begin_layout Standard
30065 scalebox{2}[1]{Hello}
30067 in contrary distorts the
30071 \begin_layout Plain Layout
30084 \begin_layout Plain Layout
30094 \begin_layout Standard
30095 If a the scaling factor is negative, the box content will be mirrored.
30096 Therefore the command
30100 scalebox{-1}[1]{Hello}
30102 can be used to create mirror writing:
30106 \begin_layout Plain Layout
30119 \begin_layout Plain Layout
30129 \begin_layout Standard
30134 scalebox{1}[-1]{Hello}
30140 \begin_layout Plain Layout
30153 \begin_layout Plain Layout
30163 \begin_layout Standard
30168 scalebox{-1}[1]{box content}
30170 there exists the command
30171 \begin_inset Newline newline
30178 reflectbox{box content}
30183 \begin_layout Standard
30184 \begin_inset VSpace bigskip
30193 is used to scale the box to a defined width and height.
30194 The command scheme is:
30197 \begin_layout Standard
30202 resizebox{width}{height}{box content}
30205 \begin_layout Standard
30206 Is one of the two command arguments given as exclamation mark
30210 , the size is set so that the aspect ratio of the box content is kept.
30213 \begin_layout Standard
30218 resizebox{2cm}{1cm}{Hello}
30224 \begin_layout Plain Layout
30228 resizebox{2cm}{1cm}{
30237 \begin_layout Plain Layout
30245 \begin_inset Newline newline
30252 resizebox{2cm}{!}{Hello}
30258 \begin_layout Plain Layout
30271 \begin_layout Plain Layout
30281 \begin_layout Standard
30282 \begin_inset VSpace bigskip
30286 \begin_inset Note Greyedout
30289 \begin_layout Plain Layout
30306 are set to zero, no LaTeX-errors occur when exporting the document but
30307 the exported files can not or only partly be displayed.
30315 \begin_layout Standard
30316 \begin_inset VSpace bigskip
30322 \begin_layout Standard
30323 The boxes can be combined in any order.
30325 \begin_inset space \thinspace{}
30329 \begin_inset space ~
30333 \begin_inset Newline newline
30340 rotatebox[origin=c]{-45}{
30344 reflectbox{Hello}}}
30345 \begin_inset Newline newline
30353 \begin_layout Standard
30358 \begin_layout Plain Layout
30362 rotatebox[origin=c]{-45}{
30375 \begin_layout Plain Layout
30385 \begin_layout Standard
30387 Images, tables, and inline formulas are allowed as box content:
30390 \begin_layout Standard
30395 \begin_layout Plain Layout
30399 rotatebox[origin=c]{-30}{
30409 \begin_inset Graphics
30410 filename clipart/platypus.eps
30420 \begin_layout Plain Layout
30431 \begin_layout Plain Layout
30435 rotatebox[origin=c]{-45}{
30445 \begin_inset Tabular
30446 <lyxtabular version="3" rows="2" columns="2">
30448 <column alignment="center" valignment="top" width="0">
30449 <column alignment="center" valignment="top" width="0">
30451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30454 \begin_layout Plain Layout
30460 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30463 \begin_layout Plain Layout
30471 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30474 \begin_layout Plain Layout
30480 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30483 \begin_layout Plain Layout
30498 \begin_layout Plain Layout
30509 \begin_layout Plain Layout
30513 rotatebox[origin=c]{-45}{
30523 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30530 \begin_layout Plain Layout
30540 \begin_layout Standard
30541 When the global formula style
30545 is used in the document
30549 \begin_layout Plain Layout
30551 \begin_inset Quotes eld
30555 \begin_inset Quotes erd
30558 is added to the document class options.
30563 , also display formulas can be scaled.
30566 \begin_layout Chapter
30571 \begin_layout Plain Layout
30580 \begin_layout Standard
30583 Insert\SpecialChar \menuseparator
30586 you can insert external material to your document.
30590 \begin_layout Description
30592 \begin_inset space ~
30595 Document Another LyX document; its content is directly inserted to your
30599 \begin_layout Description
30601 \begin_inset space ~
30604 Text A text document; every of its text lines is inserted to your document
30608 \begin_layout Description
30610 \begin_inset space ~
30614 \begin_inset space ~
30618 \begin_inset space ~
30621 Lines A text document; its text lines are inserted as they are.
30622 Empty text lines creates a new paragraph in your document.
30625 \begin_layout Description
30627 \begin_inset space ~
30630 Material Files in various formats.
30633 \begin_layout Description
30635 \begin_inset space ~
30638 Document LyX or LaTeX-documents.
30641 \begin_layout Section
30646 \begin_layout Plain Layout
30647 External Stuff ! External Material
30655 \begin_layout Standard
30656 The external material feature allows you to insert files to your document
30657 without converting them previously to a format that can be read by the
30658 document output format because LyX takes care of needed conversions.
30659 This is similar to images that can be inserted in various image formats
30663 \begin_layout Standard
30664 External material can be inserted via the
30668 dialog that is accessible with the menu
30670 Insert\SpecialChar \menuseparator
30671 File\SpecialChar \menuseparator
30673 \begin_inset space ~
30679 Currently the following file types (
30686 \begin_layout Description
30687 ChessDiagram This template supports chess position diagrams made with the
30691 \begin_inset CommandInset href
30694 target "http://en.wikipedia.org/wiki/XBoard"
30703 \begin_layout Description
30704 Date This inserts the date in the form
30709 This is a date inserted as external material:
30710 \begin_inset External
30717 \begin_inset space ~
30721 \begin_inset Note Note
30724 \begin_layout Plain Layout
30725 Remove the protected space when bug 4398 is fixed!
30731 \begin_inset Newline newline
30734 The date is not shown within LyX, only in the output.
30735 There are two other methods of inserting a date: Via menu
30737 Insert\SpecialChar \menuseparator
30740 and with the LaTeX command
30747 The different methods are compared in Table
30748 \begin_inset space ~
30752 \begin_inset CommandInset ref
30754 reference "tab:Comparison-of-the"
30761 \begin_layout Description
30762 LilyPond This template is used for music notation typeset with the program
30763 \begin_inset Newline linebreak
30769 \begin_inset CommandInset href
30772 target "http://en.wikipedia.org/wiki/LilyPond"
30781 \begin_layout Description
30782 RasterImage This can be used for bitmap images.
30783 Nearly all popular image formats are supported.
30784 The image can be treated in the
30788 dialog like the images that are usually included via the
30792 dialog as described in section
30793 \begin_inset space ~
30797 \begin_inset CommandInset ref
30799 reference "sec:Graphics-Dialog"
30804 The difference is that only raster images are allowed, that means that
30805 PDF and EPS-images are not supported.
30808 \begin_layout Description
30809 XFig This template supports images created with the program
30812 \begin_inset CommandInset href
30815 target "http://en.wikipedia.org/wiki/Xfig"
30824 \begin_layout Standard
30825 \begin_inset Float table
30831 \begin_layout Plain Layout
30832 \begin_inset Caption
30834 \begin_layout Plain Layout
30835 \begin_inset CommandInset label
30837 name "tab:Comparison-of-the"
30841 Comparison of the date input methods.
30849 \begin_layout Plain Layout
30851 \begin_inset Tabular
30852 <lyxtabular version="3" rows="4" columns="4">
30854 <column alignment="center" valignment="top" width="0">
30855 <column alignment="center" valignment="top" width="0">
30856 <column alignment="center" valignment="top" width="0">
30857 <column alignment="center" valignment="top" width="0">
30859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30862 \begin_layout Plain Layout
30868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30871 \begin_layout Plain Layout
30874 External Material\SpecialChar \menuseparator
30880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30883 \begin_layout Plain Layout
30886 Insert\SpecialChar \menuseparator
30892 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30895 \begin_layout Plain Layout
30907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30910 \begin_layout Plain Layout
30916 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30919 \begin_layout Plain Layout
30925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30928 \begin_layout Plain Layout
30934 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30937 \begin_layout Plain Layout
30938 as TeX-Code inset box
30945 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30948 \begin_layout Plain Layout
30954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30957 \begin_layout Plain Layout
30963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30966 \begin_layout Plain Layout
30972 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30975 \begin_layout Plain Layout
30983 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30986 \begin_layout Plain Layout
30992 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30995 \begin_layout Plain Layout
31001 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31004 \begin_layout Plain Layout
31010 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31013 \begin_layout Plain Layout
31032 \begin_layout Standard
31033 When you use the option
31045 dialog, only the path to the inserted file is shown in the output.
31046 \begin_inset Newline newline
31049 External material is displayed in LyX either as box like this:
31050 \begin_inset Graphics
31051 filename clipart/ExternalMaterialQt4.png
31053 scaleBeforeRotation
31057 or as image, depending on the setting in the
31060 \begin_inset space ~
31072 \begin_layout Standard
31079 manual explains how you can define your own templates.
31082 \begin_layout Section
31084 \begin_inset CommandInset label
31086 name "sec:Child-Documents"
31094 \begin_layout Plain Layout
31095 External Stuff ! Child Documents
31104 \begin_layout Plain Layout
31113 \begin_layout Standard
31114 Child documents are used when you have a long document consisting of several
31115 larger parts or sections.
31116 For maintenance it is often useful and sometimes even required to split
31117 the document in several files that can be revised separately.
31118 The different documents are then the so called child documents and a master
31119 document connects them to print the full document or parts of it.
31122 \begin_layout Standard
31123 Included documents are displayed in LyX as a box like this:
31124 \begin_inset Graphics
31125 filename clipart/ChildDocumentQt4.png
31127 scaleBeforeRotation
31131 To include child documents to a master document use the menu
31133 Insert\SpecialChar \menuseparator
31134 File\SpecialChar \menuseparator
31136 \begin_inset space ~
31142 A dialog pops up where you can choose between four include methods:
31145 \begin_layout Description
31146 Include You can include LyX and LaTeX-documents.
31155 dialog, the included documents will be opened in LyX in a new file tab
31156 so that you can modify it.
31157 \begin_inset Newline newline
31163 \begin_layout Standard
31164 Here is a child document inserted using
31169 \begin_inset CommandInset include
31170 LatexCommand include
31171 filename "DummyDocument1.lyx"
31178 \begin_layout Standard
31179 The section numbering includes the sections of the included files in the
31180 order they are inserted in the master document.
31181 The included example document has for example a subsection that is numbered
31182 as subsection of this section.
31183 Labels of included documents can be referenced: Subsection
31184 \begin_inset space ~
31188 \begin_inset CommandInset ref
31190 reference "sub:External-Subsection-1"
31197 \begin_layout Standard
31198 The preamble of the child document is ignored, only the preamble of the
31199 master document is used.
31200 Included documents are inserted starting on a new page and end with a page
31204 \begin_layout Standard
31205 With the LaTeX-command
31211 you can specify which included child documents are processed when the output
31213 This is useful when you are perhaps only working on a certain chapter of
31214 your large document as this saves compiling time.
31221 is inserted to the master document preamble.
31222 It takes a comma-separated list of the filenames as argument, e.g.
31225 \begin_layout Standard
31230 includeonly{chapter1,chapter5}
31233 \begin_layout Standard
31234 will only process the included files named
31235 \begin_inset Quotes eld
31239 \begin_inset Quotes erd
31243 \begin_inset Quotes eld
31247 \begin_inset Quotes erd
31251 \begin_inset Quotes eld
31255 \begin_inset Quotes erd
31261 \begin_layout Standard
31262 \begin_inset Note Greyedout
31265 \begin_layout Plain Layout
31270 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
31271 w the document in case that the child document uses another document class
31272 than the master document as this will lead to unexpected outputs.
31280 \begin_layout Description
31281 Input This method is very similar to the Include method.
31282 The differences are:
31286 \begin_layout Itemize
31287 Input files don't start with a new page and don't end with a page break.
31290 \begin_layout Itemize
31291 Input files can be previewed in LyX when
31294 \begin_inset space ~
31299 is enabled in LyX's preferences under
31302 \begin_inset space ~
31306 \begin_inset space ~
31309 feel\SpecialChar \menuseparator
31315 \begin_layout Itemize
31326 \begin_layout Standard
31327 Here is a child document inserted using
31332 \begin_inset CommandInset include
31334 filename "DummyDocument2.lyx"
31341 \begin_layout Description
31342 Verbatim With this method every text file can be included.
31343 The file is shown in the output with its source code, no command used in
31344 the text is invoked.
31345 You can use the option
31347 Mark spaces in output
31349 that displays the character
31350 \begin_inset Quotes eld
31357 \begin_layout Plain Layout
31367 \begin_inset Quotes erd
31370 for every space character in the source code.
31371 The difference to the method via the menu
31373 Insert\SpecialChar \menuseparator
31374 File\SpecialChar \menuseparator
31376 \begin_inset space ~
31381 is that the document content is not shown in LyX.
31384 \begin_layout Standard
31385 Here is a child document inserted as Verbatim:
31386 \begin_inset CommandInset include
31387 LatexCommand verbatiminput
31388 filename "DummyTextDocument.txt"
31393 \begin_inset VSpace bigskip
31396 Here is a child document inserted as Verbatim using the
31398 Mark spaces in output
31401 \begin_inset CommandInset include
31402 LatexCommand verbatiminput*
31403 filename "DummyTextDocument.txt"
31410 \begin_layout Standard
31411 \begin_inset VSpace bigskip
31417 \begin_layout Standard
31418 \begin_inset Note Greyedout
31421 \begin_layout Plain Layout
31426 As you can see in the examples above, the text of the documents included
31431 is not broken at the end of the document lines.
31439 \begin_layout Description
31440 Listings This type is described in chapter
31441 \begin_inset space ~
31445 \begin_inset CommandInset ref
31447 reference "cha:Program-Code-Listings"
31454 \begin_layout Standard
31455 \begin_inset Note Greyedout
31458 \begin_layout Plain Layout
31463 Including the same document twice in a document using different methods
31464 could cause LaTeX-problems.
31472 \begin_layout Chapter
31473 Program Code Listings
31474 \begin_inset CommandInset label
31476 name "cha:Program-Code-Listings"
31484 \begin_layout Plain Layout
31494 \begin_layout Plain Layout
31504 \begin_layout Plain Layout
31513 \begin_layout Standard
31514 To include and typeset program code you can use the
31518 inset that can be inserted via the menu
31520 Insert\SpecialChar \menuseparator
31532 \begin_layout Plain Layout
31533 LaTeX-packages ! listings
31538 provides a powerful and flexible way to insert program source code to your
31542 \begin_layout Standard
31543 When right-clicking on a listings inset a dialog pops up where you can set
31544 the listings format.
31547 \begin_layout Standard
31548 By default, a listing starts a new paragraph in the output.
31549 The placement option
31552 \begin_inset space ~
31557 prints the listing inline like this:
31558 \begin_inset listings
31559 lstparams "language={C++}"
31563 \begin_layout Plain Layout
31570 \begin_inset Newline newline
31577 creates a listings float where you can specify the placement options
31578 \begin_inset Quotes eld
31586 \begin_inset Quotes erd
31590 \begin_inset Quotes eld
31598 \begin_inset Quotes erd
31602 \begin_inset Quotes eld
31610 \begin_inset Quotes erd
31614 \begin_inset Quotes eld
31622 \begin_inset Quotes erd
31625 corresponding to the float placement options described in section
31626 \begin_inset space ~
31630 \begin_inset CommandInset ref
31632 reference "sec:Float-Placement"
31637 The placement options can be mixed and are inserted without any separation,
31639 \begin_inset space \thinspace{}
31643 \begin_inset space ~
31647 \begin_inset Quotes eld
31655 \begin_inset Quotes erd
31660 \begin_inset Quotes eld
31664 \begin_inset Quotes erd
31667 has sometimes no effect, but you don't need to use the
31671 option in this case as also non-float listings can have captions and be
31675 \begin_layout Standard
31676 You can add captions to listings with the menu
31678 Insert\SpecialChar \menuseparator
31682 Listings can be referenced like floats: Listing
31683 \begin_inset space ~
31687 \begin_inset CommandInset ref
31689 reference "lst:Example-Listing"
31696 \begin_layout Standard
31697 \begin_inset listings
31698 lstparams "language=Python"
31702 \begin_layout Plain Layout
31703 \begin_inset Caption
31705 \begin_layout Plain Layout
31706 \begin_inset CommandInset label
31708 name "lst:Example-Listing"
31712 Example Listing float
31717 # Example listing float
31720 \begin_layout Plain Layout
31724 \begin_layout Plain Layout
31725 'this is a python function'
31728 \begin_layout Plain Layout
31737 \begin_layout Standard
31738 When you have set a programming language in the listings dialog, the keywords
31739 of this language will be recognized and specially typeset in the output.
31740 In the example listings the Python keyword
31741 \begin_inset Quotes eld
31745 \begin_inset Quotes erd
31748 is recognized and printed bold in the output.
31751 \begin_layout Standard
31752 \begin_inset Note Greyedout
31755 \begin_layout Plain Layout
31760 If you don't get bold keywords when using typewriter fonts, your typewriter
31761 font probably doesn't provide a bold shape.
31762 In this case select a different one in the menu
31764 Document\SpecialChar \menuseparator
31765 Settings\SpecialChar \menuseparator
31777 provide bold shapes.)
31785 \begin_layout Standard
31789 \begin_inset space ~
31794 of the listings dialog you can specify the line numbering style.
31795 You can insert a number to specify which lines are numbered to the field
31801 When you insert e.g.
31803 \begin_inset Quotes eld
31807 \begin_inset Quotes erd
31810 , only every 3rd line will be numbered.
31813 \begin_layout Standard
31814 You can furthermore specify a range of lines, only these will then appear
31819 \begin_inset space ~
31824 should be used when you use national characters like the German umlauts
31826 \begin_inset Newline newline
31829 Here is an example listing with left line numbering, step
31830 \begin_inset Quotes eld
31834 \begin_inset Quotes erd
31838 \begin_inset Quotes eld
31842 \begin_inset Quotes erd
31846 \begin_inset Quotes eld
31850 \begin_inset space ~
31854 \begin_inset Quotes erd
31858 \begin_inset Quotes eld
31862 \begin_inset space ~
31866 \begin_inset space ~
31870 \begin_inset Quotes erd
31874 \begin_inset space \thinspace{}
31878 \begin_inset space \thinspace{}
31884 \begin_layout Standard
31885 \begin_inset listings
31886 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
31890 \begin_layout Plain Layout
31894 \begin_layout Plain Layout
31895 'this is a python function'
31898 \begin_layout Plain Layout
31902 \begin_layout Plain Layout
31906 \begin_layout Plain Layout
31907 'This is a German word: Tschüß'
31910 \begin_layout Plain Layout
31914 \begin_layout Plain Layout
31918 \begin_layout Plain Layout
31919 'this is a python function'
31922 \begin_layout Plain Layout
31931 \begin_layout Standard
31932 \begin_inset Note Greyedout
31935 \begin_layout Plain Layout
31940 Due to a bug in the
31944 package the line numbering is shifted by a line by every previous listing.
31945 That's the reason why the lines 2 and 5 are numbered in the above listing
31946 and not the lines 3 and 6.
31954 \begin_layout Standard
31955 \begin_inset VSpace bigskip
31961 \begin_layout Standard
31962 It is also possible to print lines from a file as listing.
31963 To do this, use the menu
31965 Insert\SpecialChar \menuseparator
31966 File\SpecialChar \menuseparator
31969 and choose the type
31977 \begin_layout Plain Layout
31978 The other child document types are described in section
31979 \begin_inset space ~
31983 \begin_inset CommandInset ref
31985 reference "sec:Child-Documents"
31994 In the child document dialog you can specify the listing parameters in
31996 To show a list of all available parameters, type in a question mark
31997 \begin_inset Quotes eld
32001 \begin_inset Quotes erd
32007 \begin_layout Standard
32008 To reference child document listings, write a label text into the corresponding
32009 field of the child document dialog.
32010 The label can then be referenced using the menu
32012 Insert\SpecialChar \menuseparator
32018 \begin_layout Standard
32020 \begin_inset space ~
32024 \begin_inset CommandInset ref
32026 reference "lst:file-listing"
32030 is an example for a listing of a file; there the lines 10
32031 \begin_inset space \thinspace{}
32035 \begin_inset space \thinspace{}
32038 15 of this LyX file are listed.
32041 \begin_layout Standard
32042 \begin_inset CommandInset include
32043 LatexCommand lstinputlisting
32044 filename "EmbeddedObjects.lyx"
32045 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
32052 \begin_layout Standard
32053 \begin_inset VSpace bigskip
32059 \begin_layout Standard
32060 Global listings settings can be set in the
32062 Document\SpecialChar \menuseparator
32063 Settings\SpecialChar \menuseparator
32067 To get there a list of available options, type in a question mark
32068 \begin_inset Quotes eld
32072 \begin_inset Quotes erd
32078 \begin_inset space ~
32086 \begin_layout Standard
32087 For more information about the
32091 package, we refer to its documentation
32092 \begin_inset CommandInset citation
32101 \begin_layout Standard
32102 \begin_inset Newpage newpage
32108 \begin_layout Chapter
32110 Units available in LyX
32114 \begin_layout Plain Layout
32121 \begin_inset CommandInset label
32123 name "cha:Units-available-in"
32130 \begin_layout Standard
32131 To understand the units described in this documentation, Table
32132 \begin_inset space ~
32136 \begin_inset CommandInset ref
32138 reference "tab:Units"
32142 explains all units available in LyX.
32145 \begin_layout Standard
32146 \begin_inset Float table
32152 \begin_layout Plain Layout
32153 \begin_inset Caption
32155 \begin_layout Plain Layout
32156 \begin_inset CommandInset label
32170 \begin_layout Plain Layout
32171 \begin_inset VSpace medskip
32177 \begin_layout Plain Layout
32179 \begin_inset Tabular
32180 <lyxtabular version="3" rows="20" columns="2">
32182 <column alignment="center" valignment="top" width="0">
32183 <column alignment="center" valignment="top" width="0">
32185 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32188 \begin_layout Plain Layout
32194 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32197 \begin_layout Plain Layout
32205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32208 \begin_layout Plain Layout
32214 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32217 \begin_layout Plain Layout
32225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32228 \begin_layout Plain Layout
32234 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32237 \begin_layout Plain Layout
32245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32248 \begin_layout Plain Layout
32254 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32257 \begin_layout Plain Layout
32265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32268 \begin_layout Plain Layout
32274 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32277 \begin_layout Plain Layout
32279 \begin_inset space \thinspace{}
32283 \begin_inset space \thinspace{}
32293 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32296 \begin_layout Plain Layout
32302 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32305 \begin_layout Plain Layout
32307 \begin_inset space \thinspace{}
32311 \begin_inset space \thinspace{}
32321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32324 \begin_layout Plain Layout
32330 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32333 \begin_layout Plain Layout
32334 scaled point (65536
32335 \begin_inset space \thinspace{}
32339 \begin_inset space \thinspace{}
32349 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32352 \begin_layout Plain Layout
32358 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32361 \begin_layout Plain Layout
32363 \begin_inset space \thinspace{}
32367 \begin_inset space \thinspace{}
32377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32380 \begin_layout Plain Layout
32386 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32389 \begin_layout Plain Layout
32391 \begin_inset space \thinspace{}
32395 \begin_inset Formula $\approx$
32399 \begin_inset space \thinspace{}
32409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32412 \begin_layout Plain Layout
32418 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32421 \begin_layout Plain Layout
32423 \begin_inset space \thinspace{}
32427 \begin_inset space \thinspace{}
32437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32440 \begin_layout Plain Layout
32446 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32449 \begin_layout Plain Layout
32450 % of original image width
32457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32460 \begin_layout Plain Layout
32466 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32469 \begin_layout Plain Layout
32477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32480 \begin_layout Plain Layout
32486 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32489 \begin_layout Plain Layout
32497 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32500 \begin_layout Plain Layout
32506 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32509 \begin_layout Plain Layout
32517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32520 \begin_layout Plain Layout
32526 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32529 \begin_layout Plain Layout
32537 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32540 \begin_layout Plain Layout
32546 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32549 \begin_layout Plain Layout
32557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32560 \begin_layout Plain Layout
32566 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32569 \begin_layout Plain Layout
32577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32580 \begin_layout Plain Layout
32586 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32589 \begin_layout Plain Layout
32601 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32604 \begin_layout Plain Layout
32610 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32613 \begin_layout Plain Layout
32625 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32628 \begin_layout Plain Layout
32634 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32637 \begin_layout Plain Layout
32639 \begin_inset space \thinspace{}
32643 \begin_inset space \thinspace{}
32664 \begin_layout Chapter
32665 Output File Formats with Graphics
32666 \begin_inset CommandInset label
32668 name "cha:Output-File-Formats"
32675 \begin_layout Section
32680 \begin_layout Plain Layout
32690 \begin_layout Plain Layout
32695 \begin_layout Plain Layout
32706 \begin_layout Plain Layout
32721 \begin_layout Standard
32722 This file type has the extension
32723 \begin_inset Quotes eld
32731 \begin_inset Quotes erd
32736 \begin_inset Quotes eld
32740 \begin_inset Quotes erd
32743 (DVI), because it is completely portable; you can move them from one machine
32744 to another without needing to do any sort of conversion.
32745 At the time when this file-format was developed, this was no matter of
32747 DVIs are used for quick previews and as pre-stage for other output formats,
32751 \begin_layout Standard
32752 \begin_inset Note Greyedout
32755 \begin_layout Plain Layout
32760 DVI-files doesn't contain images, they will only be a linked.
32765 So don't forget this, if you move your
32769 file to another computer.
32770 This property can also slow down your computer when you view the DVI.
32771 Because the DVI-viewer has to convert the image in the background to make
32772 it visible when you scroll in the DVI.
32773 So we recommend to use PDF for files with many images.
32776 \begin_layout Standard
32777 You can export your document to DVI by using the menu
32779 File\SpecialChar \menuseparator
32780 Export\SpecialChar \menuseparator
32784 You can view your document as DVI via the
32788 menu or by using the toolbar button
32789 \begin_inset Graphics
32790 filename ../images/buffer-view_dvi.png
32792 scaleBeforeRotation
32799 \begin_layout Section
32801 \begin_inset CommandInset label
32803 name "sec:PostScript"
32811 \begin_layout Plain Layout
32812 File Formats ! PostScript
32821 \begin_layout Plain Layout
32826 \begin_layout Plain Layout
32837 \begin_layout Plain Layout
32852 \begin_layout Standard
32853 This file type has the extension
32854 \begin_inset Quotes eld
32862 \begin_inset Quotes erd
32866 PostScript was developed by the company
32870 as printer language.
32871 The file contains therefore commands that the printer uses to print the
32873 PostScript can be seen as
32874 \begin_inset Quotes eld
32877 programming language
32878 \begin_inset Quotes erd
32881 ; you can calculate with it and draw diagrams and images
32885 \begin_layout Plain Layout
32886 If you are interested to learn more about this, have a look at the LaTeX-package
32892 \begin_inset CommandInset citation
32904 Due to this ability, the files are often bigger than PDFs.
32907 \begin_layout Standard
32908 PostScript can only contain images in the format
32909 \begin_inset Quotes eld
32912 Encapsulated PostScript
32913 \begin_inset Quotes erd
32916 (EPS, file extension
32917 \begin_inset Quotes eld
32925 \begin_inset Quotes erd
32929 As LyX allows you to use any known image format in your document, it has
32930 to convert images in the background to EPS.
32931 If you have e.g 50 images in your document, LyX has to do 50 conversions
32932 whenever you view or export your document.
32933 This will slow down your work flow with LyX drastically.
32934 So if you plan to use PostScript, you can insert your images directly as
32935 EPS to avoid this problem.
32938 \begin_layout Standard
32939 You can export your document to PostScript using the menu
32941 File\SpecialChar \menuseparator
32942 Export\SpecialChar \menuseparator
32946 You can view your document as PostScript via the
32950 menu or by using the toolbar button
32951 \begin_inset Graphics
32952 filename ../images/buffer-view_ps.png
32954 scaleBeforeRotation
32961 \begin_layout Section
32963 \begin_inset CommandInset label
32973 \begin_layout Plain Layout
32983 \begin_layout Plain Layout
32992 \begin_layout Standard
32993 This file type has the extension
32994 \begin_inset Quotes eld
33002 \begin_inset Quotes erd
33007 \begin_inset Quotes eld
33010 Portable Document Format
33011 \begin_inset Quotes erd
33014 (PDF) is developed by
33018 as derivative from PostScript.
33019 It is more compressed and it uses much less commands than PostScript.
33021 \begin_inset Quotes eld
33025 \begin_inset Quotes erd
33028 implies, it can be processed at any computer system and the printed output
33029 looks exactly the same.
33032 \begin_layout Standard
33033 PDF can contain images in its own PDF format, in the format
33034 \begin_inset Quotes eld
33037 Joint Photographic Experts Group
33038 \begin_inset Quotes erd
33041 (JPG, file extension
33042 \begin_inset Quotes eld
33050 \begin_inset Quotes erd
33054 \begin_inset Quotes eld
33062 \begin_inset Quotes erd
33065 ), and in the format
33066 \begin_inset Quotes eld
33069 Portable Network Graphics
33070 \begin_inset Quotes erd
33073 (PNG, file extension
33074 \begin_inset Quotes eld
33082 \begin_inset Quotes erd
33086 Nevertheless you can use any other image format, because LyX converts them
33087 in the background to one of these formats.
33088 But as described in the section about PostScript, the image conversion
33089 will slow down your work flow.
33090 So it is recommended to use images in one of the three mentioned formats.
33093 \begin_layout Standard
33094 You can export your document to PDF via the menu
33096 File\SpecialChar \menuseparator
33099 in three different ways:
33102 \begin_layout Description
33104 \begin_inset space ~
33107 (ps2pdf) This uses the program
33111 that creates a PDF from a PostScript-version of your file.
33112 The PostScript-version is produced by the program
33116 which uses a DVI-version as intermediate step.
33117 So this export variant consist of three conversions.
33120 \begin_layout Description
33122 \begin_inset space ~
33125 (dvipdfm) This uses the program
33129 that converts your file in the background to DVI and in a second step to
33133 \begin_layout Description
33135 \begin_inset space ~
33138 (pdflatex) This uses the program
33142 that converts your file directly to PDF.
33145 \begin_layout Standard
33146 It is recommended to use
33149 \begin_inset space ~
33158 supports all features of actual PDF-versions, is quick and works stable
33164 is not under development and therefore a bit outdated.
33167 \begin_layout Standard
33168 You can view your document as PDF via the
33172 menu or by using the toolbar button
33173 \begin_inset Graphics
33174 filename ../images/buffer-view_pdf2.png
33176 scaleBeforeRotation
33187 \begin_inset space ~
33195 \begin_layout Chapter
33196 Explanation of Equation
33197 \begin_inset space ~
33201 \begin_inset CommandInset ref
33208 \begin_inset CommandInset label
33210 name "cha:Explanation-of-Equation"
33217 \begin_layout Standard
33223 \begin_inset Formula $W_{\mathrm{tot\, n}}$
33226 can be calculated to
33229 \begin_layout Standard
33230 \begin_inset Formula \begin{equation}
33231 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}
33238 \begin_layout Standard
33240 \begin_inset Formula $W_{g\, n}$
33243 is the given width of all cells.
33250 is the LaTeX-length between the cell text and the cell border, its default
33252 \begin_inset space \thinspace{}
33262 is the thickness of the cell border line, the default is 0.4
33263 \begin_inset space \thinspace{}
33269 \begin_layout Standard
33271 \begin_inset space ~
33275 \begin_inset CommandInset ref
33277 reference "eq:Wtot_n"
33281 , the total width of a multicolumn
33282 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
33288 \begin_layout Standard
33289 \begin_inset Formula \begin{equation}
33290 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
33297 \begin_layout Standard
33298 By setting equation
33299 \begin_inset space ~
33303 \begin_inset CommandInset ref
33305 reference "eq:Wtot_n"
33310 \begin_inset CommandInset ref
33312 reference "eq:Wtot_mult"
33316 equal we can calculate the needed given width
33317 \begin_inset Formula $W_{g\, n}$
33324 columns are spanned, so that each column has a total width of
33325 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
33331 \begin_layout Standard
33332 \begin_inset Formula \begin{equation}
33333 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
33340 \begin_layout Bibliography
33341 \begin_inset CommandInset bibitem
33342 LatexCommand bibitem
33343 key "latexcompanion"
33347 Frank Mittelbach and Michel Goossens:
33349 The LaTeX Companion Second Edition.
33352 Addison-Wesley, 2004
33355 \begin_layout Bibliography
33356 \begin_inset CommandInset bibitem
33357 LatexCommand bibitem
33362 Helmut Kopka and Patrick W.
33365 A Guide to LaTeX Fourth Edition.
33368 Addison-Wesley, 2003
33371 \begin_layout Bibliography
33372 \begin_inset CommandInset bibitem
33373 LatexCommand bibitem
33380 LaTeX: A Document Preparation System.
33383 Addison-Wesley, second edition, 1994
33386 \begin_layout Bibliography
33387 \begin_inset CommandInset bibitem
33388 LatexCommand bibitem
33393 Documentation of the LaTeX-package
33396 \begin_inset CommandInset href
33399 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
33409 \begin_layout Plain Layout
33410 LaTeX-packages ! booktabs
33418 \begin_layout Bibliography
33419 \begin_inset CommandInset bibitem
33420 LatexCommand bibitem
33425 Documentation of the LaTeX-package
33428 \begin_inset CommandInset href
33431 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
33441 \begin_layout Plain Layout
33442 LaTeX-packages ! caption
33450 \begin_layout Bibliography
33451 \begin_inset CommandInset bibitem
33452 LatexCommand bibitem
33457 Documentation of the LaTeX-package
33460 \begin_inset CommandInset href
33463 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
33473 \begin_layout Plain Layout
33474 LaTeX-packages ! endfloat
33482 \begin_layout Bibliography
33483 \begin_inset CommandInset bibitem
33484 LatexCommand bibitem
33489 Documentation of the LaTeX-package
33492 \begin_inset CommandInset href
33495 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
33505 \begin_layout Plain Layout
33506 LaTeX-packages ! wrapfig
33510 \begin_layout Plain Layout
33518 \begin_layout Plain Layout
33529 \begin_layout Plain Layout
33545 \begin_layout Plain Layout
33556 \begin_layout Plain Layout
33571 \begin_layout Bibliography
33572 \begin_inset CommandInset bibitem
33573 LatexCommand bibitem
33578 Documentation of the LaTeX-package
33581 \begin_inset CommandInset href
33584 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
33594 \begin_layout Plain Layout
33595 LaTeX-packages ! footmisc
33603 \begin_layout Bibliography
33604 \begin_inset CommandInset bibitem
33605 LatexCommand bibitem
33610 Documentation of the LaTeX-package
33613 \begin_inset CommandInset href
33616 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
33626 \begin_layout Plain Layout
33627 LaTeX-packages ! hyperref
33635 \begin_layout Bibliography
33636 \begin_inset CommandInset bibitem
33637 LatexCommand bibitem
33642 Documentation of the LaTeX-package
33645 \begin_inset CommandInset href
33648 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
33658 \begin_layout Plain Layout
33659 LaTeX-packages ! hyperref
33667 \begin_layout Bibliography
33668 \begin_inset CommandInset bibitem
33669 LatexCommand bibitem
33674 Documentation of the LaTeX-package
33677 \begin_inset CommandInset href
33680 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
33690 \begin_layout Plain Layout
33691 LaTeX-packages ! koma-script
33699 \begin_layout Bibliography
33700 \begin_inset CommandInset bibitem
33701 LatexCommand bibitem
33706 Documentation of the LaTeX-package
33709 \begin_inset CommandInset href
33712 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
33722 \begin_layout Plain Layout
33723 LaTeX-packages ! listings
33731 \begin_layout Bibliography
33732 \begin_inset CommandInset bibitem
33733 LatexCommand bibitem
33738 Documentation of the LaTeX-package
33741 \begin_inset CommandInset href
33744 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
33754 \begin_layout Plain Layout
33755 LaTeX-packages ! marginnote
33763 \begin_layout Bibliography
33764 \begin_inset CommandInset bibitem
33765 LatexCommand bibitem
33770 Web page of the LaTeX-package
33773 \begin_inset CommandInset href
33776 target "http://tug.org/PSTricks/"
33786 \begin_layout Plain Layout
33787 LaTeX-packages ! PSTricks
33795 \begin_layout Bibliography
33796 \begin_inset CommandInset bibitem
33797 LatexCommand bibitem
33802 Documentation of the LaTeX-package
33805 \begin_inset CommandInset href
33808 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
33818 \begin_layout Plain Layout
33819 LaTeX-packages ! sidecap
33827 \begin_layout Bibliography
33828 \begin_inset CommandInset bibitem
33829 LatexCommand bibitem
33835 \begin_inset CommandInset href
33838 target "http://wiki.lyx.org/LyX/NewInLyX16"
33842 about new features in
33849 \begin_layout Standard
33850 \begin_inset CommandInset index_print
33851 LatexCommand printindex
33858 \begin_layout Standard
33859 \begin_inset FloatList figure
33866 \begin_layout Standard
33867 \begin_inset FloatList table
33874 \begin_layout Standard
33875 \begin_inset FloatList algorithm