1 #LyX 1.6.0beta3 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 done by inserting image floats into existing image floats.
1023 Note that only the main caption of the float is added to the List of Figures.
1025 \begin_inset space ~
1029 \begin_inset CommandInset ref
1031 reference "fig:Two-distorted-images"
1035 is an example of a figure float with two images set side by side.
1036 You can also set the images one below the other.
1038 \begin_inset space ~
1042 \begin_inset CommandInset ref
1044 reference "fig:Undefinable-structure"
1049 \begin_inset CommandInset ref
1051 reference "fig:A-Platypus"
1058 \begin_layout Standard
1059 \begin_inset Float figure
1064 \begin_layout Plain Layout
1065 \begin_inset space \hfill{}
1069 \begin_inset Float figure
1074 \begin_layout Plain Layout
1075 \begin_inset Caption
1077 \begin_layout Plain Layout
1078 \begin_inset CommandInset label
1080 name "fig:Undefinable-structure"
1084 Undefinable structure.
1092 \begin_layout Plain Layout
1093 \begin_inset Graphics
1094 filename clipart/escher-lsd.eps
1106 \begin_inset space \hfill{}
1110 \begin_inset Float figure
1115 \begin_layout Plain Layout
1116 \begin_inset Caption
1118 \begin_layout Plain Layout
1119 \begin_inset CommandInset label
1121 name "fig:A-Platypus"
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 Automatic Reference Naming
20138 \begin_layout Plain Layout
20139 References ! Automatic Reference Naming
20147 \begin_layout Standard
20152 provides a very useful feature that cross-references automatically include
20153 the name of the referenced floats (or text parts like sections).
20154 You save to write e.
20155 \begin_inset space \thinspace{}
20159 \begin_inset space ~
20163 \begin_inset Quotes eld
20167 \begin_inset Quotes erd
20170 before every reference box.
20171 To get this automatic reference naming, you have to load the LaTeX-package
20180 \begin_layout Plain Layout
20181 LaTeX-packages ! hyperref
20186 in the document preamble with
20189 \begin_layout Standard
20194 usepackage[pdfborder={0 0 0}]{hyperref}
20195 \begin_inset Newline newline
20211 \begin_layout Standard
20216 is used to link cross-references in the DVI- and PDF-output, this means
20217 that the reader of your document will be able to click on a table of content
20218 (TOC) entry or on a reference and he will be shown the referenced document
20224 also creates PDF-bookmarks for every section of your document to make it
20225 easier for readers to navigate through the document.
20226 This is also used in this document but when you have a look in the document
20227 preamble you will find various options in the load command of
20232 To learn more about the
20236 package, we refer to its documentation
20237 \begin_inset CommandInset citation
20246 \begin_layout Standard
20247 \begin_inset Note Greyedout
20250 \begin_layout Plain Layout
20255 Automatic reference naming cannot be used when you use cross-references
20259 \begin_inset space ~
20264 style, described in section
20265 \begin_inset space ~
20269 \begin_inset CommandInset ref
20271 reference "sub:Cross-Reference-Formats"
20283 \begin_layout Subsection
20285 \begin_inset CommandInset label
20287 name "sub:Reference-Position"
20295 \begin_layout Plain Layout
20296 References ! Reference Position
20304 \begin_layout Standard
20313 \begin_layout Plain Layout
20314 LaTeX-packages ! hyperref
20319 to link cross-references in the output, you will see that clicking on an
20320 image float reference jumps to the image label.
20321 The caption will be the first text part on the screen, so that you cannot
20322 see the image without scrolling.
20323 This is because the reference link anchor is placed at the position of
20325 With the use of the package
20333 \begin_layout Plain Layout
20334 LaTeX-packages ! hypcap
20339 , which is part of the LaTeX-package
20347 \begin_layout Plain Layout
20348 LaTeX-packages ! oberdiek
20353 , the link anchor is placed at the beginning of a float.
20354 To use this feature for figure floats, load
20358 in the document preamble with the line
20361 \begin_layout Standard
20366 usepackage[figure]{hypcap}
20369 \begin_layout Standard
20374 for all floats but this isn't recommended for stability reasons.
20375 For more informations, have a look at
20380 \begin_inset CommandInset citation
20389 \begin_layout Standard
20390 \begin_inset Note Greyedout
20393 \begin_layout Plain Layout
20402 must be loaded after
20406 in the document preamble.
20414 \begin_layout Standard
20415 \begin_inset Note Greyedout
20418 \begin_layout Plain Layout
20427 has no effect for references to subfigures.
20435 \begin_layout Section
20437 \begin_inset CommandInset label
20439 name "sec:Float-Placement"
20447 \begin_layout Plain Layout
20456 \begin_layout Standard
20457 Right-clicking on a float-box opens a dialog where you can alter the placement
20458 options that LaTeX uses for positioning the float.
20459 \begin_inset Newline newline
20465 \begin_inset space ~
20470 is only useful for two-column documents: If you select it, the float will
20471 span across both columns on the page instead of being confined to just
20473 \begin_inset Newline newline
20479 \begin_inset space ~
20484 is used to rotate floats, see section
20485 \begin_inset CommandInset ref
20487 reference "sec:Rotated-Floats"
20494 \begin_layout Standard
20495 You can use one ore more of the following options in the float dialog to
20496 set the placement for a particular float when you uncheck the option
20499 \begin_inset space ~
20503 \begin_inset space ~
20511 \begin_layout Description
20513 \begin_inset space ~
20517 \begin_inset space ~
20520 possible try to place the float on the position where it is inserted
20523 \begin_layout Description
20525 \begin_inset space ~
20529 \begin_inset space ~
20532 page try to place the float on the top of the current page
20535 \begin_layout Description
20537 \begin_inset space ~
20541 \begin_inset space ~
20544 page try to place the float on the bottom of the current page
20547 \begin_layout Description
20549 \begin_inset space ~
20553 \begin_inset space ~
20556 floats try to place the float on an own page
20559 \begin_layout Standard
20560 The order of the above option is
20565 That means, if you use the default placement, LaTeX will first try out
20569 \begin_inset space ~
20573 \begin_inset space ~
20581 \begin_inset space ~
20585 \begin_inset space ~
20590 , and then the others.
20591 If you don't use the default, LaTeX will try only the checked options but
20593 If none of the 4 placements are possible the procedure is internally repeated
20594 but it is tried to put the float on the following page.
20597 \begin_layout Standard
20598 By default, each option has its own rules:
20601 \begin_layout Labeling
20602 \labelwidthstring 00.00.0000
20606 \begin_inset space ~
20610 \begin_inset space ~
20615 only floats occupying less than 70
20616 \begin_inset space \thinspace{}
20619 % of the page can be placed at the top of a page (
20628 \begin_layout Labeling
20629 \labelwidthstring 00.00.0000
20633 \begin_inset space ~
20637 \begin_inset space ~
20642 : only floats occupying less than 30
20643 \begin_inset space \thinspace{}
20646 % of the page can be placed at the bottom of a page.
20656 \begin_layout Labeling
20657 \labelwidthstring 00.00.0000
20661 \begin_inset space ~
20665 \begin_inset space ~
20670 : only if more than 50
20671 \begin_inset space \thinspace{}
20674 % of the page are occupied by floats, several floats can be set together
20685 \begin_layout Standard
20686 If you don't like these rules, you can ignore them by using the additional
20690 \begin_inset space ~
20694 \begin_inset space ~
20700 \begin_inset Newline newline
20703 You can also redefine the rules with LaTeX-commands that are given in parenthese
20704 s behind the rules description above.
20705 To increase for example the often too small default of the bottom-rule
20707 \begin_inset space \thinspace{}
20710 % of the page, add this line to your document preamble:
20713 \begin_layout Standard
20720 bottomfraction}{0.5}
20723 \begin_layout Standard
20724 Sometimes you might need, under all circumstances, a float to be placed
20725 exactly at the position where it is inserted.
20726 For this case you can use the option
20729 \begin_inset space ~
20735 Use this option very rarely and only if the document is nearly ready to
20737 Because the float is then no longer able to
20738 \begin_inset Quotes eld
20742 \begin_inset Quotes erd
20745 when you change your document and this will often destroy the page layout.
20748 \begin_layout Standard
20749 There are no placement options for text wrap floats, because they are always
20750 surrounded by the text of a certain paragraph.
20751 \begin_inset VSpace bigskip
20757 \begin_layout Standard
20758 Sometimes you have the problem that a float is placed at the top of a page
20759 while its corresponding section starts at the middle of the page, so that
20760 the reader could think the float is part of the previous section.
20761 To avoid this the LaTeX-command
20768 It suppresses a given float placement for the page where it is inserted
20769 and can therefore be used to avoid that floats could be set before a section
20771 To get this, add these commands to your document preamble:
20774 \begin_layout Standard
20784 \begin_inset Newline newline
20798 \begin_layout Standard
20799 You can define the same for all section headings, like chapters and subsections.
20800 This definition is not recommended to be used for small text parts like
20801 subsubsections because LaTeX may then have problems to find a suitable
20805 \begin_layout Standard
20806 \begin_inset VSpace bigskip
20809 In some cases it is required to have all figures/tables at the end of the
20811 For this purpose the LaTeX-package
20819 \begin_layout Plain Layout
20820 LaTeX-packages ! endfloat
20826 It puts all figure and table floats at the end of the document into own
20828 At the original float position a text hint like
20829 \begin_inset Quotes eld
20835 \begin_inset space ~
20841 \begin_inset Quotes erd
20845 The endfloat-package is loaded in the preamble with the line
20848 \begin_layout Standard
20853 usepackage[options]{endfloat}
20856 \begin_layout Standard
20857 There are various package options to format the created figure/table sections.
20858 For more information we refer to the
20863 \begin_inset CommandInset citation
20870 \begin_inset Newline newline
20874 \begin_inset Note Greyedout
20877 \begin_layout Plain Layout
20882 doesn't provide an automatic translation for the text hint, you have to
20883 do this manually, see section
20884 \begin_inset space ~
20888 \begin_inset CommandInset citation
20900 \begin_inset Newline newline
20904 \begin_inset Note Greyedout
20907 \begin_layout Plain Layout
20912 There is currently a bug in
20916 when the caption contains a German
20917 \begin_inset Quotes eld
20921 \begin_inset Quotes erd
20925 Use in this case the command
20926 \begin_inset Quotes eld
20936 \begin_inset Quotes erd
20939 in TeX-Code instead of
20940 \begin_inset Quotes eld
20944 \begin_inset Quotes erd
20955 \begin_layout Standard
20956 \begin_inset VSpace bigskip
20959 For more details about float placements, have a look at LaTeX books,
20960 \begin_inset CommandInset citation
20962 key "latexcompanion,latexguide,latexbook"
20969 \begin_layout Section
20971 \begin_inset CommandInset label
20973 name "sec:Rotated-Floats"
20981 \begin_layout Plain Layout
20990 \begin_layout Standard
20991 Especially for wide tables you might have floats rotated.
20992 To rotate a whole float including the caption, right-click on the float-box
20996 \begin_inset space ~
21004 \begin_layout Standard
21005 Rotated floats are always placed on its own page (or column, when you have
21006 a two-column document).
21007 They are rotated so that you can read them from the outside margin.
21008 To force a certain rotation direction for all pages, you can add either
21017 to the document class options.
21020 \begin_layout Standard
21021 Referencing rotated floats is the same like for normal floats, the caption
21022 format is also the same: Table
21023 \begin_inset space ~
21027 \begin_inset CommandInset ref
21029 reference "tab:Rotated-table"
21033 is an example of a rotated table float.
21036 \begin_layout Standard
21037 \begin_inset Note Greyedout
21040 \begin_layout Plain Layout
21045 Not all DVI-viewers are able to display rotated floats.
21053 \begin_layout Standard
21054 \begin_inset Float table
21059 \begin_layout Plain Layout
21060 \begin_inset Caption
21062 \begin_layout Plain Layout
21063 \begin_inset CommandInset label
21065 name "tab:Rotated-table"
21077 \begin_layout Plain Layout
21079 \begin_inset Tabular
21080 <lyxtabular version="3" rows="1" columns="5">
21082 <column alignment="center" valignment="top" width="0">
21083 <column alignment="center" valignment="top" width="0">
21084 <column alignment="center" valignment="top" width="0">
21085 <column alignment="center" valignment="top" width="0">
21086 <column alignment="center" valignment="top" width="0">
21088 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21091 \begin_layout Plain Layout
21097 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21100 \begin_layout Plain Layout
21106 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21109 \begin_layout Plain Layout
21115 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21118 \begin_layout Plain Layout
21124 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21127 \begin_layout Plain Layout
21146 \begin_layout Section
21147 Floats Side by Side
21151 \begin_layout Plain Layout
21152 Floats ! Side by side
21160 \begin_layout Standard
21161 To place floats side by side, like for Figure
21162 \begin_inset space ~
21166 \begin_inset CommandInset ref
21168 reference "fig:Float-left"
21173 \begin_inset CommandInset ref
21175 reference "fig:Float-right"
21184 In it two minipage boxes are inserted.
21188 \begin_layout Plain Layout
21189 Minipages are explained in section
21190 \begin_inset space ~
21194 \begin_inset CommandInset ref
21196 reference "sec:Minipages"
21205 The width is set to 45
21206 \begin_inset space \thinspace{}
21210 \begin_inset space \thinspace{}
21213 column% and the box alignment to
21218 The minipage boxes contain the image and the caption in the same way as
21219 they are in a float.
21220 The only difference is that the image unit
21223 \begin_inset space ~
21227 \begin_inset space ~
21232 is now calculated according to the width of the minipage boxes.
21235 \begin_layout Standard
21236 \begin_inset Float figure
21241 \begin_layout Plain Layout
21242 \begin_inset Box Frameless
21251 height_special "totalheight"
21254 \begin_layout Plain Layout
21256 \begin_inset Graphics
21257 filename clipart/mobius.eps
21260 scaleBeforeRotation
21267 \begin_layout Plain Layout
21268 \begin_inset Caption
21270 \begin_layout Plain Layout
21271 \begin_inset CommandInset label
21273 name "fig:Float-left"
21277 Float on the left side.
21288 \begin_inset space \hfill{}
21292 \begin_inset Box Frameless
21301 height_special "totalheight"
21304 \begin_layout Plain Layout
21306 \begin_inset Graphics
21307 filename clipart/platypus.eps
21310 scaleBeforeRotation
21317 \begin_layout Plain Layout
21318 \begin_inset Caption
21320 \begin_layout Plain Layout
21321 \begin_inset CommandInset label
21323 name "fig:Float-right"
21327 Float on the right side.
21340 \begin_layout Plain Layout
21349 \begin_layout Section
21354 \begin_layout Plain Layout
21355 Caption ! Formatting
21364 \begin_layout Plain Layout
21365 Floats ! Caption Formatting
21374 \begin_layout Plain Layout
21375 LaTeX-packages ! caption
21381 \begin_inset CommandInset label
21383 name "sec:Caption-Formatting"
21390 \begin_layout Standard
21395 environment is the default paragraph environment for
21400 On the LyX screen captions appear as label, e.
21401 \begin_inset space \thinspace{}
21405 \begin_inset space ~
21409 \begin_inset Quotes eld
21417 \begin_inset Quotes erd
21420 followed by the caption text.
21422 \begin_inset Quotes eld
21426 \begin_inset Quotes erd
21429 is the actual reference number.
21430 By default the label and the number are in the same font as the caption
21431 text and a colon follows the number to divide the label from the text.
21432 This caption format is not suitable for all document formats.
21436 \begin_layout Standard
21437 To change the default caption format, load the LaTeX-package
21445 \begin_layout Plain Layout
21446 LaTeX-packages ! caption
21451 in the document preamble with this line:
21454 \begin_layout Standard
21459 usepackage[format definition]{caption}
21462 \begin_layout Standard
21463 To have for example the label and the number in sans-serif bold font and
21464 the table captions always above the table like in this document, use the
21468 \begin_layout Standard
21473 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
21476 \begin_layout Standard
21477 You can also define different caption formats for the different float types.
21478 In this case load the
21482 package without format specific options and define the different formats
21483 with the help of the command
21486 \begin_layout Standard
21491 captionsetup[float type]{format definition}
21494 \begin_layout Standard
21495 in the document preamble.
21496 For example the caption formats of Figure
21497 \begin_inset space ~
21501 \begin_inset CommandInset ref
21503 reference "fig:This-is-an-fig"
21508 \begin_inset space ~
21512 \begin_inset CommandInset ref
21514 reference "tab:This-is-an-tab"
21518 can be created using these commands in the document preamble:
21521 \begin_layout Standard
21526 usepackage[tableposition=top]{caption}
21529 \begin_inset Newline newline
21536 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
21537 \begin_inset Newline newline
21544 \begin_layout Plain Layout
21552 captionsetup[figure]
21560 \begin_inset Newline newline
21565 captionsetup[table]{labelfont={bf,sf}}
21568 \begin_layout Standard
21569 \begin_inset Note Greyedout
21572 \begin_layout Plain Layout
21581 has no effect when a
21589 \begin_layout Plain Layout
21590 LaTeX-packages ! koma-script
21595 document class is used.
21596 In this case the document class option
21608 \begin_layout Standard
21609 For more information about the package
21613 we refer to its documentation
21614 \begin_inset CommandInset citation
21616 key "caption,caption-de"
21623 \begin_layout Standard
21624 To change the label name from e.g.
21626 \begin_inset Quotes eld
21630 \begin_inset Quotes erd
21634 \begin_inset Quotes eld
21638 \begin_inset Quotes erd
21641 use this preamble command:
21644 \begin_layout Standard
21651 fnum@figure}{Image~
21656 \begin_layout Standard
21663 inserts the figure number and
21666 \begin_inset Quotes eld
21672 \begin_inset Quotes erd
21675 creates a protected space.
21678 \begin_layout Standard
21679 \begin_inset VSpace bigskip
21690 \begin_layout Plain Layout
21691 LaTeX-packages ! koma-script
21698 article (koma-script)
21706 letter (koma-script)
21710 report (koma-script)
21713 \begin_inset space \thinspace{}
21716 ), you can alternatively to the
21724 's built-in command
21731 For example, to have the caption label in bold, add this command to your
21735 \begin_layout Standard
21740 setkomafont{captionlabel}{
21745 \begin_layout Standard
21746 For more information about
21757 \begin_inset CommandInset citation
21766 \begin_layout Standard
21770 \begin_layout Plain Layout
21774 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
21781 \begin_inset Note Note
21784 \begin_layout Plain Layout
21785 The caption format is changed only for this example.
21793 \begin_layout Standard
21794 \begin_inset Float figure
21800 \begin_layout Plain Layout
21802 \begin_inset Graphics
21803 filename clipart/mobius.eps
21806 scaleBeforeRotation
21813 \begin_layout Plain Layout
21814 \begin_inset Caption
21816 \begin_layout Plain Layout
21817 \begin_inset CommandInset label
21819 name "fig:This-is-an-fig"
21823 This is an example figure caption that is longer than one line to show the
21824 different caption format.
21825 Here a self-defined caption format is used.
21838 \begin_layout Standard
21842 \begin_layout Plain Layout
21846 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
21855 \begin_layout Standard
21856 \begin_inset Float table
21862 \begin_layout Plain Layout
21863 \begin_inset Caption
21865 \begin_layout Plain Layout
21866 \begin_inset CommandInset label
21868 name "tab:This-is-an-tab"
21872 This is an example table caption that is longer than one line to show the
21873 different caption format.
21874 Here the standard caption format for tables in this document is used.
21882 \begin_layout Plain Layout
21884 \begin_inset Tabular
21885 <lyxtabular version="3" rows="1" columns="5">
21887 <column alignment="center" valignment="top" width="0">
21888 <column alignment="center" valignment="top" width="0">
21889 <column alignment="center" valignment="top" width="0">
21890 <column alignment="center" valignment="top" width="0">
21891 <column alignment="center" valignment="top" width="0">
21893 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21896 \begin_layout Plain Layout
21902 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21905 \begin_layout Plain Layout
21911 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21914 \begin_layout Plain Layout
21920 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21923 \begin_layout Plain Layout
21929 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21932 \begin_layout Plain Layout
21951 \begin_layout Section
21956 \begin_layout Plain Layout
21957 Caption ! Placement
21966 \begin_layout Plain Layout
21967 Floats ! Caption Placement
21973 \begin_inset CommandInset label
21975 name "sec:Caption-Placement"
21982 \begin_layout Standard
21983 The common caption placement rule is:
21986 \begin_layout Description
21987 Figure: Caption is set below the figure
21990 \begin_layout Description
21991 Table: Caption is set above the table
21994 \begin_layout Standard
21995 Having the caption above the table is unfortunately not supported in LaTeX's
21997 That means if you are using the document classes
22013 there will be no space between the caption and the table.
22014 To insert the needed space, add the following option to the load command
22015 of the LaTeX-package
22019 in your document preamble
22023 \begin_layout Plain Layout
22025 \begin_inset space ~
22029 \begin_inset CommandInset ref
22031 reference "sec:Caption-Formatting"
22035 for more information of the package
22047 \begin_layout Standard
22053 \begin_layout Standard
22062 \begin_layout Plain Layout
22063 LaTeX-packages ! koma-script
22070 article (koma-script)
22078 letter (koma-script)
22082 report (koma-script)
22085 \begin_inset space \thinspace{}
22088 ), you can alternatively to the
22092 package set the document class option
22099 \begin_layout Standard
22100 \begin_inset VSpace bigskip
22103 It is also possible to set the caption beside a figure or table.
22104 To get this the LaTeX-package
22112 \begin_layout Plain Layout
22113 LaTeX-packages ! sidecap
22118 has to be loaded in the document preamble with the line
22121 \begin_layout Standard
22126 usepackage[option]{sidecap}
22129 \begin_layout Standard
22130 If you set no option, the caption is placed on the side of the outer page
22131 margin -- to the right on odd pages, to the left on even pages.
22132 You can change the placement to inner margin with the option
22137 To force the placement always to the right or left, use the option
22148 \begin_layout Standard
22152 \begin_layout Plain Layout
22162 \begin_inset Note Note
22165 \begin_layout Plain Layout
22166 The following section will only be displayed when the LaTeX-package
22178 \begin_layout Standard
22179 To place in LyX the caption of a float on the side, it is necessary to add
22180 these commands to the document preamble:
22183 \begin_layout Standard
22189 \begin_layout Standard
22197 \begin_inset Newline newline
22204 \begin_layout Plain Layout
22220 \begin_inset Newline newline
22227 \begin_layout Plain Layout
22243 \begin_inset Newline newline
22250 \begin_layout Plain Layout
22261 renewenvironment{table}{
22268 \begin_layout Standard
22276 \begin_inset Newline newline
22283 \begin_layout Plain Layout
22299 \begin_inset Newline newline
22306 \begin_layout Plain Layout
22324 \begin_layout Standard
22332 \begin_inset Newline newline
22339 \begin_layout Plain Layout
22355 \begin_inset Newline newline
22362 \begin_layout Plain Layout
22378 \begin_inset Newline newline
22385 \begin_layout Plain Layout
22396 renewenvironment{figure}{
22403 \begin_layout Standard
22411 \begin_inset Newline newline
22418 \begin_layout Plain Layout
22434 \begin_inset Newline newline
22441 \begin_layout Plain Layout
22459 \begin_layout Standard
22465 \begin_layout Standard
22466 The commands allow you to redefine the floats so that the caption is set
22468 For figure floats use the command
22471 \begin_layout Standard
22479 \begin_layout Standard
22480 in TeX-Code before the float.
22481 Behind the float insert the command
22484 \begin_layout Standard
22492 \begin_layout Standard
22493 in TeX-Code to get back to the original float definition.
22496 \begin_layout Standard
22497 For table floats use the corresponding commands
22500 \begin_layout Standard
22514 \begin_layout Standard
22516 \begin_inset space ~
22520 \begin_inset CommandInset ref
22522 reference "fig:cap-beside-fig"
22527 \begin_inset space ~
22531 \begin_inset CommandInset ref
22533 reference "tab:cap-beside-tab"
22537 are examples where the caption is set beside.
22540 \begin_layout Standard
22541 You can see in the examples that the caption text appears at the top of
22542 the floats for table floats and at the bottom for figure floats.
22543 To change this, you can use the command
22546 \begin_layout Standard
22551 sidecaptionvpos{float type}{placement}
22554 \begin_layout Standard
22555 in the document preamble or in TeX-Code before the float.
22556 The float type is either
22564 , the placement can be
22565 \begin_inset Quotes eld
22573 \begin_inset Quotes erd
22577 \begin_inset Quotes eld
22585 \begin_inset Quotes erd
22589 \begin_inset Quotes eld
22597 \begin_inset Quotes erd
22601 To have for example the caption of figure floats vertically centered, use
22605 \begin_layout Standard
22610 sidecaptionvpos{figure}{c}
22613 \begin_layout Standard
22614 This was used for Figure
22615 \begin_inset space ~
22619 \begin_inset CommandInset ref
22621 reference "fig:cap-beside-fig-2"
22628 \begin_layout Standard
22629 \begin_inset VSpace medskip
22632 For more information about the package
22636 we refer to its documentation
22637 \begin_inset CommandInset citation
22646 \begin_layout Standard
22647 \begin_inset Note Greyedout
22650 \begin_layout Plain Layout
22663 \begin_layout Plain Layout
22664 LaTeX-packages ! hypcap
22669 , described in section
22670 \begin_inset space ~
22674 \begin_inset CommandInset ref
22676 reference "sub:Reference-Position"
22680 , has no effect on floats with the caption set beside.
22688 \begin_layout Standard
22692 \begin_layout Plain Layout
22704 \begin_layout Standard
22705 \begin_inset Float figure
22710 \begin_layout Plain Layout
22711 \begin_inset Graphics
22712 filename clipart/escher-lsd.eps
22714 scaleBeforeRotation
22721 \begin_layout Plain Layout
22722 \begin_inset Caption
22724 \begin_layout Plain Layout
22725 \begin_inset CommandInset label
22727 name "fig:cap-beside-fig"
22731 This is a caption beside a figure.
22744 \begin_layout Standard
22748 \begin_layout Plain Layout
22760 \begin_layout Standard
22761 \begin_inset Float table
22766 \begin_layout Plain Layout
22767 \begin_inset Caption
22769 \begin_layout Plain Layout
22770 \begin_inset CommandInset label
22772 name "tab:cap-beside-tab"
22776 This is a caption beside a table.
22784 \begin_layout Plain Layout
22785 \begin_inset Tabular
22786 <lyxtabular version="3" rows="4" columns="5">
22788 <column alignment="center" valignment="top" width="0">
22789 <column alignment="center" valignment="top" width="0">
22790 <column alignment="center" valignment="top" width="0">
22791 <column alignment="center" valignment="top" width="0">
22792 <column alignment="center" valignment="top" width="0">
22794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22797 \begin_layout Plain Layout
22803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22806 \begin_layout Plain Layout
22812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22815 \begin_layout Plain Layout
22821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22824 \begin_layout Plain Layout
22830 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22833 \begin_layout Plain Layout
22841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22844 \begin_layout Plain Layout
22850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22853 \begin_layout Plain Layout
22859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22862 \begin_layout Plain Layout
22868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22871 \begin_layout Plain Layout
22877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22880 \begin_layout Plain Layout
22888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22891 \begin_layout Plain Layout
22897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22900 \begin_layout Plain Layout
22906 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22909 \begin_layout Plain Layout
22915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22918 \begin_layout Plain Layout
22924 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22927 \begin_layout Plain Layout
22935 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22938 \begin_layout Plain Layout
22944 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22947 \begin_layout Plain Layout
22953 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22956 \begin_layout Plain Layout
22962 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22965 \begin_layout Plain Layout
22971 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22974 \begin_layout Plain Layout
22993 \begin_layout Standard
22997 \begin_layout Plain Layout
23009 \begin_layout Standard
23013 \begin_layout Plain Layout
23017 sidecaptionvpos{figure}{c}
23023 \begin_inset Float figure
23028 \begin_layout Plain Layout
23029 \begin_inset Graphics
23030 filename clipart/escher-lsd.eps
23032 scaleBeforeRotation
23039 \begin_layout Plain Layout
23040 \begin_inset Caption
23042 \begin_layout Plain Layout
23043 \begin_inset CommandInset label
23045 name "fig:cap-beside-fig-2"
23049 This is a vertically centered caption beside a figure.
23062 \begin_layout Standard
23066 \begin_layout Plain Layout
23078 \begin_layout Standard
23082 \begin_layout Plain Layout
23092 \begin_inset Note Note
23095 \begin_layout Plain Layout
23096 The following will be displayed when the LaTeX-package
23108 \begin_layout Standard
23109 You need to install the LaTeX-package
23113 to see the following part of this section in the output.
23116 \begin_layout Standard
23120 \begin_layout Plain Layout
23132 \begin_layout Section
23134 \begin_inset CommandInset label
23136 name "sec:Listings-of-Floats"
23144 \begin_layout Plain Layout
23145 Floats ! Float Lists
23153 \begin_layout Standard
23154 Similar to the the table of contents where the sections of the document
23155 are listed, there are listings for all float types, like the figures of
23157 You can insert them via the
23159 Insert\SpecialChar \menuseparator
23161 \begin_inset space ~
23165 \begin_inset space ~
23173 \begin_layout Standard
23174 The list entries are the float captions or its short title, the float number,
23175 and the page number where they appear in the document.
23178 \begin_layout Standard
23179 You can find the list of figures and tables at the end of this document.
23182 \begin_layout Chapter
23186 \begin_layout Section
23188 \begin_inset CommandInset label
23190 name "sec:LyX-Notes"
23198 \begin_layout Plain Layout
23207 \begin_layout Standard
23208 Notes are inserted with the toolbar button
23209 \begin_inset Graphics
23210 filename ../images/note-insert.png
23212 scaleBeforeRotation
23218 Insert\SpecialChar \menuseparator
23222 There are five types of notes:
23225 \begin_layout Description
23227 \begin_inset space ~
23230 Note This note type is for internal notes that won't appear in the output.
23231 Its note-box looks like this:
23232 \begin_inset Newline newline
23236 \begin_inset Newline newline
23240 \begin_inset Graphics
23241 filename clipart/LyXNoteImageQt4.png
23244 scaleBeforeRotation
23249 \begin_inset Note Note
23252 \begin_layout Plain Layout
23253 This is text in a note box that doesn't appear in the output.
23261 \begin_layout Description
23262 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
23263 ent, when you export the document to LaTeX via the menu
23265 File\SpecialChar \menuseparator
23266 Export\SpecialChar \menuseparator
23267 LaTeX (pdflatex) / (plain)
23270 Its note-box looks like this:
23271 \begin_inset Newline newline
23275 \begin_inset Newline newline
23279 \begin_inset Graphics
23280 filename clipart/CommentNoteImageQt4.png
23283 scaleBeforeRotation
23288 \begin_inset Note Comment
23291 \begin_layout Plain Layout
23292 This is text in a note box that only appears as comment in LaTeX-files.
23300 \begin_layout Description
23302 \begin_inset space ~
23305 Out This note will appear in the output as grey text.
23306 Its note-box looks like this:
23307 \begin_inset Newline newline
23311 \begin_inset Newline newline
23315 \begin_inset Graphics
23316 filename clipart/GreyedOutNoteImageQt4.png
23319 scaleBeforeRotation
23324 \begin_inset Newline newline
23331 \begin_layout Plain Layout
23335 renewenvironment{lyxgreyedout}
23338 \begin_layout Plain Layout
23342 textcolor[gray]{0.8}
23352 \begin_inset Note Greyedout
23355 \begin_layout Plain Layout
23360 \begin_layout Plain Layout
23361 This is an example footnote within a greyed out note.
23366 of a comment that appears in the output as grey text.
23375 \begin_layout Plain Layout
23379 renewenvironment{lyxgreyedout}
23382 \begin_layout Plain Layout
23396 \begin_inset Note Note
23399 \begin_layout Plain Layout
23400 The greyed out note is here redefined to show it with the original LyX definitio
23401 n because greyed out notes are redefined in the preamble of this document,
23402 as described below, to have blue text.
23408 \begin_inset Newline newline
23412 \begin_inset Newline newline
23415 As you can see in the example, the first line of greyed out notes is a bit
23416 indented and greyed out notes can have footnotes.
23419 \begin_layout Description
23420 Framed This note will appear in the output as framed text.
23421 Its note-box looks like this:
23422 \begin_inset Newline newline
23426 \begin_inset Newline newline
23430 \begin_inset Graphics
23431 filename clipart/FramedNoteImageQt4.png
23434 scaleBeforeRotation
23439 \begin_inset Box Framed
23448 height_special "totalheight"
23451 \begin_layout Plain Layout
23452 This is text in a note box that appears framed in the output.
23457 In contrary to framed boxes
23461 \begin_layout Plain Layout
23462 Framed boxes are described in section
23463 \begin_inset space ~
23467 \begin_inset CommandInset ref
23469 reference "sec:Framed-Boxes"
23478 the frame uses always the whole text width and the note is set into its
23482 \begin_layout Description
23483 Shaded This note will appear in the output with red background color.
23484 Its note box looks like this:
23485 \begin_inset Newline newline
23489 \begin_inset Newline newline
23493 \begin_inset Graphics
23494 filename clipart/ShadedNoteImageQt4.png
23497 scaleBeforeRotation
23502 \begin_inset Box Shaded
23511 height_special "totalheight"
23514 \begin_layout Plain Layout
23515 This text in a note box appears in the output with red background.
23520 In contrary to colored boxes
23524 \begin_layout Plain Layout
23525 Colored boxes are described in section
23526 \begin_inset space ~
23530 \begin_inset CommandInset ref
23532 reference "sec:Colored-Boxes"
23541 the note uses always the whole text width and the note is set into its
23545 \begin_layout Standard
23546 \begin_inset VSpace bigskip
23549 When you use the toolbar button
23550 \begin_inset Graphics
23551 filename ../images/note-insert.png
23553 scaleBeforeRotation
23560 \begin_inset space ~
23566 You can switch between the five note types by right-clicking on the note-box.
23571 If you want to turn existing text into a note, mark it and click on the
23585 To change a note to text, press the backspace key when the cursor is in
23586 the first position of a note, or press the deletey key when the cursor
23587 is in the very last position of the note, respectively.
23590 \begin_layout Standard
23591 \begin_inset VSpace bigskip
23594 You can change the text color of the greyed out notes in the preamble with
23595 the following command:
23598 \begin_layout Standard
23603 renewenvironment{lyxgreyedout}
23604 \begin_inset Newline newline
23611 \begin_layout Plain Layout
23629 \begin_layout Standard
23630 The available colors and the method to define own colors is explained in
23632 \begin_inset space ~
23636 \begin_inset CommandInset ref
23638 reference "sec:Colored-Tables"
23645 \begin_layout Standard
23646 Notes that appear in blue in this document are set using greyed out notes
23650 \begin_layout Standard
23651 \begin_inset VSpace bigskip
23657 \begin_layout Standard
23666 notes can be set in the
23673 \begin_layout Standard
23674 The default frame width for
23679 \begin_inset space \thinspace{}
23682 pt; it can be changed by changing the size
23689 The default space between the note content and the frame is 9
23690 \begin_inset space \thinspace{}
23693 pt; it can be changed by changing the size
23700 For example the frame appearance of the following
23704 note is set with the TeX-Code commands
23707 \begin_layout Standard
23717 \begin_layout Standard
23721 \begin_layout Plain Layout
23733 \begin_inset Box Framed
23742 height_special "totalheight"
23745 \begin_layout Plain Layout
23759 \begin_layout Plain Layout
23773 \begin_layout Standard
23774 \begin_inset VSpace bigskip
23780 \begin_layout Standard
23785 notes the default space between the note content and the note border is
23787 \begin_inset space \thinspace{}
23790 pt; it can be changed by changing the size
23797 \begin_inset Newline newline
23800 The default background color red can be changed with the command
23804 definecolor{shadebox}
23813 command is explained in section
23814 \begin_inset space ~
23818 \begin_inset CommandInset ref
23820 reference "sec:Colored-Tables"
23828 \begin_layout Plain Layout
23835 \SpecialChar \textcompwordmark{}
23840 requires the LaTeX-package
23844 in the preamble, see section
23845 \begin_inset space ~
23849 \begin_inset CommandInset ref
23851 reference "sec:Colored-Boxes"
23863 \begin_layout Standard
23864 For example the appearance of the following
23868 note is set with the TeX-Code commands
23871 \begin_layout Standard
23879 \begin_inset Newline newline
23886 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
23889 \begin_layout Standard
23893 \begin_layout Plain Layout
23906 \begin_layout Plain Layout
23910 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
23916 \begin_inset Box Shaded
23925 height_special "totalheight"
23928 \begin_layout Plain Layout
23931 This is yellow text in a
23941 note with darkgreen background.
23950 \begin_layout Plain Layout
23963 \begin_layout Plain Layout
23967 definecolor{shadecolor}{rgb}{1,0,0}
23975 \begin_layout Section
23977 \begin_inset CommandInset label
23979 name "sec:Footnotes"
23987 \begin_layout Plain Layout
23997 \begin_layout Plain Layout
24006 \begin_layout Standard
24007 Footnotes can be inserted using the toolbar button
24008 \begin_inset Graphics
24009 filename ../images/footnote-insert.png
24011 scaleBeforeRotation
24017 Insert\SpecialChar \menuseparator
24029 then the following footnote-box:
24030 \begin_inset Graphics
24031 filename clipart/footnoteQt4.png
24033 scaleBeforeRotation
24041 where you can enter the footnote text.
24042 If you want to turn existing text into a footnote, mark it and click on
24064 to text, press the Backspace key when the cursor is in the first position
24073 , or press the Delete key when the cursor is in the very last position of
24085 \begin_layout Standard
24086 Here is an example footnote:
24094 \begin_layout Plain Layout
24095 \begin_inset CommandInset label
24097 name "foot:This-is-an"
24101 This is an example footnote.
24114 \begin_layout Plain Layout
24118 newcounter{MyRepeatFoot}
24121 \begin_layout Plain Layout
24125 setcounter{MyRepeatFoot}{
24135 \begin_layout Standard
24136 The footnote will appear in the output as a superscript number at the text
24137 position where the footnote box is placed.
24138 The footnote text is placed at the bottom of the current page.
24139 The footnote number is calculated by LaTeX, the numbers are consecutive.
24140 It depends on your document-class, if the footnote number is reset for
24144 \begin_layout Standard
24145 Footnotes can be referenced like floats: Insert a label into the footnote
24146 and cross-reference this label in the text as described in section
24147 \begin_inset space ~
24151 \begin_inset CommandInset ref
24153 reference "sec:Referencing-Floats"
24158 \begin_inset Newline newline
24161 This is a cross-reference of Footnote
24162 \begin_inset space ~
24166 \begin_inset CommandInset ref
24168 reference "foot:This-is-an"
24175 \begin_layout Standard
24176 \begin_inset VSpace defskip
24179 To use footnotes within tables, you have to use minipages, see section
24180 \begin_inset space ~
24184 \begin_inset CommandInset ref
24186 reference "sec:Minipages"
24191 Footnotes within longtables are described in section
24192 \begin_inset space ~
24196 \begin_inset CommandInset ref
24198 reference "sub:Footnotes-in-Longtables"
24205 \begin_layout Standard
24206 \begin_inset VSpace defskip
24209 To create only a mark for a footnote, use the command
24213 footnotemark[number]
24216 This is used when you have the same annotation several times in a text
24217 but doesn't want to print the footnote text every time.
24218 \begin_inset Newline newline
24221 As you don't know the number of the repeating footnote while you are writing
24222 the text, you have to store its number.
24223 For the following footnote mark example, these commands were inserted in
24224 TeX-Code behind Footnote
24225 \begin_inset space ~
24229 \begin_inset CommandInset ref
24231 reference "foot:This-is-an"
24235 to store the footnote number:
24238 \begin_layout Standard
24243 newcounter{MyRepeatFoot}
24244 \begin_inset Newline newline
24249 setcounter{MyRepeatFoot}{
24254 \begin_layout Standard
24255 The footnote mark was then created with this command:
24258 \begin_layout Standard
24268 \begin_layout Standard
24269 Here is an example footnote mark:
24277 \begin_layout Plain Layout
24291 \begin_layout Subsection
24293 \begin_inset CommandInset label
24295 name "sub:Footnote-Numbering"
24303 \begin_layout Plain Layout
24304 Footnotes ! Numbering
24312 \begin_layout Standard
24313 To reset the footnote number back to 1 after each section
24315 , add this command to your document preamble:
24318 \begin_layout Standard
24323 @addtoreset{footnote}{section}
24326 \begin_layout Standard
24327 \begin_inset VSpace bigskip
24330 The following preamble command changes the footnote numbering style to small
24334 \begin_layout Standard
24346 \begin_layout Standard
24350 \begin_layout Plain Layout
24363 This is a footnote with roman numbering:
24367 \begin_layout Plain Layout
24368 This is an example footnote with roman numbering.
24376 \begin_layout Standard
24377 To change the numbering style to capital roman numerals replace in the command
24392 \begin_inset Quotes eld
24396 \begin_inset Quotes erd
24399 footnotes with capital or small Latin letters use
24413 \begin_inset Quotes eld
24417 \begin_inset Quotes erd
24420 footnotes with symbols use
24429 \begin_layout Standard
24430 \begin_inset Note Greyedout
24433 \begin_layout Plain Layout
24438 You can only number 26 footnotes with Latin letters, because this numbering
24439 is limited to single letters.
24445 \begin_inset Newline newline
24449 \begin_inset Note Greyedout
24452 \begin_layout Plain Layout
24457 You can only number 9 footnotes with symbols.
24465 \begin_layout Standard
24466 To return to the default numbering style when you changed to another one,
24479 in the command above.
24483 \begin_layout Plain Layout
24499 \begin_layout Standard
24500 \begin_inset VSpace bigskip
24506 \begin_layout Standard
24507 If you want to have footnotes numbered in the scheme
24508 \begin_inset Quotes eld
24512 \begin_inset Quotes erd
24515 , add the following command to your document preamble:
24518 \begin_layout Standard
24523 numberwithin{footnote}{chapter}
24526 \begin_layout Standard
24527 To be able to use the command
24536 \begin_inset space ~
24541 in the document settings the option
24544 \begin_inset space ~
24548 \begin_inset space ~
24552 \begin_inset space ~
24560 \begin_layout Standard
24564 \begin_layout Plain Layout
24568 numberwithin{footnote}{chapter}
24573 This is another example footnote:
24579 \begin_layout Plain Layout
24580 This is a footnote numbered in the scheme
24581 \begin_inset Quotes eld
24585 \begin_inset Quotes erd
24599 \begin_layout Plain Layout
24615 \begin_layout Standard
24616 \begin_inset Note Greyedout
24619 \begin_layout Plain Layout
24630 always prints out the footnote number as arabic number; previous redefinitions
24631 to get non-arabic numbers are overwritten.
24639 \begin_layout Standard
24640 So to get for example the scheme
24641 \begin_inset Quotes eld
24647 \begin_inset Quotes erd
24650 , use this command instead of
24659 \begin_layout Standard
24673 \begin_layout Subsection
24678 \begin_layout Plain Layout
24679 Footnotes ! Placement
24687 \begin_layout Standard
24688 If you have several footnotes in one page, they appear without vertical
24689 space between them at the bottom of the page.
24690 To make them better readable you can e.
24691 \begin_inset space \thinspace{}
24695 \begin_inset space ~
24699 \begin_inset space \thinspace{}
24702 mm space with the following preamble command:
24705 \begin_layout Standard
24715 \begin_inset Newline newline
24729 \begin_layout Standard
24730 \begin_inset VSpace bigskip
24733 In a two-column document the footnotes appear at the bottom of every column,
24735 \begin_inset space ~
24739 \begin_inset CommandInset ref
24741 reference "fig:Standard-footnote-placement"
24746 If the footnotes should only appear at the bottom of the right column,
24748 \begin_inset space ~
24752 \begin_inset CommandInset ref
24754 reference "fig:Footnote-placement-in"
24758 , use the LaTeX-package
24766 \begin_layout Plain Layout
24767 LaTeX-packages ! ftnright
24772 with this command in the document preamble:
24775 \begin_layout Standard
24780 usepackage{ftnright}
24783 \begin_layout Standard
24784 \begin_inset Float figure
24790 \begin_layout Plain Layout
24794 \begin_layout Plain Layout
24804 \begin_inset Graphics
24805 filename clipart/without_fntright.pdf
24807 scaleBeforeRotation
24815 \begin_layout Plain Layout
24825 \begin_layout Plain Layout
24826 \begin_inset Caption
24828 \begin_layout Plain Layout
24829 \begin_inset CommandInset label
24831 name "fig:Standard-footnote-placement"
24835 Standard footnote placement in two-column documents.
24848 \begin_layout Standard
24849 \begin_inset Float figure
24855 \begin_layout Plain Layout
24859 \begin_layout Plain Layout
24869 \begin_inset Graphics
24870 filename clipart/with_fntright.pdf
24872 scaleBeforeRotation
24880 \begin_layout Plain Layout
24890 \begin_layout Plain Layout
24891 \begin_inset Caption
24893 \begin_layout Plain Layout
24894 \begin_inset CommandInset label
24896 name "fig:Footnote-placement-in"
24900 Footnote placement in two-column documents when the LaTeX-package
24917 \begin_layout Standard
24918 \begin_inset VSpace bigskip
24921 In some scientific literature it is usual to collect the footnotes and print
24922 them in a separate paragraph at the the end of a section, like in Figure
24923 \begin_inset space ~
24927 \begin_inset CommandInset ref
24929 reference "fig:Endnotes----footnotes"
24934 They are then so called
24935 \begin_inset Quotes eld
24939 \begin_inset Quotes erd
24946 \begin_layout Plain Layout
24952 To use endnotes instead of footnotes in your document, load the LaTeX-package
24961 \begin_layout Plain Layout
24962 LaTeX-packages ! endnotes
24967 with the document preamble lines
24970 \begin_layout Standard
24975 usepackage{endnotes}
24976 \begin_inset Newline newline
24988 \begin_layout Standard
24989 To insert the collected footnotes, insert the command
24992 \begin_layout Standard
25000 \begin_layout Standard
25001 in TeX-Code at the the end of a section or chapter.
25004 \begin_layout Standard
25005 \begin_inset Float figure
25010 \begin_layout Plain Layout
25015 \begin_layout Plain Layout
25025 \begin_inset Graphics
25026 filename clipart/endnotes.pdf
25027 scaleBeforeRotation
25035 \begin_layout Plain Layout
25045 \begin_layout Plain Layout
25046 \begin_inset Caption
25048 \begin_layout Plain Layout
25049 \begin_inset CommandInset label
25051 name "fig:Endnotes----footnotes"
25055 Endnotes -- footnotes are printed in a separate paragraph at the end of
25056 sections or chapters.
25069 \begin_layout Standard
25070 \begin_inset VSpace medskip
25073 The paragraph heading for the endnotes isn't automatically translated into
25074 the document language, this must be done manually.
25075 The following preamble command translate the default English name
25076 \begin_inset Quotes eld
25080 \begin_inset Quotes erd
25083 to the German translation
25084 \begin_inset Quotes eld
25088 \begin_inset Quotes erd
25094 \begin_layout Standard
25101 notesname}{Anmerkungen}
25104 \begin_layout Standard
25105 \begin_inset VSpace medskip
25108 The numbering of endnotes can be changed like the footnote numbering as
25109 described in section
25110 \begin_inset space ~
25114 \begin_inset CommandInset ref
25116 reference "sub:Footnote-Numbering"
25120 ; just replace the command
25133 To reset the endnote number use the command
25139 as described in section
25140 \begin_inset space ~
25144 \begin_inset CommandInset ref
25146 reference "sub:Footnote-Numbering"
25150 and replace the command parameter
25161 \begin_layout Standard
25162 To create only a mark for an endnote, use the command
25166 endnotemark[number]
25168 similar to the command
25174 , described in section
25175 \begin_inset space ~
25179 \begin_inset CommandInset ref
25181 reference "sec:Footnotes"
25188 \begin_layout Standard
25189 \begin_inset VSpace bigskip
25192 Footnotes can also be placed in the page margin and the footnote text alignment
25193 can be changed, see the LaTeX-package
25201 \begin_layout Plain Layout
25202 LaTeX-packages ! footmisc
25208 \begin_inset CommandInset citation
25214 for more information about this.
25217 \begin_layout Standard
25218 For various further footnote formatting issues have a look at LaTeX-books,
25220 \begin_inset CommandInset citation
25222 key "latexcompanion,latexguide,latexbook"
25229 \begin_layout Section
25234 \begin_layout Plain Layout
25235 Notes ! Margin Notes
25243 \begin_layout Standard
25244 Margin notes look and behave in LyX like footnotes.
25245 They are inserted via the menu
25247 Insert\SpecialChar \menuseparator
25249 \begin_inset space ~
25254 or the toolbar button
25255 \begin_inset Graphics
25256 filename ../images/marginalnote-insert.png
25258 scaleBeforeRotation
25273 \begin_inset Quotes eld
25277 \begin_inset Quotes erd
25280 appears where you can enter the text of the margin note.
25283 \begin_layout Standard
25284 At the side is an example margin note.
25289 \begin_inset Marginal
25292 \begin_layout Plain Layout
25293 This is a margin note.
25301 \begin_layout Standard
25302 Margin notes appear at the right side in single-sided documents.
25303 In double-sided documents they appear in the outer margin -- left on even
25304 pages, right on odd pages.
25305 The text of margin notes is aligned opposite to the outer margin -- right-align
25306 ed when the note appears in the left margin.
25307 The first line of the margin note is placed at the position of the text
25308 line where it is inserted in the document.
25311 \begin_layout Standard
25312 \begin_inset VSpace bigskip
25315 To place the margin note in the inner margin, add the command
25318 \begin_layout Standard
25326 \begin_layout Standard
25327 in TeX-Code before a margin note.
25328 The new placement is valid for all following margin notes.
25333 \begin_layout Plain Layout
25343 \begin_inset Marginal
25346 \begin_layout Plain Layout
25347 This is a margin note in the inner margin.
25355 \begin_inset Newline newline
25361 \begin_inset Note Greyedout
25364 \begin_layout Plain Layout
25369 There is often not enough space in the inner margin so that the notes are
25370 not correctly displayed in the output.
25378 \begin_layout Standard
25379 To return to the default placement insert the command
25382 \begin_layout Standard
25390 \begin_layout Standard
25395 \begin_layout Plain Layout
25405 \begin_inset Note Greyedout
25408 \begin_layout Plain Layout
25413 The command is ignored when it is within a paragraph where also the command
25428 \begin_layout Standard
25429 \begin_inset VSpace bigskip
25436 \begin_inset Marginal
25439 \begin_layout Plain Layout
25440 AVeryLongMarginParWord that isn't hyphenated.
25448 Similar to the case described in section
25449 \begin_inset space ~
25453 \begin_inset CommandInset ref
25455 reference "sub:Multiple-Lines-in"
25459 , long words cannot be hyphenated when they are the first word in a margin
25461 To avoid this, insert 0
25462 \begin_inset space \thinspace{}
25465 pt horizontal space before the word
25470 \begin_inset Marginal
25473 \begin_layout Plain Layout
25474 \begin_inset space \hspace*{}
25478 AVeryLongMarginParWord that is hyphenated.
25486 \begin_layout Standard
25487 \begin_inset VSpace bigskip
25493 \begin_layout Standard
25494 \begin_inset Note Greyedout
25497 \begin_layout Plain Layout
25502 Margin notes can normally not be used inside tables, floats, and footnotes.
25510 \begin_layout Standard
25511 \begin_inset VSpace bigskip
25517 \begin_layout Standard
25521 \begin_layout Plain Layout
25531 \begin_inset Note Note
25534 \begin_layout Plain Layout
25535 The following section will only be displayed when the LaTeX-package
25547 \begin_layout Standard
25548 This restriction can be evaded by using the LaTeX-package
25556 \begin_layout Plain Layout
25557 LaTeX-packages ! marginnote
25563 By adding these two lines to your document preamble, the command used by
25564 LyX for margin notes is redefined to use the command provided by the
25571 \begin_layout Standard
25576 usepackage{marginnote}
25577 \begin_inset Newline newline
25589 \begin_layout Standard
25590 This is also used in this document because
25594 has another useful feature: You can set a vertical offset for the note.
25595 This is often needed when too many margin notes are too close together
25596 or for a better page layout.
25597 The offset is set in LyX as TeX-Code directly behind the margin note in
25601 \begin_layout Standard
25607 \begin_layout Standard
25608 where the offset is a length with one of the units listed in Table
25609 \begin_inset space ~
25613 \begin_inset CommandInset ref
25615 reference "tab:Units"
25620 A negative value shifts the note up, a positive value shifts it down.
25624 For example the margin note beside this text line is shifted up 1.5
25625 \begin_inset space \thinspace{}
25628 cm with the TeX-Code-command
25629 \begin_inset Quotes eld
25639 \begin_inset Quotes erd
25643 \begin_inset Marginal
25646 \begin_layout Plain Layout
25647 This margin note is shifted up 1.5
25648 \begin_inset space \thinspace{}
25651 cm from its original position.
25663 \begin_layout Plain Layout
25673 \begin_layout Standard
25674 \begin_inset VSpace medskip
25681 you can also change the alignment of the text in the margin note.
25682 For example the commands
25685 \begin_layout Standard
25692 raggedleftmarginnote}{
25695 \begin_inset Newline newline
25702 raggedrightmarginnote}{
25707 \begin_layout Standard
25708 set the alignment to centered.
25713 raggedleftmarginnote
25715 denotes margin notes that appear at the left side.
25722 \begin_layout Plain Layout
25728 raggedleftmarginnote}{
25733 \begin_layout Plain Layout
25739 raggedrightmarginnote}{
25747 \begin_inset Marginal
25750 \begin_layout Plain Layout
25751 The text of this margin note is centered.
25762 \begin_layout Standard
25769 raggedleftmarginnote}{
25772 \begin_inset Newline newline
25779 raggedrightmarginnote}{
25788 \begin_layout Plain Layout
25794 raggedleftmarginnote}{
25799 \begin_layout Plain Layout
25805 raggedrightmarginnote}{
25815 \begin_layout Standard
25816 \begin_inset VSpace medskip
25819 For the other features of
25823 we refer to its documentation
25824 \begin_inset CommandInset citation
25833 \begin_layout Standard
25834 \begin_inset VSpace bigskip
25837 You can adjust the layout of margin notes by changing its definition.
25838 To create for example a header for all margin notes with the underlined,
25839 sans-serif, and bold header text
25840 \begin_inset Quotes eld
25852 \begin_inset Quotes erd
25855 , add this to your document preamble:
25858 \begin_layout Standard
25868 \begin_inset Newline newline
25878 \begin_inset Newline newline
25885 \begin_layout Plain Layout
25902 underbar{Attention!}}}%
25903 \begin_inset Newline newline
25910 \begin_layout Plain Layout
25928 \begin_layout Standard
25935 \begin_layout Plain Layout
25946 \begin_layout Plain Layout
25957 \begin_layout Plain Layout
25965 underbar{Attention!}}}%
25968 \begin_layout Plain Layout
25982 \begin_inset Marginal
25985 \begin_layout Plain Layout
25986 This is a margin note with a defined heading.
25998 \begin_layout Plain Layout
26012 \begin_layout Plain Layout
26029 \begin_inset Note Note
26032 \begin_layout Plain Layout
26033 The margin note format is changed only for this example.
26041 \begin_layout Standard
26045 \begin_layout Plain Layout
26055 \begin_inset Note Note
26058 \begin_layout Plain Layout
26059 The following will be displayed when the LaTeX-package
26071 \begin_layout Standard
26072 You need to install the LaTeX-package
26076 to see the following part of this section in the output.
26079 \begin_layout Standard
26083 \begin_layout Plain Layout
26095 \begin_layout Chapter
26099 \begin_layout Section
26104 \begin_layout Plain Layout
26105 Boxes ! Introduction
26113 \begin_layout Standard
26114 Boxes are used to format a block of text.
26115 Boxes can be used to write documents with multiple languages, see section
26116 \begin_inset space ~
26120 \begin_inset CommandInset ref
26122 reference "sec:Minipages"
26126 , to frame texts, see section
26127 \begin_inset space ~
26131 \begin_inset CommandInset ref
26133 reference "sec:Framed-Boxes"
26137 , to prevent words to be hyphenated, see section
26138 \begin_inset space ~
26142 \begin_inset CommandInset ref
26144 reference "sec:Prevent-Hyphenation"
26148 , to align text, see section
26149 \begin_inset space ~
26153 \begin_inset CommandInset ref
26155 reference "sub:Vertical-Alignment"
26159 , or to set the background color of texts, see section
26160 \begin_inset space ~
26164 \begin_inset CommandInset ref
26166 reference "sec:Colored-Boxes"
26173 \begin_layout Standard
26174 Boxes can be inserted with the menu
26176 Insert\SpecialChar \menuseparator
26179 or the toolbar button
26180 \begin_inset Graphics
26181 filename ../images/box-insert.png
26183 scaleBeforeRotation
26188 A grey box with the label
26193 \begin_inset Graphics
26194 filename clipart/BoxInsetDefaultQt4.png
26196 scaleBeforeRotation
26200 , will be inserted.
26201 The box type can be specified by right-clicking on the box.
26202 The appearing box dialog offers the
26205 \begin_inset space ~
26223 is the default for new boxes and is explained in section
26224 \begin_inset space ~
26228 \begin_inset CommandInset ref
26230 reference "sec:Minipages"
26238 is described in section
26239 \begin_inset space ~
26243 \begin_inset CommandInset ref
26245 reference "sec:Parboxes"
26252 \begin_layout Standard
26253 Boxes aren't numbered and can therefore not be referenced like floats or
26257 \begin_layout Standard
26258 \begin_inset Note Greyedout
26261 \begin_layout Plain Layout
26266 Boxes must not be the item in an
26282 \begin_layout Standard
26283 \begin_inset Note Greyedout
26286 \begin_layout Plain Layout
26291 For an unknown reason you can only set the
26294 \begin_inset space ~
26303 when you use a framed box.
26307 \begin_inset space ~
26312 type and without frames are explained in section
26313 \begin_inset space ~
26317 \begin_inset CommandInset ref
26319 reference "sec:Prevent-Hyphenation"
26331 \begin_layout Section
26333 \begin_inset CommandInset label
26335 name "sec:Box-Dialog"
26343 \begin_layout Plain Layout
26352 \begin_layout Subsection
26357 \begin_layout Plain Layout
26366 \begin_layout Standard
26367 In the box dialog you can adjust the box geometry in the fields
26376 The available units for the geometry are explained in Table
26377 \begin_inset space ~
26381 \begin_inset CommandInset ref
26383 reference "tab:Units"
26392 offers the following additional sizes:
26395 \begin_layout Description
26396 Depth This is the plain text
26397 \begin_inset Quotes eld
26401 \begin_inset Quotes erd
26405 It ignores the total depth when there are multiple text lines in the box:
26406 \begin_inset Newline newline
26410 \begin_inset Newline newline
26414 \begin_inset Newline newline
26418 \begin_inset Box Boxed
26427 height_special "depth"
26430 \begin_layout Plain Layout
26432 Box height set to 1
26433 \begin_inset space \thinspace{}
26442 \begin_inset Newline newline
26446 \begin_inset Newline newline
26452 \begin_layout Description
26453 Height This is the heigth of the text that is inside the box.
26455 \begin_inset space \thinspace{}
26459 \begin_inset space ~
26462 2 for this size will set the box heigth to 2 times the text height:
26463 \begin_inset Box Boxed
26472 height_special "height"
26475 \begin_layout Plain Layout
26477 Box height set to 2
26478 \begin_inset space \thinspace{}
26489 \begin_layout Description
26491 \begin_inset space ~
26494 Height This is the Height
26495 \begin_inset space \thinspace{}
26499 \begin_inset space \thinspace{}
26503 \begin_inset Box Boxed
26512 height_special "totalheight"
26515 \begin_layout Plain Layout
26517 Box height set to 1
26518 \begin_inset space \thinspace{}
26522 \begin_inset space ~
26533 \begin_layout Description
26534 Width This sets the width of the box as heigth:
26535 \begin_inset Box Boxed
26544 height_special "width"
26547 \begin_layout Plain Layout
26549 Box height set to 1
26550 \begin_inset space \thinspace{}
26561 \begin_layout Subsection
26566 \begin_layout Plain Layout
26575 \begin_layout Standard
26576 When you have chosen an
26579 \begin_inset space ~
26584 , the vertical box alignment can be:
26587 \begin_layout Description
26588 Top This is an example text line.
26590 \begin_inset Box Boxed
26599 height_special "totalheight"
26602 \begin_layout Plain Layout
26604 This box is top-aligned.
26609 This is an example text line.
26612 \begin_layout Description
26613 Middle This is an example text line.
26615 \begin_inset Box Boxed
26624 height_special "totalheight"
26627 \begin_layout Plain Layout
26629 This box is middle-aligned.
26634 This is an example text line.
26637 \begin_layout Description
26638 Bottom This is an example text line.
26640 \begin_inset Box Boxed
26649 height_special "totalheight"
26652 \begin_layout Plain Layout
26654 This box is bottom-aligned.
26659 This is an example text line.
26662 \begin_layout Standard
26663 \begin_inset Note Greyedout
26666 \begin_layout Plain Layout
26671 The vertical box aligment can be lost in the output when you have two boxes
26672 in a line and one has e.
26673 \begin_inset space \thinspace{}
26677 \begin_inset space ~
26680 a shadow and the other one not.
26688 \begin_layout Standard
26689 The horizontal box alignment can be set via LyX's paragraph dialog when
26690 you set the box into its own paragraph.
26693 \begin_layout Standard
26694 \begin_inset VSpace bigskip
26697 When you have chosen an
26700 \begin_inset space ~
26705 , the box content can be vertical aligned to:
26708 \begin_layout Description
26709 top This is an example text line.
26711 \begin_inset Box Boxed
26720 height_special "totalheight"
26723 \begin_layout Plain Layout
26725 This box text is top-aligned.
26730 This is an example text line.
26733 \begin_layout Description
26734 middle This is an example text line.
26736 \begin_inset Box Boxed
26745 height_special "totalheight"
26748 \begin_layout Plain Layout
26750 This box text is middle-aligned.
26755 This is an example text line.
26758 \begin_layout Description
26759 bottom This is an example text line.
26761 \begin_inset Box Boxed
26770 height_special "totalheight"
26773 \begin_layout Plain Layout
26775 This box text is bottom-aligned.
26780 This is an example text line.
26783 \begin_layout Description
26784 stretch This is an example text line.
26786 \begin_inset Box Boxed
26795 height_special "totalheight"
26798 \begin_layout Plain Layout
26803 \begin_layout Plain Layout
26808 \begin_layout Plain Layout
26815 This is an example text line.
26818 \begin_layout Standard
26819 To stretch the box content, it must consist of more than one paragraph.
26820 In the example above every text line is in an own paragraph.
26823 \begin_layout Standard
26824 \begin_inset VSpace bigskip
26827 To align the box content horizontally you can use LyX's paragraph dialog
26828 when you have chosen an
26831 \begin_inset space ~
26839 \begin_layout Standard
26841 \begin_inset Box Boxed
26850 height_special "totalheight"
26853 \begin_layout Plain Layout
26858 \begin_layout Plain Layout
26863 \begin_layout Plain Layout
26873 \begin_layout Standard
26874 If you haven't set an
26877 \begin_inset space ~
26882 , you can align the box content horizontally in the box dialog.
26885 \begin_layout Standard
26887 \begin_inset Box Boxed
26896 height_special "totalheight"
26899 \begin_layout Plain Layout
26901 This box text is horizontally stretched.
26909 \begin_layout Section
26911 \begin_inset CommandInset label
26913 name "sec:Framed-Boxes"
26921 \begin_layout Plain Layout
26930 \begin_layout Standard
26931 The frame style of the box can be specified in the box-dialog in the drop-down
26937 The following frame types are possible:
26940 \begin_layout Description
26942 \begin_inset space ~
26945 box This draws a rectangle frame around the box.
26946 The frame line thickness has the size of
26954 \begin_inset Box Boxed
26963 height_special "totalheight"
26966 \begin_layout Plain Layout
26976 \begin_layout Description
26978 \begin_inset space ~
26982 \begin_inset space ~
26985 thin This draws an oval frame around the box.
26986 The frame line thickness has the size 0.4
26987 \begin_inset space \thinspace{}
26992 \begin_inset Box ovalbox
27001 height_special "totalheight"
27004 \begin_layout Plain Layout
27014 \begin_layout Description
27016 \begin_inset space ~
27020 \begin_inset space ~
27023 thick This draws an oval frame around the box.
27024 The frame line thickness has the size 0.8
27025 \begin_inset space \thinspace{}
27030 \begin_inset Box Ovalbox
27039 height_special "totalheight"
27042 \begin_layout Plain Layout
27052 \begin_layout Description
27054 \begin_inset space ~
27057 box This draws a rectangle frame with a shadow around the box.
27058 The frame line thickness has the size of
27064 , the shadow has a width of 4
27065 \begin_inset space \thinspace{}
27070 \begin_inset Box Shadowbox
27079 height_special "totalheight"
27082 \begin_layout Plain Layout
27092 \begin_layout Description
27094 \begin_inset space ~
27097 box This draws a double-line rectangle frame around the box.
27098 The line thickness of the inner frame is 0.75
27099 \begin_inset space \thinspace{}
27108 , the thickness of the outer frame is 1.5
27109 \begin_inset space \thinspace{}
27119 The distance between the lines is 1.5
27120 \begin_inset space \thinspace{}
27130 \begin_inset space \thinspace{}
27134 \begin_inset space \thinspace{}
27138 \begin_inset space \thinspace{}
27143 \begin_inset Box Doublebox
27152 height_special "totalheight"
27155 \begin_layout Plain Layout
27165 \begin_layout Standard
27166 \begin_inset VSpace bigskip
27169 LyX's box label will change to the used frame style when you set a frame.
27170 To be able to use the different frame styles, the LaTeX-package
27178 \begin_layout Plain Layout
27179 LaTeX-packages ! fancybox
27187 \begin_layout Standard
27188 \begin_inset VSpace bigskip
27191 The default value for the size
27198 \begin_inset space \thinspace{}
27202 It can be changed with the following command in TeX-Code to e.
27203 \begin_inset space \thinspace{}
27207 \begin_inset space ~
27211 \begin_inset space \thinspace{}
27217 \begin_layout Standard
27227 \begin_layout Standard
27231 \begin_layout Plain Layout
27243 \begin_inset Box Boxed
27252 height_special "totalheight"
27255 \begin_layout Plain Layout
27257 Rectangular box with
27264 \begin_inset space \thinspace{}
27268 \begin_inset space \thinspace{}
27272 \begin_inset space \thinspace{}
27284 \begin_layout Plain Layout
27298 \begin_layout Standard
27299 \begin_inset VSpace bigskip
27302 The space between the frame and the box content is for all frame styles
27304 \begin_inset space \thinspace{}
27308 You can change it by setting the length
27315 For example the command
27318 \begin_layout Standard
27328 \begin_layout Standard
27329 sets the value to 10
27330 \begin_inset space \thinspace{}
27333 pt, like for the following box:
27336 \begin_layout Standard
27340 \begin_layout Plain Layout
27352 \begin_inset Box Boxed
27361 height_special "totalheight"
27364 \begin_layout Plain Layout
27366 Rectangular box with
27373 \begin_inset space \thinspace{}
27377 \begin_inset space \thinspace{}
27381 \begin_inset space \thinspace{}
27393 \begin_layout Plain Layout
27407 \begin_layout Standard
27408 \begin_inset VSpace bigskip
27411 The diameter of the round corners of the oval boxes can be set with the
27422 \begin_layout Standard
27430 \begin_layout Standard
27431 sets the diameter to 1
27432 \begin_inset space \thinspace{}
27439 \begin_layout Standard
27447 \begin_layout Standard
27448 sets the diameter to
27451 \begin_inset space \thinspace{}
27455 \begin_inset space \thinspace{}
27458 minimum(width and heigth of box)
27470 \begin_layout Standard
27474 \begin_layout Plain Layout
27484 \begin_inset Box Ovalbox
27493 height_special "totalheight"
27496 \begin_layout Plain Layout
27505 \begin_inset space \thinspace{}
27509 \begin_inset space \thinspace{}
27513 \begin_inset space \thinspace{}
27525 \begin_layout Plain Layout
27537 \begin_layout Standard
27538 \begin_inset VSpace bigskip
27541 The size of the shadow can be adjusted by changing the length
27549 \begin_inset space \thinspace{}
27552 pt for the following box by this command:
27555 \begin_layout Standard
27565 \begin_layout Standard
27569 \begin_layout Plain Layout
27581 \begin_inset Box Shadowbox
27590 height_special "totalheight"
27593 \begin_layout Plain Layout
27602 \begin_inset space \thinspace{}
27606 \begin_inset space \thinspace{}
27610 \begin_inset space \thinspace{}
27622 \begin_layout Plain Layout
27636 \begin_layout Standard
27637 \begin_inset VSpace bigskip
27640 Changed lengths and widths are valid for all boxes following the commands
27644 \begin_layout Section
27646 \begin_inset CommandInset label
27648 name "sec:Minipages"
27656 \begin_layout Plain Layout
27665 \begin_layout Standard
27666 Minipages are treated by LaTeX as pages within pages and can therefore for
27667 example have their own footnotes.
27670 \begin_layout Standard
27671 Minipages are useful when you write documents with different languages.
27674 \begin_layout Standard
27675 Below are two example minipages side by side.
27676 Their width is set to 45
27677 \begin_inset space \thinspace{}
27680 col% and they are separated by a horizontal fill, that was inserted via
27683 Insert\SpecialChar \menuseparator
27685 \begin_inset space ~
27688 Formatting\SpecialChar \menuseparator
27690 \begin_inset space ~
27698 \begin_layout Standard
27699 \begin_inset Box Frameless
27708 height_special "totalheight"
27711 \begin_layout Plain Layout
27714 Dies ist ein deutscher Text.
27715 Dies ist ein deutscher Text.
27716 Dies ist ein deutscher Text.
27717 Dies ist ein deutscher Text.
27718 Dies ist ein deutscher Text.
27719 Dies ist ein deutscher Text.
27720 Dies ist ein deutscher Text.
27721 Dies ist ein deutscher Text.
27722 Dies ist ein deutscher Text.
27723 Dies ist ein deutscher Text.
27724 Dies ist ein deutscher Text.
27725 Dies ist ein deutscher Text.
27726 Dies ist ein deutscher Text
27730 \begin_layout Plain Layout
27733 Dies ist eine deutsche Fußnote.
27739 Dies ist ein deutscher Text.
27740 Dies ist ein deutscher Text.
27746 \begin_inset space \hfill{}
27750 \begin_inset Box Frameless
27759 height_special "totalheight"
27762 \begin_layout Plain Layout
27763 This is an English Text.
27764 This is an English Text.
27765 This is an English Text.
27766 This is an English Text.
27767 This is an English Text.
27768 This is an English Text.
27769 This is an English Text.
27770 This is an English Text.
27771 This is an English Text.
27772 This is an English Text.
27773 This is an English Text.
27774 This is an English Text.
27775 This is an English Text.
27776 This is an English Text.
27777 This is an English Text.
27778 This is an English Text.
27782 \begin_layout Plain Layout
27783 This is an English footnote.
27788 This is an English Text.
27797 \begin_layout Standard
27798 \begin_inset VSpace bigskip
27801 Another application for minipages are footnotes within tables.
27802 Due to a LaTeX restriction footnotes within tables doesn't appear at the
27803 bottom of the current page.
27804 But when you put the table with the footnote to a minipage, the footnote
27805 will appear at its bottom, numbered with Latin letters.
27806 The footnote number is reset to 1 in every minipage but not outside the
27810 \begin_layout Standard
27811 The footnote of this table doesn't appear:
27812 \begin_inset Tabular
27813 <lyxtabular version="3" rows="3" columns="4">
27815 <column alignment="center" valignment="top" width="0pt">
27816 <column alignment="center" valignment="top" width="0pt">
27817 <column alignment="center" valignment="top" width="0pt">
27818 <column alignment="center" valignment="top" width="0pt">
27820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27823 \begin_layout Plain Layout
27829 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27832 \begin_layout Plain Layout
27838 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27841 \begin_layout Plain Layout
27846 \begin_layout Plain Layout
27847 This is a footnote within a table.
27857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27860 \begin_layout Plain Layout
27868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27871 \begin_layout Plain Layout
27877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27880 \begin_layout Plain Layout
27886 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27889 \begin_layout Plain Layout
27895 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27898 \begin_layout Plain Layout
27906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27909 \begin_layout Plain Layout
27915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27918 \begin_layout Plain Layout
27924 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27927 \begin_layout Plain Layout
27933 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27936 \begin_layout Plain Layout
27950 \begin_layout Standard
27952 \begin_inset Box Frameless
27961 height_special "totalheight"
27964 \begin_layout Plain Layout
27966 \begin_inset Tabular
27967 <lyxtabular version="3" rows="3" columns="4">
27969 <column alignment="center" valignment="top" width="0pt">
27970 <column alignment="center" valignment="top" width="0pt">
27971 <column alignment="center" valignment="top" width="0pt">
27972 <column alignment="center" valignment="top" width="0pt">
27974 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27977 \begin_layout Plain Layout
27983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27986 \begin_layout Plain Layout
27992 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27995 \begin_layout Plain Layout
28000 \begin_layout Plain Layout
28001 This is a footnote within a table.
28011 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28014 \begin_layout Plain Layout
28022 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28025 \begin_layout Plain Layout
28031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28034 \begin_layout Plain Layout
28040 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28043 \begin_layout Plain Layout
28049 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28052 \begin_layout Plain Layout
28060 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28063 \begin_layout Plain Layout
28069 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28072 \begin_layout Plain Layout
28078 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28081 \begin_layout Plain Layout
28087 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28090 \begin_layout Plain Layout
28109 \begin_layout Standard
28110 \begin_inset VSpace bigskip
28113 The document-wide paragraph settings are ignored within minipages.
28114 That means that there will be no space between paragraphs in minipages
28115 although you set it to e.
28116 \begin_inset space \thinspace{}
28120 \begin_inset space ~
28127 in the document settings.
28130 \begin_layout Standard
28131 Minipages can also be used to set a background color for text parts, see
28133 \begin_inset space ~
28137 \begin_inset CommandInset ref
28139 reference "sub:Color-for-Paragraphs"
28146 \begin_layout Standard
28147 \begin_inset Note Greyedout
28150 \begin_layout Plain Layout
28155 You cannot have floats or margin notes inside minipages but minipages can
28156 be used inside tables, floats, and other boxes.
28164 \begin_layout Section
28166 \begin_inset CommandInset label
28168 name "sec:Parboxes"
28176 \begin_layout Plain Layout
28185 \begin_layout Standard
28186 Parboxes are very similar to minipages with the difference that they cannot
28188 The main difference to minipages is that minipages are in contrary to parboxes
28189 no real boxes but LaTeX-environments.
28192 \begin_layout Standard
28194 \begin_inset Box Frameless
28203 height_special "totalheight"
28206 \begin_layout Plain Layout
28207 This a text within a parbox.
28208 This a text within a parbox.
28211 \begin_layout Plain Layout
28212 This footnote won't appear:
28216 \begin_layout Plain Layout
28217 This footnote is inside a parbox and will therefore not appear.
28230 \begin_layout Section
28231 Boxes for Words and Characters
28235 \begin_layout Plain Layout
28236 Boxes ! for Characters
28244 \begin_layout Subsection
28245 Prevent Hyphenation
28246 \begin_inset CommandInset label
28248 name "sec:Prevent-Hyphenation"
28256 \begin_layout Plain Layout
28257 Boxes ! to Prevent Hyphenation
28265 \begin_layout Standard
28266 You can use a special kind of boxes to prevent words or text to be hyphenated.
28267 \begin_inset Newline newline
28270 Here is an example text:
28273 \begin_layout Standard
28274 This line is an example to show how you can prevent the hyphenation of
28275 \begin_inset Quotes eld
28279 \begin_inset Quotes erd
28285 \begin_layout Standard
28286 To prevent the hyphenation of the word
28287 \begin_inset Quotes eld
28291 \begin_inset Quotes erd
28297 \begin_layout Standard
28305 \begin_layout Standard
28306 in TeX-Code before the word.
28307 Behind the word insert a closing brace
28308 \begin_inset Quotes eld
28316 \begin_inset Quotes erd
28322 \begin_layout Standard
28323 This is the result:
28326 \begin_layout Standard
28327 This line is an example to show how you can prevent the hyphenation of
28331 \begin_layout Plain Layout
28341 \begin_inset Quotes eld
28345 \begin_inset Quotes erd
28352 \begin_layout Plain Layout
28362 \begin_layout Standard
28363 You can alternatively set the command
28364 \begin_inset Quotes eld
28374 \begin_inset Quotes grd
28377 as TeX-Code directly before the word:
28380 \begin_layout Standard
28381 This line is an example to show how you can prevent the hyphenation of
28382 \begin_inset Quotes eld
28389 \begin_layout Plain Layout
28399 \begin_inset Quotes erd
28405 \begin_layout Standard
28406 Of course the word now protrudes over the side margin.
28407 To avoid this, add via the menu
28409 Insert\SpecialChar \menuseparator
28411 \begin_inset space ~
28414 Formatting\SpecialChar \menuseparator
28416 \begin_inset space ~
28425 ) a line break before the word:
28428 \begin_layout Standard
28429 This line is an example to show how you can prevent the hyphenation of
28430 \begin_inset Newline newline
28437 \begin_layout Plain Layout
28447 \begin_inset Quotes eld
28451 \begin_inset Quotes erd
28458 \begin_layout Plain Layout
28468 \begin_layout Subsection
28470 \begin_inset CommandInset label
28472 name "sub:Vertical-Alignment"
28480 \begin_layout Plain Layout
28481 Boxes ! for Vertical Alignment
28490 \begin_layout Plain Layout
28499 \begin_layout Standard
28500 With the help of the command
28506 you can align words, characters or other boxes vertically to the surrounding
28514 is used with the following scheme:
28517 \begin_layout Standard
28522 raisebox{lift}[height][depth]{box content}
28525 \begin_layout Standard
28526 The lift can be a positive value to raise the box or a negative value to
28530 \begin_layout Standard
28531 To align for example the word
28532 \begin_inset Quotes eld
28536 \begin_inset Quotes erd
28539 so that the bottom of the
28540 \begin_inset Quotes eld
28544 \begin_inset Quotes erd
28548 \begin_inset Quotes eld
28552 \begin_inset Quotes erd
28555 is at the baseline, insert the command
28558 \begin_layout Standard
28568 \begin_layout Standard
28569 in TeX-Code before the word.
28570 Behind the word insert a closing brace
28571 \begin_inset Quotes eld
28579 \begin_inset Quotes erd
28583 \begin_inset Newline newline
28586 This is the result:
28589 \begin_layout Standard
28590 This is a text line with the word
28594 \begin_layout Plain Layout
28606 \begin_inset Quotes eld
28610 \begin_inset Quotes erd
28617 \begin_layout Plain Layout
28627 \begin_layout Standard
28628 \begin_inset VSpace bigskip
28631 When you raise or lower characters in a line, the line distance will be
28635 \begin_layout Standard
28636 This is a text line with the word
28640 \begin_layout Plain Layout
28652 \begin_inset Quotes eld
28656 \begin_inset Quotes erd
28663 \begin_layout Plain Layout
28671 \begin_inset Newline newline
28674 This is a text line with the word
28678 \begin_layout Plain Layout
28688 \begin_inset Quotes eld
28692 \begin_inset Quotes erd
28699 \begin_layout Plain Layout
28709 \begin_layout Standard
28710 If you want to prevent this for a certain reason, set the box height to
28715 \begin_layout Standard
28725 \begin_layout Standard
28726 This is a text line with the word
28730 \begin_layout Plain Layout
28742 \begin_inset Quotes eld
28746 \begin_inset Quotes erd
28753 \begin_layout Plain Layout
28761 \begin_inset Newline newline
28764 This is a text line with the word
28768 \begin_layout Plain Layout
28772 raisebox{0.5cm}[0pt]{
28778 \begin_inset Quotes eld
28782 \begin_inset Quotes erd
28789 \begin_layout Plain Layout
28799 \begin_layout Section
28801 \begin_inset CommandInset label
28803 name "sec:Colored-Boxes"
28811 \begin_layout Plain Layout
28820 \begin_layout Subsection
28825 \begin_layout Plain Layout
28834 \begin_layout Standard
28835 To color the background of text the text must be put into a so called
28836 \begin_inset Quotes eld
28840 \begin_inset Quotes erd
28844 This requires that the LaTeX-package
28852 \begin_layout Plain Layout
28853 LaTeX-packages ! color
28858 is loaded in the document preamble with the command
28861 \begin_layout Standard
28866 @ifundefined{textcolor}
28867 \begin_inset Newline newline
28874 \begin_layout Plain Layout
28885 usepackage{color}}{}
28888 \begin_layout Standard
28893 will be loaded automatically by LyX when you color text
28897 \begin_layout Plain Layout
28898 To avoid that it is loaded twice the command
28902 @ifundef\SpecialChar \textcompwordmark{}
28913 \begin_layout Standard
28914 \begin_inset VSpace medskip
28917 Colorboxes are created with the command
28924 This will be used with the following scheme:
28927 \begin_layout Standard
28932 colorbox{color}{box content}
28935 \begin_layout Standard
28936 The box content can also be a box and colorboxes can also be within other
28940 \begin_layout Standard
28941 The following colors are predefined:
28942 \begin_inset Newline newline
28981 \begin_inset Newline newline
28984 You can also define your own color as described in section
28985 \begin_inset space ~
28989 \begin_inset CommandInset ref
28991 reference "sec:Colored-Tables"
28998 \begin_layout Standard
29000 \begin_inset space \thinspace{}
29004 \begin_inset space ~
29007 a red background for a word, insert the command
29010 \begin_layout Standard
29018 \begin_layout Standard
29019 before the word in TeX-Code.
29020 Behind the word insert a closing brace
29021 \begin_inset Quotes eld
29029 \begin_inset Quotes erd
29033 \begin_inset Newline newline
29036 This is the result:
29039 \begin_layout Standard
29040 This is a line where the word
29044 \begin_layout Plain Layout
29054 \begin_inset Quotes eld
29058 \begin_inset Quotes erd
29065 \begin_layout Plain Layout
29072 has a red background.
29075 \begin_layout Standard
29076 \begin_inset VSpace bigskip
29079 If you would have the box frame in a different color, you can use the command
29086 with the following scheme:
29089 \begin_layout Standard
29094 fcolorbox{frame color}{box color}{box content}
29097 \begin_layout Standard
29111 The frame thickness and the space between the frame and the box content
29112 can be adjusted with the lengths
29124 , respectively, as described in section
29125 \begin_inset space ~
29129 \begin_inset CommandInset ref
29131 reference "sec:Framed-Boxes"
29138 \begin_layout Standard
29139 For the following example the command
29142 \begin_layout Standard
29147 fcolorbox{cyan}{magenta}{
29150 \begin_layout Standard
29154 \begin_layout Standard
29155 Here is an example where the frame line thickness was set to 1
29156 \begin_inset space \thinspace{}
29160 \begin_inset Newline newline
29167 \begin_layout Plain Layout
29182 \begin_layout Plain Layout
29186 fcolorbox{cyan}{magenta}{
29191 This is text within a colored, framed box.
29195 \begin_layout Plain Layout
29205 \begin_layout Standard
29206 \begin_inset VSpace bigskip
29209 Of course you can also have colored text inside a colorbox:
29210 \begin_inset Newline newline
29217 \begin_layout Plain Layout
29221 fcolorbox{cyan}{magenta}{
29228 This is colored text within a colored, framed box.
29234 \begin_layout Plain Layout
29245 \begin_layout Plain Layout
29259 \begin_layout Standard
29262 \begin_inset VSpace medskip
29268 \begin_layout Standard
29269 \begin_inset Note Greyedout
29272 \begin_layout Plain Layout
29277 Text in colorboxes cannot have line breaks.
29278 To color multiple text lines or paragraphs, use a box inside a colorbox
29279 as described in the following.
29287 \begin_layout Subsection
29288 Color for Paragraphs
29289 \begin_inset CommandInset label
29291 name "sub:Color-for-Paragraphs"
29299 \begin_layout Plain Layout
29300 Color ! for Paragraphs
29308 \begin_layout Standard
29309 To set the background color for more than one text line, put the text into
29311 Before the minipage insert the
29320 \begin_layout Standard
29328 \begin_layout Standard
29330 Behind the minipage insert a closing brace
29331 \begin_inset Quotes eld
29339 \begin_inset Quotes erd
29345 \begin_layout Standard
29349 \begin_layout Plain Layout
29353 colorbox{lightgrey}{
29359 \begin_inset Box Frameless
29368 height_special "totalheight"
29371 \begin_layout Plain Layout
29372 This is text with background color.
29373 This is text with background color.
29376 \begin_layout Plain Layout
29377 \begin_inset VSpace defskip
29380 The text can have footnotes
29384 \begin_layout Plain Layout
29385 Another example footnote
29390 and can include tables and figures.
29393 \begin_layout Plain Layout
29395 \begin_inset Tabular
29396 <lyxtabular version="3" rows="3" columns="3">
29398 <column alignment="center" valignment="top" width="0">
29399 <column alignment="center" valignment="top" width="0">
29400 <column alignment="center" valignment="top" width="0">
29402 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29405 \begin_layout Plain Layout
29411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29414 \begin_layout Plain Layout
29420 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29423 \begin_layout Plain Layout
29431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29434 \begin_layout Plain Layout
29440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29443 \begin_layout Plain Layout
29445 \begin_inset Quotes erd
29453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29456 \begin_layout Plain Layout
29464 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29467 \begin_layout Plain Layout
29473 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29476 \begin_layout Plain Layout
29482 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29485 \begin_layout Plain Layout
29505 \begin_layout Plain Layout
29515 \begin_layout Section
29516 Rotated and Scaled Boxes
29519 \begin_layout Standard
29520 To use the the commands described in this section, the LaTeX-package
29528 \begin_layout Plain Layout
29529 LaTeX-packages ! graphicx
29534 needs to be loaded in the document preamble with the command
29537 \begin_layout Standard
29542 @ifundefined{rotatebox}
29543 \begin_inset Newline newline
29550 \begin_layout Plain Layout
29561 usepackage{graphicx}}{}
29564 \begin_layout Standard
29565 \begin_inset Note Greyedout
29568 \begin_layout Plain Layout
29573 Some DVI-viewers can't display rotated or scaled material.
29581 \begin_layout Standard
29582 \begin_inset Note Greyedout
29585 \begin_layout Plain Layout
29590 Floats mustn't be inside a rotated or scaled box.
29598 \begin_layout Subsection
29603 \begin_layout Plain Layout
29613 \begin_layout Plain Layout
29623 \begin_layout Plain Layout
29633 \begin_layout Plain Layout
29634 Table Customization ! Rotating
29642 \begin_layout Standard
29643 To rotate material, you can put it into a rotated box.
29644 Such a box is created using the command
29650 in TeX-Code with the following scheme:
29653 \begin_layout Standard
29658 rotatebox[rotation origin]{rotation angle}{box content}
29661 \begin_layout Standard
29662 The rotation origin is specified in the form
29667 The following positions are possible:
29687 (top), and also expedient combinations of the four base positions.
29692 means, that the rotation origin is at the top left corner of the box.
29693 When no rotation origin is specified, the position
29698 The rotation angle is a number that can be negative that specifies the
29700 The rotation direction is counterclockwise.
29703 \begin_layout Standard
29704 In the following example the command
29708 rotatebox[origin=c]{60}{
29710 was inserted as TeX-Code before the text
29711 \begin_inset Quotes eld
29715 \begin_inset Quotes erd
29718 ; after the text the box was closed by a closing brace
29725 \begin_layout Standard
29730 \begin_layout Plain Layout
29734 rotatebox[origin=c]{60}{
29743 \begin_layout Plain Layout
29753 \begin_layout Standard
29754 The box content can also be another box or an inline formula:
29757 \begin_layout Standard
29762 \begin_layout Plain Layout
29766 rotatebox[origin=r]{-60}{
29772 \begin_inset Box Doublebox
29781 height_special "totalheight"
29784 \begin_layout Plain Layout
29794 \begin_layout Plain Layout
29805 \begin_layout Plain Layout
29809 rotatebox[origin=lb]{60}{
29815 \begin_inset Formula $\int A\,\mathrm{d}x=B$
29822 \begin_layout Plain Layout
29832 \begin_layout Standard
29833 or an image or table:
29836 \begin_layout Standard
29841 \begin_layout Plain Layout
29845 rotatebox[origin=lb]{90}{
29851 \begin_inset Graphics
29852 filename clipart/platypus.eps
29862 \begin_layout Plain Layout
29869 with a rotated image
29873 \begin_layout Plain Layout
29877 rotatebox[origin=l]{-90}{
29883 \begin_inset Tabular
29884 <lyxtabular version="3" rows="2" columns="2">
29886 <column alignment="center" valignment="top" width="0">
29887 <column alignment="center" valignment="top" width="0">
29889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29892 \begin_layout Plain Layout
29898 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29901 \begin_layout Plain Layout
29909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29912 \begin_layout Plain Layout
29918 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29921 \begin_layout Plain Layout
29936 \begin_layout Plain Layout
29946 \begin_layout Subsection
29951 \begin_layout Plain Layout
29961 \begin_layout Plain Layout
29971 \begin_layout Plain Layout
29981 \begin_layout Plain Layout
29982 Table Customization ! Scaling
29990 \begin_layout Standard
29991 To scale material the commands
30003 can be used as TeX-Code.
30006 \begin_layout Standard
30013 is used with the following scheme:
30016 \begin_layout Standard
30021 scalebox{horizontal}[vertical]{box content}
30024 \begin_layout Standard
30025 Horizontal and vertical are the corresponding scaling factors.
30026 If no vertical scaling factor is given, the horizontal factor will also
30027 be used as vertical one.
30030 \begin_layout Standard
30037 creates for example a double size
30041 \begin_layout Plain Layout
30054 \begin_layout Plain Layout
30061 , compared to the document text size.
30064 \begin_layout Standard
30069 scalebox{2}[1]{Hello}
30071 in contrary distorts the
30075 \begin_layout Plain Layout
30088 \begin_layout Plain Layout
30098 \begin_layout Standard
30099 If a the scaling factor is negative, the box content will be mirrored.
30100 Therefore the command
30104 scalebox{-1}[1]{Hello}
30106 can be used to create mirror writing:
30110 \begin_layout Plain Layout
30123 \begin_layout Plain Layout
30133 \begin_layout Standard
30138 scalebox{1}[-1]{Hello}
30144 \begin_layout Plain Layout
30157 \begin_layout Plain Layout
30167 \begin_layout Standard
30172 scalebox{-1}[1]{box content}
30174 there exists the command
30175 \begin_inset Newline newline
30182 reflectbox{box content}
30187 \begin_layout Standard
30188 \begin_inset VSpace bigskip
30197 is used to scale the box to a defined width and height.
30198 The command scheme is:
30201 \begin_layout Standard
30206 resizebox{width}{height}{box content}
30209 \begin_layout Standard
30210 Is one of the two command arguments given as exclamation mark
30214 , the size is set so that the aspect ratio of the box content is kept.
30217 \begin_layout Standard
30222 resizebox{2cm}{1cm}{Hello}
30228 \begin_layout Plain Layout
30232 resizebox{2cm}{1cm}{
30241 \begin_layout Plain Layout
30249 \begin_inset Newline newline
30256 resizebox{2cm}{!}{Hello}
30262 \begin_layout Plain Layout
30275 \begin_layout Plain Layout
30285 \begin_layout Standard
30286 \begin_inset VSpace bigskip
30290 \begin_inset Note Greyedout
30293 \begin_layout Plain Layout
30310 are set to zero, no LaTeX-errors occur when exporting the document but
30311 the exported files can not or only partly be displayed.
30319 \begin_layout Standard
30320 \begin_inset VSpace bigskip
30326 \begin_layout Standard
30327 The boxes can be combined in any order.
30329 \begin_inset space \thinspace{}
30333 \begin_inset space ~
30337 \begin_inset Newline newline
30344 rotatebox[origin=c]{-45}{
30348 reflectbox{Hello}}}
30349 \begin_inset Newline newline
30357 \begin_layout Standard
30362 \begin_layout Plain Layout
30366 rotatebox[origin=c]{-45}{
30379 \begin_layout Plain Layout
30389 \begin_layout Standard
30391 Images, tables, and inline formulas are allowed as box content:
30394 \begin_layout Standard
30399 \begin_layout Plain Layout
30403 rotatebox[origin=c]{-30}{
30413 \begin_inset Graphics
30414 filename clipart/platypus.eps
30424 \begin_layout Plain Layout
30435 \begin_layout Plain Layout
30439 rotatebox[origin=c]{-45}{
30449 \begin_inset Tabular
30450 <lyxtabular version="3" rows="2" columns="2">
30452 <column alignment="center" valignment="top" width="0">
30453 <column alignment="center" valignment="top" width="0">
30455 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30458 \begin_layout Plain Layout
30464 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30467 \begin_layout Plain Layout
30475 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30478 \begin_layout Plain Layout
30484 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30487 \begin_layout Plain Layout
30502 \begin_layout Plain Layout
30513 \begin_layout Plain Layout
30517 rotatebox[origin=c]{-45}{
30527 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30534 \begin_layout Plain Layout
30544 \begin_layout Standard
30545 When the global formula style
30549 is used in the document
30553 \begin_layout Plain Layout
30555 \begin_inset Quotes eld
30559 \begin_inset Quotes erd
30562 is added to the document class options.
30567 , also display formulas can be scaled.
30570 \begin_layout Chapter
30575 \begin_layout Plain Layout
30584 \begin_layout Standard
30587 Insert\SpecialChar \menuseparator
30590 you can insert external material to your document.
30594 \begin_layout Description
30596 \begin_inset space ~
30599 Document Another LyX document; its content is directly inserted to your
30603 \begin_layout Description
30605 \begin_inset space ~
30608 Text A text document; every of its text lines is inserted to your document
30612 \begin_layout Description
30614 \begin_inset space ~
30618 \begin_inset space ~
30622 \begin_inset space ~
30625 Lines A text document; its text lines are inserted as they are.
30626 Empty text lines creates a new paragraph in your document.
30629 \begin_layout Description
30631 \begin_inset space ~
30634 Material Files in various formats.
30637 \begin_layout Description
30639 \begin_inset space ~
30642 Document LyX or LaTeX-documents.
30645 \begin_layout Section
30650 \begin_layout Plain Layout
30651 External Stuff ! External Material
30659 \begin_layout Standard
30660 The external material feature allows you to insert files to your document
30661 without converting them previously to a format that can be read by the
30662 document output format because LyX takes care of needed conversions.
30663 This is similar to images that can be inserted in various image formats
30667 \begin_layout Standard
30668 External material can be inserted via the
30672 dialog that is accessible with the menu
30674 Insert\SpecialChar \menuseparator
30675 File\SpecialChar \menuseparator
30677 \begin_inset space ~
30683 Currently the following file types (
30690 \begin_layout Description
30691 ChessDiagram This template supports chess position diagrams made with the
30695 \begin_inset CommandInset href
30698 target "http://en.wikipedia.org/wiki/XBoard"
30707 \begin_layout Description
30708 Date This inserts the date in the form
30713 This is a date inserted as external material:
30714 \begin_inset External
30721 \begin_inset space ~
30725 \begin_inset Note Note
30728 \begin_layout Plain Layout
30729 Remove the protected space when bug 4398 is fixed!
30735 \begin_inset Newline newline
30738 The date is not shown within LyX, only in the output.
30739 There are two other methods of inserting a date: Via menu
30741 Insert\SpecialChar \menuseparator
30744 and with the LaTeX command
30751 The different methods are compared in Table
30752 \begin_inset space ~
30756 \begin_inset CommandInset ref
30758 reference "tab:Comparison-of-the"
30765 \begin_layout Description
30766 LilyPond This template is used for music notation typeset with the program
30767 \begin_inset Newline linebreak
30773 \begin_inset CommandInset href
30776 target "http://en.wikipedia.org/wiki/LilyPond"
30785 \begin_layout Description
30786 RasterImage This can be used for bitmap images.
30787 Nearly all popular image formats are supported.
30788 The image can be treated in the
30792 dialog like the images that are usually included via the
30796 dialog as described in section
30797 \begin_inset space ~
30801 \begin_inset CommandInset ref
30803 reference "sec:Graphics-Dialog"
30808 The difference is that only raster images are allowed, that means that
30809 PDF and EPS-images are not supported.
30812 \begin_layout Description
30813 XFig This template supports images created with the program
30816 \begin_inset CommandInset href
30819 target "http://en.wikipedia.org/wiki/Xfig"
30828 \begin_layout Standard
30829 \begin_inset Float table
30835 \begin_layout Plain Layout
30836 \begin_inset Caption
30838 \begin_layout Plain Layout
30839 \begin_inset CommandInset label
30841 name "tab:Comparison-of-the"
30845 Comparison of the date input methods.
30853 \begin_layout Plain Layout
30855 \begin_inset Tabular
30856 <lyxtabular version="3" rows="4" columns="4">
30858 <column alignment="center" valignment="top" width="0">
30859 <column alignment="center" valignment="top" width="0">
30860 <column alignment="center" valignment="top" width="0">
30861 <column alignment="center" valignment="top" width="0">
30863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30866 \begin_layout Plain Layout
30872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30875 \begin_layout Plain Layout
30878 External Material\SpecialChar \menuseparator
30884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30887 \begin_layout Plain Layout
30890 Insert\SpecialChar \menuseparator
30896 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30899 \begin_layout Plain Layout
30911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30914 \begin_layout Plain Layout
30920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30923 \begin_layout Plain Layout
30929 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30932 \begin_layout Plain Layout
30938 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30941 \begin_layout Plain Layout
30942 as TeX-Code inset box
30949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30952 \begin_layout Plain Layout
30958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30961 \begin_layout Plain Layout
30967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30970 \begin_layout Plain Layout
30976 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30979 \begin_layout Plain Layout
30987 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30990 \begin_layout Plain Layout
30996 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30999 \begin_layout Plain Layout
31005 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31008 \begin_layout Plain Layout
31014 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31017 \begin_layout Plain Layout
31036 \begin_layout Standard
31037 When you use the option
31049 dialog, only the path to the inserted file is shown in the output.
31050 \begin_inset Newline newline
31053 External material is displayed in LyX either as box like this:
31054 \begin_inset Graphics
31055 filename clipart/ExternalMaterialQt4.png
31057 scaleBeforeRotation
31061 or as image, depending on the setting in the
31064 \begin_inset space ~
31076 \begin_layout Standard
31083 manual explains how you can define your own templates.
31086 \begin_layout Section
31088 \begin_inset CommandInset label
31090 name "sec:Child-Documents"
31098 \begin_layout Plain Layout
31099 External Stuff ! Child Documents
31108 \begin_layout Plain Layout
31117 \begin_layout Standard
31118 Child documents are used when you have a long document consisting of several
31119 larger parts or sections.
31120 For maintenance it is often useful and sometimes even required to split
31121 the document in several files that can be revised separately.
31122 The different documents are then the so called child documents and a master
31123 document connects them to print the full document or parts of it.
31126 \begin_layout Standard
31127 Included documents are displayed in LyX as a box like this:
31128 \begin_inset Graphics
31129 filename clipart/ChildDocumentQt4.png
31131 scaleBeforeRotation
31135 To include child documents to a master document use the menu
31137 Insert\SpecialChar \menuseparator
31138 File\SpecialChar \menuseparator
31140 \begin_inset space ~
31146 A dialog pops up where you can choose between four include methods:
31149 \begin_layout Description
31150 Include You can include LyX and LaTeX-documents.
31159 dialog, the included documents will be opened in LyX in a new file tab
31160 so that you can modify it.
31161 \begin_inset Newline newline
31167 \begin_layout Standard
31168 Here is a child document inserted using
31173 \begin_inset CommandInset include
31174 LatexCommand include
31175 filename "DummyDocument1.lyx"
31182 \begin_layout Standard
31183 The section numbering includes the sections of the included files in the
31184 order they are inserted in the master document.
31185 The included example document has for example a subsection that is numbered
31186 as subsection of this section.
31187 Labels of included documents can be referenced: Subsection
31188 \begin_inset space ~
31192 \begin_inset CommandInset ref
31194 reference "sub:External-Subsection-1"
31201 \begin_layout Standard
31202 The preamble of the child document is ignored, only the preamble of the
31203 master document is used.
31204 Included documents are inserted starting on a new page and end with a page
31208 \begin_layout Standard
31209 With the LaTeX-command
31215 you can specify which included child documents are processed when the output
31217 This is useful when you are perhaps only working on a certain chapter of
31218 your large document as this saves compiling time.
31225 is inserted to the master document preamble.
31226 It takes a comma-separated list of the filenames as argument, e.g.
31229 \begin_layout Standard
31234 includeonly{chapter1,chapter5}
31237 \begin_layout Standard
31238 will only process the included files named
31239 \begin_inset Quotes eld
31243 \begin_inset Quotes erd
31247 \begin_inset Quotes eld
31251 \begin_inset Quotes erd
31255 \begin_inset Quotes eld
31259 \begin_inset Quotes erd
31265 \begin_layout Standard
31266 \begin_inset Note Greyedout
31269 \begin_layout Plain Layout
31274 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
31275 w the document in case that the child document uses another document class
31276 than the master document as this will lead to unexpected outputs.
31284 \begin_layout Description
31285 Input This method is very similar to the Include method.
31286 The differences are:
31290 \begin_layout Itemize
31291 Input files don't start with a new page and don't end with a page break.
31294 \begin_layout Itemize
31295 Input files can be previewed in LyX when
31298 \begin_inset space ~
31303 is enabled in LyX's preferences under
31306 \begin_inset space ~
31310 \begin_inset space ~
31313 feel\SpecialChar \menuseparator
31319 \begin_layout Itemize
31330 \begin_layout Standard
31331 Here is a child document inserted using
31336 \begin_inset CommandInset include
31338 filename "DummyDocument2.lyx"
31345 \begin_layout Description
31346 Verbatim With this method every text file can be included.
31347 The file is shown in the output with its source code, no command used in
31348 the text is invoked.
31349 You can use the option
31351 Mark spaces in output
31353 that displays the character
31354 \begin_inset Quotes eld
31361 \begin_layout Plain Layout
31371 \begin_inset Quotes erd
31374 for every space character in the source code.
31375 The difference to the method via the menu
31377 Insert\SpecialChar \menuseparator
31378 File\SpecialChar \menuseparator
31380 \begin_inset space ~
31385 is that the document content is not shown in LyX.
31388 \begin_layout Standard
31389 Here is a child document inserted as Verbatim:
31390 \begin_inset CommandInset include
31391 LatexCommand verbatiminput
31392 filename "DummyTextDocument.txt"
31397 \begin_inset VSpace bigskip
31400 Here is a child document inserted as Verbatim using the
31402 Mark spaces in output
31405 \begin_inset CommandInset include
31406 LatexCommand verbatiminput*
31407 filename "DummyTextDocument.txt"
31414 \begin_layout Standard
31415 \begin_inset VSpace bigskip
31421 \begin_layout Standard
31422 \begin_inset Note Greyedout
31425 \begin_layout Plain Layout
31430 As you can see in the examples above, the text of the documents included
31435 is not broken at the end of the document lines.
31443 \begin_layout Description
31444 Listings This type is described in chapter
31445 \begin_inset space ~
31449 \begin_inset CommandInset ref
31451 reference "cha:Program-Code-Listings"
31458 \begin_layout Standard
31459 \begin_inset Note Greyedout
31462 \begin_layout Plain Layout
31467 Including the same document twice in a document using different methods
31468 could cause LaTeX-problems.
31476 \begin_layout Chapter
31477 Program Code Listings
31478 \begin_inset CommandInset label
31480 name "cha:Program-Code-Listings"
31488 \begin_layout Plain Layout
31498 \begin_layout Plain Layout
31508 \begin_layout Plain Layout
31517 \begin_layout Standard
31518 To include and typeset program code you can use the
31522 inset that can be inserted via the menu
31524 Insert\SpecialChar \menuseparator
31536 \begin_layout Plain Layout
31537 LaTeX-packages ! listings
31542 provides a powerful and flexible way to insert program source code to your
31546 \begin_layout Standard
31547 When right-clicking on a listings inset a dialog pops up where you can set
31548 the listings format.
31551 \begin_layout Standard
31552 By default, a listing starts a new paragraph in the output.
31553 The placement option
31556 \begin_inset space ~
31561 prints the listing inline like this:
31562 \begin_inset listings
31563 lstparams "language={C++}"
31567 \begin_layout Plain Layout
31574 \begin_inset Newline newline
31581 creates a listings float where you can specify the placement options
31582 \begin_inset Quotes eld
31590 \begin_inset Quotes erd
31594 \begin_inset Quotes eld
31602 \begin_inset Quotes erd
31606 \begin_inset Quotes eld
31614 \begin_inset Quotes erd
31618 \begin_inset Quotes eld
31626 \begin_inset Quotes erd
31629 corresponding to the float placement options described in section
31630 \begin_inset space ~
31634 \begin_inset CommandInset ref
31636 reference "sec:Float-Placement"
31641 The placement options can be mixed and are inserted without any separation,
31643 \begin_inset space \thinspace{}
31647 \begin_inset space ~
31651 \begin_inset Quotes eld
31659 \begin_inset Quotes erd
31664 \begin_inset Quotes eld
31668 \begin_inset Quotes erd
31671 has sometimes no effect, but you don't need to use the
31675 option in this case as also non-float listings can have captions and be
31679 \begin_layout Standard
31680 You can add captions to listings with the menu
31682 Insert\SpecialChar \menuseparator
31686 Listings can be referenced like floats: Listing
31687 \begin_inset space ~
31691 \begin_inset CommandInset ref
31693 reference "lst:Example-Listing"
31700 \begin_layout Standard
31701 \begin_inset listings
31702 lstparams "language=Python"
31706 \begin_layout Plain Layout
31707 \begin_inset Caption
31709 \begin_layout Plain Layout
31710 \begin_inset CommandInset label
31712 name "lst:Example-Listing"
31716 Example Listing float
31721 # Example listing float
31724 \begin_layout Plain Layout
31728 \begin_layout Plain Layout
31729 'this is a python function'
31732 \begin_layout Plain Layout
31741 \begin_layout Standard
31742 When you have set a programming language in the listings dialog, the keywords
31743 of this language will be recognized and specially typeset in the output.
31744 In the example listings the Python keyword
31745 \begin_inset Quotes eld
31749 \begin_inset Quotes erd
31752 is recognized and printed bold in the output.
31755 \begin_layout Standard
31756 \begin_inset Note Greyedout
31759 \begin_layout Plain Layout
31764 If you don't get bold keywords when using typewriter fonts, your typewriter
31765 font probably doesn't provide a bold shape.
31766 In this case select a different one in the menu
31768 Document\SpecialChar \menuseparator
31769 Settings\SpecialChar \menuseparator
31781 provide bold shapes.)
31789 \begin_layout Standard
31793 \begin_inset space ~
31798 of the listings dialog you can specify the line numbering style.
31799 You can insert a number to specify which lines are numbered to the field
31805 When you insert e.g.
31807 \begin_inset Quotes eld
31811 \begin_inset Quotes erd
31814 , only every 3rd line will be numbered.
31817 \begin_layout Standard
31818 You can furthermore specify a range of lines, only these will then appear
31823 \begin_inset space ~
31828 should be used when you use national characters like the German umlauts
31830 \begin_inset Newline newline
31833 Here is an example listing with left line numbering, step
31834 \begin_inset Quotes eld
31838 \begin_inset Quotes erd
31842 \begin_inset Quotes eld
31846 \begin_inset Quotes erd
31850 \begin_inset Quotes eld
31854 \begin_inset space ~
31858 \begin_inset Quotes erd
31862 \begin_inset Quotes eld
31866 \begin_inset space ~
31870 \begin_inset space ~
31874 \begin_inset Quotes erd
31878 \begin_inset space \thinspace{}
31882 \begin_inset space \thinspace{}
31888 \begin_layout Standard
31889 \begin_inset listings
31890 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
31894 \begin_layout Plain Layout
31898 \begin_layout Plain Layout
31899 'this is a python function'
31902 \begin_layout Plain Layout
31906 \begin_layout Plain Layout
31910 \begin_layout Plain Layout
31911 'This is a German word: Tschüß'
31914 \begin_layout Plain Layout
31918 \begin_layout Plain Layout
31922 \begin_layout Plain Layout
31923 'this is a python function'
31926 \begin_layout Plain Layout
31935 \begin_layout Standard
31936 \begin_inset Note Greyedout
31939 \begin_layout Plain Layout
31944 Due to a bug in the
31948 package the line numbering is shifted by a line by every previous listing.
31949 That's the reason why the lines 2 and 5 are numbered in the above listing
31950 and not the lines 3 and 6.
31958 \begin_layout Standard
31959 \begin_inset VSpace bigskip
31965 \begin_layout Standard
31966 It is also possible to print lines from a file as listing.
31967 To do this, use the menu
31969 Insert\SpecialChar \menuseparator
31970 File\SpecialChar \menuseparator
31973 and choose the type
31981 \begin_layout Plain Layout
31982 The other child document types are described in section
31983 \begin_inset space ~
31987 \begin_inset CommandInset ref
31989 reference "sec:Child-Documents"
31998 In the child document dialog you can specify the listing parameters in
32000 To show a list of all available parameters, type in a question mark
32001 \begin_inset Quotes eld
32005 \begin_inset Quotes erd
32011 \begin_layout Standard
32012 To reference child document listings, write a label text into the corresponding
32013 field of the child document dialog.
32014 The label can then be referenced using the menu
32016 Insert\SpecialChar \menuseparator
32022 \begin_layout Standard
32024 \begin_inset space ~
32028 \begin_inset CommandInset ref
32030 reference "lst:file-listing"
32034 is an example for a listing of a file; there the lines 10
32035 \begin_inset space \thinspace{}
32039 \begin_inset space \thinspace{}
32042 15 of this LyX file are listed.
32045 \begin_layout Standard
32046 \begin_inset CommandInset include
32047 LatexCommand lstinputlisting
32048 filename "EmbeddedObjects.lyx"
32049 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
32056 \begin_layout Standard
32057 \begin_inset VSpace bigskip
32063 \begin_layout Standard
32064 Global listings settings can be set in the
32066 Document\SpecialChar \menuseparator
32067 Settings\SpecialChar \menuseparator
32071 To get there a list of available options, type in a question mark
32072 \begin_inset Quotes eld
32076 \begin_inset Quotes erd
32082 \begin_inset space ~
32090 \begin_layout Standard
32091 For more information about the
32095 package, we refer to its documentation
32096 \begin_inset CommandInset citation
32105 \begin_layout Standard
32106 \begin_inset Newpage newpage
32112 \begin_layout Chapter
32114 Units available in LyX
32118 \begin_layout Plain Layout
32125 \begin_inset CommandInset label
32127 name "cha:Units-available-in"
32134 \begin_layout Standard
32135 To understand the units described in this documentation, Table
32136 \begin_inset space ~
32140 \begin_inset CommandInset ref
32142 reference "tab:Units"
32146 explains all units available in LyX.
32149 \begin_layout Standard
32150 \begin_inset Float table
32156 \begin_layout Plain Layout
32157 \begin_inset Caption
32159 \begin_layout Plain Layout
32160 \begin_inset CommandInset label
32174 \begin_layout Plain Layout
32175 \begin_inset VSpace medskip
32181 \begin_layout Plain Layout
32183 \begin_inset Tabular
32184 <lyxtabular version="3" rows="20" columns="2">
32186 <column alignment="center" valignment="top" width="0">
32187 <column alignment="center" valignment="top" width="0">
32189 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32192 \begin_layout Plain Layout
32198 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32201 \begin_layout Plain Layout
32209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32212 \begin_layout Plain Layout
32218 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32221 \begin_layout Plain Layout
32229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32232 \begin_layout Plain Layout
32238 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32241 \begin_layout Plain Layout
32249 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32252 \begin_layout Plain Layout
32258 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32261 \begin_layout Plain Layout
32269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32272 \begin_layout Plain Layout
32278 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32281 \begin_layout Plain Layout
32283 \begin_inset space \thinspace{}
32287 \begin_inset space \thinspace{}
32297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32300 \begin_layout Plain Layout
32306 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32309 \begin_layout Plain Layout
32311 \begin_inset space \thinspace{}
32315 \begin_inset space \thinspace{}
32325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32328 \begin_layout Plain Layout
32334 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32337 \begin_layout Plain Layout
32338 scaled point (65536
32339 \begin_inset space \thinspace{}
32343 \begin_inset space \thinspace{}
32353 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32356 \begin_layout Plain Layout
32362 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32365 \begin_layout Plain Layout
32367 \begin_inset space \thinspace{}
32371 \begin_inset space \thinspace{}
32381 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32384 \begin_layout Plain Layout
32390 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32393 \begin_layout Plain Layout
32395 \begin_inset space \thinspace{}
32399 \begin_inset Formula $\approx$
32403 \begin_inset space \thinspace{}
32413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32416 \begin_layout Plain Layout
32422 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32425 \begin_layout Plain Layout
32427 \begin_inset space \thinspace{}
32431 \begin_inset space \thinspace{}
32441 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32444 \begin_layout Plain Layout
32450 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32453 \begin_layout Plain Layout
32454 % of original image width
32461 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32464 \begin_layout Plain Layout
32470 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32473 \begin_layout Plain Layout
32481 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32484 \begin_layout Plain Layout
32490 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32493 \begin_layout Plain Layout
32501 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32504 \begin_layout Plain Layout
32510 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32513 \begin_layout Plain Layout
32521 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32524 \begin_layout Plain Layout
32530 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32533 \begin_layout Plain Layout
32541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32544 \begin_layout Plain Layout
32550 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32553 \begin_layout Plain Layout
32561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32564 \begin_layout Plain Layout
32570 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32573 \begin_layout Plain Layout
32581 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32584 \begin_layout Plain Layout
32590 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32593 \begin_layout Plain Layout
32605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32608 \begin_layout Plain Layout
32614 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32617 \begin_layout Plain Layout
32629 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32632 \begin_layout Plain Layout
32638 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32641 \begin_layout Plain Layout
32643 \begin_inset space \thinspace{}
32647 \begin_inset space \thinspace{}
32668 \begin_layout Chapter
32669 Output File Formats with Graphics
32670 \begin_inset CommandInset label
32672 name "cha:Output-File-Formats"
32679 \begin_layout Section
32684 \begin_layout Plain Layout
32694 \begin_layout Plain Layout
32699 \begin_layout Plain Layout
32710 \begin_layout Plain Layout
32725 \begin_layout Standard
32726 This file type has the extension
32727 \begin_inset Quotes eld
32735 \begin_inset Quotes erd
32740 \begin_inset Quotes eld
32744 \begin_inset Quotes erd
32747 (DVI), because it is completely portable; you can move them from one machine
32748 to another without needing to do any sort of conversion.
32749 At the time when this file-format was developed, this was no matter of
32751 DVIs are used for quick previews and as pre-stage for other output formats,
32755 \begin_layout Standard
32756 \begin_inset Note Greyedout
32759 \begin_layout Plain Layout
32764 DVI-files doesn't contain images, they will only be a linked.
32769 So don't forget this, if you move your
32773 file to another computer.
32774 This property can also slow down your computer when you view the DVI.
32775 Because the DVI-viewer has to convert the image in the background to make
32776 it visible when you scroll in the DVI.
32777 So we recommend to use PDF for files with many images.
32780 \begin_layout Standard
32781 You can export your document to DVI by using the menu
32783 File\SpecialChar \menuseparator
32784 Export\SpecialChar \menuseparator
32788 You can view your document as DVI via the
32792 menu or by using the toolbar button
32793 \begin_inset Graphics
32794 filename ../images/buffer-view_dvi.png
32796 scaleBeforeRotation
32803 \begin_layout Section
32805 \begin_inset CommandInset label
32807 name "sec:PostScript"
32815 \begin_layout Plain Layout
32816 File Formats ! PostScript
32825 \begin_layout Plain Layout
32830 \begin_layout Plain Layout
32841 \begin_layout Plain Layout
32856 \begin_layout Standard
32857 This file type has the extension
32858 \begin_inset Quotes eld
32866 \begin_inset Quotes erd
32870 PostScript was developed by the company
32874 as printer language.
32875 The file contains therefore commands that the printer uses to print the
32877 PostScript can be seen as
32878 \begin_inset Quotes eld
32881 programming language
32882 \begin_inset Quotes erd
32885 ; you can calculate with it and draw diagrams and images
32889 \begin_layout Plain Layout
32890 If you are interested to learn more about this, have a look at the LaTeX-package
32896 \begin_inset CommandInset citation
32908 Due to this ability, the files are often bigger than PDFs.
32911 \begin_layout Standard
32912 PostScript can only contain images in the format
32913 \begin_inset Quotes eld
32916 Encapsulated PostScript
32917 \begin_inset Quotes erd
32920 (EPS, file extension
32921 \begin_inset Quotes eld
32929 \begin_inset Quotes erd
32933 As LyX allows you to use any known image format in your document, it has
32934 to convert images in the background to EPS.
32935 If you have e.g 50 images in your document, LyX has to do 50 conversions
32936 whenever you view or export your document.
32937 This will slow down your work flow with LyX drastically.
32938 So if you plan to use PostScript, you can insert your images directly as
32939 EPS to avoid this problem.
32942 \begin_layout Standard
32943 You can export your document to PostScript using the menu
32945 File\SpecialChar \menuseparator
32946 Export\SpecialChar \menuseparator
32950 You can view your document as PostScript via the
32954 menu or by using the toolbar button
32955 \begin_inset Graphics
32956 filename ../images/buffer-view_ps.png
32958 scaleBeforeRotation
32965 \begin_layout Section
32967 \begin_inset CommandInset label
32977 \begin_layout Plain Layout
32987 \begin_layout Plain Layout
32996 \begin_layout Standard
32997 This file type has the extension
32998 \begin_inset Quotes eld
33006 \begin_inset Quotes erd
33011 \begin_inset Quotes eld
33014 Portable Document Format
33015 \begin_inset Quotes erd
33018 (PDF) is developed by
33022 as derivative from PostScript.
33023 It is more compressed and it uses much less commands than PostScript.
33025 \begin_inset Quotes eld
33029 \begin_inset Quotes erd
33032 implies, it can be processed at any computer system and the printed output
33033 looks exactly the same.
33036 \begin_layout Standard
33037 PDF can contain images in its own PDF format, in the format
33038 \begin_inset Quotes eld
33041 Joint Photographic Experts Group
33042 \begin_inset Quotes erd
33045 (JPG, file extension
33046 \begin_inset Quotes eld
33054 \begin_inset Quotes erd
33058 \begin_inset Quotes eld
33066 \begin_inset Quotes erd
33069 ), and in the format
33070 \begin_inset Quotes eld
33073 Portable Network Graphics
33074 \begin_inset Quotes erd
33077 (PNG, file extension
33078 \begin_inset Quotes eld
33086 \begin_inset Quotes erd
33090 Nevertheless you can use any other image format, because LyX converts them
33091 in the background to one of these formats.
33092 But as described in the section about PostScript, the image conversion
33093 will slow down your work flow.
33094 So it is recommended to use images in one of the three mentioned formats.
33097 \begin_layout Standard
33098 You can export your document to PDF via the menu
33100 File\SpecialChar \menuseparator
33103 in three different ways:
33106 \begin_layout Description
33108 \begin_inset space ~
33111 (ps2pdf) This uses the program
33115 that creates a PDF from a PostScript-version of your file.
33116 The PostScript-version is produced by the program
33120 which uses a DVI-version as intermediate step.
33121 So this export variant consist of three conversions.
33124 \begin_layout Description
33126 \begin_inset space ~
33129 (dvipdfm) This uses the program
33133 that converts your file in the background to DVI and in a second step to
33137 \begin_layout Description
33139 \begin_inset space ~
33142 (pdflatex) This uses the program
33146 that converts your file directly to PDF.
33149 \begin_layout Standard
33150 It is recommended to use
33153 \begin_inset space ~
33162 supports all features of actual PDF-versions, is quick and works stable
33168 is not under development and therefore a bit outdated.
33171 \begin_layout Standard
33172 You can view your document as PDF via the
33176 menu or by using the toolbar button
33177 \begin_inset Graphics
33178 filename ../images/buffer-view_pdf2.png
33180 scaleBeforeRotation
33191 \begin_inset space ~
33199 \begin_layout Chapter
33200 Explanation of Equation
33201 \begin_inset space ~
33205 \begin_inset CommandInset ref
33212 \begin_inset CommandInset label
33214 name "cha:Explanation-of-Equation"
33221 \begin_layout Standard
33227 \begin_inset Formula $W_{\mathrm{tot\, n}}$
33230 can be calculated to
33233 \begin_layout Standard
33234 \begin_inset Formula \begin{equation}
33235 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}
33242 \begin_layout Standard
33244 \begin_inset Formula $W_{g\, n}$
33247 is the given width of all cells.
33254 is the LaTeX-length between the cell text and the cell border, its default
33256 \begin_inset space \thinspace{}
33266 is the thickness of the cell border line, the default is 0.4
33267 \begin_inset space \thinspace{}
33273 \begin_layout Standard
33275 \begin_inset space ~
33279 \begin_inset CommandInset ref
33281 reference "eq:Wtot_n"
33285 , the total width of a multicolumn
33286 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
33292 \begin_layout Standard
33293 \begin_inset Formula \begin{equation}
33294 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
33301 \begin_layout Standard
33302 By setting equation
33303 \begin_inset space ~
33307 \begin_inset CommandInset ref
33309 reference "eq:Wtot_n"
33314 \begin_inset CommandInset ref
33316 reference "eq:Wtot_mult"
33320 equal we can calculate the needed given width
33321 \begin_inset Formula $W_{g\, n}$
33328 columns are spanned, so that each column has a total width of
33329 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
33335 \begin_layout Standard
33336 \begin_inset Formula \begin{equation}
33337 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
33344 \begin_layout Bibliography
33345 \begin_inset CommandInset bibitem
33346 LatexCommand bibitem
33347 key "latexcompanion"
33351 Frank Mittelbach and Michel Goossens:
33353 The LaTeX Companion Second Edition.
33356 Addison-Wesley, 2004
33359 \begin_layout Bibliography
33360 \begin_inset CommandInset bibitem
33361 LatexCommand bibitem
33366 Helmut Kopka and Patrick W.
33369 A Guide to LaTeX Fourth Edition.
33372 Addison-Wesley, 2003
33375 \begin_layout Bibliography
33376 \begin_inset CommandInset bibitem
33377 LatexCommand bibitem
33384 LaTeX: A Document Preparation System.
33387 Addison-Wesley, second edition, 1994
33390 \begin_layout Bibliography
33391 \begin_inset CommandInset bibitem
33392 LatexCommand bibitem
33397 Documentation of the LaTeX-package
33400 \begin_inset CommandInset href
33403 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
33413 \begin_layout Plain Layout
33414 LaTeX-packages ! booktabs
33422 \begin_layout Bibliography
33423 \begin_inset CommandInset bibitem
33424 LatexCommand bibitem
33429 Documentation of the LaTeX-package
33432 \begin_inset CommandInset href
33435 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
33445 \begin_layout Plain Layout
33446 LaTeX-packages ! caption
33454 \begin_layout Bibliography
33455 \begin_inset CommandInset bibitem
33456 LatexCommand bibitem
33461 Documentation of the LaTeX-package
33464 \begin_inset CommandInset href
33467 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
33477 \begin_layout Plain Layout
33478 LaTeX-packages ! endfloat
33486 \begin_layout Bibliography
33487 \begin_inset CommandInset bibitem
33488 LatexCommand bibitem
33493 Documentation of the LaTeX-package
33496 \begin_inset CommandInset href
33499 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
33509 \begin_layout Plain Layout
33510 LaTeX-packages ! wrapfig
33514 \begin_layout Plain Layout
33522 \begin_layout Plain Layout
33533 \begin_layout Plain Layout
33549 \begin_layout Plain Layout
33560 \begin_layout Plain Layout
33575 \begin_layout Bibliography
33576 \begin_inset CommandInset bibitem
33577 LatexCommand bibitem
33582 Documentation of the LaTeX-package
33585 \begin_inset CommandInset href
33588 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
33598 \begin_layout Plain Layout
33599 LaTeX-packages ! footmisc
33607 \begin_layout Bibliography
33608 \begin_inset CommandInset bibitem
33609 LatexCommand bibitem
33614 Documentation of the LaTeX-package
33617 \begin_inset CommandInset href
33620 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
33630 \begin_layout Plain Layout
33631 LaTeX-packages ! hyperref
33639 \begin_layout Bibliography
33640 \begin_inset CommandInset bibitem
33641 LatexCommand bibitem
33646 Documentation of the LaTeX-package
33649 \begin_inset CommandInset href
33652 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
33662 \begin_layout Plain Layout
33663 LaTeX-packages ! hyperref
33671 \begin_layout Bibliography
33672 \begin_inset CommandInset bibitem
33673 LatexCommand bibitem
33678 Documentation of the LaTeX-package
33681 \begin_inset CommandInset href
33684 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
33694 \begin_layout Plain Layout
33695 LaTeX-packages ! koma-script
33703 \begin_layout Bibliography
33704 \begin_inset CommandInset bibitem
33705 LatexCommand bibitem
33710 Documentation of the LaTeX-package
33713 \begin_inset CommandInset href
33716 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
33726 \begin_layout Plain Layout
33727 LaTeX-packages ! listings
33735 \begin_layout Bibliography
33736 \begin_inset CommandInset bibitem
33737 LatexCommand bibitem
33742 Documentation of the LaTeX-package
33745 \begin_inset CommandInset href
33748 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
33758 \begin_layout Plain Layout
33759 LaTeX-packages ! marginnote
33767 \begin_layout Bibliography
33768 \begin_inset CommandInset bibitem
33769 LatexCommand bibitem
33774 Web page of the LaTeX-package
33777 \begin_inset CommandInset href
33780 target "http://tug.org/PSTricks/"
33790 \begin_layout Plain Layout
33791 LaTeX-packages ! PSTricks
33799 \begin_layout Bibliography
33800 \begin_inset CommandInset bibitem
33801 LatexCommand bibitem
33806 Documentation of the LaTeX-package
33809 \begin_inset CommandInset href
33812 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
33822 \begin_layout Plain Layout
33823 LaTeX-packages ! sidecap
33831 \begin_layout Bibliography
33832 \begin_inset CommandInset bibitem
33833 LatexCommand bibitem
33839 \begin_inset CommandInset href
33842 target "http://wiki.lyx.org/LyX/NewInLyX16"
33846 about new features in
33853 \begin_layout Standard
33854 \begin_inset CommandInset index_print
33855 LatexCommand printindex
33862 \begin_layout Standard
33863 \begin_inset FloatList figure
33870 \begin_layout Standard
33871 \begin_inset FloatList table
33878 \begin_layout Standard
33879 \begin_inset FloatList algorithm