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]{Contents}{}
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
180 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
181 \pdf_author "LyX Team, Uwe Stöhr"
182 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
183 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
185 \pdf_bookmarksnumbered true
186 \pdf_bookmarksopen true
187 \pdf_bookmarksopenlevel 1
188 \pdf_breaklinks false
192 \pdf_pagebackref false
193 \pdf_pdfusetitle false
194 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false, pdfpagelabels"
201 \paperorientation portrait
204 \paragraph_separation skip
206 \quotes_language english
209 \paperpagestyle default
213 \tracking_changes false
214 \output_changes false
222 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
231 \begin_layout Plain Layout
233 If you have comments or error corrections, please send them to the LyX Documenta
235 \begin_inset CommandInset href
237 name "lyx-docs@lists.lyx.org"
238 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
249 \begin_inset Note Note
252 \begin_layout Plain Layout
259 \begin_inset Newline newline
263 \begin_inset Newline newline
271 \begin_layout Standard
272 \begin_inset CommandInset toc
273 LatexCommand tableofcontents
280 \begin_layout Standard
281 \begin_inset Note Note
284 \begin_layout Plain Layout
285 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
303 If they are not installed you can export the document anyway but the sections
304 where the packages are required won't appear in the output.
307 \begin_layout Plain Layout
308 The latest PDF-version of this document can be found here:
309 \begin_inset Newline newline
314 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
322 \begin_layout Chapter
324 \begin_inset CommandInset label
334 \begin_layout Plain Layout
344 \begin_layout Plain Layout
349 \begin_layout Plain Layout
360 \begin_layout Plain Layout
375 \begin_layout Section
380 \begin_layout Plain Layout
381 Figures ! Graphics Dialog
387 \begin_inset CommandInset label
389 name "sec:Graphics-Dialog"
396 \begin_layout Standard
397 To insert an image into your document, place the cursor at the text position
398 you want and click on the toolbar icon
399 \begin_inset Graphics
400 filename ../images/dialog-show-new-inset_graphics.png
408 Insert\SpecialChar \menuseparator
412 Then a dialog will appear to choose the file to load.
413 The image will appear in the output exactly at the position where it is
417 \begin_layout Standard
418 The graphics dialog can be called at any time by right-clicking on an image.
419 This dialog has three tabs:
422 \begin_layout Description
427 Here you can choose an image file and adjust its appearance in the output.
428 The available units for the image size are explained in appendix
433 \begin_inset CommandInset ref
435 reference "cha:Units-available-in"
440 \begin_inset Newline newline
447 \begin_layout Plain Layout
453 You can rotate images counter-clockwise by setting a rotation angle and
455 The image will also be rotated inside LyX.
456 \begin_inset Newline newline
463 \begin_layout Plain Layout
469 Images can be scaled by using a percentage value or by setting the width
470 and height explicitly.
471 If you set only the width or only the height, the other size will be determined
473 If you set both, then the image will be transformed to the given size,
474 possibly distorting it.
475 To prevent the image from distortion, use the option
477 Maintain aspect ratio
480 The image will then be scaled so that its width and height don't exceed
481 the specified dimensions.
482 \begin_inset Newline newline
485 Images can be opened in a program of your choice when pressing the
490 The program can be set for every image format in the file format settings
491 in LyX's preferences.
494 \begin_layout Description
499 Alternatively to the usage of scaling units it is possible to set image
500 coordinates to adjust the height and width of the image in the output.
501 The coordinates can also be calculated automatically by pressing the button
531 will only print the image region within the given coordinates.
532 Normally you don't need to take care about image coordinates and can ignore
536 \begin_layout Description
545 In this tab you can modify the appearance of the image within LyX and set
546 the image to be a subfigure of a figure float with an own caption.
547 Subfigures are explained in section
552 \begin_inset CommandInset ref
554 reference "sec:Figure-Floats"
559 \begin_inset Newline newline
562 LaTeX experts can also specify on this tab additional LaTeX options.
563 \begin_inset Newline newline
574 makes the image appear in the output only as a frame with the size of the
576 \begin_inset Newline newline
595 option only affects zipped EPS-graphics, e.
596 \begin_inset Space \thinspace{}
608 When the option is used the images will not be unzipped on export, since
609 LaTeX can handle them as they are.
610 \begin_inset Newline newline
613 Zipped EPS-graphics are useful to save disk space when you choose PostScript
614 as output format, see appendix
619 \begin_inset CommandInset ref
621 reference "sec:PostScript"
626 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
628 \begin_inset Newline newline
636 \begin_inset Newline newline
641 zgrep %%Bounding x.eps.gz > x.eps.bb
644 \begin_inset Newline newline
647 The second command creates the bounding box file
648 \begin_inset Quotes eld
652 \begin_inset Quotes erd
655 that is needed by LaTeX for zipped graphics.
658 \begin_layout Standard
659 \begin_inset VSpace bigskip
665 \begin_layout Standard
666 This is an example image in EPS format
670 \begin_layout Plain Layout
671 Image formats are explained in section
676 \begin_inset CommandInset ref
678 reference "sec:Image-Formats"
687 within a separate, horizontally centered paragraph:
690 \begin_layout Standard
692 \begin_inset Graphics
693 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
723 \begin_layout Section
725 \begin_inset CommandInset label
727 name "sec:Figure-Floats"
735 \begin_layout Plain Layout
745 \begin_layout Plain Layout
754 \begin_layout Standard
755 For general explanations about floats, have a look at section
760 \begin_inset CommandInset ref
762 reference "sec:FloatIntroduction"
769 \begin_layout Standard
771 \begin_inset Graphics
772 filename ../images/float-insert_figure.png
780 Insert\SpecialChar \menuseparator
781 Float\SpecialChar \menuseparator
784 inserts a float with a caption that has the label
785 \begin_inset Quotes eld
793 \begin_inset Quotes erd
796 (# is the actual number).
797 You can insert the image above the caption, like in Figure
802 \begin_inset CommandInset ref
804 reference "fig:kill-plat"
808 or below the caption, like in Figure
813 \begin_inset CommandInset ref
815 reference "fig:escher"
820 More about the caption placement is described in section
825 \begin_inset CommandInset ref
827 reference "sec:Caption-Placement"
834 \begin_layout Standard
835 \begin_inset Float figure
840 \begin_layout Plain Layout
842 \begin_inset Graphics
843 filename clipart/platypus.eps
854 \begin_layout Plain Layout
857 \begin_layout Plain Layout
858 \begin_inset CommandInset label
864 A severely distorted platypus in a float.
877 \begin_layout Standard
878 \begin_inset Float figure
883 \begin_layout Plain Layout
886 \begin_layout Plain Layout
887 \begin_inset CommandInset label
902 \begin_layout Plain Layout
904 \begin_inset Graphics
905 filename clipart/escher-lsd.eps
921 \begin_layout Standard
925 \begin_layout Plain Layout
926 References ! to Figures
936 \begin_inset CommandInset ref
938 reference "fig:kill-plat"
943 \begin_inset CommandInset ref
945 reference "fig:escher"
949 are examples of referenced figures.
950 Figures can be referenced in the text by referencing their label.
951 To do this insert a label in the caption using the menu
953 Insert\SpecialChar \menuseparator
956 or the toolbar button
957 \begin_inset Graphics
958 filename ../images/label-insert.png
965 You can now refer to the label using the menu
967 Insert\SpecialChar \menuseparator
974 or the toolbar button
975 \begin_inset Graphics
976 filename ../images/dialog-show-new-inset_ref.png
983 It is important to use references to floats, rather than using vague references
985 \begin_inset Quotes eld
989 \begin_inset Quotes erd
992 , because as LaTeX will reposition the floats in the final document, it
994 \begin_inset Quotes eld
998 \begin_inset Quotes erd
1002 \begin_inset Newline newline
1005 Referencing is explained in detail in section
1006 \begin_inset Space ~
1010 \begin_inset CommandInset ref
1012 reference "sec:Referencing-Floats"
1019 \begin_layout Standard
1020 Normally only one image is inserted to a figure float, but sometimes you
1021 might want to use two images with separate subcaptions.
1022 This can be set in the tab
1025 \begin_inset Space ~
1030 of the graphics dialog.
1031 Choose there the option
1035 and enter the subcaption for the image in the caption field.
1036 Note that only the main caption of the float is added to the List of Figures.
1037 \begin_inset Newline newline
1040 Referencing subfigures is explained in section
1041 \begin_inset Space ~
1045 \begin_inset CommandInset ref
1047 reference "sub:Referencing-Subfigures"
1054 \begin_layout Standard
1056 \begin_inset Space ~
1060 \begin_inset CommandInset ref
1062 reference "fig:Two-distorted-images"
1066 is an example of a figure float with two images set side by side.
1067 You can also set the images one below the other.
1070 \begin_layout Standard
1071 \begin_inset Float figure
1076 \begin_layout Plain Layout
1077 \begin_inset Space \hfill{}
1081 \begin_inset Float figure
1086 \begin_layout Plain Layout
1087 \begin_inset Caption
1089 \begin_layout Plain Layout
1090 Undefinable structure
1098 \begin_layout Plain Layout
1099 \begin_inset Graphics
1100 filename clipart/escher-lsd.eps
1112 \begin_inset Space \hfill{}
1116 \begin_inset Float figure
1121 \begin_layout Plain Layout
1122 \begin_inset Caption
1124 \begin_layout Plain Layout
1133 \begin_layout Plain Layout
1134 \begin_inset Graphics
1135 filename clipart/platypus.eps
1148 \begin_inset Space \hfill{}
1154 \begin_layout Plain Layout
1155 \begin_inset Caption
1157 \begin_layout Plain Layout
1158 \begin_inset CommandInset label
1160 name "fig:Two-distorted-images"
1164 Two distorted images.
1177 \begin_layout Section
1179 \begin_inset CommandInset label
1181 name "sec:Image-Formats"
1189 \begin_layout Plain Layout
1199 \begin_layout Plain Layout
1200 Figures ! Image Formats
1208 \begin_layout Standard
1209 You can insert images in any known file format.
1210 But as explained in appendix
1211 \begin_inset Space ~
1215 \begin_inset CommandInset ref
1217 reference "cha:Output-File-Formats"
1221 , every output document format allows only a few image formats.
1222 LyX uses therefore the program
1226 in the background to convert the images to the right format.
1227 To increase your work flow by avoiding these conversions in the background,
1228 you can use only the image formats that can directly be embedded in the
1230 The output file formats are explained in appendix
1231 \begin_inset Space ~
1235 \begin_inset CommandInset ref
1237 reference "cha:Output-File-Formats"
1244 \begin_layout Standard
1245 Similar to fonts there are two types of image formats:
1248 \begin_layout Description
1250 \begin_inset Space ~
1253 images consist of pixel values, often in a compressed form.
1254 They are therefore not fully scalable and look pixeled in large zooms.
1255 Well-known bitmap image formats are
1256 \begin_inset Quotes eld
1259 Graphics Interchange Format
1260 \begin_inset Quotes erd
1263 (GIF, file extension
1264 \begin_inset Quotes eld
1272 \begin_inset Quotes erd
1279 \begin_layout Plain Layout
1284 \begin_layout Plain Layout
1295 \begin_layout Plain Layout
1308 \begin_inset Quotes eld
1311 Portable Network Graphics
1312 \begin_inset Quotes erd
1315 (PNG, file extension
1316 \begin_inset Quotes eld
1324 \begin_inset Quotes erd
1331 \begin_layout Plain Layout
1336 \begin_layout Plain Layout
1347 \begin_layout Plain Layout
1360 \begin_inset Quotes eld
1363 Joint Photographic Experts Group
1364 \begin_inset Quotes erd
1367 (JPG, file extension
1368 \begin_inset Quotes eld
1376 \begin_inset Quotes erd
1380 \begin_inset Quotes eld
1388 \begin_inset Quotes erd
1395 \begin_layout Plain Layout
1400 \begin_layout Plain Layout
1411 \begin_layout Plain Layout
1426 \begin_layout Description
1428 \begin_inset Space ~
1431 images consist of vectors and can therefore be scaled to any size without
1433 The scaling ability is necessary if you want to create presentations, because
1434 presentations are always scaled by the video projector.
1435 Scaling is also useful for online documents to let the user zoom into diagrams.
1436 \begin_inset Newline newline
1439 Well-known scalable image formats are
1440 \begin_inset Quotes eld
1443 Scalable Vector Graphics
1444 \begin_inset Quotes erd
1447 (SVG, file extension
1448 \begin_inset Quotes eld
1456 \begin_inset Quotes erd
1463 \begin_layout Plain Layout
1468 \begin_layout Plain Layout
1479 \begin_layout Plain Layout
1492 \begin_inset Quotes eld
1495 Encapsulated PostScript
1496 \begin_inset Quotes erd
1499 (EPS, file extension
1500 \begin_inset Quotes eld
1508 \begin_inset Quotes erd
1515 \begin_layout Plain Layout
1520 \begin_layout Plain Layout
1531 \begin_layout Plain Layout
1544 \begin_inset Quotes eld
1547 Portable Document Format
1548 \begin_inset Quotes erd
1551 (PDF, file extension
1552 \begin_inset Quotes eld
1560 \begin_inset Quotes erd
1567 \begin_layout Plain Layout
1574 \begin_inset Quotes eld
1578 \begin_inset Quotes erd
1581 (WMF, file extension
1582 \begin_inset Quotes eld
1590 \begin_inset Quotes erd
1597 \begin_layout Plain Layout
1602 \begin_layout Plain Layout
1613 \begin_layout Plain Layout
1627 \begin_inset Quotes eld
1631 \begin_inset Quotes erd
1634 , because you can convert any bitmap image to a PDF or EPS-image and the
1635 result will still be a bitmap image.
1636 In this cases only a header with the image properties is added to the original
1641 \begin_layout Plain Layout
1642 In the case of PDF, the original image is additionally compressed.
1648 The PDF-files generated by
1652 are for example bitmap images.
1655 \begin_layout Standard
1656 Normally it is not possible to convert a bitmap image into a scalable one,
1658 Only the image formats PDF and EPS can directly be embedded to PDF and
1659 PostScript output files, respectively.
1660 SVG and WMF-images are recalculated to bitmaps when the output file is
1661 generated because there is currently no adequate WMF/SVG
1662 \begin_inset Formula $\to$
1665 PDF/EPS converter available.
1668 \begin_layout Chapter
1670 \begin_inset CommandInset label
1680 \begin_layout Plain Layout
1689 \begin_layout Section
1694 \begin_layout Plain Layout
1695 Table ! Introduction
1703 \begin_layout Standard
1704 You can insert a table using either the toolbar button
1705 \begin_inset Graphics
1706 filename ../images/tabular-insert.png
1714 Insert\SpecialChar \menuseparator
1718 The toolbar button offers you a graphical selection: Move the mouse to
1719 set the column/row number of the table that should be created and then
1720 press a mouse button.
1721 When you use the menu to create a table, a dialog will appear, asking you
1722 for the number of rows and columns.
1723 \begin_inset Newline newline
1726 The default table has lines around any cell and the first row appears separated
1727 from the rest of the table.
1728 This separation occurs due to a double line: The cells of the first row
1729 have a line below them and the cells of the second row have a line above
1731 Here is an example table:
1734 \begin_layout Standard
1736 \begin_inset Tabular
1737 <lyxtabular version="3" rows="4" columns="4">
1739 <column alignment="center" valignment="top" width="0">
1740 <column alignment="center" valignment="top" width="0">
1741 <column alignment="center" valignment="top" width="0">
1742 <column alignment="center" valignment="top" width="0">
1744 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1747 \begin_layout Plain Layout
1753 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1756 \begin_layout Plain Layout
1771 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1774 \begin_layout Plain Layout
1780 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1783 \begin_layout Plain Layout
1791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1794 \begin_layout Plain Layout
1809 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1812 \begin_layout Plain Layout
1818 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1821 \begin_layout Plain Layout
1827 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1830 \begin_layout Plain Layout
1838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1841 \begin_layout Plain Layout
1856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1859 \begin_layout Plain Layout
1865 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1868 \begin_layout Plain Layout
1874 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1877 \begin_layout Plain Layout
1885 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1888 \begin_layout Plain Layout
1903 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1906 \begin_layout Plain Layout
1912 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1915 \begin_layout Plain Layout
1921 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1924 \begin_layout Plain Layout
1938 \begin_layout Section
1943 \begin_layout Plain Layout
1952 \begin_layout Standard
1953 You can alter a table by clicking on it with the right mouse button, which
1954 brings up the table dialog.
1955 Here you can adjust the settings of that cell and row/column respectively
1956 where the cursor is currently placed.
1957 Most of the dialog options also work on selections.
1958 This means if you select more cells, columns or rows, the action is done
1959 for the whole selection.
1960 Note that there is a difference between selecting the
1964 of the cell, and the cell itself.
1965 You can alter tables with the following tabs of the table dialog:
1968 \begin_layout Description
1972 \begin_inset Space ~
1977 Here you can set the horizontal alignment and the width of the current
1979 When you have set a width you can also adjust the vertical alignment of
1981 A given width will allow the cell to have line breaks and multiple paragraphs
1982 of text, see section
1983 \begin_inset Space ~
1987 \begin_inset CommandInset ref
1989 reference "sub:Multiple-Lines-in"
1994 If you set no width, the column is as wide as their widest cell content
1996 \begin_inset Newline newline
1999 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2001 \begin_inset Space ~
2005 \begin_inset CommandInset ref
2007 reference "sub:Multicolumns"
2012 \begin_inset Newline newline
2015 The rotate check boxes rotates the current cell, a selection, or the whole
2016 table counter-clockwise by 90°.
2017 The rotation is not shown within LyX, only in the output.
2018 \begin_inset Newline newline
2022 \begin_inset Note Greyedout
2025 \begin_layout Plain Layout
2030 Not all DVI-viewers are able to display rotations.
2036 \begin_inset Newline newline
2039 It is also possible to enter a LaTeX-argument which is needed for special
2040 table formattings, see section
2041 \begin_inset Space ~
2045 \begin_inset CommandInset ref
2047 reference "sub:Multicolumn-Calculations"
2052 \begin_inset CommandInset ref
2054 reference "sec:Colored-Tables"
2061 \begin_layout Description
2066 In this tab you can add and delete border lines for the current row/column.
2067 \begin_inset Newline newline
2070 Using the style option
2074 will convert the table to a formal table as described in section
2075 \begin_inset Space ~
2079 \begin_inset CommandInset ref
2081 reference "sec:Formal-Tables"
2086 \begin_inset Newline newline
2089 You can also add here space to table rows as decribed in section
2090 \begin_inset Space ~
2094 \begin_inset CommandInset ref
2096 reference "sub:Row-Spacing"
2103 \begin_layout Description
2108 This tab is to make a table a so called
2109 \begin_inset Quotes eld
2117 \begin_inset Quotes erd
2120 that can run over several pages.
2122 \begin_inset Space ~
2126 \begin_inset CommandInset ref
2128 reference "sec:Longtables"
2133 \begin_inset CommandInset ref
2135 reference "sec:Special-Longtable-Issues"
2139 describe the longtable features in detail.
2142 \begin_layout Standard
2143 When the table toolbar is opened, you can move the cursor with the arrow
2144 keys from cell to cell and the property of the current cell will immediately
2145 be displayed in the dialog.
2148 \begin_layout Section
2153 \begin_layout Plain Layout
2162 \begin_layout Standard
2163 The table toolbar is an alternative to the table dialog to be able to alter
2165 It should normally appear at the bottom of LyX's main window when the cursor
2167 You can alternatively switch it on to appear always, by right-clicking
2168 in LyX's main menu bar.
2171 \begin_layout Standard
2172 The toolbar has the following icons:
2175 \begin_layout Labeling
2176 \labelwidthstring 00.00.0000
2177 \begin_inset Graphics
2178 filename ../images/tabular-feature_append-row.png
2183 adds a row below the current cell or selection
2186 \begin_layout Labeling
2187 \labelwidthstring 00.00.0000
2188 \begin_inset Graphics
2189 filename ../images/tabular-feature_append-column.png
2194 adds a column right beside the current cell or selection
2197 \begin_layout Labeling
2198 \labelwidthstring 00.00.0000
2199 \begin_inset Graphics
2200 filename ../images/tabular-feature_delete-row.png
2205 deletes the current row or selection
2208 \begin_layout Labeling
2209 \labelwidthstring 00.00.0000
2210 \begin_inset Graphics
2211 filename ../images/tabular-feature_delete-column.png
2216 deletes the current column or selection
2219 \begin_layout Labeling
2220 \labelwidthstring 00.00.0000
2221 \begin_inset Graphics
2222 filename ../images/tabular-feature_toggle-line-top.png
2227 adds a line at the top of the current cell / row or of a selection
2230 \begin_layout Labeling
2231 \labelwidthstring 00.00.0000
2232 \begin_inset Graphics
2233 filename ../images/tabular-feature_toggle-line-bottom.png
2238 adds a line at the bottom of the current cell / row or of a selection
2241 \begin_layout Labeling
2242 \labelwidthstring 00.00.0000
2243 \begin_inset Graphics
2244 filename ../images/tabular-feature_toggle-line-left.png
2249 adds a line at the left side of the current cell / row or of a selection
2252 \begin_layout Labeling
2253 \labelwidthstring 00.00.0000
2254 \begin_inset Graphics
2255 filename ../images/tabular-feature_toggle-line-right.png
2260 adds a line at the right side of the current cell / row or of a selection
2263 \begin_layout Labeling
2264 \labelwidthstring 00.00.0000
2265 \begin_inset Graphics
2266 filename ../images/tabular-feature_set-all-lines.png
2271 adds lines around the current or selected cells - if the current cell no
2272 multicolumn this also affects the current row and column
2275 \begin_layout Labeling
2276 \labelwidthstring 00.00.0000
2277 \begin_inset Graphics
2278 filename ../images/tabular-feature_unset-all-lines.png
2283 deletes all lines of the current or selected cells - if the current cell
2284 no multicolumn this also affects the current row and column
2287 \begin_layout Labeling
2288 \labelwidthstring 00.00.0000
2289 \begin_inset Graphics
2290 filename ../images/tabular-feature_align-left.png
2295 left-aligns the content of the current cell / column
2298 \begin_layout Labeling
2299 \labelwidthstring 00.00.0000
2300 \begin_inset Graphics
2301 filename ../images/tabular-feature_align-center.png
2306 centers the content of the current cell / column horizontally
2309 \begin_layout Labeling
2310 \labelwidthstring 00.00.0000
2311 \begin_inset Graphics
2312 filename ../images/tabular-feature_align-right.png
2317 right-aligns the content of the current cell / column
2320 \begin_layout Labeling
2321 \labelwidthstring 00.00.0000
2322 \begin_inset Graphics
2323 filename ../images/tabular-feature_valign-top.png
2328 aligns the content of the current cell vertically to the top
2331 \begin_layout Labeling
2332 \labelwidthstring 00.00.0000
2333 \begin_inset Graphics
2334 filename ../images/tabular-feature_valign-middle.png
2339 centers the content of the current cell vertically
2342 \begin_layout Labeling
2343 \labelwidthstring 00.00.0000
2344 \begin_inset Graphics
2345 filename ../images/tabular-feature_valign-bottom.png
2350 aligns the content of the current cell vertically to the bottom
2353 \begin_layout Labeling
2354 \labelwidthstring 00.00.0000
2355 \begin_inset Graphics
2356 filename ../images/tabular-feature_set-rotate-cell.png
2361 rotates the current cell or selection counter-clockwise by 90°
2364 \begin_layout Labeling
2365 \labelwidthstring 00.00.0000
2366 \begin_inset Graphics
2367 filename ../images/tabular-feature_set-rotate-tabular.png
2372 rotates the whole table counter-clockwise by 90°
2375 \begin_layout Labeling
2376 \labelwidthstring 00.00.0000
2377 \begin_inset Graphics
2378 filename ../images/tabular-feature_multicolumn.png
2383 sets the current cell or selection as a multicolumn
2386 \begin_layout Standard
2387 \begin_inset Note Greyedout
2390 \begin_layout Plain Layout
2395 For the output the vertical alignment of the first cell in a row is used
2396 for all following cells in the row.
2404 \begin_layout Section
2409 \begin_layout Plain Layout
2418 \begin_layout Standard
2419 Additionally to the table dialog and toolbar, the menu
2421 Edit\SpecialChar \menuseparator
2424 allows you to add and delete border lines for the current row/column and
2425 to set the current selection as multicolumn.
2426 The menu is only available when the cursor is inside a table.
2429 \begin_layout Section
2431 \begin_inset CommandInset label
2433 name "sec:Table-Floats"
2441 \begin_layout Plain Layout
2451 \begin_layout Plain Layout
2460 \begin_layout Standard
2461 For general explanations about floats, have a look at section
2462 \begin_inset Space ~
2466 \begin_inset CommandInset ref
2468 reference "sec:FloatIntroduction"
2475 \begin_layout Standard
2476 \begin_inset Float table
2482 \begin_layout Plain Layout
2483 \begin_inset Caption
2485 \begin_layout Plain Layout
2486 \begin_inset CommandInset label
2488 name "tab:a table float"
2500 \begin_layout Plain Layout
2502 \begin_inset Tabular
2503 <lyxtabular version="3" rows="3" columns="3">
2505 <column alignment="center" valignment="top" width="0pt">
2506 <column alignment="center" valignment="top" width="0pt">
2507 <column alignment="center" valignment="top" width="0pt">
2509 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2512 \begin_layout Plain Layout
2527 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2530 \begin_layout Plain Layout
2545 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2548 \begin_layout Plain Layout
2565 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2568 \begin_layout Plain Layout
2583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2586 \begin_layout Plain Layout
2601 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2604 \begin_layout Plain Layout
2621 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2624 \begin_layout Plain Layout
2634 \begin_inset Formula $\int x^{2}dx$
2642 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2645 \begin_layout Plain Layout
2655 \begin_inset Formula $\left[\begin{array}{cc}
2657 c & d\end{array}\right]$
2665 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2668 \begin_layout Plain Layout
2678 \begin_inset Formula $1+1=2$
2699 \begin_layout Standard
2700 Table floats can be inserted using the menu
2702 Insert\SpecialChar \menuseparator
2703 Float\SpecialChar \menuseparator
2706 or the toolbar button
2707 \begin_inset Graphics
2708 filename ../images/float-insert_table.png
2717 \begin_layout Standard
2718 The float appears as a collapsible box with a caption that has the label
2720 \begin_inset Quotes eld
2724 \begin_inset Space ~
2728 \begin_inset Quotes erd
2731 (# is the actual table number).
2732 You can insert tables to the float above or below the caption.
2735 \begin_layout Standard
2737 \begin_inset Space ~
2741 \begin_inset CommandInset ref
2743 reference "tab:a table float"
2747 is an example table within a table float.
2750 \begin_layout Standard
2751 Having the caption above the table is the common rule that is unfortunately
2752 not supported in LaTeX's standard classes.
2753 That means if you are using the document classes
2769 there will be no space between the caption and the table.
2770 To insert the needed space, add the following option to the load command
2771 of the LaTeX-package
2779 \begin_layout Plain Layout
2780 LaTeX-packages ! caption
2785 in your document preamble
2789 \begin_layout Plain Layout
2790 For more information have a look at section
2791 \begin_inset Space ~
2795 \begin_inset CommandInset ref
2797 reference "sec:Caption-Placement"
2809 \begin_layout Standard
2815 \begin_layout Standard
2820 , which is described in section
2821 \begin_inset Space ~
2825 \begin_inset CommandInset ref
2827 reference "sec:Caption-Formatting"
2831 , is used to adjust the caption format.
2834 \begin_layout Standard
2838 \begin_layout Plain Layout
2839 References ! to Tables
2844 Tables can be cross-referenced in the text by referencing their label.
2845 To do this insert a label in the caption using the menu
2847 Insert\SpecialChar \menuseparator
2850 or the toolbar button
2851 \begin_inset Graphics
2852 filename ../images/label-insert.png
2859 You can now refer to the label using the menu
2861 Insert\SpecialChar \menuseparator
2863 \begin_inset Space ~
2868 or the toolbar button
2869 \begin_inset Graphics
2870 filename ../images/dialog-show-new-inset_ref.png
2877 \begin_inset Newline newline
2880 Referencing is explained in detail in section
2881 \begin_inset Space ~
2885 \begin_inset CommandInset ref
2887 reference "sec:Referencing-Floats"
2894 \begin_layout Section
2896 \begin_inset CommandInset label
2898 name "sec:Longtables"
2906 \begin_layout Plain Layout
2916 \begin_layout Plain Layout
2925 \begin_layout Standard
2926 If the table is too long to fit on one page, you can use the option
2929 \begin_inset Space ~
2933 \begin_inset Space ~
2942 of the table dialog to split the table automatically over more pages.
2943 Doing this enables some check boxes and you can now define:
2946 \begin_layout Description
2951 : The current row and all rows above, that don't have any special options
2952 defined, are defined to be the header rows of all pages of the longtable;
2953 except for the first page, if
2956 \begin_inset Space ~
2962 This therefore called the main header.
2965 \begin_layout Description
2969 \begin_inset Space ~
2974 : The current row and all rows above, that don't have any special options
2975 defined, are defined to be the header rows of the first page of the longtable.
2978 \begin_layout Description
2983 : The current row and all rows below, that don't have any special options
2984 defined, are defined to be the footer rows of all pages of the longtable;
2985 except for the last page, if
2988 \begin_inset Space ~
2996 \begin_layout Description
3000 \begin_inset Space ~
3005 : The current row and all rows below, that don't have any special options
3006 defined, are defined to be the footer rows of the last page of the longtable.
3009 \begin_layout Standard
3010 You can also specify a row where the table is splitted.
3011 If you set more than one option in the same table row, you should be aware
3012 of the fact that only the first one is used in the given table row.
3013 The others will then be defined as
3018 In this context, first means first in this order:
3025 \begin_inset Space ~
3028 header, Footer, Last
3029 \begin_inset Space ~
3035 See the following longtable to see how it works:
3038 \begin_layout Standard
3040 \begin_inset Tabular
3041 <lyxtabular version="3" rows="69" columns="3">
3042 <features islongtable="true">
3043 <column alignment="left" valignment="top" width="0cm">
3044 <column alignment="left" valignment="top" width="0pt">
3045 <column alignment="center" valignment="top" width="0pt">
3046 <row endfirsthead="true">
3047 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3050 \begin_layout Plain Layout
3053 Example Phone List (ignore the names)
3058 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3061 \begin_layout Plain Layout
3067 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3070 \begin_layout Plain Layout
3077 <row endfirsthead="true">
3078 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3081 \begin_layout Plain Layout
3089 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3092 \begin_layout Plain Layout
3098 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3101 \begin_layout Plain Layout
3110 <row endhead="true">
3111 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3114 \begin_layout Plain Layout
3122 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3125 \begin_layout Plain Layout
3131 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3134 \begin_layout Plain Layout
3141 <row endhead="true">
3142 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3145 \begin_layout Plain Layout
3153 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3156 \begin_layout Plain Layout
3162 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3165 \begin_layout Plain Layout
3174 <row endfoot="true">
3175 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
3178 \begin_layout Plain Layout
3179 continued on next page
3184 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3187 \begin_layout Plain Layout
3193 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3196 \begin_layout Plain Layout
3204 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3207 \begin_layout Plain Layout
3215 <cell alignment="center" valignment="top" usebox="none">
3218 \begin_layout Plain Layout
3224 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3227 \begin_layout Plain Layout
3235 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3238 \begin_layout Plain Layout
3246 <cell alignment="center" valignment="top" usebox="none">
3249 \begin_layout Plain Layout
3255 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3258 \begin_layout Plain Layout
3266 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3269 \begin_layout Plain Layout
3277 <cell alignment="center" valignment="top" usebox="none">
3280 \begin_layout Plain Layout
3286 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3289 \begin_layout Plain Layout
3297 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3300 \begin_layout Plain Layout
3308 <cell alignment="center" valignment="top" usebox="none">
3311 \begin_layout Plain Layout
3317 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3320 \begin_layout Plain Layout
3328 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3331 \begin_layout Plain Layout
3339 <cell alignment="center" valignment="top" usebox="none">
3342 \begin_layout Plain Layout
3348 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3351 \begin_layout Plain Layout
3359 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3362 \begin_layout Plain Layout
3370 <cell alignment="center" valignment="top" usebox="none">
3373 \begin_layout Plain Layout
3379 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3382 \begin_layout Plain Layout
3390 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3393 \begin_layout Plain Layout
3401 <cell alignment="center" valignment="top" usebox="none">
3404 \begin_layout Plain Layout
3410 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3413 \begin_layout Plain Layout
3421 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3424 \begin_layout Plain Layout
3432 <cell alignment="center" valignment="top" usebox="none">
3435 \begin_layout Plain Layout
3441 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3444 \begin_layout Plain Layout
3452 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3455 \begin_layout Plain Layout
3463 <cell alignment="center" valignment="top" usebox="none">
3466 \begin_layout Plain Layout
3472 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3475 \begin_layout Plain Layout
3483 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3486 \begin_layout Plain Layout
3494 <cell alignment="center" valignment="top" usebox="none">
3497 \begin_layout Plain Layout
3503 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3506 \begin_layout Plain Layout
3514 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3517 \begin_layout Plain Layout
3525 <cell alignment="center" valignment="top" usebox="none">
3528 \begin_layout Plain Layout
3534 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3537 \begin_layout Plain Layout
3545 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3548 \begin_layout Plain Layout
3556 <cell alignment="center" valignment="top" usebox="none">
3559 \begin_layout Plain Layout
3565 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3568 \begin_layout Plain Layout
3576 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3579 \begin_layout Plain Layout
3587 <cell alignment="center" valignment="top" usebox="none">
3590 \begin_layout Plain Layout
3596 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3599 \begin_layout Plain Layout
3607 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3610 \begin_layout Plain Layout
3618 <cell alignment="center" valignment="top" usebox="none">
3621 \begin_layout Plain Layout
3627 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3630 \begin_layout Plain Layout
3638 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3641 \begin_layout Plain Layout
3649 <cell alignment="center" valignment="top" usebox="none">
3652 \begin_layout Plain Layout
3658 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3661 \begin_layout Plain Layout
3669 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3672 \begin_layout Plain Layout
3680 <cell alignment="center" valignment="top" usebox="none">
3683 \begin_layout Plain Layout
3689 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3692 \begin_layout Plain Layout
3700 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3703 \begin_layout Plain Layout
3711 <cell alignment="center" valignment="top" usebox="none">
3714 \begin_layout Plain Layout
3720 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3723 \begin_layout Plain Layout
3731 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3734 \begin_layout Plain Layout
3742 <cell alignment="center" valignment="top" usebox="none">
3745 \begin_layout Plain Layout
3751 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3754 \begin_layout Plain Layout
3762 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3765 \begin_layout Plain Layout
3773 <cell alignment="center" valignment="top" usebox="none">
3776 \begin_layout Plain Layout
3782 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3785 \begin_layout Plain Layout
3793 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3796 \begin_layout Plain Layout
3804 <cell alignment="center" valignment="top" usebox="none">
3807 \begin_layout Plain Layout
3813 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3816 \begin_layout Plain Layout
3824 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3827 \begin_layout Plain Layout
3835 <cell alignment="center" valignment="top" usebox="none">
3838 \begin_layout Plain Layout
3844 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3847 \begin_layout Plain Layout
3855 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3858 \begin_layout Plain Layout
3866 <cell alignment="center" valignment="top" usebox="none">
3869 \begin_layout Plain Layout
3875 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3878 \begin_layout Plain Layout
3886 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3889 \begin_layout Plain Layout
3897 <cell alignment="center" valignment="top" usebox="none">
3900 \begin_layout Plain Layout
3906 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3909 \begin_layout Plain Layout
3917 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3920 \begin_layout Plain Layout
3928 <cell alignment="center" valignment="top" usebox="none">
3931 \begin_layout Plain Layout
3937 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3940 \begin_layout Plain Layout
3948 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3951 \begin_layout Plain Layout
3959 <cell alignment="center" valignment="top" usebox="none">
3962 \begin_layout Plain Layout
3968 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3971 \begin_layout Plain Layout
3979 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3982 \begin_layout Plain Layout
3990 <cell alignment="center" valignment="top" usebox="none">
3993 \begin_layout Plain Layout
3999 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4002 \begin_layout Plain Layout
4010 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4013 \begin_layout Plain Layout
4021 <cell alignment="center" valignment="top" usebox="none">
4024 \begin_layout Plain Layout
4030 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4033 \begin_layout Plain Layout
4041 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4044 \begin_layout Plain Layout
4052 <cell alignment="center" valignment="top" usebox="none">
4055 \begin_layout Plain Layout
4061 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4064 \begin_layout Plain Layout
4072 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4075 \begin_layout Plain Layout
4083 <cell alignment="center" valignment="top" usebox="none">
4086 \begin_layout Plain Layout
4092 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4095 \begin_layout Plain Layout
4103 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4106 \begin_layout Plain Layout
4114 <cell alignment="center" valignment="top" usebox="none">
4117 \begin_layout Plain Layout
4123 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4126 \begin_layout Plain Layout
4134 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4137 \begin_layout Plain Layout
4145 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4148 \begin_layout Plain Layout
4154 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4157 \begin_layout Plain Layout
4165 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4168 \begin_layout Plain Layout
4174 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4177 \begin_layout Plain Layout
4183 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4186 \begin_layout Plain Layout
4194 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4197 \begin_layout Plain Layout
4205 <cell alignment="center" valignment="top" usebox="none">
4208 \begin_layout Plain Layout
4214 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4217 \begin_layout Plain Layout
4225 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4228 \begin_layout Plain Layout
4236 <cell alignment="center" valignment="top" usebox="none">
4239 \begin_layout Plain Layout
4245 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4248 \begin_layout Plain Layout
4256 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4259 \begin_layout Plain Layout
4267 <cell alignment="center" valignment="top" usebox="none">
4270 \begin_layout Plain Layout
4276 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4279 \begin_layout Plain Layout
4287 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4290 \begin_layout Plain Layout
4298 <cell alignment="center" valignment="top" usebox="none">
4301 \begin_layout Plain Layout
4307 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4310 \begin_layout Plain Layout
4318 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4321 \begin_layout Plain Layout
4329 <cell alignment="center" valignment="top" usebox="none">
4332 \begin_layout Plain Layout
4338 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4341 \begin_layout Plain Layout
4349 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4352 \begin_layout Plain Layout
4360 <cell alignment="center" valignment="top" usebox="none">
4363 \begin_layout Plain Layout
4369 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4372 \begin_layout Plain Layout
4380 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4383 \begin_layout Plain Layout
4391 <cell alignment="center" valignment="top" usebox="none">
4394 \begin_layout Plain Layout
4400 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4403 \begin_layout Plain Layout
4411 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4414 \begin_layout Plain Layout
4422 <cell alignment="center" valignment="top" usebox="none">
4425 \begin_layout Plain Layout
4431 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4434 \begin_layout Plain Layout
4442 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4445 \begin_layout Plain Layout
4453 <cell alignment="center" valignment="top" usebox="none">
4456 \begin_layout Plain Layout
4462 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4465 \begin_layout Plain Layout
4473 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4476 \begin_layout Plain Layout
4484 <cell alignment="center" valignment="top" usebox="none">
4487 \begin_layout Plain Layout
4493 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4496 \begin_layout Plain Layout
4504 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4507 \begin_layout Plain Layout
4515 <cell alignment="center" valignment="top" usebox="none">
4518 \begin_layout Plain Layout
4524 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4527 \begin_layout Plain Layout
4535 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4538 \begin_layout Plain Layout
4546 <cell alignment="center" valignment="top" usebox="none">
4549 \begin_layout Plain Layout
4555 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4558 \begin_layout Plain Layout
4566 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4569 \begin_layout Plain Layout
4577 <cell alignment="center" valignment="top" usebox="none">
4580 \begin_layout Plain Layout
4586 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4589 \begin_layout Plain Layout
4597 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4600 \begin_layout Plain Layout
4608 <cell alignment="center" valignment="top" usebox="none">
4611 \begin_layout Plain Layout
4617 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4620 \begin_layout Plain Layout
4628 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4631 \begin_layout Plain Layout
4639 <cell alignment="center" valignment="top" usebox="none">
4642 \begin_layout Plain Layout
4648 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4651 \begin_layout Plain Layout
4659 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4662 \begin_layout Plain Layout
4670 <cell alignment="center" valignment="top" usebox="none">
4673 \begin_layout Plain Layout
4679 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4682 \begin_layout Plain Layout
4690 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4693 \begin_layout Plain Layout
4701 <cell alignment="center" valignment="top" usebox="none">
4704 \begin_layout Plain Layout
4710 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4713 \begin_layout Plain Layout
4721 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4724 \begin_layout Plain Layout
4732 <cell alignment="center" valignment="top" usebox="none">
4735 \begin_layout Plain Layout
4741 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4744 \begin_layout Plain Layout
4752 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4755 \begin_layout Plain Layout
4763 <cell alignment="center" valignment="top" usebox="none">
4766 \begin_layout Plain Layout
4772 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4775 \begin_layout Plain Layout
4783 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4786 \begin_layout Plain Layout
4794 <cell alignment="center" valignment="top" usebox="none">
4797 \begin_layout Plain Layout
4803 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4806 \begin_layout Plain Layout
4814 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4817 \begin_layout Plain Layout
4825 <cell alignment="center" valignment="top" usebox="none">
4828 \begin_layout Plain Layout
4834 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4837 \begin_layout Plain Layout
4845 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4848 \begin_layout Plain Layout
4856 <cell alignment="center" valignment="top" usebox="none">
4859 \begin_layout Plain Layout
4865 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4868 \begin_layout Plain Layout
4876 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4879 \begin_layout Plain Layout
4887 <cell alignment="center" valignment="top" usebox="none">
4890 \begin_layout Plain Layout
4896 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4899 \begin_layout Plain Layout
4907 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4910 \begin_layout Plain Layout
4918 <cell alignment="center" valignment="top" usebox="none">
4921 \begin_layout Plain Layout
4927 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4930 \begin_layout Plain Layout
4938 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4941 \begin_layout Plain Layout
4949 <cell alignment="center" valignment="top" usebox="none">
4952 \begin_layout Plain Layout
4958 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4961 \begin_layout Plain Layout
4969 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4972 \begin_layout Plain Layout
4980 <cell alignment="center" valignment="top" usebox="none">
4983 \begin_layout Plain Layout
4989 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4992 \begin_layout Plain Layout
5000 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5003 \begin_layout Plain Layout
5011 <cell alignment="center" valignment="top" usebox="none">
5014 \begin_layout Plain Layout
5020 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5023 \begin_layout Plain Layout
5031 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5034 \begin_layout Plain Layout
5042 <cell alignment="center" valignment="top" usebox="none">
5045 \begin_layout Plain Layout
5051 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5054 \begin_layout Plain Layout
5062 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5065 \begin_layout Plain Layout
5073 <cell alignment="center" valignment="top" usebox="none">
5076 \begin_layout Plain Layout
5082 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5085 \begin_layout Plain Layout
5093 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5096 \begin_layout Plain Layout
5104 <cell alignment="center" valignment="top" usebox="none">
5107 \begin_layout Plain Layout
5113 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5116 \begin_layout Plain Layout
5124 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5127 \begin_layout Plain Layout
5135 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5138 \begin_layout Plain Layout
5144 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5147 \begin_layout Plain Layout
5154 <row endlastfoot="true">
5155 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5158 \begin_layout Plain Layout
5164 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5167 \begin_layout Plain Layout
5173 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5176 \begin_layout Plain Layout
5191 \begin_layout Plain Layout
5195 addtocounter{table}{-1}
5201 \begin_inset Note Note
5204 \begin_layout Plain Layout
5205 See greyed-out note in section
5206 \begin_inset Space ~
5210 \begin_inset CommandInset ref
5212 reference "sub:Longtable-Captions"
5216 for an explanation of this command.
5224 \begin_layout Subsection
5225 Footnotes in Longtables
5226 \begin_inset CommandInset label
5228 name "sub:Footnotes-in-Longtables"
5236 \begin_layout Plain Layout
5237 Longtables ! Footnotes
5245 \begin_layout Standard
5246 Footnotes can be inserted to every longtable cell.
5247 They appear at the bottom of the page where the table cell with the footnote
5250 \begin_inset Space ~
5254 \begin_inset CommandInset ref
5256 reference "tab:DiffCaptions"
5260 has for example a footnote.
5263 \begin_layout Subsection
5268 \begin_layout Plain Layout
5269 Longtables ! Alignment
5277 \begin_layout Standard
5278 Longtables are by default centered.
5279 In contrary to the alignment of the table columns and row, the table alignment
5280 can currently not be changed in the table dialog.
5281 To change the alignment of longtables you have to change the value of the
5294 by inserting this line as TeX-Code before the corresponding longtable:
5297 \begin_layout Standard
5307 \begin_layout Standard
5308 Where the value can have any of the units listed in Table
5309 \begin_inset Space ~
5313 \begin_inset CommandInset ref
5315 reference "tab:Units"
5326 controls the horizontal distance from the left page border to the longtable,
5333 the distance from the right side.
5334 The default value for both lengths is
5340 , which is in this case the same as an horizontal fill in LyX.
5343 \begin_layout Standard
5344 The following longtable was left-aligned by setting
5351 \begin_inset Space \thinspace{}
5358 \begin_layout Plain Layout
5372 \begin_layout Standard
5373 \begin_inset Tabular
5374 <lyxtabular version="3" rows="5" columns="5">
5375 <features islongtable="true">
5376 <column alignment="center" valignment="top" width="0">
5377 <column alignment="center" valignment="top" width="0">
5378 <column alignment="center" valignment="top" width="0">
5379 <column alignment="center" valignment="top" width="0">
5380 <column alignment="center" valignment="top" width="0">
5382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5385 \begin_layout Plain Layout
5391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5394 \begin_layout Plain Layout
5400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5403 \begin_layout Plain Layout
5409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5412 \begin_layout Plain Layout
5418 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5421 \begin_layout Plain Layout
5429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5432 \begin_layout Plain Layout
5438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5441 \begin_layout Plain Layout
5447 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5450 \begin_layout Plain Layout
5456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5459 \begin_layout Plain Layout
5465 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5468 \begin_layout Plain Layout
5476 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5479 \begin_layout Plain Layout
5485 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5488 \begin_layout Plain Layout
5494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5497 \begin_layout Plain Layout
5503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5506 \begin_layout Plain Layout
5512 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5515 \begin_layout Plain Layout
5523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5526 \begin_layout Plain Layout
5532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5535 \begin_layout Plain Layout
5541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5544 \begin_layout Plain Layout
5550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5553 \begin_layout Plain Layout
5559 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5562 \begin_layout Plain Layout
5570 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5573 \begin_layout Plain Layout
5579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5582 \begin_layout Plain Layout
5588 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5591 \begin_layout Plain Layout
5597 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5600 \begin_layout Plain Layout
5606 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5609 \begin_layout Plain Layout
5624 \begin_layout Plain Layout
5640 \begin_layout Subsection
5645 \begin_layout Plain Layout
5646 Longtables ! Captions
5652 \begin_inset CommandInset label
5654 name "sub:Longtable-Captions"
5661 \begin_layout Standard
5662 A longtable cannot be put into a table float because floats can only be
5663 on one page but the caption environment of floats can also be used for
5667 \begin_layout Standard
5668 As LyX does not yet fully support captions in longtables, a hack is needed
5672 \begin_layout Enumerate
5678 \begin_layout Enumerate
5679 Mark the first row and disable its upper line.
5682 \begin_layout Enumerate
5683 Insert a caption via the menu
5685 Insert\SpecialChar \menuseparator
5688 into the first table cell.
5689 \begin_inset Newline newline
5692 You can also add a short title for the caption.
5695 \begin_layout Enumerate
5697 \begin_inset Quotes eld
5709 \begin_inset Quotes erd
5712 as TeX-Code behind the caption.
5715 \begin_layout Standard
5716 A short title that will appear in the LOT instead of the full title.
5725 behind the caption omits the vertical lines between the following cells
5727 The first table row is now only a dummy row for the caption, the actual
5728 table starts with the second row.
5731 \begin_layout Standard
5732 Here is a short longtable to see how it works:
5735 \begin_layout Standard
5736 \begin_inset Tabular
5737 <lyxtabular version="3" rows="6" columns="5">
5738 <features islongtable="true">
5739 <column alignment="center" valignment="top" width="0">
5740 <column alignment="center" valignment="top" width="0">
5741 <column alignment="center" valignment="top" width="0">
5742 <column alignment="center" valignment="top" width="0">
5743 <column alignment="center" valignment="top" width="0">
5744 <row caption="true">
5745 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5748 \begin_layout Plain Layout
5749 \begin_inset Caption
5751 \begin_layout Plain Layout
5752 Longtable with caption
5756 \begin_layout Plain Layout
5772 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5775 \begin_layout Plain Layout
5781 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5784 \begin_layout Plain Layout
5790 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5793 \begin_layout Plain Layout
5799 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5802 \begin_layout Plain Layout
5810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5813 \begin_layout Plain Layout
5819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5822 \begin_layout Plain Layout
5828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5831 \begin_layout Plain Layout
5837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5840 \begin_layout Plain Layout
5846 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5849 \begin_layout Plain Layout
5857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5860 \begin_layout Plain Layout
5866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5869 \begin_layout Plain Layout
5875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5878 \begin_layout Plain Layout
5884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5887 \begin_layout Plain Layout
5893 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5896 \begin_layout Plain Layout
5904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5907 \begin_layout Plain Layout
5913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5916 \begin_layout Plain Layout
5922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5925 \begin_layout Plain Layout
5931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5934 \begin_layout Plain Layout
5940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5943 \begin_layout Plain Layout
5951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5954 \begin_layout Plain Layout
5960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5963 \begin_layout Plain Layout
5969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5972 \begin_layout Plain Layout
5978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5981 \begin_layout Plain Layout
5987 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5990 \begin_layout Plain Layout
5998 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6001 \begin_layout Plain Layout
6007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6010 \begin_layout Plain Layout
6016 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6019 \begin_layout Plain Layout
6025 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6028 \begin_layout Plain Layout
6034 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6037 \begin_layout Plain Layout
6051 \begin_layout Standard
6052 \begin_inset VSpace medskip
6056 \begin_inset Note Greyedout
6059 \begin_layout Plain Layout
6064 The table number is increased for every longtable, also if you didn't set
6066 For this reason you could have the case that e.g.
6068 \begin_inset Space ~
6071 2.4 follows on Table
6072 \begin_inset Space ~
6075 2.1 in the list of tables if there are two longtables without captions.
6076 To avoid this you can add the following command in TeX-Code behind every
6077 longtable without a caption:
6080 \begin_layout Plain Layout
6085 addtocounter{table}{-1}
6093 \begin_layout Standard
6094 \begin_inset Note Greyedout
6097 \begin_layout Plain Layout
6102 If you are using the LaTeX-package
6110 \begin_layout Plain Layout
6111 LaTeX-packages ! hyperref
6116 to link cross-references, the link to a longtable caption will always point
6117 to the beginning of the document.
6125 \begin_layout Standard
6126 \begin_inset Newpage newpage
6132 \begin_layout Subsubsection
6133 References to Longtables
6137 \begin_layout Plain Layout
6138 Longtables ! References
6146 \begin_layout Standard
6147 \begin_inset Tabular
6148 <lyxtabular version="3" rows="6" columns="5">
6149 <features islongtable="true">
6150 <column alignment="center" valignment="top" width="0">
6151 <column alignment="center" valignment="top" width="0">
6152 <column alignment="center" valignment="top" width="0">
6153 <column alignment="center" valignment="top" width="0">
6154 <column alignment="center" valignment="top" width="0">
6155 <row caption="true">
6156 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6159 \begin_layout Plain Layout
6160 \begin_inset Caption
6162 \begin_layout Plain Layout
6163 Referenced longtable
6164 \begin_inset CommandInset label
6166 name "tab:RefExample"
6180 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6183 \begin_layout Plain Layout
6189 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6192 \begin_layout Plain Layout
6198 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6201 \begin_layout Plain Layout
6207 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6210 \begin_layout Plain Layout
6218 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6221 \begin_layout Plain Layout
6227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6230 \begin_layout Plain Layout
6236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6239 \begin_layout Plain Layout
6245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6248 \begin_layout Plain Layout
6254 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6257 \begin_layout Plain Layout
6265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6268 \begin_layout Plain Layout
6274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6277 \begin_layout Plain Layout
6283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6286 \begin_layout Plain Layout
6292 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6295 \begin_layout Plain Layout
6301 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6304 \begin_layout Plain Layout
6312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6315 \begin_layout Plain Layout
6321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6324 \begin_layout Plain Layout
6330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6333 \begin_layout Plain Layout
6339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6342 \begin_layout Plain Layout
6348 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6351 \begin_layout Plain Layout
6359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6362 \begin_layout Plain Layout
6368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6371 \begin_layout Plain Layout
6377 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6380 \begin_layout Plain Layout
6386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6389 \begin_layout Plain Layout
6395 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6398 \begin_layout Plain Layout
6406 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6409 \begin_layout Plain Layout
6415 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6418 \begin_layout Plain Layout
6424 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6427 \begin_layout Plain Layout
6433 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6436 \begin_layout Plain Layout
6442 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6445 \begin_layout Plain Layout
6459 \begin_layout Standard
6460 To reference a longtable, insert a label into the caption.
6461 Note that you have to add the label prefix
6462 \begin_inset Quotes eld
6470 \begin_inset Quotes eld
6473 manually in the label field.
6476 \begin_layout Standard
6477 This is a reference to Table
6478 \begin_inset Space ~
6482 \begin_inset CommandInset ref
6484 reference "tab:RefExample"
6491 \begin_layout Standard
6492 The caption layout can be set together with all other caption of your document
6493 using the LaTeX-package
6501 \begin_layout Plain Layout
6502 LaTeX-packages ! caption
6508 \begin_inset Space ~
6512 \begin_inset CommandInset ref
6514 reference "sec:Caption-Formatting"
6521 \begin_layout Subsubsection
6526 \begin_layout Plain Layout
6527 Longtables ! Caption Width
6535 \begin_layout Standard
6536 The maximal width of of caption lines is defined by the length
6543 Its default value is 4
6544 \begin_inset Space \thinspace{}
6548 To change it add the following command to your document preamble or as
6549 TeX-Code into your document before the longtable that should be affected
6552 \begin_layout Standard
6562 \begin_layout Standard
6563 where the width could have one of the units listed in appendix
6564 \begin_inset Space ~
6568 \begin_inset CommandInset ref
6570 reference "cha:Units-available-in"
6577 \begin_layout Standard
6578 The following tables show the difference:
6581 \begin_layout Standard
6582 \begin_inset Tabular
6583 <lyxtabular version="3" rows="6" columns="5">
6584 <features islongtable="true">
6585 <column alignment="center" valignment="top" width="0">
6586 <column alignment="center" valignment="top" width="0">
6587 <column alignment="center" valignment="top" width="0">
6588 <column alignment="center" valignment="top" width="0">
6589 <column alignment="center" valignment="top" width="0">
6590 <row caption="true">
6591 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6594 \begin_layout Plain Layout
6595 \begin_inset Caption
6597 \begin_layout Plain Layout
6598 long full title with default width long full title with default width long
6599 full title with default width
6603 \begin_layout Plain Layout
6604 caption with default width
6619 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6622 \begin_layout Plain Layout
6628 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6631 \begin_layout Plain Layout
6637 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6640 \begin_layout Plain Layout
6646 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6649 \begin_layout Plain Layout
6657 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6660 \begin_layout Plain Layout
6666 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6669 \begin_layout Plain Layout
6675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6678 \begin_layout Plain Layout
6684 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6687 \begin_layout Plain Layout
6693 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6696 \begin_layout Plain Layout
6704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6707 \begin_layout Plain Layout
6713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6716 \begin_layout Plain Layout
6722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6725 \begin_layout Plain Layout
6731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6734 \begin_layout Plain Layout
6740 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6743 \begin_layout Plain Layout
6751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6754 \begin_layout Plain Layout
6760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6763 \begin_layout Plain Layout
6769 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6772 \begin_layout Plain Layout
6778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6781 \begin_layout Plain Layout
6787 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6790 \begin_layout Plain Layout
6798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6801 \begin_layout Plain Layout
6807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6810 \begin_layout Plain Layout
6816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6819 \begin_layout Plain Layout
6825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6828 \begin_layout Plain Layout
6834 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6837 \begin_layout Plain Layout
6845 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6848 \begin_layout Plain Layout
6854 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6857 \begin_layout Plain Layout
6863 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6866 \begin_layout Plain Layout
6872 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6875 \begin_layout Plain Layout
6881 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6884 \begin_layout Plain Layout
6898 \begin_layout Standard
6902 \begin_layout Plain Layout
6914 \begin_inset Tabular
6915 <lyxtabular version="3" rows="6" columns="5">
6916 <features islongtable="true">
6917 <column alignment="center" valignment="top" width="0">
6918 <column alignment="center" valignment="top" width="0">
6919 <column alignment="center" valignment="top" width="0">
6920 <column alignment="center" valignment="top" width="0">
6921 <column alignment="center" valignment="top" width="0">
6922 <row caption="true">
6923 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6926 \begin_layout Plain Layout
6927 \begin_inset Caption
6929 \begin_layout Plain Layout
6930 long full title with width set to 5
6931 \begin_inset Space \thinspace{}
6934 cm long full title with width set to 5
6935 \begin_inset Space \thinspace{}
6938 cm long full title with width set to 5
6939 \begin_inset Space \thinspace{}
6946 \begin_layout Plain Layout
6948 \begin_inset Space \thinspace{}
6952 \begin_inset Space \thinspace{}
6956 \begin_inset Space \thinspace{}
6974 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6977 \begin_layout Plain Layout
6983 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6986 \begin_layout Plain Layout
6992 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6995 \begin_layout Plain Layout
7001 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7004 \begin_layout Plain Layout
7012 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7015 \begin_layout Plain Layout
7021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7024 \begin_layout Plain Layout
7030 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7033 \begin_layout Plain Layout
7039 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7042 \begin_layout Plain Layout
7048 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7051 \begin_layout Plain Layout
7059 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7062 \begin_layout Plain Layout
7068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7071 \begin_layout Plain Layout
7077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7080 \begin_layout Plain Layout
7086 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7089 \begin_layout Plain Layout
7095 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7098 \begin_layout Plain Layout
7106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7109 \begin_layout Plain Layout
7115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7118 \begin_layout Plain Layout
7124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7127 \begin_layout Plain Layout
7133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7136 \begin_layout Plain Layout
7142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7145 \begin_layout Plain Layout
7153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7156 \begin_layout Plain Layout
7162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7165 \begin_layout Plain Layout
7171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7174 \begin_layout Plain Layout
7180 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7183 \begin_layout Plain Layout
7189 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7192 \begin_layout Plain Layout
7200 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7203 \begin_layout Plain Layout
7209 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7212 \begin_layout Plain Layout
7218 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7221 \begin_layout Plain Layout
7227 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7230 \begin_layout Plain Layout
7236 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7239 \begin_layout Plain Layout
7253 \begin_layout Standard
7257 \begin_layout Plain Layout
7271 \begin_layout Standard
7272 \begin_inset Note Greyedout
7275 \begin_layout Plain Layout
7280 When the LaTeX-package
7288 \begin_layout Plain Layout
7289 LaTeX-packages ! caption
7294 is used, as in this document, the full page width is used for the caption
7295 when you use the default value of 4
7296 \begin_inset Space \thinspace{}
7306 To get in this case exactly a 4
7307 \begin_inset Space \thinspace{}
7310 in wide caption, you can either use a value slightly different from 4.0
7311 \begin_inset Space \thinspace{}
7316 \begin_inset Space \thinspace{}
7319 in, or the LaTeX-command
7323 captionsetup{width=value}
7325 that is provided by the
7337 \begin_layout Subsubsection
7338 Different Captions for Table Pages
7342 \begin_layout Plain Layout
7343 Longtables ! Different Captions for Pages
7351 \begin_layout Standard
7352 When the other captions should differ from the one of the first table page,
7353 insert a caption with a non-empty short title in a dummy caption row marked
7355 The caption used for the other table pages is inserted as caption without
7356 a short title in a dummy caption row that is marked as main header.
7357 When this caption shouldn't include the table number, use the command
7360 \begin_layout Standard
7365 caption*{caption text}
7368 \begin_layout Standard
7369 instead of LyX's caption box.
7370 The label to reference the table is inserted into the caption of the first
7373 \begin_inset Space ~
7377 \begin_inset CommandInset ref
7379 reference "tab:DiffCaptions"
7383 is an example for a longtable with different heading where the second caption
7384 doesn't include the table number.
7387 \begin_layout Standard
7389 \begin_inset Tabular
7390 <lyxtabular version="3" rows="59" columns="3">
7391 <features islongtable="true">
7392 <column alignment="left" valignment="top" width="0cm">
7393 <column alignment="left" valignment="top" width="0pt">
7394 <column alignment="center" valignment="top" width="0pt">
7395 <row endfirsthead="true" caption="true">
7396 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7399 \begin_layout Plain Layout
7400 \begin_inset Caption
7402 \begin_layout Plain Layout
7404 \begin_inset CommandInset label
7406 name "tab:DiffCaptions"
7414 \begin_layout Plain Layout
7430 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7433 \begin_layout Plain Layout
7439 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7442 \begin_layout Plain Layout
7449 <row endfirsthead="true">
7450 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7453 \begin_layout Plain Layout
7456 Example Phone List (ignore the names)
7461 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7464 \begin_layout Plain Layout
7470 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7473 \begin_layout Plain Layout
7480 <row endfirsthead="true">
7481 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7484 \begin_layout Plain Layout
7492 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7495 \begin_layout Plain Layout
7501 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7504 \begin_layout Plain Layout
7513 <row endhead="true" caption="true">
7514 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7517 \begin_layout Plain Layout
7521 \begin_layout Plain Layout
7525 caption*{Continued Example Phone List}
7539 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7542 \begin_layout Plain Layout
7548 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7551 \begin_layout Plain Layout
7558 <row endhead="true">
7559 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7562 \begin_layout Plain Layout
7570 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7573 \begin_layout Plain Layout
7579 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7582 \begin_layout Plain Layout
7589 <row endhead="true">
7590 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
7593 \begin_layout Plain Layout
7601 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7604 \begin_layout Plain Layout
7610 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7613 \begin_layout Plain Layout
7622 <row endfoot="true">
7623 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7626 \begin_layout Plain Layout
7627 continued on next page
7632 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7635 \begin_layout Plain Layout
7641 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7644 \begin_layout Plain Layout
7652 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7655 \begin_layout Plain Layout
7663 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7666 \begin_layout Plain Layout
7672 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7675 \begin_layout Plain Layout
7683 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7686 \begin_layout Plain Layout
7694 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7697 \begin_layout Plain Layout
7703 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7706 \begin_layout Plain Layout
7714 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7717 \begin_layout Plain Layout
7725 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7728 \begin_layout Plain Layout
7734 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7737 \begin_layout Plain Layout
7745 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7748 \begin_layout Plain Layout
7756 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7759 \begin_layout Plain Layout
7765 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7768 \begin_layout Plain Layout
7776 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7779 \begin_layout Plain Layout
7787 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7790 \begin_layout Plain Layout
7796 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7799 \begin_layout Plain Layout
7807 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7810 \begin_layout Plain Layout
7818 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7821 \begin_layout Plain Layout
7827 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7830 \begin_layout Plain Layout
7838 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7841 \begin_layout Plain Layout
7849 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7852 \begin_layout Plain Layout
7858 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7861 \begin_layout Plain Layout
7869 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7872 \begin_layout Plain Layout
7880 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7883 \begin_layout Plain Layout
7889 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7892 \begin_layout Plain Layout
7900 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7903 \begin_layout Plain Layout
7911 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7914 \begin_layout Plain Layout
7920 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7923 \begin_layout Plain Layout
7931 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7934 \begin_layout Plain Layout
7942 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7945 \begin_layout Plain Layout
7951 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7954 \begin_layout Plain Layout
7962 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7965 \begin_layout Plain Layout
7973 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7976 \begin_layout Plain Layout
7982 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7985 \begin_layout Plain Layout
7993 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7996 \begin_layout Plain Layout
8004 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8007 \begin_layout Plain Layout
8013 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8016 \begin_layout Plain Layout
8024 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8027 \begin_layout Plain Layout
8035 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8038 \begin_layout Plain Layout
8044 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8047 \begin_layout Plain Layout
8055 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8058 \begin_layout Plain Layout
8066 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8069 \begin_layout Plain Layout
8075 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8078 \begin_layout Plain Layout
8086 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8089 \begin_layout Plain Layout
8098 \begin_layout Plain Layout
8109 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8112 \begin_layout Plain Layout
8118 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8121 \begin_layout Plain Layout
8129 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8132 \begin_layout Plain Layout
8140 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8143 \begin_layout Plain Layout
8149 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8152 \begin_layout Plain Layout
8160 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8163 \begin_layout Plain Layout
8171 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8174 \begin_layout Plain Layout
8180 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8183 \begin_layout Plain Layout
8191 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8194 \begin_layout Plain Layout
8202 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8205 \begin_layout Plain Layout
8211 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8214 \begin_layout Plain Layout
8222 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8225 \begin_layout Plain Layout
8233 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8236 \begin_layout Plain Layout
8242 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8245 \begin_layout Plain Layout
8253 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8256 \begin_layout Plain Layout
8264 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8267 \begin_layout Plain Layout
8273 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8276 \begin_layout Plain Layout
8284 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8287 \begin_layout Plain Layout
8295 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8298 \begin_layout Plain Layout
8304 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8307 \begin_layout Plain Layout
8315 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8318 \begin_layout Plain Layout
8326 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8329 \begin_layout Plain Layout
8335 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8338 \begin_layout Plain Layout
8346 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8349 \begin_layout Plain Layout
8357 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8360 \begin_layout Plain Layout
8366 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8369 \begin_layout Plain Layout
8377 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8380 \begin_layout Plain Layout
8388 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8391 \begin_layout Plain Layout
8397 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8400 \begin_layout Plain Layout
8408 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8411 \begin_layout Plain Layout
8419 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8422 \begin_layout Plain Layout
8428 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8431 \begin_layout Plain Layout
8439 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8442 \begin_layout Plain Layout
8450 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8453 \begin_layout Plain Layout
8459 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8462 \begin_layout Plain Layout
8470 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8473 \begin_layout Plain Layout
8481 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8484 \begin_layout Plain Layout
8490 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8493 \begin_layout Plain Layout
8501 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8504 \begin_layout Plain Layout
8512 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8515 \begin_layout Plain Layout
8521 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8524 \begin_layout Plain Layout
8532 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8535 \begin_layout Plain Layout
8543 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8546 \begin_layout Plain Layout
8552 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8555 \begin_layout Plain Layout
8563 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8566 \begin_layout Plain Layout
8574 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8577 \begin_layout Plain Layout
8583 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8586 \begin_layout Plain Layout
8594 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8597 \begin_layout Plain Layout
8605 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8608 \begin_layout Plain Layout
8614 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8617 \begin_layout Plain Layout
8625 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8628 \begin_layout Plain Layout
8634 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8637 \begin_layout Plain Layout
8643 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8646 \begin_layout Plain Layout
8654 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8657 \begin_layout Plain Layout
8665 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8668 \begin_layout Plain Layout
8674 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8677 \begin_layout Plain Layout
8685 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8688 \begin_layout Plain Layout
8696 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8699 \begin_layout Plain Layout
8705 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8708 \begin_layout Plain Layout
8716 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8719 \begin_layout Plain Layout
8727 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8730 \begin_layout Plain Layout
8736 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8739 \begin_layout Plain Layout
8747 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8750 \begin_layout Plain Layout
8758 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8761 \begin_layout Plain Layout
8767 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8770 \begin_layout Plain Layout
8778 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8781 \begin_layout Plain Layout
8789 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8792 \begin_layout Plain Layout
8798 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8801 \begin_layout Plain Layout
8809 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8812 \begin_layout Plain Layout
8820 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8823 \begin_layout Plain Layout
8829 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8832 \begin_layout Plain Layout
8840 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8843 \begin_layout Plain Layout
8851 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8854 \begin_layout Plain Layout
8860 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8863 \begin_layout Plain Layout
8871 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8874 \begin_layout Plain Layout
8882 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8885 \begin_layout Plain Layout
8891 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8894 \begin_layout Plain Layout
8902 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8905 \begin_layout Plain Layout
8913 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8916 \begin_layout Plain Layout
8922 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8925 \begin_layout Plain Layout
8933 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8936 \begin_layout Plain Layout
8944 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8947 \begin_layout Plain Layout
8953 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8956 \begin_layout Plain Layout
8964 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8967 \begin_layout Plain Layout
8975 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8978 \begin_layout Plain Layout
8984 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8987 \begin_layout Plain Layout
8995 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8998 \begin_layout Plain Layout
9006 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9009 \begin_layout Plain Layout
9015 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9018 \begin_layout Plain Layout
9026 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9029 \begin_layout Plain Layout
9037 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9040 \begin_layout Plain Layout
9046 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9049 \begin_layout Plain Layout
9057 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9060 \begin_layout Plain Layout
9068 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9071 \begin_layout Plain Layout
9077 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9080 \begin_layout Plain Layout
9088 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9091 \begin_layout Plain Layout
9099 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9102 \begin_layout Plain Layout
9108 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9111 \begin_layout Plain Layout
9119 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9122 \begin_layout Plain Layout
9130 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9133 \begin_layout Plain Layout
9139 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9142 \begin_layout Plain Layout
9150 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9153 \begin_layout Plain Layout
9161 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9164 \begin_layout Plain Layout
9170 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9173 \begin_layout Plain Layout
9181 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9184 \begin_layout Plain Layout
9192 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9195 \begin_layout Plain Layout
9201 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9204 \begin_layout Plain Layout
9212 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9215 \begin_layout Plain Layout
9223 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9226 \begin_layout Plain Layout
9232 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9235 \begin_layout Plain Layout
9243 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9246 \begin_layout Plain Layout
9254 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9257 \begin_layout Plain Layout
9263 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9266 \begin_layout Plain Layout
9280 \begin_layout Section
9281 Special Longtable Issues
9282 \begin_inset CommandInset label
9284 name "sec:Special-Longtable-Issues"
9291 \begin_layout Subsection
9292 Longtable Calculation
9296 \begin_layout Plain Layout
9297 Longtables ! Calculation
9305 \begin_layout Standard
9306 LaTeX calculates the height of table pages and their page breaks using so
9308 Chunks are pieces of the tables that are at once in LaTeX's memory.
9309 The default value is historically set to only 20 table rows.
9310 If you are using longtables with many pages this may slow down the creation
9312 You can safely increase the chunk size to values of 100-1000 by adding
9313 this command line to your document preamble:
9316 \begin_layout Standard
9321 setcounter{LTchunksize}{100}
9324 \begin_layout Subsection
9325 Floats and Longtables
9329 \begin_layout Plain Layout
9338 \begin_layout Standard
9339 There might be problems when a float appears on the same page where a longtable
9341 To avoid such situation, add the command
9347 as TeX-Code before your longtable.
9350 \begin_layout Subsection
9355 \begin_layout Plain Layout
9356 Longtables ! Forced Page Breaks
9364 \begin_layout Standard
9365 By default tables are only broken between rows.
9366 If you have a cell with multiples lines and want to have a page break within
9367 the cell, insert the new line command
9368 \begin_inset Quotes eld
9380 \begin_inset Quotes erd
9383 as TeX-Code at this point of the cell where it should be broken.
9392 command you have to insert in TeX-Code so many
9393 \begin_inset Quotes eld
9401 \begin_inset Quotes erd
9404 characters like the number of the following table columns.
9409 is the character to separate table cells.
9410 Write in TeX-Code after each
9414 the content of the corresponding following cell and delete the content
9416 \begin_inset Newline newline
9427 command, insert so many
9431 characters like the number of table columns before the current column.
9433 \begin_inset Space ~
9437 \begin_inset CommandInset ref
9439 reference "tab:ForcedPagebreak"
9443 the cell that should be broken is in the second column followed by another
9445 Therefore the following command was inserted in the cell as TeX-Code behind
9447 \begin_inset Quotes eld
9455 \begin_inset Quotes erd
9461 \begin_layout Standard
9469 \begin_inset Newline newline
9475 \begin_layout Standard
9477 \begin_inset Quotes eld
9481 \begin_inset Quotes erd
9484 in the third columns of the row was deleted.
9485 If your footer row of the longtable has for a certain reason no upper line
9486 but you would have a horizontal line where the cell is broken, use this
9490 \begin_layout Standard
9498 \begin_inset Newline newline
9506 \begin_layout Standard
9507 When the cell to be broken is in the last column, the command
9510 \begin_layout Standard
9520 \begin_layout Standard
9521 must be inserted as TeX-Code at the beginning of the cell.
9522 This assures that the part of the cell that will be displayed on the new
9523 page appears with the full width.
9526 \begin_layout Standard
9528 \begin_inset Tabular
9529 <lyxtabular version="3" rows="38" columns="3">
9530 <features islongtable="true">
9531 <column alignment="left" valignment="top" width="0cm">
9532 <column alignment="left" valignment="top" width="3cm">
9533 <column alignment="center" valignment="top" width="0pt">
9534 <row endfirsthead="true" caption="true">
9535 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9538 \begin_layout Plain Layout
9539 \begin_inset Caption
9541 \begin_layout Plain Layout
9542 Table with forced page break in table cell
9543 \begin_inset CommandInset label
9545 name "tab:ForcedPagebreak"
9553 \begin_layout Plain Layout
9554 Table with forced page break in table cell
9569 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9572 \begin_layout Plain Layout
9578 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9581 \begin_layout Plain Layout
9588 <row endfirsthead="true">
9589 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9592 \begin_layout Plain Layout
9595 Example Phone List (ignore the names)
9600 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9603 \begin_layout Plain Layout
9609 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9612 \begin_layout Plain Layout
9619 <row endfirsthead="true">
9620 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9623 \begin_layout Plain Layout
9631 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9634 \begin_layout Plain Layout
9640 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9643 \begin_layout Plain Layout
9652 <row endhead="true" caption="true">
9653 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9656 \begin_layout Plain Layout
9660 \begin_layout Plain Layout
9664 caption*{Continued table with forced page break in table cell}
9678 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9681 \begin_layout Plain Layout
9687 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9690 \begin_layout Plain Layout
9697 <row endhead="true">
9698 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9701 \begin_layout Plain Layout
9709 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9712 \begin_layout Plain Layout
9718 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9721 \begin_layout Plain Layout
9728 <row endhead="true">
9729 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9732 \begin_layout Plain Layout
9740 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9743 \begin_layout Plain Layout
9749 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9752 \begin_layout Plain Layout
9761 <row endfoot="true">
9762 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9765 \begin_layout Plain Layout
9766 continued on next page
9771 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9774 \begin_layout Plain Layout
9780 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9783 \begin_layout Plain Layout
9791 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9794 \begin_layout Plain Layout
9802 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9805 \begin_layout Plain Layout
9811 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9814 \begin_layout Plain Layout
9822 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9825 \begin_layout Plain Layout
9833 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9836 \begin_layout Plain Layout
9842 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9845 \begin_layout Plain Layout
9853 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9856 \begin_layout Plain Layout
9864 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9867 \begin_layout Plain Layout
9873 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9876 \begin_layout Plain Layout
9884 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9887 \begin_layout Plain Layout
9895 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9898 \begin_layout Plain Layout
9904 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9907 \begin_layout Plain Layout
9915 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9918 \begin_layout Plain Layout
9926 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9929 \begin_layout Plain Layout
9935 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9938 \begin_layout Plain Layout
9946 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9949 \begin_layout Plain Layout
9957 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9960 \begin_layout Plain Layout
9966 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9969 \begin_layout Plain Layout
9977 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9980 \begin_layout Plain Layout
9988 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9991 \begin_layout Plain Layout
9997 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10000 \begin_layout Plain Layout
10008 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10011 \begin_layout Plain Layout
10019 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10022 \begin_layout Plain Layout
10028 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10031 \begin_layout Plain Layout
10039 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10042 \begin_layout Plain Layout
10050 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10053 \begin_layout Plain Layout
10059 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10062 \begin_layout Plain Layout
10070 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10073 \begin_layout Plain Layout
10081 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10084 \begin_layout Plain Layout
10090 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10093 \begin_layout Plain Layout
10101 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10104 \begin_layout Plain Layout
10112 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10115 \begin_layout Plain Layout
10121 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10124 \begin_layout Plain Layout
10132 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10135 \begin_layout Plain Layout
10143 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10146 \begin_layout Plain Layout
10152 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10155 \begin_layout Plain Layout
10163 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10166 \begin_layout Plain Layout
10174 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10177 \begin_layout Plain Layout
10183 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10186 \begin_layout Plain Layout
10194 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10197 \begin_layout Plain Layout
10205 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10208 \begin_layout Plain Layout
10214 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10217 \begin_layout Plain Layout
10225 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10228 \begin_layout Plain Layout
10236 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10239 \begin_layout Plain Layout
10245 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10248 \begin_layout Plain Layout
10256 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10259 \begin_layout Plain Layout
10267 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10270 \begin_layout Plain Layout
10276 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10279 \begin_layout Plain Layout
10287 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10290 \begin_layout Plain Layout
10298 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10301 \begin_layout Plain Layout
10307 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10310 \begin_layout Plain Layout
10318 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10321 \begin_layout Plain Layout
10329 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10332 \begin_layout Plain Layout
10338 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10341 \begin_layout Plain Layout
10349 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10352 \begin_layout Plain Layout
10360 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10363 \begin_layout Plain Layout
10369 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10372 \begin_layout Plain Layout
10380 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10383 \begin_layout Plain Layout
10391 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10394 \begin_layout Plain Layout
10400 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10403 \begin_layout Plain Layout
10411 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10414 \begin_layout Plain Layout
10422 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10425 \begin_layout Plain Layout
10431 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10434 \begin_layout Plain Layout
10442 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10445 \begin_layout Plain Layout
10453 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10456 \begin_layout Plain Layout
10462 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10465 \begin_layout Plain Layout
10473 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10476 \begin_layout Plain Layout
10484 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10487 \begin_layout Plain Layout
10489 Fürst von Montecompatri, 11.
10490 Fürst von Sulmona und Vivaro, 10.
10491 Fürst von Rossano, 5.
10492 Herzog von Canemorte, 11.
10493 Herzog von Palombara, 5.
10494 Herzog von Castelchiodato,
10498 \begin_layout Plain Layout
10507 \begin_layout Plain Layout
10515 Herzog von Poggionativo, 11.
10516 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10517 Graf von Valinfreda, 11.
10518 Baron von Cropalati, 11.
10519 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10524 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10527 \begin_layout Plain Layout
10535 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10538 \begin_layout Plain Layout
10546 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10549 \begin_layout Plain Layout
10555 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10558 \begin_layout Plain Layout
10566 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10569 \begin_layout Plain Layout
10577 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10580 \begin_layout Plain Layout
10586 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10589 \begin_layout Plain Layout
10597 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10600 \begin_layout Plain Layout
10608 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10611 \begin_layout Plain Layout
10617 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10620 \begin_layout Plain Layout
10628 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10631 \begin_layout Plain Layout
10639 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10642 \begin_layout Plain Layout
10648 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10651 \begin_layout Plain Layout
10659 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10662 \begin_layout Plain Layout
10670 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10673 \begin_layout Plain Layout
10679 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10682 \begin_layout Plain Layout
10690 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10693 \begin_layout Plain Layout
10701 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10704 \begin_layout Plain Layout
10710 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10713 \begin_layout Plain Layout
10721 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10724 \begin_layout Plain Layout
10732 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10735 \begin_layout Plain Layout
10741 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10744 \begin_layout Plain Layout
10752 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10755 \begin_layout Plain Layout
10763 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10766 \begin_layout Plain Layout
10772 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10775 \begin_layout Plain Layout
10789 \begin_layout Standard
10790 \begin_inset Newpage newpage
10796 \begin_layout Section
10797 Multiple Lines Columns and Rows
10800 \begin_layout Subsection
10801 Multiple Lines in Table Cells
10802 \begin_inset CommandInset label
10804 name "sub:Multiple-Lines-in"
10812 \begin_layout Plain Layout
10813 Multiple Lines in Table Cells
10822 \begin_layout Plain Layout
10831 \begin_layout Standard
10833 \begin_inset Float table
10839 \begin_layout Plain Layout
10840 \begin_inset Caption
10842 \begin_layout Plain Layout
10843 \begin_inset CommandInset label
10845 name "tab:Table-with-multiple"
10849 Table with multiple lines in cells
10857 \begin_layout Plain Layout
10859 \begin_inset Tabular
10860 <lyxtabular version="3" rows="3" columns="3">
10862 <column alignment="center" valignment="middle" width="2.5cm">
10863 <column alignment="center" valignment="middle" width="0">
10864 <column alignment="center" valignment="middle" width="0">
10866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10869 \begin_layout Plain Layout
10874 \begin_layout Plain Layout
10888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10891 \begin_layout Plain Layout
10897 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10900 \begin_layout Plain Layout
10908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10911 \begin_layout Plain Layout
10917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10920 \begin_layout Plain Layout
10926 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10929 \begin_layout Plain Layout
10937 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10940 \begin_layout Plain Layout
10946 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10949 \begin_layout Plain Layout
10955 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10958 \begin_layout Plain Layout
10977 \begin_layout Standard
10978 Adjusting a fixed width for a column, enables to enter text as a paragraph
10979 with multiple lines and hyphenations.
10982 \begin_layout Standard
10984 \begin_inset Space ~
10988 \begin_inset CommandInset ref
10990 reference "tab:Table-with-multiple"
10994 , create a 3×3 table, mark the first cell and right-click on it.
10995 In the appearing table dialog we set a cell width of 2.5
10996 \begin_inset Space \thinspace{}
10999 cm and choose centered for the vertical and horizontal alignment.
11000 The vertical alignment is used for all cells of the row.
11001 As our text is smaller than than 2.5
11002 \begin_inset Space \thinspace{}
11005 cm, only one line will appear.
11006 To get two lines, we add a line break with the command
11009 \begin_layout Standard
11017 \begin_layout Standard
11019 If the text is wider than the set cell width it will automatically be broken
11023 \begin_layout Standard
11024 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11025 by LaTeX if it is the first entry.
11026 Therefore you need to insert something, to make the word not being the
11028 So add a horizontal space of 0
11029 \begin_inset Space \thinspace{}
11032 pt before the word.
11033 As the space is zero, it doesn't change the output.
11035 \begin_inset Space ~
11039 \begin_inset CommandInset ref
11041 reference "tab:Table-with-and"
11048 \begin_layout Standard
11049 \begin_inset Float table
11055 \begin_layout Plain Layout
11056 \begin_inset Caption
11058 \begin_layout Plain Layout
11059 \begin_inset CommandInset label
11061 name "tab:Table-with-and"
11065 Table with and without hyphenation
11073 \begin_layout Plain Layout
11074 \begin_inset Space \hfill{}
11078 \begin_inset Tabular
11079 <lyxtabular version="3" rows="3" columns="3">
11081 <column alignment="center" valignment="middle" width="2.5cm">
11082 <column alignment="center" valignment="middle" width="0">
11083 <column alignment="center" valignment="middle" width="0">
11085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11088 \begin_layout Plain Layout
11089 verylongtablecellword
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" rightline="true" usebox="none">
11106 \begin_layout Plain Layout
11114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11117 \begin_layout Plain Layout
11123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11126 \begin_layout Plain Layout
11132 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11135 \begin_layout Plain Layout
11143 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11146 \begin_layout Plain Layout
11152 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11155 \begin_layout Plain Layout
11161 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11164 \begin_layout Plain Layout
11176 \begin_inset Space \hfill{}
11180 \begin_inset Tabular
11181 <lyxtabular version="3" rows="3" columns="3">
11183 <column alignment="center" valignment="middle" width="2.5cm">
11184 <column alignment="center" valignment="middle" width="0">
11185 <column alignment="center" valignment="middle" width="0">
11187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11190 \begin_layout Plain Layout
11191 \begin_inset Space \hspace{}
11195 verylongtablecellword
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" rightline="true" usebox="none">
11212 \begin_layout Plain Layout
11220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11223 \begin_layout Plain Layout
11229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11232 \begin_layout Plain Layout
11238 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11241 \begin_layout Plain Layout
11249 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11252 \begin_layout Plain Layout
11258 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11261 \begin_layout Plain Layout
11267 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11270 \begin_layout Plain Layout
11282 \begin_inset Space \hfill{}
11293 \begin_layout Standard
11294 \begin_inset Newpage newpage
11300 \begin_layout Subsection
11302 \begin_inset CommandInset label
11304 name "sub:Multicolumns"
11312 \begin_layout Plain Layout
11322 \begin_layout Plain Layout
11323 Table ! Multicolumns
11331 \begin_layout Subsubsection
11335 \begin_layout Standard
11336 To span a cell over multiple columns, mark as much cells within a line that
11337 should be one spanned cell and use either the table-toolbar button
11338 \begin_inset Graphics
11339 filename ../images/tabular-feature_multicolumn.png
11341 scaleBeforeRotation
11347 Edit\SpecialChar \menuseparator
11348 Table\SpecialChar \menuseparator
11351 , or right click on the marked cells and choose multicolumn in the appearing
11352 table dialog under the tab
11359 \begin_layout Standard
11360 Multicolumns have there own cell settings.
11361 That means changing cell borders, cell alignment, and the width only affects
11363 Here is an example table with a multicolumn cell in the first row and one
11364 in the last row without the upper border:
11367 \begin_layout Standard
11369 \begin_inset Tabular
11370 <lyxtabular version="3" rows="3" columns="4">
11371 <features firstHeadTopDL="true" firstHeadBottomDL="true">
11372 <column alignment="center" valignment="top" width="0pt">
11373 <column alignment="center" valignment="middle" width="0">
11374 <column alignment="center" valignment="top" width="0in">
11375 <column alignment="center" valignment="top" width="0pt">
11377 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11380 \begin_layout Plain Layout
11386 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11389 \begin_layout Plain Layout
11395 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11398 \begin_layout Plain Layout
11404 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11407 \begin_layout Plain Layout
11415 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11418 \begin_layout Plain Layout
11433 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11436 \begin_layout Plain Layout
11442 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11445 \begin_layout Plain Layout
11451 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11454 \begin_layout Plain Layout
11462 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11465 \begin_layout Plain Layout
11471 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11474 \begin_layout Plain Layout
11480 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11483 \begin_layout Plain Layout
11489 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11492 \begin_layout Plain Layout
11506 \begin_layout Subsubsection
11507 Multicolumn Calculations
11508 \begin_inset CommandInset label
11510 name "sub:Multicolumn-Calculations"
11518 \begin_layout Plain Layout
11519 Multicolumns ! Calculations
11527 \begin_layout Standard
11528 LyX supports multicolumns directly, but we have to take notice of the cell
11529 width of the columns spanned by the multicolumn cell.
11532 \begin_layout Standard
11533 \begin_inset Float table
11538 \begin_layout Plain Layout
11539 \begin_inset Caption
11541 \begin_layout Plain Layout
11542 \begin_inset CommandInset label
11544 name "tab:Table-with-centered"
11548 Table with centered multicolumn text above two columns that have exactly
11549 half the width of the multicolumn cell
11550 \begin_inset OptArg
11553 \begin_layout Plain Layout
11554 Perfect multicolumn table
11567 \begin_layout Plain Layout
11569 \begin_inset Tabular
11570 <lyxtabular version="3" rows="3" columns="3">
11572 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11573 <column alignment="center" valignment="middle" width="0">
11574 <column alignment="center" valignment="top" width="0">
11576 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11579 \begin_layout Plain Layout
11580 multiple lines multicolumn
11585 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11588 \begin_layout Plain Layout
11594 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11597 \begin_layout Plain Layout
11605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11608 \begin_layout Plain Layout
11614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11617 \begin_layout Plain Layout
11623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11626 \begin_layout Plain Layout
11634 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11637 \begin_layout Plain Layout
11643 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11646 \begin_layout Plain Layout
11652 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11655 \begin_layout Plain Layout
11674 \begin_layout Standard
11675 To create for example Table
11676 \begin_inset Space ~
11680 \begin_inset CommandInset ref
11682 reference "tab:Table-with-centered"
11686 , mark the first two cells in the first row of a 3×3 table and right-click
11688 Now choose for this cell
11697 \begin_inset Space \thinspace{}
11700 cm in the table dialog.
11701 The spanned columns should have exactly half the width of the multicolumn
11702 cell, so that you would adjust a width of 1.25
11703 \begin_inset Space \thinspace{}
11706 cm for the first column.
11707 The second column has then automatically a width of 1.25
11708 \begin_inset Space \thinspace{}
11711 cm (multicolumn width - width of first column).
11712 This was done for Table
11713 \begin_inset Space ~
11717 \begin_inset CommandInset ref
11719 reference "tab:Table-without-half"
11726 \begin_layout Standard
11727 \begin_inset Float table
11732 \begin_layout Plain Layout
11733 \begin_inset Caption
11735 \begin_layout Plain Layout
11736 \begin_inset CommandInset label
11738 name "tab:Table-without-half"
11742 Table where the spanned table columns have not exactly half the width of
11743 the multicolumn cell
11744 \begin_inset OptArg
11747 \begin_layout Plain Layout
11748 Imperfect multicolumn table
11761 \begin_layout Plain Layout
11763 \begin_inset Tabular
11764 <lyxtabular version="3" rows="3" columns="3">
11766 <column alignment="center" valignment="top" width="1.25cm">
11767 <column alignment="center" valignment="top" width="0">
11768 <column alignment="center" valignment="top" width="0">
11770 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11773 \begin_layout Plain Layout
11774 multiple lines multicolumn
11779 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11782 \begin_layout Plain Layout
11788 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11791 \begin_layout Plain Layout
11799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11802 \begin_layout Plain Layout
11808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11811 \begin_layout Plain Layout
11817 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11820 \begin_layout Plain Layout
11828 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11831 \begin_layout Plain Layout
11837 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11840 \begin_layout Plain Layout
11846 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11849 \begin_layout Plain Layout
11868 \begin_layout Standard
11869 You can see that the first column has not the half width of the multicolumn
11870 cell, it is a bit bigger.
11871 The reason is that the given width of a cell
11872 \begin_inset Formula $W_{g}$
11875 is not its total width
11876 \begin_inset Formula $W_{\mathrm{tot}}$
11879 because a cell is always a bit larger than its given width.
11881 \begin_inset Space ~
11885 \begin_inset CommandInset ref
11887 reference "cha:Explanation-of-Equation"
11891 explains it in detail.
11894 \begin_layout Standard
11895 The needed given width
11896 \begin_inset Formula $W_{g\, n}$
11903 columns are spanned can be calculated, so that each column has a total
11905 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11909 \begin_inset Formula \begin{equation}
11910 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11917 \begin_layout Standard
11918 In our case we have
11919 \begin_inset Formula $n=2$
11923 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11926 cm and the default values for the lengths, so that equation
11927 \begin_inset CommandInset ref
11934 \begin_inset Formula \begin{equation}
11935 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11942 \begin_layout Standard
11943 To enable calculations in LaTeX, the LaTeX-package
11947 must be loaded with the document preamble line
11951 \begin_layout Plain Layout
11952 LaTeX-packages ! calc
11960 \begin_layout Standard
11968 \begin_layout Standard
11969 LyX does not allow to calculate lengths in the width-field of the table
11971 Therefore you have to format the column by inserting a LaTeX-argument in
11973 Here is an overview about the arguments:
11976 \begin_layout Itemize
11981 creates cell with a fixed width, its text is vertically top-aligned
11984 \begin_layout Itemize
11989 creates cell with a fixed width, its text is vertically centered
11992 \begin_layout Itemize
11997 creates cell with a fixed width, its text is vertically bottom-aligned
12000 \begin_layout Standard
12001 By entering a LaTeX-argument, all cell settings set in the table dialog
12005 \begin_layout Standard
12006 \begin_inset Note Greyedout
12009 \begin_layout Plain Layout
12014 Due to a bug, LyX shows the overwritten settings anyway.
12022 \begin_layout Standard
12023 As the text should be horizontally centered, the command
12030 You can now enter the following LaTeX-argument for the first spanned column:
12033 \begin_layout Standard
12038 centering}m{1.25cm-6.2pt}
12041 \begin_layout Standard
12046 means, that the commands inside the braces are applied before the cell
12050 \begin_layout Standard
12051 Although we have chosen centered alignment for the text of the multicolumn
12052 cell, it is still left aligned.
12053 This is because LyX only applies the alignment to single columns.
12054 So we have to use for the multicolumn the LaTeX-argument
12057 \begin_layout Standard
12065 \begin_layout Subsection
12070 \begin_layout Plain Layout
12080 \begin_layout Plain Layout
12090 \begin_layout Plain Layout
12091 LaTeX-packages ! multirow
12099 \begin_layout Standard
12100 In contrary to multicolumns multirows are not yet supported by LyX so a
12101 bit of TeX-Code needs to be used.
12102 To use multirows load the LaTeX-package
12106 in your document preamble with the command
12109 \begin_layout Standard
12114 usepackage{multirow}
12117 \begin_layout Standard
12118 Multirows are created with the command
12121 \begin_layout Standard
12126 multirow{number of rows}{cell width}{cell entry}
12129 \begin_layout Standard
12130 To create the following table:
12133 \begin_layout Standard
12138 \begin_layout Plain Layout
12152 \begin_inset Tabular
12153 <lyxtabular version="3" rows="3" columns="3">
12155 <column alignment="center" valignment="top" width="0">
12156 <column alignment="center" valignment="top" width="0">
12157 <column alignment="center" valignment="top" width="0">
12159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12162 \begin_layout Plain Layout
12168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12171 \begin_layout Plain Layout
12177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12180 \begin_layout Plain Layout
12188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12191 \begin_layout Plain Layout
12195 \begin_layout Plain Layout
12199 multirow{2}{2.5cm}{
12208 \begin_layout Plain Layout
12220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12223 \begin_layout Plain Layout
12229 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12232 \begin_layout Plain Layout
12240 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12243 \begin_layout Plain Layout
12249 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12252 \begin_layout Plain Layout
12258 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12261 \begin_layout Plain Layout
12276 \begin_layout Plain Layout
12292 \begin_layout Standard
12293 create a 3×3 table.
12294 To get rid of the line above the last cell in the first column, the cell
12295 is marked as multicolumn and the upper border is unset.
12296 The multirow is now created in the second row of the first column by inserting
12300 \begin_layout Standard
12305 multirow{2}{2.5cm}{
12308 \begin_layout Standard
12310 According to the command parameters the multirow spans now two rows and
12312 \begin_inset Space \thinspace{}
12316 The content of the multirow cell follows outside the TeX-Code box and the
12317 command is finished with a right brace
12321 in another TeX-Code-box behind the text.
12324 \begin_layout Standard
12331 left-aligns its content by default.
12332 To override the default, renew the command
12341 \begin_layout Standard
12353 \begin_layout Standard
12354 in TeX-Code in the document preamble.
12355 Then all entries of multirow cells in the document are centered.
12356 If centering is only needed for several tables, you can renew the command
12357 in an TeX-Code box just before the table instead of the preamble.
12358 If the text should be right-aligned, replace
12371 To return to left-alignment
12380 \begin_layout Section
12382 \begin_inset CommandInset label
12384 name "sec:Formal-Tables"
12392 \begin_layout Plain Layout
12401 \begin_layout Standard
12402 Tables are often typeset in books similar to Table
12403 \begin_inset Space ~
12407 \begin_inset CommandInset ref
12409 reference "tab:Example-booktabs-table"
12414 This kind of tables is called
12415 \begin_inset Quotes eld
12423 \begin_inset Quotes erd
12427 To make a table a formal table use the option
12435 tab of the table dialog.
12438 \begin_layout Standard
12439 \begin_inset Float table
12445 \begin_layout Plain Layout
12446 \begin_inset Caption
12448 \begin_layout Plain Layout
12449 \begin_inset CommandInset label
12451 name "tab:Example-booktabs-table"
12455 Example booktabs-table
12463 \begin_layout Plain Layout
12465 \begin_inset Tabular
12466 <lyxtabular version="3" rows="8" columns="4">
12467 <features booktabs="true">
12468 <column alignment="center" valignment="top" width="0">
12469 <column alignment="center" valignment="top" width="0">
12470 <column alignment="center" valignment="top" width="0">
12471 <column alignment="center" valignment="top" width="0">
12473 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12476 \begin_layout Plain Layout
12482 <cell alignment="center" valignment="top" topline="true" usebox="none">
12485 \begin_layout Plain Layout
12487 \begin_inset Formula $\,$
12495 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
12498 \begin_layout Plain Layout
12500 \begin_inset Formula $\,$
12508 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12511 \begin_layout Plain Layout
12519 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12522 \begin_layout Plain Layout
12526 \begin_layout Plain Layout
12539 \begin_layout Plain Layout
12548 Detector thickness [µm]
12553 <cell alignment="center" valignment="top" usebox="none">
12556 \begin_layout Plain Layout
12562 <cell alignment="center" valignment="top" usebox="none">
12565 \begin_layout Plain Layout
12571 <cell alignment="center" valignment="top" usebox="none">
12574 \begin_layout Plain Layout
12582 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12585 \begin_layout Plain Layout
12591 <cell alignment="center" valignment="top" topline="true" usebox="none">
12594 \begin_layout Plain Layout
12600 <cell alignment="center" valignment="top" topline="true" usebox="none">
12603 \begin_layout Plain Layout
12609 <cell alignment="center" valignment="top" topline="true" usebox="none">
12612 \begin_layout Plain Layout
12619 <row topspace="default">
12620 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12623 \begin_layout Plain Layout
12624 Spatial resolution [µm]
12629 <cell alignment="center" valignment="top" usebox="none">
12632 \begin_layout Plain Layout
12638 <cell alignment="center" valignment="top" usebox="none">
12641 \begin_layout Plain Layout
12647 <cell alignment="center" valignment="top" usebox="none">
12650 \begin_layout Plain Layout
12657 <row topspace="default">
12658 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12661 \begin_layout Plain Layout
12663 \begin_inset Formula $f_{\mathrm{max}}$
12671 <cell alignment="center" valignment="top" usebox="none">
12674 \begin_layout Plain Layout
12680 <cell alignment="center" valignment="top" usebox="none">
12683 \begin_layout Plain Layout
12689 <cell alignment="center" valignment="top" usebox="none">
12692 \begin_layout Plain Layout
12699 <row topspace="default">
12700 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12703 \begin_layout Plain Layout
12707 \begin_layout Plain Layout
12711 cmidrule(l{10pt}){1-1}
12716 LSF-spatial resolution
12721 <cell alignment="center" valignment="top" usebox="none">
12724 \begin_layout Plain Layout
12730 <cell alignment="center" valignment="top" usebox="none">
12733 \begin_layout Plain Layout
12739 <cell alignment="center" valignment="top" usebox="none">
12742 \begin_layout Plain Layout
12750 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12753 \begin_layout Plain Layout
12759 <cell alignment="center" valignment="top" usebox="none">
12762 \begin_layout Plain Layout
12768 <cell alignment="center" valignment="top" usebox="none">
12771 \begin_layout Plain Layout
12777 <cell alignment="center" valignment="top" usebox="none">
12780 \begin_layout Plain Layout
12788 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12791 \begin_layout Plain Layout
12797 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12800 \begin_layout Plain Layout
12806 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12809 \begin_layout Plain Layout
12815 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12818 \begin_layout Plain Layout
12837 \begin_layout Standard
12838 Spaces to table rows can be added using the
12842 tab of the table dialog as described in section
12843 \begin_inset Space ~
12847 \begin_inset CommandInset ref
12849 reference "sub:Row-Spacing"
12856 \begin_layout Standard
12857 In contrary to normal tables, formal tables have no vertical table lines.
12858 The horizontal table lines can be set like for normal tables but they appear
12859 with different width in the output:
12860 \begin_inset Newline newline
12863 The first and the last table line have a default width of 0.08
12864 \begin_inset Space \thinspace{}
12867 em while the other lines have a default width of 0.05
12868 \begin_inset Space \thinspace{}
12874 \begin_layout Standard
12875 The default widths can be changed with the following preamble lines
12878 \begin_layout Standard
12888 \begin_inset Newline newline
12900 \begin_layout Standard
12901 This example is for the first line, the so called
12906 If you want to change the width for the last line, replace
12915 To change the width for the other lines replace
12924 You can use all units listed in appendix
12925 \begin_inset Space ~
12929 \begin_inset CommandInset ref
12931 reference "cha:Units-available-in"
12938 \begin_layout Standard
12939 Lines that don't span over all table columns can be created by setting a
12940 table line for multicolumn cells.
12941 LyX will then internally use the command
12947 to create this line.
12951 \begin_layout Standard
12956 cmidrule[width](trim){startcol-endcol}
12959 \begin_layout Standard
12966 are are currently not supported by LyX so you have to use TeX-Code to be
12974 s can manually be created by inserting the command as TeX-Code as first
12975 cell entry of the first cell of a row.
12976 The line is then drawn in the output above the current row.
12979 \begin_layout Standard
12980 The default for the width is 0.03
12981 \begin_inset Space \thinspace{}
12985 Startcol is the number of the column where the line starts and endcol the
12986 column number where the line ends.
12987 The endcol always needs to be specified, also when the line should span
12989 The optional parameter trim could be either
12997 where the trimwidth is also optional.
12998 Using for example the parameter
13002 means that the line is trimmed from its left end by 2
13003 \begin_inset Space \thinspace{}
13007 If you don't specify the trimwidth the lines are trimmed by the default
13009 \begin_inset Space \thinspace{}
13015 \begin_layout Standard
13016 \begin_inset VSpace bigskip
13020 \begin_inset Space ~
13024 \begin_inset CommandInset ref
13026 reference "tab:Example-booktabs-table"
13030 was created using the commands
13033 \begin_layout Standard
13043 \begin_layout Standard
13044 at the beginning of the in the second row and
13047 \begin_layout Standard
13052 cmidrule(l{10pt}){1-1}
13055 \begin_layout Standard
13059 \begin_layout Standard
13060 \begin_inset VSpace bigskip
13066 \begin_layout Standard
13067 You might want to have overlapping
13074 \begin_inset Space ~
13078 \begin_inset CommandInset ref
13080 reference "tab:Special-booktabs-table"
13085 This can be achieved with the TeX-Code command
13088 \begin_layout Standard
13096 \begin_layout Standard
13097 The command that was used for the second row of Table
13098 \begin_inset Space ~
13102 \begin_inset CommandInset ref
13104 reference "tab:Special-booktabs-table"
13111 \begin_layout Standard
13125 \begin_layout Standard
13126 The command for the sixth row is
13129 \begin_layout Standard
13141 \begin_layout Standard
13142 \begin_inset VSpace bigskip
13148 \begin_layout Standard
13149 If you are anyway not satisfied with the border line spacing, you can use
13150 the following command to produce lines that span over all table columns
13155 \begin_layout Standard
13160 specialrule{width}{space above}{space below}
13163 \begin_layout Standard
13164 For more informations about these specialties, we refer to the manual of
13170 \begin_inset CommandInset citation
13180 \begin_layout Plain Layout
13181 LaTeX-packages ! booktabs
13189 \begin_layout Standard
13190 \begin_inset Float table
13196 \begin_layout Plain Layout
13197 \begin_inset Caption
13199 \begin_layout Plain Layout
13200 \begin_inset CommandInset label
13202 name "tab:Special-booktabs-table"
13206 Special booktabs-table
13214 \begin_layout Plain Layout
13216 \begin_inset Tabular
13217 <lyxtabular version="3" rows="8" columns="4">
13218 <features booktabs="true">
13219 <column alignment="center" valignment="top" width="0">
13220 <column alignment="center" valignment="top" width="0">
13221 <column alignment="center" valignment="top" width="0">
13222 <column alignment="center" valignment="top" width="0">
13224 <cell alignment="center" valignment="top" topline="true" usebox="none">
13227 \begin_layout Plain Layout
13233 <cell alignment="center" valignment="top" topline="true" usebox="none">
13236 \begin_layout Plain Layout
13238 \begin_inset Space \thinspace{}
13246 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
13249 \begin_layout Plain Layout
13251 \begin_inset Space \thinspace{}
13259 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13262 \begin_layout Plain Layout
13270 <cell alignment="center" valignment="top" usebox="none">
13273 \begin_layout Plain Layout
13277 \begin_layout Plain Layout
13290 \begin_layout Plain Layout
13303 \begin_layout Plain Layout
13316 \begin_layout Plain Layout
13325 Detector thickness [µm]
13330 <cell alignment="center" valignment="top" usebox="none">
13333 \begin_layout Plain Layout
13339 <cell alignment="center" valignment="top" usebox="none">
13342 \begin_layout Plain Layout
13348 <cell alignment="center" valignment="top" usebox="none">
13351 \begin_layout Plain Layout
13359 <cell alignment="center" valignment="top" topline="true" usebox="none">
13362 \begin_layout Plain Layout
13368 <cell alignment="center" valignment="top" topline="true" usebox="none">
13371 \begin_layout Plain Layout
13377 <cell alignment="center" valignment="top" topline="true" usebox="none">
13380 \begin_layout Plain Layout
13386 <cell alignment="center" valignment="top" topline="true" usebox="none">
13389 \begin_layout Plain Layout
13396 <row topspace="default">
13397 <cell alignment="center" valignment="top" usebox="none">
13400 \begin_layout Plain Layout
13401 Spatial resolution [µm]
13406 <cell alignment="center" valignment="top" usebox="none">
13409 \begin_layout Plain Layout
13415 <cell alignment="center" valignment="top" usebox="none">
13418 \begin_layout Plain Layout
13424 <cell alignment="center" valignment="top" usebox="none">
13427 \begin_layout Plain Layout
13434 <row topspace="default">
13435 <cell alignment="center" valignment="top" usebox="none">
13438 \begin_layout Plain Layout
13440 \begin_inset Formula $f_{\mathrm{max}}$
13448 <cell alignment="center" valignment="top" usebox="none">
13451 \begin_layout Plain Layout
13457 <cell alignment="center" valignment="top" usebox="none">
13460 \begin_layout Plain Layout
13466 <cell alignment="center" valignment="top" usebox="none">
13469 \begin_layout Plain Layout
13477 <cell alignment="center" valignment="top" topline="true" usebox="none">
13480 \begin_layout Plain Layout
13484 \begin_layout Plain Layout
13497 \begin_layout Plain Layout
13506 LSF-spatial resolution
13511 <cell alignment="center" valignment="top" topline="true" usebox="none">
13514 \begin_layout Plain Layout
13520 <cell alignment="center" valignment="top" topline="true" usebox="none">
13523 \begin_layout Plain Layout
13529 <cell alignment="center" valignment="top" topline="true" usebox="none">
13532 \begin_layout Plain Layout
13540 <cell alignment="center" valignment="top" usebox="none">
13543 \begin_layout Plain Layout
13549 <cell alignment="center" valignment="top" usebox="none">
13552 \begin_layout Plain Layout
13558 <cell alignment="center" valignment="top" usebox="none">
13561 \begin_layout Plain Layout
13567 <cell alignment="center" valignment="top" usebox="none">
13570 \begin_layout Plain Layout
13578 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13581 \begin_layout Plain Layout
13587 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13590 \begin_layout Plain Layout
13596 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13599 \begin_layout Plain Layout
13605 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13608 \begin_layout Plain Layout
13627 \begin_layout Section
13628 Vertical Table Alignment
13632 \begin_layout Plain Layout
13641 \begin_layout Standard
13642 To align tables vertically in a text line the table must be inside a box.
13643 The box can then be vertically aligned as described in section
13644 \begin_inset Space ~
13648 \begin_inset CommandInset ref
13650 reference "sec:Box-Dialog"
13657 \begin_layout Standard
13658 In the following example the tables are inside a minipage
13662 \begin_layout Plain Layout
13663 Minipages are described in section
13664 \begin_inset Space ~
13668 \begin_inset CommandInset ref
13670 reference "sec:Minipages"
13679 box that has a width of 15
13680 \begin_inset Space \thinspace{}
13686 \begin_layout Itemize
13688 \begin_inset Box Frameless
13697 height_special "totalheight"
13700 \begin_layout Plain Layout
13701 \begin_inset Tabular
13702 <lyxtabular version="3" rows="3" columns="3">
13704 <column alignment="center" valignment="top" width="0">
13705 <column alignment="center" valignment="top" width="0">
13706 <column alignment="center" valignment="top" width="0">
13708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13711 \begin_layout Plain Layout
13717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13720 \begin_layout Plain Layout
13726 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13729 \begin_layout Plain Layout
13737 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13740 \begin_layout Plain Layout
13746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13749 \begin_layout Plain Layout
13755 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13758 \begin_layout Plain Layout
13766 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13769 \begin_layout Plain Layout
13775 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13778 \begin_layout Plain Layout
13784 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13787 \begin_layout Plain Layout
13807 \begin_layout Plain Layout
13819 \begin_inset Box Frameless
13828 height_special "totalheight"
13831 \begin_layout Plain Layout
13832 \begin_inset Tabular
13833 <lyxtabular version="3" rows="3" columns="3">
13835 <column alignment="center" valignment="top" width="0">
13836 <column alignment="center" valignment="top" width="0">
13837 <column alignment="center" valignment="top" width="0">
13839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13842 \begin_layout Plain Layout
13848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13851 \begin_layout Plain Layout
13857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13860 \begin_layout Plain Layout
13868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13871 \begin_layout Plain Layout
13877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13880 \begin_layout Plain Layout
13886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13889 \begin_layout Plain Layout
13897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13900 \begin_layout Plain Layout
13906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13909 \begin_layout Plain Layout
13915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13918 \begin_layout Plain Layout
13938 \begin_layout Plain Layout
13948 \begin_layout Itemize
13950 \begin_inset Box Frameless
13959 height_special "totalheight"
13962 \begin_layout Plain Layout
13963 \begin_inset Tabular
13964 <lyxtabular version="3" rows="3" columns="3">
13966 <column alignment="center" valignment="top" width="0">
13967 <column alignment="center" valignment="top" width="0">
13968 <column alignment="center" valignment="top" width="0">
13970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13973 \begin_layout Plain Layout
13979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13982 \begin_layout Plain Layout
13988 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13991 \begin_layout Plain Layout
13999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14002 \begin_layout Plain Layout
14008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14011 \begin_layout Plain Layout
14017 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14020 \begin_layout Plain Layout
14028 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14031 \begin_layout Plain Layout
14037 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14040 \begin_layout Plain Layout
14046 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14049 \begin_layout Plain Layout
14068 \begin_layout Itemize
14070 \begin_inset Box Frameless
14079 height_special "totalheight"
14082 \begin_layout Plain Layout
14083 \begin_inset Tabular
14084 <lyxtabular version="3" rows="3" columns="3">
14086 <column alignment="center" valignment="top" width="0">
14087 <column alignment="center" valignment="top" width="0">
14088 <column alignment="center" valignment="top" width="0">
14090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14093 \begin_layout Plain Layout
14099 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14102 \begin_layout Plain Layout
14108 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14111 \begin_layout Plain Layout
14119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14122 \begin_layout Plain Layout
14128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14131 \begin_layout Plain Layout
14137 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14140 \begin_layout Plain Layout
14148 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14151 \begin_layout Plain Layout
14157 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14160 \begin_layout Plain Layout
14166 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14169 \begin_layout Plain Layout
14189 \begin_layout Plain Layout
14201 \begin_inset Box Frameless
14210 height_special "totalheight"
14213 \begin_layout Plain Layout
14214 \begin_inset Tabular
14215 <lyxtabular version="3" rows="3" columns="3">
14217 <column alignment="center" valignment="top" width="0">
14218 <column alignment="center" valignment="top" width="0">
14219 <column alignment="center" valignment="top" width="0">
14221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14224 \begin_layout Plain Layout
14230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14233 \begin_layout Plain Layout
14239 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14242 \begin_layout Plain Layout
14250 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14253 \begin_layout Plain Layout
14259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14262 \begin_layout Plain Layout
14268 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14271 \begin_layout Plain Layout
14279 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14282 \begin_layout Plain Layout
14288 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14291 \begin_layout Plain Layout
14297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14300 \begin_layout Plain Layout
14320 \begin_layout Plain Layout
14330 \begin_layout Standard
14331 As you can see, the content of the first and last table row is not correctly
14332 aligned with the text line where the table is in.
14333 To get this alignment, the minipage box must be set into a raisebox
14337 \begin_layout Plain Layout
14338 Raiseboxes are described in section
14339 \begin_inset Space ~
14343 \begin_inset CommandInset ref
14345 reference "sub:Vertical-Alignment"
14355 In the example above the second table in the first item is aligned using
14356 the TeX-Code-command
14359 \begin_layout Standard
14369 \begin_layout Standard
14371 Behind the box the closing brace
14375 is inserted as TeX-Code.
14376 For the second table in the last item the command
14379 \begin_layout Standard
14389 \begin_layout Standard
14393 \begin_layout Standard
14394 \begin_inset Note Greyedout
14397 \begin_layout Plain Layout
14402 The alignment of the table row content to the surrounding text line is
14404 The needed factor of the
14410 command for this alignment depends on the document font, the font size,
14411 and the table line thickness.
14419 \begin_layout Section
14421 \begin_inset CommandInset label
14423 name "sec:Colored-Tables"
14431 \begin_layout Plain Layout
14440 \begin_layout Subsection
14445 \begin_layout Plain Layout
14446 Table Color ! for Cells
14455 \begin_layout Plain Layout
14456 Color ! for Table Cells
14464 \begin_layout Standard
14465 \begin_inset Float table
14471 \begin_layout Plain Layout
14472 \begin_inset Caption
14474 \begin_layout Plain Layout
14475 \begin_inset CommandInset label
14477 name "tab:Table-colored-without"
14481 Table colored without using the package
14486 \begin_inset OptArg
14489 \begin_layout Plain Layout
14490 Table without colortbl
14503 \begin_layout Plain Layout
14505 \begin_inset Tabular
14506 <lyxtabular version="3" rows="3" columns="3">
14508 <column alignment="center" valignment="top" width="0">
14509 <column alignment="center" valignment="top" width="0">
14510 <column alignment="center" valignment="top" width="0">
14512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14515 \begin_layout Plain Layout
14523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14526 \begin_layout Plain Layout
14534 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14537 \begin_layout Plain Layout
14547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14550 \begin_layout Plain Layout
14558 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14561 \begin_layout Plain Layout
14569 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14572 \begin_layout Plain Layout
14582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14585 \begin_layout Plain Layout
14593 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14596 \begin_layout Plain Layout
14604 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14607 \begin_layout Plain Layout
14628 \begin_layout Standard
14629 If you only need colored text, mark the cells and choose a color in the
14632 Edit\SpecialChar \menuseparator
14634 \begin_inset Space ~
14640 This was used to create Table
14641 \begin_inset Space ~
14645 \begin_inset CommandInset ref
14647 reference "tab:Table-colored-without"
14652 In any other case you have to use the LaTeX-package
14660 \begin_layout Plain Layout
14661 LaTeX-packages ! colortbl
14669 \begin_layout Standard
14673 \begin_layout Plain Layout
14683 \begin_inset Note Note
14686 \begin_layout Plain Layout
14687 The following section part will only be displayed when the LaTeX-package
14700 \begin_layout Standard
14701 To create colored tables,
14705 must be loaded in the preamble with the line
14708 \begin_layout Standard
14713 usepackage{colortbl}
14716 \begin_layout Standard
14717 The color of a column is adjusted with the command
14720 \begin_layout Standard
14725 columncolor{name of color}
14728 \begin_layout Standard
14734 More about the command
14738 is described in section
14739 \begin_inset Space ~
14743 \begin_inset CommandInset ref
14745 reference "sub:Multicolumn-Calculations"
14752 \begin_layout Standard
14753 The following color names are predefined:
14756 \begin_layout Standard
14790 \begin_layout Standard
14791 \begin_inset VSpace medskip
14797 \begin_layout Standard
14798 You can also define your own color with the command
14801 \begin_layout Standard
14806 definecolor{color name}{color model}{color values}
14809 \begin_layout Standard
14810 The color model can be
14813 \begin_layout Labeling
14814 \labelwidthstring 00.00.0000
14815 cmyk: cyan, magenta, yellow, black
14818 \begin_layout Labeling
14819 \labelwidthstring 00.00.0000
14820 rgb: red, green blue
14823 \begin_layout Labeling
14824 \labelwidthstring 00.00.0000
14828 \begin_layout Standard
14829 and the color values are comma separated numbers between 0 and 1 describing
14830 the factor for the corresponding color of the color model.
14833 \begin_layout Standard
14835 \begin_inset Space \thinspace{}
14839 \begin_inset Space ~
14846 " in the preamble with
14849 \begin_layout Standard
14854 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14857 \begin_layout Standard
14865 \begin_layout Standard
14870 definecolor{lightgray}{gray}{0.8}
14873 \begin_layout Standard
14874 \begin_inset VSpace medskip
14880 \begin_layout Standard
14881 Lines are colored with the command
14884 \begin_layout Standard
14889 rowcolor{name of color}
14892 \begin_layout Standard
14893 and cells are colored with the command
14896 \begin_layout Standard
14901 cellcolor{name of color}
14904 \begin_layout Standard
14905 Both commands are inserted at the beginning of a cell as TeX-Code.
14908 \begin_layout Standard
14909 To color characters in the table, mark the cells and use the LyX menu
14911 Edit\SpecialChar \menuseparator
14913 \begin_inset Space ~
14919 If a cell contains TeX-Code mark only the characters, otherwise the colored
14920 TeX-Code will cause LaTeX-errors.
14923 \begin_layout Standard
14924 \begin_inset Note Greyedout
14927 \begin_layout Plain Layout
14932 Not all DVI-viewers are able to display self-defined colors.
14940 \begin_layout Standard
14941 \begin_inset VSpace bigskip
14947 \begin_layout Standard
14949 \begin_inset Space ~
14953 \begin_inset CommandInset ref
14955 reference "tab:Table-colored-using"
14959 do the following: The color of the first column should be
14967 \begin_layout Standard
14972 columncolor{darkgreen}
14977 \begin_layout Standard
14978 as LaTeX-argument for this column.
14979 The first row should be blue, therefore the TeX-Code command
14982 \begin_layout Standard
14990 \begin_layout Standard
14991 is inserted to the first cell of this row.
14992 Note that this overwrites the column color for the first cell.
14993 The last cell of the last row is colored magenta by inserting the TeX-Code
14997 \begin_layout Standard
15005 \begin_layout Standard
15006 The characters could now be colored using the menu
15008 Edit\SpecialChar \menuseparator
15010 \begin_inset Space ~
15018 \begin_layout Standard
15019 \begin_inset Float table
15025 \begin_layout Plain Layout
15026 \begin_inset Caption
15028 \begin_layout Plain Layout
15029 \begin_inset CommandInset label
15031 name "tab:Table-colored-using"
15035 Table colored using the package
15040 \begin_inset OptArg
15043 \begin_layout Plain Layout
15044 Table with colortbl
15057 \begin_layout Plain Layout
15059 \begin_inset Tabular
15060 <lyxtabular version="3" rows="3" columns="3">
15062 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15063 <column alignment="center" valignment="top" width="0">
15064 <column alignment="center" valignment="top" width="0">
15066 <cell alignment="center" valignment="top" usebox="none">
15069 \begin_layout Plain Layout
15073 \begin_layout Plain Layout
15089 <cell alignment="center" valignment="top" usebox="none">
15092 \begin_layout Plain Layout
15100 <cell alignment="center" valignment="top" usebox="none">
15103 \begin_layout Plain Layout
15113 <cell alignment="center" valignment="top" usebox="none">
15116 \begin_layout Plain Layout
15124 <cell alignment="center" valignment="top" usebox="none">
15127 \begin_layout Plain Layout
15135 <cell alignment="center" valignment="top" usebox="none">
15138 \begin_layout Plain Layout
15148 <cell alignment="center" valignment="top" usebox="none">
15151 \begin_layout Plain Layout
15159 <cell alignment="center" valignment="top" usebox="none">
15162 \begin_layout Plain Layout
15170 <cell alignment="center" valignment="top" usebox="none">
15173 \begin_layout Plain Layout
15177 \begin_layout Plain Layout
15206 \begin_layout Standard
15210 \begin_layout Plain Layout
15220 \begin_inset Note Note
15223 \begin_layout Plain Layout
15224 The following will be displayed when the LaTeX-package
15236 \begin_layout Standard
15237 You need to install the package
15241 to see the content of this section in the output.
15244 \begin_layout Standard
15248 \begin_layout Plain Layout
15260 \begin_layout Subsection
15265 \begin_layout Plain Layout
15266 Table Color ! for Lines
15275 \begin_layout Plain Layout
15276 Color ! for Table Lines
15284 \begin_layout Standard
15285 As described in section
15286 \begin_inset Space ~
15290 \begin_inset CommandInset ref
15292 reference "sub:Line-Thickness"
15296 , the line thickness for all lines in a table can be adjusted with the length
15305 \begin_inset Space \thinspace{}
15308 pt for all tables of this section.
15312 \begin_layout Plain Layout
15318 arrayrulewidth}{1.5pt}
15326 \begin_layout Standard
15327 To color vertical lines for example with green, create the following column
15328 format in the document preamble, according to the description in section
15329 \begin_inset Space ~
15333 \begin_inset CommandInset ref
15335 reference "sub:Customized-Format"
15342 \begin_layout Standard
15347 newcolumntype{W}{!{
15354 \begin_layout Standard
15356 \begin_inset Space ~
15360 \begin_inset CommandInset ref
15362 reference "tab:Table-with-vertical-colored"
15370 was used for the last column and
15374 for the other columns.
15377 \begin_layout Standard
15378 If you want to have several colors, define more column formats.
15381 \begin_layout Standard
15382 \begin_inset Float table
15388 \begin_layout Plain Layout
15389 \begin_inset Caption
15391 \begin_layout Plain Layout
15392 \begin_inset CommandInset label
15394 name "tab:Table-with-vertical-colored"
15398 Table with colored vertical lines
15406 \begin_layout Plain Layout
15408 \begin_inset Tabular
15409 <lyxtabular version="3" rows="3" columns="3">
15411 <column alignment="center" valignment="top" width="0" special="Wc">
15412 <column alignment="center" valignment="top" width="0" special="Wc">
15413 <column alignment="center" valignment="top" width="0" special="WcW">
15415 <cell alignment="center" valignment="top" topline="true" usebox="none">
15418 \begin_layout Plain Layout
15424 <cell alignment="center" valignment="top" topline="true" usebox="none">
15427 \begin_layout Plain Layout
15433 <cell alignment="center" valignment="top" topline="true" usebox="none">
15436 \begin_layout Plain Layout
15444 <cell alignment="center" valignment="top" topline="true" usebox="none">
15447 \begin_layout Plain Layout
15453 <cell alignment="center" valignment="top" topline="true" usebox="none">
15456 \begin_layout Plain Layout
15462 <cell alignment="center" valignment="top" topline="true" usebox="none">
15465 \begin_layout Plain Layout
15473 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15476 \begin_layout Plain Layout
15482 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15485 \begin_layout Plain Layout
15491 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15494 \begin_layout Plain Layout
15513 \begin_layout Standard
15514 \begin_inset VSpace bigskip
15517 To color horizontal lines for example with red, like in Table
15518 \begin_inset Space ~
15522 \begin_inset CommandInset ref
15524 reference "tab:Table-with-horizontal-colored"
15528 , insert these commands in TeX-Code before the table or table float:
15531 \begin_layout Standard
15541 \begin_inset Newline newline
15549 \begin_inset Newline newline
15556 \begin_layout Plain Layout
15567 arrayrulecolor{red}
15571 arrayrulecolor{black}}
15574 \begin_layout Standard
15578 \begin_layout Plain Layout
15589 \begin_layout Plain Layout
15598 \begin_layout Plain Layout
15602 arrayrulecolor{red}
15606 arrayrulecolor{black}}
15612 \begin_inset Float table
15618 \begin_layout Plain Layout
15619 \begin_inset Caption
15621 \begin_layout Plain Layout
15622 \begin_inset CommandInset label
15624 name "tab:Table-with-horizontal-colored"
15628 Table with colored horizontal lines
15636 \begin_layout Plain Layout
15638 \begin_inset Tabular
15639 <lyxtabular version="3" rows="3" columns="3">
15641 <column alignment="center" valignment="top" width="0">
15642 <column alignment="center" valignment="top" width="0">
15643 <column alignment="center" valignment="top" width="0">
15645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15648 \begin_layout Plain Layout
15654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15657 \begin_layout Plain Layout
15663 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15666 \begin_layout Plain Layout
15674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15677 \begin_layout Plain Layout
15683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15686 \begin_layout Plain Layout
15692 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15695 \begin_layout Plain Layout
15703 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15706 \begin_layout Plain Layout
15712 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15715 \begin_layout Plain Layout
15721 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15724 \begin_layout Plain Layout
15743 \begin_layout Standard
15744 To return to the default line color black, insert this command in TeX-Code
15745 behind the table or table float:
15748 \begin_layout Standard
15760 \begin_layout Standard
15762 \begin_inset Space ~
15766 \begin_inset CommandInset ref
15768 reference "tab:Table-with-colored"
15772 is an example with colored vertical and horizontal lines.
15775 \begin_layout Standard
15776 \begin_inset Float table
15782 \begin_layout Plain Layout
15783 \begin_inset Caption
15785 \begin_layout Plain Layout
15786 \begin_inset CommandInset label
15788 name "tab:Table-with-colored"
15792 Table with colored lines
15800 \begin_layout Plain Layout
15802 \begin_inset Tabular
15803 <lyxtabular version="3" rows="3" columns="3">
15805 <column alignment="center" valignment="top" width="0" special="Wc">
15806 <column alignment="center" valignment="top" width="0" special="Wc">
15807 <column alignment="center" valignment="top" width="0" special="WcW">
15809 <cell alignment="center" valignment="top" topline="true" usebox="none">
15812 \begin_layout Plain Layout
15818 <cell alignment="center" valignment="top" topline="true" usebox="none">
15821 \begin_layout Plain Layout
15827 <cell alignment="center" valignment="top" topline="true" usebox="none">
15830 \begin_layout Plain Layout
15838 <cell alignment="center" valignment="top" topline="true" usebox="none">
15841 \begin_layout Plain Layout
15847 <cell alignment="center" valignment="top" topline="true" usebox="none">
15850 \begin_layout Plain Layout
15856 <cell alignment="center" valignment="top" topline="true" usebox="none">
15859 \begin_layout Plain Layout
15866 <row topspace="default">
15867 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15870 \begin_layout Plain Layout
15876 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15879 \begin_layout Plain Layout
15885 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15888 \begin_layout Plain Layout
15907 \begin_layout Standard
15911 \begin_layout Plain Layout
15927 \begin_layout Standard
15931 \begin_layout Plain Layout
15937 arrayrulewidth}{0.4pt}
15945 \begin_layout Section
15946 Table Customization
15950 \begin_layout Plain Layout
15951 Table Customization
15960 \begin_layout Plain Layout
15961 Table ! Customization
15969 \begin_layout Subsection
15971 \begin_inset CommandInset label
15973 name "sub:Row-Spacing"
15981 \begin_layout Plain Layout
15982 Table Customization ! Row Spacing
15990 \begin_layout Standard
15991 You can add vertical space to table rows in the
15995 tab of the table dialog.
15996 You find there three possibilities:
15999 \begin_layout Description
16001 \begin_inset Space ~
16005 \begin_inset Space ~
16008 row will add space above the characters of the table row.
16009 If the table is a formal table
16013 \begin_layout Plain Layout
16014 Formal tables are explained in section
16015 \begin_inset Space ~
16019 \begin_inset CommandInset ref
16021 reference "sec:Formal-Tables"
16030 LyX will insert as default 0.5
16031 \begin_inset Space \thinspace{}
16035 For normal tables the inserted space will unfortunately destroy the vertical
16036 table lines as in the following table:
16037 \begin_inset VSpace medskip
16041 \begin_inset Newline newline
16045 \begin_inset Space \hspace*{}
16050 \begin_inset Space \hfill{}
16054 \begin_inset Tabular
16055 <lyxtabular version="3" rows="3" columns="1">
16057 <column alignment="center" valignment="top" width="0">
16059 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16062 \begin_layout Plain Layout
16069 <row topspace="3mm">
16070 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16073 \begin_layout Plain Layout
16075 \begin_inset Space \thinspace{}
16078 mm space top of row
16085 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16088 \begin_layout Plain Layout
16100 \begin_inset Space \hfill{}
16104 \begin_inset Space \hspace*{}
16109 \begin_inset VSpace medskip
16113 \begin_inset Newline newline
16116 So inserting space to the top of row for normal tables is only useful when
16117 you don't have vertical lines.
16120 \begin_layout Description
16122 \begin_inset Space ~
16126 \begin_inset Space ~
16129 row will add space below the characters of the table row.
16130 If the table is a formal table LyX will insert as default 0.5
16131 \begin_inset Space \thinspace{}
16134 em space, for normal tables the default size is 2
16135 \begin_inset Space \thinspace{}
16141 \begin_layout Description
16143 \begin_inset Space ~
16146 rows adds space between the current and the following row.
16147 If the table is a formal table LyX will insert as default 0.5
16148 \begin_inset Space \thinspace{}
16152 For normal tables the inserted space will unfortunately destroy the vertical
16153 table lines as in the following table:
16154 \begin_inset VSpace medskip
16158 \begin_inset Newline newline
16162 \begin_inset Space \hspace*{}
16167 \begin_inset Space \hfill{}
16171 \begin_inset Tabular
16172 <lyxtabular version="3" rows="3" columns="1">
16174 <column alignment="center" valignment="top" width="0">
16176 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16179 \begin_layout Plain Layout
16186 <row interlinespace="3mm">
16187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16190 \begin_layout Plain Layout
16191 \begin_inset Formula $\downarrow$
16195 \begin_inset Space \thinspace{}
16198 mm space between row
16199 \begin_inset Formula $\downarrow$
16209 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16212 \begin_layout Plain Layout
16213 \begin_inset Formula $\uparrow$
16217 \begin_inset Space \thinspace{}
16220 mm space between row
16221 \begin_inset Formula $\uparrow$
16235 \begin_inset Space \hfill{}
16239 \begin_inset Space \hspace*{}
16244 \begin_inset VSpace medskip
16248 \begin_inset Newline newline
16251 So inserting space between rows for normal tables is only useful when you
16252 don't have vertical lines.
16255 \begin_layout Standard
16256 \begin_inset VSpace bigskip
16259 When you want to add extra height to all cells of all tables, you can do
16260 this with the following preamble lines:
16263 \begin_layout Standard
16268 @ifundefined{extrarowheight}
16269 \begin_inset Newline newline
16276 \begin_layout Plain Layout
16287 usepackage{array}}{}
16288 \begin_inset Newline newline
16295 extrarowheight}{height}
16298 \begin_layout Standard
16299 But this has the disadvantage that the cell texts are no longer exactly
16300 vertically centered.
16305 will be loaded automatically by LyX when you use self defined table formats.
16306 To avoid that it is loaded twice the command
16312 is used in the above command.)
16315 \begin_layout Subsection
16316 Special Cell Alignment
16320 \begin_layout Plain Layout
16321 Table Customization ! Special Cell Alignment
16329 \begin_layout Standard
16330 Sometimes it looks better when the cell entries of a column are aligned
16331 with a special character, e.
16332 \begin_inset Space \thinspace{}
16336 \begin_inset Space ~
16339 with the decimal separator as in Table
16340 \begin_inset Space ~
16344 \begin_inset CommandInset ref
16346 reference "tab:Table-cells-of"
16353 \begin_layout Standard
16354 \begin_inset Float table
16360 \begin_layout Plain Layout
16361 \begin_inset Caption
16363 \begin_layout Plain Layout
16364 \begin_inset CommandInset label
16366 name "tab:Table-cells-of"
16370 Table cells of a column aligned with the decimal separator.
16378 \begin_layout Plain Layout
16380 \begin_inset Tabular
16381 <lyxtabular version="3" rows="4" columns="2">
16383 <column alignment="right" valignment="top" width="0">
16384 <column alignment="left" valignment="top" width="0" special="@{}l">
16386 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16389 \begin_layout Plain Layout
16395 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16398 \begin_layout Plain Layout
16406 <cell alignment="center" valignment="top" usebox="none">
16409 \begin_layout Plain Layout
16415 <cell alignment="center" valignment="top" usebox="none">
16418 \begin_layout Plain Layout
16426 <cell alignment="center" valignment="top" usebox="none">
16429 \begin_layout Plain Layout
16435 <cell alignment="center" valignment="top" usebox="none">
16438 \begin_layout Plain Layout
16446 <cell alignment="center" valignment="top" usebox="none">
16449 \begin_layout Plain Layout
16455 <cell alignment="center" valignment="top" usebox="none">
16458 \begin_layout Plain Layout
16477 \begin_layout Standard
16478 This table was created with a 4×2 table.
16479 The heading is a centered multicolumn.
16480 The first column is right-aligned and contains the digits before the decimal
16481 point and the decimal point.
16482 The second column is left aligned and contains the digits after the decimal
16484 To omit the space that is normally between two table columns, use the following
16485 LaTeX-argument for the second column:
16488 \begin_layout Standard
16494 \begin_layout Standard
16496 \begin_inset Space ~
16500 \begin_inset CommandInset ref
16502 reference "tab:Several-table-cell"
16506 shows some example alignments.
16507 For the alignment with the relation sign, you must add the second smallest
16508 math-space at the beginning of the last column to get the correct space
16509 surrounding the relation sign.
16512 \begin_layout Standard
16513 \begin_inset Float table
16518 \begin_layout Plain Layout
16519 \begin_inset Caption
16521 \begin_layout Plain Layout
16522 \begin_inset CommandInset label
16524 name "tab:Several-table-cell"
16528 Several table cell alignments.
16536 \begin_layout Plain Layout
16538 \begin_inset Tabular
16539 <lyxtabular version="3" rows="4" columns="6">
16541 <column alignment="right" valignment="top" width="0">
16542 <column alignment="left" valignment="top" width="0" special="@{}l">
16543 <column alignment="right" valignment="top" width="0">
16544 <column alignment="left" valignment="top" width="0" special="@{}l">
16545 <column alignment="right" valignment="top" width="0">
16546 <column alignment="left" valignment="top" width="0" special="@{}l">
16548 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16551 \begin_layout Plain Layout
16557 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16560 \begin_layout Plain Layout
16566 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16569 \begin_layout Plain Layout
16575 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16578 \begin_layout Plain Layout
16584 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16587 \begin_layout Plain Layout
16593 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16596 \begin_layout Plain Layout
16604 <cell alignment="center" valignment="top" usebox="none">
16607 \begin_layout Plain Layout
16613 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16616 \begin_layout Plain Layout
16618 \begin_inset Space \thinspace{}
16626 <cell alignment="center" valignment="top" usebox="none">
16629 \begin_layout Plain Layout
16630 \begin_inset Formula $10\cdot$
16638 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16641 \begin_layout Plain Layout
16642 \begin_inset Formula $10^{\mbox{-}17}$
16650 <cell alignment="center" valignment="top" usebox="none">
16653 \begin_layout Plain Layout
16654 \begin_inset Formula $\Gamma(t)\propto$
16662 <cell alignment="center" valignment="top" usebox="none">
16665 \begin_layout Plain Layout
16666 \begin_inset Formula $\:\Upsilon(t)$
16676 <cell alignment="center" valignment="top" usebox="none">
16679 \begin_layout Plain Layout
16685 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16688 \begin_layout Plain Layout
16690 \begin_inset Space \thinspace{}
16698 <cell alignment="center" valignment="top" usebox="none">
16701 \begin_layout Plain Layout
16702 \begin_inset Formula $5.78\cdot$
16710 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16713 \begin_layout Plain Layout
16714 \begin_inset Formula $10^{7}$
16722 <cell alignment="center" valignment="top" usebox="none">
16725 \begin_layout Plain Layout
16726 \begin_inset Formula $A\ne$
16734 <cell alignment="center" valignment="top" usebox="none">
16737 \begin_layout Plain Layout
16738 \begin_inset Formula $\: B_{\mathrm{red}}$
16748 <cell alignment="center" valignment="top" usebox="none">
16751 \begin_layout Plain Layout
16757 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16760 \begin_layout Plain Layout
16762 \begin_inset Space \thinspace{}
16770 <cell alignment="center" valignment="top" usebox="none">
16773 \begin_layout Plain Layout
16775 \begin_inset Formula $33.5\cdot$
16783 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16786 \begin_layout Plain Layout
16787 \begin_inset Formula $10^{4}$
16795 <cell alignment="center" valignment="top" usebox="none">
16798 \begin_layout Plain Layout
16799 \begin_inset Formula $\sin(\alpha)\ge$
16807 <cell alignment="center" valignment="top" usebox="none">
16810 \begin_layout Plain Layout
16811 \begin_inset Formula $\:\sin(\beta)$
16832 \begin_layout Standard
16833 \begin_inset VSpace bigskip
16836 There is also the LaTeX-package
16844 \begin_layout Plain Layout
16845 LaTeX-packages ! dcolumn
16850 that provides table cell alignments.
16851 But this unfortunately treats the cell entries as math and doesn't allow
16852 formulas in table cells: The first column of Table
16853 \begin_inset Space ~
16857 \begin_inset CommandInset ref
16859 reference "tab:Several-table-cell"
16867 like the first column in Table
16868 \begin_inset Space ~
16872 \begin_inset CommandInset ref
16874 reference "tab:Alignments-when"
16878 and only with some tricks like the expected.
16879 The alignment of the second and third column of Table
16880 \begin_inset Space ~
16884 \begin_inset CommandInset ref
16886 reference "tab:Several-table-cell"
16890 is not possible with
16897 \begin_layout Standard
16898 \begin_inset Float table
16904 \begin_layout Plain Layout
16905 \begin_inset Caption
16907 \begin_layout Plain Layout
16908 \begin_inset CommandInset label
16910 name "tab:Alignments-when"
16914 Alignments when LaTeX-package dcolumn is used.
16915 For all column alignments tricks have to be used to get the output.
16923 \begin_layout Plain Layout
16925 \begin_inset Tabular
16926 <lyxtabular version="3" rows="4" columns="3">
16928 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
16929 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
16930 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
16932 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16935 \begin_layout Plain Layout
16941 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16944 \begin_layout Plain Layout
16950 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16953 \begin_layout Plain Layout
16961 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16964 \begin_layout Plain Layout
16966 \begin_inset Space \thinspace{}
16974 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16977 \begin_layout Plain Layout
16979 \begin_inset Space \thinspace{}
16983 \begin_inset Formula $\mbox{bottles}$
16991 <cell alignment="center" valignment="top" usebox="none">
16994 \begin_layout Plain Layout
16999 \begin_layout Plain Layout
17009 \begin_inset Formula $\mbox{bottles}$
17019 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17022 \begin_layout Plain Layout
17024 \begin_inset Space \thinspace{}
17032 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17035 \begin_layout Plain Layout
17037 \begin_inset Space \thinspace{}
17041 \begin_inset Formula $\mbox{Pixels}$
17049 <cell alignment="center" valignment="top" usebox="none">
17052 \begin_layout Plain Layout
17057 \begin_layout Plain Layout
17067 \begin_inset Formula $\mbox{Pixels}$
17077 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17080 \begin_layout Plain Layout
17082 \begin_inset Space \thinspace{}
17090 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17093 \begin_layout Plain Layout
17095 \begin_inset Space \thinspace{}
17099 \begin_inset Formula $\mbox{cm}$
17107 <cell alignment="center" valignment="top" usebox="none">
17110 \begin_layout Plain Layout
17115 \begin_layout Plain Layout
17125 \begin_inset Formula $\mbox{cm}$
17146 \begin_layout Subsection
17147 Customized Cell/Column Format
17148 \begin_inset CommandInset label
17150 name "sub:Customized-Format"
17158 \begin_layout Plain Layout
17159 Table Customization ! Cell/Column Format
17167 \begin_layout Standard
17168 Calculating the needed width for spanned columns like in section
17169 \begin_inset Space ~
17173 \begin_inset CommandInset ref
17175 reference "sub:Multicolumn-Calculations"
17179 is very annoying if you have several tables with multicolumn cells.
17180 To make life easier, you can define a cell/column format in the preamble,
17181 so that it can be used in all tables of the document.
17182 The format is defined with the command
17185 \begin_layout Standard
17190 newcolumntype{name of format}[number of arguments]{commands}
17193 \begin_layout Standard
17194 The format name may only consist of one letter.
17219 are predefined and cannot be used.
17220 But all letters are allowed as capitals.
17223 \begin_layout Standard
17224 \begin_inset VSpace medskip
17230 \begin_layout Standard
17231 For vertically and horizontally centered multicolumn cells with a fixed
17232 width you can define the cell format
17235 \begin_layout Standard
17240 newcolumntype{M}[1]{>{
17247 \begin_layout Standard
17254 avoids the problem of hyphenating the first word, as described in section
17255 \begin_inset Space ~
17259 \begin_inset CommandInset ref
17261 reference "sub:Multiple-Lines-in"
17266 Now you can simply enter
17269 \begin_layout Standard
17275 \begin_layout Standard
17276 as LaTeX-argument in the table dialog to create a multicolumn.
17279 \begin_layout Standard
17280 \begin_inset VSpace bigskip
17286 \begin_layout Standard
17287 For cells spanned by a multicolumn cell, you can define the format
17290 \begin_layout Standard
17295 newcolumntype{S}[2]{>{
17300 \begin_inset Newline newline
17307 \begin_layout Plain Layout
17322 \begin_layout Plain Layout
17333 arrayrulewidth)*(1-#2))/#2}}
17336 \begin_layout Standard
17337 This format uses equation
17338 \begin_inset CommandInset ref
17344 to calculate the needed width so that each spanned cell has the same width.
17347 \begin_layout Standard
17351 \begin_layout Standard
17354 S{width of multicolumn cell}{number of spanned columns}
17357 \begin_layout Standard
17358 as LaTeX-argument of the column.
17361 \begin_layout Standard
17362 \begin_inset VSpace bigskip
17368 \begin_layout Standard
17369 For colored columns, you can define
17372 \begin_layout Standard
17377 newcolumntype{K}[1]{>{
17384 \begin_layout Standard
17386 \begin_inset Quotes eld
17390 \begin_inset Quotes erd
17393 at the end creates a column with a flexible width whose text is horizontally
17398 \begin_layout Standard
17404 \begin_layout Standard
17408 \begin_layout Standard
17409 \begin_inset VSpace bigskip
17415 \begin_layout Standard
17417 \begin_inset Space ~
17421 \begin_inset CommandInset ref
17423 reference "tab:Table-using-user-defined"
17427 use the LaTeX-arguments
17430 \begin_layout Standard
17436 \begin_layout Standard
17437 for the first column and the multicolumn,
17440 \begin_layout Standard
17446 \begin_layout Standard
17447 for the the last column, and
17450 \begin_layout Standard
17456 \begin_layout Standard
17457 for the cells in the second column.
17460 \begin_layout Standard
17461 \begin_inset Float table
17467 \begin_layout Plain Layout
17468 \begin_inset Caption
17470 \begin_layout Plain Layout
17471 \begin_inset CommandInset label
17473 name "tab:Table-using-user-defined"
17477 Table using user-defined table formats
17485 \begin_layout Plain Layout
17487 \begin_inset Tabular
17488 <lyxtabular version="3" rows="3" columns="4">
17490 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17491 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17492 <column alignment="center" valignment="middle" width="0">
17493 <column alignment="center" valignment="middle" width="0" special="K{red}">
17495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17498 \begin_layout Plain Layout
17499 verylongtablecellword
17504 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17507 \begin_layout Plain Layout
17508 multiple lines multicolumn
17513 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17516 \begin_layout Plain Layout
17522 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17525 \begin_layout Plain Layout
17533 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17536 \begin_layout Plain Layout
17542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17545 \begin_layout Plain Layout
17551 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17554 \begin_layout Plain Layout
17560 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17563 \begin_layout Plain Layout
17571 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17574 \begin_layout Plain Layout
17580 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17583 \begin_layout Plain Layout
17589 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17592 \begin_layout Plain Layout
17598 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17601 \begin_layout Plain Layout
17620 \begin_layout Subsection
17622 \begin_inset CommandInset label
17624 name "sub:Line-Thickness"
17632 \begin_layout Plain Layout
17633 Table Customization ! Line Thickness
17641 \begin_layout Standard
17642 The line thickness for all lines in a table can be adjusted with the length
17650 To set for example a line thickness of 1.5
17651 \begin_inset Space \thinspace{}
17655 \begin_inset Space ~
17659 \begin_inset CommandInset ref
17661 reference "tab:Table-with-1.5"
17665 , insert the command
17668 \begin_layout Standard
17675 arrayrulewidth}{1.5pt}
17678 \begin_layout Standard
17679 in TeX-Code before the table or table float.
17680 The changed thickness is valid for all following tables.
17681 To use the default value again, set
17688 \begin_inset Space \thinspace{}
17691 pt in TeX-Code behind the table or table float.
17694 \begin_layout Standard
17698 \begin_layout Plain Layout
17704 arrayrulewidth}{1.5pt}
17710 \begin_inset Float table
17715 \begin_layout Plain Layout
17716 \begin_inset Caption
17718 \begin_layout Plain Layout
17719 \begin_inset CommandInset label
17721 name "tab:Table-with-1.5"
17726 \begin_inset Space \thinspace{}
17737 \begin_layout Plain Layout
17739 \begin_inset Tabular
17740 <lyxtabular version="3" rows="3" columns="3">
17742 <column alignment="center" valignment="top" width="0">
17743 <column alignment="center" valignment="top" width="0">
17744 <column alignment="center" valignment="top" width="0">
17746 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17749 \begin_layout Plain Layout
17755 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17758 \begin_layout Plain Layout
17764 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17767 \begin_layout Plain Layout
17775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17778 \begin_layout Plain Layout
17784 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17787 \begin_layout Plain Layout
17793 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17796 \begin_layout Plain Layout
17804 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17807 \begin_layout Plain Layout
17813 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17816 \begin_layout Plain Layout
17822 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17825 \begin_layout Plain Layout
17845 \begin_layout Plain Layout
17851 arrayrulewidth}{0.4pt}
17859 \begin_layout Standard
17860 \begin_inset VSpace bigskip
17863 To set the line thickness to 1.5
17864 \begin_inset Space \thinspace{}
17867 pt only for horizontal lines, like in Table
17868 \begin_inset Space ~
17872 \begin_inset CommandInset ref
17874 reference "tab:Table-with-horizontal"
17878 , insert these commands in TeX-Code before the table or table float:
17881 \begin_layout Standard
17891 \begin_inset Newline newline
17899 \begin_inset Newline newline
17908 arrayrulewidth 1.5pt}
17909 \begin_inset Newline newline
17920 arrayrulewidth 0.4pt}}
17923 \begin_layout Standard
17924 To return to the default line thickness, insert this command in TeX-Code
17925 behind the table or table float:
17928 \begin_layout Standard
17940 \begin_layout Standard
17944 \begin_layout Plain Layout
17955 \begin_layout Plain Layout
17964 \begin_layout Plain Layout
17972 arrayrulewidth 1.5pt}
17975 \begin_layout Plain Layout
17985 arrayrulewidth 0.4pt}}
17991 \begin_inset Float table
17996 \begin_layout Plain Layout
17997 \begin_inset Caption
17999 \begin_layout Plain Layout
18000 \begin_inset CommandInset label
18002 name "tab:Table-with-horizontal"
18007 \begin_inset Space \thinspace{}
18010 pt thick horizontal lines
18018 \begin_layout Plain Layout
18020 \begin_inset Tabular
18021 <lyxtabular version="3" rows="3" columns="3">
18023 <column alignment="center" valignment="top" width="0">
18024 <column alignment="center" valignment="top" width="0">
18025 <column alignment="center" valignment="top" width="0">
18027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18030 \begin_layout Plain Layout
18036 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18039 \begin_layout Plain Layout
18045 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18048 \begin_layout Plain Layout
18056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18059 \begin_layout Plain Layout
18065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18068 \begin_layout Plain Layout
18074 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18077 \begin_layout Plain Layout
18085 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18088 \begin_layout Plain Layout
18094 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18097 \begin_layout Plain Layout
18103 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18106 \begin_layout Plain Layout
18126 \begin_layout Plain Layout
18142 \begin_layout Standard
18143 \begin_inset VSpace bigskip
18146 To set the line thickness to 1.5
18147 \begin_inset Space \thinspace{}
18150 pt only for vertical lines, create the following column format in the document
18151 preamble, according to the description in section
18152 \begin_inset Space ~
18156 \begin_inset CommandInset ref
18158 reference "sub:Customized-Format"
18165 \begin_layout Standard
18170 newcolumntype{V}{!{
18172 vrule width 1.5pt}}
18175 \begin_layout Standard
18177 \begin_inset Space ~
18181 \begin_inset CommandInset ref
18183 reference "tab:Table-with-vertical"
18190 \begin_layout Standard
18196 \begin_layout Standard
18197 was used for the last column and
18200 \begin_layout Standard
18206 \begin_layout Standard
18207 for the other columns.
18210 \begin_layout Standard
18211 \begin_inset Float table
18216 \begin_layout Plain Layout
18217 \begin_inset Caption
18219 \begin_layout Plain Layout
18220 \begin_inset CommandInset label
18222 name "tab:Table-with-vertical"
18227 \begin_inset Space \thinspace{}
18230 pt thick vertical lines
18238 \begin_layout Plain Layout
18240 \begin_inset Tabular
18241 <lyxtabular version="3" rows="3" columns="3">
18243 <column alignment="center" valignment="top" width="0" special="Vc">
18244 <column alignment="center" valignment="top" width="0" special="Vc">
18245 <column alignment="center" valignment="top" width="0" special="VcV">
18247 <cell alignment="center" valignment="top" topline="true" usebox="none">
18250 \begin_layout Plain Layout
18256 <cell alignment="center" valignment="top" topline="true" usebox="none">
18259 \begin_layout Plain Layout
18265 <cell alignment="center" valignment="top" topline="true" usebox="none">
18268 \begin_layout Plain Layout
18276 <cell alignment="center" valignment="top" topline="true" usebox="none">
18279 \begin_layout Plain Layout
18285 <cell alignment="center" valignment="top" topline="true" usebox="none">
18288 \begin_layout Plain Layout
18294 <cell alignment="center" valignment="top" topline="true" usebox="none">
18297 \begin_layout Plain Layout
18305 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18308 \begin_layout Plain Layout
18314 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18317 \begin_layout Plain Layout
18323 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18326 \begin_layout Plain Layout
18345 \begin_layout Subsection
18350 \begin_layout Plain Layout
18351 Table Customization ! Dashed Lines
18359 \begin_layout Standard
18363 \begin_layout Plain Layout
18373 \begin_inset Note Note
18376 \begin_layout Plain Layout
18377 The following section will only be displayed when the LaTeX-package
18389 \begin_layout Standard
18390 \begin_inset Float table
18396 \begin_layout Plain Layout
18397 \begin_inset Caption
18399 \begin_layout Plain Layout
18400 \begin_inset CommandInset label
18402 name "tab:Table-with-dashed"
18406 Table with dashed lines
18414 \begin_layout Plain Layout
18416 \begin_inset Tabular
18417 <lyxtabular version="3" rows="5" columns="5">
18419 <column alignment="center" valignment="top" width="0">
18420 <column alignment="center" valignment="top" width="0">
18421 <column alignment="center" valignment="top" width="0" special=":c">
18422 <column alignment="center" valignment="top" width="0">
18423 <column alignment="center" valignment="top" width="0">
18425 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18428 \begin_layout Plain Layout
18434 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18437 \begin_layout Plain Layout
18443 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18446 \begin_layout Plain Layout
18452 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18455 \begin_layout Plain Layout
18461 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18464 \begin_layout Plain Layout
18472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18475 \begin_layout Plain Layout
18481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18484 \begin_layout Plain Layout
18490 <cell alignment="center" valignment="top" topline="true" usebox="none">
18493 \begin_layout Plain Layout
18499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18502 \begin_layout Plain Layout
18508 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18511 \begin_layout Plain Layout
18519 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18522 \begin_layout Plain Layout
18526 \begin_layout Plain Layout
18540 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18543 \begin_layout Plain Layout
18549 <cell alignment="center" valignment="top" usebox="none">
18552 \begin_layout Plain Layout
18558 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18561 \begin_layout Plain Layout
18567 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18570 \begin_layout Plain Layout
18578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18581 \begin_layout Plain Layout
18585 \begin_layout Plain Layout
18599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18602 \begin_layout Plain Layout
18608 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
18611 \begin_layout Plain Layout
18617 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
18620 \begin_layout Plain Layout
18626 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18629 \begin_layout Plain Layout
18637 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18640 \begin_layout Plain Layout
18646 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18649 \begin_layout Plain Layout
18655 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18658 \begin_layout Plain Layout
18664 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18667 \begin_layout Plain Layout
18673 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18676 \begin_layout Plain Layout
18695 \begin_layout Standard
18696 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
18697 As prerequisite the LaTeX-package
18705 \begin_layout Plain Layout
18706 LaTeX-packages ! arydshln
18711 must be loaded in the document preamble with the command
18714 \begin_layout Standard
18719 usepackage{arydshln}
18722 \begin_layout Standard
18723 To make a vertical line dashed, enter the colon
18724 \begin_inset Quotes eld
18728 \begin_inset Quotes erd
18731 together with the character for the horizontal alignment as LaTeX-argument
18732 in the table cell dialog.
18735 \begin_layout Standard
18736 For a horizontal dashed line add the command
18739 \begin_layout Standard
18747 \begin_layout Standard
18748 in TeX-Code as first element of the first cell in the table row.
18751 \begin_layout Standard
18752 For dashed multicolumn lines use the command
18755 \begin_layout Standard
18760 cdashline{line number
18765 \begin_layout Standard
18766 in TeX-Code as first element of the first cell in the table row.
18767 If you have for example a multicolumn spanning over columns 2 to 4 and
18768 you want to have a dashed line above, add the command
18771 \begin_layout Standard
18779 \begin_layout Standard
18780 as first element of the first cell in the row of the multicolumn.
18783 \begin_layout Standard
18784 \begin_inset VSpace bigskip
18790 \begin_layout Standard
18792 \begin_inset Space ~
18796 \begin_inset CommandInset ref
18798 reference "tab:Table-with-dashed"
18803 \begin_inset Quotes eld
18811 \begin_inset Quotes erd
18814 as LaTeX-argument of the third column.
18815 The TeX-Code command
18821 was inserted to the first cell of the third row and the the TeX-Code command
18822 \begin_inset Newline newline
18831 was inserted to the first cell of the fourth row.
18834 \begin_layout Standard
18835 \begin_inset Note Greyedout
18838 \begin_layout Plain Layout
18843 The used LaTeX-package
18847 is apparently not compatible with the LaTeX-package
18855 \begin_layout Plain Layout
18856 LaTeX-packages ! colortbl
18861 that is used for colored tables in section
18862 \begin_inset Space ~
18866 \begin_inset CommandInset ref
18868 reference "sec:Colored-Tables"
18873 That means colored tables cannot have dashed lines.
18881 \begin_layout Standard
18885 \begin_layout Plain Layout
18895 \begin_inset Note Note
18898 \begin_layout Plain Layout
18899 The following will be displayed when the LaTeX-package
18911 \begin_layout Standard
18912 You need to install the package
18916 to see the content of this section in the output.
18919 \begin_layout Standard
18923 \begin_layout Plain Layout
18935 \begin_layout Chapter
18940 \begin_layout Plain Layout
18947 \begin_inset CommandInset label
18956 \begin_layout Section
18958 \begin_inset CommandInset label
18960 name "sec:FloatIntroduction"
18968 \begin_layout Plain Layout
18969 Floats ! Introduction
18977 \begin_layout Standard
18978 A float is a block of text associated with some sort of label, which doesn't
18979 have a fixed location.
18981 \begin_inset Quotes eld
18985 \begin_inset Quotes erd
18988 forward or backward a page or two, to wherever it fits best.
18996 \begin_inset Space ~
19001 are also floats, because they can float to the next page when there are
19002 too many notes at the page.
19005 \begin_layout Standard
19006 Floats allow a high quality layout.
19007 Images and tables can evenly be spread to the pages to avoid white space
19008 and pages without text.
19009 As the floating often destroys the context between the text and the image/table
19010 , every float can be referenced in the text.
19011 Floats are therefore numbered.
19012 Referencing is described in section
19013 \begin_inset Space ~
19017 \begin_inset CommandInset ref
19019 reference "sec:Referencing-Floats"
19026 \begin_layout Standard
19027 To insert a float, use the menu
19029 Insert\SpecialChar \menuseparator
19037 inset, a box with a label.
19038 The label will automatically be translated to the document language in
19040 Behind the label you can insert the caption text.
19041 The image or table is inserted above or below the caption in a separate
19042 paragraph within the float.
19043 More about the caption placement is described in section
19044 \begin_inset Space ~
19048 \begin_inset CommandInset ref
19050 reference "sec:Caption-Placement"
19055 To keep your LyX-document readable, you can open and close the float box
19056 by left-clicking on the box label.
19057 A closed float box looks like this:
19058 \begin_inset Graphics
19059 filename clipart/floatQt4.png
19061 scaleBeforeRotation
19065 -- a gray button with a red label.
19068 \begin_layout Standard
19069 It is recommended to insert floats as a separate paragraph to avoid possible
19070 LaTeX-errors that can occur when the surrounding text is specially formatted.
19073 \begin_layout Standard
19074 Existing figures or tables can be put into a float by marking them and then
19075 pressing the corresponding toolbar button for a new float.
19078 \begin_layout Section
19082 \begin_layout Standard
19083 Besides figure and table floats that are described in section
19084 \begin_inset Space ~
19088 \begin_inset CommandInset ref
19090 reference "sec:Figure-Floats"
19095 \begin_inset CommandInset ref
19097 reference "sec:Table-Floats"
19101 , respectively, LyX offers the float types
19108 \begin_inset Space ~
19112 \begin_inset Space ~
19120 \begin_layout Subsection
19125 \begin_layout Plain Layout
19126 Floats ! Algorithms
19132 \begin_inset CommandInset label
19134 name "sub:Algorithm-Floats"
19141 \begin_layout Standard
19142 \begin_inset Float algorithm
19148 \begin_layout Plain Layout
19149 \begin_inset Caption
19151 \begin_layout Plain Layout
19152 \begin_inset CommandInset label
19154 name "alg:Example-Algorithm-float"
19158 Example Algorithm float
19166 \begin_layout LyX-Code
19168 \begin_inset Newline newline
19171 Sum:= Sum + A(I); /*comment*/
19172 \begin_inset Newline newline
19176 \begin_inset VSpace -4mm
19187 \begin_layout Standard
19188 This float type is inserted with the menu
19190 Insert\SpecialChar \menuseparator
19191 Floats\SpecialChar \menuseparator
19195 It is used for program codes and descriptions of algorithms.
19196 A possible environment for algorithms is the
19200 , described in LyX's
19206 \begin_inset Space ~
19210 \begin_inset CommandInset ref
19212 reference "alg:Example-Algorithm-float"
19216 is an example of an algorithm float where -4
19217 \begin_inset Space \thinspace{}
19220 mm vertical space was added at the end of the float to have the bottom rule
19221 exactly below the last text line.
19224 \begin_layout Standard
19225 The float label is not automatically translated into the document language.
19226 If your document is not in English, you have to do this manually by adding
19227 the following line to the document preamble
19232 \begin_layout Standard
19237 floatname{algorithm}{your
19238 \begin_inset Space ~
19244 \begin_layout Standard
19248 \begin_inset Space ~
19254 \begin_inset Quotes eld
19262 \begin_inset Quotes erd
19268 \begin_layout Standard
19269 To insert the list of algorithms you can in this case not use the menu
19271 Insert\SpecialChar \menuseparator
19273 \begin_inset Space \thinspace{}
19277 \begin_inset Space \thinspace{}
19280 TOC\SpecialChar \menuseparator
19283 when your document is an English one.
19284 For non-English documents, use this command in TeX-Code instead:
19287 \begin_layout Standard
19292 listof{algorithm}{your
19293 \begin_inset Space ~
19299 \begin_layout Standard
19303 \begin_inset Space ~
19309 \begin_inset Quotes eld
19317 \begin_inset Quotes erd
19323 \begin_layout Standard
19324 Algorithm floats are not by default numbered in the scheme
19325 \begin_inset Quotes eld
19329 \begin_inset Quotes erd
19332 like it is the case for table and figure floats in many document-classes.
19333 To number algorithm floats in the same scheme, add this command to your
19337 \begin_layout Standard
19342 numberwithin{algorithm}{chapter}
19345 \begin_layout Standard
19346 To be able to use the command
19355 \begin_inset Space ~
19360 in the document settings the option
19363 \begin_inset Space ~
19367 \begin_inset Space ~
19371 \begin_inset Space ~
19379 \begin_layout Subsection
19384 \begin_layout Plain Layout
19385 Floats ! Text Wrap Floats
19391 \begin_inset CommandInset label
19393 name "sub:floatflt-wrap-float"
19400 \begin_layout Standard
19401 \begin_inset Wrap figure
19408 \begin_layout Plain Layout
19409 \begin_inset Graphics
19410 filename clipart/mobius.eps
19413 scaleBeforeRotation
19414 rotateOrigin center
19421 \begin_layout Plain Layout
19422 \begin_inset Caption
19424 \begin_layout Plain Layout
19425 \begin_inset CommandInset label
19427 name "fig:This-is-a"
19431 This is a wrapped figure, and this is the brilliant caption that describes
19433 \begin_inset VSpace medskip
19446 This float type is used if you want to
19447 \begin_inset Quotes eld
19451 \begin_inset Quotes erd
19454 text around a figure so that it only occupies some fraction of the column
19456 It can be inserted using the menu
19458 Insert\SpecialChar \menuseparator
19459 Floats\SpecialChar \menuseparator
19461 \begin_inset Space ~
19465 \begin_inset Space ~
19470 if the LaTeX-package
19478 \begin_layout Plain Layout
19479 LaTeX-packages ! wrapfig
19483 \begin_layout Plain Layout
19491 \begin_layout Plain Layout
19502 \begin_layout Plain Layout
19518 \begin_layout Plain Layout
19529 \begin_layout Plain Layout
19545 \begin_layout Plain Layout
19546 Installing a LaTeX-package is explained it in the
19549 \begin_inset Space ~
19559 The width and placement of the float is adjusted by right-clicking on the
19562 \begin_inset Space ~
19566 \begin_inset CommandInset ref
19568 reference "fig:This-is-a"
19572 is an example text wrap float with a width of 40
19573 \begin_inset Space \thinspace{}
19580 \begin_layout Plain Layout
19581 Available units are explained in appendix
19582 \begin_inset Space ~
19586 \begin_inset CommandInset ref
19588 reference "cha:Units-available-in"
19597 Some space was added under the caption to separate it better from the surroundi
19601 \begin_layout Standard
19606 also supports table wrap floats, but they are not yet supported by LyX.
19607 If you need this, read the documentation of
19612 \begin_inset CommandInset citation
19621 \begin_layout Standard
19622 \begin_inset Note Greyedout
19625 \begin_layout Plain Layout
19631 \begin_inset Space ~
19634 wrap float floats are fragile! E.
19635 \begin_inset Space \thinspace{}
19639 \begin_inset Space ~
19642 having a figure too close to the bottom of the page can mess things up in
19643 the way that the float doesn't appear in the output or that it is placed
19644 over some other text.
19652 \begin_layout Standard
19656 \begin_layout Itemize
19657 Wrap floats should not be placed in paragraphs that run over a page break.
19658 That means that wrap floats should better be inserted to the exact place
19659 when the document is nearly finished and you are able to estimate where
19660 page breaks will appear.
19663 \begin_layout Itemize
19664 Wrap floats should either be placed in an own paragraph before the paragraph
19665 where they should wrap into or within a paragraph.
19668 \begin_layout Itemize
19669 Wrap floats in consecutive paragraphs may cause troubles, so assure that
19670 there is a text paragraph between them as separator.
19673 \begin_layout Itemize
19674 Wrap floats are not allowed in section headings or tables.
19677 \begin_layout Section
19679 \begin_inset CommandInset label
19681 name "sec:Float-Numbering"
19689 \begin_layout Plain Layout
19698 \begin_layout Standard
19699 Floats are usually numbered either independent from the sections the floats
19700 are in, or in the scheme
19701 \begin_inset Quotes eld
19705 \begin_inset Quotes erd
19709 \begin_inset Quotes eld
19713 \begin_inset Quotes erd
19717 This depends on the used document class.
19720 \begin_layout Standard
19721 To change the section independent numbering, you can use this command in
19722 the document preamble:
19725 \begin_layout Standard
19737 \begin_layout Standard
19744 is the command that prints the table number, for figure floats, the command
19758 prints in the command above the table number as small roman number.
19761 \begin_layout Standard
19762 To change the numbering scheme for example to
19763 \begin_inset Quotes eld
19767 \begin_inset Quotes erd
19770 , use this command in the preamble:
19773 \begin_layout Standard
19778 numberwithin{table}{subsection}
19781 \begin_layout Standard
19782 To be able to use the command
19791 \begin_inset Space ~
19796 in the document settings the option
19799 \begin_inset Space ~
19803 \begin_inset Space ~
19807 \begin_inset Space ~
19815 \begin_layout Standard
19816 Please also have a look at section
19817 \begin_inset Space ~
19821 \begin_inset CommandInset ref
19823 reference "sub:Footnote-Numbering"
19827 for the details and important notes about the numbering commands.
19830 \begin_layout Section
19832 \begin_inset CommandInset label
19834 name "sec:Referencing-Floats"
19842 \begin_layout Plain Layout
19843 Floats ! References
19852 \begin_layout Plain Layout
19861 \begin_layout Standard
19862 To reference a float, insert a label into its caption using the menu
19864 Insert\SpecialChar \menuseparator
19867 or the toolbar button
19868 \begin_inset Graphics
19869 filename ../images/label-insert.png
19871 scaleBeforeRotation
19876 A grey label box like this one:
19877 \begin_inset Graphics
19878 filename clipart/labelQt4.png
19880 scaleBeforeRotation
19884 will be inserted and the label window pops up asking for the label text.
19885 LyX offers as text the first words of the caption with a prefix.
19886 The prefix depends on the float type, e.
19887 \begin_inset Space \thinspace{}
19891 \begin_inset Space ~
19894 for figure floats the prefix will be "
19901 \begin_layout Standard
19902 The label is used as anchor and name for the reference.
19903 You can refer to the label using the menu
19905 Insert\SpecialChar \menuseparator
19908 or the toolbar button
19909 \begin_inset Graphics
19910 filename ../images/dialog-show-new-inset_ref.png
19912 scaleBeforeRotation
19917 A grey cross-reference box like this one:
19918 \begin_inset Graphics
19919 filename clipart/referenceQt4.png
19921 scaleBeforeRotation
19925 will be inserted and the cross-reference window appear showing all labels
19927 If you have multiple LyX-documents opened, choose the one you are working
19928 on from the drop-list at the top of the dialog.
19929 You can now sort the labels alphabetically and then choose one.
19930 At the position of the cross-reference box the float number will appear
19934 \begin_layout Standard
19935 It is recommended to use a protected space between the cross-reference name
19936 and its number to avoid line breaks between them.
19937 If a cross-reference refers to a non-existing label, you will see two question
19938 marks in the output instead of the reference.
19941 \begin_layout Standard
19942 You can change labels at any time by clicking on the label box.
19943 References to the changed label will automatically change its link to the
19944 new label text, so that you don't need to take care about this.
19947 \begin_layout Standard
19951 \begin_inset Space ~
19955 \begin_inset Space ~
19960 in the cross-reference window sets the cursor before the referred label.
19961 The button text changes then to Go
19962 \begin_inset Space ~
19965 Back and you can use it to set the cursor back to the cross-reference.
19966 Right-clicking on a cross-reference box also sets the cursor before the
19967 referenced label but without a possibility to go back.
19970 \begin_layout Subsection
19971 Cross-Reference Formats
19972 \begin_inset CommandInset label
19974 name "sub:Cross-Reference-Formats"
19982 \begin_layout Plain Layout
19983 References ! Formats
19991 \begin_layout Standard
19992 There are six varieties of cross-references:
19995 \begin_layout Description
19996 <reference>: prints the float number, this is the default:
19997 \begin_inset CommandInset ref
19999 reference "fig:Two-distorted-images"
20006 \begin_layout Description
20007 (<reference>): prints the float number within two parentheses, this is the
20008 style normally used to reference formulas, especially when the reference
20010 \begin_inset Quotes eld
20014 \begin_inset Quotes erd
20018 \begin_inset CommandInset ref
20027 \begin_layout Description
20028 <page>: prints the page number: Page
20029 \begin_inset Space ~
20033 \begin_inset CommandInset ref
20034 LatexCommand pageref
20035 reference "fig:Two-distorted-images"
20042 \begin_layout Description
20044 \begin_inset Space ~
20048 \begin_inset Space ~
20051 <page>: prints the text "on page" and the page number:
20052 \begin_inset CommandInset ref
20053 LatexCommand vpageref
20054 reference "fig:Two-distorted-images"
20061 \begin_layout Description
20063 \begin_inset Space ~
20067 \begin_inset Space ~
20071 \begin_inset Space ~
20074 <page>: prints the float number, the text "on page", and the page number:
20076 \begin_inset CommandInset ref
20078 reference "fig:Two-distorted-images"
20085 \begin_layout Description
20087 \begin_inset Space ~
20090 reference: prints a self defined cross-reference format.
20092 \begin_inset Note Greyedout
20095 \begin_layout Plain Layout
20100 This feature is only available when you have the LaTeX-package
20112 \begin_layout Standard
20113 Note that the style <page> won't print the page number if the label is on
20114 the previous, the same, or the next page.
20116 \begin_inset Space \thinspace{}
20120 \begin_inset Space ~
20124 \begin_inset Quotes eld
20132 \begin_inset Quotes erd
20138 \begin_layout Standard
20139 The number and current page of the referred document part in the output,
20140 is automatically calculated by LaTeX.
20141 The varieties are adjusted in the field
20145 of the cross-reference window, that appear when you click on the cross-referenc
20149 \begin_layout Subsection
20150 Referencing Subfigures
20151 \begin_inset CommandInset label
20153 name "sub:Referencing-Subfigures"
20161 \begin_layout Plain Layout
20162 References ! to Subfigures
20170 \begin_layout Standard
20171 Currently referencing subfigures is not supported by LyX, so you have to
20172 use LaTeX-commands.
20173 The label is the created with the command
20176 \begin_layout Standard
20181 label{fig:YourLabelName}
20184 \begin_layout Standard
20185 that is directly inserted into the subfigure caption field.
20186 To reference the label add this command in TeX-Code
20189 \begin_layout Standard
20194 ref{fig:YourLabelName}
20197 \begin_layout Standard
20198 to the position in your document where the reference should be placed.
20199 Here is a reference to a subfigure: Subfigure
20200 \begin_inset Space ~
20207 \begin_layout Plain Layout
20219 \begin_layout Subsection
20220 Automatic Reference Naming
20224 \begin_layout Plain Layout
20225 References ! Automatic Reference Naming
20233 \begin_layout Standard
20238 provides a very useful feature that cross-references automatically include
20239 the name of the referenced floats (or text parts like sections).
20240 You save to write e.
20241 \begin_inset Space \thinspace{}
20245 \begin_inset Space ~
20249 \begin_inset Quotes eld
20253 \begin_inset Quotes erd
20256 before every reference box.
20257 To get this automatic reference naming, you have to load the LaTeX-package
20266 \begin_layout Plain Layout
20267 LaTeX-packages ! hyperref
20272 in the document preamble with
20275 \begin_layout Standard
20280 usepackage[pdfborder={0 0 0}]{hyperref}
20281 \begin_inset Newline newline
20297 \begin_layout Standard
20302 is used to link cross-references in the DVI- and PDF-output, this means
20303 that the reader of your document will be able to click on a table of content
20304 (TOC) entry or on a reference and he will be shown the referenced document
20310 also creates PDF-bookmarks for every section of your document to make it
20311 easier for readers to navigate through the document.
20312 This is also used in this document but when you have a look in the document
20313 preamble you will find various options in the load command of
20318 To learn more about the
20322 package, we refer to its documentation
20323 \begin_inset CommandInset citation
20332 \begin_layout Standard
20333 \begin_inset Note Greyedout
20336 \begin_layout Plain Layout
20341 Automatic reference naming cannot be used when you use cross-references
20345 \begin_inset Space ~
20350 style, described in section
20351 \begin_inset Space ~
20355 \begin_inset CommandInset ref
20357 reference "sub:Cross-Reference-Formats"
20369 \begin_layout Subsection
20371 \begin_inset CommandInset label
20373 name "sub:Reference-Position"
20381 \begin_layout Plain Layout
20382 References ! Reference Position
20390 \begin_layout Standard
20399 \begin_layout Plain Layout
20400 LaTeX-packages ! hyperref
20405 to link cross-references in the output, you will see that clicking on an
20406 image float reference jumps to the image label.
20407 The caption will be the first text part on the screen, so that you cannot
20408 see the image without scrolling.
20409 This is because the reference link anchor is placed at the position of
20411 With the use of the package
20419 \begin_layout Plain Layout
20420 LaTeX-packages ! hypcap
20425 , which is part of the LaTeX-package
20433 \begin_layout Plain Layout
20434 LaTeX-packages ! oberdiek
20439 , the link anchor is placed at the beginning of a float.
20440 To use this feature for figure floats, load
20444 in the document preamble with the line
20447 \begin_layout Standard
20452 usepackage[figure]{hypcap}
20455 \begin_layout Standard
20460 for all floats but this isn't recommended for stability reasons.
20461 For more informations, have a look at
20466 \begin_inset CommandInset citation
20475 \begin_layout Standard
20476 \begin_inset Note Greyedout
20479 \begin_layout Plain Layout
20488 must be loaded after
20492 in the document preamble.
20500 \begin_layout Standard
20501 \begin_inset Note Greyedout
20504 \begin_layout Plain Layout
20513 has no effect for references to subfigures.
20521 \begin_layout Section
20523 \begin_inset CommandInset label
20525 name "sec:Float-Placement"
20533 \begin_layout Plain Layout
20542 \begin_layout Standard
20543 Right-clicking on a float-box opens a dialog where you can alter the placement
20544 options that LaTeX uses for positioning the float.
20545 \begin_inset Newline newline
20551 \begin_inset Space ~
20556 is only useful for two-column documents: If you select it, the float will
20557 span across both columns on the page instead of being confined to just
20559 \begin_inset Newline newline
20565 \begin_inset Space ~
20570 is used to rotate floats, see section
20571 \begin_inset CommandInset ref
20573 reference "sec:Rotated-Floats"
20580 \begin_layout Standard
20581 You can use one ore more of the following options in the float dialog to
20582 set the placement for a particular float when you uncheck the option
20585 \begin_inset Space ~
20589 \begin_inset Space ~
20597 \begin_layout Description
20599 \begin_inset Space ~
20603 \begin_inset Space ~
20606 possible try to place the float on the position where it is inserted
20609 \begin_layout Description
20611 \begin_inset Space ~
20615 \begin_inset Space ~
20618 page try to place the float on the top of the current page
20621 \begin_layout Description
20623 \begin_inset Space ~
20627 \begin_inset Space ~
20630 page try to place the float on the bottom of the current page
20633 \begin_layout Description
20635 \begin_inset Space ~
20639 \begin_inset Space ~
20642 floats try to place the float on an own page
20645 \begin_layout Standard
20646 The order of the above option is
20651 That means, if you use the default placement, LaTeX will first try out
20655 \begin_inset Space ~
20659 \begin_inset Space ~
20667 \begin_inset Space ~
20671 \begin_inset Space ~
20676 , and then the others.
20677 If you don't use the default, LaTeX will try only the checked options but
20679 If none of the 4 placements are possible the procedure is internally repeated
20680 but it is tried to put the float on the following page.
20683 \begin_layout Standard
20684 By default, each option has its own rules:
20687 \begin_layout Labeling
20688 \labelwidthstring 00.00.0000
20692 \begin_inset Space ~
20696 \begin_inset Space ~
20701 only floats occupying less than 70
20702 \begin_inset Space \thinspace{}
20705 % of the page can be placed at the top of a page (
20714 \begin_layout Labeling
20715 \labelwidthstring 00.00.0000
20719 \begin_inset Space ~
20723 \begin_inset Space ~
20728 : only floats occupying less than 30
20729 \begin_inset Space \thinspace{}
20732 % of the page can be placed at the bottom of a page.
20742 \begin_layout Labeling
20743 \labelwidthstring 00.00.0000
20747 \begin_inset Space ~
20751 \begin_inset Space ~
20756 : only if more than 50
20757 \begin_inset Space \thinspace{}
20760 % of the page are occupied by floats, several floats can be set together
20771 \begin_layout Standard
20772 If you don't like these rules, you can ignore them by using the additional
20776 \begin_inset Space ~
20780 \begin_inset Space ~
20786 \begin_inset Newline newline
20789 You can also redefine the rules with LaTeX-commands that are given in parenthese
20790 s behind the rules description above.
20791 To increase for example the often too small default of the bottom-rule
20793 \begin_inset Space \thinspace{}
20796 % of the page, add this line to your document preamble:
20799 \begin_layout Standard
20806 bottomfraction}{0.5}
20809 \begin_layout Standard
20810 Sometimes you might need, under all circumstances, a float to be placed
20811 exactly at the position where it is inserted.
20812 For this case you can use the option
20815 \begin_inset Space ~
20821 Use this option very rarely and only if the document is nearly ready to
20823 Because the float is then no longer able to
20824 \begin_inset Quotes eld
20828 \begin_inset Quotes erd
20831 when you change your document and this will often destroy the page layout.
20834 \begin_layout Standard
20835 There are no placement options for text wrap floats, because they are always
20836 surrounded by the text of a certain paragraph.
20837 \begin_inset VSpace bigskip
20843 \begin_layout Standard
20844 Sometimes you have the problem that a float is placed at the top of a page
20845 while its corresponding section starts at the middle of the page, so that
20846 the reader could think the float is part of the previous section.
20847 To avoid this the LaTeX-command
20854 It suppresses a given float placement for the page where it is inserted
20855 and can therefore be used to avoid that floats could be set before a section
20857 To get this, add these commands to your document preamble:
20860 \begin_layout Standard
20870 \begin_inset Newline newline
20884 \begin_layout Standard
20885 You can define the same for all section headings, like chapters and subsections.
20886 This definition is not recommended to be used for small text parts like
20887 subsubsections because LaTeX may then have problems to find a suitable
20891 \begin_layout Standard
20892 \begin_inset VSpace bigskip
20895 In some cases it is required to have all figures/tables at the end of the
20897 For this purpose the LaTeX-package
20905 \begin_layout Plain Layout
20906 LaTeX-packages ! endfloat
20912 It puts all figure and table floats at the end of the document into own
20914 At the original float position a text hint like
20915 \begin_inset Quotes eld
20921 \begin_inset Space ~
20927 \begin_inset Quotes erd
20931 The endfloat-package is loaded in the preamble with the line
20934 \begin_layout Standard
20939 usepackage[options]{endfloat}
20942 \begin_layout Standard
20943 There are various package options to format the created figure/table sections.
20944 For more information we refer to the
20949 \begin_inset CommandInset citation
20956 \begin_inset Newline newline
20960 \begin_inset Note Greyedout
20963 \begin_layout Plain Layout
20968 doesn't provide an automatic translation for the text hint, you have to
20969 do this manually, see section
20970 \begin_inset Space ~
20974 \begin_inset CommandInset citation
20986 \begin_inset Newline newline
20990 \begin_inset Note Greyedout
20993 \begin_layout Plain Layout
20998 There is currently a bug in
21002 when the caption contains a German
21003 \begin_inset Quotes eld
21007 \begin_inset Quotes erd
21011 Use in this case the command
21012 \begin_inset Quotes eld
21022 \begin_inset Quotes erd
21025 in TeX-Code instead of
21026 \begin_inset Quotes eld
21030 \begin_inset Quotes erd
21041 \begin_layout Standard
21042 \begin_inset VSpace bigskip
21045 For more details about float placements, have a look at LaTeX books,
21046 \begin_inset CommandInset citation
21048 key "latexcompanion,latexguide,latexbook"
21055 \begin_layout Section
21057 \begin_inset CommandInset label
21059 name "sec:Rotated-Floats"
21067 \begin_layout Plain Layout
21076 \begin_layout Standard
21077 Especially for wide tables you might have floats rotated.
21078 To rotate a whole float including the caption, right-click on the float-box
21082 \begin_inset Space ~
21090 \begin_layout Standard
21091 Rotated floats are always placed on its own page (or column, when you have
21092 a two-column document).
21093 They are rotated so that you can read them from the outside margin.
21094 To force a certain rotation direction for all pages, you can add either
21103 to the document class options.
21106 \begin_layout Standard
21107 Referencing rotated floats is the same like for normal floats, the caption
21108 format is also the same: Table
21109 \begin_inset Space ~
21113 \begin_inset CommandInset ref
21115 reference "tab:Rotated-table"
21119 is an example of a rotated table float.
21122 \begin_layout Standard
21123 \begin_inset Note Greyedout
21126 \begin_layout Plain Layout
21131 Not all DVI-viewers are able to display rotated floats.
21139 \begin_layout Standard
21140 \begin_inset Float table
21145 \begin_layout Plain Layout
21146 \begin_inset Caption
21148 \begin_layout Plain Layout
21149 \begin_inset CommandInset label
21151 name "tab:Rotated-table"
21163 \begin_layout Plain Layout
21165 \begin_inset Tabular
21166 <lyxtabular version="3" rows="1" columns="5">
21168 <column alignment="center" valignment="top" width="0">
21169 <column alignment="center" valignment="top" width="0">
21170 <column alignment="center" valignment="top" width="0">
21171 <column alignment="center" valignment="top" width="0">
21172 <column alignment="center" valignment="top" width="0">
21174 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21177 \begin_layout Plain Layout
21183 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21186 \begin_layout Plain Layout
21192 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21195 \begin_layout Plain Layout
21201 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21204 \begin_layout Plain Layout
21210 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21213 \begin_layout Plain Layout
21232 \begin_layout Section
21233 Floats Side by Side
21237 \begin_layout Plain Layout
21238 Floats ! Side by side
21246 \begin_layout Standard
21247 To place floats side by side, like for Figure
21248 \begin_inset Space ~
21252 \begin_inset CommandInset ref
21254 reference "fig:Float-left"
21259 \begin_inset CommandInset ref
21261 reference "fig:Float-right"
21270 In it two minipage boxes are inserted.
21274 \begin_layout Plain Layout
21275 Minipages are explained in section
21276 \begin_inset Space ~
21280 \begin_inset CommandInset ref
21282 reference "sec:Minipages"
21291 The width is set to 45
21292 \begin_inset Space \thinspace{}
21296 \begin_inset Space \thinspace{}
21299 column% and the box alignment to
21304 The minipage boxes contain the image and the caption in the same way as
21305 they are in a float.
21306 The only difference is that the image unit
21309 \begin_inset Space ~
21313 \begin_inset Space ~
21318 is now calculated according to the width of the minipage boxes.
21321 \begin_layout Standard
21322 \begin_inset Float figure
21327 \begin_layout Plain Layout
21328 \begin_inset Box Frameless
21337 height_special "totalheight"
21340 \begin_layout Plain Layout
21342 \begin_inset Graphics
21343 filename clipart/mobius.eps
21346 scaleBeforeRotation
21353 \begin_layout Plain Layout
21354 \begin_inset Caption
21356 \begin_layout Plain Layout
21357 \begin_inset CommandInset label
21359 name "fig:Float-left"
21363 Float on the left side.
21374 \begin_inset Space \hfill{}
21378 \begin_inset Box Frameless
21387 height_special "totalheight"
21390 \begin_layout Plain Layout
21392 \begin_inset Graphics
21393 filename clipart/platypus.eps
21396 scaleBeforeRotation
21403 \begin_layout Plain Layout
21404 \begin_inset Caption
21406 \begin_layout Plain Layout
21407 \begin_inset CommandInset label
21409 name "fig:Float-right"
21413 Float on the right side.
21426 \begin_layout Plain Layout
21435 \begin_layout Section
21440 \begin_layout Plain Layout
21441 Caption ! Formatting
21450 \begin_layout Plain Layout
21451 Floats ! Caption Formatting
21460 \begin_layout Plain Layout
21461 LaTeX-packages ! caption
21467 \begin_inset CommandInset label
21469 name "sec:Caption-Formatting"
21476 \begin_layout Standard
21481 environment is the default paragraph environment for
21486 On the LyX screen captions appear as label, e.
21487 \begin_inset Space \thinspace{}
21491 \begin_inset Space ~
21495 \begin_inset Quotes eld
21503 \begin_inset Quotes erd
21506 followed by the caption text.
21508 \begin_inset Quotes eld
21512 \begin_inset Quotes erd
21515 is the actual reference number.
21516 By default the label and the number are in the same font as the caption
21517 text and a colon follows the number to divide the label from the text.
21518 This caption format is not suitable for all document formats.
21522 \begin_layout Standard
21523 To change the default caption format, load the LaTeX-package
21531 \begin_layout Plain Layout
21532 LaTeX-packages ! caption
21537 in the document preamble with this line:
21540 \begin_layout Standard
21545 usepackage[format definition]{caption}
21548 \begin_layout Standard
21549 To have for example the label and the number in sans-serif bold font and
21550 the table captions always above the table like in this document, use the
21554 \begin_layout Standard
21559 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
21562 \begin_layout Standard
21563 You can also define different caption formats for the different float types.
21564 In this case load the
21568 package without format specific options and define the different formats
21569 with the help of the command
21572 \begin_layout Standard
21577 captionsetup[float type]{format definition}
21580 \begin_layout Standard
21581 in the document preamble.
21582 For example the caption formats of Figure
21583 \begin_inset Space ~
21587 \begin_inset CommandInset ref
21589 reference "fig:This-is-an-fig"
21594 \begin_inset Space ~
21598 \begin_inset CommandInset ref
21600 reference "tab:This-is-an-tab"
21604 can be created using these commands in the document preamble:
21607 \begin_layout Standard
21612 usepackage[tableposition=top]{caption}
21615 \begin_inset Newline newline
21622 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
21623 \begin_inset Newline newline
21630 \begin_layout Plain Layout
21638 captionsetup[figure]
21646 \begin_inset Newline newline
21651 captionsetup[table]{labelfont={bf,sf}}
21654 \begin_layout Standard
21655 \begin_inset Note Greyedout
21658 \begin_layout Plain Layout
21667 has no effect when a
21675 \begin_layout Plain Layout
21676 LaTeX-packages ! koma-script
21681 document class is used.
21682 In this case the document class option
21694 \begin_layout Standard
21695 For more information about the package
21699 we refer to its documentation
21700 \begin_inset CommandInset citation
21702 key "caption,caption-de"
21709 \begin_layout Standard
21710 To change the label name from e.g.
21712 \begin_inset Quotes eld
21716 \begin_inset Quotes erd
21720 \begin_inset Quotes eld
21724 \begin_inset Quotes erd
21727 use this preamble command:
21730 \begin_layout Standard
21737 fnum@figure}{Image~
21742 \begin_layout Standard
21749 inserts the figure number and
21752 \begin_inset Quotes eld
21758 \begin_inset Quotes erd
21761 creates a protected space.
21764 \begin_layout Standard
21765 \begin_inset VSpace bigskip
21776 \begin_layout Plain Layout
21777 LaTeX-packages ! koma-script
21784 article (koma-script)
21792 letter (koma-script)
21796 report (koma-script)
21799 \begin_inset Space \thinspace{}
21802 ), you can alternatively to the
21810 's built-in command
21817 For example, to have the caption label in bold, add this command to your
21821 \begin_layout Standard
21826 setkomafont{captionlabel}{
21831 \begin_layout Standard
21832 For more information about
21843 \begin_inset CommandInset citation
21852 \begin_layout Standard
21856 \begin_layout Plain Layout
21860 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
21867 \begin_inset Note Note
21870 \begin_layout Plain Layout
21871 The caption format is changed only for this example.
21879 \begin_layout Standard
21880 \begin_inset Float figure
21886 \begin_layout Plain Layout
21888 \begin_inset Graphics
21889 filename clipart/mobius.eps
21892 scaleBeforeRotation
21899 \begin_layout Plain Layout
21900 \begin_inset Caption
21902 \begin_layout Plain Layout
21903 \begin_inset CommandInset label
21905 name "fig:This-is-an-fig"
21909 This is an example figure caption that is longer than one line to show the
21910 different caption format.
21911 Here a self-defined caption format is used.
21924 \begin_layout Standard
21928 \begin_layout Plain Layout
21932 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
21941 \begin_layout Standard
21942 \begin_inset Float table
21948 \begin_layout Plain Layout
21949 \begin_inset Caption
21951 \begin_layout Plain Layout
21952 \begin_inset CommandInset label
21954 name "tab:This-is-an-tab"
21958 This is an example table caption that is longer than one line to show the
21959 different caption format.
21960 Here the standard caption format for tables in this document is used.
21968 \begin_layout Plain Layout
21970 \begin_inset Tabular
21971 <lyxtabular version="3" rows="1" columns="5">
21973 <column alignment="center" valignment="top" width="0">
21974 <column alignment="center" valignment="top" width="0">
21975 <column alignment="center" valignment="top" width="0">
21976 <column alignment="center" valignment="top" width="0">
21977 <column alignment="center" valignment="top" width="0">
21979 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21982 \begin_layout Plain Layout
21988 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21991 \begin_layout Plain Layout
21997 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22000 \begin_layout Plain Layout
22006 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22009 \begin_layout Plain Layout
22015 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22018 \begin_layout Plain Layout
22037 \begin_layout Section
22042 \begin_layout Plain Layout
22043 Caption ! Placement
22052 \begin_layout Plain Layout
22053 Floats ! Caption Placement
22059 \begin_inset CommandInset label
22061 name "sec:Caption-Placement"
22068 \begin_layout Standard
22069 The common caption placement rule is:
22072 \begin_layout Description
22073 Figure: Caption is set below the figure
22076 \begin_layout Description
22077 Table: Caption is set above the table
22080 \begin_layout Standard
22081 Having the caption above the table is unfortunately not supported in LaTeX's
22083 That means if you are using the document classes
22099 there will be no space between the caption and the table.
22100 To insert the needed space, add the following option to the load command
22101 of the LaTeX-package
22105 in your document preamble
22109 \begin_layout Plain Layout
22111 \begin_inset Space ~
22115 \begin_inset CommandInset ref
22117 reference "sec:Caption-Formatting"
22121 for more information of the package
22133 \begin_layout Standard
22139 \begin_layout Standard
22148 \begin_layout Plain Layout
22149 LaTeX-packages ! koma-script
22156 article (koma-script)
22164 letter (koma-script)
22168 report (koma-script)
22171 \begin_inset Space \thinspace{}
22174 ), you can alternatively to the
22178 package set the document class option
22185 \begin_layout Standard
22186 \begin_inset VSpace bigskip
22189 It is also possible to set the caption beside a figure or table.
22190 To get this the LaTeX-package
22198 \begin_layout Plain Layout
22199 LaTeX-packages ! sidecap
22204 has to be loaded in the document preamble with the line
22207 \begin_layout Standard
22212 usepackage[option]{sidecap}
22215 \begin_layout Standard
22216 If you set no option, the caption is placed on the side of the outer page
22217 margin -- to the right on odd pages, to the left on even pages.
22218 You can change the placement to inner margin with the option
22223 To force the placement always to the right or left, use the option
22234 \begin_layout Standard
22238 \begin_layout Plain Layout
22248 \begin_inset Note Note
22251 \begin_layout Plain Layout
22252 The following section will only be displayed when the LaTeX-package
22264 \begin_layout Standard
22265 To place in LyX the caption of a float on the side, it is necessary to add
22266 these commands to the document preamble:
22269 \begin_layout Standard
22275 \begin_layout Standard
22283 \begin_inset Newline newline
22290 \begin_layout Plain Layout
22306 \begin_inset Newline newline
22313 \begin_layout Plain Layout
22329 \begin_inset Newline newline
22336 \begin_layout Plain Layout
22347 renewenvironment{table}{
22354 \begin_layout Standard
22362 \begin_inset Newline newline
22369 \begin_layout Plain Layout
22385 \begin_inset Newline newline
22392 \begin_layout Plain Layout
22410 \begin_layout Standard
22418 \begin_inset Newline newline
22425 \begin_layout Plain Layout
22441 \begin_inset Newline newline
22448 \begin_layout Plain Layout
22464 \begin_inset Newline newline
22471 \begin_layout Plain Layout
22482 renewenvironment{figure}{
22489 \begin_layout Standard
22497 \begin_inset Newline newline
22504 \begin_layout Plain Layout
22520 \begin_inset Newline newline
22527 \begin_layout Plain Layout
22545 \begin_layout Standard
22551 \begin_layout Standard
22552 The commands allow you to redefine the floats so that the caption is set
22554 For figure floats use the command
22557 \begin_layout Standard
22565 \begin_layout Standard
22566 in TeX-Code before the float.
22567 Behind the float insert the command
22570 \begin_layout Standard
22578 \begin_layout Standard
22579 in TeX-Code to get back to the original float definition.
22582 \begin_layout Standard
22583 For table floats use the corresponding commands
22586 \begin_layout Standard
22600 \begin_layout Standard
22602 \begin_inset Space ~
22606 \begin_inset CommandInset ref
22608 reference "fig:cap-beside-fig"
22613 \begin_inset Space ~
22617 \begin_inset CommandInset ref
22619 reference "tab:cap-beside-tab"
22623 are examples where the caption is set beside.
22626 \begin_layout Standard
22627 You can see in the examples that the caption text appears at the top of
22628 the floats for table floats and at the bottom for figure floats.
22629 To change this, you can use the command
22632 \begin_layout Standard
22637 sidecaptionvpos{float type}{placement}
22640 \begin_layout Standard
22641 in the document preamble or in TeX-Code before the float.
22642 The float type is either
22650 , the placement can be
22651 \begin_inset Quotes eld
22659 \begin_inset Quotes erd
22663 \begin_inset Quotes eld
22671 \begin_inset Quotes erd
22675 \begin_inset Quotes eld
22683 \begin_inset Quotes erd
22687 To have for example the caption of figure floats vertically centered, use
22691 \begin_layout Standard
22696 sidecaptionvpos{figure}{c}
22699 \begin_layout Standard
22700 This was used for Figure
22701 \begin_inset Space ~
22705 \begin_inset CommandInset ref
22707 reference "fig:cap-beside-fig-2"
22714 \begin_layout Standard
22715 \begin_inset VSpace medskip
22718 For more information about the package
22722 we refer to its documentation
22723 \begin_inset CommandInset citation
22732 \begin_layout Standard
22733 \begin_inset Note Greyedout
22736 \begin_layout Plain Layout
22749 \begin_layout Plain Layout
22750 LaTeX-packages ! hypcap
22755 , described in section
22756 \begin_inset Space ~
22760 \begin_inset CommandInset ref
22762 reference "sub:Reference-Position"
22766 , has no effect on floats with the caption set beside.
22774 \begin_layout Standard
22778 \begin_layout Plain Layout
22790 \begin_layout Standard
22791 \begin_inset Float figure
22796 \begin_layout Plain Layout
22797 \begin_inset Graphics
22798 filename clipart/escher-lsd.eps
22800 scaleBeforeRotation
22807 \begin_layout Plain Layout
22808 \begin_inset Caption
22810 \begin_layout Plain Layout
22811 \begin_inset CommandInset label
22813 name "fig:cap-beside-fig"
22817 This is a caption beside a figure.
22830 \begin_layout Standard
22834 \begin_layout Plain Layout
22846 \begin_layout Standard
22847 \begin_inset Float table
22852 \begin_layout Plain Layout
22853 \begin_inset Caption
22855 \begin_layout Plain Layout
22856 \begin_inset CommandInset label
22858 name "tab:cap-beside-tab"
22862 This is a caption beside a table.
22870 \begin_layout Plain Layout
22871 \begin_inset Tabular
22872 <lyxtabular version="3" rows="4" columns="5">
22874 <column alignment="center" valignment="top" width="0">
22875 <column alignment="center" valignment="top" width="0">
22876 <column alignment="center" valignment="top" width="0">
22877 <column alignment="center" valignment="top" width="0">
22878 <column alignment="center" valignment="top" width="0">
22880 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22883 \begin_layout Plain Layout
22889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22892 \begin_layout Plain Layout
22898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22901 \begin_layout Plain Layout
22907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22910 \begin_layout Plain Layout
22916 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22919 \begin_layout Plain Layout
22927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22930 \begin_layout Plain Layout
22936 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22939 \begin_layout Plain Layout
22945 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22948 \begin_layout Plain Layout
22954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22957 \begin_layout Plain Layout
22963 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22966 \begin_layout Plain Layout
22974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22977 \begin_layout Plain Layout
22983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22986 \begin_layout Plain Layout
22992 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22995 \begin_layout Plain Layout
23001 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23004 \begin_layout Plain Layout
23010 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23013 \begin_layout Plain Layout
23021 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23024 \begin_layout Plain Layout
23030 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23033 \begin_layout Plain Layout
23039 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23042 \begin_layout Plain Layout
23048 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23051 \begin_layout Plain Layout
23057 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23060 \begin_layout Plain Layout
23079 \begin_layout Standard
23083 \begin_layout Plain Layout
23095 \begin_layout Standard
23099 \begin_layout Plain Layout
23103 sidecaptionvpos{figure}{c}
23109 \begin_inset Float figure
23114 \begin_layout Plain Layout
23115 \begin_inset Graphics
23116 filename clipart/escher-lsd.eps
23118 scaleBeforeRotation
23125 \begin_layout Plain Layout
23126 \begin_inset Caption
23128 \begin_layout Plain Layout
23129 \begin_inset CommandInset label
23131 name "fig:cap-beside-fig-2"
23135 This is a vertically centered caption beside a figure.
23148 \begin_layout Standard
23152 \begin_layout Plain Layout
23164 \begin_layout Standard
23168 \begin_layout Plain Layout
23178 \begin_inset Note Note
23181 \begin_layout Plain Layout
23182 The following will be displayed when the LaTeX-package
23194 \begin_layout Standard
23195 You need to install the LaTeX-package
23199 to see the following part of this section in the output.
23202 \begin_layout Standard
23206 \begin_layout Plain Layout
23218 \begin_layout Section
23220 \begin_inset CommandInset label
23222 name "sec:Listings-of-Floats"
23230 \begin_layout Plain Layout
23231 Floats ! Float Lists
23239 \begin_layout Standard
23240 Similar to the the table of contents where the sections of the document
23241 are listed, there are listings for all float types, like the figures of
23243 You can insert them via the
23245 Insert\SpecialChar \menuseparator
23247 \begin_inset Space ~
23251 \begin_inset Space ~
23259 \begin_layout Standard
23260 The list entries are the float captions or its short title, the float number,
23261 and the page number where they appear in the document.
23264 \begin_layout Standard
23265 You can find the list of figures and tables at the end of this document.
23268 \begin_layout Chapter
23272 \begin_layout Section
23274 \begin_inset CommandInset label
23276 name "sec:LyX-Notes"
23284 \begin_layout Plain Layout
23293 \begin_layout Standard
23294 Notes are inserted with the toolbar button
23295 \begin_inset Graphics
23296 filename ../images/note-insert.png
23298 scaleBeforeRotation
23304 Insert\SpecialChar \menuseparator
23308 There are five types of notes:
23311 \begin_layout Description
23313 \begin_inset Space ~
23316 Note This note type is for internal notes that won't appear in the output.
23317 Its note-box looks like this:
23318 \begin_inset Newline newline
23322 \begin_inset Newline newline
23326 \begin_inset Graphics
23327 filename clipart/LyXNoteImageQt4.png
23330 scaleBeforeRotation
23335 \begin_inset Note Note
23338 \begin_layout Plain Layout
23339 This is text in a note box that doesn't appear in the output.
23347 \begin_layout Description
23348 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
23349 ent, when you export the document to LaTeX via the menu
23351 File\SpecialChar \menuseparator
23352 Export\SpecialChar \menuseparator
23353 LaTeX (pdflatex) / (plain)
23356 Its note-box looks like this:
23357 \begin_inset Newline newline
23361 \begin_inset Newline newline
23365 \begin_inset Graphics
23366 filename clipart/CommentNoteImageQt4.png
23369 scaleBeforeRotation
23374 \begin_inset Note Comment
23377 \begin_layout Plain Layout
23378 This is text in a note box that only appears as comment in LaTeX-files.
23386 \begin_layout Description
23388 \begin_inset Space ~
23391 Out This note will appear in the output as grey text.
23392 Its note-box looks like this:
23393 \begin_inset Newline newline
23397 \begin_inset Newline newline
23401 \begin_inset Graphics
23402 filename clipart/GreyedOutNoteImageQt4.png
23405 scaleBeforeRotation
23410 \begin_inset Newline newline
23417 \begin_layout Plain Layout
23421 renewenvironment{lyxgreyedout}
23424 \begin_layout Plain Layout
23428 textcolor[gray]{0.8}
23438 \begin_inset Note Greyedout
23441 \begin_layout Plain Layout
23446 \begin_layout Plain Layout
23447 This is an example footnote within a greyed out note.
23452 of a comment that appears in the output as grey text.
23461 \begin_layout Plain Layout
23465 renewenvironment{lyxgreyedout}
23468 \begin_layout Plain Layout
23482 \begin_inset Note Note
23485 \begin_layout Plain Layout
23486 The greyed out note is here redefined to show it with the original LyX definitio
23487 n because greyed out notes are redefined in the preamble of this document,
23488 as described below, to have blue text.
23494 \begin_inset Newline newline
23498 \begin_inset Newline newline
23501 As you can see in the example, the first line of greyed out notes is a bit
23502 indented and greyed out notes can have footnotes.
23505 \begin_layout Description
23506 Framed This note will appear in the output as framed text.
23507 Its note-box looks like this:
23508 \begin_inset Newline newline
23512 \begin_inset Newline newline
23516 \begin_inset Graphics
23517 filename clipart/FramedNoteImageQt4.png
23520 scaleBeforeRotation
23525 \begin_inset Box Framed
23534 height_special "totalheight"
23537 \begin_layout Plain Layout
23538 This is text in a note box that appears framed in the output.
23543 In contrary to framed boxes
23547 \begin_layout Plain Layout
23548 Framed boxes are described in section
23549 \begin_inset Space ~
23553 \begin_inset CommandInset ref
23555 reference "sec:Framed-Boxes"
23564 the frame uses always the whole text width and the note is set into its
23568 \begin_layout Description
23569 Shaded This note will appear in the output with red background color.
23570 Its note box looks like this:
23571 \begin_inset Newline newline
23575 \begin_inset Newline newline
23579 \begin_inset Graphics
23580 filename clipart/ShadedNoteImageQt4.png
23583 scaleBeforeRotation
23588 \begin_inset Box Shaded
23597 height_special "totalheight"
23600 \begin_layout Plain Layout
23601 This text in a note box appears in the output with red background.
23606 In contrary to colored boxes
23610 \begin_layout Plain Layout
23611 Colored boxes are described in section
23612 \begin_inset Space ~
23616 \begin_inset CommandInset ref
23618 reference "sec:Colored-Boxes"
23627 the note uses always the whole text width and the note is set into its
23631 \begin_layout Standard
23632 \begin_inset VSpace bigskip
23635 When you use the toolbar button
23636 \begin_inset Graphics
23637 filename ../images/note-insert.png
23639 scaleBeforeRotation
23646 \begin_inset Space ~
23652 You can switch between the five note types by right-clicking on the note-box.
23657 If you want to turn existing text into a note, mark it and click on the
23671 To change a note to text, press the backspace key when the cursor is in
23672 the first position of a note, or press the deletey key when the cursor
23673 is in the very last position of the note, respectively.
23676 \begin_layout Standard
23677 \begin_inset VSpace bigskip
23680 You can change the text color of the greyed out notes in the preamble with
23681 the following command:
23684 \begin_layout Standard
23689 renewenvironment{lyxgreyedout}
23690 \begin_inset Newline newline
23697 \begin_layout Plain Layout
23715 \begin_layout Standard
23716 The available colors and the method to define own colors is explained in
23718 \begin_inset Space ~
23722 \begin_inset CommandInset ref
23724 reference "sec:Colored-Tables"
23731 \begin_layout Standard
23732 Notes that appear in blue in this document are set using greyed out notes
23736 \begin_layout Standard
23737 \begin_inset VSpace bigskip
23743 \begin_layout Standard
23752 notes can be set in the
23759 \begin_layout Standard
23760 The default frame width for
23765 \begin_inset Space \thinspace{}
23768 pt; it can be changed by changing the size
23775 The default space between the note content and the frame is 9
23776 \begin_inset Space \thinspace{}
23779 pt; it can be changed by changing the size
23786 For example the frame appearance of the following
23790 note is set with the TeX-Code commands
23793 \begin_layout Standard
23803 \begin_layout Standard
23807 \begin_layout Plain Layout
23819 \begin_inset Box Framed
23828 height_special "totalheight"
23831 \begin_layout Plain Layout
23845 \begin_layout Plain Layout
23859 \begin_layout Standard
23860 \begin_inset VSpace bigskip
23866 \begin_layout Standard
23871 notes the default space between the note content and the note border is
23873 \begin_inset Space \thinspace{}
23876 pt; it can be changed by changing the size
23883 \begin_inset Newline newline
23886 The default background color red can be changed with the command
23890 definecolor{shadebox}
23899 command is explained in section
23900 \begin_inset Space ~
23904 \begin_inset CommandInset ref
23906 reference "sec:Colored-Tables"
23914 \begin_layout Plain Layout
23921 \SpecialChar \textcompwordmark{}
23926 requires the LaTeX-package
23930 in the preamble, see section
23931 \begin_inset Space ~
23935 \begin_inset CommandInset ref
23937 reference "sec:Colored-Boxes"
23949 \begin_layout Standard
23950 For example the appearance of the following
23954 note is set with the TeX-Code commands
23957 \begin_layout Standard
23965 \begin_inset Newline newline
23972 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
23975 \begin_layout Standard
23979 \begin_layout Plain Layout
23992 \begin_layout Plain Layout
23996 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
24002 \begin_inset Box Shaded
24011 height_special "totalheight"
24014 \begin_layout Plain Layout
24017 This is yellow text in a
24027 note with darkgreen background.
24036 \begin_layout Plain Layout
24049 \begin_layout Plain Layout
24053 definecolor{shadecolor}{rgb}{1,0,0}
24061 \begin_layout Section
24063 \begin_inset CommandInset label
24065 name "sec:Footnotes"
24073 \begin_layout Plain Layout
24083 \begin_layout Plain Layout
24092 \begin_layout Standard
24093 Footnotes can be inserted using the toolbar button
24094 \begin_inset Graphics
24095 filename ../images/footnote-insert.png
24097 scaleBeforeRotation
24103 Insert\SpecialChar \menuseparator
24115 then the following footnote-box:
24116 \begin_inset Graphics
24117 filename clipart/footnoteQt4.png
24119 scaleBeforeRotation
24127 where you can enter the footnote text.
24128 If you want to turn existing text into a footnote, mark it and click on
24150 to text, press the Backspace key when the cursor is in the first position
24159 , or press the Delete key when the cursor is in the very last position of
24171 \begin_layout Standard
24172 Here is an example footnote:
24180 \begin_layout Plain Layout
24181 \begin_inset CommandInset label
24183 name "foot:This-is-an"
24187 This is an example footnote.
24200 \begin_layout Plain Layout
24204 newcounter{MyRepeatFoot}
24207 \begin_layout Plain Layout
24211 setcounter{MyRepeatFoot}{
24221 \begin_layout Standard
24222 The footnote will appear in the output as a superscript number at the text
24223 position where the footnote box is placed.
24224 The footnote text is placed at the bottom of the current page.
24225 The footnote number is calculated by LaTeX, the numbers are consecutive.
24226 It depends on your document-class, if the footnote number is reset for
24230 \begin_layout Standard
24231 Footnotes can be referenced like floats: Insert a label into the footnote
24232 and cross-reference this label in the text as described in section
24233 \begin_inset Space ~
24237 \begin_inset CommandInset ref
24239 reference "sec:Referencing-Floats"
24244 \begin_inset Newline newline
24247 This is a cross-reference of Footnote
24248 \begin_inset Space ~
24252 \begin_inset CommandInset ref
24254 reference "foot:This-is-an"
24261 \begin_layout Standard
24262 \begin_inset VSpace defskip
24265 To use footnotes within tables, you have to use minipages, see section
24266 \begin_inset Space ~
24270 \begin_inset CommandInset ref
24272 reference "sec:Minipages"
24277 Footnotes within longtables are described in section
24278 \begin_inset Space ~
24282 \begin_inset CommandInset ref
24284 reference "sub:Footnotes-in-Longtables"
24291 \begin_layout Standard
24292 \begin_inset VSpace defskip
24295 To create only a mark for a footnote, use the command
24299 footnotemark[number]
24302 This is used when you have the same annotation several times in a text
24303 but doesn't want to print the footnote text every time.
24304 \begin_inset Newline newline
24307 As you don't know the number of the repeating footnote while you are writing
24308 the text, you have to store its number.
24309 For the following footnote mark example, these commands were inserted in
24310 TeX-Code behind Footnote
24311 \begin_inset Space ~
24315 \begin_inset CommandInset ref
24317 reference "foot:This-is-an"
24321 to store the footnote number:
24324 \begin_layout Standard
24329 newcounter{MyRepeatFoot}
24330 \begin_inset Newline newline
24335 setcounter{MyRepeatFoot}{
24340 \begin_layout Standard
24341 The footnote mark was then created with this command:
24344 \begin_layout Standard
24354 \begin_layout Standard
24355 Here is an example footnote mark:
24363 \begin_layout Plain Layout
24377 \begin_layout Subsection
24379 \begin_inset CommandInset label
24381 name "sub:Footnote-Numbering"
24389 \begin_layout Plain Layout
24390 Footnotes ! Numbering
24398 \begin_layout Standard
24399 To reset the footnote number back to 1 after each section
24401 , add this command to your document preamble:
24404 \begin_layout Standard
24409 @addtoreset{footnote}{section}
24412 \begin_layout Standard
24413 \begin_inset VSpace bigskip
24416 The following preamble command changes the footnote numbering style to small
24420 \begin_layout Standard
24432 \begin_layout Standard
24436 \begin_layout Plain Layout
24449 This is a footnote with roman numbering:
24453 \begin_layout Plain Layout
24454 This is an example footnote with roman numbering.
24462 \begin_layout Standard
24463 To change the numbering style to capital roman numerals replace in the command
24478 \begin_inset Quotes eld
24482 \begin_inset Quotes erd
24485 footnotes with capital or small Latin letters use
24499 \begin_inset Quotes eld
24503 \begin_inset Quotes erd
24506 footnotes with symbols use
24515 \begin_layout Standard
24516 \begin_inset Note Greyedout
24519 \begin_layout Plain Layout
24524 You can only number 26 footnotes with Latin letters, because this numbering
24525 is limited to single letters.
24531 \begin_inset Newline newline
24535 \begin_inset Note Greyedout
24538 \begin_layout Plain Layout
24543 You can only number 9 footnotes with symbols.
24551 \begin_layout Standard
24552 To return to the default numbering style when you changed to another one,
24565 in the command above.
24569 \begin_layout Plain Layout
24585 \begin_layout Standard
24586 \begin_inset VSpace bigskip
24592 \begin_layout Standard
24593 If you want to have footnotes numbered in the scheme
24594 \begin_inset Quotes eld
24598 \begin_inset Quotes erd
24601 , add the following command to your document preamble:
24604 \begin_layout Standard
24609 numberwithin{footnote}{chapter}
24612 \begin_layout Standard
24613 To be able to use the command
24622 \begin_inset Space ~
24627 in the document settings the option
24630 \begin_inset Space ~
24634 \begin_inset Space ~
24638 \begin_inset Space ~
24646 \begin_layout Standard
24650 \begin_layout Plain Layout
24654 numberwithin{footnote}{chapter}
24659 This is another example footnote:
24665 \begin_layout Plain Layout
24666 This is a footnote numbered in the scheme
24667 \begin_inset Quotes eld
24671 \begin_inset Quotes erd
24685 \begin_layout Plain Layout
24701 \begin_layout Standard
24702 \begin_inset Note Greyedout
24705 \begin_layout Plain Layout
24716 always prints out the footnote number as arabic number; previous redefinitions
24717 to get non-arabic numbers are overwritten.
24725 \begin_layout Standard
24726 So to get for example the scheme
24727 \begin_inset Quotes eld
24733 \begin_inset Quotes erd
24736 , use this command instead of
24745 \begin_layout Standard
24759 \begin_layout Subsection
24764 \begin_layout Plain Layout
24765 Footnotes ! Placement
24773 \begin_layout Standard
24774 If you have several footnotes in one page, they appear without vertical
24775 space between them at the bottom of the page.
24776 To make them better readable you can e.
24777 \begin_inset Space \thinspace{}
24781 \begin_inset Space ~
24785 \begin_inset Space \thinspace{}
24788 mm space with the following preamble command:
24791 \begin_layout Standard
24801 \begin_inset Newline newline
24815 \begin_layout Standard
24816 \begin_inset VSpace bigskip
24819 In a two-column document the footnotes appear at the bottom of every column,
24821 \begin_inset Space ~
24825 \begin_inset CommandInset ref
24827 reference "fig:Standard-footnote-placement"
24832 If the footnotes should only appear at the bottom of the right column,
24834 \begin_inset Space ~
24838 \begin_inset CommandInset ref
24840 reference "fig:Footnote-placement-in"
24844 , use the LaTeX-package
24852 \begin_layout Plain Layout
24853 LaTeX-packages ! ftnright
24858 with this command in the document preamble:
24861 \begin_layout Standard
24866 usepackage{ftnright}
24869 \begin_layout Standard
24870 \begin_inset Float figure
24876 \begin_layout Plain Layout
24880 \begin_layout Plain Layout
24890 \begin_inset Graphics
24891 filename clipart/without_fntright.pdf
24893 scaleBeforeRotation
24901 \begin_layout Plain Layout
24911 \begin_layout Plain Layout
24912 \begin_inset Caption
24914 \begin_layout Plain Layout
24915 \begin_inset CommandInset label
24917 name "fig:Standard-footnote-placement"
24921 Standard footnote placement in two-column documents.
24934 \begin_layout Standard
24935 \begin_inset Float figure
24941 \begin_layout Plain Layout
24945 \begin_layout Plain Layout
24955 \begin_inset Graphics
24956 filename clipart/with_fntright.pdf
24958 scaleBeforeRotation
24966 \begin_layout Plain Layout
24976 \begin_layout Plain Layout
24977 \begin_inset Caption
24979 \begin_layout Plain Layout
24980 \begin_inset CommandInset label
24982 name "fig:Footnote-placement-in"
24986 Footnote placement in two-column documents when the LaTeX-package
25003 \begin_layout Standard
25004 \begin_inset VSpace bigskip
25007 In some scientific literature it is usual to collect the footnotes and print
25008 them in a separate paragraph at the the end of a section, like in Figure
25009 \begin_inset Space ~
25013 \begin_inset CommandInset ref
25015 reference "fig:Endnotes----footnotes"
25020 They are then so called
25021 \begin_inset Quotes eld
25025 \begin_inset Quotes erd
25032 \begin_layout Plain Layout
25038 To use endnotes instead of footnotes in your document, load the LaTeX-package
25047 \begin_layout Plain Layout
25048 LaTeX-packages ! endnotes
25053 with the document preamble lines
25056 \begin_layout Standard
25061 usepackage{endnotes}
25062 \begin_inset Newline newline
25074 \begin_layout Standard
25075 To insert the collected footnotes, insert the command
25078 \begin_layout Standard
25086 \begin_layout Standard
25087 in TeX-Code at the the end of a section or chapter.
25090 \begin_layout Standard
25091 \begin_inset Float figure
25096 \begin_layout Plain Layout
25101 \begin_layout Plain Layout
25111 \begin_inset Graphics
25112 filename clipart/endnotes.pdf
25113 scaleBeforeRotation
25121 \begin_layout Plain Layout
25131 \begin_layout Plain Layout
25132 \begin_inset Caption
25134 \begin_layout Plain Layout
25135 \begin_inset CommandInset label
25137 name "fig:Endnotes----footnotes"
25141 Endnotes -- footnotes are printed in a separate paragraph at the end of
25142 sections or chapters.
25155 \begin_layout Standard
25156 \begin_inset VSpace medskip
25159 The paragraph heading for the endnotes isn't automatically translated into
25160 the document language, this must be done manually.
25161 The following preamble command translate the default English name
25162 \begin_inset Quotes eld
25166 \begin_inset Quotes erd
25169 to the German translation
25170 \begin_inset Quotes eld
25174 \begin_inset Quotes erd
25180 \begin_layout Standard
25187 notesname}{Anmerkungen}
25190 \begin_layout Standard
25191 \begin_inset VSpace medskip
25194 The numbering of endnotes can be changed like the footnote numbering as
25195 described in section
25196 \begin_inset Space ~
25200 \begin_inset CommandInset ref
25202 reference "sub:Footnote-Numbering"
25206 ; just replace the command
25219 To reset the endnote number use the command
25225 as described in section
25226 \begin_inset Space ~
25230 \begin_inset CommandInset ref
25232 reference "sub:Footnote-Numbering"
25236 and replace the command parameter
25247 \begin_layout Standard
25248 To create only a mark for an endnote, use the command
25252 endnotemark[number]
25254 similar to the command
25260 , described in section
25261 \begin_inset Space ~
25265 \begin_inset CommandInset ref
25267 reference "sec:Footnotes"
25274 \begin_layout Standard
25275 \begin_inset VSpace bigskip
25278 Footnotes can also be placed in the page margin and the footnote text alignment
25279 can be changed, see the LaTeX-package
25287 \begin_layout Plain Layout
25288 LaTeX-packages ! footmisc
25294 \begin_inset CommandInset citation
25300 for more information about this.
25303 \begin_layout Standard
25304 For various further footnote formatting issues have a look at LaTeX-books,
25306 \begin_inset CommandInset citation
25308 key "latexcompanion,latexguide,latexbook"
25315 \begin_layout Section
25320 \begin_layout Plain Layout
25321 Notes ! Margin Notes
25329 \begin_layout Standard
25330 Margin notes look and behave in LyX like footnotes.
25331 They are inserted via the menu
25333 Insert\SpecialChar \menuseparator
25335 \begin_inset Space ~
25340 or the toolbar button
25341 \begin_inset Graphics
25342 filename ../images/marginalnote-insert.png
25344 scaleBeforeRotation
25359 \begin_inset Quotes eld
25363 \begin_inset Quotes erd
25366 appears where you can enter the text of the margin note.
25369 \begin_layout Standard
25370 At the side is an example margin note.
25375 \begin_inset Marginal
25378 \begin_layout Plain Layout
25379 This is a margin note.
25387 \begin_layout Standard
25388 Margin notes appear at the right side in single-sided documents.
25389 In double-sided documents they appear in the outer margin -- left on even
25390 pages, right on odd pages.
25391 The text of margin notes is aligned opposite to the outer margin -- right-align
25392 ed when the note appears in the left margin.
25393 The first line of the margin note is placed at the position of the text
25394 line where it is inserted in the document.
25397 \begin_layout Standard
25398 \begin_inset VSpace bigskip
25401 To place the margin note in the inner margin, add the command
25404 \begin_layout Standard
25412 \begin_layout Standard
25413 in TeX-Code before a margin note.
25414 The new placement is valid for all following margin notes.
25419 \begin_layout Plain Layout
25429 \begin_inset Marginal
25432 \begin_layout Plain Layout
25433 This is a margin note in the inner margin.
25441 \begin_inset Newline newline
25447 \begin_inset Note Greyedout
25450 \begin_layout Plain Layout
25455 There is often not enough space in the inner margin so that the notes are
25456 not correctly displayed in the output.
25464 \begin_layout Standard
25465 To return to the default placement insert the command
25468 \begin_layout Standard
25476 \begin_layout Standard
25481 \begin_layout Plain Layout
25491 \begin_inset Note Greyedout
25494 \begin_layout Plain Layout
25499 The command is ignored when it is within a paragraph where also the command
25514 \begin_layout Standard
25515 \begin_inset VSpace bigskip
25522 \begin_inset Marginal
25525 \begin_layout Plain Layout
25526 AVeryLongMarginParWord that isn't hyphenated.
25534 Similar to the case described in section
25535 \begin_inset Space ~
25539 \begin_inset CommandInset ref
25541 reference "sub:Multiple-Lines-in"
25545 , long words cannot be hyphenated when they are the first word in a margin
25547 To avoid this, insert 0
25548 \begin_inset Space \thinspace{}
25551 pt horizontal space before the word
25556 \begin_inset Marginal
25559 \begin_layout Plain Layout
25560 \begin_inset Space \hspace*{}
25564 AVeryLongMarginParWord that is hyphenated.
25572 \begin_layout Standard
25573 \begin_inset VSpace bigskip
25579 \begin_layout Standard
25580 \begin_inset Note Greyedout
25583 \begin_layout Plain Layout
25588 Margin notes can normally not be used inside tables, floats, and footnotes.
25596 \begin_layout Standard
25597 \begin_inset VSpace bigskip
25603 \begin_layout Standard
25607 \begin_layout Plain Layout
25617 \begin_inset Note Note
25620 \begin_layout Plain Layout
25621 The following section will only be displayed when the LaTeX-package
25633 \begin_layout Standard
25634 This restriction can be evaded by using the LaTeX-package
25642 \begin_layout Plain Layout
25643 LaTeX-packages ! marginnote
25649 By adding these two lines to your document preamble, the command used by
25650 LyX for margin notes is redefined to use the command provided by the
25657 \begin_layout Standard
25662 usepackage{marginnote}
25663 \begin_inset Newline newline
25675 \begin_layout Standard
25676 This is also used in this document because
25680 has another useful feature: You can set a vertical offset for the note.
25681 This is often needed when too many margin notes are too close together
25682 or for a better page layout.
25683 The offset is set in LyX as TeX-Code directly behind the margin note in
25687 \begin_layout Standard
25693 \begin_layout Standard
25694 where the offset is a length with one of the units listed in Table
25695 \begin_inset Space ~
25699 \begin_inset CommandInset ref
25701 reference "tab:Units"
25706 A negative value shifts the note up, a positive value shifts it down.
25710 For example the margin note beside this text line is shifted up 1.5
25711 \begin_inset Space \thinspace{}
25714 cm with the TeX-Code-command
25715 \begin_inset Quotes eld
25725 \begin_inset Quotes erd
25729 \begin_inset Marginal
25732 \begin_layout Plain Layout
25733 This margin note is shifted up 1.5
25734 \begin_inset Space \thinspace{}
25737 cm from its original position.
25749 \begin_layout Plain Layout
25759 \begin_layout Standard
25760 \begin_inset VSpace medskip
25767 you can also change the alignment of the text in the margin note.
25768 For example the commands
25771 \begin_layout Standard
25778 raggedleftmarginnote}{
25781 \begin_inset Newline newline
25788 raggedrightmarginnote}{
25793 \begin_layout Standard
25794 set the alignment to centered.
25799 raggedleftmarginnote
25801 denotes margin notes that appear at the left side.
25808 \begin_layout Plain Layout
25814 raggedleftmarginnote}{
25819 \begin_layout Plain Layout
25825 raggedrightmarginnote}{
25833 \begin_inset Marginal
25836 \begin_layout Plain Layout
25837 The text of this margin note is centered.
25848 \begin_layout Standard
25855 raggedleftmarginnote}{
25858 \begin_inset Newline newline
25865 raggedrightmarginnote}{
25874 \begin_layout Plain Layout
25880 raggedleftmarginnote}{
25885 \begin_layout Plain Layout
25891 raggedrightmarginnote}{
25901 \begin_layout Standard
25902 \begin_inset VSpace medskip
25905 For the other features of
25909 we refer to its documentation
25910 \begin_inset CommandInset citation
25919 \begin_layout Standard
25920 \begin_inset VSpace bigskip
25923 You can adjust the layout of margin notes by changing its definition.
25924 To create for example a header for all margin notes with the underlined,
25925 sans-serif, and bold header text
25926 \begin_inset Quotes eld
25938 \begin_inset Quotes erd
25941 , add this to your document preamble:
25944 \begin_layout Standard
25954 \begin_inset Newline newline
25964 \begin_inset Newline newline
25971 \begin_layout Plain Layout
25988 underbar{Attention!}}}%
25989 \begin_inset Newline newline
25996 \begin_layout Plain Layout
26014 \begin_layout Standard
26021 \begin_layout Plain Layout
26032 \begin_layout Plain Layout
26043 \begin_layout Plain Layout
26051 underbar{Attention!}}}%
26054 \begin_layout Plain Layout
26068 \begin_inset Marginal
26071 \begin_layout Plain Layout
26072 This is a margin note with a defined heading.
26084 \begin_layout Plain Layout
26098 \begin_layout Plain Layout
26115 \begin_inset Note Note
26118 \begin_layout Plain Layout
26119 The margin note format is changed only for this example.
26127 \begin_layout Standard
26131 \begin_layout Plain Layout
26141 \begin_inset Note Note
26144 \begin_layout Plain Layout
26145 The following will be displayed when the LaTeX-package
26157 \begin_layout Standard
26158 You need to install the LaTeX-package
26162 to see the following part of this section in the output.
26165 \begin_layout Standard
26169 \begin_layout Plain Layout
26181 \begin_layout Chapter
26185 \begin_layout Section
26190 \begin_layout Plain Layout
26191 Boxes ! Introduction
26199 \begin_layout Standard
26200 Boxes are used to format a block of text.
26201 Boxes can be used to write documents with multiple languages, see section
26202 \begin_inset Space ~
26206 \begin_inset CommandInset ref
26208 reference "sec:Minipages"
26212 , to frame texts, see section
26213 \begin_inset Space ~
26217 \begin_inset CommandInset ref
26219 reference "sec:Framed-Boxes"
26223 , to prevent words to be hyphenated, see section
26224 \begin_inset Space ~
26228 \begin_inset CommandInset ref
26230 reference "sec:Prevent-Hyphenation"
26234 , to align text, see section
26235 \begin_inset Space ~
26239 \begin_inset CommandInset ref
26241 reference "sub:Vertical-Alignment"
26245 , or to set the background color of texts, see section
26246 \begin_inset Space ~
26250 \begin_inset CommandInset ref
26252 reference "sec:Colored-Boxes"
26259 \begin_layout Standard
26260 Boxes can be inserted with the menu
26262 Insert\SpecialChar \menuseparator
26265 or the toolbar button
26266 \begin_inset Graphics
26267 filename ../images/box-insert.png
26269 scaleBeforeRotation
26274 A grey box with the label
26279 \begin_inset Graphics
26280 filename clipart/BoxInsetDefaultQt4.png
26282 scaleBeforeRotation
26286 , will be inserted.
26287 The box type can be specified by right-clicking on the box.
26288 The appearing box dialog offers the
26291 \begin_inset Space ~
26309 is the default for new boxes and is explained in section
26310 \begin_inset Space ~
26314 \begin_inset CommandInset ref
26316 reference "sec:Minipages"
26324 is described in section
26325 \begin_inset Space ~
26329 \begin_inset CommandInset ref
26331 reference "sec:Parboxes"
26338 \begin_layout Standard
26339 Boxes aren't numbered and can therefore not be referenced like floats or
26343 \begin_layout Standard
26344 \begin_inset Note Greyedout
26347 \begin_layout Plain Layout
26352 Boxes must not be the item in an
26368 \begin_layout Standard
26369 \begin_inset Note Greyedout
26372 \begin_layout Plain Layout
26377 For an unknown reason you can only set the
26380 \begin_inset Space ~
26389 when you use a framed box.
26393 \begin_inset Space ~
26398 type and without frames are explained in section
26399 \begin_inset Space ~
26403 \begin_inset CommandInset ref
26405 reference "sec:Prevent-Hyphenation"
26417 \begin_layout Section
26419 \begin_inset CommandInset label
26421 name "sec:Box-Dialog"
26429 \begin_layout Plain Layout
26438 \begin_layout Subsection
26443 \begin_layout Plain Layout
26452 \begin_layout Standard
26453 In the box dialog you can adjust the box geometry in the fields
26462 The available units for the geometry are explained in Table
26463 \begin_inset Space ~
26467 \begin_inset CommandInset ref
26469 reference "tab:Units"
26478 offers the following additional sizes:
26481 \begin_layout Description
26482 Depth This is the plain text
26483 \begin_inset Quotes eld
26487 \begin_inset Quotes erd
26491 It ignores the total depth when there are multiple text lines in the box:
26492 \begin_inset Newline newline
26496 \begin_inset Newline newline
26500 \begin_inset Newline newline
26504 \begin_inset Box Boxed
26513 height_special "depth"
26516 \begin_layout Plain Layout
26518 Box height set to 1
26519 \begin_inset Space \thinspace{}
26528 \begin_inset Newline newline
26532 \begin_inset Newline newline
26538 \begin_layout Description
26539 Height This is the heigth of the text that is inside the box.
26541 \begin_inset Space \thinspace{}
26545 \begin_inset Space ~
26548 2 for this size will set the box heigth to 2 times the text height:
26549 \begin_inset Box Boxed
26558 height_special "height"
26561 \begin_layout Plain Layout
26563 Box height set to 2
26564 \begin_inset Space \thinspace{}
26575 \begin_layout Description
26577 \begin_inset Space ~
26580 Height This is the Height
26581 \begin_inset Space \thinspace{}
26585 \begin_inset Space \thinspace{}
26589 \begin_inset Box Boxed
26598 height_special "totalheight"
26601 \begin_layout Plain Layout
26603 Box height set to 1
26604 \begin_inset Space \thinspace{}
26608 \begin_inset Space ~
26619 \begin_layout Description
26620 Width This sets the width of the box as heigth:
26621 \begin_inset Box Boxed
26630 height_special "width"
26633 \begin_layout Plain Layout
26635 Box height set to 1
26636 \begin_inset Space \thinspace{}
26647 \begin_layout Subsection
26652 \begin_layout Plain Layout
26661 \begin_layout Standard
26662 When you have chosen an
26665 \begin_inset Space ~
26670 , the vertical box alignment can be:
26673 \begin_layout Description
26674 Top This is an example text line.
26676 \begin_inset Box Boxed
26685 height_special "totalheight"
26688 \begin_layout Plain Layout
26690 This box is top-aligned.
26695 This is an example text line.
26698 \begin_layout Description
26699 Middle This is an example text line.
26701 \begin_inset Box Boxed
26710 height_special "totalheight"
26713 \begin_layout Plain Layout
26715 This box is middle-aligned.
26720 This is an example text line.
26723 \begin_layout Description
26724 Bottom This is an example text line.
26726 \begin_inset Box Boxed
26735 height_special "totalheight"
26738 \begin_layout Plain Layout
26740 This box is bottom-aligned.
26745 This is an example text line.
26748 \begin_layout Standard
26749 \begin_inset Note Greyedout
26752 \begin_layout Plain Layout
26757 The vertical box aligment can be lost in the output when you have two boxes
26758 in a line and one has e.
26759 \begin_inset Space \thinspace{}
26763 \begin_inset Space ~
26766 a shadow and the other one not.
26774 \begin_layout Standard
26775 The horizontal box alignment can be set via LyX's paragraph dialog when
26776 you set the box into its own paragraph.
26779 \begin_layout Standard
26780 \begin_inset VSpace bigskip
26783 When you have chosen an
26786 \begin_inset Space ~
26791 , the box content can be vertical aligned to:
26794 \begin_layout Description
26795 top This is an example text line.
26797 \begin_inset Box Boxed
26806 height_special "totalheight"
26809 \begin_layout Plain Layout
26811 This box text is top-aligned.
26816 This is an example text line.
26819 \begin_layout Description
26820 middle This is an example text line.
26822 \begin_inset Box Boxed
26831 height_special "totalheight"
26834 \begin_layout Plain Layout
26836 This box text is middle-aligned.
26841 This is an example text line.
26844 \begin_layout Description
26845 bottom This is an example text line.
26847 \begin_inset Box Boxed
26856 height_special "totalheight"
26859 \begin_layout Plain Layout
26861 This box text is bottom-aligned.
26866 This is an example text line.
26869 \begin_layout Description
26870 stretch This is an example text line.
26872 \begin_inset Box Boxed
26881 height_special "totalheight"
26884 \begin_layout Plain Layout
26889 \begin_layout Plain Layout
26894 \begin_layout Plain Layout
26901 This is an example text line.
26904 \begin_layout Standard
26905 To stretch the box content, it must consist of more than one paragraph.
26906 In the example above every text line is in an own paragraph.
26909 \begin_layout Standard
26910 \begin_inset VSpace bigskip
26913 To align the box content horizontally you can use LyX's paragraph dialog
26914 when you have chosen an
26917 \begin_inset Space ~
26925 \begin_layout Standard
26927 \begin_inset Box Boxed
26936 height_special "totalheight"
26939 \begin_layout Plain Layout
26944 \begin_layout Plain Layout
26949 \begin_layout Plain Layout
26959 \begin_layout Standard
26960 If you haven't set an
26963 \begin_inset Space ~
26968 , you can align the box content horizontally in the box dialog.
26971 \begin_layout Standard
26973 \begin_inset Box Boxed
26982 height_special "totalheight"
26985 \begin_layout Plain Layout
26987 This box text is horizontally stretched.
26995 \begin_layout Section
26997 \begin_inset CommandInset label
26999 name "sec:Framed-Boxes"
27007 \begin_layout Plain Layout
27016 \begin_layout Standard
27017 The frame style of the box can be specified in the box-dialog in the drop-down
27023 The following frame types are possible:
27026 \begin_layout Description
27028 \begin_inset Space ~
27031 box This draws a rectangle frame around the box.
27032 The frame line thickness has the size of
27040 \begin_inset Box Boxed
27049 height_special "totalheight"
27052 \begin_layout Plain Layout
27062 \begin_layout Description
27064 \begin_inset Space ~
27068 \begin_inset Space ~
27071 thin This draws an oval frame around the box.
27072 The frame line thickness has the size 0.4
27073 \begin_inset Space \thinspace{}
27078 \begin_inset Box ovalbox
27087 height_special "totalheight"
27090 \begin_layout Plain Layout
27100 \begin_layout Description
27102 \begin_inset Space ~
27106 \begin_inset Space ~
27109 thick This draws an oval frame around the box.
27110 The frame line thickness has the size 0.8
27111 \begin_inset Space \thinspace{}
27116 \begin_inset Box Ovalbox
27125 height_special "totalheight"
27128 \begin_layout Plain Layout
27138 \begin_layout Description
27140 \begin_inset Space ~
27143 box This draws a rectangle frame with a shadow around the box.
27144 The frame line thickness has the size of
27150 , the shadow has a width of 4
27151 \begin_inset Space \thinspace{}
27156 \begin_inset Box Shadowbox
27165 height_special "totalheight"
27168 \begin_layout Plain Layout
27178 \begin_layout Description
27180 \begin_inset Space ~
27183 box This draws a double-line rectangle frame around the box.
27184 The line thickness of the inner frame is 0.75
27185 \begin_inset Space \thinspace{}
27194 , the thickness of the outer frame is 1.5
27195 \begin_inset Space \thinspace{}
27205 The distance between the lines is 1.5
27206 \begin_inset Space \thinspace{}
27216 \begin_inset Space \thinspace{}
27220 \begin_inset Space \thinspace{}
27224 \begin_inset Space \thinspace{}
27229 \begin_inset Box Doublebox
27238 height_special "totalheight"
27241 \begin_layout Plain Layout
27251 \begin_layout Standard
27252 \begin_inset VSpace bigskip
27255 LyX's box label will change to the used frame style when you set a frame.
27256 To be able to use the different frame styles, the LaTeX-package
27264 \begin_layout Plain Layout
27265 LaTeX-packages ! fancybox
27273 \begin_layout Standard
27274 \begin_inset VSpace bigskip
27277 The default value for the size
27284 \begin_inset Space \thinspace{}
27288 It can be changed with the following command in TeX-Code to e.
27289 \begin_inset Space \thinspace{}
27293 \begin_inset Space ~
27297 \begin_inset Space \thinspace{}
27303 \begin_layout Standard
27313 \begin_layout Standard
27317 \begin_layout Plain Layout
27329 \begin_inset Box Boxed
27338 height_special "totalheight"
27341 \begin_layout Plain Layout
27343 Rectangular box with
27350 \begin_inset Space \thinspace{}
27354 \begin_inset Space \thinspace{}
27358 \begin_inset Space \thinspace{}
27370 \begin_layout Plain Layout
27384 \begin_layout Standard
27385 \begin_inset VSpace bigskip
27388 The space between the frame and the box content is for all frame styles
27390 \begin_inset Space \thinspace{}
27394 You can change it by setting the length
27401 For example the command
27404 \begin_layout Standard
27414 \begin_layout Standard
27415 sets the value to 10
27416 \begin_inset Space \thinspace{}
27419 pt, like for the following box:
27422 \begin_layout Standard
27426 \begin_layout Plain Layout
27438 \begin_inset Box Boxed
27447 height_special "totalheight"
27450 \begin_layout Plain Layout
27452 Rectangular box with
27459 \begin_inset Space \thinspace{}
27463 \begin_inset Space \thinspace{}
27467 \begin_inset Space \thinspace{}
27479 \begin_layout Plain Layout
27493 \begin_layout Standard
27494 \begin_inset VSpace bigskip
27497 The diameter of the round corners of the oval boxes can be set with the
27508 \begin_layout Standard
27516 \begin_layout Standard
27517 sets the diameter to 1
27518 \begin_inset Space \thinspace{}
27525 \begin_layout Standard
27533 \begin_layout Standard
27534 sets the diameter to
27537 \begin_inset Space \thinspace{}
27541 \begin_inset Space \thinspace{}
27544 minimum(width and heigth of box)
27556 \begin_layout Standard
27560 \begin_layout Plain Layout
27570 \begin_inset Box Ovalbox
27579 height_special "totalheight"
27582 \begin_layout Plain Layout
27591 \begin_inset Space \thinspace{}
27595 \begin_inset Space \thinspace{}
27599 \begin_inset Space \thinspace{}
27611 \begin_layout Plain Layout
27623 \begin_layout Standard
27624 \begin_inset VSpace bigskip
27627 The size of the shadow can be adjusted by changing the length
27635 \begin_inset Space \thinspace{}
27638 pt for the following box by this command:
27641 \begin_layout Standard
27651 \begin_layout Standard
27655 \begin_layout Plain Layout
27667 \begin_inset Box Shadowbox
27676 height_special "totalheight"
27679 \begin_layout Plain Layout
27688 \begin_inset Space \thinspace{}
27692 \begin_inset Space \thinspace{}
27696 \begin_inset Space \thinspace{}
27708 \begin_layout Plain Layout
27722 \begin_layout Standard
27723 \begin_inset VSpace bigskip
27726 Changed lengths and widths are valid for all boxes following the commands
27730 \begin_layout Section
27732 \begin_inset CommandInset label
27734 name "sec:Minipages"
27742 \begin_layout Plain Layout
27751 \begin_layout Standard
27752 Minipages are treated by LaTeX as pages within pages and can therefore for
27753 example have their own footnotes.
27756 \begin_layout Standard
27757 Minipages are useful when you write documents with different languages.
27760 \begin_layout Standard
27761 Below are two example minipages side by side.
27762 Their width is set to 45
27763 \begin_inset Space \thinspace{}
27766 col% and they are separated by a horizontal fill, that was inserted via
27769 Insert\SpecialChar \menuseparator
27771 \begin_inset Space ~
27774 Formatting\SpecialChar \menuseparator
27776 \begin_inset Space ~
27784 \begin_layout Standard
27785 \begin_inset Box Frameless
27794 height_special "totalheight"
27797 \begin_layout Plain Layout
27800 Dies ist ein deutscher Text.
27801 Dies ist ein deutscher Text.
27802 Dies ist ein deutscher Text.
27803 Dies ist ein deutscher Text.
27804 Dies ist ein deutscher Text.
27805 Dies ist ein deutscher Text.
27806 Dies ist ein deutscher Text.
27807 Dies ist ein deutscher Text.
27808 Dies ist ein deutscher Text.
27809 Dies ist ein deutscher Text.
27810 Dies ist ein deutscher Text.
27811 Dies ist ein deutscher Text.
27812 Dies ist ein deutscher Text
27816 \begin_layout Plain Layout
27819 Dies ist eine deutsche Fußnote.
27825 Dies ist ein deutscher Text.
27826 Dies ist ein deutscher Text.
27832 \begin_inset Space \hfill{}
27836 \begin_inset Box Frameless
27845 height_special "totalheight"
27848 \begin_layout Plain Layout
27849 This is an English Text.
27850 This is an English Text.
27851 This is an English Text.
27852 This is an English Text.
27853 This is an English Text.
27854 This is an English Text.
27855 This is an English Text.
27856 This is an English Text.
27857 This is an English Text.
27858 This is an English Text.
27859 This is an English Text.
27860 This is an English Text.
27861 This is an English Text.
27862 This is an English Text.
27863 This is an English Text.
27864 This is an English Text.
27868 \begin_layout Plain Layout
27869 This is an English footnote.
27874 This is an English Text.
27883 \begin_layout Standard
27884 \begin_inset VSpace bigskip
27887 Another application for minipages are footnotes within tables.
27888 Due to a LaTeX restriction footnotes within tables doesn't appear at the
27889 bottom of the current page.
27890 But when you put the table with the footnote to a minipage, the footnote
27891 will appear at its bottom, numbered with Latin letters.
27892 The footnote number is reset to 1 in every minipage but not outside the
27896 \begin_layout Standard
27897 The footnote of this table doesn't appear:
27898 \begin_inset Tabular
27899 <lyxtabular version="3" rows="3" columns="4">
27901 <column alignment="center" valignment="top" width="0pt">
27902 <column alignment="center" valignment="top" width="0pt">
27903 <column alignment="center" valignment="top" width="0pt">
27904 <column alignment="center" valignment="top" width="0pt">
27906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27909 \begin_layout Plain Layout
27915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27918 \begin_layout Plain Layout
27924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27927 \begin_layout Plain Layout
27932 \begin_layout Plain Layout
27933 This is a footnote within a table.
27943 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27946 \begin_layout Plain Layout
27954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27957 \begin_layout Plain Layout
27963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27966 \begin_layout Plain Layout
27972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27975 \begin_layout Plain Layout
27981 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27984 \begin_layout Plain Layout
27992 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27995 \begin_layout Plain Layout
28001 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28004 \begin_layout Plain Layout
28010 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28013 \begin_layout Plain Layout
28019 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28022 \begin_layout Plain Layout
28036 \begin_layout Standard
28038 \begin_inset Box Frameless
28047 height_special "totalheight"
28050 \begin_layout Plain Layout
28052 \begin_inset Tabular
28053 <lyxtabular version="3" rows="3" columns="4">
28055 <column alignment="center" valignment="top" width="0pt">
28056 <column alignment="center" valignment="top" width="0pt">
28057 <column alignment="center" valignment="top" width="0pt">
28058 <column alignment="center" valignment="top" width="0pt">
28060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28063 \begin_layout Plain Layout
28069 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28072 \begin_layout Plain Layout
28078 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28081 \begin_layout Plain Layout
28086 \begin_layout Plain Layout
28087 This is a footnote within a table.
28097 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28100 \begin_layout Plain Layout
28108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28111 \begin_layout Plain Layout
28117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28120 \begin_layout Plain Layout
28126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28129 \begin_layout Plain Layout
28135 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28138 \begin_layout Plain Layout
28146 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28149 \begin_layout Plain Layout
28155 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28158 \begin_layout Plain Layout
28164 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28167 \begin_layout Plain Layout
28173 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28176 \begin_layout Plain Layout
28195 \begin_layout Standard
28196 \begin_inset VSpace bigskip
28199 The document-wide paragraph settings are ignored within minipages.
28200 That means that there will be no space between paragraphs in minipages
28201 although you set it to e.
28202 \begin_inset Space \thinspace{}
28206 \begin_inset Space ~
28213 in the document settings.
28216 \begin_layout Standard
28217 Minipages can also be used to set a background color for text parts, see
28219 \begin_inset Space ~
28223 \begin_inset CommandInset ref
28225 reference "sub:Color-for-Paragraphs"
28232 \begin_layout Standard
28233 \begin_inset Note Greyedout
28236 \begin_layout Plain Layout
28241 You cannot have floats or margin notes inside minipages but minipages can
28242 be used inside tables, floats, and other boxes.
28250 \begin_layout Section
28252 \begin_inset CommandInset label
28254 name "sec:Parboxes"
28262 \begin_layout Plain Layout
28271 \begin_layout Standard
28272 Parboxes are very similar to minipages with the difference that they cannot
28274 The main difference to minipages is that minipages are in contrary to parboxes
28275 no real boxes but LaTeX-environments.
28278 \begin_layout Standard
28280 \begin_inset Box Frameless
28289 height_special "totalheight"
28292 \begin_layout Plain Layout
28293 This a text within a parbox.
28294 This a text within a parbox.
28297 \begin_layout Plain Layout
28298 This footnote won't appear:
28302 \begin_layout Plain Layout
28303 This footnote is inside a parbox and will therefore not appear.
28316 \begin_layout Section
28317 Boxes for Words and Characters
28321 \begin_layout Plain Layout
28322 Boxes ! for Characters
28330 \begin_layout Subsection
28331 Prevent Hyphenation
28332 \begin_inset CommandInset label
28334 name "sec:Prevent-Hyphenation"
28342 \begin_layout Plain Layout
28343 Boxes ! to Prevent Hyphenation
28351 \begin_layout Standard
28352 You can use a special kind of boxes to prevent words or text to be hyphenated.
28353 \begin_inset Newline newline
28356 Here is an example text:
28359 \begin_layout Standard
28360 This line is an example to show how you can prevent the hyphenation of
28361 \begin_inset Quotes eld
28365 \begin_inset Quotes erd
28371 \begin_layout Standard
28372 To prevent the hyphenation of the word
28373 \begin_inset Quotes eld
28377 \begin_inset Quotes erd
28383 \begin_layout Standard
28391 \begin_layout Standard
28392 in TeX-Code before the word.
28393 Behind the word insert a closing brace
28394 \begin_inset Quotes eld
28402 \begin_inset Quotes erd
28408 \begin_layout Standard
28409 This is the result:
28412 \begin_layout Standard
28413 This line is an example to show how you can prevent the hyphenation of
28417 \begin_layout Plain Layout
28427 \begin_inset Quotes eld
28431 \begin_inset Quotes erd
28438 \begin_layout Plain Layout
28448 \begin_layout Standard
28449 You can alternatively set the command
28450 \begin_inset Quotes eld
28460 \begin_inset Quotes grd
28463 as TeX-Code directly before the word:
28466 \begin_layout Standard
28467 This line is an example to show how you can prevent the hyphenation of
28468 \begin_inset Quotes eld
28475 \begin_layout Plain Layout
28485 \begin_inset Quotes erd
28491 \begin_layout Standard
28492 Of course the word now protrudes over the side margin.
28493 To avoid this, add via the menu
28495 Insert\SpecialChar \menuseparator
28497 \begin_inset Space ~
28500 Formatting\SpecialChar \menuseparator
28502 \begin_inset Space ~
28511 ) a line break before the word:
28514 \begin_layout Standard
28515 This line is an example to show how you can prevent the hyphenation of
28516 \begin_inset Newline newline
28523 \begin_layout Plain Layout
28533 \begin_inset Quotes eld
28537 \begin_inset Quotes erd
28544 \begin_layout Plain Layout
28554 \begin_layout Subsection
28556 \begin_inset CommandInset label
28558 name "sub:Vertical-Alignment"
28566 \begin_layout Plain Layout
28567 Boxes ! for Vertical Alignment
28576 \begin_layout Plain Layout
28585 \begin_layout Standard
28586 With the help of the command
28592 you can align words, characters or other boxes vertically to the surrounding
28600 is used with the following scheme:
28603 \begin_layout Standard
28608 raisebox{lift}[height][depth]{box content}
28611 \begin_layout Standard
28612 The lift can be a positive value to raise the box or a negative value to
28616 \begin_layout Standard
28617 To align for example the word
28618 \begin_inset Quotes eld
28622 \begin_inset Quotes erd
28625 so that the bottom of the
28626 \begin_inset Quotes eld
28630 \begin_inset Quotes erd
28634 \begin_inset Quotes eld
28638 \begin_inset Quotes erd
28641 is at the baseline, insert the command
28644 \begin_layout Standard
28654 \begin_layout Standard
28655 in TeX-Code before the word.
28656 Behind the word insert a closing brace
28657 \begin_inset Quotes eld
28665 \begin_inset Quotes erd
28669 \begin_inset Newline newline
28672 This is the result:
28675 \begin_layout Standard
28676 This is a text line with the word
28680 \begin_layout Plain Layout
28692 \begin_inset Quotes eld
28696 \begin_inset Quotes erd
28703 \begin_layout Plain Layout
28713 \begin_layout Standard
28714 \begin_inset VSpace bigskip
28717 When you raise or lower characters in a line, the line distance will be
28721 \begin_layout Standard
28722 This is a text line with the word
28726 \begin_layout Plain Layout
28738 \begin_inset Quotes eld
28742 \begin_inset Quotes erd
28749 \begin_layout Plain Layout
28757 \begin_inset Newline newline
28760 This is a text line with the word
28764 \begin_layout Plain Layout
28774 \begin_inset Quotes eld
28778 \begin_inset Quotes erd
28785 \begin_layout Plain Layout
28795 \begin_layout Standard
28796 If you want to prevent this for a certain reason, set the box height to
28801 \begin_layout Standard
28811 \begin_layout Standard
28812 This is a text line with the word
28816 \begin_layout Plain Layout
28828 \begin_inset Quotes eld
28832 \begin_inset Quotes erd
28839 \begin_layout Plain Layout
28847 \begin_inset Newline newline
28850 This is a text line with the word
28854 \begin_layout Plain Layout
28858 raisebox{0.5cm}[0pt]{
28864 \begin_inset Quotes eld
28868 \begin_inset Quotes erd
28875 \begin_layout Plain Layout
28885 \begin_layout Section
28887 \begin_inset CommandInset label
28889 name "sec:Colored-Boxes"
28897 \begin_layout Plain Layout
28906 \begin_layout Subsection
28911 \begin_layout Plain Layout
28920 \begin_layout Standard
28921 To color the background of text the text must be put into a so called
28922 \begin_inset Quotes eld
28926 \begin_inset Quotes erd
28930 This requires that the LaTeX-package
28938 \begin_layout Plain Layout
28939 LaTeX-packages ! color
28944 is loaded in the document preamble with the command
28947 \begin_layout Standard
28952 @ifundefined{textcolor}
28953 \begin_inset Newline newline
28960 \begin_layout Plain Layout
28971 usepackage{color}}{}
28974 \begin_layout Standard
28979 will be loaded automatically by LyX when you color text
28983 \begin_layout Plain Layout
28984 To avoid that it is loaded twice the command
28988 @ifundef\SpecialChar \textcompwordmark{}
28999 \begin_layout Standard
29000 \begin_inset VSpace medskip
29003 Colorboxes are created with the command
29010 This will be used with the following scheme:
29013 \begin_layout Standard
29018 colorbox{color}{box content}
29021 \begin_layout Standard
29022 The box content can also be a box and colorboxes can also be within other
29026 \begin_layout Standard
29027 The following colors are predefined:
29028 \begin_inset Newline newline
29067 \begin_inset Newline newline
29070 You can also define your own color as described in section
29071 \begin_inset Space ~
29075 \begin_inset CommandInset ref
29077 reference "sec:Colored-Tables"
29084 \begin_layout Standard
29086 \begin_inset Space \thinspace{}
29090 \begin_inset Space ~
29093 a red background for a word, insert the command
29096 \begin_layout Standard
29104 \begin_layout Standard
29105 before the word in TeX-Code.
29106 Behind the word insert a closing brace
29107 \begin_inset Quotes eld
29115 \begin_inset Quotes erd
29119 \begin_inset Newline newline
29122 This is the result:
29125 \begin_layout Standard
29126 This is a line where the word
29130 \begin_layout Plain Layout
29140 \begin_inset Quotes eld
29144 \begin_inset Quotes erd
29151 \begin_layout Plain Layout
29158 has a red background.
29161 \begin_layout Standard
29162 \begin_inset VSpace bigskip
29165 If you would have the box frame in a different color, you can use the command
29172 with the following scheme:
29175 \begin_layout Standard
29180 fcolorbox{frame color}{box color}{box content}
29183 \begin_layout Standard
29197 The frame thickness and the space between the frame and the box content
29198 can be adjusted with the lengths
29210 , respectively, as described in section
29211 \begin_inset Space ~
29215 \begin_inset CommandInset ref
29217 reference "sec:Framed-Boxes"
29224 \begin_layout Standard
29225 For the following example the command
29228 \begin_layout Standard
29233 fcolorbox{cyan}{magenta}{
29236 \begin_layout Standard
29240 \begin_layout Standard
29241 Here is an example where the frame line thickness was set to 1
29242 \begin_inset Space \thinspace{}
29246 \begin_inset Newline newline
29253 \begin_layout Plain Layout
29268 \begin_layout Plain Layout
29272 fcolorbox{cyan}{magenta}{
29277 This is text within a colored, framed box.
29281 \begin_layout Plain Layout
29291 \begin_layout Standard
29292 \begin_inset VSpace bigskip
29295 Of course you can also have colored text inside a colorbox:
29296 \begin_inset Newline newline
29303 \begin_layout Plain Layout
29307 fcolorbox{cyan}{magenta}{
29314 This is colored text within a colored, framed box.
29320 \begin_layout Plain Layout
29331 \begin_layout Plain Layout
29345 \begin_layout Standard
29348 \begin_inset VSpace medskip
29354 \begin_layout Standard
29355 \begin_inset Note Greyedout
29358 \begin_layout Plain Layout
29363 Text in colorboxes cannot have line breaks.
29364 To color multiple text lines or paragraphs, use a box inside a colorbox
29365 as described in the following.
29373 \begin_layout Subsection
29374 Color for Paragraphs
29375 \begin_inset CommandInset label
29377 name "sub:Color-for-Paragraphs"
29385 \begin_layout Plain Layout
29386 Color ! for Paragraphs
29394 \begin_layout Standard
29395 To set the background color for more than one text line, put the text into
29397 Before the minipage insert the
29406 \begin_layout Standard
29414 \begin_layout Standard
29416 Behind the minipage insert a closing brace
29417 \begin_inset Quotes eld
29425 \begin_inset Quotes erd
29431 \begin_layout Standard
29435 \begin_layout Plain Layout
29439 colorbox{lightgrey}{
29445 \begin_inset Box Frameless
29454 height_special "totalheight"
29457 \begin_layout Plain Layout
29458 This is text with background color.
29459 This is text with background color.
29462 \begin_layout Plain Layout
29463 \begin_inset VSpace defskip
29466 The text can have footnotes
29470 \begin_layout Plain Layout
29471 Another example footnote
29476 and can include tables and figures.
29479 \begin_layout Plain Layout
29481 \begin_inset Tabular
29482 <lyxtabular version="3" rows="3" columns="3">
29484 <column alignment="center" valignment="top" width="0">
29485 <column alignment="center" valignment="top" width="0">
29486 <column alignment="center" valignment="top" width="0">
29488 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29491 \begin_layout Plain Layout
29497 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29500 \begin_layout Plain Layout
29506 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29509 \begin_layout Plain Layout
29517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29520 \begin_layout Plain Layout
29526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29529 \begin_layout Plain Layout
29531 \begin_inset Quotes erd
29539 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29542 \begin_layout Plain Layout
29550 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29553 \begin_layout Plain Layout
29559 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29562 \begin_layout Plain Layout
29568 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29571 \begin_layout Plain Layout
29591 \begin_layout Plain Layout
29601 \begin_layout Section
29602 Rotated and Scaled Boxes
29605 \begin_layout Standard
29606 To use the the commands described in this section, the LaTeX-package
29614 \begin_layout Plain Layout
29615 LaTeX-packages ! graphicx
29620 needs to be loaded in the document preamble with the command
29623 \begin_layout Standard
29628 @ifundefined{rotatebox}
29629 \begin_inset Newline newline
29636 \begin_layout Plain Layout
29647 usepackage{graphicx}}{}
29650 \begin_layout Standard
29651 \begin_inset Note Greyedout
29654 \begin_layout Plain Layout
29659 Some DVI-viewers can't display rotated or scaled material.
29667 \begin_layout Standard
29668 \begin_inset Note Greyedout
29671 \begin_layout Plain Layout
29676 Floats mustn't be inside a rotated or scaled box.
29684 \begin_layout Subsection
29689 \begin_layout Plain Layout
29699 \begin_layout Plain Layout
29709 \begin_layout Plain Layout
29719 \begin_layout Plain Layout
29720 Table Customization ! Rotating
29728 \begin_layout Standard
29729 To rotate material, you can put it into a rotated box.
29730 Such a box is created using the command
29736 in TeX-Code with the following scheme:
29739 \begin_layout Standard
29744 rotatebox[rotation origin]{rotation angle}{box content}
29747 \begin_layout Standard
29748 The rotation origin is specified in the form
29753 The following positions are possible:
29773 (top), and also expedient combinations of the four base positions.
29778 means, that the rotation origin is at the top left corner of the box.
29779 When no rotation origin is specified, the position
29784 The rotation angle is a number that can be negative that specifies the
29786 The rotation direction is counterclockwise.
29789 \begin_layout Standard
29790 In the following example the command
29794 rotatebox[origin=c]{60}{
29796 was inserted as TeX-Code before the text
29797 \begin_inset Quotes eld
29801 \begin_inset Quotes erd
29804 ; after the text the box was closed by a closing brace
29811 \begin_layout Standard
29816 \begin_layout Plain Layout
29820 rotatebox[origin=c]{60}{
29829 \begin_layout Plain Layout
29839 \begin_layout Standard
29840 The box content can also be another box or an inline formula:
29843 \begin_layout Standard
29848 \begin_layout Plain Layout
29852 rotatebox[origin=r]{-60}{
29858 \begin_inset Box Doublebox
29867 height_special "totalheight"
29870 \begin_layout Plain Layout
29880 \begin_layout Plain Layout
29891 \begin_layout Plain Layout
29895 rotatebox[origin=lb]{60}{
29901 \begin_inset Formula $\int A\,\mathrm{d}x=B$
29908 \begin_layout Plain Layout
29918 \begin_layout Standard
29919 or an image or table:
29922 \begin_layout Standard
29927 \begin_layout Plain Layout
29931 rotatebox[origin=lb]{90}{
29937 \begin_inset Graphics
29938 filename clipart/platypus.eps
29948 \begin_layout Plain Layout
29955 with a rotated image
29959 \begin_layout Plain Layout
29963 rotatebox[origin=l]{-90}{
29969 \begin_inset Tabular
29970 <lyxtabular version="3" rows="2" columns="2">
29972 <column alignment="center" valignment="top" width="0">
29973 <column alignment="center" valignment="top" width="0">
29975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29978 \begin_layout Plain Layout
29984 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29987 \begin_layout Plain Layout
29995 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29998 \begin_layout Plain Layout
30004 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30007 \begin_layout Plain Layout
30022 \begin_layout Plain Layout
30032 \begin_layout Subsection
30037 \begin_layout Plain Layout
30047 \begin_layout Plain Layout
30057 \begin_layout Plain Layout
30067 \begin_layout Plain Layout
30068 Table Customization ! Scaling
30076 \begin_layout Standard
30077 To scale material the commands
30089 can be used as TeX-Code.
30092 \begin_layout Standard
30099 is used with the following scheme:
30102 \begin_layout Standard
30107 scalebox{horizontal}[vertical]{box content}
30110 \begin_layout Standard
30111 Horizontal and vertical are the corresponding scaling factors.
30112 If no vertical scaling factor is given, the horizontal factor will also
30113 be used as vertical one.
30116 \begin_layout Standard
30123 creates for example a double size
30127 \begin_layout Plain Layout
30140 \begin_layout Plain Layout
30147 , compared to the document text size.
30150 \begin_layout Standard
30155 scalebox{2}[1]{Hello}
30157 in contrary distorts the
30161 \begin_layout Plain Layout
30174 \begin_layout Plain Layout
30184 \begin_layout Standard
30185 If a the scaling factor is negative, the box content will be mirrored.
30186 Therefore the command
30190 scalebox{-1}[1]{Hello}
30192 can be used to create mirror writing:
30196 \begin_layout Plain Layout
30209 \begin_layout Plain Layout
30219 \begin_layout Standard
30224 scalebox{1}[-1]{Hello}
30230 \begin_layout Plain Layout
30243 \begin_layout Plain Layout
30253 \begin_layout Standard
30258 scalebox{-1}[1]{box content}
30260 there exists the command
30261 \begin_inset Newline newline
30268 reflectbox{box content}
30273 \begin_layout Standard
30274 \begin_inset VSpace bigskip
30283 is used to scale the box to a defined width and height.
30284 The command scheme is:
30287 \begin_layout Standard
30292 resizebox{width}{height}{box content}
30295 \begin_layout Standard
30296 Is one of the two command arguments given as exclamation mark
30300 , the size is set so that the aspect ratio of the box content is kept.
30303 \begin_layout Standard
30308 resizebox{2cm}{1cm}{Hello}
30314 \begin_layout Plain Layout
30318 resizebox{2cm}{1cm}{
30327 \begin_layout Plain Layout
30335 \begin_inset Newline newline
30342 resizebox{2cm}{!}{Hello}
30348 \begin_layout Plain Layout
30361 \begin_layout Plain Layout
30371 \begin_layout Standard
30372 \begin_inset VSpace bigskip
30376 \begin_inset Note Greyedout
30379 \begin_layout Plain Layout
30396 are set to zero, no LaTeX-errors occur when exporting the document but
30397 the exported files can not or only partly be displayed.
30405 \begin_layout Standard
30406 \begin_inset VSpace bigskip
30412 \begin_layout Standard
30413 The boxes can be combined in any order.
30415 \begin_inset Space \thinspace{}
30419 \begin_inset Space ~
30423 \begin_inset Newline newline
30430 rotatebox[origin=c]{-45}{
30434 reflectbox{Hello}}}
30435 \begin_inset Newline newline
30443 \begin_layout Standard
30448 \begin_layout Plain Layout
30452 rotatebox[origin=c]{-45}{
30465 \begin_layout Plain Layout
30475 \begin_layout Standard
30477 Images, tables, and inline formulas are allowed as box content:
30480 \begin_layout Standard
30485 \begin_layout Plain Layout
30489 rotatebox[origin=c]{-30}{
30499 \begin_inset Graphics
30500 filename clipart/platypus.eps
30510 \begin_layout Plain Layout
30521 \begin_layout Plain Layout
30525 rotatebox[origin=c]{-45}{
30535 \begin_inset Tabular
30536 <lyxtabular version="3" rows="2" columns="2">
30538 <column alignment="center" valignment="top" width="0">
30539 <column alignment="center" valignment="top" width="0">
30541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30544 \begin_layout Plain Layout
30550 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30553 \begin_layout Plain Layout
30561 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30564 \begin_layout Plain Layout
30570 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30573 \begin_layout Plain Layout
30588 \begin_layout Plain Layout
30599 \begin_layout Plain Layout
30603 rotatebox[origin=c]{-45}{
30613 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30620 \begin_layout Plain Layout
30630 \begin_layout Standard
30631 When the global formula style
30635 is used in the document
30639 \begin_layout Plain Layout
30641 \begin_inset Quotes eld
30645 \begin_inset Quotes erd
30648 is added to the document class options.
30653 , also display formulas can be scaled.
30656 \begin_layout Chapter
30661 \begin_layout Plain Layout
30670 \begin_layout Standard
30673 Insert\SpecialChar \menuseparator
30676 you can insert external material to your document.
30680 \begin_layout Description
30682 \begin_inset Space ~
30685 Document Another LyX document; its content is directly inserted to your
30689 \begin_layout Description
30691 \begin_inset Space ~
30694 Text A text document; every of its text lines is inserted to your document
30698 \begin_layout Description
30700 \begin_inset Space ~
30704 \begin_inset Space ~
30708 \begin_inset Space ~
30711 Lines A text document; its text lines are inserted as they are.
30712 Empty text lines creates a new paragraph in your document.
30715 \begin_layout Description
30717 \begin_inset Space ~
30720 Material Files in various formats.
30723 \begin_layout Description
30725 \begin_inset Space ~
30728 Document LyX or LaTeX-documents.
30731 \begin_layout Section
30736 \begin_layout Plain Layout
30737 External Stuff ! External Material
30745 \begin_layout Standard
30746 The external material feature allows you to insert files to your document
30747 without converting them previously to a format that can be read by the
30748 document output format because LyX takes care of needed conversions.
30749 This is similar to images that can be inserted in various image formats
30753 \begin_layout Standard
30754 External material can be inserted via the
30758 dialog that is accessible with the menu
30760 Insert\SpecialChar \menuseparator
30761 File\SpecialChar \menuseparator
30763 \begin_inset Space ~
30769 Currently the following file types (
30776 \begin_layout Description
30777 ChessDiagram This template supports chess position diagrams made with the
30781 \begin_inset CommandInset href
30784 target "http://en.wikipedia.org/wiki/XBoard"
30793 \begin_layout Description
30794 Date This inserts the date in the form
30799 This is a date inserted as external material:
30800 \begin_inset External
30807 \begin_inset Space ~
30811 \begin_inset Note Note
30814 \begin_layout Plain Layout
30815 Remove the protected space when bug 4398 is fixed!
30821 \begin_inset Newline newline
30824 The date is not shown within LyX, only in the output.
30825 There are two other methods of inserting a date: Via menu
30827 Insert\SpecialChar \menuseparator
30830 and with the LaTeX command
30837 The different methods are compared in Table
30838 \begin_inset Space ~
30842 \begin_inset CommandInset ref
30844 reference "tab:Comparison-of-the"
30851 \begin_layout Description
30852 LilyPond This template is used for music notation typeset with the program
30853 \begin_inset Newline linebreak
30859 \begin_inset CommandInset href
30862 target "http://en.wikipedia.org/wiki/LilyPond"
30871 \begin_layout Description
30872 RasterImage This can be used for bitmap images.
30873 Nearly all popular image formats are supported.
30874 The image can be treated in the
30878 dialog like the images that are usually included via the
30882 dialog as described in section
30883 \begin_inset Space ~
30887 \begin_inset CommandInset ref
30889 reference "sec:Graphics-Dialog"
30894 The difference is that only raster images are allowed, that means that
30895 PDF and EPS-images are not supported.
30898 \begin_layout Description
30899 XFig This template supports images created with the program
30902 \begin_inset CommandInset href
30905 target "http://en.wikipedia.org/wiki/Xfig"
30914 \begin_layout Standard
30915 \begin_inset Float table
30921 \begin_layout Plain Layout
30922 \begin_inset Caption
30924 \begin_layout Plain Layout
30925 \begin_inset CommandInset label
30927 name "tab:Comparison-of-the"
30931 Comparison of the date input methods.
30939 \begin_layout Plain Layout
30941 \begin_inset Tabular
30942 <lyxtabular version="3" rows="4" columns="4">
30944 <column alignment="center" valignment="top" width="0">
30945 <column alignment="center" valignment="top" width="0">
30946 <column alignment="center" valignment="top" width="0">
30947 <column alignment="center" valignment="top" width="0">
30949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30952 \begin_layout Plain Layout
30958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30961 \begin_layout Plain Layout
30964 External Material\SpecialChar \menuseparator
30970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30973 \begin_layout Plain Layout
30976 Insert\SpecialChar \menuseparator
30982 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30985 \begin_layout Plain Layout
30997 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31000 \begin_layout Plain Layout
31006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31009 \begin_layout Plain Layout
31015 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31018 \begin_layout Plain Layout
31024 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31027 \begin_layout Plain Layout
31028 as TeX-Code inset box
31035 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31038 \begin_layout Plain Layout
31044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31047 \begin_layout Plain Layout
31053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31056 \begin_layout Plain Layout
31062 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31065 \begin_layout Plain Layout
31073 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31076 \begin_layout Plain Layout
31082 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31085 \begin_layout Plain Layout
31091 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31094 \begin_layout Plain Layout
31100 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31103 \begin_layout Plain Layout
31122 \begin_layout Standard
31123 When you use the option
31135 dialog, only the path to the inserted file is shown in the output.
31136 \begin_inset Newline newline
31139 External material is displayed in LyX either as box like this:
31140 \begin_inset Graphics
31141 filename clipart/ExternalMaterialQt4.png
31143 scaleBeforeRotation
31147 or as image, depending on the setting in the
31150 \begin_inset Space ~
31162 \begin_layout Standard
31169 manual explains how you can define your own templates.
31172 \begin_layout Section
31174 \begin_inset CommandInset label
31176 name "sec:Child-Documents"
31184 \begin_layout Plain Layout
31185 External Stuff ! Child Documents
31194 \begin_layout Plain Layout
31203 \begin_layout Standard
31204 Child documents are used when you have a long document consisting of several
31205 larger parts or sections.
31206 For maintenance it is often useful and sometimes even required to split
31207 the document in several files that can be revised separately.
31208 The different documents are then the so called child documents and a master
31209 document connects them to print the full document or parts of it.
31212 \begin_layout Standard
31213 Included documents are displayed in LyX as a box like this:
31214 \begin_inset Graphics
31215 filename clipart/ChildDocumentQt4.png
31217 scaleBeforeRotation
31221 To include child documents to a master document use the menu
31223 Insert\SpecialChar \menuseparator
31224 File\SpecialChar \menuseparator
31226 \begin_inset Space ~
31232 A dialog pops up where you can choose between four include methods:
31235 \begin_layout Description
31236 Include You can include LyX and LaTeX-documents.
31245 dialog, the included documents will be opened in LyX in a new file tab
31246 so that you can modify it.
31247 \begin_inset Newline newline
31253 \begin_layout Standard
31254 Here is a child document inserted using
31259 \begin_inset CommandInset include
31260 LatexCommand include
31261 filename "DummyDocument1.lyx"
31268 \begin_layout Standard
31269 The section numbering includes the sections of the included files in the
31270 order they are inserted in the master document.
31271 The included example document has for example a subsection that is numbered
31272 as subsection of this section.
31273 Labels of included documents can be referenced: Subsection
31274 \begin_inset Space ~
31278 \begin_inset CommandInset ref
31280 reference "sub:External-Subsection-1"
31287 \begin_layout Standard
31288 The preamble of the child document is ignored, only the preamble of the
31289 master document is used.
31290 Included documents are inserted starting on a new page and end with a page
31294 \begin_layout Standard
31295 With the LaTeX-command
31301 you can specify which included child documents are processed when the output
31303 This is useful when you are perhaps only working on a certain chapter of
31304 your large document as this saves compiling time.
31311 is inserted to the master document preamble.
31312 It takes a comma-separated list of the filenames as argument, e.g.
31315 \begin_layout Standard
31320 includeonly{chapter1,chapter5}
31323 \begin_layout Standard
31324 will only process the included files named
31325 \begin_inset Quotes eld
31329 \begin_inset Quotes erd
31333 \begin_inset Quotes eld
31337 \begin_inset Quotes erd
31341 \begin_inset Quotes eld
31345 \begin_inset Quotes erd
31351 \begin_layout Standard
31352 \begin_inset Note Greyedout
31355 \begin_layout Plain Layout
31360 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
31361 w the document in case that the child document uses another document class
31362 than the master document as this will lead to unexpected outputs.
31370 \begin_layout Description
31371 Input This method is very similar to the Include method.
31372 The differences are:
31376 \begin_layout Itemize
31377 Input files don't start with a new page and don't end with a page break.
31380 \begin_layout Itemize
31381 Input files can be previewed in LyX when
31384 \begin_inset Space ~
31389 is enabled in LyX's preferences under
31392 \begin_inset Space ~
31396 \begin_inset Space ~
31399 feel\SpecialChar \menuseparator
31405 \begin_layout Itemize
31416 \begin_layout Standard
31417 Here is a child document inserted using
31422 \begin_inset CommandInset include
31424 filename "DummyDocument2.lyx"
31431 \begin_layout Description
31432 Verbatim With this method every text file can be included.
31433 The file is shown in the output with its source code, no command used in
31434 the text is invoked.
31435 You can use the option
31437 Mark spaces in output
31439 that displays the character
31440 \begin_inset Quotes eld
31447 \begin_layout Plain Layout
31457 \begin_inset Quotes erd
31460 for every space character in the source code.
31461 The difference to the method via the menu
31463 Insert\SpecialChar \menuseparator
31464 File\SpecialChar \menuseparator
31466 \begin_inset Space ~
31471 is that the document content is not shown in LyX.
31474 \begin_layout Standard
31475 Here is a child document inserted as Verbatim:
31476 \begin_inset CommandInset include
31477 LatexCommand verbatiminput
31478 filename "DummyTextDocument.txt"
31483 \begin_inset VSpace bigskip
31486 Here is a child document inserted as Verbatim using the
31488 Mark spaces in output
31491 \begin_inset CommandInset include
31492 LatexCommand verbatiminput*
31493 filename "DummyTextDocument.txt"
31500 \begin_layout Standard
31501 \begin_inset VSpace bigskip
31507 \begin_layout Standard
31508 \begin_inset Note Greyedout
31511 \begin_layout Plain Layout
31516 As you can see in the examples above, the text of the documents included
31521 is not broken at the end of the document lines.
31529 \begin_layout Description
31530 Listings This type is described in chapter
31531 \begin_inset Space ~
31535 \begin_inset CommandInset ref
31537 reference "cha:Program-Code-Listings"
31544 \begin_layout Standard
31545 \begin_inset Note Greyedout
31548 \begin_layout Plain Layout
31553 Including the same document twice in a document using different methods
31554 could cause LaTeX-problems.
31562 \begin_layout Chapter
31563 Program Code Listings
31564 \begin_inset CommandInset label
31566 name "cha:Program-Code-Listings"
31574 \begin_layout Plain Layout
31584 \begin_layout Plain Layout
31594 \begin_layout Plain Layout
31603 \begin_layout Standard
31604 To include and typeset program code you can use the
31608 inset that can be inserted via the menu
31610 Insert\SpecialChar \menuseparator
31622 \begin_layout Plain Layout
31623 LaTeX-packages ! listings
31628 provides a powerful and flexible way to insert program source code to your
31632 \begin_layout Standard
31633 When right-clicking on a listings inset a dialog pops up where you can set
31634 the listings format.
31637 \begin_layout Standard
31638 By default, a listing starts a new paragraph in the output.
31639 The placement option
31642 \begin_inset Space ~
31647 prints the listing inline like this:
31648 \begin_inset listings
31649 lstparams "language={C++}"
31653 \begin_layout Plain Layout
31660 \begin_inset Newline newline
31667 creates a listings float where you can specify the placement options
31668 \begin_inset Quotes eld
31676 \begin_inset Quotes erd
31680 \begin_inset Quotes eld
31688 \begin_inset Quotes erd
31692 \begin_inset Quotes eld
31700 \begin_inset Quotes erd
31704 \begin_inset Quotes eld
31712 \begin_inset Quotes erd
31715 corresponding to the float placement options described in section
31716 \begin_inset Space ~
31720 \begin_inset CommandInset ref
31722 reference "sec:Float-Placement"
31727 The placement options can be mixed and are inserted without any separation,
31729 \begin_inset Space \thinspace{}
31733 \begin_inset Space ~
31737 \begin_inset Quotes eld
31745 \begin_inset Quotes erd
31750 \begin_inset Quotes eld
31754 \begin_inset Quotes erd
31757 has sometimes no effect, but you don't need to use the
31761 option in this case as also non-float listings can have captions and be
31765 \begin_layout Standard
31766 You can add captions to listings with the menu
31768 Insert\SpecialChar \menuseparator
31772 Listings can be referenced like floats: Listing
31773 \begin_inset Space ~
31777 \begin_inset CommandInset ref
31779 reference "lst:Example-Listing"
31786 \begin_layout Standard
31787 \begin_inset listings
31788 lstparams "language=Python"
31792 \begin_layout Plain Layout
31793 \begin_inset Caption
31795 \begin_layout Plain Layout
31796 \begin_inset CommandInset label
31798 name "lst:Example-Listing"
31802 Example Listing float
31807 # Example listing float
31810 \begin_layout Plain Layout
31814 \begin_layout Plain Layout
31815 'this is a python function'
31818 \begin_layout Plain Layout
31827 \begin_layout Standard
31828 When you have set a programming language in the listings dialog, the keywords
31829 of this language will be recognized and specially typeset in the output.
31830 In the example listings the Python keyword
31831 \begin_inset Quotes eld
31835 \begin_inset Quotes erd
31838 is recognized and printed bold in the output.
31841 \begin_layout Standard
31842 \begin_inset Note Greyedout
31845 \begin_layout Plain Layout
31850 If you don't get bold keywords when using typewriter fonts, your typewriter
31851 font probably doesn't provide a bold shape.
31852 In this case select a different one in the menu
31854 Document\SpecialChar \menuseparator
31855 Settings\SpecialChar \menuseparator
31867 provide bold shapes.)
31875 \begin_layout Standard
31879 \begin_inset Space ~
31884 of the listings dialog you can specify the line numbering style.
31885 You can insert a number to specify which lines are numbered to the field
31891 When you insert e.g.
31893 \begin_inset Quotes eld
31897 \begin_inset Quotes erd
31900 , only every 3rd line will be numbered.
31903 \begin_layout Standard
31904 You can furthermore specify a range of lines, only these will then appear
31909 \begin_inset Space ~
31914 should be used when you use national characters like the German umlauts
31916 \begin_inset Newline newline
31919 Here is an example listing with left line numbering, step
31920 \begin_inset Quotes eld
31924 \begin_inset Quotes erd
31928 \begin_inset Quotes eld
31932 \begin_inset Quotes erd
31936 \begin_inset Quotes eld
31940 \begin_inset Space ~
31944 \begin_inset Quotes erd
31948 \begin_inset Quotes eld
31952 \begin_inset Space ~
31956 \begin_inset Space ~
31960 \begin_inset Quotes erd
31964 \begin_inset Space \thinspace{}
31968 \begin_inset Space \thinspace{}
31974 \begin_layout Standard
31975 \begin_inset listings
31976 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
31980 \begin_layout Plain Layout
31984 \begin_layout Plain Layout
31985 'this is a python function'
31988 \begin_layout Plain Layout
31992 \begin_layout Plain Layout
31996 \begin_layout Plain Layout
31997 'This is a German word: Tschüß'
32000 \begin_layout Plain Layout
32004 \begin_layout Plain Layout
32008 \begin_layout Plain Layout
32009 'this is a python function'
32012 \begin_layout Plain Layout
32021 \begin_layout Standard
32022 \begin_inset Note Greyedout
32025 \begin_layout Plain Layout
32030 Due to a bug in the
32034 package the line numbering is shifted by a line by every previous listing.
32035 That's the reason why the lines 2 and 5 are numbered in the above listing
32036 and not the lines 3 and 6.
32044 \begin_layout Standard
32045 \begin_inset VSpace bigskip
32051 \begin_layout Standard
32052 It is also possible to print lines from a file as listing.
32053 To do this, use the menu
32055 Insert\SpecialChar \menuseparator
32056 File\SpecialChar \menuseparator
32059 and choose the type
32067 \begin_layout Plain Layout
32068 The other child document types are described in section
32069 \begin_inset Space ~
32073 \begin_inset CommandInset ref
32075 reference "sec:Child-Documents"
32084 In the child document dialog you can specify the listing parameters in
32086 To show a list of all available parameters, type in a question mark
32087 \begin_inset Quotes eld
32091 \begin_inset Quotes erd
32097 \begin_layout Standard
32098 To reference child document listings, write a label text into the corresponding
32099 field of the child document dialog.
32100 The label can then be referenced using the menu
32102 Insert\SpecialChar \menuseparator
32108 \begin_layout Standard
32110 \begin_inset Space ~
32114 \begin_inset CommandInset ref
32116 reference "lst:file-listing"
32120 is an example for a listing of a file; there the lines 10
32121 \begin_inset Space \thinspace{}
32125 \begin_inset Space \thinspace{}
32128 15 of this LyX file are listed.
32131 \begin_layout Standard
32132 \begin_inset CommandInset include
32133 LatexCommand lstinputlisting
32134 filename "EmbeddedObjects.lyx"
32135 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
32142 \begin_layout Standard
32143 \begin_inset VSpace bigskip
32149 \begin_layout Standard
32150 Global listings settings can be set in the
32152 Document\SpecialChar \menuseparator
32153 Settings\SpecialChar \menuseparator
32157 To get there a list of available options, type in a question mark
32158 \begin_inset Quotes eld
32162 \begin_inset Quotes erd
32168 \begin_inset Space ~
32176 \begin_layout Standard
32177 For more information about the
32181 package, we refer to its documentation
32182 \begin_inset CommandInset citation
32191 \begin_layout Standard
32192 \begin_inset Newpage newpage
32198 \begin_layout Chapter
32200 Units available in LyX
32204 \begin_layout Plain Layout
32211 \begin_inset CommandInset label
32213 name "cha:Units-available-in"
32220 \begin_layout Standard
32221 To understand the units described in this documentation, Table
32222 \begin_inset Space ~
32226 \begin_inset CommandInset ref
32228 reference "tab:Units"
32232 explains all units available in LyX.
32235 \begin_layout Standard
32236 \begin_inset Float table
32242 \begin_layout Plain Layout
32243 \begin_inset Caption
32245 \begin_layout Plain Layout
32246 \begin_inset CommandInset label
32260 \begin_layout Plain Layout
32261 \begin_inset VSpace medskip
32267 \begin_layout Plain Layout
32269 \begin_inset Tabular
32270 <lyxtabular version="3" rows="20" columns="2">
32272 <column alignment="center" valignment="top" width="0">
32273 <column alignment="center" valignment="top" width="0">
32275 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32278 \begin_layout Plain Layout
32284 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32287 \begin_layout Plain Layout
32295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32298 \begin_layout Plain Layout
32304 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32307 \begin_layout Plain Layout
32315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32318 \begin_layout Plain Layout
32324 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32327 \begin_layout Plain Layout
32335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32338 \begin_layout Plain Layout
32344 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32347 \begin_layout Plain Layout
32355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32358 \begin_layout Plain Layout
32364 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32367 \begin_layout Plain Layout
32369 \begin_inset Space \thinspace{}
32373 \begin_inset Space \thinspace{}
32383 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32386 \begin_layout Plain Layout
32392 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32395 \begin_layout Plain Layout
32397 \begin_inset Space \thinspace{}
32401 \begin_inset Space \thinspace{}
32411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32414 \begin_layout Plain Layout
32420 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32423 \begin_layout Plain Layout
32424 scaled point (65536
32425 \begin_inset Space \thinspace{}
32429 \begin_inset Space \thinspace{}
32439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32442 \begin_layout Plain Layout
32448 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32451 \begin_layout Plain Layout
32453 \begin_inset Space \thinspace{}
32457 \begin_inset Space \thinspace{}
32467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32470 \begin_layout Plain Layout
32476 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32479 \begin_layout Plain Layout
32481 \begin_inset Space \thinspace{}
32485 \begin_inset Formula $\approx$
32489 \begin_inset Space \thinspace{}
32499 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32502 \begin_layout Plain Layout
32508 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32511 \begin_layout Plain Layout
32513 \begin_inset Space \thinspace{}
32517 \begin_inset Space \thinspace{}
32527 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32530 \begin_layout Plain Layout
32536 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32539 \begin_layout Plain Layout
32540 % of original image width
32547 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32550 \begin_layout Plain Layout
32556 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32559 \begin_layout Plain Layout
32567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32570 \begin_layout Plain Layout
32576 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32579 \begin_layout Plain Layout
32587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32590 \begin_layout Plain Layout
32596 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32599 \begin_layout Plain Layout
32607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32610 \begin_layout Plain Layout
32616 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32619 \begin_layout Plain Layout
32627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32630 \begin_layout Plain Layout
32636 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32639 \begin_layout Plain Layout
32647 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32650 \begin_layout Plain Layout
32656 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32659 \begin_layout Plain Layout
32667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32670 \begin_layout Plain Layout
32676 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32679 \begin_layout Plain Layout
32691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32694 \begin_layout Plain Layout
32700 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32703 \begin_layout Plain Layout
32715 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32718 \begin_layout Plain Layout
32724 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32727 \begin_layout Plain Layout
32729 \begin_inset Space \thinspace{}
32733 \begin_inset Space \thinspace{}
32754 \begin_layout Chapter
32755 Output File Formats with Graphics
32756 \begin_inset CommandInset label
32758 name "cha:Output-File-Formats"
32765 \begin_layout Section
32770 \begin_layout Plain Layout
32780 \begin_layout Plain Layout
32785 \begin_layout Plain Layout
32796 \begin_layout Plain Layout
32811 \begin_layout Standard
32812 This file type has the extension
32813 \begin_inset Quotes eld
32821 \begin_inset Quotes erd
32826 \begin_inset Quotes eld
32830 \begin_inset Quotes erd
32833 (DVI), because it is completely portable; you can move them from one machine
32834 to another without needing to do any sort of conversion.
32835 At the time when this file-format was developed, this was no matter of
32837 DVIs are used for quick previews and as pre-stage for other output formats,
32841 \begin_layout Standard
32842 \begin_inset Note Greyedout
32845 \begin_layout Plain Layout
32850 DVI-files doesn't contain images, they will only be a linked.
32855 So don't forget this, if you move your
32859 file to another computer.
32860 This property can also slow down your computer when you view the DVI.
32861 Because the DVI-viewer has to convert the image in the background to make
32862 it visible when you scroll in the DVI.
32863 So we recommend to use PDF for files with many images.
32866 \begin_layout Standard
32867 You can export your document to DVI by using the menu
32869 File\SpecialChar \menuseparator
32870 Export\SpecialChar \menuseparator
32874 You can view your document as DVI via the
32878 menu or by using the toolbar button
32879 \begin_inset Graphics
32880 filename ../images/buffer-view_dvi.png
32882 scaleBeforeRotation
32889 \begin_layout Section
32891 \begin_inset CommandInset label
32893 name "sec:PostScript"
32901 \begin_layout Plain Layout
32902 File Formats ! PostScript
32911 \begin_layout Plain Layout
32916 \begin_layout Plain Layout
32927 \begin_layout Plain Layout
32942 \begin_layout Standard
32943 This file type has the extension
32944 \begin_inset Quotes eld
32952 \begin_inset Quotes erd
32956 PostScript was developed by the company
32960 as printer language.
32961 The file contains therefore commands that the printer uses to print the
32963 PostScript can be seen as
32964 \begin_inset Quotes eld
32967 programming language
32968 \begin_inset Quotes erd
32971 ; you can calculate with it and draw diagrams and images
32975 \begin_layout Plain Layout
32976 If you are interested to learn more about this, have a look at the LaTeX-package
32982 \begin_inset CommandInset citation
32994 Due to this ability, the files are often bigger than PDFs.
32997 \begin_layout Standard
32998 PostScript can only contain images in the format
32999 \begin_inset Quotes eld
33002 Encapsulated PostScript
33003 \begin_inset Quotes erd
33006 (EPS, file extension
33007 \begin_inset Quotes eld
33015 \begin_inset Quotes erd
33019 As LyX allows you to use any known image format in your document, it has
33020 to convert images in the background to EPS.
33021 If you have e.g 50 images in your document, LyX has to do 50 conversions
33022 whenever you view or export your document.
33023 This will slow down your work flow with LyX drastically.
33024 So if you plan to use PostScript, you can insert your images directly as
33025 EPS to avoid this problem.
33028 \begin_layout Standard
33029 You can export your document to PostScript using the menu
33031 File\SpecialChar \menuseparator
33032 Export\SpecialChar \menuseparator
33036 You can view your document as PostScript via the
33040 menu or by using the toolbar button
33041 \begin_inset Graphics
33042 filename ../images/buffer-view_ps.png
33044 scaleBeforeRotation
33051 \begin_layout Section
33053 \begin_inset CommandInset label
33063 \begin_layout Plain Layout
33073 \begin_layout Plain Layout
33082 \begin_layout Standard
33083 This file type has the extension
33084 \begin_inset Quotes eld
33092 \begin_inset Quotes erd
33097 \begin_inset Quotes eld
33100 Portable Document Format
33101 \begin_inset Quotes erd
33104 (PDF) is developed by
33108 as derivative from PostScript.
33109 It is more compressed and it uses much less commands than PostScript.
33111 \begin_inset Quotes eld
33115 \begin_inset Quotes erd
33118 implies, it can be processed at any computer system and the printed output
33119 looks exactly the same.
33122 \begin_layout Standard
33123 PDF can contain images in its own PDF format, in the format
33124 \begin_inset Quotes eld
33127 Joint Photographic Experts Group
33128 \begin_inset Quotes erd
33131 (JPG, file extension
33132 \begin_inset Quotes eld
33140 \begin_inset Quotes erd
33144 \begin_inset Quotes eld
33152 \begin_inset Quotes erd
33155 ), and in the format
33156 \begin_inset Quotes eld
33159 Portable Network Graphics
33160 \begin_inset Quotes erd
33163 (PNG, file extension
33164 \begin_inset Quotes eld
33172 \begin_inset Quotes erd
33176 Nevertheless you can use any other image format, because LyX converts them
33177 in the background to one of these formats.
33178 But as described in the section about PostScript, the image conversion
33179 will slow down your work flow.
33180 So it is recommended to use images in one of the three mentioned formats.
33183 \begin_layout Standard
33184 You can export your document to PDF via the menu
33186 File\SpecialChar \menuseparator
33189 in three different ways:
33192 \begin_layout Description
33194 \begin_inset Space ~
33197 (ps2pdf) This uses the program
33201 that creates a PDF from a PostScript-version of your file.
33202 The PostScript-version is produced by the program
33206 which uses a DVI-version as intermediate step.
33207 So this export variant consist of three conversions.
33210 \begin_layout Description
33212 \begin_inset Space ~
33215 (dvipdfm) This uses the program
33219 that converts your file in the background to DVI and in a second step to
33223 \begin_layout Description
33225 \begin_inset Space ~
33228 (pdflatex) This uses the program
33232 that converts your file directly to PDF.
33235 \begin_layout Standard
33236 It is recommended to use
33239 \begin_inset Space ~
33248 supports all features of actual PDF-versions, is quick and works stable
33254 is not under development and therefore a bit outdated.
33257 \begin_layout Standard
33258 You can view your document as PDF via the
33262 menu or by using the toolbar button
33263 \begin_inset Graphics
33264 filename ../images/buffer-view_pdf2.png
33266 scaleBeforeRotation
33277 \begin_inset Space ~
33285 \begin_layout Chapter
33286 Explanation of Equation
33287 \begin_inset Space ~
33291 \begin_inset CommandInset ref
33298 \begin_inset CommandInset label
33300 name "cha:Explanation-of-Equation"
33307 \begin_layout Standard
33313 \begin_inset Formula $W_{\mathrm{tot\, n}}$
33316 can be calculated to
33319 \begin_layout Standard
33320 \begin_inset Formula \begin{equation}
33321 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}
33328 \begin_layout Standard
33330 \begin_inset Formula $W_{g\, n}$
33333 is the given width of all cells.
33340 is the LaTeX-length between the cell text and the cell border, its default
33342 \begin_inset Space \thinspace{}
33352 is the thickness of the cell border line, the default is 0.4
33353 \begin_inset Space \thinspace{}
33359 \begin_layout Standard
33361 \begin_inset Space ~
33365 \begin_inset CommandInset ref
33367 reference "eq:Wtot_n"
33371 , the total width of a multicolumn
33372 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
33378 \begin_layout Standard
33379 \begin_inset Formula \begin{equation}
33380 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
33387 \begin_layout Standard
33388 By setting equation
33389 \begin_inset Space ~
33393 \begin_inset CommandInset ref
33395 reference "eq:Wtot_n"
33400 \begin_inset CommandInset ref
33402 reference "eq:Wtot_mult"
33406 equal we can calculate the needed given width
33407 \begin_inset Formula $W_{g\, n}$
33414 columns are spanned, so that each column has a total width of
33415 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
33421 \begin_layout Standard
33422 \begin_inset Formula \begin{equation}
33423 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
33430 \begin_layout Bibliography
33431 \begin_inset CommandInset bibitem
33432 LatexCommand bibitem
33433 key "latexcompanion"
33437 Frank Mittelbach and Michel Goossens:
33439 The LaTeX Companion Second Edition.
33442 Addison-Wesley, 2004
33445 \begin_layout Bibliography
33446 \begin_inset CommandInset bibitem
33447 LatexCommand bibitem
33452 Helmut Kopka and Patrick W.
33455 A Guide to LaTeX Fourth Edition.
33458 Addison-Wesley, 2003
33461 \begin_layout Bibliography
33462 \begin_inset CommandInset bibitem
33463 LatexCommand bibitem
33470 LaTeX: A Document Preparation System.
33473 Addison-Wesley, second edition, 1994
33476 \begin_layout Bibliography
33477 \begin_inset CommandInset bibitem
33478 LatexCommand bibitem
33483 Documentation of the LaTeX-package
33486 \begin_inset CommandInset href
33489 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
33499 \begin_layout Plain Layout
33500 LaTeX-packages ! booktabs
33508 \begin_layout Bibliography
33509 \begin_inset CommandInset bibitem
33510 LatexCommand bibitem
33515 Documentation of the LaTeX-package
33518 \begin_inset CommandInset href
33521 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
33531 \begin_layout Plain Layout
33532 LaTeX-packages ! caption
33540 \begin_layout Bibliography
33541 \begin_inset CommandInset bibitem
33542 LatexCommand bibitem
33547 Documentation of the LaTeX-package
33550 \begin_inset CommandInset href
33553 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
33563 \begin_layout Plain Layout
33564 LaTeX-packages ! endfloat
33572 \begin_layout Bibliography
33573 \begin_inset CommandInset bibitem
33574 LatexCommand bibitem
33579 Documentation of the LaTeX-package
33582 \begin_inset CommandInset href
33585 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
33595 \begin_layout Plain Layout
33596 LaTeX-packages ! wrapfig
33600 \begin_layout Plain Layout
33608 \begin_layout Plain Layout
33619 \begin_layout Plain Layout
33635 \begin_layout Plain Layout
33646 \begin_layout Plain Layout
33661 \begin_layout Bibliography
33662 \begin_inset CommandInset bibitem
33663 LatexCommand bibitem
33668 Documentation of the LaTeX-package
33671 \begin_inset CommandInset href
33674 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
33684 \begin_layout Plain Layout
33685 LaTeX-packages ! footmisc
33693 \begin_layout Bibliography
33694 \begin_inset CommandInset bibitem
33695 LatexCommand bibitem
33700 Documentation of the LaTeX-package
33703 \begin_inset CommandInset href
33706 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
33716 \begin_layout Plain Layout
33717 LaTeX-packages ! hyperref
33725 \begin_layout Bibliography
33726 \begin_inset CommandInset bibitem
33727 LatexCommand bibitem
33732 Documentation of the LaTeX-package
33735 \begin_inset CommandInset href
33738 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
33748 \begin_layout Plain Layout
33749 LaTeX-packages ! hyperref
33757 \begin_layout Bibliography
33758 \begin_inset CommandInset bibitem
33759 LatexCommand bibitem
33764 Documentation of the LaTeX-package
33767 \begin_inset CommandInset href
33770 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
33780 \begin_layout Plain Layout
33781 LaTeX-packages ! koma-script
33789 \begin_layout Bibliography
33790 \begin_inset CommandInset bibitem
33791 LatexCommand bibitem
33796 Documentation of the LaTeX-package
33799 \begin_inset CommandInset href
33802 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
33812 \begin_layout Plain Layout
33813 LaTeX-packages ! listings
33821 \begin_layout Bibliography
33822 \begin_inset CommandInset bibitem
33823 LatexCommand bibitem
33828 Documentation of the LaTeX-package
33831 \begin_inset CommandInset href
33834 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
33844 \begin_layout Plain Layout
33845 LaTeX-packages ! marginnote
33853 \begin_layout Bibliography
33854 \begin_inset CommandInset bibitem
33855 LatexCommand bibitem
33860 Web page of the LaTeX-package
33863 \begin_inset CommandInset href
33866 target "http://tug.org/PSTricks/"
33876 \begin_layout Plain Layout
33877 LaTeX-packages ! PSTricks
33885 \begin_layout Bibliography
33886 \begin_inset CommandInset bibitem
33887 LatexCommand bibitem
33892 Documentation of the LaTeX-package
33895 \begin_inset CommandInset href
33898 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
33908 \begin_layout Plain Layout
33909 LaTeX-packages ! sidecap
33917 \begin_layout Bibliography
33918 \begin_inset CommandInset bibitem
33919 LatexCommand bibitem
33925 \begin_inset CommandInset href
33928 target "http://wiki.lyx.org/LyX/NewInLyX16"
33932 about new features in
33939 \begin_layout Standard
33940 \begin_inset CommandInset index_print
33941 LatexCommand printindex
33948 \begin_layout Standard
33949 \begin_inset FloatList figure
33956 \begin_layout Standard
33957 \begin_inset FloatList table
33964 \begin_layout Standard
33965 \begin_inset FloatList algorithm