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
10871 \begin_inset Newline linebreak
10879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10882 \begin_layout Plain Layout
10888 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10891 \begin_layout Plain Layout
10899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10902 \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" rightline="true" usebox="none">
10920 \begin_layout Plain Layout
10928 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10931 \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" rightline="true" usebox="none">
10949 \begin_layout Plain Layout
10968 \begin_layout Standard
10969 Adjusting a fixed width for a column, enables to enter text as a paragraph
10970 with multiple lines and hyphenations.
10973 \begin_layout Standard
10975 \begin_inset Space ~
10979 \begin_inset CommandInset ref
10981 reference "tab:Table-with-multiple"
10985 , create a 3×3 table, mark the first cell and right-click on it.
10986 In the appearing table dialog we set a cell width of 2.5
10987 \begin_inset Space \thinspace{}
10990 cm and choose centered for the vertical and horizontal alignment.
10991 The vertical alignment is used for all cells of the row.
10992 As our text is smaller than than 2.5
10993 \begin_inset Space \thinspace{}
10996 cm, only one line will appear.
10997 To get two lines, a justified line break (shortcut
11002 If the text is wider than the set cell width, it will automatically be
11003 broken to several lines.
11006 \begin_layout Standard
11007 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11008 by LaTeX if it is the first entry.
11009 Therefore you need to insert something, to make the word not being the
11011 So add a horizontal space of 0
11012 \begin_inset Space \thinspace{}
11015 pt before the word.
11016 As the space is zero, it doesn't change the output.
11018 \begin_inset Space ~
11022 \begin_inset CommandInset ref
11024 reference "tab:Table-with-and"
11031 \begin_layout Standard
11032 \begin_inset Float table
11038 \begin_layout Plain Layout
11039 \begin_inset Caption
11041 \begin_layout Plain Layout
11042 \begin_inset CommandInset label
11044 name "tab:Table-with-and"
11048 Table with and without hyphenation
11056 \begin_layout Plain Layout
11057 \begin_inset Space \hfill{}
11061 \begin_inset Tabular
11062 <lyxtabular version="3" rows="3" columns="3">
11064 <column alignment="center" valignment="middle" width="2.5cm">
11065 <column alignment="center" valignment="middle" width="0">
11066 <column alignment="center" valignment="middle" width="0">
11068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11071 \begin_layout Plain Layout
11072 verylongtablecellword
11077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11080 \begin_layout Plain Layout
11086 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11089 \begin_layout Plain Layout
11097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11100 \begin_layout Plain Layout
11106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11109 \begin_layout Plain Layout
11115 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11118 \begin_layout Plain Layout
11126 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11129 \begin_layout Plain Layout
11135 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11138 \begin_layout Plain Layout
11144 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11147 \begin_layout Plain Layout
11159 \begin_inset Space \hfill{}
11163 \begin_inset Tabular
11164 <lyxtabular version="3" rows="3" columns="3">
11166 <column alignment="center" valignment="middle" width="2.5cm">
11167 <column alignment="center" valignment="middle" width="0">
11168 <column alignment="center" valignment="middle" width="0">
11170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11173 \begin_layout Plain Layout
11174 \begin_inset Space \hspace{}
11178 verylongtablecellword
11183 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11186 \begin_layout Plain Layout
11192 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11195 \begin_layout Plain Layout
11203 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11206 \begin_layout Plain Layout
11212 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11215 \begin_layout Plain Layout
11221 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11224 \begin_layout Plain Layout
11232 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11235 \begin_layout Plain Layout
11241 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11244 \begin_layout Plain Layout
11250 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11253 \begin_layout Plain Layout
11265 \begin_inset Space \hfill{}
11276 \begin_layout Standard
11277 \begin_inset Newpage newpage
11283 \begin_layout Subsection
11285 \begin_inset CommandInset label
11287 name "sub:Multicolumns"
11295 \begin_layout Plain Layout
11305 \begin_layout Plain Layout
11306 Table ! Multicolumns
11314 \begin_layout Subsubsection
11318 \begin_layout Standard
11319 To span a cell over multiple columns, mark as much cells within a line that
11320 should be one spanned cell and use either the table-toolbar button
11321 \begin_inset Graphics
11322 filename ../images/tabular-feature_multicolumn.png
11324 scaleBeforeRotation
11330 Edit\SpecialChar \menuseparator
11331 Table\SpecialChar \menuseparator
11334 , or right click on the marked cells and choose multicolumn in the appearing
11335 table dialog under the tab
11342 \begin_layout Standard
11343 Multicolumns have there own cell settings.
11344 That means changing cell borders, cell alignment, and the width only affects
11346 Here is an example table with a multicolumn cell in the first row and one
11347 in the last row without the upper border:
11350 \begin_layout Standard
11352 \begin_inset Tabular
11353 <lyxtabular version="3" rows="3" columns="4">
11354 <features firstHeadTopDL="true" firstHeadBottomDL="true">
11355 <column alignment="center" valignment="top" width="0pt">
11356 <column alignment="center" valignment="middle" width="0">
11357 <column alignment="center" valignment="top" width="0in">
11358 <column alignment="center" valignment="top" width="0pt">
11360 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11363 \begin_layout Plain Layout
11369 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11372 \begin_layout Plain Layout
11378 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11381 \begin_layout Plain Layout
11387 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11390 \begin_layout Plain Layout
11398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11401 \begin_layout Plain Layout
11416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11419 \begin_layout Plain Layout
11425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11428 \begin_layout Plain Layout
11434 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11437 \begin_layout Plain Layout
11445 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11448 \begin_layout Plain Layout
11454 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11457 \begin_layout Plain Layout
11463 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11466 \begin_layout Plain Layout
11472 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11475 \begin_layout Plain Layout
11489 \begin_layout Subsubsection
11490 Multicolumn Calculations
11491 \begin_inset CommandInset label
11493 name "sub:Multicolumn-Calculations"
11501 \begin_layout Plain Layout
11502 Multicolumns ! Calculations
11510 \begin_layout Standard
11511 LyX supports multicolumns directly, but we have to take notice of the cell
11512 width of the columns spanned by the multicolumn cell.
11515 \begin_layout Standard
11516 \begin_inset Float table
11522 \begin_layout Plain Layout
11523 \begin_inset Caption
11525 \begin_layout Plain Layout
11526 \begin_inset CommandInset label
11528 name "tab:Table-with-centered"
11532 Table with centered multicolumn text above two columns that have exactly
11533 half the width of the multicolumn cell
11534 \begin_inset OptArg
11537 \begin_layout Plain Layout
11538 Perfect multicolumn table
11551 \begin_layout Plain Layout
11553 \begin_inset Tabular
11554 <lyxtabular version="3" rows="3" columns="3">
11556 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11557 <column alignment="center" valignment="middle" width="0">
11558 <column alignment="center" valignment="top" width="0">
11560 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11563 \begin_layout Plain Layout
11564 multiple lines multicolumn
11569 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11572 \begin_layout Plain Layout
11578 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11581 \begin_layout Plain Layout
11589 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11592 \begin_layout Plain Layout
11598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11601 \begin_layout Plain Layout
11607 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11610 \begin_layout Plain Layout
11618 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11621 \begin_layout Plain Layout
11627 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11630 \begin_layout Plain Layout
11636 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11639 \begin_layout Plain Layout
11658 \begin_layout Standard
11659 To create for example Table
11660 \begin_inset Space ~
11664 \begin_inset CommandInset ref
11666 reference "tab:Table-with-centered"
11670 , mark the first two cells in the first row of a 3×3 table and right-click
11672 Now choose for this cell
11681 \begin_inset Space \thinspace{}
11684 cm in the table dialog.
11685 The spanned columns should have exactly half the width of the multicolumn
11686 cell, so that you would adjust a width of 1.25
11687 \begin_inset Space \thinspace{}
11690 cm for the first column.
11691 The second column has then automatically a width of 1.25
11692 \begin_inset Space \thinspace{}
11695 cm (multicolumn width - width of first column).
11696 This was done for Table
11697 \begin_inset Space ~
11701 \begin_inset CommandInset ref
11703 reference "tab:Table-without-half"
11710 \begin_layout Standard
11711 \begin_inset Float table
11716 \begin_layout Plain Layout
11717 \begin_inset Caption
11719 \begin_layout Plain Layout
11720 \begin_inset CommandInset label
11722 name "tab:Table-without-half"
11726 Table where the spanned table columns have not exactly half the width of
11727 the multicolumn cell
11728 \begin_inset OptArg
11731 \begin_layout Plain Layout
11732 Imperfect multicolumn table
11745 \begin_layout Plain Layout
11747 \begin_inset Tabular
11748 <lyxtabular version="3" rows="3" columns="3">
11750 <column alignment="center" valignment="top" width="1.25cm">
11751 <column alignment="center" valignment="top" width="0">
11752 <column alignment="center" valignment="top" width="0">
11754 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11757 \begin_layout Plain Layout
11758 multiple lines multicolumn
11763 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11766 \begin_layout Plain Layout
11772 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11775 \begin_layout Plain Layout
11783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11786 \begin_layout Plain Layout
11792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11795 \begin_layout Plain Layout
11801 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11804 \begin_layout Plain Layout
11812 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11815 \begin_layout Plain Layout
11821 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11824 \begin_layout Plain Layout
11830 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11833 \begin_layout Plain Layout
11852 \begin_layout Standard
11853 You can see that the first column has not the half width of the multicolumn
11854 cell, it is a bit bigger.
11855 The reason is that the given width of a cell
11856 \begin_inset Formula $W_{g}$
11859 is not its total width
11860 \begin_inset Formula $W_{\mathrm{tot}}$
11863 because a cell is always a bit larger than its given width.
11865 \begin_inset Space ~
11869 \begin_inset CommandInset ref
11871 reference "cha:Explanation-of-Equation"
11875 explains it in detail.
11878 \begin_layout Standard
11879 The needed given width
11880 \begin_inset Formula $W_{g\, n}$
11887 columns are spanned can be calculated, so that each column has a total
11889 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11893 \begin_inset Formula \begin{equation}
11894 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11901 \begin_layout Standard
11902 In our case we have
11903 \begin_inset Formula $n=2$
11907 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11910 cm and the default values for the lengths, so that equation
11911 \begin_inset CommandInset ref
11918 \begin_inset Formula \begin{equation}
11919 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11926 \begin_layout Standard
11927 To enable calculations in LaTeX, the LaTeX-package
11931 must be loaded with the document preamble line
11935 \begin_layout Plain Layout
11936 LaTeX-packages ! calc
11944 \begin_layout Standard
11952 \begin_layout Standard
11953 LyX does not allow to calculate lengths in the width-field of the table
11955 Therefore you have to format the column by inserting a LaTeX-argument in
11957 Here is an overview about the arguments:
11960 \begin_layout Itemize
11965 creates cell with a fixed width, its text is vertically top-aligned
11968 \begin_layout Itemize
11973 creates cell with a fixed width, its text is vertically centered
11976 \begin_layout Itemize
11981 creates cell with a fixed width, its text is vertically bottom-aligned
11984 \begin_layout Standard
11985 By entering a LaTeX-argument, all cell settings set in the table dialog
11989 \begin_layout Standard
11990 \begin_inset Note Greyedout
11993 \begin_layout Plain Layout
11998 Due to a bug, LyX shows the overwritten settings anyway.
12006 \begin_layout Standard
12007 As the text should be horizontally centered, the command
12014 You can now enter the following LaTeX-argument for the first spanned column:
12017 \begin_layout Standard
12022 centering}m{1.25cm-6.2pt}
12025 \begin_layout Standard
12030 means, that the commands inside the braces are applied before the cell
12034 \begin_layout Standard
12035 Although we have chosen centered alignment for the text of the multicolumn
12036 cell, it is still left aligned.
12037 This is because LyX only applies the alignment to single columns.
12038 So we have to use for the multicolumn the LaTeX-argument
12041 \begin_layout Standard
12049 \begin_layout Subsection
12054 \begin_layout Plain Layout
12064 \begin_layout Plain Layout
12074 \begin_layout Plain Layout
12075 LaTeX-packages ! multirow
12083 \begin_layout Standard
12084 In contrary to multicolumns multirows are not yet supported by LyX so a
12085 bit of TeX-Code needs to be used.
12086 To use multirows load the LaTeX-package
12090 in your document preamble with the command
12093 \begin_layout Standard
12098 usepackage{multirow}
12101 \begin_layout Standard
12102 Multirows are created with the command
12105 \begin_layout Standard
12110 multirow{number of rows}{cell width}{cell entry}
12113 \begin_layout Standard
12114 To create the following table:
12117 \begin_layout Standard
12122 \begin_layout Plain Layout
12136 \begin_inset Tabular
12137 <lyxtabular version="3" rows="3" columns="3">
12139 <column alignment="center" valignment="top" width="0">
12140 <column alignment="center" valignment="top" width="0">
12141 <column alignment="center" valignment="top" width="0">
12143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12146 \begin_layout Plain Layout
12152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12155 \begin_layout Plain Layout
12161 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12164 \begin_layout Plain Layout
12172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12175 \begin_layout Plain Layout
12179 \begin_layout Plain Layout
12183 multirow{2}{2.5cm}{
12192 \begin_layout Plain Layout
12204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12207 \begin_layout Plain Layout
12213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12216 \begin_layout Plain Layout
12224 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12227 \begin_layout Plain Layout
12233 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12236 \begin_layout Plain Layout
12242 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12245 \begin_layout Plain Layout
12260 \begin_layout Plain Layout
12276 \begin_layout Standard
12277 create a 3×3 table.
12278 To get rid of the line above the last cell in the first column, the cell
12279 is marked as multicolumn and the upper border is unset.
12280 The multirow is now created in the second row of the first column by inserting
12284 \begin_layout Standard
12289 multirow{2}{2.5cm}{
12292 \begin_layout Standard
12294 According to the command parameters the multirow spans now two rows and
12296 \begin_inset Space \thinspace{}
12300 The content of the multirow cell follows outside the TeX-Code box and the
12301 command is finished with a right brace
12305 in another TeX-Code-box behind the text.
12308 \begin_layout Standard
12315 left-aligns its content by default.
12316 To override the default, renew the command
12325 \begin_layout Standard
12337 \begin_layout Standard
12338 in TeX-Code in the document preamble.
12339 Then all entries of multirow cells in the document are centered.
12340 If centering is only needed for several tables, you can renew the command
12341 in an TeX-Code box just before the table instead of the preamble.
12342 If the text should be right-aligned, replace
12355 To return to left-alignment
12364 \begin_layout Section
12366 \begin_inset CommandInset label
12368 name "sec:Formal-Tables"
12376 \begin_layout Plain Layout
12385 \begin_layout Standard
12386 Tables are often typeset in books similar to Table
12387 \begin_inset Space ~
12391 \begin_inset CommandInset ref
12393 reference "tab:Example-booktabs-table"
12398 This kind of tables is called
12399 \begin_inset Quotes eld
12407 \begin_inset Quotes erd
12411 To make a table a formal table use the option
12419 tab of the table dialog.
12422 \begin_layout Standard
12423 \begin_inset Float table
12429 \begin_layout Plain Layout
12430 \begin_inset Caption
12432 \begin_layout Plain Layout
12433 \begin_inset CommandInset label
12435 name "tab:Example-booktabs-table"
12439 Example booktabs-table
12447 \begin_layout Plain Layout
12449 \begin_inset Tabular
12450 <lyxtabular version="3" rows="8" columns="4">
12451 <features booktabs="true">
12452 <column alignment="center" valignment="top" width="0">
12453 <column alignment="center" valignment="top" width="0">
12454 <column alignment="center" valignment="top" width="0">
12455 <column alignment="center" valignment="top" width="0">
12457 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12460 \begin_layout Plain Layout
12466 <cell alignment="center" valignment="top" topline="true" usebox="none">
12469 \begin_layout Plain Layout
12471 \begin_inset Formula $\,$
12479 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
12482 \begin_layout Plain Layout
12484 \begin_inset Formula $\,$
12492 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12495 \begin_layout Plain Layout
12503 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12506 \begin_layout Plain Layout
12510 \begin_layout Plain Layout
12523 \begin_layout Plain Layout
12532 Detector thickness [µm]
12537 <cell alignment="center" valignment="top" usebox="none">
12540 \begin_layout Plain Layout
12546 <cell alignment="center" valignment="top" usebox="none">
12549 \begin_layout Plain Layout
12555 <cell alignment="center" valignment="top" usebox="none">
12558 \begin_layout Plain Layout
12566 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12569 \begin_layout Plain Layout
12575 <cell alignment="center" valignment="top" topline="true" usebox="none">
12578 \begin_layout Plain Layout
12584 <cell alignment="center" valignment="top" topline="true" usebox="none">
12587 \begin_layout Plain Layout
12593 <cell alignment="center" valignment="top" topline="true" usebox="none">
12596 \begin_layout Plain Layout
12603 <row topspace="default">
12604 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12607 \begin_layout Plain Layout
12608 Spatial resolution [µm]
12613 <cell alignment="center" valignment="top" usebox="none">
12616 \begin_layout Plain Layout
12622 <cell alignment="center" valignment="top" usebox="none">
12625 \begin_layout Plain Layout
12631 <cell alignment="center" valignment="top" usebox="none">
12634 \begin_layout Plain Layout
12641 <row topspace="default">
12642 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12645 \begin_layout Plain Layout
12647 \begin_inset Formula $f_{\mathrm{max}}$
12655 <cell alignment="center" valignment="top" usebox="none">
12658 \begin_layout Plain Layout
12664 <cell alignment="center" valignment="top" usebox="none">
12667 \begin_layout Plain Layout
12673 <cell alignment="center" valignment="top" usebox="none">
12676 \begin_layout Plain Layout
12683 <row topspace="default">
12684 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12687 \begin_layout Plain Layout
12691 \begin_layout Plain Layout
12695 cmidrule(l{10pt}){1-1}
12700 LSF-spatial resolution
12705 <cell alignment="center" valignment="top" usebox="none">
12708 \begin_layout Plain Layout
12714 <cell alignment="center" valignment="top" usebox="none">
12717 \begin_layout Plain Layout
12723 <cell alignment="center" valignment="top" usebox="none">
12726 \begin_layout Plain Layout
12734 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12737 \begin_layout Plain Layout
12743 <cell alignment="center" valignment="top" usebox="none">
12746 \begin_layout Plain Layout
12752 <cell alignment="center" valignment="top" usebox="none">
12755 \begin_layout Plain Layout
12761 <cell alignment="center" valignment="top" usebox="none">
12764 \begin_layout Plain Layout
12772 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12775 \begin_layout Plain Layout
12781 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12784 \begin_layout Plain Layout
12790 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12793 \begin_layout Plain Layout
12799 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12802 \begin_layout Plain Layout
12821 \begin_layout Standard
12822 Spaces to table rows can be added using the
12826 tab of the table dialog as described in section
12827 \begin_inset Space ~
12831 \begin_inset CommandInset ref
12833 reference "sub:Row-Spacing"
12840 \begin_layout Standard
12841 In contrary to normal tables, formal tables have no vertical table lines.
12842 The horizontal table lines can be set like for normal tables but they appear
12843 with different width in the output:
12844 \begin_inset Newline newline
12847 The first and the last table line have a default width of 0.08
12848 \begin_inset Space \thinspace{}
12851 em while the other lines have a default width of 0.05
12852 \begin_inset Space \thinspace{}
12858 \begin_layout Standard
12859 The default widths can be changed with the following preamble lines
12862 \begin_layout Standard
12872 \begin_inset Newline newline
12884 \begin_layout Standard
12885 This example is for the first line, the so called
12890 If you want to change the width for the last line, replace
12899 To change the width for the other lines replace
12908 You can use all units listed in appendix
12909 \begin_inset Space ~
12913 \begin_inset CommandInset ref
12915 reference "cha:Units-available-in"
12922 \begin_layout Standard
12923 Lines that don't span over all table columns can be created by setting a
12924 table line for multicolumn cells.
12925 LyX will then internally use the command
12931 to create this line.
12935 \begin_layout Standard
12940 cmidrule[width](trim){startcol-endcol}
12943 \begin_layout Standard
12950 are are currently not supported by LyX so you have to use TeX-Code to be
12958 s can manually be created by inserting the command as TeX-Code as first
12959 cell entry of the first cell of a row.
12960 The line is then drawn in the output above the current row.
12963 \begin_layout Standard
12964 The default for the width is 0.03
12965 \begin_inset Space \thinspace{}
12969 Startcol is the number of the column where the line starts and endcol the
12970 column number where the line ends.
12971 The endcol always needs to be specified, also when the line should span
12973 The optional parameter trim could be either
12981 where the trimwidth is also optional.
12982 Using for example the parameter
12986 means that the line is trimmed from its left end by 2
12987 \begin_inset Space \thinspace{}
12991 If you don't specify the trimwidth the lines are trimmed by the default
12993 \begin_inset Space \thinspace{}
12999 \begin_layout Standard
13000 \begin_inset VSpace bigskip
13004 \begin_inset Space ~
13008 \begin_inset CommandInset ref
13010 reference "tab:Example-booktabs-table"
13014 was created using the commands
13017 \begin_layout Standard
13027 \begin_layout Standard
13028 at the beginning of the in the second row and
13031 \begin_layout Standard
13036 cmidrule(l{10pt}){1-1}
13039 \begin_layout Standard
13043 \begin_layout Standard
13044 \begin_inset VSpace bigskip
13050 \begin_layout Standard
13051 You might want to have overlapping
13058 \begin_inset Space ~
13062 \begin_inset CommandInset ref
13064 reference "tab:Special-booktabs-table"
13069 This can be achieved with the TeX-Code command
13072 \begin_layout Standard
13080 \begin_layout Standard
13081 The command that was used for the second row of Table
13082 \begin_inset Space ~
13086 \begin_inset CommandInset ref
13088 reference "tab:Special-booktabs-table"
13095 \begin_layout Standard
13109 \begin_layout Standard
13110 The command for the sixth row is
13113 \begin_layout Standard
13125 \begin_layout Standard
13126 \begin_inset VSpace bigskip
13132 \begin_layout Standard
13133 If you are anyway not satisfied with the border line spacing, you can use
13134 the following command to produce lines that span over all table columns
13139 \begin_layout Standard
13144 specialrule{width}{space above}{space below}
13147 \begin_layout Standard
13148 For more informations about these specialties, we refer to the manual of
13154 \begin_inset CommandInset citation
13164 \begin_layout Plain Layout
13165 LaTeX-packages ! booktabs
13173 \begin_layout Standard
13174 \begin_inset Float table
13180 \begin_layout Plain Layout
13181 \begin_inset Caption
13183 \begin_layout Plain Layout
13184 \begin_inset CommandInset label
13186 name "tab:Special-booktabs-table"
13190 Special booktabs-table
13198 \begin_layout Plain Layout
13200 \begin_inset Tabular
13201 <lyxtabular version="3" rows="8" columns="4">
13202 <features booktabs="true">
13203 <column alignment="center" valignment="top" width="0">
13204 <column alignment="center" valignment="top" width="0">
13205 <column alignment="center" valignment="top" width="0">
13206 <column alignment="center" valignment="top" width="0">
13208 <cell alignment="center" valignment="top" topline="true" usebox="none">
13211 \begin_layout Plain Layout
13217 <cell alignment="center" valignment="top" topline="true" usebox="none">
13220 \begin_layout Plain Layout
13222 \begin_inset Space \thinspace{}
13230 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
13233 \begin_layout Plain Layout
13235 \begin_inset Space \thinspace{}
13243 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13246 \begin_layout Plain Layout
13254 <cell alignment="center" valignment="top" usebox="none">
13257 \begin_layout Plain Layout
13261 \begin_layout Plain Layout
13274 \begin_layout Plain Layout
13287 \begin_layout Plain Layout
13300 \begin_layout Plain Layout
13309 Detector thickness [µm]
13314 <cell alignment="center" valignment="top" usebox="none">
13317 \begin_layout Plain Layout
13323 <cell alignment="center" valignment="top" usebox="none">
13326 \begin_layout Plain Layout
13332 <cell alignment="center" valignment="top" usebox="none">
13335 \begin_layout Plain Layout
13343 <cell alignment="center" valignment="top" topline="true" usebox="none">
13346 \begin_layout Plain Layout
13352 <cell alignment="center" valignment="top" topline="true" usebox="none">
13355 \begin_layout Plain Layout
13361 <cell alignment="center" valignment="top" topline="true" usebox="none">
13364 \begin_layout Plain Layout
13370 <cell alignment="center" valignment="top" topline="true" usebox="none">
13373 \begin_layout Plain Layout
13380 <row topspace="default">
13381 <cell alignment="center" valignment="top" usebox="none">
13384 \begin_layout Plain Layout
13385 Spatial resolution [µm]
13390 <cell alignment="center" valignment="top" usebox="none">
13393 \begin_layout Plain Layout
13399 <cell alignment="center" valignment="top" usebox="none">
13402 \begin_layout Plain Layout
13408 <cell alignment="center" valignment="top" usebox="none">
13411 \begin_layout Plain Layout
13418 <row topspace="default">
13419 <cell alignment="center" valignment="top" usebox="none">
13422 \begin_layout Plain Layout
13424 \begin_inset Formula $f_{\mathrm{max}}$
13432 <cell alignment="center" valignment="top" usebox="none">
13435 \begin_layout Plain Layout
13441 <cell alignment="center" valignment="top" usebox="none">
13444 \begin_layout Plain Layout
13450 <cell alignment="center" valignment="top" usebox="none">
13453 \begin_layout Plain Layout
13461 <cell alignment="center" valignment="top" topline="true" usebox="none">
13464 \begin_layout Plain Layout
13468 \begin_layout Plain Layout
13481 \begin_layout Plain Layout
13490 LSF-spatial resolution
13495 <cell alignment="center" valignment="top" topline="true" usebox="none">
13498 \begin_layout Plain Layout
13504 <cell alignment="center" valignment="top" topline="true" usebox="none">
13507 \begin_layout Plain Layout
13513 <cell alignment="center" valignment="top" topline="true" usebox="none">
13516 \begin_layout Plain Layout
13524 <cell alignment="center" valignment="top" usebox="none">
13527 \begin_layout Plain Layout
13533 <cell alignment="center" valignment="top" usebox="none">
13536 \begin_layout Plain Layout
13542 <cell alignment="center" valignment="top" usebox="none">
13545 \begin_layout Plain Layout
13551 <cell alignment="center" valignment="top" usebox="none">
13554 \begin_layout Plain Layout
13562 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13565 \begin_layout Plain Layout
13571 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13574 \begin_layout Plain Layout
13580 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13583 \begin_layout Plain Layout
13589 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13592 \begin_layout Plain Layout
13611 \begin_layout Section
13612 Vertical Table Alignment
13616 \begin_layout Plain Layout
13625 \begin_layout Standard
13626 To align tables vertically in a text line the table must be inside a box.
13627 The box can then be vertically aligned as described in section
13628 \begin_inset Space ~
13632 \begin_inset CommandInset ref
13634 reference "sec:Box-Dialog"
13641 \begin_layout Standard
13642 In the following example the tables are inside a minipage
13646 \begin_layout Plain Layout
13647 Minipages are described in section
13648 \begin_inset Space ~
13652 \begin_inset CommandInset ref
13654 reference "sec:Minipages"
13663 box that has a width of 15
13664 \begin_inset Space \thinspace{}
13670 \begin_layout Itemize
13672 \begin_inset Box Frameless
13681 height_special "totalheight"
13684 \begin_layout Plain Layout
13685 \begin_inset Tabular
13686 <lyxtabular version="3" rows="3" columns="3">
13688 <column alignment="center" valignment="top" width="0">
13689 <column alignment="center" valignment="top" width="0">
13690 <column alignment="center" valignment="top" width="0">
13692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13695 \begin_layout Plain Layout
13701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13704 \begin_layout Plain Layout
13710 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13713 \begin_layout Plain Layout
13721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13724 \begin_layout Plain Layout
13730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13733 \begin_layout Plain Layout
13739 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13742 \begin_layout Plain Layout
13750 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13753 \begin_layout Plain Layout
13759 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13762 \begin_layout Plain Layout
13768 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13771 \begin_layout Plain Layout
13791 \begin_layout Plain Layout
13803 \begin_inset Box Frameless
13812 height_special "totalheight"
13815 \begin_layout Plain Layout
13816 \begin_inset Tabular
13817 <lyxtabular version="3" rows="3" columns="3">
13819 <column alignment="center" valignment="top" width="0">
13820 <column alignment="center" valignment="top" width="0">
13821 <column alignment="center" valignment="top" width="0">
13823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13826 \begin_layout Plain Layout
13832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13835 \begin_layout Plain Layout
13841 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13844 \begin_layout Plain Layout
13852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13855 \begin_layout Plain Layout
13861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13864 \begin_layout Plain Layout
13870 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13873 \begin_layout Plain Layout
13881 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13884 \begin_layout Plain Layout
13890 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13893 \begin_layout Plain Layout
13899 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13902 \begin_layout Plain Layout
13922 \begin_layout Plain Layout
13932 \begin_layout Itemize
13934 \begin_inset Box Frameless
13943 height_special "totalheight"
13946 \begin_layout Plain Layout
13947 \begin_inset Tabular
13948 <lyxtabular version="3" rows="3" columns="3">
13950 <column alignment="center" valignment="top" width="0">
13951 <column alignment="center" valignment="top" width="0">
13952 <column alignment="center" valignment="top" width="0">
13954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13957 \begin_layout Plain Layout
13963 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13966 \begin_layout Plain Layout
13972 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13975 \begin_layout Plain Layout
13983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13986 \begin_layout Plain Layout
13992 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13995 \begin_layout Plain Layout
14001 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14004 \begin_layout Plain Layout
14012 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14015 \begin_layout Plain Layout
14021 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14024 \begin_layout Plain Layout
14030 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14033 \begin_layout Plain Layout
14052 \begin_layout Itemize
14054 \begin_inset Box Frameless
14063 height_special "totalheight"
14066 \begin_layout Plain Layout
14067 \begin_inset Tabular
14068 <lyxtabular version="3" rows="3" columns="3">
14070 <column alignment="center" valignment="top" width="0">
14071 <column alignment="center" valignment="top" width="0">
14072 <column alignment="center" valignment="top" width="0">
14074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14077 \begin_layout Plain Layout
14083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14086 \begin_layout Plain Layout
14092 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14095 \begin_layout Plain Layout
14103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14106 \begin_layout Plain Layout
14112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14115 \begin_layout Plain Layout
14121 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14124 \begin_layout Plain Layout
14132 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14135 \begin_layout Plain Layout
14141 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14144 \begin_layout Plain Layout
14150 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14153 \begin_layout Plain Layout
14173 \begin_layout Plain Layout
14185 \begin_inset Box Frameless
14194 height_special "totalheight"
14197 \begin_layout Plain Layout
14198 \begin_inset Tabular
14199 <lyxtabular version="3" rows="3" columns="3">
14201 <column alignment="center" valignment="top" width="0">
14202 <column alignment="center" valignment="top" width="0">
14203 <column alignment="center" valignment="top" width="0">
14205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14208 \begin_layout Plain Layout
14214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14217 \begin_layout Plain Layout
14223 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14226 \begin_layout Plain Layout
14234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14237 \begin_layout Plain Layout
14243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14246 \begin_layout Plain Layout
14252 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14255 \begin_layout Plain Layout
14263 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14266 \begin_layout Plain Layout
14272 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14275 \begin_layout Plain Layout
14281 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14284 \begin_layout Plain Layout
14304 \begin_layout Plain Layout
14314 \begin_layout Standard
14315 As you can see, the content of the first and last table row is not correctly
14316 aligned with the text line where the table is in.
14317 To get this alignment, the minipage box must be set into a raisebox
14321 \begin_layout Plain Layout
14322 Raiseboxes are described in section
14323 \begin_inset Space ~
14327 \begin_inset CommandInset ref
14329 reference "sub:Vertical-Alignment"
14339 In the example above the second table in the first item is aligned using
14340 the TeX-Code-command
14343 \begin_layout Standard
14353 \begin_layout Standard
14355 Behind the box the closing brace
14359 is inserted as TeX-Code.
14360 For the second table in the last item the command
14363 \begin_layout Standard
14373 \begin_layout Standard
14377 \begin_layout Standard
14378 \begin_inset Note Greyedout
14381 \begin_layout Plain Layout
14386 The alignment of the table row content to the surrounding text line is
14388 The needed factor of the
14394 command for this alignment depends on the document font, the font size,
14395 and the table line thickness.
14403 \begin_layout Section
14405 \begin_inset CommandInset label
14407 name "sec:Colored-Tables"
14415 \begin_layout Plain Layout
14424 \begin_layout Subsection
14429 \begin_layout Plain Layout
14430 Table Color ! for Cells
14439 \begin_layout Plain Layout
14440 Color ! for Table Cells
14448 \begin_layout Standard
14449 \begin_inset Float table
14455 \begin_layout Plain Layout
14456 \begin_inset Caption
14458 \begin_layout Plain Layout
14459 \begin_inset CommandInset label
14461 name "tab:Table-colored-without"
14465 Table colored without using the package
14470 \begin_inset OptArg
14473 \begin_layout Plain Layout
14474 Table without colortbl
14487 \begin_layout Plain Layout
14489 \begin_inset Tabular
14490 <lyxtabular version="3" rows="3" columns="3">
14492 <column alignment="center" valignment="top" width="0">
14493 <column alignment="center" valignment="top" width="0">
14494 <column alignment="center" valignment="top" width="0">
14496 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14499 \begin_layout Plain Layout
14507 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14510 \begin_layout Plain Layout
14518 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14521 \begin_layout Plain Layout
14531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14534 \begin_layout Plain Layout
14542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14545 \begin_layout Plain Layout
14553 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14556 \begin_layout Plain Layout
14566 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14569 \begin_layout Plain Layout
14577 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14580 \begin_layout Plain Layout
14588 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14591 \begin_layout Plain Layout
14612 \begin_layout Standard
14613 If you only need colored text, mark the cells and choose a color in the
14616 Edit\SpecialChar \menuseparator
14618 \begin_inset Space ~
14624 This was used to create Table
14625 \begin_inset Space ~
14629 \begin_inset CommandInset ref
14631 reference "tab:Table-colored-without"
14636 In any other case you have to use the LaTeX-package
14644 \begin_layout Plain Layout
14645 LaTeX-packages ! colortbl
14653 \begin_layout Standard
14657 \begin_layout Plain Layout
14667 \begin_inset Note Note
14670 \begin_layout Plain Layout
14671 The following section part will only be displayed when the LaTeX-package
14684 \begin_layout Standard
14685 To create colored tables,
14689 must be loaded in the preamble with the line
14692 \begin_layout Standard
14697 usepackage{colortbl}
14700 \begin_layout Standard
14701 The color of a column is adjusted with the command
14704 \begin_layout Standard
14709 columncolor{name of color}
14712 \begin_layout Standard
14718 More about the command
14722 is described in section
14723 \begin_inset Space ~
14727 \begin_inset CommandInset ref
14729 reference "sub:Multicolumn-Calculations"
14736 \begin_layout Standard
14737 The following color names are predefined:
14740 \begin_layout Standard
14774 \begin_layout Standard
14775 \begin_inset VSpace medskip
14781 \begin_layout Standard
14782 You can also define your own color with the command
14785 \begin_layout Standard
14790 definecolor{color name}{color model}{color values}
14793 \begin_layout Standard
14794 The color model can be
14797 \begin_layout Labeling
14798 \labelwidthstring 00.00.0000
14799 cmyk: cyan, magenta, yellow, black
14802 \begin_layout Labeling
14803 \labelwidthstring 00.00.0000
14804 rgb: red, green blue
14807 \begin_layout Labeling
14808 \labelwidthstring 00.00.0000
14812 \begin_layout Standard
14813 and the color values are comma separated numbers between 0 and 1 describing
14814 the factor for the corresponding color of the color model.
14817 \begin_layout Standard
14819 \begin_inset Space \thinspace{}
14823 \begin_inset Space ~
14830 " in the preamble with
14833 \begin_layout Standard
14838 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14841 \begin_layout Standard
14849 \begin_layout Standard
14854 definecolor{lightgray}{gray}{0.8}
14857 \begin_layout Standard
14858 \begin_inset VSpace medskip
14864 \begin_layout Standard
14865 Lines are colored with the command
14868 \begin_layout Standard
14873 rowcolor{name of color}
14876 \begin_layout Standard
14877 and cells are colored with the command
14880 \begin_layout Standard
14885 cellcolor{name of color}
14888 \begin_layout Standard
14889 Both commands are inserted at the beginning of a cell as TeX-Code.
14892 \begin_layout Standard
14893 To color characters in the table, mark the cells and use the LyX menu
14895 Edit\SpecialChar \menuseparator
14897 \begin_inset Space ~
14903 If a cell contains TeX-Code mark only the characters, otherwise the colored
14904 TeX-Code will cause LaTeX-errors.
14907 \begin_layout Standard
14908 \begin_inset Note Greyedout
14911 \begin_layout Plain Layout
14916 Not all DVI-viewers are able to display self-defined colors.
14924 \begin_layout Standard
14925 \begin_inset VSpace bigskip
14931 \begin_layout Standard
14933 \begin_inset Space ~
14937 \begin_inset CommandInset ref
14939 reference "tab:Table-colored-using"
14943 do the following: The color of the first column should be
14951 \begin_layout Standard
14956 columncolor{darkgreen}
14961 \begin_layout Standard
14962 as LaTeX-argument for this column.
14963 The first row should be blue, therefore the TeX-Code command
14966 \begin_layout Standard
14974 \begin_layout Standard
14975 is inserted to the first cell of this row.
14976 Note that this overwrites the column color for the first cell.
14977 The last cell of the last row is colored magenta by inserting the TeX-Code
14981 \begin_layout Standard
14989 \begin_layout Standard
14990 The characters could now be colored using the menu
14992 Edit\SpecialChar \menuseparator
14994 \begin_inset Space ~
15002 \begin_layout Standard
15003 \begin_inset Float table
15009 \begin_layout Plain Layout
15010 \begin_inset Caption
15012 \begin_layout Plain Layout
15013 \begin_inset CommandInset label
15015 name "tab:Table-colored-using"
15019 Table colored using the package
15024 \begin_inset OptArg
15027 \begin_layout Plain Layout
15028 Table with colortbl
15041 \begin_layout Plain Layout
15043 \begin_inset Tabular
15044 <lyxtabular version="3" rows="3" columns="3">
15046 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15047 <column alignment="center" valignment="top" width="0">
15048 <column alignment="center" valignment="top" width="0">
15050 <cell alignment="center" valignment="top" usebox="none">
15053 \begin_layout Plain Layout
15057 \begin_layout Plain Layout
15073 <cell alignment="center" valignment="top" usebox="none">
15076 \begin_layout Plain Layout
15084 <cell alignment="center" valignment="top" usebox="none">
15087 \begin_layout Plain Layout
15097 <cell alignment="center" valignment="top" usebox="none">
15100 \begin_layout Plain Layout
15108 <cell alignment="center" valignment="top" usebox="none">
15111 \begin_layout Plain Layout
15119 <cell alignment="center" valignment="top" usebox="none">
15122 \begin_layout Plain Layout
15132 <cell alignment="center" valignment="top" usebox="none">
15135 \begin_layout Plain Layout
15143 <cell alignment="center" valignment="top" usebox="none">
15146 \begin_layout Plain Layout
15154 <cell alignment="center" valignment="top" usebox="none">
15157 \begin_layout Plain Layout
15161 \begin_layout Plain Layout
15190 \begin_layout Standard
15194 \begin_layout Plain Layout
15204 \begin_inset Note Note
15207 \begin_layout Plain Layout
15208 The following will be displayed when the LaTeX-package
15220 \begin_layout Standard
15221 You need to install the package
15225 to see the content of this section in the output.
15228 \begin_layout Standard
15232 \begin_layout Plain Layout
15244 \begin_layout Subsection
15249 \begin_layout Plain Layout
15250 Table Color ! for Lines
15259 \begin_layout Plain Layout
15260 Color ! for Table Lines
15268 \begin_layout Standard
15269 As described in section
15270 \begin_inset Space ~
15274 \begin_inset CommandInset ref
15276 reference "sub:Line-Thickness"
15280 , the line thickness for all lines in a table can be adjusted with the length
15289 \begin_inset Space \thinspace{}
15292 pt for all tables of this section.
15296 \begin_layout Plain Layout
15302 arrayrulewidth}{1.5pt}
15310 \begin_layout Standard
15311 To color vertical lines for example with green, create the following column
15312 format in the document preamble, according to the description in section
15313 \begin_inset Space ~
15317 \begin_inset CommandInset ref
15319 reference "sub:Customized-Format"
15326 \begin_layout Standard
15331 newcolumntype{W}{!{
15338 \begin_layout Standard
15340 \begin_inset Space ~
15344 \begin_inset CommandInset ref
15346 reference "tab:Table-with-vertical-colored"
15354 was used for the last column and
15358 for the other columns.
15361 \begin_layout Standard
15362 If you want to have several colors, define more column formats.
15365 \begin_layout Standard
15366 \begin_inset Float table
15372 \begin_layout Plain Layout
15373 \begin_inset Caption
15375 \begin_layout Plain Layout
15376 \begin_inset CommandInset label
15378 name "tab:Table-with-vertical-colored"
15382 Table with colored vertical lines
15390 \begin_layout Plain Layout
15392 \begin_inset Tabular
15393 <lyxtabular version="3" rows="3" columns="3">
15395 <column alignment="center" valignment="top" width="0" special="Wc">
15396 <column alignment="center" valignment="top" width="0" special="Wc">
15397 <column alignment="center" valignment="top" width="0" special="WcW">
15399 <cell alignment="center" valignment="top" topline="true" usebox="none">
15402 \begin_layout Plain Layout
15408 <cell alignment="center" valignment="top" topline="true" usebox="none">
15411 \begin_layout Plain Layout
15417 <cell alignment="center" valignment="top" topline="true" usebox="none">
15420 \begin_layout Plain Layout
15428 <cell alignment="center" valignment="top" topline="true" usebox="none">
15431 \begin_layout Plain Layout
15437 <cell alignment="center" valignment="top" topline="true" usebox="none">
15440 \begin_layout Plain Layout
15446 <cell alignment="center" valignment="top" topline="true" usebox="none">
15449 \begin_layout Plain Layout
15457 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15460 \begin_layout Plain Layout
15466 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15469 \begin_layout Plain Layout
15475 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15478 \begin_layout Plain Layout
15497 \begin_layout Standard
15498 \begin_inset VSpace bigskip
15501 To color horizontal lines for example with red, like in Table
15502 \begin_inset Space ~
15506 \begin_inset CommandInset ref
15508 reference "tab:Table-with-horizontal-colored"
15512 , insert these commands in TeX-Code before the table or table float:
15515 \begin_layout Standard
15525 \begin_inset Newline newline
15533 \begin_inset Newline newline
15540 \begin_layout Plain Layout
15551 arrayrulecolor{red}
15555 arrayrulecolor{black}}
15558 \begin_layout Standard
15562 \begin_layout Plain Layout
15573 \begin_layout Plain Layout
15582 \begin_layout Plain Layout
15586 arrayrulecolor{red}
15590 arrayrulecolor{black}}
15596 \begin_inset Float table
15602 \begin_layout Plain Layout
15603 \begin_inset Caption
15605 \begin_layout Plain Layout
15606 \begin_inset CommandInset label
15608 name "tab:Table-with-horizontal-colored"
15612 Table with colored horizontal lines
15620 \begin_layout Plain Layout
15622 \begin_inset Tabular
15623 <lyxtabular version="3" rows="3" columns="3">
15625 <column alignment="center" valignment="top" width="0">
15626 <column alignment="center" valignment="top" width="0">
15627 <column alignment="center" valignment="top" width="0">
15629 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15632 \begin_layout Plain Layout
15638 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15641 \begin_layout Plain Layout
15647 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15650 \begin_layout Plain Layout
15658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15661 \begin_layout Plain Layout
15667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15670 \begin_layout Plain Layout
15676 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15679 \begin_layout Plain Layout
15687 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15690 \begin_layout Plain Layout
15696 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15699 \begin_layout Plain Layout
15705 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15708 \begin_layout Plain Layout
15727 \begin_layout Standard
15728 To return to the default line color black, insert this command in TeX-Code
15729 behind the table or table float:
15732 \begin_layout Standard
15744 \begin_layout Standard
15746 \begin_inset Space ~
15750 \begin_inset CommandInset ref
15752 reference "tab:Table-with-colored"
15756 is an example with colored vertical and horizontal lines.
15759 \begin_layout Standard
15760 \begin_inset Float table
15766 \begin_layout Plain Layout
15767 \begin_inset Caption
15769 \begin_layout Plain Layout
15770 \begin_inset CommandInset label
15772 name "tab:Table-with-colored"
15776 Table with colored lines
15784 \begin_layout Plain Layout
15786 \begin_inset Tabular
15787 <lyxtabular version="3" rows="3" columns="3">
15789 <column alignment="center" valignment="top" width="0" special="Wc">
15790 <column alignment="center" valignment="top" width="0" special="Wc">
15791 <column alignment="center" valignment="top" width="0" special="WcW">
15793 <cell alignment="center" valignment="top" topline="true" usebox="none">
15796 \begin_layout Plain Layout
15802 <cell alignment="center" valignment="top" topline="true" usebox="none">
15805 \begin_layout Plain Layout
15811 <cell alignment="center" valignment="top" topline="true" usebox="none">
15814 \begin_layout Plain Layout
15822 <cell alignment="center" valignment="top" topline="true" usebox="none">
15825 \begin_layout Plain Layout
15831 <cell alignment="center" valignment="top" topline="true" usebox="none">
15834 \begin_layout Plain Layout
15840 <cell alignment="center" valignment="top" topline="true" usebox="none">
15843 \begin_layout Plain Layout
15850 <row topspace="default">
15851 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15854 \begin_layout Plain Layout
15860 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15863 \begin_layout Plain Layout
15869 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15872 \begin_layout Plain Layout
15891 \begin_layout Standard
15895 \begin_layout Plain Layout
15911 \begin_layout Standard
15915 \begin_layout Plain Layout
15921 arrayrulewidth}{0.4pt}
15929 \begin_layout Section
15930 Table Customization
15934 \begin_layout Plain Layout
15935 Table Customization
15944 \begin_layout Plain Layout
15945 Table ! Customization
15953 \begin_layout Subsection
15955 \begin_inset CommandInset label
15957 name "sub:Row-Spacing"
15965 \begin_layout Plain Layout
15966 Table Customization ! Row Spacing
15974 \begin_layout Standard
15975 You can add vertical space to table rows in the
15979 tab of the table dialog.
15980 You find there three possibilities:
15983 \begin_layout Description
15985 \begin_inset Space ~
15989 \begin_inset Space ~
15992 row will add space above the characters of the table row.
15993 If the table is a formal table
15997 \begin_layout Plain Layout
15998 Formal tables are explained in section
15999 \begin_inset Space ~
16003 \begin_inset CommandInset ref
16005 reference "sec:Formal-Tables"
16014 LyX will insert as default 0.5
16015 \begin_inset Space \thinspace{}
16019 For normal tables the inserted space will unfortunately destroy the vertical
16020 table lines as in the following table:
16021 \begin_inset VSpace medskip
16025 \begin_inset Newline newline
16029 \begin_inset Space \hspace*{}
16034 \begin_inset Space \hfill{}
16038 \begin_inset Tabular
16039 <lyxtabular version="3" rows="3" columns="1">
16041 <column alignment="center" valignment="top" width="0">
16043 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16046 \begin_layout Plain Layout
16053 <row topspace="3mm">
16054 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16057 \begin_layout Plain Layout
16059 \begin_inset Space \thinspace{}
16062 mm space top of row
16069 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16072 \begin_layout Plain Layout
16084 \begin_inset Space \hfill{}
16088 \begin_inset Space \hspace*{}
16093 \begin_inset VSpace medskip
16097 \begin_inset Newline newline
16100 So inserting space to the top of row for normal tables is only useful when
16101 you don't have vertical lines.
16104 \begin_layout Description
16106 \begin_inset Space ~
16110 \begin_inset Space ~
16113 row will add space below the characters of the table row.
16114 If the table is a formal table LyX will insert as default 0.5
16115 \begin_inset Space \thinspace{}
16118 em space, for normal tables the default size is 2
16119 \begin_inset Space \thinspace{}
16125 \begin_layout Description
16127 \begin_inset Space ~
16130 rows adds space between the current and the following row.
16131 If the table is a formal table LyX will insert as default 0.5
16132 \begin_inset Space \thinspace{}
16136 For normal tables the inserted space will unfortunately destroy the vertical
16137 table lines as in the following table:
16138 \begin_inset VSpace medskip
16142 \begin_inset Newline newline
16146 \begin_inset Space \hspace*{}
16151 \begin_inset Space \hfill{}
16155 \begin_inset Tabular
16156 <lyxtabular version="3" rows="3" columns="1">
16158 <column alignment="center" valignment="top" width="0">
16160 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16163 \begin_layout Plain Layout
16170 <row interlinespace="3mm">
16171 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16174 \begin_layout Plain Layout
16175 \begin_inset Formula $\downarrow$
16179 \begin_inset Space \thinspace{}
16182 mm space between row
16183 \begin_inset Formula $\downarrow$
16193 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16196 \begin_layout Plain Layout
16197 \begin_inset Formula $\uparrow$
16201 \begin_inset Space \thinspace{}
16204 mm space between row
16205 \begin_inset Formula $\uparrow$
16219 \begin_inset Space \hfill{}
16223 \begin_inset Space \hspace*{}
16228 \begin_inset VSpace medskip
16232 \begin_inset Newline newline
16235 So inserting space between rows for normal tables is only useful when you
16236 don't have vertical lines.
16239 \begin_layout Standard
16240 \begin_inset VSpace bigskip
16243 When you want to add extra height to all cells of all tables, you can do
16244 this with the following preamble lines:
16247 \begin_layout Standard
16252 @ifundefined{extrarowheight}
16253 \begin_inset Newline newline
16260 \begin_layout Plain Layout
16271 usepackage{array}}{}
16272 \begin_inset Newline newline
16279 extrarowheight}{height}
16282 \begin_layout Standard
16283 But this has the disadvantage that the cell texts are no longer exactly
16284 vertically centered.
16289 will be loaded automatically by LyX when you use self defined table formats.
16290 To avoid that it is loaded twice the command
16296 is used in the above command.)
16299 \begin_layout Subsection
16300 Special Cell Alignment
16304 \begin_layout Plain Layout
16305 Table Customization ! Special Cell Alignment
16313 \begin_layout Standard
16314 Sometimes it looks better when the cell entries of a column are aligned
16315 with a special character, e.
16316 \begin_inset Space \thinspace{}
16320 \begin_inset Space ~
16323 with the decimal separator as in Table
16324 \begin_inset Space ~
16328 \begin_inset CommandInset ref
16330 reference "tab:Table-cells-of"
16337 \begin_layout Standard
16338 \begin_inset Float table
16344 \begin_layout Plain Layout
16345 \begin_inset Caption
16347 \begin_layout Plain Layout
16348 \begin_inset CommandInset label
16350 name "tab:Table-cells-of"
16354 Table cells of a column aligned with the decimal separator.
16362 \begin_layout Plain Layout
16364 \begin_inset Tabular
16365 <lyxtabular version="3" rows="4" columns="2">
16367 <column alignment="right" valignment="top" width="0">
16368 <column alignment="left" valignment="top" width="0" special="@{}l">
16370 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16373 \begin_layout Plain Layout
16379 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16382 \begin_layout Plain Layout
16390 <cell alignment="center" valignment="top" usebox="none">
16393 \begin_layout Plain Layout
16399 <cell alignment="center" valignment="top" usebox="none">
16402 \begin_layout Plain Layout
16410 <cell alignment="center" valignment="top" usebox="none">
16413 \begin_layout Plain Layout
16419 <cell alignment="center" valignment="top" usebox="none">
16422 \begin_layout Plain Layout
16430 <cell alignment="center" valignment="top" usebox="none">
16433 \begin_layout Plain Layout
16439 <cell alignment="center" valignment="top" usebox="none">
16442 \begin_layout Plain Layout
16461 \begin_layout Standard
16462 This table was created with a 4×2 table.
16463 The heading is a centered multicolumn.
16464 The first column is right-aligned and contains the digits before the decimal
16465 point and the decimal point.
16466 The second column is left aligned and contains the digits after the decimal
16468 To omit the space that is normally between two table columns, use the following
16469 LaTeX-argument for the second column:
16472 \begin_layout Standard
16478 \begin_layout Standard
16480 \begin_inset Space ~
16484 \begin_inset CommandInset ref
16486 reference "tab:Several-table-cell"
16490 shows some example alignments.
16491 For the alignment with the relation sign, you must add the second smallest
16492 math-space at the beginning of the last column to get the correct space
16493 surrounding the relation sign.
16496 \begin_layout Standard
16497 \begin_inset Float table
16502 \begin_layout Plain Layout
16503 \begin_inset Caption
16505 \begin_layout Plain Layout
16506 \begin_inset CommandInset label
16508 name "tab:Several-table-cell"
16512 Several table cell alignments.
16520 \begin_layout Plain Layout
16522 \begin_inset Tabular
16523 <lyxtabular version="3" rows="4" columns="6">
16525 <column alignment="right" valignment="top" width="0">
16526 <column alignment="left" valignment="top" width="0" special="@{}l">
16527 <column alignment="right" valignment="top" width="0">
16528 <column alignment="left" valignment="top" width="0" special="@{}l">
16529 <column alignment="right" valignment="top" width="0">
16530 <column alignment="left" valignment="top" width="0" special="@{}l">
16532 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16535 \begin_layout Plain Layout
16541 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16544 \begin_layout Plain Layout
16550 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16553 \begin_layout Plain Layout
16559 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16562 \begin_layout Plain Layout
16568 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16571 \begin_layout Plain Layout
16577 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16580 \begin_layout Plain Layout
16588 <cell alignment="center" valignment="top" usebox="none">
16591 \begin_layout Plain Layout
16597 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16600 \begin_layout Plain Layout
16602 \begin_inset Space \thinspace{}
16610 <cell alignment="center" valignment="top" usebox="none">
16613 \begin_layout Plain Layout
16614 \begin_inset Formula $10\cdot$
16622 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16625 \begin_layout Plain Layout
16626 \begin_inset Formula $10^{\mbox{-}17}$
16634 <cell alignment="center" valignment="top" usebox="none">
16637 \begin_layout Plain Layout
16638 \begin_inset Formula $\Gamma(t)\propto$
16646 <cell alignment="center" valignment="top" usebox="none">
16649 \begin_layout Plain Layout
16650 \begin_inset Formula $\:\Upsilon(t)$
16660 <cell alignment="center" valignment="top" usebox="none">
16663 \begin_layout Plain Layout
16669 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16672 \begin_layout Plain Layout
16674 \begin_inset Space \thinspace{}
16682 <cell alignment="center" valignment="top" usebox="none">
16685 \begin_layout Plain Layout
16686 \begin_inset Formula $5.78\cdot$
16694 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16697 \begin_layout Plain Layout
16698 \begin_inset Formula $10^{7}$
16706 <cell alignment="center" valignment="top" usebox="none">
16709 \begin_layout Plain Layout
16710 \begin_inset Formula $A\ne$
16718 <cell alignment="center" valignment="top" usebox="none">
16721 \begin_layout Plain Layout
16722 \begin_inset Formula $\: B_{\mathrm{red}}$
16732 <cell alignment="center" valignment="top" usebox="none">
16735 \begin_layout Plain Layout
16741 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16744 \begin_layout Plain Layout
16746 \begin_inset Space \thinspace{}
16754 <cell alignment="center" valignment="top" usebox="none">
16757 \begin_layout Plain Layout
16759 \begin_inset Formula $33.5\cdot$
16767 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16770 \begin_layout Plain Layout
16771 \begin_inset Formula $10^{4}$
16779 <cell alignment="center" valignment="top" usebox="none">
16782 \begin_layout Plain Layout
16783 \begin_inset Formula $\sin(\alpha)\ge$
16791 <cell alignment="center" valignment="top" usebox="none">
16794 \begin_layout Plain Layout
16795 \begin_inset Formula $\:\sin(\beta)$
16816 \begin_layout Standard
16817 \begin_inset VSpace bigskip
16820 There is also the LaTeX-package
16828 \begin_layout Plain Layout
16829 LaTeX-packages ! dcolumn
16834 that provides table cell alignments.
16835 But this unfortunately treats the cell entries as math and doesn't allow
16836 formulas in table cells: The first column of Table
16837 \begin_inset Space ~
16841 \begin_inset CommandInset ref
16843 reference "tab:Several-table-cell"
16851 like the first column in Table
16852 \begin_inset Space ~
16856 \begin_inset CommandInset ref
16858 reference "tab:Alignments-when"
16862 and only with some tricks like the expected.
16863 The alignment of the second and third column of Table
16864 \begin_inset Space ~
16868 \begin_inset CommandInset ref
16870 reference "tab:Several-table-cell"
16874 is not possible with
16881 \begin_layout Standard
16882 \begin_inset Float table
16888 \begin_layout Plain Layout
16889 \begin_inset Caption
16891 \begin_layout Plain Layout
16892 \begin_inset CommandInset label
16894 name "tab:Alignments-when"
16898 Alignments when LaTeX-package dcolumn is used.
16899 For all column alignments tricks have to be used to get the output.
16907 \begin_layout Plain Layout
16909 \begin_inset Tabular
16910 <lyxtabular version="3" rows="4" columns="3">
16912 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
16913 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
16914 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
16916 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16919 \begin_layout Plain Layout
16925 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16928 \begin_layout Plain Layout
16934 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16937 \begin_layout Plain Layout
16945 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16948 \begin_layout Plain Layout
16950 \begin_inset Space \thinspace{}
16958 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16961 \begin_layout Plain Layout
16963 \begin_inset Space \thinspace{}
16967 \begin_inset Formula $\mbox{bottles}$
16975 <cell alignment="center" valignment="top" usebox="none">
16978 \begin_layout Plain Layout
16983 \begin_layout Plain Layout
16993 \begin_inset Formula $\mbox{bottles}$
17003 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17006 \begin_layout Plain Layout
17008 \begin_inset Space \thinspace{}
17016 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17019 \begin_layout Plain Layout
17021 \begin_inset Space \thinspace{}
17025 \begin_inset Formula $\mbox{Pixels}$
17033 <cell alignment="center" valignment="top" usebox="none">
17036 \begin_layout Plain Layout
17041 \begin_layout Plain Layout
17051 \begin_inset Formula $\mbox{Pixels}$
17061 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17064 \begin_layout Plain Layout
17066 \begin_inset Space \thinspace{}
17074 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17077 \begin_layout Plain Layout
17079 \begin_inset Space \thinspace{}
17083 \begin_inset Formula $\mbox{cm}$
17091 <cell alignment="center" valignment="top" usebox="none">
17094 \begin_layout Plain Layout
17099 \begin_layout Plain Layout
17109 \begin_inset Formula $\mbox{cm}$
17130 \begin_layout Subsection
17131 Customized Cell/Column Format
17132 \begin_inset CommandInset label
17134 name "sub:Customized-Format"
17142 \begin_layout Plain Layout
17143 Table Customization ! Cell/Column Format
17151 \begin_layout Standard
17152 Calculating the needed width for spanned columns like in section
17153 \begin_inset Space ~
17157 \begin_inset CommandInset ref
17159 reference "sub:Multicolumn-Calculations"
17163 is very annoying if you have several tables with multicolumn cells.
17164 To make life easier, you can define a cell/column format in the preamble,
17165 so that it can be used in all tables of the document.
17166 The format is defined with the command
17169 \begin_layout Standard
17174 newcolumntype{name of format}[number of arguments]{commands}
17177 \begin_layout Standard
17178 The format name may only consist of one letter.
17203 are predefined and cannot be used.
17204 But all letters are allowed as capitals.
17207 \begin_layout Standard
17208 \begin_inset VSpace medskip
17214 \begin_layout Standard
17215 For vertically and horizontally centered multicolumn cells with a fixed
17216 width you can define the cell format
17219 \begin_layout Standard
17224 newcolumntype{M}[1]{>{
17231 \begin_layout Standard
17238 avoids the problem of hyphenating the first word, as described in section
17239 \begin_inset Space ~
17243 \begin_inset CommandInset ref
17245 reference "sub:Multiple-Lines-in"
17250 Now you can simply enter
17253 \begin_layout Standard
17259 \begin_layout Standard
17260 as LaTeX-argument in the table dialog to create a multicolumn.
17263 \begin_layout Standard
17264 \begin_inset VSpace bigskip
17270 \begin_layout Standard
17271 For cells spanned by a multicolumn cell, you can define the format
17274 \begin_layout Standard
17279 newcolumntype{S}[2]{>{
17284 \begin_inset Newline newline
17291 \begin_layout Plain Layout
17306 \begin_layout Plain Layout
17317 arrayrulewidth)*(1-#2))/#2}}
17320 \begin_layout Standard
17321 This format uses equation
17322 \begin_inset CommandInset ref
17328 to calculate the needed width so that each spanned cell has the same width.
17331 \begin_layout Standard
17335 \begin_layout Standard
17338 S{width of multicolumn cell}{number of spanned columns}
17341 \begin_layout Standard
17342 as LaTeX-argument of the column.
17345 \begin_layout Standard
17346 \begin_inset VSpace bigskip
17352 \begin_layout Standard
17353 For colored columns, you can define
17356 \begin_layout Standard
17361 newcolumntype{K}[1]{>{
17368 \begin_layout Standard
17370 \begin_inset Quotes eld
17374 \begin_inset Quotes erd
17377 at the end creates a column with a flexible width whose text is horizontally
17382 \begin_layout Standard
17388 \begin_layout Standard
17392 \begin_layout Standard
17393 \begin_inset VSpace bigskip
17399 \begin_layout Standard
17401 \begin_inset Space ~
17405 \begin_inset CommandInset ref
17407 reference "tab:Table-using-user-defined"
17411 use the LaTeX-arguments
17414 \begin_layout Standard
17420 \begin_layout Standard
17421 for the first column and the multicolumn,
17424 \begin_layout Standard
17430 \begin_layout Standard
17431 for the the last column, and
17434 \begin_layout Standard
17440 \begin_layout Standard
17441 for the cells in the second column.
17444 \begin_layout Standard
17445 \begin_inset Float table
17451 \begin_layout Plain Layout
17452 \begin_inset Caption
17454 \begin_layout Plain Layout
17455 \begin_inset CommandInset label
17457 name "tab:Table-using-user-defined"
17461 Table using user-defined table formats
17469 \begin_layout Plain Layout
17471 \begin_inset Tabular
17472 <lyxtabular version="3" rows="3" columns="4">
17474 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17475 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17476 <column alignment="center" valignment="middle" width="0">
17477 <column alignment="center" valignment="middle" width="0" special="K{red}">
17479 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17482 \begin_layout Plain Layout
17483 verylongtablecellword
17488 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17491 \begin_layout Plain Layout
17492 multiple lines multicolumn
17497 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17500 \begin_layout Plain Layout
17506 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17509 \begin_layout Plain Layout
17517 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17520 \begin_layout Plain Layout
17526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17529 \begin_layout Plain Layout
17535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17538 \begin_layout Plain Layout
17544 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17547 \begin_layout Plain Layout
17555 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17558 \begin_layout Plain Layout
17564 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17567 \begin_layout Plain Layout
17573 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17576 \begin_layout Plain Layout
17582 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17585 \begin_layout Plain Layout
17604 \begin_layout Subsection
17606 \begin_inset CommandInset label
17608 name "sub:Line-Thickness"
17616 \begin_layout Plain Layout
17617 Table Customization ! Line Thickness
17625 \begin_layout Standard
17626 The line thickness for all lines in a table can be adjusted with the length
17634 To set for example a line thickness of 1.5
17635 \begin_inset Space \thinspace{}
17639 \begin_inset Space ~
17643 \begin_inset CommandInset ref
17645 reference "tab:Table-with-1.5"
17649 , insert the command
17652 \begin_layout Standard
17659 arrayrulewidth}{1.5pt}
17662 \begin_layout Standard
17663 in TeX-Code before the table or table float.
17664 The changed thickness is valid for all following tables.
17665 To use the default value again, set
17672 \begin_inset Space \thinspace{}
17675 pt in TeX-Code behind the table or table float.
17678 \begin_layout Standard
17682 \begin_layout Plain Layout
17688 arrayrulewidth}{1.5pt}
17694 \begin_inset Float table
17699 \begin_layout Plain Layout
17700 \begin_inset Caption
17702 \begin_layout Plain Layout
17703 \begin_inset CommandInset label
17705 name "tab:Table-with-1.5"
17710 \begin_inset Space \thinspace{}
17721 \begin_layout Plain Layout
17723 \begin_inset Tabular
17724 <lyxtabular version="3" rows="3" columns="3">
17726 <column alignment="center" valignment="top" width="0">
17727 <column alignment="center" valignment="top" width="0">
17728 <column alignment="center" valignment="top" width="0">
17730 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17733 \begin_layout Plain Layout
17739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17742 \begin_layout Plain Layout
17748 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17751 \begin_layout Plain Layout
17759 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17762 \begin_layout Plain Layout
17768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17771 \begin_layout Plain Layout
17777 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17780 \begin_layout Plain Layout
17788 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17791 \begin_layout Plain Layout
17797 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17800 \begin_layout Plain Layout
17806 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17809 \begin_layout Plain Layout
17829 \begin_layout Plain Layout
17835 arrayrulewidth}{0.4pt}
17843 \begin_layout Standard
17844 \begin_inset VSpace bigskip
17847 To set the line thickness to 1.5
17848 \begin_inset Space \thinspace{}
17851 pt only for horizontal lines, like in Table
17852 \begin_inset Space ~
17856 \begin_inset CommandInset ref
17858 reference "tab:Table-with-horizontal"
17862 , insert these commands in TeX-Code before the table or table float:
17865 \begin_layout Standard
17875 \begin_inset Newline newline
17883 \begin_inset Newline newline
17892 arrayrulewidth 1.5pt}
17893 \begin_inset Newline newline
17904 arrayrulewidth 0.4pt}}
17907 \begin_layout Standard
17908 To return to the default line thickness, insert this command in TeX-Code
17909 behind the table or table float:
17912 \begin_layout Standard
17924 \begin_layout Standard
17928 \begin_layout Plain Layout
17939 \begin_layout Plain Layout
17948 \begin_layout Plain Layout
17956 arrayrulewidth 1.5pt}
17959 \begin_layout Plain Layout
17969 arrayrulewidth 0.4pt}}
17975 \begin_inset Float table
17980 \begin_layout Plain Layout
17981 \begin_inset Caption
17983 \begin_layout Plain Layout
17984 \begin_inset CommandInset label
17986 name "tab:Table-with-horizontal"
17991 \begin_inset Space \thinspace{}
17994 pt thick horizontal lines
18002 \begin_layout Plain Layout
18004 \begin_inset Tabular
18005 <lyxtabular version="3" rows="3" columns="3">
18007 <column alignment="center" valignment="top" width="0">
18008 <column alignment="center" valignment="top" width="0">
18009 <column alignment="center" valignment="top" width="0">
18011 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18014 \begin_layout Plain Layout
18020 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18023 \begin_layout Plain Layout
18029 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18032 \begin_layout Plain Layout
18040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18043 \begin_layout Plain Layout
18049 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18052 \begin_layout Plain Layout
18058 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18061 \begin_layout Plain Layout
18069 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18072 \begin_layout Plain Layout
18078 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18081 \begin_layout Plain Layout
18087 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18090 \begin_layout Plain Layout
18110 \begin_layout Plain Layout
18126 \begin_layout Standard
18127 \begin_inset VSpace bigskip
18130 To set the line thickness to 1.5
18131 \begin_inset Space \thinspace{}
18134 pt only for vertical lines, create the following column format in the document
18135 preamble, according to the description in section
18136 \begin_inset Space ~
18140 \begin_inset CommandInset ref
18142 reference "sub:Customized-Format"
18149 \begin_layout Standard
18154 newcolumntype{V}{!{
18156 vrule width 1.5pt}}
18159 \begin_layout Standard
18161 \begin_inset Space ~
18165 \begin_inset CommandInset ref
18167 reference "tab:Table-with-vertical"
18174 \begin_layout Standard
18180 \begin_layout Standard
18181 was used for the last column and
18184 \begin_layout Standard
18190 \begin_layout Standard
18191 for the other columns.
18194 \begin_layout Standard
18195 \begin_inset Float table
18200 \begin_layout Plain Layout
18201 \begin_inset Caption
18203 \begin_layout Plain Layout
18204 \begin_inset CommandInset label
18206 name "tab:Table-with-vertical"
18211 \begin_inset Space \thinspace{}
18214 pt thick vertical lines
18222 \begin_layout Plain Layout
18224 \begin_inset Tabular
18225 <lyxtabular version="3" rows="3" columns="3">
18227 <column alignment="center" valignment="top" width="0" special="Vc">
18228 <column alignment="center" valignment="top" width="0" special="Vc">
18229 <column alignment="center" valignment="top" width="0" special="VcV">
18231 <cell alignment="center" valignment="top" topline="true" usebox="none">
18234 \begin_layout Plain Layout
18240 <cell alignment="center" valignment="top" topline="true" usebox="none">
18243 \begin_layout Plain Layout
18249 <cell alignment="center" valignment="top" topline="true" usebox="none">
18252 \begin_layout Plain Layout
18260 <cell alignment="center" valignment="top" topline="true" usebox="none">
18263 \begin_layout Plain Layout
18269 <cell alignment="center" valignment="top" topline="true" usebox="none">
18272 \begin_layout Plain Layout
18278 <cell alignment="center" valignment="top" topline="true" usebox="none">
18281 \begin_layout Plain Layout
18289 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18292 \begin_layout Plain Layout
18298 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18301 \begin_layout Plain Layout
18307 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18310 \begin_layout Plain Layout
18329 \begin_layout Subsection
18334 \begin_layout Plain Layout
18335 Table Customization ! Dashed Lines
18343 \begin_layout Standard
18347 \begin_layout Plain Layout
18357 \begin_inset Note Note
18360 \begin_layout Plain Layout
18361 The following section will only be displayed when the LaTeX-package
18373 \begin_layout Standard
18374 \begin_inset Float table
18380 \begin_layout Plain Layout
18381 \begin_inset Caption
18383 \begin_layout Plain Layout
18384 \begin_inset CommandInset label
18386 name "tab:Table-with-dashed"
18390 Table with dashed lines
18398 \begin_layout Plain Layout
18400 \begin_inset Tabular
18401 <lyxtabular version="3" rows="5" columns="5">
18403 <column alignment="center" valignment="top" width="0">
18404 <column alignment="center" valignment="top" width="0">
18405 <column alignment="center" valignment="top" width="0" special=":c">
18406 <column alignment="center" valignment="top" width="0">
18407 <column alignment="center" valignment="top" width="0">
18409 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18412 \begin_layout Plain Layout
18418 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18421 \begin_layout Plain Layout
18427 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18430 \begin_layout Plain Layout
18436 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18439 \begin_layout Plain Layout
18445 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18448 \begin_layout Plain Layout
18456 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18459 \begin_layout Plain Layout
18465 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18468 \begin_layout Plain Layout
18474 <cell alignment="center" valignment="top" topline="true" usebox="none">
18477 \begin_layout Plain Layout
18483 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18486 \begin_layout Plain Layout
18492 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18495 \begin_layout Plain Layout
18503 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18506 \begin_layout Plain Layout
18510 \begin_layout Plain Layout
18524 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18527 \begin_layout Plain Layout
18533 <cell alignment="center" valignment="top" usebox="none">
18536 \begin_layout Plain Layout
18542 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18545 \begin_layout Plain Layout
18551 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18554 \begin_layout Plain Layout
18562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18565 \begin_layout Plain Layout
18569 \begin_layout Plain Layout
18583 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18586 \begin_layout Plain Layout
18592 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
18595 \begin_layout Plain Layout
18601 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
18604 \begin_layout Plain Layout
18610 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18613 \begin_layout Plain Layout
18621 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18624 \begin_layout Plain Layout
18630 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18633 \begin_layout Plain Layout
18639 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18642 \begin_layout Plain Layout
18648 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18651 \begin_layout Plain Layout
18657 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18660 \begin_layout Plain Layout
18679 \begin_layout Standard
18680 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
18681 As prerequisite the LaTeX-package
18689 \begin_layout Plain Layout
18690 LaTeX-packages ! arydshln
18695 must be loaded in the document preamble with the command
18698 \begin_layout Standard
18703 usepackage{arydshln}
18706 \begin_layout Standard
18707 To make a vertical line dashed, enter the colon
18708 \begin_inset Quotes eld
18712 \begin_inset Quotes erd
18715 together with the character for the horizontal alignment as LaTeX-argument
18716 in the table cell dialog.
18719 \begin_layout Standard
18720 For a horizontal dashed line add the command
18723 \begin_layout Standard
18731 \begin_layout Standard
18732 in TeX-Code as first element of the first cell in the table row.
18735 \begin_layout Standard
18736 For dashed multicolumn lines use the command
18739 \begin_layout Standard
18744 cdashline{line number
18749 \begin_layout Standard
18750 in TeX-Code as first element of the first cell in the table row.
18751 If you have for example a multicolumn spanning over columns 2 to 4 and
18752 you want to have a dashed line above, add the command
18755 \begin_layout Standard
18763 \begin_layout Standard
18764 as first element of the first cell in the row of the multicolumn.
18767 \begin_layout Standard
18768 \begin_inset VSpace bigskip
18774 \begin_layout Standard
18776 \begin_inset Space ~
18780 \begin_inset CommandInset ref
18782 reference "tab:Table-with-dashed"
18787 \begin_inset Quotes eld
18795 \begin_inset Quotes erd
18798 as LaTeX-argument of the third column.
18799 The TeX-Code command
18805 was inserted to the first cell of the third row and the the TeX-Code command
18806 \begin_inset Newline newline
18815 was inserted to the first cell of the fourth row.
18818 \begin_layout Standard
18819 \begin_inset Note Greyedout
18822 \begin_layout Plain Layout
18827 The used LaTeX-package
18831 is apparently not compatible with the LaTeX-package
18839 \begin_layout Plain Layout
18840 LaTeX-packages ! colortbl
18845 that is used for colored tables in section
18846 \begin_inset Space ~
18850 \begin_inset CommandInset ref
18852 reference "sec:Colored-Tables"
18857 That means colored tables cannot have dashed lines.
18865 \begin_layout Standard
18869 \begin_layout Plain Layout
18879 \begin_inset Note Note
18882 \begin_layout Plain Layout
18883 The following will be displayed when the LaTeX-package
18895 \begin_layout Standard
18896 You need to install the package
18900 to see the content of this section in the output.
18903 \begin_layout Standard
18907 \begin_layout Plain Layout
18919 \begin_layout Chapter
18924 \begin_layout Plain Layout
18931 \begin_inset CommandInset label
18940 \begin_layout Section
18942 \begin_inset CommandInset label
18944 name "sec:FloatIntroduction"
18952 \begin_layout Plain Layout
18953 Floats ! Introduction
18961 \begin_layout Standard
18962 A float is a block of text associated with some sort of label, which doesn't
18963 have a fixed location.
18965 \begin_inset Quotes eld
18969 \begin_inset Quotes erd
18972 forward or backward a page or two, to wherever it fits best.
18980 \begin_inset Space ~
18985 are also floats, because they can float to the next page when there are
18986 too many notes at the page.
18989 \begin_layout Standard
18990 Floats allow a high quality layout.
18991 Images and tables can evenly be spread to the pages to avoid white space
18992 and pages without text.
18993 As the floating often destroys the context between the text and the image/table
18994 , every float can be referenced in the text.
18995 Floats are therefore numbered.
18996 Referencing is described in section
18997 \begin_inset Space ~
19001 \begin_inset CommandInset ref
19003 reference "sec:Referencing-Floats"
19010 \begin_layout Standard
19011 To insert a float, use the menu
19013 Insert\SpecialChar \menuseparator
19021 inset, a box with a label.
19022 The label will automatically be translated to the document language in
19024 Behind the label you can insert the caption text.
19025 The image or table is inserted above or below the caption in a separate
19026 paragraph within the float.
19027 More about the caption placement is described in section
19028 \begin_inset Space ~
19032 \begin_inset CommandInset ref
19034 reference "sec:Caption-Placement"
19039 To keep your LyX-document readable, you can open and close the float box
19040 by left-clicking on the box label.
19041 A closed float box looks like this:
19042 \begin_inset Graphics
19043 filename clipart/floatQt4.png
19045 scaleBeforeRotation
19049 -- a gray button with a red label.
19052 \begin_layout Standard
19053 It is recommended to insert floats as a separate paragraph to avoid possible
19054 LaTeX-errors that can occur when the surrounding text is specially formatted.
19057 \begin_layout Standard
19058 Existing figures or tables can be put into a float by marking them and then
19059 pressing the corresponding toolbar button for a new float.
19062 \begin_layout Section
19066 \begin_layout Standard
19067 Besides figure and table floats that are described in section
19068 \begin_inset Space ~
19072 \begin_inset CommandInset ref
19074 reference "sec:Figure-Floats"
19079 \begin_inset CommandInset ref
19081 reference "sec:Table-Floats"
19085 , respectively, LyX offers the float types
19092 \begin_inset Space ~
19096 \begin_inset Space ~
19104 \begin_layout Subsection
19109 \begin_layout Plain Layout
19110 Floats ! Algorithms
19116 \begin_inset CommandInset label
19118 name "sub:Algorithm-Floats"
19125 \begin_layout Standard
19126 \begin_inset Float algorithm
19132 \begin_layout Plain Layout
19133 \begin_inset Caption
19135 \begin_layout Plain Layout
19136 \begin_inset CommandInset label
19138 name "alg:Example-Algorithm-float"
19142 Example Algorithm float
19150 \begin_layout LyX-Code
19152 \begin_inset Newline newline
19155 Sum:= Sum + A(I); /*comment*/
19156 \begin_inset Newline newline
19160 \begin_inset VSpace -4mm
19171 \begin_layout Standard
19172 This float type is inserted with the menu
19174 Insert\SpecialChar \menuseparator
19175 Floats\SpecialChar \menuseparator
19179 It is used for program codes and descriptions of algorithms.
19180 A possible environment for algorithms is the
19184 , described in LyX's
19190 \begin_inset Space ~
19194 \begin_inset CommandInset ref
19196 reference "alg:Example-Algorithm-float"
19200 is an example of an algorithm float where -4
19201 \begin_inset Space \thinspace{}
19204 mm vertical space was added at the end of the float to have the bottom rule
19205 exactly below the last text line.
19208 \begin_layout Standard
19209 The float label is not automatically translated into the document language.
19210 If your document is not in English, you have to do this manually by adding
19211 the following line to the document preamble
19216 \begin_layout Standard
19221 floatname{algorithm}{your
19222 \begin_inset Space ~
19228 \begin_layout Standard
19232 \begin_inset Space ~
19238 \begin_inset Quotes eld
19246 \begin_inset Quotes erd
19252 \begin_layout Standard
19253 To insert the list of algorithms you can in this case not use the menu
19255 Insert\SpecialChar \menuseparator
19257 \begin_inset Space \thinspace{}
19261 \begin_inset Space \thinspace{}
19264 TOC\SpecialChar \menuseparator
19267 when your document is an English one.
19268 For non-English documents, use this command in TeX-Code instead:
19271 \begin_layout Standard
19276 listof{algorithm}{your
19277 \begin_inset Space ~
19283 \begin_layout Standard
19287 \begin_inset Space ~
19293 \begin_inset Quotes eld
19301 \begin_inset Quotes erd
19307 \begin_layout Standard
19308 Algorithm floats are not by default numbered in the scheme
19309 \begin_inset Quotes eld
19313 \begin_inset Quotes erd
19316 like it is the case for table and figure floats in many document-classes.
19317 To number algorithm floats in the same scheme, add this command to your
19321 \begin_layout Standard
19326 numberwithin{algorithm}{chapter}
19329 \begin_layout Standard
19330 To be able to use the command
19339 \begin_inset Space ~
19344 in the document settings the option
19347 \begin_inset Space ~
19351 \begin_inset Space ~
19355 \begin_inset Space ~
19363 \begin_layout Subsection
19368 \begin_layout Plain Layout
19369 Floats ! Text Wrap Floats
19375 \begin_inset CommandInset label
19377 name "sub:floatflt-wrap-float"
19384 \begin_layout Standard
19385 \begin_inset Wrap figure
19392 \begin_layout Plain Layout
19393 \begin_inset Graphics
19394 filename clipart/mobius.eps
19397 scaleBeforeRotation
19398 rotateOrigin center
19405 \begin_layout Plain Layout
19406 \begin_inset Caption
19408 \begin_layout Plain Layout
19409 \begin_inset CommandInset label
19411 name "fig:This-is-a"
19415 This is a wrapped figure, and this is the brilliant caption that describes
19417 \begin_inset VSpace medskip
19430 This float type is used if you want to
19431 \begin_inset Quotes eld
19435 \begin_inset Quotes erd
19438 text around a figure so that it only occupies some fraction of the column
19440 It can be inserted using the menu
19442 Insert\SpecialChar \menuseparator
19443 Floats\SpecialChar \menuseparator
19445 \begin_inset Space ~
19449 \begin_inset Space ~
19454 if the LaTeX-package
19462 \begin_layout Plain Layout
19463 LaTeX-packages ! wrapfig
19467 \begin_layout Plain Layout
19475 \begin_layout Plain Layout
19486 \begin_layout Plain Layout
19502 \begin_layout Plain Layout
19513 \begin_layout Plain Layout
19529 \begin_layout Plain Layout
19530 Installing a LaTeX-package is explained it in the
19533 \begin_inset Space ~
19543 The width and placement of the float is adjusted by right-clicking on the
19546 \begin_inset Space ~
19550 \begin_inset CommandInset ref
19552 reference "fig:This-is-a"
19556 is an example text wrap float with a width of 40
19557 \begin_inset Space \thinspace{}
19564 \begin_layout Plain Layout
19565 Available units are explained in appendix
19566 \begin_inset Space ~
19570 \begin_inset CommandInset ref
19572 reference "cha:Units-available-in"
19581 Some space was added under the caption to separate it better from the surroundi
19585 \begin_layout Standard
19590 also supports table wrap floats, but they are not yet supported by LyX.
19591 If you need this, read the documentation of
19596 \begin_inset CommandInset citation
19605 \begin_layout Standard
19606 \begin_inset Note Greyedout
19609 \begin_layout Plain Layout
19615 \begin_inset Space ~
19618 wrap float floats are fragile! E.
19619 \begin_inset Space \thinspace{}
19623 \begin_inset Space ~
19626 having a figure too close to the bottom of the page can mess things up in
19627 the way that the float doesn't appear in the output or that it is placed
19628 over some other text.
19636 \begin_layout Standard
19640 \begin_layout Itemize
19641 Wrap floats should not be placed in paragraphs that run over a page break.
19642 That means that wrap floats should better be inserted to the exact place
19643 when the document is nearly finished and you are able to estimate where
19644 page breaks will appear.
19647 \begin_layout Itemize
19648 Wrap floats should either be placed in an own paragraph before the paragraph
19649 where they should wrap into or within a paragraph.
19652 \begin_layout Itemize
19653 Wrap floats in consecutive paragraphs may cause troubles, so assure that
19654 there is a text paragraph between them as separator.
19657 \begin_layout Itemize
19658 Wrap floats are not allowed in section headings or tables.
19661 \begin_layout Section
19663 \begin_inset CommandInset label
19665 name "sec:Float-Numbering"
19673 \begin_layout Plain Layout
19682 \begin_layout Standard
19683 Floats are usually numbered either independent from the sections the floats
19684 are in, or in the scheme
19685 \begin_inset Quotes eld
19689 \begin_inset Quotes erd
19693 \begin_inset Quotes eld
19697 \begin_inset Quotes erd
19701 This depends on the used document class.
19704 \begin_layout Standard
19705 To change the section independent numbering, you can use this command in
19706 the document preamble:
19709 \begin_layout Standard
19721 \begin_layout Standard
19728 is the command that prints the table number, for figure floats, the command
19742 prints in the command above the table number as small roman number.
19745 \begin_layout Standard
19746 To change the numbering scheme for example to
19747 \begin_inset Quotes eld
19751 \begin_inset Quotes erd
19754 , use this command in the preamble:
19757 \begin_layout Standard
19762 numberwithin{table}{subsection}
19765 \begin_layout Standard
19766 To be able to use the command
19775 \begin_inset Space ~
19780 in the document settings the option
19783 \begin_inset Space ~
19787 \begin_inset Space ~
19791 \begin_inset Space ~
19799 \begin_layout Standard
19800 Please also have a look at section
19801 \begin_inset Space ~
19805 \begin_inset CommandInset ref
19807 reference "sub:Footnote-Numbering"
19811 for the details and important notes about the numbering commands.
19814 \begin_layout Section
19816 \begin_inset CommandInset label
19818 name "sec:Referencing-Floats"
19826 \begin_layout Plain Layout
19827 Floats ! References
19836 \begin_layout Plain Layout
19845 \begin_layout Standard
19846 To reference a float, insert a label into its caption using the menu
19848 Insert\SpecialChar \menuseparator
19851 or the toolbar button
19852 \begin_inset Graphics
19853 filename ../images/label-insert.png
19855 scaleBeforeRotation
19860 A grey label box like this one:
19861 \begin_inset Graphics
19862 filename clipart/labelQt4.png
19864 scaleBeforeRotation
19868 will be inserted and the label window pops up asking for the label text.
19869 LyX offers as text the first words of the caption with a prefix.
19870 The prefix depends on the float type, e.
19871 \begin_inset Space \thinspace{}
19875 \begin_inset Space ~
19878 for figure floats the prefix will be "
19885 \begin_layout Standard
19886 The label is used as anchor and name for the reference.
19887 You can refer to the label using the menu
19889 Insert\SpecialChar \menuseparator
19892 or the toolbar button
19893 \begin_inset Graphics
19894 filename ../images/dialog-show-new-inset_ref.png
19896 scaleBeforeRotation
19901 A grey cross-reference box like this one:
19902 \begin_inset Graphics
19903 filename clipart/referenceQt4.png
19905 scaleBeforeRotation
19909 will be inserted and the cross-reference window appear showing all labels
19911 If you have multiple LyX-documents opened, choose the one you are working
19912 on from the drop-list at the top of the dialog.
19913 You can now sort the labels alphabetically and then choose one.
19914 At the position of the cross-reference box the float number will appear
19918 \begin_layout Standard
19919 It is recommended to use a protected space between the cross-reference name
19920 and its number to avoid line breaks between them.
19921 If a cross-reference refers to a non-existing label, you will see two question
19922 marks in the output instead of the reference.
19925 \begin_layout Standard
19926 You can change labels at any time by clicking on the label box.
19927 References to the changed label will automatically change its link to the
19928 new label text, so that you don't need to take care about this.
19931 \begin_layout Standard
19935 \begin_inset Space ~
19939 \begin_inset Space ~
19944 in the cross-reference window sets the cursor before the referred label.
19945 The button text changes then to Go
19946 \begin_inset Space ~
19949 Back and you can use it to set the cursor back to the cross-reference.
19950 Right-clicking on a cross-reference box also sets the cursor before the
19951 referenced label but without a possibility to go back.
19954 \begin_layout Subsection
19955 Cross-Reference Formats
19956 \begin_inset CommandInset label
19958 name "sub:Cross-Reference-Formats"
19966 \begin_layout Plain Layout
19967 References ! Formats
19975 \begin_layout Standard
19976 There are six varieties of cross-references:
19979 \begin_layout Description
19980 <reference>: prints the float number, this is the default:
19981 \begin_inset CommandInset ref
19983 reference "fig:Two-distorted-images"
19990 \begin_layout Description
19991 (<reference>): prints the float number within two parentheses, this is the
19992 style normally used to reference formulas, especially when the reference
19994 \begin_inset Quotes eld
19998 \begin_inset Quotes erd
20002 \begin_inset CommandInset ref
20011 \begin_layout Description
20012 <page>: prints the page number: Page
20013 \begin_inset Space ~
20017 \begin_inset CommandInset ref
20018 LatexCommand pageref
20019 reference "fig:Two-distorted-images"
20026 \begin_layout Description
20028 \begin_inset Space ~
20032 \begin_inset Space ~
20035 <page>: prints the text "on page" and the page number:
20036 \begin_inset CommandInset ref
20037 LatexCommand vpageref
20038 reference "fig:Two-distorted-images"
20045 \begin_layout Description
20047 \begin_inset Space ~
20051 \begin_inset Space ~
20055 \begin_inset Space ~
20058 <page>: prints the float number, the text "on page", and the page number:
20060 \begin_inset CommandInset ref
20062 reference "fig:Two-distorted-images"
20069 \begin_layout Description
20071 \begin_inset Space ~
20074 reference: prints a self defined cross-reference format.
20076 \begin_inset Note Greyedout
20079 \begin_layout Plain Layout
20084 This feature is only available when you have the LaTeX-package
20096 \begin_layout Standard
20097 Note that the style <page> won't print the page number if the label is on
20098 the previous, the same, or the next page.
20100 \begin_inset Space \thinspace{}
20104 \begin_inset Space ~
20108 \begin_inset Quotes eld
20116 \begin_inset Quotes erd
20122 \begin_layout Standard
20123 The number and current page of the referred document part in the output,
20124 is automatically calculated by LaTeX.
20125 The varieties are adjusted in the field
20129 of the cross-reference window, that appear when you click on the cross-referenc
20133 \begin_layout Subsection
20134 Referencing Subfigures
20135 \begin_inset CommandInset label
20137 name "sub:Referencing-Subfigures"
20145 \begin_layout Plain Layout
20146 References ! to Subfigures
20154 \begin_layout Standard
20155 Currently referencing subfigures is not supported by LyX, so you have to
20156 use LaTeX-commands.
20157 The label is the created with the command
20160 \begin_layout Standard
20165 label{fig:YourLabelName}
20168 \begin_layout Standard
20169 that is directly inserted into the subfigure caption field.
20170 To reference the label add this command in TeX-Code
20173 \begin_layout Standard
20178 ref{fig:YourLabelName}
20181 \begin_layout Standard
20182 to the position in your document where the reference should be placed.
20183 Here is a reference to a subfigure: Subfigure
20184 \begin_inset Space ~
20191 \begin_layout Plain Layout
20203 \begin_layout Subsection
20204 Automatic Reference Naming
20208 \begin_layout Plain Layout
20209 References ! Automatic Reference Naming
20217 \begin_layout Standard
20222 provides a very useful feature that cross-references automatically include
20223 the name of the referenced floats (or text parts like sections).
20224 You save to write e.
20225 \begin_inset Space \thinspace{}
20229 \begin_inset Space ~
20233 \begin_inset Quotes eld
20237 \begin_inset Quotes erd
20240 before every reference box.
20241 To get this automatic reference naming, you have to load the LaTeX-package
20250 \begin_layout Plain Layout
20251 LaTeX-packages ! hyperref
20256 in the document preamble with
20259 \begin_layout Standard
20264 usepackage[pdfborder={0 0 0}]{hyperref}
20265 \begin_inset Newline newline
20281 \begin_layout Standard
20286 is used to link cross-references in the DVI- and PDF-output, this means
20287 that the reader of your document will be able to click on a table of content
20288 (TOC) entry or on a reference and he will be shown the referenced document
20294 also creates PDF-bookmarks for every section of your document to make it
20295 easier for readers to navigate through the document.
20296 This is also used in this document but when you have a look in the document
20297 preamble you will find various options in the load command of
20302 To learn more about the
20306 package, we refer to its documentation
20307 \begin_inset CommandInset citation
20316 \begin_layout Standard
20317 \begin_inset Note Greyedout
20320 \begin_layout Plain Layout
20325 Automatic reference naming cannot be used when you use cross-references
20329 \begin_inset Space ~
20334 style, described in section
20335 \begin_inset Space ~
20339 \begin_inset CommandInset ref
20341 reference "sub:Cross-Reference-Formats"
20353 \begin_layout Subsection
20355 \begin_inset CommandInset label
20357 name "sub:Reference-Position"
20365 \begin_layout Plain Layout
20366 References ! Reference Position
20374 \begin_layout Standard
20383 \begin_layout Plain Layout
20384 LaTeX-packages ! hyperref
20389 to link cross-references in the output, you will see that clicking on an
20390 image float reference jumps to the image label.
20391 The caption will be the first text part on the screen, so that you cannot
20392 see the image without scrolling.
20393 This is because the reference link anchor is placed at the position of
20395 With the use of the package
20403 \begin_layout Plain Layout
20404 LaTeX-packages ! hypcap
20409 , which is part of the LaTeX-package
20417 \begin_layout Plain Layout
20418 LaTeX-packages ! oberdiek
20423 , the link anchor is placed at the beginning of a float.
20424 To use this feature for figure floats, load
20428 in the document preamble with the line
20431 \begin_layout Standard
20436 usepackage[figure]{hypcap}
20439 \begin_layout Standard
20444 for all floats but this isn't recommended for stability reasons.
20445 For more informations, have a look at
20450 \begin_inset CommandInset citation
20459 \begin_layout Standard
20460 \begin_inset Note Greyedout
20463 \begin_layout Plain Layout
20472 must be loaded after
20476 in the document preamble.
20484 \begin_layout Standard
20485 \begin_inset Note Greyedout
20488 \begin_layout Plain Layout
20497 has no effect for references to subfigures.
20505 \begin_layout Section
20507 \begin_inset CommandInset label
20509 name "sec:Float-Placement"
20517 \begin_layout Plain Layout
20526 \begin_layout Standard
20527 Right-clicking on a float-box opens a dialog where you can alter the placement
20528 options that LaTeX uses for positioning the float.
20529 \begin_inset Newline newline
20535 \begin_inset Space ~
20540 is only useful for two-column documents: If you select it, the float will
20541 span across both columns on the page instead of being confined to just
20543 \begin_inset Newline newline
20549 \begin_inset Space ~
20554 is used to rotate floats, see section
20555 \begin_inset CommandInset ref
20557 reference "sec:Rotated-Floats"
20564 \begin_layout Standard
20565 You can use one ore more of the following options in the float dialog to
20566 set the placement for a particular float when you uncheck the option
20569 \begin_inset Space ~
20573 \begin_inset Space ~
20581 \begin_layout Description
20583 \begin_inset Space ~
20587 \begin_inset Space ~
20590 possible try to place the float on the position where it is inserted
20593 \begin_layout Description
20595 \begin_inset Space ~
20599 \begin_inset Space ~
20602 page try to place the float on the top of the current page
20605 \begin_layout Description
20607 \begin_inset Space ~
20611 \begin_inset Space ~
20614 page try to place the float on the bottom of the current page
20617 \begin_layout Description
20619 \begin_inset Space ~
20623 \begin_inset Space ~
20626 floats try to place the float on an own page
20629 \begin_layout Standard
20630 The order of the above option is
20635 That means, if you use the default placement, LaTeX will first try out
20639 \begin_inset Space ~
20643 \begin_inset Space ~
20651 \begin_inset Space ~
20655 \begin_inset Space ~
20660 , and then the others.
20661 If you don't use the default, LaTeX will try only the checked options but
20663 If none of the 4 placements are possible the procedure is internally repeated
20664 but it is tried to put the float on the following page.
20667 \begin_layout Standard
20668 By default, each option has its own rules:
20671 \begin_layout Labeling
20672 \labelwidthstring 00.00.0000
20676 \begin_inset Space ~
20680 \begin_inset Space ~
20685 only floats occupying less than 70
20686 \begin_inset Space \thinspace{}
20689 % of the page can be placed at the top of a page (
20698 \begin_layout Labeling
20699 \labelwidthstring 00.00.0000
20703 \begin_inset Space ~
20707 \begin_inset Space ~
20712 : only floats occupying less than 30
20713 \begin_inset Space \thinspace{}
20716 % of the page can be placed at the bottom of a page.
20726 \begin_layout Labeling
20727 \labelwidthstring 00.00.0000
20731 \begin_inset Space ~
20735 \begin_inset Space ~
20740 : only if more than 50
20741 \begin_inset Space \thinspace{}
20744 % of the page are occupied by floats, several floats can be set together
20755 \begin_layout Standard
20756 If you don't like these rules, you can ignore them by using the additional
20760 \begin_inset Space ~
20764 \begin_inset Space ~
20770 \begin_inset Newline newline
20773 You can also redefine the rules with LaTeX-commands that are given in parenthese
20774 s behind the rules description above.
20775 To increase for example the often too small default of the bottom-rule
20777 \begin_inset Space \thinspace{}
20780 % of the page, add this line to your document preamble:
20783 \begin_layout Standard
20790 bottomfraction}{0.5}
20793 \begin_layout Standard
20794 Sometimes you might need, under all circumstances, a float to be placed
20795 exactly at the position where it is inserted.
20796 For this case you can use the option
20799 \begin_inset Space ~
20805 Use this option very rarely and only if the document is nearly ready to
20807 Because the float is then no longer able to
20808 \begin_inset Quotes eld
20812 \begin_inset Quotes erd
20815 when you change your document and this will often destroy the page layout.
20818 \begin_layout Standard
20819 There are no placement options for text wrap floats, because they are always
20820 surrounded by the text of a certain paragraph.
20821 \begin_inset VSpace bigskip
20827 \begin_layout Standard
20828 Sometimes you have the problem that a float is placed at the top of a page
20829 while its corresponding section starts at the middle of the page, so that
20830 the reader could think the float is part of the previous section.
20831 To avoid this the LaTeX-command
20838 It suppresses a given float placement for the page where it is inserted
20839 and can therefore be used to avoid that floats could be set before a section
20841 To get this, add these commands to your document preamble:
20844 \begin_layout Standard
20854 \begin_inset Newline newline
20868 \begin_layout Standard
20869 You can define the same for all section headings, like chapters and subsections.
20870 This definition is not recommended to be used for small text parts like
20871 subsubsections because LaTeX may then have problems to find a suitable
20875 \begin_layout Standard
20876 \begin_inset VSpace bigskip
20879 In some cases it is required to have all figures/tables at the end of the
20881 For this purpose the LaTeX-package
20889 \begin_layout Plain Layout
20890 LaTeX-packages ! endfloat
20896 It puts all figure and table floats at the end of the document into own
20898 At the original float position a text hint like
20899 \begin_inset Quotes eld
20905 \begin_inset Space ~
20911 \begin_inset Quotes erd
20915 The endfloat-package is loaded in the preamble with the line
20918 \begin_layout Standard
20923 usepackage[options]{endfloat}
20926 \begin_layout Standard
20927 There are various package options to format the created figure/table sections.
20928 For more information we refer to the
20933 \begin_inset CommandInset citation
20940 \begin_inset Newline newline
20944 \begin_inset Note Greyedout
20947 \begin_layout Plain Layout
20952 doesn't provide an automatic translation for the text hint, you have to
20953 do this manually, see section
20954 \begin_inset Space ~
20958 \begin_inset CommandInset citation
20970 \begin_inset Newline newline
20974 \begin_inset Note Greyedout
20977 \begin_layout Plain Layout
20982 There is currently a bug in
20986 when the caption contains a German
20987 \begin_inset Quotes eld
20991 \begin_inset Quotes erd
20995 Use in this case the command
20996 \begin_inset Quotes eld
21006 \begin_inset Quotes erd
21009 in TeX-Code instead of
21010 \begin_inset Quotes eld
21014 \begin_inset Quotes erd
21025 \begin_layout Standard
21026 \begin_inset VSpace bigskip
21029 For more details about float placements, have a look at LaTeX books,
21030 \begin_inset CommandInset citation
21032 key "latexcompanion,latexguide,latexbook"
21039 \begin_layout Section
21041 \begin_inset CommandInset label
21043 name "sec:Rotated-Floats"
21051 \begin_layout Plain Layout
21060 \begin_layout Standard
21061 Especially for wide tables you might have floats rotated.
21062 To rotate a whole float including the caption, right-click on the float-box
21066 \begin_inset Space ~
21074 \begin_layout Standard
21075 Rotated floats are always placed on its own page (or column, when you have
21076 a two-column document).
21077 They are rotated so that you can read them from the outside margin.
21078 To force a certain rotation direction for all pages, you can add either
21087 to the document class options.
21090 \begin_layout Standard
21091 Referencing rotated floats is the same like for normal floats, the caption
21092 format is also the same: Table
21093 \begin_inset Space ~
21097 \begin_inset CommandInset ref
21099 reference "tab:Rotated-table"
21103 is an example of a rotated table float.
21106 \begin_layout Standard
21107 \begin_inset Note Greyedout
21110 \begin_layout Plain Layout
21115 Not all DVI-viewers are able to display rotated floats.
21123 \begin_layout Standard
21124 \begin_inset Float table
21129 \begin_layout Plain Layout
21130 \begin_inset Caption
21132 \begin_layout Plain Layout
21133 \begin_inset CommandInset label
21135 name "tab:Rotated-table"
21147 \begin_layout Plain Layout
21149 \begin_inset Tabular
21150 <lyxtabular version="3" rows="1" columns="5">
21152 <column alignment="center" valignment="top" width="0">
21153 <column alignment="center" valignment="top" width="0">
21154 <column alignment="center" valignment="top" width="0">
21155 <column alignment="center" valignment="top" width="0">
21156 <column alignment="center" valignment="top" width="0">
21158 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21161 \begin_layout Plain Layout
21167 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21170 \begin_layout Plain Layout
21176 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21179 \begin_layout Plain Layout
21185 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21188 \begin_layout Plain Layout
21194 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21197 \begin_layout Plain Layout
21216 \begin_layout Section
21217 Floats Side by Side
21221 \begin_layout Plain Layout
21222 Floats ! Side by side
21230 \begin_layout Standard
21231 To place floats side by side, like for Figure
21232 \begin_inset Space ~
21236 \begin_inset CommandInset ref
21238 reference "fig:Float-left"
21243 \begin_inset CommandInset ref
21245 reference "fig:Float-right"
21254 In it two minipage boxes are inserted.
21258 \begin_layout Plain Layout
21259 Minipages are explained in section
21260 \begin_inset Space ~
21264 \begin_inset CommandInset ref
21266 reference "sec:Minipages"
21275 The width is set to 45
21276 \begin_inset Space \thinspace{}
21280 \begin_inset Space \thinspace{}
21283 column% and the box alignment to
21288 The minipage boxes contain the image and the caption in the same way as
21289 they are in a float.
21290 The only difference is that the image unit
21293 \begin_inset Space ~
21297 \begin_inset Space ~
21302 is now calculated according to the width of the minipage boxes.
21305 \begin_layout Standard
21306 \begin_inset Float figure
21311 \begin_layout Plain Layout
21312 \begin_inset Box Frameless
21321 height_special "totalheight"
21324 \begin_layout Plain Layout
21326 \begin_inset Graphics
21327 filename clipart/mobius.eps
21330 scaleBeforeRotation
21337 \begin_layout Plain Layout
21338 \begin_inset Caption
21340 \begin_layout Plain Layout
21341 \begin_inset CommandInset label
21343 name "fig:Float-left"
21347 Float on the left side.
21358 \begin_inset Space \hfill{}
21362 \begin_inset Box Frameless
21371 height_special "totalheight"
21374 \begin_layout Plain Layout
21376 \begin_inset Graphics
21377 filename clipart/platypus.eps
21380 scaleBeforeRotation
21387 \begin_layout Plain Layout
21388 \begin_inset Caption
21390 \begin_layout Plain Layout
21391 \begin_inset CommandInset label
21393 name "fig:Float-right"
21397 Float on the right side.
21410 \begin_layout Plain Layout
21419 \begin_layout Section
21424 \begin_layout Plain Layout
21425 Caption ! Formatting
21434 \begin_layout Plain Layout
21435 Floats ! Caption Formatting
21444 \begin_layout Plain Layout
21445 LaTeX-packages ! caption
21451 \begin_inset CommandInset label
21453 name "sec:Caption-Formatting"
21460 \begin_layout Standard
21465 environment is the default paragraph environment for
21470 On the LyX screen captions appear as label, e.
21471 \begin_inset Space \thinspace{}
21475 \begin_inset Space ~
21479 \begin_inset Quotes eld
21487 \begin_inset Quotes erd
21490 followed by the caption text.
21492 \begin_inset Quotes eld
21496 \begin_inset Quotes erd
21499 is the actual reference number.
21500 By default the label and the number are in the same font as the caption
21501 text and a colon follows the number to divide the label from the text.
21502 This caption format is not suitable for all document formats.
21506 \begin_layout Standard
21507 To change the default caption format, load the LaTeX-package
21515 \begin_layout Plain Layout
21516 LaTeX-packages ! caption
21521 in the document preamble with this line:
21524 \begin_layout Standard
21529 usepackage[format definition]{caption}
21532 \begin_layout Standard
21533 To have for example the label and the number in sans-serif bold font and
21534 the table captions always above the table like in this document, use the
21538 \begin_layout Standard
21543 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
21546 \begin_layout Standard
21547 You can also define different caption formats for the different float types.
21548 In this case load the
21552 package without format specific options and define the different formats
21553 with the help of the command
21556 \begin_layout Standard
21561 captionsetup[float type]{format definition}
21564 \begin_layout Standard
21565 in the document preamble.
21566 For example the caption formats of Figure
21567 \begin_inset Space ~
21571 \begin_inset CommandInset ref
21573 reference "fig:This-is-an-fig"
21578 \begin_inset Space ~
21582 \begin_inset CommandInset ref
21584 reference "tab:This-is-an-tab"
21588 can be created using these commands in the document preamble:
21591 \begin_layout Standard
21596 usepackage[tableposition=top]{caption}
21599 \begin_inset Newline newline
21606 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
21607 \begin_inset Newline newline
21614 \begin_layout Plain Layout
21622 captionsetup[figure]
21630 \begin_inset Newline newline
21635 captionsetup[table]{labelfont={bf,sf}}
21638 \begin_layout Standard
21639 \begin_inset Note Greyedout
21642 \begin_layout Plain Layout
21651 has no effect when a
21659 \begin_layout Plain Layout
21660 LaTeX-packages ! koma-script
21665 document class is used.
21666 In this case the document class option
21678 \begin_layout Standard
21679 For more information about the package
21683 we refer to its documentation
21684 \begin_inset CommandInset citation
21686 key "caption,caption-de"
21693 \begin_layout Standard
21694 To change the label name from e.g.
21696 \begin_inset Quotes eld
21700 \begin_inset Quotes erd
21704 \begin_inset Quotes eld
21708 \begin_inset Quotes erd
21711 use this preamble command:
21714 \begin_layout Standard
21721 fnum@figure}{Image~
21726 \begin_layout Standard
21733 inserts the figure number and
21736 \begin_inset Quotes eld
21742 \begin_inset Quotes erd
21745 creates a protected space.
21748 \begin_layout Standard
21749 \begin_inset VSpace bigskip
21760 \begin_layout Plain Layout
21761 LaTeX-packages ! koma-script
21768 article (koma-script)
21776 letter (koma-script)
21780 report (koma-script)
21783 \begin_inset Space \thinspace{}
21786 ), you can alternatively to the
21794 's built-in command
21801 For example, to have the caption label in bold, add this command to your
21805 \begin_layout Standard
21810 setkomafont{captionlabel}{
21815 \begin_layout Standard
21816 For more information about
21827 \begin_inset CommandInset citation
21836 \begin_layout Standard
21840 \begin_layout Plain Layout
21844 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
21851 \begin_inset Note Note
21854 \begin_layout Plain Layout
21855 The caption format is changed only for this example.
21863 \begin_layout Standard
21864 \begin_inset Float figure
21870 \begin_layout Plain Layout
21872 \begin_inset Graphics
21873 filename clipart/mobius.eps
21876 scaleBeforeRotation
21883 \begin_layout Plain Layout
21884 \begin_inset Caption
21886 \begin_layout Plain Layout
21887 \begin_inset CommandInset label
21889 name "fig:This-is-an-fig"
21893 This is an example figure caption that is longer than one line to show the
21894 different caption format.
21895 Here a self-defined caption format is used.
21908 \begin_layout Standard
21912 \begin_layout Plain Layout
21916 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
21925 \begin_layout Standard
21926 \begin_inset Float table
21932 \begin_layout Plain Layout
21933 \begin_inset Caption
21935 \begin_layout Plain Layout
21936 \begin_inset CommandInset label
21938 name "tab:This-is-an-tab"
21942 This is an example table caption that is longer than one line to show the
21943 different caption format.
21944 Here the standard caption format for tables in this document is used.
21952 \begin_layout Plain Layout
21954 \begin_inset Tabular
21955 <lyxtabular version="3" rows="1" columns="5">
21957 <column alignment="center" valignment="top" width="0">
21958 <column alignment="center" valignment="top" width="0">
21959 <column alignment="center" valignment="top" width="0">
21960 <column alignment="center" valignment="top" width="0">
21961 <column alignment="center" valignment="top" width="0">
21963 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21966 \begin_layout Plain Layout
21972 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21975 \begin_layout Plain Layout
21981 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21984 \begin_layout Plain Layout
21990 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21993 \begin_layout Plain Layout
21999 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22002 \begin_layout Plain Layout
22021 \begin_layout Section
22026 \begin_layout Plain Layout
22027 Caption ! Placement
22036 \begin_layout Plain Layout
22037 Floats ! Caption Placement
22043 \begin_inset CommandInset label
22045 name "sec:Caption-Placement"
22052 \begin_layout Standard
22053 The common caption placement rule is:
22056 \begin_layout Description
22057 Figure: Caption is set below the figure
22060 \begin_layout Description
22061 Table: Caption is set above the table
22064 \begin_layout Standard
22065 Having the caption above the table is unfortunately not supported in LaTeX's
22067 That means if you are using the document classes
22083 there will be no space between the caption and the table.
22084 To insert the needed space, add the following option to the load command
22085 of the LaTeX-package
22089 in your document preamble
22093 \begin_layout Plain Layout
22095 \begin_inset Space ~
22099 \begin_inset CommandInset ref
22101 reference "sec:Caption-Formatting"
22105 for more information of the package
22117 \begin_layout Standard
22123 \begin_layout Standard
22132 \begin_layout Plain Layout
22133 LaTeX-packages ! koma-script
22140 article (koma-script)
22148 letter (koma-script)
22152 report (koma-script)
22155 \begin_inset Space \thinspace{}
22158 ), you can alternatively to the
22162 package set the document class option
22169 \begin_layout Standard
22170 \begin_inset VSpace bigskip
22173 It is also possible to set the caption beside a figure or table.
22174 To get this the LaTeX-package
22182 \begin_layout Plain Layout
22183 LaTeX-packages ! sidecap
22188 has to be loaded in the document preamble with the line
22191 \begin_layout Standard
22196 usepackage[option]{sidecap}
22199 \begin_layout Standard
22200 If you set no option, the caption is placed on the side of the outer page
22201 margin -- to the right on odd pages, to the left on even pages.
22202 You can change the placement to inner margin with the option
22207 To force the placement always to the right or left, use the option
22218 \begin_layout Standard
22222 \begin_layout Plain Layout
22232 \begin_inset Note Note
22235 \begin_layout Plain Layout
22236 The following section will only be displayed when the LaTeX-package
22248 \begin_layout Standard
22249 To place in LyX the caption of a float on the side, it is necessary to add
22250 these commands to the document preamble:
22253 \begin_layout Standard
22259 \begin_layout Standard
22267 \begin_inset Newline newline
22274 \begin_layout Plain Layout
22290 \begin_inset Newline newline
22297 \begin_layout Plain Layout
22313 \begin_inset Newline newline
22320 \begin_layout Plain Layout
22331 renewenvironment{table}{
22338 \begin_layout Standard
22346 \begin_inset Newline newline
22353 \begin_layout Plain Layout
22369 \begin_inset Newline newline
22376 \begin_layout Plain Layout
22394 \begin_layout Standard
22402 \begin_inset Newline newline
22409 \begin_layout Plain Layout
22425 \begin_inset Newline newline
22432 \begin_layout Plain Layout
22448 \begin_inset Newline newline
22455 \begin_layout Plain Layout
22466 renewenvironment{figure}{
22473 \begin_layout Standard
22481 \begin_inset Newline newline
22488 \begin_layout Plain Layout
22504 \begin_inset Newline newline
22511 \begin_layout Plain Layout
22529 \begin_layout Standard
22535 \begin_layout Standard
22536 The commands allow you to redefine the floats so that the caption is set
22538 For figure floats use the command
22541 \begin_layout Standard
22549 \begin_layout Standard
22550 in TeX-Code before the float.
22551 Behind the float insert the command
22554 \begin_layout Standard
22562 \begin_layout Standard
22563 in TeX-Code to get back to the original float definition.
22566 \begin_layout Standard
22567 For table floats use the corresponding commands
22570 \begin_layout Standard
22584 \begin_layout Standard
22586 \begin_inset Space ~
22590 \begin_inset CommandInset ref
22592 reference "fig:cap-beside-fig"
22597 \begin_inset Space ~
22601 \begin_inset CommandInset ref
22603 reference "tab:cap-beside-tab"
22607 are examples where the caption is set beside.
22610 \begin_layout Standard
22611 You can see in the examples that the caption text appears at the top of
22612 the floats for table floats and at the bottom for figure floats.
22613 To change this, you can use the command
22616 \begin_layout Standard
22621 sidecaptionvpos{float type}{placement}
22624 \begin_layout Standard
22625 in the document preamble or in TeX-Code before the float.
22626 The float type is either
22634 , the placement can be
22635 \begin_inset Quotes eld
22643 \begin_inset Quotes erd
22647 \begin_inset Quotes eld
22655 \begin_inset Quotes erd
22659 \begin_inset Quotes eld
22667 \begin_inset Quotes erd
22671 To have for example the caption of figure floats vertically centered, use
22675 \begin_layout Standard
22680 sidecaptionvpos{figure}{c}
22683 \begin_layout Standard
22684 This was used for Figure
22685 \begin_inset Space ~
22689 \begin_inset CommandInset ref
22691 reference "fig:cap-beside-fig-2"
22698 \begin_layout Standard
22699 \begin_inset VSpace medskip
22702 For more information about the package
22706 we refer to its documentation
22707 \begin_inset CommandInset citation
22716 \begin_layout Standard
22717 \begin_inset Note Greyedout
22720 \begin_layout Plain Layout
22733 \begin_layout Plain Layout
22734 LaTeX-packages ! hypcap
22739 , described in section
22740 \begin_inset Space ~
22744 \begin_inset CommandInset ref
22746 reference "sub:Reference-Position"
22750 , has no effect on floats with the caption set beside.
22758 \begin_layout Standard
22762 \begin_layout Plain Layout
22774 \begin_layout Standard
22775 \begin_inset Float figure
22780 \begin_layout Plain Layout
22781 \begin_inset Graphics
22782 filename clipart/escher-lsd.eps
22784 scaleBeforeRotation
22791 \begin_layout Plain Layout
22792 \begin_inset Caption
22794 \begin_layout Plain Layout
22795 \begin_inset CommandInset label
22797 name "fig:cap-beside-fig"
22801 This is a caption beside a figure.
22814 \begin_layout Standard
22818 \begin_layout Plain Layout
22830 \begin_layout Standard
22831 \begin_inset Float table
22836 \begin_layout Plain Layout
22837 \begin_inset Caption
22839 \begin_layout Plain Layout
22840 \begin_inset CommandInset label
22842 name "tab:cap-beside-tab"
22846 This is a caption beside a table.
22854 \begin_layout Plain Layout
22855 \begin_inset Tabular
22856 <lyxtabular version="3" rows="4" columns="5">
22858 <column alignment="center" valignment="top" width="0">
22859 <column alignment="center" valignment="top" width="0">
22860 <column alignment="center" valignment="top" width="0">
22861 <column alignment="center" valignment="top" width="0">
22862 <column alignment="center" valignment="top" width="0">
22864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22867 \begin_layout Plain Layout
22873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22876 \begin_layout Plain Layout
22882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22885 \begin_layout Plain Layout
22891 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22894 \begin_layout Plain Layout
22900 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22903 \begin_layout Plain Layout
22911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22914 \begin_layout Plain Layout
22920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22923 \begin_layout Plain Layout
22929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22932 \begin_layout Plain Layout
22938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22941 \begin_layout Plain Layout
22947 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22950 \begin_layout Plain Layout
22958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22961 \begin_layout Plain Layout
22967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22970 \begin_layout Plain Layout
22976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22979 \begin_layout Plain Layout
22985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22988 \begin_layout Plain Layout
22994 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22997 \begin_layout Plain Layout
23005 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23008 \begin_layout Plain Layout
23014 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23017 \begin_layout Plain Layout
23023 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23026 \begin_layout Plain Layout
23032 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23035 \begin_layout Plain Layout
23041 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23044 \begin_layout Plain Layout
23063 \begin_layout Standard
23067 \begin_layout Plain Layout
23079 \begin_layout Standard
23083 \begin_layout Plain Layout
23087 sidecaptionvpos{figure}{c}
23093 \begin_inset Float figure
23098 \begin_layout Plain Layout
23099 \begin_inset Graphics
23100 filename clipart/escher-lsd.eps
23102 scaleBeforeRotation
23109 \begin_layout Plain Layout
23110 \begin_inset Caption
23112 \begin_layout Plain Layout
23113 \begin_inset CommandInset label
23115 name "fig:cap-beside-fig-2"
23119 This is a vertically centered caption beside a figure.
23132 \begin_layout Standard
23136 \begin_layout Plain Layout
23148 \begin_layout Standard
23152 \begin_layout Plain Layout
23162 \begin_inset Note Note
23165 \begin_layout Plain Layout
23166 The following will be displayed when the LaTeX-package
23178 \begin_layout Standard
23179 You need to install the LaTeX-package
23183 to see the following part of this section in the output.
23186 \begin_layout Standard
23190 \begin_layout Plain Layout
23202 \begin_layout Section
23204 \begin_inset CommandInset label
23206 name "sec:Listings-of-Floats"
23214 \begin_layout Plain Layout
23215 Floats ! Float Lists
23223 \begin_layout Standard
23224 Similar to the the table of contents where the sections of the document
23225 are listed, there are listings for all float types, like the figures of
23227 You can insert them via the
23229 Insert\SpecialChar \menuseparator
23231 \begin_inset Space ~
23235 \begin_inset Space ~
23243 \begin_layout Standard
23244 The list entries are the float captions or its short title, the float number,
23245 and the page number where they appear in the document.
23248 \begin_layout Standard
23249 You can find the list of figures and tables at the end of this document.
23252 \begin_layout Chapter
23256 \begin_layout Section
23258 \begin_inset CommandInset label
23260 name "sec:LyX-Notes"
23268 \begin_layout Plain Layout
23277 \begin_layout Standard
23278 Notes are inserted with the toolbar button
23279 \begin_inset Graphics
23280 filename ../images/note-insert.png
23282 scaleBeforeRotation
23288 Insert\SpecialChar \menuseparator
23292 There are five types of notes:
23295 \begin_layout Description
23297 \begin_inset Space ~
23300 Note This note type is for internal notes that won't appear in the output.
23301 Its note-box looks like this:
23302 \begin_inset Newline newline
23306 \begin_inset Newline newline
23310 \begin_inset Graphics
23311 filename clipart/LyXNoteImageQt4.png
23314 scaleBeforeRotation
23319 \begin_inset Note Note
23322 \begin_layout Plain Layout
23323 This is text in a note box that doesn't appear in the output.
23331 \begin_layout Description
23332 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
23333 ent, when you export the document to LaTeX via the menu
23335 File\SpecialChar \menuseparator
23336 Export\SpecialChar \menuseparator
23337 LaTeX (pdflatex) / (plain)
23340 Its note-box looks like this:
23341 \begin_inset Newline newline
23345 \begin_inset Newline newline
23349 \begin_inset Graphics
23350 filename clipart/CommentNoteImageQt4.png
23353 scaleBeforeRotation
23358 \begin_inset Note Comment
23361 \begin_layout Plain Layout
23362 This is text in a note box that only appears as comment in LaTeX-files.
23370 \begin_layout Description
23372 \begin_inset Space ~
23375 Out This note will appear in the output as grey text.
23376 Its note-box looks like this:
23377 \begin_inset Newline newline
23381 \begin_inset Newline newline
23385 \begin_inset Graphics
23386 filename clipart/GreyedOutNoteImageQt4.png
23389 scaleBeforeRotation
23394 \begin_inset Newline newline
23401 \begin_layout Plain Layout
23405 renewenvironment{lyxgreyedout}
23408 \begin_layout Plain Layout
23412 textcolor[gray]{0.8}
23422 \begin_inset Note Greyedout
23425 \begin_layout Plain Layout
23430 \begin_layout Plain Layout
23431 This is an example footnote within a greyed out note.
23436 of a comment that appears in the output as grey text.
23445 \begin_layout Plain Layout
23449 renewenvironment{lyxgreyedout}
23452 \begin_layout Plain Layout
23466 \begin_inset Note Note
23469 \begin_layout Plain Layout
23470 The greyed out note is here redefined to show it with the original LyX definitio
23471 n because greyed out notes are redefined in the preamble of this document,
23472 as described below, to have blue text.
23478 \begin_inset Newline newline
23482 \begin_inset Newline newline
23485 As you can see in the example, the first line of greyed out notes is a bit
23486 indented and greyed out notes can have footnotes.
23489 \begin_layout Description
23490 Framed This note will appear in the output as framed text.
23491 Its note-box looks like this:
23492 \begin_inset Newline newline
23496 \begin_inset Newline newline
23500 \begin_inset Graphics
23501 filename clipart/FramedNoteImageQt4.png
23504 scaleBeforeRotation
23509 \begin_inset Box Framed
23518 height_special "totalheight"
23521 \begin_layout Plain Layout
23522 This is text in a note box that appears framed in the output.
23527 In contrary to framed boxes
23531 \begin_layout Plain Layout
23532 Framed boxes are described in section
23533 \begin_inset Space ~
23537 \begin_inset CommandInset ref
23539 reference "sec:Framed-Boxes"
23548 the frame uses always the whole text width and the note is set into its
23552 \begin_layout Description
23553 Shaded This note will appear in the output with red background color.
23554 Its note box looks like this:
23555 \begin_inset Newline newline
23559 \begin_inset Newline newline
23563 \begin_inset Graphics
23564 filename clipart/ShadedNoteImageQt4.png
23567 scaleBeforeRotation
23572 \begin_inset Box Shaded
23581 height_special "totalheight"
23584 \begin_layout Plain Layout
23585 This text in a note box appears in the output with red background.
23590 In contrary to colored boxes
23594 \begin_layout Plain Layout
23595 Colored boxes are described in section
23596 \begin_inset Space ~
23600 \begin_inset CommandInset ref
23602 reference "sec:Colored-Boxes"
23611 the note uses always the whole text width and the note is set into its
23615 \begin_layout Standard
23616 \begin_inset VSpace bigskip
23619 When you use the toolbar button
23620 \begin_inset Graphics
23621 filename ../images/note-insert.png
23623 scaleBeforeRotation
23630 \begin_inset Space ~
23636 You can switch between the five note types by right-clicking on the note-box.
23641 If you want to turn existing text into a note, mark it and click on the
23655 To change a note to text, press the backspace key when the cursor is in
23656 the first position of a note, or press the deletey key when the cursor
23657 is in the very last position of the note, respectively.
23660 \begin_layout Standard
23661 \begin_inset VSpace bigskip
23664 You can change the text color of the greyed out notes in the preamble with
23665 the following command:
23668 \begin_layout Standard
23673 renewenvironment{lyxgreyedout}
23674 \begin_inset Newline newline
23681 \begin_layout Plain Layout
23699 \begin_layout Standard
23700 The available colors and the method to define own colors is explained in
23702 \begin_inset Space ~
23706 \begin_inset CommandInset ref
23708 reference "sec:Colored-Tables"
23715 \begin_layout Standard
23716 Notes that appear in blue in this document are set using greyed out notes
23720 \begin_layout Standard
23721 \begin_inset VSpace bigskip
23727 \begin_layout Standard
23736 notes can be set in the
23743 \begin_layout Standard
23744 The default frame width for
23749 \begin_inset Space \thinspace{}
23752 pt; it can be changed by changing the size
23759 The default space between the note content and the frame is 9
23760 \begin_inset Space \thinspace{}
23763 pt; it can be changed by changing the size
23770 For example the frame appearance of the following
23774 note is set with the TeX-Code commands
23777 \begin_layout Standard
23787 \begin_layout Standard
23791 \begin_layout Plain Layout
23803 \begin_inset Box Framed
23812 height_special "totalheight"
23815 \begin_layout Plain Layout
23829 \begin_layout Plain Layout
23843 \begin_layout Standard
23844 \begin_inset VSpace bigskip
23850 \begin_layout Standard
23855 notes the default space between the note content and the note border is
23857 \begin_inset Space \thinspace{}
23860 pt; it can be changed by changing the size
23867 \begin_inset Newline newline
23870 The default background color red can be changed with the command
23874 definecolor{shadebox}
23883 command is explained in section
23884 \begin_inset Space ~
23888 \begin_inset CommandInset ref
23890 reference "sec:Colored-Tables"
23898 \begin_layout Plain Layout
23905 \SpecialChar \textcompwordmark{}
23910 requires the LaTeX-package
23914 in the preamble, see section
23915 \begin_inset Space ~
23919 \begin_inset CommandInset ref
23921 reference "sec:Colored-Boxes"
23933 \begin_layout Standard
23934 For example the appearance of the following
23938 note is set with the TeX-Code commands
23941 \begin_layout Standard
23949 \begin_inset Newline newline
23956 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
23959 \begin_layout Standard
23963 \begin_layout Plain Layout
23976 \begin_layout Plain Layout
23980 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
23986 \begin_inset Box Shaded
23995 height_special "totalheight"
23998 \begin_layout Plain Layout
24001 This is yellow text in a
24011 note with darkgreen background.
24020 \begin_layout Plain Layout
24033 \begin_layout Plain Layout
24037 definecolor{shadecolor}{rgb}{1,0,0}
24045 \begin_layout Section
24047 \begin_inset CommandInset label
24049 name "sec:Footnotes"
24057 \begin_layout Plain Layout
24067 \begin_layout Plain Layout
24076 \begin_layout Standard
24077 Footnotes can be inserted using the toolbar button
24078 \begin_inset Graphics
24079 filename ../images/footnote-insert.png
24081 scaleBeforeRotation
24087 Insert\SpecialChar \menuseparator
24099 then the following footnote-box:
24100 \begin_inset Graphics
24101 filename clipart/footnoteQt4.png
24103 scaleBeforeRotation
24111 where you can enter the footnote text.
24112 If you want to turn existing text into a footnote, mark it and click on
24134 to text, press the Backspace key when the cursor is in the first position
24143 , or press the Delete key when the cursor is in the very last position of
24155 \begin_layout Standard
24156 Here is an example footnote:
24164 \begin_layout Plain Layout
24165 \begin_inset CommandInset label
24167 name "foot:This-is-an"
24171 This is an example footnote.
24184 \begin_layout Plain Layout
24188 newcounter{MyRepeatFoot}
24191 \begin_layout Plain Layout
24195 setcounter{MyRepeatFoot}{
24205 \begin_layout Standard
24206 The footnote will appear in the output as a superscript number at the text
24207 position where the footnote box is placed.
24208 The footnote text is placed at the bottom of the current page.
24209 The footnote number is calculated by LaTeX, the numbers are consecutive.
24210 It depends on your document-class, if the footnote number is reset for
24214 \begin_layout Standard
24215 Footnotes can be referenced like floats: Insert a label into the footnote
24216 and cross-reference this label in the text as described in section
24217 \begin_inset Space ~
24221 \begin_inset CommandInset ref
24223 reference "sec:Referencing-Floats"
24228 \begin_inset Newline newline
24231 This is a cross-reference of Footnote
24232 \begin_inset Space ~
24236 \begin_inset CommandInset ref
24238 reference "foot:This-is-an"
24245 \begin_layout Standard
24246 \begin_inset VSpace defskip
24249 To use footnotes within tables, you have to use minipages, see section
24250 \begin_inset Space ~
24254 \begin_inset CommandInset ref
24256 reference "sec:Minipages"
24261 Footnotes within longtables are described in section
24262 \begin_inset Space ~
24266 \begin_inset CommandInset ref
24268 reference "sub:Footnotes-in-Longtables"
24275 \begin_layout Standard
24276 \begin_inset VSpace defskip
24279 To create only a mark for a footnote, use the command
24283 footnotemark[number]
24286 This is used when you have the same annotation several times in a text
24287 but doesn't want to print the footnote text every time.
24288 \begin_inset Newline newline
24291 As you don't know the number of the repeating footnote while you are writing
24292 the text, you have to store its number.
24293 For the following footnote mark example, these commands were inserted in
24294 TeX-Code behind Footnote
24295 \begin_inset Space ~
24299 \begin_inset CommandInset ref
24301 reference "foot:This-is-an"
24305 to store the footnote number:
24308 \begin_layout Standard
24313 newcounter{MyRepeatFoot}
24314 \begin_inset Newline newline
24319 setcounter{MyRepeatFoot}{
24324 \begin_layout Standard
24325 The footnote mark was then created with this command:
24328 \begin_layout Standard
24338 \begin_layout Standard
24339 Here is an example footnote mark:
24347 \begin_layout Plain Layout
24361 \begin_layout Subsection
24363 \begin_inset CommandInset label
24365 name "sub:Footnote-Numbering"
24373 \begin_layout Plain Layout
24374 Footnotes ! Numbering
24382 \begin_layout Standard
24383 To reset the footnote number back to 1 after each section
24385 , add this command to your document preamble:
24388 \begin_layout Standard
24393 @addtoreset{footnote}{section}
24396 \begin_layout Standard
24397 \begin_inset VSpace bigskip
24400 The following preamble command changes the footnote numbering style to small
24404 \begin_layout Standard
24416 \begin_layout Standard
24420 \begin_layout Plain Layout
24433 This is a footnote with roman numbering:
24437 \begin_layout Plain Layout
24438 This is an example footnote with roman numbering.
24446 \begin_layout Standard
24447 To change the numbering style to capital roman numerals replace in the command
24462 \begin_inset Quotes eld
24466 \begin_inset Quotes erd
24469 footnotes with capital or small Latin letters use
24483 \begin_inset Quotes eld
24487 \begin_inset Quotes erd
24490 footnotes with symbols use
24499 \begin_layout Standard
24500 \begin_inset Note Greyedout
24503 \begin_layout Plain Layout
24508 You can only number 26 footnotes with Latin letters, because this numbering
24509 is limited to single letters.
24515 \begin_inset Newline newline
24519 \begin_inset Note Greyedout
24522 \begin_layout Plain Layout
24527 You can only number 9 footnotes with symbols.
24535 \begin_layout Standard
24536 To return to the default numbering style when you changed to another one,
24549 in the command above.
24553 \begin_layout Plain Layout
24569 \begin_layout Standard
24570 \begin_inset VSpace bigskip
24576 \begin_layout Standard
24577 If you want to have footnotes numbered in the scheme
24578 \begin_inset Quotes eld
24582 \begin_inset Quotes erd
24585 , add the following command to your document preamble:
24588 \begin_layout Standard
24593 numberwithin{footnote}{chapter}
24596 \begin_layout Standard
24597 To be able to use the command
24606 \begin_inset Space ~
24611 in the document settings the option
24614 \begin_inset Space ~
24618 \begin_inset Space ~
24622 \begin_inset Space ~
24630 \begin_layout Standard
24634 \begin_layout Plain Layout
24638 numberwithin{footnote}{chapter}
24643 This is another example footnote:
24649 \begin_layout Plain Layout
24650 This is a footnote numbered in the scheme
24651 \begin_inset Quotes eld
24655 \begin_inset Quotes erd
24669 \begin_layout Plain Layout
24685 \begin_layout Standard
24686 \begin_inset Note Greyedout
24689 \begin_layout Plain Layout
24700 always prints out the footnote number as arabic number; previous redefinitions
24701 to get non-arabic numbers are overwritten.
24709 \begin_layout Standard
24710 So to get for example the scheme
24711 \begin_inset Quotes eld
24717 \begin_inset Quotes erd
24720 , use this command instead of
24729 \begin_layout Standard
24743 \begin_layout Subsection
24748 \begin_layout Plain Layout
24749 Footnotes ! Placement
24757 \begin_layout Standard
24758 If you have several footnotes in one page, they appear without vertical
24759 space between them at the bottom of the page.
24760 To make them better readable you can e.
24761 \begin_inset Space \thinspace{}
24765 \begin_inset Space ~
24769 \begin_inset Space \thinspace{}
24772 mm space with the following preamble command:
24775 \begin_layout Standard
24785 \begin_inset Newline newline
24799 \begin_layout Standard
24800 \begin_inset VSpace bigskip
24803 In a two-column document the footnotes appear at the bottom of every column,
24805 \begin_inset Space ~
24809 \begin_inset CommandInset ref
24811 reference "fig:Standard-footnote-placement"
24816 If the footnotes should only appear at the bottom of the right column,
24818 \begin_inset Space ~
24822 \begin_inset CommandInset ref
24824 reference "fig:Footnote-placement-in"
24828 , use the LaTeX-package
24836 \begin_layout Plain Layout
24837 LaTeX-packages ! ftnright
24842 with this command in the document preamble:
24845 \begin_layout Standard
24850 usepackage{ftnright}
24853 \begin_layout Standard
24854 \begin_inset Float figure
24860 \begin_layout Plain Layout
24864 \begin_layout Plain Layout
24874 \begin_inset Graphics
24875 filename clipart/without_fntright.pdf
24877 scaleBeforeRotation
24885 \begin_layout Plain Layout
24895 \begin_layout Plain Layout
24896 \begin_inset Caption
24898 \begin_layout Plain Layout
24899 \begin_inset CommandInset label
24901 name "fig:Standard-footnote-placement"
24905 Standard footnote placement in two-column documents.
24918 \begin_layout Standard
24919 \begin_inset Float figure
24925 \begin_layout Plain Layout
24929 \begin_layout Plain Layout
24939 \begin_inset Graphics
24940 filename clipart/with_fntright.pdf
24942 scaleBeforeRotation
24950 \begin_layout Plain Layout
24960 \begin_layout Plain Layout
24961 \begin_inset Caption
24963 \begin_layout Plain Layout
24964 \begin_inset CommandInset label
24966 name "fig:Footnote-placement-in"
24970 Footnote placement in two-column documents when the LaTeX-package
24987 \begin_layout Standard
24988 \begin_inset VSpace bigskip
24991 In some scientific literature it is usual to collect the footnotes and print
24992 them in a separate paragraph at the the end of a section, like in Figure
24993 \begin_inset Space ~
24997 \begin_inset CommandInset ref
24999 reference "fig:Endnotes----footnotes"
25004 They are then so called
25005 \begin_inset Quotes eld
25009 \begin_inset Quotes erd
25016 \begin_layout Plain Layout
25022 To use endnotes instead of footnotes in your document, load the LaTeX-package
25031 \begin_layout Plain Layout
25032 LaTeX-packages ! endnotes
25037 with the document preamble lines
25040 \begin_layout Standard
25045 usepackage{endnotes}
25046 \begin_inset Newline newline
25058 \begin_layout Standard
25059 To insert the collected footnotes, insert the command
25062 \begin_layout Standard
25070 \begin_layout Standard
25071 in TeX-Code at the the end of a section or chapter.
25074 \begin_layout Standard
25075 \begin_inset Float figure
25080 \begin_layout Plain Layout
25085 \begin_layout Plain Layout
25095 \begin_inset Graphics
25096 filename clipart/endnotes.pdf
25097 scaleBeforeRotation
25105 \begin_layout Plain Layout
25115 \begin_layout Plain Layout
25116 \begin_inset Caption
25118 \begin_layout Plain Layout
25119 \begin_inset CommandInset label
25121 name "fig:Endnotes----footnotes"
25125 Endnotes -- footnotes are printed in a separate paragraph at the end of
25126 sections or chapters.
25139 \begin_layout Standard
25140 \begin_inset VSpace medskip
25143 The paragraph heading for the endnotes isn't automatically translated into
25144 the document language, this must be done manually.
25145 The following preamble command translate the default English name
25146 \begin_inset Quotes eld
25150 \begin_inset Quotes erd
25153 to the German translation
25154 \begin_inset Quotes eld
25158 \begin_inset Quotes erd
25164 \begin_layout Standard
25171 notesname}{Anmerkungen}
25174 \begin_layout Standard
25175 \begin_inset VSpace medskip
25178 The numbering of endnotes can be changed like the footnote numbering as
25179 described in section
25180 \begin_inset Space ~
25184 \begin_inset CommandInset ref
25186 reference "sub:Footnote-Numbering"
25190 ; just replace the command
25203 To reset the endnote number use the command
25209 as described in section
25210 \begin_inset Space ~
25214 \begin_inset CommandInset ref
25216 reference "sub:Footnote-Numbering"
25220 and replace the command parameter
25231 \begin_layout Standard
25232 To create only a mark for an endnote, use the command
25236 endnotemark[number]
25238 similar to the command
25244 , described in section
25245 \begin_inset Space ~
25249 \begin_inset CommandInset ref
25251 reference "sec:Footnotes"
25258 \begin_layout Standard
25259 \begin_inset VSpace bigskip
25262 Footnotes can also be placed in the page margin and the footnote text alignment
25263 can be changed, see the LaTeX-package
25271 \begin_layout Plain Layout
25272 LaTeX-packages ! footmisc
25278 \begin_inset CommandInset citation
25284 for more information about this.
25287 \begin_layout Standard
25288 For various further footnote formatting issues have a look at LaTeX-books,
25290 \begin_inset CommandInset citation
25292 key "latexcompanion,latexguide,latexbook"
25299 \begin_layout Section
25304 \begin_layout Plain Layout
25305 Notes ! Margin Notes
25313 \begin_layout Standard
25314 Margin notes look and behave in LyX like footnotes.
25315 They are inserted via the menu
25317 Insert\SpecialChar \menuseparator
25319 \begin_inset Space ~
25324 or the toolbar button
25325 \begin_inset Graphics
25326 filename ../images/marginalnote-insert.png
25328 scaleBeforeRotation
25343 \begin_inset Quotes eld
25347 \begin_inset Quotes erd
25350 appears where you can enter the text of the margin note.
25353 \begin_layout Standard
25354 At the side is an example margin note.
25359 \begin_inset Marginal
25362 \begin_layout Plain Layout
25363 This is a margin note.
25371 \begin_layout Standard
25372 Margin notes appear at the right side in single-sided documents.
25373 In double-sided documents they appear in the outer margin -- left on even
25374 pages, right on odd pages.
25375 The text of margin notes is aligned opposite to the outer margin -- right-align
25376 ed when the note appears in the left margin.
25377 The first line of the margin note is placed at the position of the text
25378 line where it is inserted in the document.
25381 \begin_layout Standard
25382 \begin_inset VSpace bigskip
25385 To place the margin note in the inner margin, add the command
25388 \begin_layout Standard
25396 \begin_layout Standard
25397 in TeX-Code before a margin note.
25398 The new placement is valid for all following margin notes.
25403 \begin_layout Plain Layout
25413 \begin_inset Marginal
25416 \begin_layout Plain Layout
25417 This is a margin note in the inner margin.
25425 \begin_inset Newline newline
25431 \begin_inset Note Greyedout
25434 \begin_layout Plain Layout
25439 There is often not enough space in the inner margin so that the notes are
25440 not correctly displayed in the output.
25448 \begin_layout Standard
25449 To return to the default placement insert the command
25452 \begin_layout Standard
25460 \begin_layout Standard
25465 \begin_layout Plain Layout
25475 \begin_inset Note Greyedout
25478 \begin_layout Plain Layout
25483 The command is ignored when it is within a paragraph where also the command
25498 \begin_layout Standard
25499 \begin_inset VSpace bigskip
25506 \begin_inset Marginal
25509 \begin_layout Plain Layout
25510 AVeryLongMarginParWord that isn't hyphenated.
25518 Similar to the case described in section
25519 \begin_inset Space ~
25523 \begin_inset CommandInset ref
25525 reference "sub:Multiple-Lines-in"
25529 , long words cannot be hyphenated when they are the first word in a margin
25531 To avoid this, insert 0
25532 \begin_inset Space \thinspace{}
25535 pt horizontal space before the word
25540 \begin_inset Marginal
25543 \begin_layout Plain Layout
25544 \begin_inset Space \hspace*{}
25548 AVeryLongMarginParWord that is hyphenated.
25556 \begin_layout Standard
25557 \begin_inset VSpace bigskip
25563 \begin_layout Standard
25564 \begin_inset Note Greyedout
25567 \begin_layout Plain Layout
25572 Margin notes can normally not be used inside tables, floats, and footnotes.
25580 \begin_layout Standard
25581 \begin_inset VSpace bigskip
25587 \begin_layout Standard
25591 \begin_layout Plain Layout
25601 \begin_inset Note Note
25604 \begin_layout Plain Layout
25605 The following section will only be displayed when the LaTeX-package
25617 \begin_layout Standard
25618 This restriction can be evaded by using the LaTeX-package
25626 \begin_layout Plain Layout
25627 LaTeX-packages ! marginnote
25633 By adding these two lines to your document preamble, the command used by
25634 LyX for margin notes is redefined to use the command provided by the
25641 \begin_layout Standard
25646 usepackage{marginnote}
25647 \begin_inset Newline newline
25659 \begin_layout Standard
25660 This is also used in this document because
25664 has another useful feature: You can set a vertical offset for the note.
25665 This is often needed when too many margin notes are too close together
25666 or for a better page layout.
25667 The offset is set in LyX as TeX-Code directly behind the margin note in
25671 \begin_layout Standard
25677 \begin_layout Standard
25678 where the offset is a length with one of the units listed in Table
25679 \begin_inset Space ~
25683 \begin_inset CommandInset ref
25685 reference "tab:Units"
25690 A negative value shifts the note up, a positive value shifts it down.
25694 For example the margin note beside this text line is shifted up 1.5
25695 \begin_inset Space \thinspace{}
25698 cm with the TeX-Code-command
25699 \begin_inset Quotes eld
25709 \begin_inset Quotes erd
25713 \begin_inset Marginal
25716 \begin_layout Plain Layout
25717 This margin note is shifted up 1.5
25718 \begin_inset Space \thinspace{}
25721 cm from its original position.
25733 \begin_layout Plain Layout
25743 \begin_layout Standard
25744 \begin_inset VSpace medskip
25751 you can also change the alignment of the text in the margin note.
25752 For example the commands
25755 \begin_layout Standard
25762 raggedleftmarginnote}{
25765 \begin_inset Newline newline
25772 raggedrightmarginnote}{
25777 \begin_layout Standard
25778 set the alignment to centered.
25783 raggedleftmarginnote
25785 denotes margin notes that appear at the left side.
25792 \begin_layout Plain Layout
25798 raggedleftmarginnote}{
25803 \begin_layout Plain Layout
25809 raggedrightmarginnote}{
25817 \begin_inset Marginal
25820 \begin_layout Plain Layout
25821 The text of this margin note is centered.
25832 \begin_layout Standard
25839 raggedleftmarginnote}{
25842 \begin_inset Newline newline
25849 raggedrightmarginnote}{
25858 \begin_layout Plain Layout
25864 raggedleftmarginnote}{
25869 \begin_layout Plain Layout
25875 raggedrightmarginnote}{
25885 \begin_layout Standard
25886 \begin_inset VSpace medskip
25889 For the other features of
25893 we refer to its documentation
25894 \begin_inset CommandInset citation
25903 \begin_layout Standard
25904 \begin_inset VSpace bigskip
25907 You can adjust the layout of margin notes by changing its definition.
25908 To create for example a header for all margin notes with the underlined,
25909 sans-serif, and bold header text
25910 \begin_inset Quotes eld
25922 \begin_inset Quotes erd
25925 , add this to your document preamble:
25928 \begin_layout Standard
25938 \begin_inset Newline newline
25948 \begin_inset Newline newline
25955 \begin_layout Plain Layout
25972 underbar{Attention!}}}%
25973 \begin_inset Newline newline
25980 \begin_layout Plain Layout
25998 \begin_layout Standard
26005 \begin_layout Plain Layout
26016 \begin_layout Plain Layout
26027 \begin_layout Plain Layout
26035 underbar{Attention!}}}%
26038 \begin_layout Plain Layout
26052 \begin_inset Marginal
26055 \begin_layout Plain Layout
26056 This is a margin note with a defined heading.
26068 \begin_layout Plain Layout
26082 \begin_layout Plain Layout
26099 \begin_inset Note Note
26102 \begin_layout Plain Layout
26103 The margin note format is changed only for this example.
26111 \begin_layout Standard
26115 \begin_layout Plain Layout
26125 \begin_inset Note Note
26128 \begin_layout Plain Layout
26129 The following will be displayed when the LaTeX-package
26141 \begin_layout Standard
26142 You need to install the LaTeX-package
26146 to see the following part of this section in the output.
26149 \begin_layout Standard
26153 \begin_layout Plain Layout
26165 \begin_layout Chapter
26169 \begin_layout Section
26174 \begin_layout Plain Layout
26175 Boxes ! Introduction
26183 \begin_layout Standard
26184 Boxes are used to format a block of text.
26185 Boxes can be used to write documents with multiple languages, see section
26186 \begin_inset Space ~
26190 \begin_inset CommandInset ref
26192 reference "sec:Minipages"
26196 , to frame texts, see section
26197 \begin_inset Space ~
26201 \begin_inset CommandInset ref
26203 reference "sec:Framed-Boxes"
26207 , to prevent words to be hyphenated, see section
26208 \begin_inset Space ~
26212 \begin_inset CommandInset ref
26214 reference "sec:Prevent-Hyphenation"
26218 , to align text, see section
26219 \begin_inset Space ~
26223 \begin_inset CommandInset ref
26225 reference "sub:Vertical-Alignment"
26229 , or to set the background color of texts, see section
26230 \begin_inset Space ~
26234 \begin_inset CommandInset ref
26236 reference "sec:Colored-Boxes"
26243 \begin_layout Standard
26244 Boxes can be inserted with the menu
26246 Insert\SpecialChar \menuseparator
26249 or the toolbar button
26250 \begin_inset Graphics
26251 filename ../images/box-insert.png
26253 scaleBeforeRotation
26258 A grey box with the label
26263 \begin_inset Graphics
26264 filename clipart/BoxInsetDefaultQt4.png
26266 scaleBeforeRotation
26270 , will be inserted.
26271 The box type can be specified by right-clicking on the box.
26272 The appearing box dialog offers the
26275 \begin_inset Space ~
26293 is the default for new boxes and is explained in section
26294 \begin_inset Space ~
26298 \begin_inset CommandInset ref
26300 reference "sec:Minipages"
26308 is described in section
26309 \begin_inset Space ~
26313 \begin_inset CommandInset ref
26315 reference "sec:Parboxes"
26322 \begin_layout Standard
26323 Boxes aren't numbered and can therefore not be referenced like floats or
26327 \begin_layout Standard
26328 \begin_inset Note Greyedout
26331 \begin_layout Plain Layout
26336 Boxes must not be the item in an
26352 \begin_layout Standard
26353 \begin_inset Note Greyedout
26356 \begin_layout Plain Layout
26361 For an unknown reason you can only set the
26364 \begin_inset Space ~
26373 when you use a framed box.
26377 \begin_inset Space ~
26382 type and without frames are explained in section
26383 \begin_inset Space ~
26387 \begin_inset CommandInset ref
26389 reference "sec:Prevent-Hyphenation"
26401 \begin_layout Section
26403 \begin_inset CommandInset label
26405 name "sec:Box-Dialog"
26413 \begin_layout Plain Layout
26422 \begin_layout Subsection
26427 \begin_layout Plain Layout
26436 \begin_layout Standard
26437 In the box dialog you can adjust the box geometry in the fields
26446 The available units for the geometry are explained in Table
26447 \begin_inset Space ~
26451 \begin_inset CommandInset ref
26453 reference "tab:Units"
26462 offers the following additional sizes:
26465 \begin_layout Description
26466 Depth This is the plain text
26467 \begin_inset Quotes eld
26471 \begin_inset Quotes erd
26475 It ignores the total depth when there are multiple text lines in the box:
26476 \begin_inset Newline newline
26480 \begin_inset Newline newline
26484 \begin_inset Newline newline
26488 \begin_inset Box Boxed
26497 height_special "depth"
26500 \begin_layout Plain Layout
26502 Box height set to 1
26503 \begin_inset Space \thinspace{}
26512 \begin_inset Newline newline
26516 \begin_inset Newline newline
26522 \begin_layout Description
26523 Height This is the heigth of the text that is inside the box.
26525 \begin_inset Space \thinspace{}
26529 \begin_inset Space ~
26532 2 for this size will set the box heigth to 2 times the text height:
26533 \begin_inset Box Boxed
26542 height_special "height"
26545 \begin_layout Plain Layout
26547 Box height set to 2
26548 \begin_inset Space \thinspace{}
26559 \begin_layout Description
26561 \begin_inset Space ~
26564 Height This is the Height
26565 \begin_inset Space \thinspace{}
26569 \begin_inset Space \thinspace{}
26573 \begin_inset Box Boxed
26582 height_special "totalheight"
26585 \begin_layout Plain Layout
26587 Box height set to 1
26588 \begin_inset Space \thinspace{}
26592 \begin_inset Space ~
26603 \begin_layout Description
26604 Width This sets the width of the box as heigth:
26605 \begin_inset Box Boxed
26614 height_special "width"
26617 \begin_layout Plain Layout
26619 Box height set to 1
26620 \begin_inset Space \thinspace{}
26631 \begin_layout Subsection
26636 \begin_layout Plain Layout
26645 \begin_layout Standard
26646 When you have chosen an
26649 \begin_inset Space ~
26654 , the vertical box alignment can be:
26657 \begin_layout Description
26658 Top This is an example text line.
26660 \begin_inset Box Boxed
26669 height_special "totalheight"
26672 \begin_layout Plain Layout
26674 This box is top-aligned.
26679 This is an example text line.
26682 \begin_layout Description
26683 Middle This is an example text line.
26685 \begin_inset Box Boxed
26694 height_special "totalheight"
26697 \begin_layout Plain Layout
26699 This box is middle-aligned.
26704 This is an example text line.
26707 \begin_layout Description
26708 Bottom This is an example text line.
26710 \begin_inset Box Boxed
26719 height_special "totalheight"
26722 \begin_layout Plain Layout
26724 This box is bottom-aligned.
26729 This is an example text line.
26732 \begin_layout Standard
26733 \begin_inset Note Greyedout
26736 \begin_layout Plain Layout
26741 The vertical box aligment can be lost in the output when you have two boxes
26742 in a line and one has e.
26743 \begin_inset Space \thinspace{}
26747 \begin_inset Space ~
26750 a shadow and the other one not.
26758 \begin_layout Standard
26759 The horizontal box alignment can be set via LyX's paragraph dialog when
26760 you set the box into its own paragraph.
26763 \begin_layout Standard
26764 \begin_inset VSpace bigskip
26767 When you have chosen an
26770 \begin_inset Space ~
26775 , the box content can be vertical aligned to:
26778 \begin_layout Description
26779 top This is an example text line.
26781 \begin_inset Box Boxed
26790 height_special "totalheight"
26793 \begin_layout Plain Layout
26795 This box text is top-aligned.
26800 This is an example text line.
26803 \begin_layout Description
26804 middle This is an example text line.
26806 \begin_inset Box Boxed
26815 height_special "totalheight"
26818 \begin_layout Plain Layout
26820 This box text is middle-aligned.
26825 This is an example text line.
26828 \begin_layout Description
26829 bottom This is an example text line.
26831 \begin_inset Box Boxed
26840 height_special "totalheight"
26843 \begin_layout Plain Layout
26845 This box text is bottom-aligned.
26850 This is an example text line.
26853 \begin_layout Description
26854 stretch This is an example text line.
26856 \begin_inset Box Boxed
26865 height_special "totalheight"
26868 \begin_layout Plain Layout
26873 \begin_layout Plain Layout
26878 \begin_layout Plain Layout
26885 This is an example text line.
26888 \begin_layout Standard
26889 To stretch the box content, it must consist of more than one paragraph.
26890 In the example above every text line is in an own paragraph.
26893 \begin_layout Standard
26894 \begin_inset VSpace bigskip
26897 To align the box content horizontally you can use LyX's paragraph dialog
26898 when you have chosen an
26901 \begin_inset Space ~
26909 \begin_layout Standard
26911 \begin_inset Box Boxed
26920 height_special "totalheight"
26923 \begin_layout Plain Layout
26928 \begin_layout Plain Layout
26933 \begin_layout Plain Layout
26943 \begin_layout Standard
26944 If you haven't set an
26947 \begin_inset Space ~
26952 , you can align the box content horizontally in the box dialog.
26955 \begin_layout Standard
26957 \begin_inset Box Boxed
26966 height_special "totalheight"
26969 \begin_layout Plain Layout
26971 This box text is horizontally stretched.
26979 \begin_layout Section
26981 \begin_inset CommandInset label
26983 name "sec:Framed-Boxes"
26991 \begin_layout Plain Layout
27000 \begin_layout Standard
27001 The frame style of the box can be specified in the box-dialog in the drop-down
27007 The following frame types are possible:
27010 \begin_layout Description
27012 \begin_inset Space ~
27015 box This draws a rectangle frame around the box.
27016 The frame line thickness has the size of
27024 \begin_inset Box Boxed
27033 height_special "totalheight"
27036 \begin_layout Plain Layout
27046 \begin_layout Description
27048 \begin_inset Space ~
27052 \begin_inset Space ~
27055 thin This draws an oval frame around the box.
27056 The frame line thickness has the size 0.4
27057 \begin_inset Space \thinspace{}
27062 \begin_inset Box ovalbox
27071 height_special "totalheight"
27074 \begin_layout Plain Layout
27084 \begin_layout Description
27086 \begin_inset Space ~
27090 \begin_inset Space ~
27093 thick This draws an oval frame around the box.
27094 The frame line thickness has the size 0.8
27095 \begin_inset Space \thinspace{}
27100 \begin_inset Box Ovalbox
27109 height_special "totalheight"
27112 \begin_layout Plain Layout
27122 \begin_layout Description
27124 \begin_inset Space ~
27127 box This draws a rectangle frame with a shadow around the box.
27128 The frame line thickness has the size of
27134 , the shadow has a width of 4
27135 \begin_inset Space \thinspace{}
27140 \begin_inset Box Shadowbox
27149 height_special "totalheight"
27152 \begin_layout Plain Layout
27162 \begin_layout Description
27164 \begin_inset Space ~
27167 box This draws a double-line rectangle frame around the box.
27168 The line thickness of the inner frame is 0.75
27169 \begin_inset Space \thinspace{}
27178 , the thickness of the outer frame is 1.5
27179 \begin_inset Space \thinspace{}
27189 The distance between the lines is 1.5
27190 \begin_inset Space \thinspace{}
27200 \begin_inset Space \thinspace{}
27204 \begin_inset Space \thinspace{}
27208 \begin_inset Space \thinspace{}
27213 \begin_inset Box Doublebox
27222 height_special "totalheight"
27225 \begin_layout Plain Layout
27235 \begin_layout Standard
27236 \begin_inset VSpace bigskip
27239 LyX's box label will change to the used frame style when you set a frame.
27240 To be able to use the different frame styles, the LaTeX-package
27248 \begin_layout Plain Layout
27249 LaTeX-packages ! fancybox
27257 \begin_layout Standard
27258 \begin_inset VSpace bigskip
27261 The default value for the size
27268 \begin_inset Space \thinspace{}
27272 It can be changed with the following command in TeX-Code to e.
27273 \begin_inset Space \thinspace{}
27277 \begin_inset Space ~
27281 \begin_inset Space \thinspace{}
27287 \begin_layout Standard
27297 \begin_layout Standard
27301 \begin_layout Plain Layout
27313 \begin_inset Box Boxed
27322 height_special "totalheight"
27325 \begin_layout Plain Layout
27327 Rectangular box with
27334 \begin_inset Space \thinspace{}
27338 \begin_inset Space \thinspace{}
27342 \begin_inset Space \thinspace{}
27354 \begin_layout Plain Layout
27368 \begin_layout Standard
27369 \begin_inset VSpace bigskip
27372 The space between the frame and the box content is for all frame styles
27374 \begin_inset Space \thinspace{}
27378 You can change it by setting the length
27385 For example the command
27388 \begin_layout Standard
27398 \begin_layout Standard
27399 sets the value to 10
27400 \begin_inset Space \thinspace{}
27403 pt, like for the following box:
27406 \begin_layout Standard
27410 \begin_layout Plain Layout
27422 \begin_inset Box Boxed
27431 height_special "totalheight"
27434 \begin_layout Plain Layout
27436 Rectangular box with
27443 \begin_inset Space \thinspace{}
27447 \begin_inset Space \thinspace{}
27451 \begin_inset Space \thinspace{}
27463 \begin_layout Plain Layout
27477 \begin_layout Standard
27478 \begin_inset VSpace bigskip
27481 The diameter of the round corners of the oval boxes can be set with the
27492 \begin_layout Standard
27500 \begin_layout Standard
27501 sets the diameter to 1
27502 \begin_inset Space \thinspace{}
27509 \begin_layout Standard
27517 \begin_layout Standard
27518 sets the diameter to
27521 \begin_inset Space \thinspace{}
27525 \begin_inset Space \thinspace{}
27528 minimum(width and heigth of box)
27540 \begin_layout Standard
27544 \begin_layout Plain Layout
27554 \begin_inset Box Ovalbox
27563 height_special "totalheight"
27566 \begin_layout Plain Layout
27575 \begin_inset Space \thinspace{}
27579 \begin_inset Space \thinspace{}
27583 \begin_inset Space \thinspace{}
27595 \begin_layout Plain Layout
27607 \begin_layout Standard
27608 \begin_inset VSpace bigskip
27611 The size of the shadow can be adjusted by changing the length
27619 \begin_inset Space \thinspace{}
27622 pt for the following box by this command:
27625 \begin_layout Standard
27635 \begin_layout Standard
27639 \begin_layout Plain Layout
27651 \begin_inset Box Shadowbox
27660 height_special "totalheight"
27663 \begin_layout Plain Layout
27672 \begin_inset Space \thinspace{}
27676 \begin_inset Space \thinspace{}
27680 \begin_inset Space \thinspace{}
27692 \begin_layout Plain Layout
27706 \begin_layout Standard
27707 \begin_inset VSpace bigskip
27710 Changed lengths and widths are valid for all boxes following the commands
27714 \begin_layout Section
27716 \begin_inset CommandInset label
27718 name "sec:Minipages"
27726 \begin_layout Plain Layout
27735 \begin_layout Standard
27736 Minipages are treated by LaTeX as pages within pages and can therefore for
27737 example have their own footnotes.
27740 \begin_layout Standard
27741 Minipages are useful when you write documents with different languages.
27744 \begin_layout Standard
27745 Below are two example minipages side by side.
27746 Their width is set to 45
27747 \begin_inset Space \thinspace{}
27750 col% and they are separated by a horizontal fill, that was inserted via
27753 Insert\SpecialChar \menuseparator
27755 \begin_inset Space ~
27758 Formatting\SpecialChar \menuseparator
27760 \begin_inset Space ~
27768 \begin_layout Standard
27769 \begin_inset Box Frameless
27778 height_special "totalheight"
27781 \begin_layout Plain Layout
27784 Dies ist ein deutscher Text.
27785 Dies ist ein deutscher Text.
27786 Dies ist ein deutscher Text.
27787 Dies ist ein deutscher Text.
27788 Dies ist ein deutscher Text.
27789 Dies ist ein deutscher Text.
27790 Dies ist ein deutscher Text.
27791 Dies ist ein deutscher Text.
27792 Dies ist ein deutscher Text.
27793 Dies ist ein deutscher Text.
27794 Dies ist ein deutscher Text.
27795 Dies ist ein deutscher Text.
27796 Dies ist ein deutscher Text
27800 \begin_layout Plain Layout
27803 Dies ist eine deutsche Fußnote.
27809 Dies ist ein deutscher Text.
27810 Dies ist ein deutscher Text.
27816 \begin_inset Space \hfill{}
27820 \begin_inset Box Frameless
27829 height_special "totalheight"
27832 \begin_layout Plain Layout
27833 This is an English Text.
27834 This is an English Text.
27835 This is an English Text.
27836 This is an English Text.
27837 This is an English Text.
27838 This is an English Text.
27839 This is an English Text.
27840 This is an English Text.
27841 This is an English Text.
27842 This is an English Text.
27843 This is an English Text.
27844 This is an English Text.
27845 This is an English Text.
27846 This is an English Text.
27847 This is an English Text.
27848 This is an English Text.
27852 \begin_layout Plain Layout
27853 This is an English footnote.
27858 This is an English Text.
27867 \begin_layout Standard
27868 \begin_inset VSpace bigskip
27871 Another application for minipages are footnotes within tables.
27872 Due to a LaTeX restriction footnotes within tables doesn't appear at the
27873 bottom of the current page.
27874 But when you put the table with the footnote to a minipage, the footnote
27875 will appear at its bottom, numbered with Latin letters.
27876 The footnote number is reset to 1 in every minipage but not outside the
27880 \begin_layout Standard
27881 The footnote of this table doesn't appear:
27882 \begin_inset Tabular
27883 <lyxtabular version="3" rows="3" columns="4">
27885 <column alignment="center" valignment="top" width="0pt">
27886 <column alignment="center" valignment="top" width="0pt">
27887 <column alignment="center" valignment="top" width="0pt">
27888 <column alignment="center" valignment="top" width="0pt">
27890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27893 \begin_layout Plain Layout
27899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27902 \begin_layout Plain Layout
27908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27911 \begin_layout Plain Layout
27916 \begin_layout Plain Layout
27917 This is a footnote within a table.
27927 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27930 \begin_layout Plain Layout
27938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27941 \begin_layout Plain Layout
27947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27950 \begin_layout Plain Layout
27956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27959 \begin_layout Plain Layout
27965 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27968 \begin_layout Plain Layout
27976 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27979 \begin_layout Plain Layout
27985 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27988 \begin_layout Plain Layout
27994 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27997 \begin_layout Plain Layout
28003 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28006 \begin_layout Plain Layout
28020 \begin_layout Standard
28022 \begin_inset Box Frameless
28031 height_special "totalheight"
28034 \begin_layout Plain Layout
28036 \begin_inset Tabular
28037 <lyxtabular version="3" rows="3" columns="4">
28039 <column alignment="center" valignment="top" width="0pt">
28040 <column alignment="center" valignment="top" width="0pt">
28041 <column alignment="center" valignment="top" width="0pt">
28042 <column alignment="center" valignment="top" width="0pt">
28044 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28047 \begin_layout Plain Layout
28053 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28056 \begin_layout Plain Layout
28062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28065 \begin_layout Plain Layout
28070 \begin_layout Plain Layout
28071 This is a footnote within a table.
28081 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28084 \begin_layout Plain Layout
28092 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28095 \begin_layout Plain Layout
28101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28104 \begin_layout Plain Layout
28110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28113 \begin_layout Plain Layout
28119 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28122 \begin_layout Plain Layout
28130 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28133 \begin_layout Plain Layout
28139 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28142 \begin_layout Plain Layout
28148 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28151 \begin_layout Plain Layout
28157 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28160 \begin_layout Plain Layout
28179 \begin_layout Standard
28180 \begin_inset VSpace bigskip
28183 The document-wide paragraph settings are ignored within minipages.
28184 That means that there will be no space between paragraphs in minipages
28185 although you set it to e.
28186 \begin_inset Space \thinspace{}
28190 \begin_inset Space ~
28197 in the document settings.
28200 \begin_layout Standard
28201 Minipages can also be used to set a background color for text parts, see
28203 \begin_inset Space ~
28207 \begin_inset CommandInset ref
28209 reference "sub:Color-for-Paragraphs"
28216 \begin_layout Standard
28217 \begin_inset Note Greyedout
28220 \begin_layout Plain Layout
28225 You cannot have floats or margin notes inside minipages but minipages can
28226 be used inside tables, floats, and other boxes.
28234 \begin_layout Section
28236 \begin_inset CommandInset label
28238 name "sec:Parboxes"
28246 \begin_layout Plain Layout
28255 \begin_layout Standard
28256 Parboxes are very similar to minipages with the difference that they cannot
28258 The main difference to minipages is that minipages are in contrary to parboxes
28259 no real boxes but LaTeX-environments.
28262 \begin_layout Standard
28264 \begin_inset Box Frameless
28273 height_special "totalheight"
28276 \begin_layout Plain Layout
28277 This a text within a parbox.
28278 This a text within a parbox.
28281 \begin_layout Plain Layout
28282 This footnote won't appear:
28286 \begin_layout Plain Layout
28287 This footnote is inside a parbox and will therefore not appear.
28300 \begin_layout Section
28301 Boxes for Words and Characters
28305 \begin_layout Plain Layout
28306 Boxes ! for Characters
28314 \begin_layout Subsection
28315 Prevent Hyphenation
28316 \begin_inset CommandInset label
28318 name "sec:Prevent-Hyphenation"
28326 \begin_layout Plain Layout
28327 Boxes ! to Prevent Hyphenation
28335 \begin_layout Standard
28336 You can use a special kind of boxes to prevent words or text to be hyphenated.
28337 \begin_inset Newline newline
28340 Here is an example text:
28343 \begin_layout Standard
28344 This line is an example to show how you can prevent the hyphenation of
28345 \begin_inset Quotes eld
28349 \begin_inset Quotes erd
28355 \begin_layout Standard
28356 To prevent the hyphenation of the word
28357 \begin_inset Quotes eld
28361 \begin_inset Quotes erd
28367 \begin_layout Standard
28375 \begin_layout Standard
28376 in TeX-Code before the word.
28377 Behind the word insert a closing brace
28378 \begin_inset Quotes eld
28386 \begin_inset Quotes erd
28392 \begin_layout Standard
28393 This is the result:
28396 \begin_layout Standard
28397 This line is an example to show how you can prevent the hyphenation of
28401 \begin_layout Plain Layout
28411 \begin_inset Quotes eld
28415 \begin_inset Quotes erd
28422 \begin_layout Plain Layout
28432 \begin_layout Standard
28433 You can alternatively set the command
28434 \begin_inset Quotes eld
28444 \begin_inset Quotes grd
28447 as TeX-Code directly before the word:
28450 \begin_layout Standard
28451 This line is an example to show how you can prevent the hyphenation of
28452 \begin_inset Quotes eld
28459 \begin_layout Plain Layout
28469 \begin_inset Quotes erd
28475 \begin_layout Standard
28476 Of course the word now protrudes over the side margin.
28477 To avoid this, add via the menu
28479 Insert\SpecialChar \menuseparator
28481 \begin_inset Space ~
28484 Formatting\SpecialChar \menuseparator
28486 \begin_inset Space ~
28495 ) a line break before the word:
28498 \begin_layout Standard
28499 This line is an example to show how you can prevent the hyphenation of
28500 \begin_inset Newline newline
28507 \begin_layout Plain Layout
28517 \begin_inset Quotes eld
28521 \begin_inset Quotes erd
28528 \begin_layout Plain Layout
28538 \begin_layout Subsection
28540 \begin_inset CommandInset label
28542 name "sub:Vertical-Alignment"
28550 \begin_layout Plain Layout
28551 Boxes ! for Vertical Alignment
28560 \begin_layout Plain Layout
28569 \begin_layout Standard
28570 With the help of the command
28576 you can align words, characters or other boxes vertically to the surrounding
28584 is used with the following scheme:
28587 \begin_layout Standard
28592 raisebox{lift}[height][depth]{box content}
28595 \begin_layout Standard
28596 The lift can be a positive value to raise the box or a negative value to
28600 \begin_layout Standard
28601 To align for example the word
28602 \begin_inset Quotes eld
28606 \begin_inset Quotes erd
28609 so that the bottom of the
28610 \begin_inset Quotes eld
28614 \begin_inset Quotes erd
28618 \begin_inset Quotes eld
28622 \begin_inset Quotes erd
28625 is at the baseline, insert the command
28628 \begin_layout Standard
28638 \begin_layout Standard
28639 in TeX-Code before the word.
28640 Behind the word insert a closing brace
28641 \begin_inset Quotes eld
28649 \begin_inset Quotes erd
28653 \begin_inset Newline newline
28656 This is the result:
28659 \begin_layout Standard
28660 This is a text line with the word
28664 \begin_layout Plain Layout
28676 \begin_inset Quotes eld
28680 \begin_inset Quotes erd
28687 \begin_layout Plain Layout
28697 \begin_layout Standard
28698 \begin_inset VSpace bigskip
28701 When you raise or lower characters in a line, the line distance will be
28705 \begin_layout Standard
28706 This is a text line with the word
28710 \begin_layout Plain Layout
28722 \begin_inset Quotes eld
28726 \begin_inset Quotes erd
28733 \begin_layout Plain Layout
28741 \begin_inset Newline newline
28744 This is a text line with the word
28748 \begin_layout Plain Layout
28758 \begin_inset Quotes eld
28762 \begin_inset Quotes erd
28769 \begin_layout Plain Layout
28779 \begin_layout Standard
28780 If you want to prevent this for a certain reason, set the box height to
28785 \begin_layout Standard
28795 \begin_layout Standard
28796 This is a text line with the word
28800 \begin_layout Plain Layout
28812 \begin_inset Quotes eld
28816 \begin_inset Quotes erd
28823 \begin_layout Plain Layout
28831 \begin_inset Newline newline
28834 This is a text line with the word
28838 \begin_layout Plain Layout
28842 raisebox{0.5cm}[0pt]{
28848 \begin_inset Quotes eld
28852 \begin_inset Quotes erd
28859 \begin_layout Plain Layout
28869 \begin_layout Section
28871 \begin_inset CommandInset label
28873 name "sec:Colored-Boxes"
28881 \begin_layout Plain Layout
28890 \begin_layout Subsection
28895 \begin_layout Plain Layout
28904 \begin_layout Standard
28905 To color the background of text the text must be put into a so called
28906 \begin_inset Quotes eld
28910 \begin_inset Quotes erd
28914 This requires that the LaTeX-package
28922 \begin_layout Plain Layout
28923 LaTeX-packages ! color
28928 is loaded in the document preamble with the command
28931 \begin_layout Standard
28936 @ifundefined{textcolor}
28937 \begin_inset Newline newline
28944 \begin_layout Plain Layout
28955 usepackage{color}}{}
28958 \begin_layout Standard
28963 will be loaded automatically by LyX when you color text
28967 \begin_layout Plain Layout
28968 To avoid that it is loaded twice the command
28972 @ifundef\SpecialChar \textcompwordmark{}
28983 \begin_layout Standard
28984 \begin_inset VSpace medskip
28987 Colorboxes are created with the command
28994 This will be used with the following scheme:
28997 \begin_layout Standard
29002 colorbox{color}{box content}
29005 \begin_layout Standard
29006 The box content can also be a box and colorboxes can also be within other
29010 \begin_layout Standard
29011 The following colors are predefined:
29012 \begin_inset Newline newline
29051 \begin_inset Newline newline
29054 You can also define your own color as described in section
29055 \begin_inset Space ~
29059 \begin_inset CommandInset ref
29061 reference "sec:Colored-Tables"
29068 \begin_layout Standard
29070 \begin_inset Space \thinspace{}
29074 \begin_inset Space ~
29077 a red background for a word, insert the command
29080 \begin_layout Standard
29088 \begin_layout Standard
29089 before the word in TeX-Code.
29090 Behind the word insert a closing brace
29091 \begin_inset Quotes eld
29099 \begin_inset Quotes erd
29103 \begin_inset Newline newline
29106 This is the result:
29109 \begin_layout Standard
29110 This is a line where the word
29114 \begin_layout Plain Layout
29124 \begin_inset Quotes eld
29128 \begin_inset Quotes erd
29135 \begin_layout Plain Layout
29142 has a red background.
29145 \begin_layout Standard
29146 \begin_inset VSpace bigskip
29149 If you would have the box frame in a different color, you can use the command
29156 with the following scheme:
29159 \begin_layout Standard
29164 fcolorbox{frame color}{box color}{box content}
29167 \begin_layout Standard
29181 The frame thickness and the space between the frame and the box content
29182 can be adjusted with the lengths
29194 , respectively, as described in section
29195 \begin_inset Space ~
29199 \begin_inset CommandInset ref
29201 reference "sec:Framed-Boxes"
29208 \begin_layout Standard
29209 For the following example the command
29212 \begin_layout Standard
29217 fcolorbox{cyan}{magenta}{
29220 \begin_layout Standard
29224 \begin_layout Standard
29225 Here is an example where the frame line thickness was set to 1
29226 \begin_inset Space \thinspace{}
29230 \begin_inset Newline newline
29237 \begin_layout Plain Layout
29252 \begin_layout Plain Layout
29256 fcolorbox{cyan}{magenta}{
29261 This is text within a colored, framed box.
29265 \begin_layout Plain Layout
29275 \begin_layout Standard
29276 \begin_inset VSpace bigskip
29279 Of course you can also have colored text inside a colorbox:
29280 \begin_inset Newline newline
29287 \begin_layout Plain Layout
29291 fcolorbox{cyan}{magenta}{
29298 This is colored text within a colored, framed box.
29304 \begin_layout Plain Layout
29315 \begin_layout Plain Layout
29329 \begin_layout Standard
29332 \begin_inset VSpace medskip
29338 \begin_layout Standard
29339 \begin_inset Note Greyedout
29342 \begin_layout Plain Layout
29347 Text in colorboxes cannot have line breaks.
29348 To color multiple text lines or paragraphs, use a box inside a colorbox
29349 as described in the following.
29357 \begin_layout Subsection
29358 Color for Paragraphs
29359 \begin_inset CommandInset label
29361 name "sub:Color-for-Paragraphs"
29369 \begin_layout Plain Layout
29370 Color ! for Paragraphs
29378 \begin_layout Standard
29379 To set the background color for more than one text line, put the text into
29381 Before the minipage insert the
29390 \begin_layout Standard
29398 \begin_layout Standard
29400 Behind the minipage insert a closing brace
29401 \begin_inset Quotes eld
29409 \begin_inset Quotes erd
29415 \begin_layout Standard
29419 \begin_layout Plain Layout
29423 colorbox{lightgrey}{
29429 \begin_inset Box Frameless
29438 height_special "totalheight"
29441 \begin_layout Plain Layout
29442 This is text with background color.
29443 This is text with background color.
29446 \begin_layout Plain Layout
29447 \begin_inset VSpace defskip
29450 The text can have footnotes
29454 \begin_layout Plain Layout
29455 Another example footnote
29460 and can include tables and figures.
29463 \begin_layout Plain Layout
29465 \begin_inset Tabular
29466 <lyxtabular version="3" rows="3" columns="3">
29468 <column alignment="center" valignment="top" width="0">
29469 <column alignment="center" valignment="top" width="0">
29470 <column alignment="center" valignment="top" width="0">
29472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29475 \begin_layout Plain Layout
29481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29484 \begin_layout Plain Layout
29490 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29493 \begin_layout Plain Layout
29501 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29504 \begin_layout Plain Layout
29510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29513 \begin_layout Plain Layout
29515 \begin_inset Quotes erd
29523 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29526 \begin_layout Plain Layout
29534 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29537 \begin_layout Plain Layout
29543 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29546 \begin_layout Plain Layout
29552 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29555 \begin_layout Plain Layout
29575 \begin_layout Plain Layout
29585 \begin_layout Section
29586 Rotated and Scaled Boxes
29589 \begin_layout Standard
29590 To use the the commands described in this section, the LaTeX-package
29598 \begin_layout Plain Layout
29599 LaTeX-packages ! graphicx
29604 needs to be loaded in the document preamble with the command
29607 \begin_layout Standard
29612 @ifundefined{rotatebox}
29613 \begin_inset Newline newline
29620 \begin_layout Plain Layout
29631 usepackage{graphicx}}{}
29634 \begin_layout Standard
29635 \begin_inset Note Greyedout
29638 \begin_layout Plain Layout
29643 Some DVI-viewers can't display rotated or scaled material.
29651 \begin_layout Standard
29652 \begin_inset Note Greyedout
29655 \begin_layout Plain Layout
29660 Floats mustn't be inside a rotated or scaled box.
29668 \begin_layout Subsection
29673 \begin_layout Plain Layout
29683 \begin_layout Plain Layout
29693 \begin_layout Plain Layout
29703 \begin_layout Plain Layout
29704 Table Customization ! Rotating
29712 \begin_layout Standard
29713 To rotate material, you can put it into a rotated box.
29714 Such a box is created using the command
29720 in TeX-Code with the following scheme:
29723 \begin_layout Standard
29728 rotatebox[rotation origin]{rotation angle}{box content}
29731 \begin_layout Standard
29732 The rotation origin is specified in the form
29737 The following positions are possible:
29757 (top), and also expedient combinations of the four base positions.
29762 means, that the rotation origin is at the top left corner of the box.
29763 When no rotation origin is specified, the position
29768 The rotation angle is a number that can be negative that specifies the
29770 The rotation direction is counterclockwise.
29773 \begin_layout Standard
29774 In the following example the command
29778 rotatebox[origin=c]{60}{
29780 was inserted as TeX-Code before the text
29781 \begin_inset Quotes eld
29785 \begin_inset Quotes erd
29788 ; after the text the box was closed by a closing brace
29795 \begin_layout Standard
29800 \begin_layout Plain Layout
29804 rotatebox[origin=c]{60}{
29813 \begin_layout Plain Layout
29823 \begin_layout Standard
29824 The box content can also be another box or an inline formula:
29827 \begin_layout Standard
29832 \begin_layout Plain Layout
29836 rotatebox[origin=r]{-60}{
29842 \begin_inset Box Doublebox
29851 height_special "totalheight"
29854 \begin_layout Plain Layout
29864 \begin_layout Plain Layout
29875 \begin_layout Plain Layout
29879 rotatebox[origin=lb]{60}{
29885 \begin_inset Formula $\int A\,\mathrm{d}x=B$
29892 \begin_layout Plain Layout
29902 \begin_layout Standard
29903 or an image or table:
29906 \begin_layout Standard
29911 \begin_layout Plain Layout
29915 rotatebox[origin=lb]{90}{
29921 \begin_inset Graphics
29922 filename clipart/platypus.eps
29932 \begin_layout Plain Layout
29939 with a rotated image
29943 \begin_layout Plain Layout
29947 rotatebox[origin=l]{-90}{
29953 \begin_inset Tabular
29954 <lyxtabular version="3" rows="2" columns="2">
29956 <column alignment="center" valignment="top" width="0">
29957 <column alignment="center" valignment="top" width="0">
29959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29962 \begin_layout Plain Layout
29968 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29971 \begin_layout Plain Layout
29979 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29982 \begin_layout Plain Layout
29988 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29991 \begin_layout Plain Layout
30006 \begin_layout Plain Layout
30016 \begin_layout Subsection
30021 \begin_layout Plain Layout
30031 \begin_layout Plain Layout
30041 \begin_layout Plain Layout
30051 \begin_layout Plain Layout
30052 Table Customization ! Scaling
30060 \begin_layout Standard
30061 To scale material the commands
30073 can be used as TeX-Code.
30076 \begin_layout Standard
30083 is used with the following scheme:
30086 \begin_layout Standard
30091 scalebox{horizontal}[vertical]{box content}
30094 \begin_layout Standard
30095 Horizontal and vertical are the corresponding scaling factors.
30096 If no vertical scaling factor is given, the horizontal factor will also
30097 be used as vertical one.
30100 \begin_layout Standard
30107 creates for example a double size
30111 \begin_layout Plain Layout
30124 \begin_layout Plain Layout
30131 , compared to the document text size.
30134 \begin_layout Standard
30139 scalebox{2}[1]{Hello}
30141 in contrary distorts the
30145 \begin_layout Plain Layout
30158 \begin_layout Plain Layout
30168 \begin_layout Standard
30169 If a the scaling factor is negative, the box content will be mirrored.
30170 Therefore the command
30174 scalebox{-1}[1]{Hello}
30176 can be used to create mirror writing:
30180 \begin_layout Plain Layout
30193 \begin_layout Plain Layout
30203 \begin_layout Standard
30208 scalebox{1}[-1]{Hello}
30214 \begin_layout Plain Layout
30227 \begin_layout Plain Layout
30237 \begin_layout Standard
30242 scalebox{-1}[1]{box content}
30244 there exists the command
30245 \begin_inset Newline newline
30252 reflectbox{box content}
30257 \begin_layout Standard
30258 \begin_inset VSpace bigskip
30267 is used to scale the box to a defined width and height.
30268 The command scheme is:
30271 \begin_layout Standard
30276 resizebox{width}{height}{box content}
30279 \begin_layout Standard
30280 Is one of the two command arguments given as exclamation mark
30284 , the size is set so that the aspect ratio of the box content is kept.
30287 \begin_layout Standard
30292 resizebox{2cm}{1cm}{Hello}
30298 \begin_layout Plain Layout
30302 resizebox{2cm}{1cm}{
30311 \begin_layout Plain Layout
30319 \begin_inset Newline newline
30326 resizebox{2cm}{!}{Hello}
30332 \begin_layout Plain Layout
30345 \begin_layout Plain Layout
30355 \begin_layout Standard
30356 \begin_inset VSpace bigskip
30360 \begin_inset Note Greyedout
30363 \begin_layout Plain Layout
30380 are set to zero, no LaTeX-errors occur when exporting the document but
30381 the exported files can not or only partly be displayed.
30389 \begin_layout Standard
30390 \begin_inset VSpace bigskip
30396 \begin_layout Standard
30397 The boxes can be combined in any order.
30399 \begin_inset Space \thinspace{}
30403 \begin_inset Space ~
30407 \begin_inset Newline newline
30414 rotatebox[origin=c]{-45}{
30418 reflectbox{Hello}}}
30419 \begin_inset Newline newline
30427 \begin_layout Standard
30432 \begin_layout Plain Layout
30436 rotatebox[origin=c]{-45}{
30449 \begin_layout Plain Layout
30459 \begin_layout Standard
30461 Images, tables, and inline formulas are allowed as box content:
30464 \begin_layout Standard
30469 \begin_layout Plain Layout
30473 rotatebox[origin=c]{-30}{
30483 \begin_inset Graphics
30484 filename clipart/platypus.eps
30494 \begin_layout Plain Layout
30505 \begin_layout Plain Layout
30509 rotatebox[origin=c]{-45}{
30519 \begin_inset Tabular
30520 <lyxtabular version="3" rows="2" columns="2">
30522 <column alignment="center" valignment="top" width="0">
30523 <column alignment="center" valignment="top" width="0">
30525 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30528 \begin_layout Plain Layout
30534 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30537 \begin_layout Plain Layout
30545 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30548 \begin_layout Plain Layout
30554 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30557 \begin_layout Plain Layout
30572 \begin_layout Plain Layout
30583 \begin_layout Plain Layout
30587 rotatebox[origin=c]{-45}{
30597 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30604 \begin_layout Plain Layout
30614 \begin_layout Standard
30615 When the global formula style
30619 is used in the document
30623 \begin_layout Plain Layout
30625 \begin_inset Quotes eld
30629 \begin_inset Quotes erd
30632 is added to the document class options.
30637 , also display formulas can be scaled.
30640 \begin_layout Chapter
30645 \begin_layout Plain Layout
30654 \begin_layout Standard
30657 Insert\SpecialChar \menuseparator
30660 you can insert external material to your document.
30664 \begin_layout Description
30666 \begin_inset Space ~
30669 Document Another LyX document; its content is directly inserted to your
30673 \begin_layout Description
30675 \begin_inset Space ~
30678 Text A text document; every of its text lines is inserted to your document
30682 \begin_layout Description
30684 \begin_inset Space ~
30688 \begin_inset Space ~
30692 \begin_inset Space ~
30695 Lines A text document; its text lines are inserted as they are.
30696 Empty text lines creates a new paragraph in your document.
30699 \begin_layout Description
30701 \begin_inset Space ~
30704 Material Files in various formats.
30707 \begin_layout Description
30709 \begin_inset Space ~
30712 Document LyX or LaTeX-documents.
30715 \begin_layout Section
30720 \begin_layout Plain Layout
30721 External Stuff ! External Material
30729 \begin_layout Standard
30730 The external material feature allows you to insert files to your document
30731 without converting them previously to a format that can be read by the
30732 document output format because LyX takes care of needed conversions.
30733 This is similar to images that can be inserted in various image formats
30737 \begin_layout Standard
30738 External material can be inserted via the
30742 dialog that is accessible with the menu
30744 Insert\SpecialChar \menuseparator
30745 File\SpecialChar \menuseparator
30747 \begin_inset Space ~
30753 Currently the following file types (
30760 \begin_layout Description
30761 ChessDiagram This template supports chess position diagrams made with the
30765 \begin_inset CommandInset href
30768 target "http://en.wikipedia.org/wiki/XBoard"
30777 \begin_layout Description
30778 Date This inserts the date in the form
30783 This is a date inserted as external material:
30784 \begin_inset External
30791 \begin_inset Space ~
30795 \begin_inset Note Note
30798 \begin_layout Plain Layout
30799 Remove the protected space when bug 4398 is fixed!
30805 \begin_inset Newline newline
30808 The date is not shown within LyX, only in the output.
30809 There are two other methods of inserting a date: Via menu
30811 Insert\SpecialChar \menuseparator
30814 and with the LaTeX command
30821 The different methods are compared in Table
30822 \begin_inset Space ~
30826 \begin_inset CommandInset ref
30828 reference "tab:Comparison-of-the"
30835 \begin_layout Description
30836 LilyPond This template is used for music notation typeset with the program
30837 \begin_inset Newline linebreak
30843 \begin_inset CommandInset href
30846 target "http://en.wikipedia.org/wiki/LilyPond"
30855 \begin_layout Description
30856 RasterImage This can be used for bitmap images.
30857 Nearly all popular image formats are supported.
30858 The image can be treated in the
30862 dialog like the images that are usually included via the
30866 dialog as described in section
30867 \begin_inset Space ~
30871 \begin_inset CommandInset ref
30873 reference "sec:Graphics-Dialog"
30878 The difference is that only raster images are allowed, that means that
30879 PDF and EPS-images are not supported.
30882 \begin_layout Description
30883 XFig This template supports images created with the program
30886 \begin_inset CommandInset href
30889 target "http://en.wikipedia.org/wiki/Xfig"
30898 \begin_layout Standard
30899 \begin_inset Float table
30905 \begin_layout Plain Layout
30906 \begin_inset Caption
30908 \begin_layout Plain Layout
30909 \begin_inset CommandInset label
30911 name "tab:Comparison-of-the"
30915 Comparison of the date input methods.
30923 \begin_layout Plain Layout
30925 \begin_inset Tabular
30926 <lyxtabular version="3" rows="4" columns="4">
30928 <column alignment="center" valignment="top" width="0">
30929 <column alignment="center" valignment="top" width="0">
30930 <column alignment="center" valignment="top" width="0">
30931 <column alignment="center" valignment="top" width="0">
30933 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30936 \begin_layout Plain Layout
30942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30945 \begin_layout Plain Layout
30948 External Material\SpecialChar \menuseparator
30954 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30957 \begin_layout Plain Layout
30960 Insert\SpecialChar \menuseparator
30966 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30969 \begin_layout Plain Layout
30981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30984 \begin_layout Plain Layout
30990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30993 \begin_layout Plain Layout
30999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31002 \begin_layout Plain Layout
31008 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31011 \begin_layout Plain Layout
31012 as TeX-Code inset box
31019 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31022 \begin_layout Plain Layout
31028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31031 \begin_layout Plain Layout
31037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31040 \begin_layout Plain Layout
31046 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31049 \begin_layout Plain Layout
31057 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31060 \begin_layout Plain Layout
31066 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31069 \begin_layout Plain Layout
31075 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31078 \begin_layout Plain Layout
31084 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31087 \begin_layout Plain Layout
31106 \begin_layout Standard
31107 When you use the option
31119 dialog, only the path to the inserted file is shown in the output.
31120 \begin_inset Newline newline
31123 External material is displayed in LyX either as box like this:
31124 \begin_inset Graphics
31125 filename clipart/ExternalMaterialQt4.png
31127 scaleBeforeRotation
31131 or as image, depending on the setting in the
31134 \begin_inset Space ~
31146 \begin_layout Standard
31153 manual explains how you can define your own templates.
31156 \begin_layout Section
31158 \begin_inset CommandInset label
31160 name "sec:Child-Documents"
31168 \begin_layout Plain Layout
31169 External Stuff ! Child Documents
31178 \begin_layout Plain Layout
31187 \begin_layout Standard
31188 Child documents are used when you have a long document consisting of several
31189 larger parts or sections.
31190 For maintenance it is often useful and sometimes even required to split
31191 the document in several files that can be revised separately.
31192 The different documents are then the so called child documents and a master
31193 document connects them to print the full document or parts of it.
31196 \begin_layout Standard
31197 Included documents are displayed in LyX as a box like this:
31198 \begin_inset Graphics
31199 filename clipart/ChildDocumentQt4.png
31201 scaleBeforeRotation
31205 To include child documents to a master document use the menu
31207 Insert\SpecialChar \menuseparator
31208 File\SpecialChar \menuseparator
31210 \begin_inset Space ~
31216 A dialog pops up where you can choose between four include methods:
31219 \begin_layout Description
31220 Include You can include LyX and LaTeX-documents.
31229 dialog, the included documents will be opened in LyX in a new file tab
31230 so that you can modify it.
31231 \begin_inset Newline newline
31237 \begin_layout Standard
31238 Here is a child document inserted using
31243 \begin_inset CommandInset include
31244 LatexCommand include
31245 filename "DummyDocument1.lyx"
31252 \begin_layout Standard
31253 The section numbering includes the sections of the included files in the
31254 order they are inserted in the master document.
31255 The included example document has for example a subsection that is numbered
31256 as subsection of this section.
31257 Labels of included documents can be referenced: Subsection
31258 \begin_inset Space ~
31262 \begin_inset CommandInset ref
31264 reference "sub:External-Subsection-1"
31271 \begin_layout Standard
31272 The preamble of the child document is ignored, only the preamble of the
31273 master document is used.
31274 Included documents are inserted starting on a new page and end with a page
31278 \begin_layout Standard
31279 With the LaTeX-command
31285 you can specify which included child documents are processed when the output
31287 This is useful when you are perhaps only working on a certain chapter of
31288 your large document as this saves compiling time.
31295 is inserted to the master document preamble.
31296 It takes a comma-separated list of the filenames as argument, e.g.
31299 \begin_layout Standard
31304 includeonly{chapter1,chapter5}
31307 \begin_layout Standard
31308 will only process the included files named
31309 \begin_inset Quotes eld
31313 \begin_inset Quotes erd
31317 \begin_inset Quotes eld
31321 \begin_inset Quotes erd
31325 \begin_inset Quotes eld
31329 \begin_inset Quotes erd
31335 \begin_layout Standard
31336 \begin_inset Note Greyedout
31339 \begin_layout Plain Layout
31344 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
31345 w the document in case that the child document uses another document class
31346 than the master document as this will lead to unexpected outputs.
31354 \begin_layout Description
31355 Input This method is very similar to the Include method.
31356 The differences are:
31360 \begin_layout Itemize
31361 Input files don't start with a new page and don't end with a page break.
31364 \begin_layout Itemize
31365 Input files can be previewed in LyX when
31368 \begin_inset Space ~
31373 is enabled in LyX's preferences under
31376 \begin_inset Space ~
31380 \begin_inset Space ~
31383 feel\SpecialChar \menuseparator
31389 \begin_layout Itemize
31400 \begin_layout Standard
31401 Here is a child document inserted using
31406 \begin_inset CommandInset include
31408 filename "DummyDocument2.lyx"
31415 \begin_layout Description
31416 Verbatim With this method every text file can be included.
31417 The file is shown in the output with its source code, no command used in
31418 the text is invoked.
31419 You can use the option
31421 Mark spaces in output
31423 that displays the character
31424 \begin_inset Quotes eld
31431 \begin_layout Plain Layout
31441 \begin_inset Quotes erd
31444 for every space character in the source code.
31445 The difference to the method via the menu
31447 Insert\SpecialChar \menuseparator
31448 File\SpecialChar \menuseparator
31450 \begin_inset Space ~
31455 is that the document content is not shown in LyX.
31458 \begin_layout Standard
31459 Here is a child document inserted as Verbatim:
31460 \begin_inset CommandInset include
31461 LatexCommand verbatiminput
31462 filename "DummyTextDocument.txt"
31467 \begin_inset VSpace bigskip
31470 Here is a child document inserted as Verbatim using the
31472 Mark spaces in output
31475 \begin_inset CommandInset include
31476 LatexCommand verbatiminput*
31477 filename "DummyTextDocument.txt"
31484 \begin_layout Standard
31485 \begin_inset VSpace bigskip
31491 \begin_layout Standard
31492 \begin_inset Note Greyedout
31495 \begin_layout Plain Layout
31500 As you can see in the examples above, the text of the documents included
31505 is not broken at the end of the document lines.
31513 \begin_layout Description
31514 Listings This type is described in chapter
31515 \begin_inset Space ~
31519 \begin_inset CommandInset ref
31521 reference "cha:Program-Code-Listings"
31528 \begin_layout Standard
31529 \begin_inset Note Greyedout
31532 \begin_layout Plain Layout
31537 Including the same document twice in a document using different methods
31538 could cause LaTeX-problems.
31546 \begin_layout Chapter
31547 Program Code Listings
31548 \begin_inset CommandInset label
31550 name "cha:Program-Code-Listings"
31558 \begin_layout Plain Layout
31568 \begin_layout Plain Layout
31578 \begin_layout Plain Layout
31587 \begin_layout Standard
31588 To include and typeset program code you can use the
31592 inset that can be inserted via the menu
31594 Insert\SpecialChar \menuseparator
31606 \begin_layout Plain Layout
31607 LaTeX-packages ! listings
31612 provides a powerful and flexible way to insert program source code to your
31616 \begin_layout Standard
31617 When right-clicking on a listings inset a dialog pops up where you can set
31618 the listings format.
31621 \begin_layout Standard
31622 By default, a listing starts a new paragraph in the output.
31623 The placement option
31626 \begin_inset Space ~
31631 prints the listing inline like this:
31632 \begin_inset listings
31633 lstparams "language={C++}"
31637 \begin_layout Plain Layout
31644 \begin_inset Newline newline
31651 creates a listings float where you can specify the placement options
31652 \begin_inset Quotes eld
31660 \begin_inset Quotes erd
31664 \begin_inset Quotes eld
31672 \begin_inset Quotes erd
31676 \begin_inset Quotes eld
31684 \begin_inset Quotes erd
31688 \begin_inset Quotes eld
31696 \begin_inset Quotes erd
31699 corresponding to the float placement options described in section
31700 \begin_inset Space ~
31704 \begin_inset CommandInset ref
31706 reference "sec:Float-Placement"
31711 The placement options can be mixed and are inserted without any separation,
31713 \begin_inset Space \thinspace{}
31717 \begin_inset Space ~
31721 \begin_inset Quotes eld
31729 \begin_inset Quotes erd
31734 \begin_inset Quotes eld
31738 \begin_inset Quotes erd
31741 has sometimes no effect, but you don't need to use the
31745 option in this case as also non-float listings can have captions and be
31749 \begin_layout Standard
31750 You can add captions to listings with the menu
31752 Insert\SpecialChar \menuseparator
31756 Listings can be referenced like floats: Listing
31757 \begin_inset Space ~
31761 \begin_inset CommandInset ref
31763 reference "lst:Example-Listing"
31770 \begin_layout Standard
31771 \begin_inset listings
31772 lstparams "language=Python"
31776 \begin_layout Plain Layout
31777 \begin_inset Caption
31779 \begin_layout Plain Layout
31780 \begin_inset CommandInset label
31782 name "lst:Example-Listing"
31786 Example Listing float
31791 # Example listing float
31794 \begin_layout Plain Layout
31798 \begin_layout Plain Layout
31799 'this is a python function'
31802 \begin_layout Plain Layout
31811 \begin_layout Standard
31812 When you have set a programming language in the listings dialog, the keywords
31813 of this language will be recognized and specially typeset in the output.
31814 In the example listings the Python keyword
31815 \begin_inset Quotes eld
31819 \begin_inset Quotes erd
31822 is recognized and printed bold in the output.
31825 \begin_layout Standard
31826 \begin_inset Note Greyedout
31829 \begin_layout Plain Layout
31834 If you don't get bold keywords when using typewriter fonts, your typewriter
31835 font probably doesn't provide a bold shape.
31836 In this case select a different one in the menu
31838 Document\SpecialChar \menuseparator
31839 Settings\SpecialChar \menuseparator
31851 provide bold shapes.)
31859 \begin_layout Standard
31863 \begin_inset Space ~
31868 of the listings dialog you can specify the line numbering style.
31869 You can insert a number to specify which lines are numbered to the field
31875 When you insert e.g.
31877 \begin_inset Quotes eld
31881 \begin_inset Quotes erd
31884 , only every 3rd line will be numbered.
31887 \begin_layout Standard
31888 You can furthermore specify a range of lines, only these will then appear
31893 \begin_inset Space ~
31898 should be used when you use national characters like the German umlauts
31900 \begin_inset Newline newline
31903 Here is an example listing with left line numbering, step
31904 \begin_inset Quotes eld
31908 \begin_inset Quotes erd
31912 \begin_inset Quotes eld
31916 \begin_inset Quotes erd
31920 \begin_inset Quotes eld
31924 \begin_inset Space ~
31928 \begin_inset Quotes erd
31932 \begin_inset Quotes eld
31936 \begin_inset Space ~
31940 \begin_inset Space ~
31944 \begin_inset Quotes erd
31948 \begin_inset Space \thinspace{}
31952 \begin_inset Space \thinspace{}
31958 \begin_layout Standard
31959 \begin_inset listings
31960 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
31964 \begin_layout Plain Layout
31968 \begin_layout Plain Layout
31969 'this is a python function'
31972 \begin_layout Plain Layout
31976 \begin_layout Plain Layout
31980 \begin_layout Plain Layout
31981 'This is a German word: Tschüß'
31984 \begin_layout Plain Layout
31988 \begin_layout Plain Layout
31992 \begin_layout Plain Layout
31993 'this is a python function'
31996 \begin_layout Plain Layout
32005 \begin_layout Standard
32006 \begin_inset Note Greyedout
32009 \begin_layout Plain Layout
32014 Due to a bug in the
32018 package the line numbering is shifted by a line by every previous listing.
32019 That's the reason why the lines 2 and 5 are numbered in the above listing
32020 and not the lines 3 and 6.
32028 \begin_layout Standard
32029 \begin_inset VSpace bigskip
32035 \begin_layout Standard
32036 It is also possible to print lines from a file as listing.
32037 To do this, use the menu
32039 Insert\SpecialChar \menuseparator
32040 File\SpecialChar \menuseparator
32043 and choose the type
32051 \begin_layout Plain Layout
32052 The other child document types are described in section
32053 \begin_inset Space ~
32057 \begin_inset CommandInset ref
32059 reference "sec:Child-Documents"
32068 In the child document dialog you can specify the listing parameters in
32070 To show a list of all available parameters, type in a question mark
32071 \begin_inset Quotes eld
32075 \begin_inset Quotes erd
32081 \begin_layout Standard
32082 To reference child document listings, write a label text into the corresponding
32083 field of the child document dialog.
32084 The label can then be referenced using the menu
32086 Insert\SpecialChar \menuseparator
32092 \begin_layout Standard
32094 \begin_inset Space ~
32098 \begin_inset CommandInset ref
32100 reference "lst:file-listing"
32104 is an example for a listing of a file; there the lines 10
32105 \begin_inset Space \thinspace{}
32109 \begin_inset Space \thinspace{}
32112 15 of this LyX file are listed.
32115 \begin_layout Standard
32116 \begin_inset CommandInset include
32117 LatexCommand lstinputlisting
32118 filename "EmbeddedObjects.lyx"
32119 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
32126 \begin_layout Standard
32127 \begin_inset VSpace bigskip
32133 \begin_layout Standard
32134 Global listings settings can be set in the
32136 Document\SpecialChar \menuseparator
32137 Settings\SpecialChar \menuseparator
32141 To get there a list of available options, type in a question mark
32142 \begin_inset Quotes eld
32146 \begin_inset Quotes erd
32152 \begin_inset Space ~
32160 \begin_layout Standard
32161 For more information about the
32165 package, we refer to its documentation
32166 \begin_inset CommandInset citation
32175 \begin_layout Standard
32176 \begin_inset Newpage newpage
32182 \begin_layout Chapter
32184 Units available in LyX
32188 \begin_layout Plain Layout
32195 \begin_inset CommandInset label
32197 name "cha:Units-available-in"
32204 \begin_layout Standard
32205 To understand the units described in this documentation, Table
32206 \begin_inset Space ~
32210 \begin_inset CommandInset ref
32212 reference "tab:Units"
32216 explains all units available in LyX.
32219 \begin_layout Standard
32220 \begin_inset Float table
32226 \begin_layout Plain Layout
32227 \begin_inset Caption
32229 \begin_layout Plain Layout
32230 \begin_inset CommandInset label
32244 \begin_layout Plain Layout
32245 \begin_inset VSpace medskip
32251 \begin_layout Plain Layout
32253 \begin_inset Tabular
32254 <lyxtabular version="3" rows="20" columns="2">
32256 <column alignment="center" valignment="top" width="0">
32257 <column alignment="center" valignment="top" width="0">
32259 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32262 \begin_layout Plain Layout
32268 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32271 \begin_layout Plain Layout
32279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32282 \begin_layout Plain Layout
32288 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32291 \begin_layout Plain Layout
32299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32302 \begin_layout Plain Layout
32308 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32311 \begin_layout Plain Layout
32319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32322 \begin_layout Plain Layout
32328 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32331 \begin_layout Plain Layout
32339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32342 \begin_layout Plain Layout
32348 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32351 \begin_layout Plain Layout
32353 \begin_inset Space \thinspace{}
32357 \begin_inset Space \thinspace{}
32367 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32370 \begin_layout Plain Layout
32376 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32379 \begin_layout Plain Layout
32381 \begin_inset Space \thinspace{}
32385 \begin_inset Space \thinspace{}
32395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32398 \begin_layout Plain Layout
32404 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32407 \begin_layout Plain Layout
32408 scaled point (65536
32409 \begin_inset Space \thinspace{}
32413 \begin_inset Space \thinspace{}
32423 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32426 \begin_layout Plain Layout
32432 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32435 \begin_layout Plain Layout
32437 \begin_inset Space \thinspace{}
32441 \begin_inset Space \thinspace{}
32451 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32454 \begin_layout Plain Layout
32460 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32463 \begin_layout Plain Layout
32465 \begin_inset Space \thinspace{}
32469 \begin_inset Formula $\approx$
32473 \begin_inset Space \thinspace{}
32483 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32486 \begin_layout Plain Layout
32492 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32495 \begin_layout Plain Layout
32497 \begin_inset Space \thinspace{}
32501 \begin_inset Space \thinspace{}
32511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32514 \begin_layout Plain Layout
32520 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32523 \begin_layout Plain Layout
32524 % of original image width
32531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32534 \begin_layout Plain Layout
32540 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32543 \begin_layout Plain Layout
32551 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32554 \begin_layout Plain Layout
32560 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32563 \begin_layout Plain Layout
32571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32574 \begin_layout Plain Layout
32580 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32583 \begin_layout Plain Layout
32591 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32594 \begin_layout Plain Layout
32600 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32603 \begin_layout Plain Layout
32611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32614 \begin_layout Plain Layout
32620 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32623 \begin_layout Plain Layout
32631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32634 \begin_layout Plain Layout
32640 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32643 \begin_layout Plain Layout
32651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32654 \begin_layout Plain Layout
32660 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32663 \begin_layout Plain Layout
32675 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32678 \begin_layout Plain Layout
32684 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32687 \begin_layout Plain Layout
32699 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32702 \begin_layout Plain Layout
32708 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32711 \begin_layout Plain Layout
32713 \begin_inset Space \thinspace{}
32717 \begin_inset Space \thinspace{}
32738 \begin_layout Chapter
32739 Output File Formats with Graphics
32740 \begin_inset CommandInset label
32742 name "cha:Output-File-Formats"
32749 \begin_layout Section
32754 \begin_layout Plain Layout
32764 \begin_layout Plain Layout
32769 \begin_layout Plain Layout
32780 \begin_layout Plain Layout
32795 \begin_layout Standard
32796 This file type has the extension
32797 \begin_inset Quotes eld
32805 \begin_inset Quotes erd
32810 \begin_inset Quotes eld
32814 \begin_inset Quotes erd
32817 (DVI), because it is completely portable; you can move them from one machine
32818 to another without needing to do any sort of conversion.
32819 At the time when this file-format was developed, this was no matter of
32821 DVIs are used for quick previews and as pre-stage for other output formats,
32825 \begin_layout Standard
32826 \begin_inset Note Greyedout
32829 \begin_layout Plain Layout
32834 DVI-files doesn't contain images, they will only be a linked.
32839 So don't forget this, if you move your
32843 file to another computer.
32844 This property can also slow down your computer when you view the DVI.
32845 Because the DVI-viewer has to convert the image in the background to make
32846 it visible when you scroll in the DVI.
32847 So we recommend to use PDF for files with many images.
32850 \begin_layout Standard
32851 You can export your document to DVI by using the menu
32853 File\SpecialChar \menuseparator
32854 Export\SpecialChar \menuseparator
32858 You can view your document as DVI via the
32862 menu or by using the toolbar button
32863 \begin_inset Graphics
32864 filename ../images/buffer-view_dvi.png
32866 scaleBeforeRotation
32873 \begin_layout Section
32875 \begin_inset CommandInset label
32877 name "sec:PostScript"
32885 \begin_layout Plain Layout
32886 File Formats ! PostScript
32895 \begin_layout Plain Layout
32900 \begin_layout Plain Layout
32911 \begin_layout Plain Layout
32926 \begin_layout Standard
32927 This file type has the extension
32928 \begin_inset Quotes eld
32936 \begin_inset Quotes erd
32940 PostScript was developed by the company
32944 as printer language.
32945 The file contains therefore commands that the printer uses to print the
32947 PostScript can be seen as
32948 \begin_inset Quotes eld
32951 programming language
32952 \begin_inset Quotes erd
32955 ; you can calculate with it and draw diagrams and images
32959 \begin_layout Plain Layout
32960 If you are interested to learn more about this, have a look at the LaTeX-package
32966 \begin_inset CommandInset citation
32978 Due to this ability, the files are often bigger than PDFs.
32981 \begin_layout Standard
32982 PostScript can only contain images in the format
32983 \begin_inset Quotes eld
32986 Encapsulated PostScript
32987 \begin_inset Quotes erd
32990 (EPS, file extension
32991 \begin_inset Quotes eld
32999 \begin_inset Quotes erd
33003 As LyX allows you to use any known image format in your document, it has
33004 to convert images in the background to EPS.
33005 If you have e.g 50 images in your document, LyX has to do 50 conversions
33006 whenever you view or export your document.
33007 This will slow down your work flow with LyX drastically.
33008 So if you plan to use PostScript, you can insert your images directly as
33009 EPS to avoid this problem.
33012 \begin_layout Standard
33013 You can export your document to PostScript using the menu
33015 File\SpecialChar \menuseparator
33016 Export\SpecialChar \menuseparator
33020 You can view your document as PostScript via the
33024 menu or by using the toolbar button
33025 \begin_inset Graphics
33026 filename ../images/buffer-view_ps.png
33028 scaleBeforeRotation
33035 \begin_layout Section
33037 \begin_inset CommandInset label
33047 \begin_layout Plain Layout
33057 \begin_layout Plain Layout
33066 \begin_layout Standard
33067 This file type has the extension
33068 \begin_inset Quotes eld
33076 \begin_inset Quotes erd
33081 \begin_inset Quotes eld
33084 Portable Document Format
33085 \begin_inset Quotes erd
33088 (PDF) is developed by
33092 as derivative from PostScript.
33093 It is more compressed and it uses much less commands than PostScript.
33095 \begin_inset Quotes eld
33099 \begin_inset Quotes erd
33102 implies, it can be processed at any computer system and the printed output
33103 looks exactly the same.
33106 \begin_layout Standard
33107 PDF can contain images in its own PDF format, in the format
33108 \begin_inset Quotes eld
33111 Joint Photographic Experts Group
33112 \begin_inset Quotes erd
33115 (JPG, file extension
33116 \begin_inset Quotes eld
33124 \begin_inset Quotes erd
33128 \begin_inset Quotes eld
33136 \begin_inset Quotes erd
33139 ), and in the format
33140 \begin_inset Quotes eld
33143 Portable Network Graphics
33144 \begin_inset Quotes erd
33147 (PNG, file extension
33148 \begin_inset Quotes eld
33156 \begin_inset Quotes erd
33160 Nevertheless you can use any other image format, because LyX converts them
33161 in the background to one of these formats.
33162 But as described in the section about PostScript, the image conversion
33163 will slow down your work flow.
33164 So it is recommended to use images in one of the three mentioned formats.
33167 \begin_layout Standard
33168 You can export your document to PDF via the menu
33170 File\SpecialChar \menuseparator
33173 in three different ways:
33176 \begin_layout Description
33178 \begin_inset Space ~
33181 (ps2pdf) This uses the program
33185 that creates a PDF from a PostScript-version of your file.
33186 The PostScript-version is produced by the program
33190 which uses a DVI-version as intermediate step.
33191 So this export variant consist of three conversions.
33194 \begin_layout Description
33196 \begin_inset Space ~
33199 (dvipdfm) This uses the program
33203 that converts your file in the background to DVI and in a second step to
33207 \begin_layout Description
33209 \begin_inset Space ~
33212 (pdflatex) This uses the program
33216 that converts your file directly to PDF.
33219 \begin_layout Standard
33220 It is recommended to use
33223 \begin_inset Space ~
33232 supports all features of actual PDF-versions, is quick and works stable
33238 is not under development and therefore a bit outdated.
33241 \begin_layout Standard
33242 You can view your document as PDF via the
33246 menu or by using the toolbar button
33247 \begin_inset Graphics
33248 filename ../images/buffer-view_pdf2.png
33250 scaleBeforeRotation
33261 \begin_inset Space ~
33269 \begin_layout Chapter
33270 Explanation of Equation
33271 \begin_inset Space ~
33275 \begin_inset CommandInset ref
33282 \begin_inset CommandInset label
33284 name "cha:Explanation-of-Equation"
33291 \begin_layout Standard
33297 \begin_inset Formula $W_{\mathrm{tot\, n}}$
33300 can be calculated to
33303 \begin_layout Standard
33304 \begin_inset Formula \begin{equation}
33305 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}
33312 \begin_layout Standard
33314 \begin_inset Formula $W_{g\, n}$
33317 is the given width of all cells.
33324 is the LaTeX-length between the cell text and the cell border, its default
33326 \begin_inset Space \thinspace{}
33336 is the thickness of the cell border line, the default is 0.4
33337 \begin_inset Space \thinspace{}
33343 \begin_layout Standard
33345 \begin_inset Space ~
33349 \begin_inset CommandInset ref
33351 reference "eq:Wtot_n"
33355 , the total width of a multicolumn
33356 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
33362 \begin_layout Standard
33363 \begin_inset Formula \begin{equation}
33364 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
33371 \begin_layout Standard
33372 By setting equation
33373 \begin_inset Space ~
33377 \begin_inset CommandInset ref
33379 reference "eq:Wtot_n"
33384 \begin_inset CommandInset ref
33386 reference "eq:Wtot_mult"
33390 equal we can calculate the needed given width
33391 \begin_inset Formula $W_{g\, n}$
33398 columns are spanned, so that each column has a total width of
33399 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
33405 \begin_layout Standard
33406 \begin_inset Formula \begin{equation}
33407 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
33414 \begin_layout Bibliography
33415 \begin_inset CommandInset bibitem
33416 LatexCommand bibitem
33417 key "latexcompanion"
33421 Frank Mittelbach and Michel Goossens:
33423 The LaTeX Companion Second Edition.
33426 Addison-Wesley, 2004
33429 \begin_layout Bibliography
33430 \begin_inset CommandInset bibitem
33431 LatexCommand bibitem
33436 Helmut Kopka and Patrick W.
33439 A Guide to LaTeX Fourth Edition.
33442 Addison-Wesley, 2003
33445 \begin_layout Bibliography
33446 \begin_inset CommandInset bibitem
33447 LatexCommand bibitem
33454 LaTeX: A Document Preparation System.
33457 Addison-Wesley, second edition, 1994
33460 \begin_layout Bibliography
33461 \begin_inset CommandInset bibitem
33462 LatexCommand bibitem
33467 Documentation of the LaTeX-package
33470 \begin_inset CommandInset href
33473 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
33483 \begin_layout Plain Layout
33484 LaTeX-packages ! booktabs
33492 \begin_layout Bibliography
33493 \begin_inset CommandInset bibitem
33494 LatexCommand bibitem
33499 Documentation of the LaTeX-package
33502 \begin_inset CommandInset href
33505 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
33515 \begin_layout Plain Layout
33516 LaTeX-packages ! caption
33524 \begin_layout Bibliography
33525 \begin_inset CommandInset bibitem
33526 LatexCommand bibitem
33531 Documentation of the LaTeX-package
33534 \begin_inset CommandInset href
33537 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
33547 \begin_layout Plain Layout
33548 LaTeX-packages ! endfloat
33556 \begin_layout Bibliography
33557 \begin_inset CommandInset bibitem
33558 LatexCommand bibitem
33563 Documentation of the LaTeX-package
33566 \begin_inset CommandInset href
33569 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
33579 \begin_layout Plain Layout
33580 LaTeX-packages ! wrapfig
33584 \begin_layout Plain Layout
33592 \begin_layout Plain Layout
33603 \begin_layout Plain Layout
33619 \begin_layout Plain Layout
33630 \begin_layout Plain Layout
33645 \begin_layout Bibliography
33646 \begin_inset CommandInset bibitem
33647 LatexCommand bibitem
33652 Documentation of the LaTeX-package
33655 \begin_inset CommandInset href
33658 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
33668 \begin_layout Plain Layout
33669 LaTeX-packages ! footmisc
33677 \begin_layout Bibliography
33678 \begin_inset CommandInset bibitem
33679 LatexCommand bibitem
33684 Documentation of the LaTeX-package
33687 \begin_inset CommandInset href
33690 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
33700 \begin_layout Plain Layout
33701 LaTeX-packages ! hyperref
33709 \begin_layout Bibliography
33710 \begin_inset CommandInset bibitem
33711 LatexCommand bibitem
33716 Documentation of the LaTeX-package
33719 \begin_inset CommandInset href
33722 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
33732 \begin_layout Plain Layout
33733 LaTeX-packages ! hyperref
33741 \begin_layout Bibliography
33742 \begin_inset CommandInset bibitem
33743 LatexCommand bibitem
33748 Documentation of the LaTeX-package
33751 \begin_inset CommandInset href
33754 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
33764 \begin_layout Plain Layout
33765 LaTeX-packages ! koma-script
33773 \begin_layout Bibliography
33774 \begin_inset CommandInset bibitem
33775 LatexCommand bibitem
33780 Documentation of the LaTeX-package
33783 \begin_inset CommandInset href
33786 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
33796 \begin_layout Plain Layout
33797 LaTeX-packages ! listings
33805 \begin_layout Bibliography
33806 \begin_inset CommandInset bibitem
33807 LatexCommand bibitem
33812 Documentation of the LaTeX-package
33815 \begin_inset CommandInset href
33818 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
33828 \begin_layout Plain Layout
33829 LaTeX-packages ! marginnote
33837 \begin_layout Bibliography
33838 \begin_inset CommandInset bibitem
33839 LatexCommand bibitem
33844 Web page of the LaTeX-package
33847 \begin_inset CommandInset href
33850 target "http://tug.org/PSTricks/"
33860 \begin_layout Plain Layout
33861 LaTeX-packages ! PSTricks
33869 \begin_layout Bibliography
33870 \begin_inset CommandInset bibitem
33871 LatexCommand bibitem
33876 Documentation of the LaTeX-package
33879 \begin_inset CommandInset href
33882 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
33892 \begin_layout Plain Layout
33893 LaTeX-packages ! sidecap
33901 \begin_layout Bibliography
33902 \begin_inset CommandInset bibitem
33903 LatexCommand bibitem
33909 \begin_inset CommandInset href
33912 target "http://wiki.lyx.org/LyX/NewInLyX16"
33916 about new features in
33923 \begin_layout Standard
33924 \begin_inset CommandInset index_print
33925 LatexCommand printindex
33932 \begin_layout Standard
33933 \begin_inset FloatList figure
33940 \begin_layout Standard
33941 \begin_inset FloatList table
33948 \begin_layout Standard
33949 \begin_inset FloatList algorithm