1 #LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
11 % set fonts for nicer pdf view
12 \IfFileExists{lmodern.sty}
13 {\usepackage{lmodern}}{}
15 \fi % end if pdflatex is used
17 % that links to image floats jumps
18 % to the beginning of the float and
20 \usepackage[figure]{hypcap}
22 % the pages of the TOC is numbered roman
23 % and a PDF-bookmark for the TOC is added
24 \let\myTOC\tableofcontents
25 \renewcommand\tableofcontents{%
27 \pdfbookmark[1]{\contentsname}{}
31 % provides caption formatting
32 \usepackage[labelfont={bf,sf}, tableposition=top]{caption}[2004/07/16]
34 % provides commands to set caption
35 % beside tables/images
38 \newcommand{\TabBesBeg}{%
40 \let\MyEndtable\endtable
41 \renewenvironment{table}{\begin{SCtable}}{\end{SCtable}}}
43 \newcommand{\TabBesEnd}{%
45 \let\endtable\MyEndtable}
47 \newcommand{\FigBesBeg}{%
49 \let\MyEndfigure\endfigure
50 \renewenvironment{figure}{\begin{SCfigure}}{\end{SCfigure}}}
52 \newcommand{\FigBesEnd}{%
54 \let\endfigure\MyEndfigure}
56 % enables calculation of values,
59 % provides special table cell alignments
62 % increase the bottom float placement fraction
63 \renewcommand{\bottomfraction}{0.5}
65 % avoids that floats are placed before their
66 % corresponding section starts
67 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
69 % speed up the longtable calculation
70 \setcounter{LTchunksize}{100}
72 % used for scaled and rotated boxes
73 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
75 % used for colored tables
76 \@ifundefined{textcolor}
77 {\usepackage{color}}{}
78 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
79 \definecolor{lightgrey}{gray}{0.8}
81 % check for package colortbl
82 % used for colored table cells
84 \IfFileExists{colortbl.sty}
85 {\usepackage{colortbl}
86 \setboolean{colortbl}{true}}
87 {\setboolean{colortbl}{false}}
91 %\renewcommand{\multirowsetup}{\centering}
93 % used for book-style tables
96 % used to have extra space in table cells
97 \@ifundefined{extrarowheight}
98 {\usepackage{array}}{}
99 \setlength{\extrarowheight}{2pt}
101 % used for customized tables
104 {>{\centering\hspace{0pt}}m{#1}}
107 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
110 {>{\columncolor{#1}\hspace{0pt}}c}
112 \newcolumntype{V}{!{\vrule width 1.5pt}}
114 \newcolumntype{W}{!{\color{green}\vline}}
117 % insert additional vertical space of
118 % 1.5 mm between footnotes
120 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
122 % number algorithm floats within chapters
123 \numberwithin{algorithm}{chapter}
125 % redefine the greyed out note
126 \renewenvironment{lyxgreyedout}
127 {\textcolor{blue}\bgroup}{\egroup}
129 % ------------------------------------
130 % used to check for needed LaTeX packages
133 % check for package arydshln
134 % used for tables with dashed lines
135 \newboolean{arydshln}
136 \IfFileExists{arydshln.sty}
137 {\usepackage{arydshln}
138 \setboolean{arydshln}{true}}
139 {\setboolean{arydshln}{false}}
141 % check for package marginnote
142 % used for margin notes
143 \newboolean{marginnote}
144 \IfFileExists{marginnote.sty}
145 {\usepackage{marginnote}
146 \let\marginpar\marginnote
147 \setboolean{marginnote}{true}}
148 {\setboolean{marginnote}{false}}
150 % check for package sidecap
151 % used for captions on the side
153 \IfFileExists{sidecap.sty}
154 {\usepackage{sidecap}
155 \let\marginpar\marginnote
156 \setboolean{sidecap}{true}}
157 {\setboolean{sidecap}{false}}
159 % redefine the \LyX macro for PDF bookmarks
160 \def\LyX{\texorpdfstring{%
161 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
164 \options fleqn,liststotoc,bibtotoc,idxtotoc,BCOR7.5mm,titlepage,tablecaptionabove
169 \font_typewriter default
170 \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 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
553 In this tab you can modify the appearance of the image within LyX and LaTeX
554 experts can specify additional LaTeX options.
555 \begin_inset Newline newline
566 makes the image appear in the output only as a frame with the size of the
568 \begin_inset Newline newline
587 option only affects zipped EPS-graphics, e.
588 \begin_inset space \thinspace{}
600 When the option is used the images will not be unzipped on export, since
601 LaTeX can handle them as they are.
602 \begin_inset Newline newline
605 Zipped EPS-graphics are useful to save disk space when you choose PostScript
606 as output format, see appendix
611 \begin_inset CommandInset ref
613 reference "sec:PostScript"
618 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
620 \begin_inset Newline newline
628 \begin_inset Newline newline
633 zgrep %%Bounding x.eps.gz > x.eps.bb
636 \begin_inset Newline newline
639 The second command creates the bounding box file
640 \begin_inset Quotes eld
644 \begin_inset Quotes erd
647 that is needed by LaTeX for zipped graphics.
650 \begin_layout Standard
651 \begin_inset VSpace bigskip
657 \begin_layout Standard
658 This is an example image in EPS format
662 \begin_layout Plain Layout
663 Image formats are explained in section
668 \begin_inset CommandInset ref
670 reference "sec:Image-Formats"
679 within a separate, horizontally centered paragraph:
682 \begin_layout Standard
684 \begin_inset Graphics
685 filename clipart/mobius.eps
695 \begin_layout Standard
696 This is the same image like the one above but in draft mode:
699 \begin_layout Standard
701 \begin_inset Graphics
702 filename clipart/mobius.eps
713 \begin_layout Section
715 \begin_inset CommandInset label
717 name "sec:Figure-Floats"
725 \begin_layout Plain Layout
735 \begin_layout Plain Layout
744 \begin_layout Standard
745 For general explanations about floats, have a look at section
750 \begin_inset CommandInset ref
752 reference "sec:FloatIntroduction"
759 \begin_layout Standard
761 \begin_inset Graphics
762 filename ../images/float-insert_figure.png
770 Insert\SpecialChar \menuseparator
771 Float\SpecialChar \menuseparator
774 inserts a float with a caption that has the label
775 \begin_inset Quotes eld
783 \begin_inset Quotes erd
786 (# is the actual number).
787 You can insert the image above the caption, like in Figure
792 \begin_inset CommandInset ref
794 reference "fig:kill-plat"
798 or below the caption, like in Figure
803 \begin_inset CommandInset ref
805 reference "fig:escher"
810 More about the caption placement is described in section
815 \begin_inset CommandInset ref
817 reference "sec:Caption-Placement"
824 \begin_layout Standard
825 \begin_inset Float figure
830 \begin_layout Plain Layout
832 \begin_inset Graphics
833 filename clipart/platypus.eps
843 \begin_layout Plain Layout
846 \begin_layout Plain Layout
847 \begin_inset CommandInset label
853 A severely distorted platypus in a float.
866 \begin_layout Standard
867 \begin_inset Float figure
872 \begin_layout Plain Layout
875 \begin_layout Plain Layout
876 \begin_inset CommandInset label
891 \begin_layout Plain Layout
893 \begin_inset Graphics
894 filename clipart/escher-lsd.eps
909 \begin_layout Standard
913 \begin_layout Plain Layout
914 References ! to Figures
924 \begin_inset CommandInset ref
926 reference "fig:kill-plat"
931 \begin_inset CommandInset ref
933 reference "fig:escher"
937 are examples of referenced figures.
938 Figures can be referenced in the text by referencing their label.
939 To do this insert a label in the caption using the menu
941 Insert\SpecialChar \menuseparator
944 or the toolbar button
945 \begin_inset Graphics
946 filename ../images/label-insert.png
953 You can now refer to the label using the menu
955 Insert\SpecialChar \menuseparator
962 or the toolbar button
963 \begin_inset Graphics
964 filename ../images/dialog-show-new-inset_ref.png
971 It is important to use references to floats, rather than using vague references
973 \begin_inset Quotes eld
977 \begin_inset Quotes erd
980 , because as LaTeX will reposition the floats in the final document, it
982 \begin_inset Quotes eld
986 \begin_inset Quotes erd
990 \begin_inset Newline newline
993 Referencing is explained in detail in section
998 \begin_inset CommandInset ref
1000 reference "sec:Referencing-Floats"
1007 \begin_layout Standard
1008 Normally only one image is inserted to a figure float, but sometimes you
1009 might want to use two images with separate subcaptions.
1010 This can be done by inserting image floats into existing image floats.
1011 Note that only the main caption of the float is added to the List of Figures.
1013 \begin_inset space ~
1017 \begin_inset CommandInset ref
1019 reference "fig:Two-distorted-images"
1023 is an example of a figure float with two images set side by side.
1024 You can also set the images one below the other.
1026 \begin_inset space ~
1030 \begin_inset CommandInset ref
1032 reference "fig:Undefinable-structure"
1037 \begin_inset CommandInset ref
1039 reference "fig:A-Platypus"
1046 \begin_layout Standard
1047 \begin_inset Float figure
1052 \begin_layout Plain Layout
1053 \begin_inset space \hfill{}
1057 \begin_inset Float figure
1062 \begin_layout Plain Layout
1063 \begin_inset Caption
1065 \begin_layout Plain Layout
1066 \begin_inset CommandInset label
1068 name "fig:Undefinable-structure"
1072 Undefinable structure.
1080 \begin_layout Plain Layout
1081 \begin_inset Graphics
1082 filename clipart/escher-lsd.eps
1094 \begin_inset space \hfill{}
1098 \begin_inset Float figure
1103 \begin_layout Plain Layout
1104 \begin_inset Caption
1106 \begin_layout Plain Layout
1107 \begin_inset CommandInset label
1109 name "fig:A-Platypus"
1121 \begin_layout Plain Layout
1122 \begin_inset Graphics
1123 filename clipart/platypus.eps
1136 \begin_inset space \hfill{}
1142 \begin_layout Plain Layout
1143 \begin_inset Caption
1145 \begin_layout Plain Layout
1146 \begin_inset CommandInset label
1148 name "fig:Two-distorted-images"
1152 Two distorted images.
1165 \begin_layout Section
1167 \begin_inset CommandInset label
1169 name "sec:Image-Formats"
1177 \begin_layout Plain Layout
1187 \begin_layout Plain Layout
1188 Figures ! Image Formats
1196 \begin_layout Standard
1197 You can insert images in any known file format.
1198 But as explained in appendix
1199 \begin_inset space ~
1203 \begin_inset CommandInset ref
1205 reference "cha:Output-File-Formats"
1209 , every output document format allows only a few image formats.
1210 LyX uses therefore the program
1214 in the background to convert the images to the right format.
1215 To increase your work flow by avoiding these conversions in the background,
1216 you can use only the image formats that can directly be embedded in the
1218 The output file formats are explained in appendix
1219 \begin_inset space ~
1223 \begin_inset CommandInset ref
1225 reference "cha:Output-File-Formats"
1232 \begin_layout Standard
1233 Similar to fonts there are two types of image formats:
1236 \begin_layout Description
1238 \begin_inset space ~
1241 images consist of pixel values, often in a compressed form.
1242 They are therefore not fully scalable and look pixeled in large zooms.
1243 Well-known bitmap image formats are
1244 \begin_inset Quotes eld
1247 Graphics Interchange Format
1248 \begin_inset Quotes erd
1251 (GIF, file extension
1252 \begin_inset Quotes eld
1260 \begin_inset Quotes erd
1267 \begin_layout Plain Layout
1272 \begin_layout Plain Layout
1283 \begin_layout Plain Layout
1296 \begin_inset Quotes eld
1299 Portable Network Graphics
1300 \begin_inset Quotes erd
1303 (PNG, file extension
1304 \begin_inset Quotes eld
1312 \begin_inset Quotes erd
1319 \begin_layout Plain Layout
1324 \begin_layout Plain Layout
1335 \begin_layout Plain Layout
1348 \begin_inset Quotes eld
1351 Joint Photographic Experts Group
1352 \begin_inset Quotes erd
1355 (JPG, file extension
1356 \begin_inset Quotes eld
1364 \begin_inset Quotes erd
1368 \begin_inset Quotes eld
1376 \begin_inset Quotes erd
1383 \begin_layout Plain Layout
1388 \begin_layout Plain Layout
1399 \begin_layout Plain Layout
1414 \begin_layout Description
1416 \begin_inset space ~
1419 images consist of vectors and can therefore be scaled to any size without
1421 The scaling ability is necessary if you want to create presentations, because
1422 presentations are always scaled by the video projector.
1423 Scaling is also useful for online documents to let the user zoom into diagrams.
1424 \begin_inset Newline newline
1427 Well-known scalable image formats are
1428 \begin_inset Quotes eld
1431 Scalable Vector Graphics
1432 \begin_inset Quotes erd
1435 (SVG, file extension
1436 \begin_inset Quotes eld
1444 \begin_inset Quotes erd
1451 \begin_layout Plain Layout
1456 \begin_layout Plain Layout
1467 \begin_layout Plain Layout
1480 \begin_inset Quotes eld
1483 Encapsulated PostScript
1484 \begin_inset Quotes erd
1487 (EPS, file extension
1488 \begin_inset Quotes eld
1496 \begin_inset Quotes erd
1503 \begin_layout Plain Layout
1508 \begin_layout Plain Layout
1519 \begin_layout Plain Layout
1532 \begin_inset Quotes eld
1535 Portable Document Format
1536 \begin_inset Quotes erd
1539 (PDF, file extension
1540 \begin_inset Quotes eld
1548 \begin_inset Quotes erd
1555 \begin_layout Plain Layout
1562 \begin_inset Quotes eld
1566 \begin_inset Quotes erd
1569 (WMF, file extension
1570 \begin_inset Quotes eld
1578 \begin_inset Quotes erd
1585 \begin_layout Plain Layout
1590 \begin_layout Plain Layout
1601 \begin_layout Plain Layout
1615 \begin_inset Quotes eld
1619 \begin_inset Quotes erd
1622 , because you can convert any bitmap image to a PDF or EPS-image and the
1623 result will still be a bitmap image.
1624 In this cases only a header with the image properties is added to the original
1629 \begin_layout Plain Layout
1630 In the case of PDF, the original image is additionally compressed.
1636 The PDF-files generated by
1640 are for example bitmap images.
1643 \begin_layout Standard
1644 Normally it is not possible to convert a bitmap image into a scalable one,
1646 Only the image formats PDF and EPS can directly be embedded to PDF and
1647 PostScript output files, respectively.
1648 SVG and WMF-images are recalculated to bitmaps when the output file is
1649 generated because there is currently no adequate WMF/SVG
1650 \begin_inset Formula $\to$
1653 PDF/EPS converter available.
1656 \begin_layout Chapter
1658 \begin_inset CommandInset label
1668 \begin_layout Plain Layout
1677 \begin_layout Section
1682 \begin_layout Plain Layout
1683 Table ! Introduction
1691 \begin_layout Standard
1692 You can insert a table using either the toolbar button
1693 \begin_inset Graphics
1694 filename ../images/tabular-insert.png
1702 Insert\SpecialChar \menuseparator
1706 The toolbar button offers you a graphical selection: Move the mouse to
1707 set the column/row number of the table that should be created and then
1708 press a mouse button.
1709 When you use the menu to create a table, a dialog will appear, asking you
1710 for the number of rows and columns.
1711 \begin_inset Newline newline
1714 The default table has lines around any cell and the first row appears separated
1715 from the rest of the table.
1716 This separation occurs due to a double line: The cells of the first row
1717 have a line below them and the cells of the second row have a line above
1719 Here is an example table:
1722 \begin_layout Standard
1724 \begin_inset Tabular
1725 <lyxtabular version="3" rows="4" columns="4">
1727 <column alignment="center" valignment="top" width="0">
1728 <column alignment="center" valignment="top" width="0">
1729 <column alignment="center" valignment="top" width="0">
1730 <column alignment="center" valignment="top" width="0">
1732 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1735 \begin_layout Plain Layout
1741 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1744 \begin_layout Plain Layout
1759 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1762 \begin_layout Plain Layout
1768 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1771 \begin_layout Plain Layout
1779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1782 \begin_layout Plain Layout
1797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1800 \begin_layout Plain Layout
1806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1809 \begin_layout Plain Layout
1815 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1818 \begin_layout Plain Layout
1826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1829 \begin_layout Plain Layout
1844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1847 \begin_layout Plain Layout
1853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1856 \begin_layout Plain Layout
1862 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1865 \begin_layout Plain Layout
1873 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1876 \begin_layout Plain Layout
1891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1894 \begin_layout Plain Layout
1900 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1903 \begin_layout Plain Layout
1909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1912 \begin_layout Plain Layout
1926 \begin_layout Section
1931 \begin_layout Plain Layout
1940 \begin_layout Standard
1941 You can alter a table by clicking on it with the right mouse button, which
1942 brings up the table dialog.
1943 Here you can adjust the settings of that cell and row/column respectively
1944 where the cursor is currently placed.
1945 Most of the dialog options also work on selections.
1946 This means if you select more cells, columns or rows, the action is done
1947 for the whole selection.
1948 Note that there is a difference between selecting the
1952 of the cell, and the cell itself.
1953 You can alter tables with the following tabs of the table dialog:
1956 \begin_layout Description
1960 \begin_inset space ~
1965 Here you can set the horizontal alignment and the width of the current
1967 When you have set a width you can also adjust the vertical alignment of
1969 A given width will allow the cell to have line breaks and multiple paragraphs
1970 of text, see section
1971 \begin_inset space ~
1975 \begin_inset CommandInset ref
1977 reference "sub:Multiple-Lines-in"
1982 If you set no width, the column is as wide as their widest cell content
1984 \begin_inset Newline newline
1987 Furthermore, you can mark one or multiple cells of one row as a multicolumn
1989 \begin_inset space ~
1993 \begin_inset CommandInset ref
1995 reference "sub:Multicolumns"
2000 \begin_inset Newline newline
2003 The rotate check boxes rotates the current cell, a selection, or the whole
2004 table counter-clockwise by 90°.
2005 The rotation is not shown within LyX, only in the output.
2006 \begin_inset Newline newline
2010 \begin_inset Note Greyedout
2013 \begin_layout Plain Layout
2018 Not all DVI-viewers are able to display rotations.
2024 \begin_inset Newline newline
2027 It is also possible to enter a LaTeX-argument which is needed for special
2028 table formattings, see section
2029 \begin_inset space ~
2033 \begin_inset CommandInset ref
2035 reference "sub:Multicolumn-Calculations"
2040 \begin_inset CommandInset ref
2042 reference "sec:Colored-Tables"
2049 \begin_layout Description
2054 In this tab you can add and delete border lines for the current row/column.
2055 \begin_inset Newline newline
2058 Using the style option
2062 will convert the table to a formal table as described in section
2063 \begin_inset space ~
2067 \begin_inset CommandInset ref
2069 reference "sec:Formal-Tables"
2074 \begin_inset Newline newline
2077 You can also add here space to table rows as decribed in section
2078 \begin_inset space ~
2082 \begin_inset CommandInset ref
2084 reference "sub:Row-Spacing"
2091 \begin_layout Description
2096 This tab is to make a table a so called
2097 \begin_inset Quotes eld
2105 \begin_inset Quotes erd
2108 that can run over several pages.
2110 \begin_inset space ~
2114 \begin_inset CommandInset ref
2116 reference "sec:Longtables"
2121 \begin_inset CommandInset ref
2123 reference "sec:Special-Longtable-Issues"
2127 describe the longtable features in detail.
2130 \begin_layout Standard
2131 When the table toolbar is opened, you can move the cursor with the arrow
2132 keys from cell to cell and the property of the current cell will immediately
2133 be displayed in the dialog.
2136 \begin_layout Section
2141 \begin_layout Plain Layout
2150 \begin_layout Standard
2151 The table toolbar is an alternative to the table dialog to be able to alter
2153 It should normally appear at the bottom of LyX's main window when the cursor
2155 You can alternatively switch it on to appear always, by right-clicking
2156 in LyX's main menu bar.
2159 \begin_layout Standard
2160 The toolbar has the following icons:
2163 \begin_layout Labeling
2164 \labelwidthstring 00.00.0000
2165 \begin_inset Graphics
2166 filename ../images/tabular-feature_append-row.png
2171 adds a row below the current cell or selection
2174 \begin_layout Labeling
2175 \labelwidthstring 00.00.0000
2176 \begin_inset Graphics
2177 filename ../images/tabular-feature_append-column.png
2182 adds a column right beside the current cell or selection
2185 \begin_layout Labeling
2186 \labelwidthstring 00.00.0000
2187 \begin_inset Graphics
2188 filename ../images/tabular-feature_delete-row.png
2193 deletes the current row or selection
2196 \begin_layout Labeling
2197 \labelwidthstring 00.00.0000
2198 \begin_inset Graphics
2199 filename ../images/tabular-feature_delete-column.png
2204 deletes the current column or selection
2207 \begin_layout Labeling
2208 \labelwidthstring 00.00.0000
2209 \begin_inset Graphics
2210 filename ../images/tabular-feature_toggle-line-top.png
2215 adds a line at the top of the current cell / row or of a selection
2218 \begin_layout Labeling
2219 \labelwidthstring 00.00.0000
2220 \begin_inset Graphics
2221 filename ../images/tabular-feature_toggle-line-bottom.png
2226 adds a line at the bottom of the current cell / row or of a selection
2229 \begin_layout Labeling
2230 \labelwidthstring 00.00.0000
2231 \begin_inset Graphics
2232 filename ../images/tabular-feature_toggle-line-left.png
2237 adds a line at the left side of the current cell / row or of a selection
2240 \begin_layout Labeling
2241 \labelwidthstring 00.00.0000
2242 \begin_inset Graphics
2243 filename ../images/tabular-feature_toggle-line-right.png
2248 adds a line at the right side of the current cell / row or of a selection
2251 \begin_layout Labeling
2252 \labelwidthstring 00.00.0000
2253 \begin_inset Graphics
2254 filename ../images/tabular-feature_set-all-lines.png
2259 adds lines around the current or selected cells - if the current cell no
2260 multicolumn this also affects the current row and column
2263 \begin_layout Labeling
2264 \labelwidthstring 00.00.0000
2265 \begin_inset Graphics
2266 filename ../images/tabular-feature_unset-all-lines.png
2271 deletes all lines of the current or selected cells - if the current cell
2272 no 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_align-left.png
2283 left-aligns the content of the current cell / column
2286 \begin_layout Labeling
2287 \labelwidthstring 00.00.0000
2288 \begin_inset Graphics
2289 filename ../images/tabular-feature_align-center.png
2294 centers the content of the current cell / column horizontally
2297 \begin_layout Labeling
2298 \labelwidthstring 00.00.0000
2299 \begin_inset Graphics
2300 filename ../images/tabular-feature_align-right.png
2305 right-aligns the content of the current cell / column
2308 \begin_layout Labeling
2309 \labelwidthstring 00.00.0000
2310 \begin_inset Graphics
2311 filename ../images/tabular-feature_valign-top.png
2316 aligns the content of the current cell vertically to the top
2319 \begin_layout Labeling
2320 \labelwidthstring 00.00.0000
2321 \begin_inset Graphics
2322 filename ../images/tabular-feature_valign-middle.png
2327 centers the content of the current cell vertically
2330 \begin_layout Labeling
2331 \labelwidthstring 00.00.0000
2332 \begin_inset Graphics
2333 filename ../images/tabular-feature_valign-bottom.png
2338 aligns the content of the current cell vertically to the bottom
2341 \begin_layout Labeling
2342 \labelwidthstring 00.00.0000
2343 \begin_inset Graphics
2344 filename ../images/tabular-feature_set-rotate-cell.png
2349 rotates the current cell or selection counter-clockwise by 90°
2352 \begin_layout Labeling
2353 \labelwidthstring 00.00.0000
2354 \begin_inset Graphics
2355 filename ../images/tabular-feature_set-rotate-tabular.png
2360 rotates the whole table counter-clockwise by 90°
2363 \begin_layout Labeling
2364 \labelwidthstring 00.00.0000
2365 \begin_inset Graphics
2366 filename ../images/tabular-feature_multicolumn.png
2371 sets the current cell or selection as a multicolumn
2374 \begin_layout Standard
2375 \begin_inset Note Greyedout
2378 \begin_layout Plain Layout
2383 For the output the vertical alignment of the first cell in a row is used
2384 for all following cells in the row.
2392 \begin_layout Section
2397 \begin_layout Plain Layout
2406 \begin_layout Standard
2407 Additionally to the table dialog and toolbar, the menu
2409 Edit\SpecialChar \menuseparator
2412 allows you to add and delete border lines for the current row/column and
2413 to set the current selection as multicolumn.
2414 The menu is only available when the cursor is inside a table.
2417 \begin_layout Section
2419 \begin_inset CommandInset label
2421 name "sec:Table-Floats"
2429 \begin_layout Plain Layout
2439 \begin_layout Plain Layout
2448 \begin_layout Standard
2449 For general explanations about floats, have a look at section
2450 \begin_inset space ~
2454 \begin_inset CommandInset ref
2456 reference "sec:FloatIntroduction"
2463 \begin_layout Standard
2464 \begin_inset Float table
2470 \begin_layout Plain Layout
2471 \begin_inset Caption
2473 \begin_layout Plain Layout
2474 \begin_inset CommandInset label
2476 name "tab:a table float"
2488 \begin_layout Plain Layout
2490 \begin_inset Tabular
2491 <lyxtabular version="3" rows="3" columns="3">
2493 <column alignment="center" valignment="top" width="0pt">
2494 <column alignment="center" valignment="top" width="0pt">
2495 <column alignment="center" valignment="top" width="0pt">
2497 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2500 \begin_layout Plain Layout
2515 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2518 \begin_layout Plain Layout
2533 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2536 \begin_layout Plain Layout
2553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2556 \begin_layout Plain Layout
2571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2574 \begin_layout Plain Layout
2589 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2592 \begin_layout Plain Layout
2609 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2612 \begin_layout Plain Layout
2622 \begin_inset Formula $\int x^{2}dx$
2630 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2633 \begin_layout Plain Layout
2643 \begin_inset Formula $\left[\begin{array}{cc}
2645 c & d\end{array}\right]$
2653 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2656 \begin_layout Plain Layout
2666 \begin_inset Formula $1+1=2$
2687 \begin_layout Standard
2688 Table floats can be inserted using the menu
2690 Insert\SpecialChar \menuseparator
2691 Float\SpecialChar \menuseparator
2694 or the toolbar button
2695 \begin_inset Graphics
2696 filename ../images/float-insert_table.png
2705 \begin_layout Standard
2706 The float appears as a collapsible box with a caption that has the label
2708 \begin_inset Quotes eld
2712 \begin_inset space ~
2716 \begin_inset Quotes erd
2719 (# is the actual table number).
2720 You can insert tables to the float above or below the caption.
2723 \begin_layout Standard
2725 \begin_inset space ~
2729 \begin_inset CommandInset ref
2731 reference "tab:a table float"
2735 is an example table within a table float.
2738 \begin_layout Standard
2739 Having the caption above the table is the common rule that is unfortunately
2740 not supported in LaTeX's standard classes.
2741 That means if you are using the document classes
2757 there will be no space between the caption and the table.
2758 To insert the needed space, add the following option to the load command
2759 of the LaTeX-package
2767 \begin_layout Plain Layout
2768 LaTeX-packages ! caption
2773 in your document preamble
2777 \begin_layout Plain Layout
2778 For more information have a look at section
2779 \begin_inset space ~
2783 \begin_inset CommandInset ref
2785 reference "sec:Caption-Placement"
2797 \begin_layout Standard
2803 \begin_layout Standard
2808 , which is described in section
2809 \begin_inset space ~
2813 \begin_inset CommandInset ref
2815 reference "sec:Caption-Formatting"
2819 , is used to adjust the caption format.
2822 \begin_layout Standard
2826 \begin_layout Plain Layout
2827 References ! to Tables
2832 Tables can be cross-referenced in the text by referencing their label.
2833 To do this insert a label in the caption using the menu
2835 Insert\SpecialChar \menuseparator
2838 or the toolbar button
2839 \begin_inset Graphics
2840 filename ../images/label-insert.png
2847 You can now refer to the label using the menu
2849 Insert\SpecialChar \menuseparator
2851 \begin_inset space ~
2856 or the toolbar button
2857 \begin_inset Graphics
2858 filename ../images/dialog-show-new-inset_ref.png
2865 \begin_inset Newline newline
2868 Referencing is explained in detail in section
2869 \begin_inset space ~
2873 \begin_inset CommandInset ref
2875 reference "sec:Referencing-Floats"
2882 \begin_layout Section
2884 \begin_inset CommandInset label
2886 name "sec:Longtables"
2894 \begin_layout Plain Layout
2904 \begin_layout Plain Layout
2913 \begin_layout Standard
2914 If the table is too long to fit on one page, you can use the option
2917 \begin_inset space ~
2921 \begin_inset space ~
2930 of the table dialog to split the table automatically over more pages.
2931 Doing this enables some check boxes and you can now define:
2934 \begin_layout Description
2939 : The current row and all rows above, that don't have any special options
2940 defined, are defined to be the header rows of all pages of the longtable;
2941 except for the first page, if
2944 \begin_inset space ~
2950 This therefore called the main header.
2953 \begin_layout Description
2957 \begin_inset space ~
2962 : The current row and all rows above, that don't have any special options
2963 defined, are defined to be the header rows of the first page of the longtable.
2966 \begin_layout Description
2971 : The current row and all rows below, that don't have any special options
2972 defined, are defined to be the footer rows of all pages of the longtable;
2973 except for the last page, if
2976 \begin_inset space ~
2984 \begin_layout Description
2988 \begin_inset space ~
2993 : The current row and all rows below, that don't have any special options
2994 defined, are defined to be the footer rows of the last page of the longtable.
2997 \begin_layout Standard
2998 You can also specify a row where the table is splitted.
2999 If you set more than one option in the same table row, you should be aware
3000 of the fact that only the first one is used in the given table row.
3001 The others will then be defined as
3006 In this context, first means first in this order:
3013 \begin_inset space ~
3016 header, Footer, Last
3017 \begin_inset space ~
3023 See the following longtable to see how it works:
3026 \begin_layout Standard
3028 \begin_inset Tabular
3029 <lyxtabular version="3" rows="69" columns="3">
3030 <features islongtable="true">
3031 <column alignment="left" valignment="top" width="0cm">
3032 <column alignment="left" valignment="top" width="0pt">
3033 <column alignment="center" valignment="top" width="0pt">
3034 <row endfirsthead="true">
3035 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3038 \begin_layout Plain Layout
3041 Example Phone List (ignore the names)
3046 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3049 \begin_layout Plain Layout
3055 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3058 \begin_layout Plain Layout
3065 <row endfirsthead="true">
3066 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3069 \begin_layout Plain Layout
3077 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3080 \begin_layout Plain Layout
3086 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3089 \begin_layout Plain Layout
3098 <row endhead="true">
3099 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3102 \begin_layout Plain Layout
3110 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3113 \begin_layout Plain Layout
3119 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3122 \begin_layout Plain Layout
3129 <row endhead="true">
3130 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3133 \begin_layout Plain Layout
3141 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3144 \begin_layout Plain Layout
3150 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3153 \begin_layout Plain Layout
3162 <row endfoot="true">
3163 <cell multicolumn="1" alignment="right" valignment="top" topline="true" usebox="none">
3166 \begin_layout Plain Layout
3167 continued on next page
3172 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3175 \begin_layout Plain Layout
3181 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3184 \begin_layout Plain Layout
3192 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3195 \begin_layout Plain Layout
3203 <cell alignment="center" valignment="top" usebox="none">
3206 \begin_layout Plain Layout
3212 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3215 \begin_layout Plain Layout
3223 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3226 \begin_layout Plain Layout
3234 <cell alignment="center" valignment="top" usebox="none">
3237 \begin_layout Plain Layout
3243 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3246 \begin_layout Plain Layout
3254 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3257 \begin_layout Plain Layout
3265 <cell alignment="center" valignment="top" usebox="none">
3268 \begin_layout Plain Layout
3274 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3277 \begin_layout Plain Layout
3285 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3288 \begin_layout Plain Layout
3296 <cell alignment="center" valignment="top" usebox="none">
3299 \begin_layout Plain Layout
3305 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3308 \begin_layout Plain Layout
3316 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3319 \begin_layout Plain Layout
3327 <cell alignment="center" valignment="top" usebox="none">
3330 \begin_layout Plain Layout
3336 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3339 \begin_layout Plain Layout
3347 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3350 \begin_layout Plain Layout
3358 <cell alignment="center" valignment="top" usebox="none">
3361 \begin_layout Plain Layout
3367 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3370 \begin_layout Plain Layout
3378 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3381 \begin_layout Plain Layout
3389 <cell alignment="center" valignment="top" usebox="none">
3392 \begin_layout Plain Layout
3398 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3401 \begin_layout Plain Layout
3409 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3412 \begin_layout Plain Layout
3420 <cell alignment="center" valignment="top" usebox="none">
3423 \begin_layout Plain Layout
3429 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3432 \begin_layout Plain Layout
3440 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3443 \begin_layout Plain Layout
3451 <cell alignment="center" valignment="top" usebox="none">
3454 \begin_layout Plain Layout
3460 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3463 \begin_layout Plain Layout
3471 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3474 \begin_layout Plain Layout
3482 <cell alignment="center" valignment="top" usebox="none">
3485 \begin_layout Plain Layout
3491 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3494 \begin_layout Plain Layout
3502 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3505 \begin_layout Plain Layout
3513 <cell alignment="center" valignment="top" usebox="none">
3516 \begin_layout Plain Layout
3522 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3525 \begin_layout Plain Layout
3533 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3536 \begin_layout Plain Layout
3544 <cell alignment="center" valignment="top" usebox="none">
3547 \begin_layout Plain Layout
3553 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3556 \begin_layout Plain Layout
3564 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3567 \begin_layout Plain Layout
3575 <cell alignment="center" valignment="top" usebox="none">
3578 \begin_layout Plain Layout
3584 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3587 \begin_layout Plain Layout
3595 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3598 \begin_layout Plain Layout
3606 <cell alignment="center" valignment="top" usebox="none">
3609 \begin_layout Plain Layout
3615 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3618 \begin_layout Plain Layout
3626 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3629 \begin_layout Plain Layout
3637 <cell alignment="center" valignment="top" usebox="none">
3640 \begin_layout Plain Layout
3646 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3649 \begin_layout Plain Layout
3657 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3660 \begin_layout Plain Layout
3668 <cell alignment="center" valignment="top" usebox="none">
3671 \begin_layout Plain Layout
3677 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3680 \begin_layout Plain Layout
3688 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3691 \begin_layout Plain Layout
3699 <cell alignment="center" valignment="top" usebox="none">
3702 \begin_layout Plain Layout
3708 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3711 \begin_layout Plain Layout
3719 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3722 \begin_layout Plain Layout
3730 <cell alignment="center" valignment="top" usebox="none">
3733 \begin_layout Plain Layout
3739 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3742 \begin_layout Plain Layout
3750 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3753 \begin_layout Plain Layout
3761 <cell alignment="center" valignment="top" usebox="none">
3764 \begin_layout Plain Layout
3770 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3773 \begin_layout Plain Layout
3781 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3784 \begin_layout Plain Layout
3792 <cell alignment="center" valignment="top" usebox="none">
3795 \begin_layout Plain Layout
3801 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3804 \begin_layout Plain Layout
3812 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3815 \begin_layout Plain Layout
3823 <cell alignment="center" valignment="top" usebox="none">
3826 \begin_layout Plain Layout
3832 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3835 \begin_layout Plain Layout
3843 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3846 \begin_layout Plain Layout
3854 <cell alignment="center" valignment="top" usebox="none">
3857 \begin_layout Plain Layout
3863 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3866 \begin_layout Plain Layout
3874 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3877 \begin_layout Plain Layout
3885 <cell alignment="center" valignment="top" usebox="none">
3888 \begin_layout Plain Layout
3894 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3897 \begin_layout Plain Layout
3905 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3908 \begin_layout Plain Layout
3916 <cell alignment="center" valignment="top" usebox="none">
3919 \begin_layout Plain Layout
3925 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3928 \begin_layout Plain Layout
3936 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3939 \begin_layout Plain Layout
3947 <cell alignment="center" valignment="top" usebox="none">
3950 \begin_layout Plain Layout
3956 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3959 \begin_layout Plain Layout
3967 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3970 \begin_layout Plain Layout
3978 <cell alignment="center" valignment="top" usebox="none">
3981 \begin_layout Plain Layout
3987 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3990 \begin_layout Plain Layout
3998 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4001 \begin_layout Plain Layout
4009 <cell alignment="center" valignment="top" usebox="none">
4012 \begin_layout Plain Layout
4018 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4021 \begin_layout Plain Layout
4029 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4032 \begin_layout Plain Layout
4040 <cell alignment="center" valignment="top" usebox="none">
4043 \begin_layout Plain Layout
4049 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4052 \begin_layout Plain Layout
4060 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4063 \begin_layout Plain Layout
4071 <cell alignment="center" valignment="top" usebox="none">
4074 \begin_layout Plain Layout
4080 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4083 \begin_layout Plain Layout
4091 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4094 \begin_layout Plain Layout
4102 <cell alignment="center" valignment="top" usebox="none">
4105 \begin_layout Plain Layout
4111 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4114 \begin_layout Plain Layout
4122 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4125 \begin_layout Plain Layout
4133 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4136 \begin_layout Plain Layout
4142 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4145 \begin_layout Plain Layout
4153 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4156 \begin_layout Plain Layout
4162 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4165 \begin_layout Plain Layout
4171 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4174 \begin_layout Plain Layout
4182 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4185 \begin_layout Plain Layout
4193 <cell alignment="center" valignment="top" usebox="none">
4196 \begin_layout Plain Layout
4202 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4205 \begin_layout Plain Layout
4213 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4216 \begin_layout Plain Layout
4224 <cell alignment="center" valignment="top" usebox="none">
4227 \begin_layout Plain Layout
4233 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4236 \begin_layout Plain Layout
4244 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4247 \begin_layout Plain Layout
4255 <cell alignment="center" valignment="top" usebox="none">
4258 \begin_layout Plain Layout
4264 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4267 \begin_layout Plain Layout
4275 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4278 \begin_layout Plain Layout
4286 <cell alignment="center" valignment="top" usebox="none">
4289 \begin_layout Plain Layout
4295 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4298 \begin_layout Plain Layout
4306 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4309 \begin_layout Plain Layout
4317 <cell alignment="center" valignment="top" usebox="none">
4320 \begin_layout Plain Layout
4326 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4329 \begin_layout Plain Layout
4337 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4340 \begin_layout Plain Layout
4348 <cell alignment="center" valignment="top" usebox="none">
4351 \begin_layout Plain Layout
4357 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4360 \begin_layout Plain Layout
4368 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4371 \begin_layout Plain Layout
4379 <cell alignment="center" valignment="top" usebox="none">
4382 \begin_layout Plain Layout
4388 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4391 \begin_layout Plain Layout
4399 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4402 \begin_layout Plain Layout
4410 <cell alignment="center" valignment="top" usebox="none">
4413 \begin_layout Plain Layout
4419 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4422 \begin_layout Plain Layout
4430 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4433 \begin_layout Plain Layout
4441 <cell alignment="center" valignment="top" usebox="none">
4444 \begin_layout Plain Layout
4450 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4453 \begin_layout Plain Layout
4461 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4464 \begin_layout Plain Layout
4472 <cell alignment="center" valignment="top" usebox="none">
4475 \begin_layout Plain Layout
4481 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4484 \begin_layout Plain Layout
4492 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4495 \begin_layout Plain Layout
4503 <cell alignment="center" valignment="top" usebox="none">
4506 \begin_layout Plain Layout
4512 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4515 \begin_layout Plain Layout
4523 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4526 \begin_layout Plain Layout
4534 <cell alignment="center" valignment="top" usebox="none">
4537 \begin_layout Plain Layout
4543 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4546 \begin_layout Plain Layout
4554 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4557 \begin_layout Plain Layout
4565 <cell alignment="center" valignment="top" usebox="none">
4568 \begin_layout Plain Layout
4574 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4577 \begin_layout Plain Layout
4585 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4588 \begin_layout Plain Layout
4596 <cell alignment="center" valignment="top" usebox="none">
4599 \begin_layout Plain Layout
4605 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4608 \begin_layout Plain Layout
4616 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4619 \begin_layout Plain Layout
4627 <cell alignment="center" valignment="top" usebox="none">
4630 \begin_layout Plain Layout
4636 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4639 \begin_layout Plain Layout
4647 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4650 \begin_layout Plain Layout
4658 <cell alignment="center" valignment="top" usebox="none">
4661 \begin_layout Plain Layout
4667 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4670 \begin_layout Plain Layout
4678 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4681 \begin_layout Plain Layout
4689 <cell alignment="center" valignment="top" usebox="none">
4692 \begin_layout Plain Layout
4698 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4701 \begin_layout Plain Layout
4709 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4712 \begin_layout Plain Layout
4720 <cell alignment="center" valignment="top" usebox="none">
4723 \begin_layout Plain Layout
4729 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4732 \begin_layout Plain Layout
4740 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4743 \begin_layout Plain Layout
4751 <cell alignment="center" valignment="top" usebox="none">
4754 \begin_layout Plain Layout
4760 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4763 \begin_layout Plain Layout
4771 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4774 \begin_layout Plain Layout
4782 <cell alignment="center" valignment="top" usebox="none">
4785 \begin_layout Plain Layout
4791 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4794 \begin_layout Plain Layout
4802 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4805 \begin_layout Plain Layout
4813 <cell alignment="center" valignment="top" usebox="none">
4816 \begin_layout Plain Layout
4822 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4825 \begin_layout Plain Layout
4833 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4836 \begin_layout Plain Layout
4844 <cell alignment="center" valignment="top" usebox="none">
4847 \begin_layout Plain Layout
4853 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4856 \begin_layout Plain Layout
4864 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4867 \begin_layout Plain Layout
4875 <cell alignment="center" valignment="top" usebox="none">
4878 \begin_layout Plain Layout
4884 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4887 \begin_layout Plain Layout
4895 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4898 \begin_layout Plain Layout
4906 <cell alignment="center" valignment="top" usebox="none">
4909 \begin_layout Plain Layout
4915 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4918 \begin_layout Plain Layout
4926 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4929 \begin_layout Plain Layout
4937 <cell alignment="center" valignment="top" usebox="none">
4940 \begin_layout Plain Layout
4946 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4949 \begin_layout Plain Layout
4957 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4960 \begin_layout Plain Layout
4968 <cell alignment="center" valignment="top" usebox="none">
4971 \begin_layout Plain Layout
4977 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4980 \begin_layout Plain Layout
4988 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4991 \begin_layout Plain Layout
4999 <cell alignment="center" valignment="top" usebox="none">
5002 \begin_layout Plain Layout
5008 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5011 \begin_layout Plain Layout
5019 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5022 \begin_layout Plain Layout
5030 <cell alignment="center" valignment="top" usebox="none">
5033 \begin_layout Plain Layout
5039 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5042 \begin_layout Plain Layout
5050 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5053 \begin_layout Plain Layout
5061 <cell alignment="center" valignment="top" usebox="none">
5064 \begin_layout Plain Layout
5070 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5073 \begin_layout Plain Layout
5081 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5084 \begin_layout Plain Layout
5092 <cell alignment="center" valignment="top" usebox="none">
5095 \begin_layout Plain Layout
5101 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5104 \begin_layout Plain Layout
5112 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5115 \begin_layout Plain Layout
5123 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5126 \begin_layout Plain Layout
5132 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5135 \begin_layout Plain Layout
5142 <row endlastfoot="true">
5143 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5146 \begin_layout Plain Layout
5152 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5155 \begin_layout Plain Layout
5161 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5164 \begin_layout Plain Layout
5179 \begin_layout Plain Layout
5183 addtocounter{table}{-1}
5189 \begin_inset Note Note
5192 \begin_layout Plain Layout
5193 See greyed-out note in section
5194 \begin_inset space ~
5198 \begin_inset CommandInset ref
5200 reference "sub:Longtable-Captions"
5204 for an explanation of this command.
5212 \begin_layout Subsection
5213 Footnotes in Longtables
5214 \begin_inset CommandInset label
5216 name "sub:Footnotes-in-Longtables"
5224 \begin_layout Plain Layout
5225 Longtables ! Footnotes
5233 \begin_layout Standard
5234 Footnotes can be inserted to every longtable cell.
5235 They appear at the bottom of the page where the table cell with the footnote
5238 \begin_inset space ~
5242 \begin_inset CommandInset ref
5244 reference "tab:DiffCaptions"
5248 has for example a footnote.
5251 \begin_layout Subsection
5256 \begin_layout Plain Layout
5257 Longtables ! Alignment
5265 \begin_layout Standard
5266 Longtables are by default centered.
5267 In contrary to the alignment of the table columns and row, the table alignment
5268 can currently not be changed in the table dialog.
5269 To change the alignment of longtables you have to change the value of the
5282 by inserting this line as TeX-Code before the corresponding longtable:
5285 \begin_layout Standard
5295 \begin_layout Standard
5296 Where the value can have any of the units listed in Table
5297 \begin_inset space ~
5301 \begin_inset CommandInset ref
5303 reference "tab:Units"
5314 controls the horizontal distance from the left page border to the longtable,
5321 the distance from the right side.
5322 The default value for both lengths is
5328 , which is in this case the same as an horizontal fill in LyX.
5331 \begin_layout Standard
5332 The following longtable was left-aligned by setting
5339 \begin_inset space \thinspace{}
5346 \begin_layout Plain Layout
5360 \begin_layout Standard
5361 \begin_inset Tabular
5362 <lyxtabular version="3" rows="5" columns="5">
5363 <features islongtable="true">
5364 <column alignment="center" valignment="top" width="0">
5365 <column alignment="center" valignment="top" width="0">
5366 <column alignment="center" valignment="top" width="0">
5367 <column alignment="center" valignment="top" width="0">
5368 <column alignment="center" valignment="top" width="0">
5370 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5373 \begin_layout Plain Layout
5379 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5382 \begin_layout Plain Layout
5388 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5391 \begin_layout Plain Layout
5397 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5400 \begin_layout Plain Layout
5406 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5409 \begin_layout Plain Layout
5417 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5420 \begin_layout Plain Layout
5426 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5429 \begin_layout Plain Layout
5435 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5438 \begin_layout Plain Layout
5444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5447 \begin_layout Plain Layout
5453 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5456 \begin_layout Plain Layout
5464 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5467 \begin_layout Plain Layout
5473 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5476 \begin_layout Plain Layout
5482 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5485 \begin_layout Plain Layout
5491 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5494 \begin_layout Plain Layout
5500 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5503 \begin_layout Plain Layout
5511 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5514 \begin_layout Plain Layout
5520 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5523 \begin_layout Plain Layout
5529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5532 \begin_layout Plain Layout
5538 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5541 \begin_layout Plain Layout
5547 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5550 \begin_layout Plain Layout
5558 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5561 \begin_layout Plain Layout
5567 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5570 \begin_layout Plain Layout
5576 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5579 \begin_layout Plain Layout
5585 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5588 \begin_layout Plain Layout
5594 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5597 \begin_layout Plain Layout
5612 \begin_layout Plain Layout
5628 \begin_layout Subsection
5633 \begin_layout Plain Layout
5634 Longtables ! Captions
5640 \begin_inset CommandInset label
5642 name "sub:Longtable-Captions"
5649 \begin_layout Standard
5650 A longtable cannot be put into a table float because floats can only be
5651 on one page but the caption environment of floats can also be used for
5655 \begin_layout Standard
5656 As LyX does not yet fully support captions in longtables, a hack is needed
5660 \begin_layout Enumerate
5666 \begin_layout Enumerate
5667 Mark the first row and disable its upper line.
5670 \begin_layout Enumerate
5671 Insert a caption via the menu
5673 Insert\SpecialChar \menuseparator
5676 into the first table cell.
5677 \begin_inset Newline newline
5680 You can also add a short title for the caption.
5683 \begin_layout Enumerate
5685 \begin_inset Quotes eld
5697 \begin_inset Quotes erd
5700 as TeX-Code behind the caption.
5703 \begin_layout Standard
5704 A short title that will appear in the LOT instead of the full title.
5713 behind the caption omits the vertical lines between the following cells
5715 The first table row is now only a dummy row for the caption, the actual
5716 table starts with the second row.
5719 \begin_layout Standard
5720 Here is a short longtable to see how it works:
5723 \begin_layout Standard
5724 \begin_inset Tabular
5725 <lyxtabular version="3" rows="6" columns="5">
5726 <features islongtable="true">
5727 <column alignment="center" valignment="top" width="0">
5728 <column alignment="center" valignment="top" width="0">
5729 <column alignment="center" valignment="top" width="0">
5730 <column alignment="center" valignment="top" width="0">
5731 <column alignment="center" valignment="top" width="0">
5732 <row caption="true">
5733 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
5736 \begin_layout Plain Layout
5737 \begin_inset Caption
5739 \begin_layout Plain Layout
5740 Longtable with caption
5744 \begin_layout Plain Layout
5760 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5763 \begin_layout Plain Layout
5769 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5772 \begin_layout Plain Layout
5778 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
5781 \begin_layout Plain Layout
5787 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5790 \begin_layout Plain Layout
5798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5801 \begin_layout Plain Layout
5807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5810 \begin_layout Plain Layout
5816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5819 \begin_layout Plain Layout
5825 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5828 \begin_layout Plain Layout
5834 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5837 \begin_layout Plain Layout
5845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5848 \begin_layout Plain Layout
5854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5857 \begin_layout Plain Layout
5863 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5866 \begin_layout Plain Layout
5872 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5875 \begin_layout Plain Layout
5881 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5884 \begin_layout Plain Layout
5892 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5895 \begin_layout Plain Layout
5901 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5904 \begin_layout Plain Layout
5910 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5913 \begin_layout Plain Layout
5919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5922 \begin_layout Plain Layout
5928 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5931 \begin_layout Plain Layout
5939 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5942 \begin_layout Plain Layout
5948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5951 \begin_layout Plain Layout
5957 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5960 \begin_layout Plain Layout
5966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5969 \begin_layout Plain Layout
5975 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5978 \begin_layout Plain Layout
5986 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5989 \begin_layout Plain Layout
5995 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5998 \begin_layout Plain Layout
6004 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6007 \begin_layout Plain Layout
6013 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6016 \begin_layout Plain Layout
6022 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6025 \begin_layout Plain Layout
6039 \begin_layout Standard
6040 \begin_inset VSpace medskip
6044 \begin_inset Note Greyedout
6047 \begin_layout Plain Layout
6052 The table number is increased for every longtable, also if you didn't set
6054 For this reason you could have the case that e.g.
6056 \begin_inset space ~
6059 2.4 follows on Table
6060 \begin_inset space ~
6063 2.1 in the list of tables if there are two longtables without captions.
6064 To avoid this you can add the following command in TeX-Code behind every
6065 longtable without a caption:
6068 \begin_layout Plain Layout
6073 addtocounter{table}{-1}
6081 \begin_layout Standard
6082 \begin_inset Note Greyedout
6085 \begin_layout Plain Layout
6090 If you are using the LaTeX-package
6098 \begin_layout Plain Layout
6099 LaTeX-packages ! hyperref
6104 to link cross-references, the link to a longtable caption will always point
6105 to the beginning of the document.
6113 \begin_layout Standard
6114 \begin_inset Newpage newpage
6120 \begin_layout Subsubsection
6121 References to Longtables
6125 \begin_layout Plain Layout
6126 Longtables ! References
6134 \begin_layout Standard
6135 \begin_inset Tabular
6136 <lyxtabular version="3" rows="6" columns="5">
6137 <features islongtable="true">
6138 <column alignment="center" valignment="top" width="0">
6139 <column alignment="center" valignment="top" width="0">
6140 <column alignment="center" valignment="top" width="0">
6141 <column alignment="center" valignment="top" width="0">
6142 <column alignment="center" valignment="top" width="0">
6143 <row caption="true">
6144 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6147 \begin_layout Plain Layout
6148 \begin_inset Caption
6150 \begin_layout Plain Layout
6151 Referenced longtable
6152 \begin_inset CommandInset label
6154 name "tab:RefExample"
6168 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6171 \begin_layout Plain Layout
6177 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6180 \begin_layout Plain Layout
6186 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6189 \begin_layout Plain Layout
6195 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6198 \begin_layout Plain Layout
6206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6209 \begin_layout Plain Layout
6215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6218 \begin_layout Plain Layout
6224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6227 \begin_layout Plain Layout
6233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6236 \begin_layout Plain Layout
6242 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6245 \begin_layout Plain Layout
6253 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6256 \begin_layout Plain Layout
6262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6265 \begin_layout Plain Layout
6271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6274 \begin_layout Plain Layout
6280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6283 \begin_layout Plain Layout
6289 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6292 \begin_layout Plain Layout
6300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6303 \begin_layout Plain Layout
6309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6312 \begin_layout Plain Layout
6318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6321 \begin_layout Plain Layout
6327 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6330 \begin_layout Plain Layout
6336 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6339 \begin_layout Plain Layout
6347 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6350 \begin_layout Plain Layout
6356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6359 \begin_layout Plain Layout
6365 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6368 \begin_layout Plain Layout
6374 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6377 \begin_layout Plain Layout
6383 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6386 \begin_layout Plain Layout
6394 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6397 \begin_layout Plain Layout
6403 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6406 \begin_layout Plain Layout
6412 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6415 \begin_layout Plain Layout
6421 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6424 \begin_layout Plain Layout
6430 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6433 \begin_layout Plain Layout
6447 \begin_layout Standard
6448 To reference a longtable, insert a label into the caption.
6449 Note that you have to add the label prefix
6450 \begin_inset Quotes eld
6458 \begin_inset Quotes eld
6461 manually in the label field.
6464 \begin_layout Standard
6465 This is a reference to Table
6466 \begin_inset space ~
6470 \begin_inset CommandInset ref
6472 reference "tab:RefExample"
6479 \begin_layout Standard
6480 The caption layout can be set together with all other caption of your document
6481 using the LaTeX-package
6489 \begin_layout Plain Layout
6490 LaTeX-packages ! caption
6496 \begin_inset space ~
6500 \begin_inset CommandInset ref
6502 reference "sec:Caption-Formatting"
6509 \begin_layout Subsubsection
6514 \begin_layout Plain Layout
6515 Longtables ! Caption Width
6523 \begin_layout Standard
6524 The maximal width of of caption lines is defined by the length
6531 Its default value is 4
6532 \begin_inset space \thinspace{}
6536 To change it add the following command to your document preamble or as
6537 TeX-Code into your document before the longtable that should be affected
6540 \begin_layout Standard
6550 \begin_layout Standard
6551 where the width could have one of the units listed in appendix
6552 \begin_inset space ~
6556 \begin_inset CommandInset ref
6558 reference "cha:Units-available-in"
6565 \begin_layout Standard
6566 The following tables show the difference:
6569 \begin_layout Standard
6570 \begin_inset Tabular
6571 <lyxtabular version="3" rows="6" columns="5">
6572 <features islongtable="true">
6573 <column alignment="center" valignment="top" width="0">
6574 <column alignment="center" valignment="top" width="0">
6575 <column alignment="center" valignment="top" width="0">
6576 <column alignment="center" valignment="top" width="0">
6577 <column alignment="center" valignment="top" width="0">
6578 <row caption="true">
6579 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6582 \begin_layout Plain Layout
6583 \begin_inset Caption
6585 \begin_layout Plain Layout
6586 long full title with default width long full title with default width long
6587 full title with default width
6591 \begin_layout Plain Layout
6592 caption with default width
6607 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6610 \begin_layout Plain Layout
6616 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6619 \begin_layout Plain Layout
6625 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6628 \begin_layout Plain Layout
6634 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6637 \begin_layout Plain Layout
6645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6648 \begin_layout Plain Layout
6654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6657 \begin_layout Plain Layout
6663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6666 \begin_layout Plain Layout
6672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6675 \begin_layout Plain Layout
6681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6684 \begin_layout Plain Layout
6692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6695 \begin_layout Plain Layout
6701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6704 \begin_layout Plain Layout
6710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6713 \begin_layout Plain Layout
6719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6722 \begin_layout Plain Layout
6728 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6731 \begin_layout Plain Layout
6739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6742 \begin_layout Plain Layout
6748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6751 \begin_layout Plain Layout
6757 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6760 \begin_layout Plain Layout
6766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6769 \begin_layout Plain Layout
6775 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6778 \begin_layout Plain Layout
6786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6789 \begin_layout Plain Layout
6795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6798 \begin_layout Plain Layout
6804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6807 \begin_layout Plain Layout
6813 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6816 \begin_layout Plain Layout
6822 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6825 \begin_layout Plain Layout
6833 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6836 \begin_layout Plain Layout
6842 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6845 \begin_layout Plain Layout
6851 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6854 \begin_layout Plain Layout
6860 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6863 \begin_layout Plain Layout
6869 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6872 \begin_layout Plain Layout
6886 \begin_layout Standard
6890 \begin_layout Plain Layout
6902 \begin_inset Tabular
6903 <lyxtabular version="3" rows="6" columns="5">
6904 <features islongtable="true">
6905 <column alignment="center" valignment="top" width="0">
6906 <column alignment="center" valignment="top" width="0">
6907 <column alignment="center" valignment="top" width="0">
6908 <column alignment="center" valignment="top" width="0">
6909 <column alignment="center" valignment="top" width="0">
6910 <row caption="true">
6911 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6914 \begin_layout Plain Layout
6915 \begin_inset Caption
6917 \begin_layout Plain Layout
6918 long full title with width set to 5
6919 \begin_inset space \thinspace{}
6922 cm long full title with width set to 5
6923 \begin_inset space \thinspace{}
6926 cm long full title with width set to 5
6927 \begin_inset space \thinspace{}
6934 \begin_layout Plain Layout
6936 \begin_inset space \thinspace{}
6940 \begin_inset space \thinspace{}
6944 \begin_inset space \thinspace{}
6962 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6965 \begin_layout Plain Layout
6971 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6974 \begin_layout Plain Layout
6980 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6983 \begin_layout Plain Layout
6989 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6992 \begin_layout Plain Layout
7000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7003 \begin_layout Plain Layout
7009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7012 \begin_layout Plain Layout
7018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7021 \begin_layout Plain Layout
7027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7030 \begin_layout Plain Layout
7036 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7039 \begin_layout Plain Layout
7047 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7050 \begin_layout Plain Layout
7056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7059 \begin_layout Plain Layout
7065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7068 \begin_layout Plain Layout
7074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7077 \begin_layout Plain Layout
7083 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7086 \begin_layout Plain Layout
7094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7097 \begin_layout Plain Layout
7103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7106 \begin_layout Plain Layout
7112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7115 \begin_layout Plain Layout
7121 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7124 \begin_layout Plain Layout
7130 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7133 \begin_layout Plain Layout
7141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7144 \begin_layout Plain Layout
7150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7153 \begin_layout Plain Layout
7159 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7162 \begin_layout Plain Layout
7168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7171 \begin_layout Plain Layout
7177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7180 \begin_layout Plain Layout
7188 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7191 \begin_layout Plain Layout
7197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7200 \begin_layout Plain Layout
7206 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7209 \begin_layout Plain Layout
7215 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7218 \begin_layout Plain Layout
7224 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7227 \begin_layout Plain Layout
7241 \begin_layout Standard
7245 \begin_layout Plain Layout
7259 \begin_layout Standard
7260 \begin_inset Note Greyedout
7263 \begin_layout Plain Layout
7268 When the LaTeX-package
7276 \begin_layout Plain Layout
7277 LaTeX-packages ! caption
7282 is used, as in this document, the full page width is used for the caption
7283 when you use the default value of 4
7284 \begin_inset space \thinspace{}
7294 To get in this case exactly a 4
7295 \begin_inset space \thinspace{}
7298 in wide caption, you can either use a value slightly different from 4.0
7299 \begin_inset space \thinspace{}
7304 \begin_inset space \thinspace{}
7307 in, or the LaTeX-command
7311 captionsetup{width=value}
7313 that is provided by the
7325 \begin_layout Subsubsection
7326 Different Captions for Table Pages
7330 \begin_layout Plain Layout
7331 Longtables ! Different Captions for Pages
7339 \begin_layout Standard
7340 When the other captions should differ from the one of the first table page,
7341 insert a caption with a non-empty short title in a dummy caption row marked
7343 The caption used for the other table pages is inserted as caption without
7344 a short title in a dummy caption row that is marked as main header.
7345 When this caption shouldn't include the table number, use the command
7348 \begin_layout Standard
7353 caption*{caption text}
7356 \begin_layout Standard
7357 instead of LyX's caption box.
7358 The label to reference the table is inserted into the caption of the first
7361 \begin_inset space ~
7365 \begin_inset CommandInset ref
7367 reference "tab:DiffCaptions"
7371 is an example for a longtable with different heading where the second caption
7372 doesn't include the table number.
7375 \begin_layout Standard
7377 \begin_inset Tabular
7378 <lyxtabular version="3" rows="59" columns="3">
7379 <features islongtable="true">
7380 <column alignment="left" valignment="top" width="0cm">
7381 <column alignment="left" valignment="top" width="0pt">
7382 <column alignment="center" valignment="top" width="0pt">
7383 <row endfirsthead="true" caption="true">
7384 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7387 \begin_layout Plain Layout
7388 \begin_inset Caption
7390 \begin_layout Plain Layout
7392 \begin_inset CommandInset label
7394 name "tab:DiffCaptions"
7402 \begin_layout Plain Layout
7418 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7421 \begin_layout Plain Layout
7427 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7430 \begin_layout Plain Layout
7437 <row endfirsthead="true">
7438 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7441 \begin_layout Plain Layout
7444 Example Phone List (ignore the names)
7449 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7452 \begin_layout Plain Layout
7458 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7461 \begin_layout Plain Layout
7468 <row endfirsthead="true">
7469 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7472 \begin_layout Plain Layout
7480 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7483 \begin_layout Plain Layout
7489 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7492 \begin_layout Plain Layout
7501 <row endhead="true" caption="true">
7502 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7505 \begin_layout Plain Layout
7509 \begin_layout Plain Layout
7513 caption*{Continued Example Phone List}
7527 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7530 \begin_layout Plain Layout
7536 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7539 \begin_layout Plain Layout
7546 <row endhead="true">
7547 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7550 \begin_layout Plain Layout
7558 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7561 \begin_layout Plain Layout
7567 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7570 \begin_layout Plain Layout
7577 <row endhead="true">
7578 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" usebox="none">
7581 \begin_layout Plain Layout
7589 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7592 \begin_layout Plain Layout
7598 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7601 \begin_layout Plain Layout
7610 <row endfoot="true">
7611 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7614 \begin_layout Plain Layout
7615 continued on next page
7620 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7623 \begin_layout Plain Layout
7629 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7632 \begin_layout Plain Layout
7640 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7643 \begin_layout Plain Layout
7651 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7654 \begin_layout Plain Layout
7660 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
7663 \begin_layout Plain Layout
7671 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7674 \begin_layout Plain Layout
7682 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7685 \begin_layout Plain Layout
7691 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7694 \begin_layout Plain Layout
7702 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7705 \begin_layout Plain Layout
7713 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7716 \begin_layout Plain Layout
7722 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7725 \begin_layout Plain Layout
7733 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7736 \begin_layout Plain Layout
7744 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7747 \begin_layout Plain Layout
7753 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7756 \begin_layout Plain Layout
7764 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7767 \begin_layout Plain Layout
7775 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7778 \begin_layout Plain Layout
7784 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7787 \begin_layout Plain Layout
7795 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7798 \begin_layout Plain Layout
7806 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7809 \begin_layout Plain Layout
7815 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7818 \begin_layout Plain Layout
7826 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7829 \begin_layout Plain Layout
7837 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7840 \begin_layout Plain Layout
7846 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7849 \begin_layout Plain Layout
7857 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7860 \begin_layout Plain Layout
7868 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7871 \begin_layout Plain Layout
7877 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7880 \begin_layout Plain Layout
7888 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7891 \begin_layout Plain Layout
7899 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7902 \begin_layout Plain Layout
7908 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7911 \begin_layout Plain Layout
7919 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7922 \begin_layout Plain Layout
7930 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7933 \begin_layout Plain Layout
7939 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7942 \begin_layout Plain Layout
7950 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7953 \begin_layout Plain Layout
7961 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7964 \begin_layout Plain Layout
7970 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7973 \begin_layout Plain Layout
7981 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7984 \begin_layout Plain Layout
7992 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7995 \begin_layout Plain Layout
8001 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8004 \begin_layout Plain Layout
8012 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8015 \begin_layout Plain Layout
8023 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8026 \begin_layout Plain Layout
8032 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8035 \begin_layout Plain Layout
8043 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8046 \begin_layout Plain Layout
8054 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8057 \begin_layout Plain Layout
8063 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8066 \begin_layout Plain Layout
8074 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8077 \begin_layout Plain Layout
8086 \begin_layout Plain Layout
8097 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8100 \begin_layout Plain Layout
8106 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8109 \begin_layout Plain Layout
8117 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8120 \begin_layout Plain Layout
8128 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8131 \begin_layout Plain Layout
8137 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8140 \begin_layout Plain Layout
8148 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8151 \begin_layout Plain Layout
8159 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8162 \begin_layout Plain Layout
8168 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8171 \begin_layout Plain Layout
8179 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8182 \begin_layout Plain Layout
8190 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8193 \begin_layout Plain Layout
8199 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8202 \begin_layout Plain Layout
8210 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8213 \begin_layout Plain Layout
8221 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8224 \begin_layout Plain Layout
8230 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8233 \begin_layout Plain Layout
8241 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8244 \begin_layout Plain Layout
8252 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8255 \begin_layout Plain Layout
8261 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8264 \begin_layout Plain Layout
8272 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8275 \begin_layout Plain Layout
8283 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8286 \begin_layout Plain Layout
8292 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8295 \begin_layout Plain Layout
8303 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8306 \begin_layout Plain Layout
8314 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8317 \begin_layout Plain Layout
8323 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8326 \begin_layout Plain Layout
8334 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8337 \begin_layout Plain Layout
8345 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8348 \begin_layout Plain Layout
8354 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8357 \begin_layout Plain Layout
8365 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8368 \begin_layout Plain Layout
8376 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8379 \begin_layout Plain Layout
8385 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8388 \begin_layout Plain Layout
8396 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8399 \begin_layout Plain Layout
8407 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8410 \begin_layout Plain Layout
8416 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8419 \begin_layout Plain Layout
8427 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8430 \begin_layout Plain Layout
8438 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8441 \begin_layout Plain Layout
8447 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8450 \begin_layout Plain Layout
8458 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8461 \begin_layout Plain Layout
8469 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8472 \begin_layout Plain Layout
8478 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8481 \begin_layout Plain Layout
8489 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8492 \begin_layout Plain Layout
8500 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8503 \begin_layout Plain Layout
8509 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8512 \begin_layout Plain Layout
8520 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8523 \begin_layout Plain Layout
8531 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8534 \begin_layout Plain Layout
8540 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8543 \begin_layout Plain Layout
8551 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8554 \begin_layout Plain Layout
8562 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8565 \begin_layout Plain Layout
8571 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8574 \begin_layout Plain Layout
8582 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8585 \begin_layout Plain Layout
8593 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8596 \begin_layout Plain Layout
8602 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8605 \begin_layout Plain Layout
8613 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8616 \begin_layout Plain Layout
8622 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8625 \begin_layout Plain Layout
8631 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8634 \begin_layout Plain Layout
8642 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8645 \begin_layout Plain Layout
8653 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8656 \begin_layout Plain Layout
8662 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8665 \begin_layout Plain Layout
8673 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8676 \begin_layout Plain Layout
8684 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8687 \begin_layout Plain Layout
8693 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8696 \begin_layout Plain Layout
8704 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8707 \begin_layout Plain Layout
8715 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8718 \begin_layout Plain Layout
8724 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8727 \begin_layout Plain Layout
8735 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8738 \begin_layout Plain Layout
8746 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8749 \begin_layout Plain Layout
8755 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8758 \begin_layout Plain Layout
8766 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8769 \begin_layout Plain Layout
8777 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8780 \begin_layout Plain Layout
8786 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8789 \begin_layout Plain Layout
8797 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8800 \begin_layout Plain Layout
8808 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8811 \begin_layout Plain Layout
8817 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8820 \begin_layout Plain Layout
8828 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8831 \begin_layout Plain Layout
8839 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8842 \begin_layout Plain Layout
8848 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8851 \begin_layout Plain Layout
8859 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8862 \begin_layout Plain Layout
8870 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8873 \begin_layout Plain Layout
8879 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8882 \begin_layout Plain Layout
8890 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8893 \begin_layout Plain Layout
8901 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8904 \begin_layout Plain Layout
8910 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8913 \begin_layout Plain Layout
8921 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8924 \begin_layout Plain Layout
8932 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8935 \begin_layout Plain Layout
8941 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8944 \begin_layout Plain Layout
8952 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8955 \begin_layout Plain Layout
8963 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8966 \begin_layout Plain Layout
8972 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8975 \begin_layout Plain Layout
8983 <cell alignment="left" valignment="top" leftline="true" usebox="none">
8986 \begin_layout Plain Layout
8994 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8997 \begin_layout Plain Layout
9003 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9006 \begin_layout Plain Layout
9014 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9017 \begin_layout Plain Layout
9025 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9028 \begin_layout Plain Layout
9034 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9037 \begin_layout Plain Layout
9045 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9048 \begin_layout Plain Layout
9056 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9059 \begin_layout Plain Layout
9065 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9068 \begin_layout Plain Layout
9076 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9079 \begin_layout Plain Layout
9087 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9090 \begin_layout Plain Layout
9096 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9099 \begin_layout Plain Layout
9107 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9110 \begin_layout Plain Layout
9118 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9121 \begin_layout Plain Layout
9127 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9130 \begin_layout Plain Layout
9138 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9141 \begin_layout Plain Layout
9149 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9152 \begin_layout Plain Layout
9158 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9161 \begin_layout Plain Layout
9169 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9172 \begin_layout Plain Layout
9180 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9183 \begin_layout Plain Layout
9189 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9192 \begin_layout Plain Layout
9200 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9203 \begin_layout Plain Layout
9211 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9214 \begin_layout Plain Layout
9220 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9223 \begin_layout Plain Layout
9231 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9234 \begin_layout Plain Layout
9242 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9245 \begin_layout Plain Layout
9251 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9254 \begin_layout Plain Layout
9268 \begin_layout Section
9269 Special Longtable Issues
9270 \begin_inset CommandInset label
9272 name "sec:Special-Longtable-Issues"
9279 \begin_layout Subsection
9280 Longtable Calculation
9284 \begin_layout Plain Layout
9285 Longtables ! Calculation
9293 \begin_layout Standard
9294 LaTeX calculates the height of table pages and their page breaks using so
9296 Chunks are pieces of the tables that are at once in LaTeX's memory.
9297 The default value is historically set to only 20 table rows.
9298 If you are using longtables with many pages this may slow down the creation
9300 You can safely increase the chunk size to values of 100-1000 by adding
9301 this command line to your document preamble:
9304 \begin_layout Standard
9309 setcounter{LTchunksize}{100}
9312 \begin_layout Subsection
9313 Floats and Longtables
9317 \begin_layout Plain Layout
9326 \begin_layout Standard
9327 There might be problems when a float appears on the same page where a longtable
9329 To avoid such situation, add the command
9335 as TeX-Code before your longtable.
9338 \begin_layout Subsection
9343 \begin_layout Plain Layout
9344 Longtables ! Forced Page Breaks
9352 \begin_layout Standard
9353 By default tables are only broken between rows.
9354 If you have a cell with multiples lines and want to have a page break within
9355 the cell, insert the new line command
9356 \begin_inset Quotes eld
9368 \begin_inset Quotes erd
9371 as TeX-Code at this point of the cell where it should be broken.
9380 command you have to insert in TeX-Code so many
9381 \begin_inset Quotes eld
9389 \begin_inset Quotes erd
9392 characters like the number of the following table columns.
9397 is the character to separate table cells.
9398 Write in TeX-Code after each
9402 the content of the corresponding following cell and delete the content
9404 \begin_inset Newline newline
9415 command, insert so many
9419 characters like the number of table columns before the current column.
9421 \begin_inset space ~
9425 \begin_inset CommandInset ref
9427 reference "tab:ForcedPagebreak"
9431 the cell that should be broken is in the second column followed by another
9433 Therefore the following command was inserted in the cell as TeX-Code behind
9435 \begin_inset Quotes eld
9443 \begin_inset Quotes erd
9449 \begin_layout Standard
9457 \begin_inset Newline newline
9463 \begin_layout Standard
9465 \begin_inset Quotes eld
9469 \begin_inset Quotes erd
9472 in the third columns of the row was deleted.
9473 If your footer row of the longtable has for a certain reason no upper line
9474 but you would have a horizontal line where the cell is broken, use this
9478 \begin_layout Standard
9486 \begin_inset Newline newline
9494 \begin_layout Standard
9495 When the cell to be broken is in the last column, the command
9498 \begin_layout Standard
9508 \begin_layout Standard
9509 must be inserted as TeX-Code at the beginning of the cell.
9510 This assures that the part of the cell that will be displayed on the new
9511 page appears with the full width.
9514 \begin_layout Standard
9516 \begin_inset Tabular
9517 <lyxtabular version="3" rows="38" columns="3">
9518 <features islongtable="true">
9519 <column alignment="left" valignment="top" width="0cm">
9520 <column alignment="left" valignment="top" width="3cm">
9521 <column alignment="center" valignment="top" width="0pt">
9522 <row endfirsthead="true" caption="true">
9523 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9526 \begin_layout Plain Layout
9527 \begin_inset Caption
9529 \begin_layout Plain Layout
9530 Table with forced page break in table cell
9531 \begin_inset CommandInset label
9533 name "tab:ForcedPagebreak"
9541 \begin_layout Plain Layout
9542 Table with forced page break in table cell
9557 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9560 \begin_layout Plain Layout
9566 <cell multicolumn="2" alignment="center" valignment="top" rightline="true" usebox="none">
9569 \begin_layout Plain Layout
9576 <row endfirsthead="true">
9577 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9580 \begin_layout Plain Layout
9583 Example Phone List (ignore the names)
9588 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
9591 \begin_layout Plain Layout
9597 <cell multicolumn="2" alignment="right" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9600 \begin_layout Plain Layout
9607 <row endfirsthead="true">
9608 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9611 \begin_layout Plain Layout
9619 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9622 \begin_layout Plain Layout
9628 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9631 \begin_layout Plain Layout
9640 <row endhead="true" caption="true">
9641 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
9644 \begin_layout Plain Layout
9648 \begin_layout Plain Layout
9652 caption*{Continued table with forced page break in table cell}
9666 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9669 \begin_layout Plain Layout
9675 <cell multicolumn="2" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
9678 \begin_layout Plain Layout
9685 <row endhead="true">
9686 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9689 \begin_layout Plain Layout
9697 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9700 \begin_layout Plain Layout
9706 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9709 \begin_layout Plain Layout
9716 <row endhead="true">
9717 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9720 \begin_layout Plain Layout
9728 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9731 \begin_layout Plain Layout
9737 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9740 \begin_layout Plain Layout
9749 <row endfoot="true">
9750 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
9753 \begin_layout Plain Layout
9754 continued on next page
9759 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
9762 \begin_layout Plain Layout
9768 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9771 \begin_layout Plain Layout
9779 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9782 \begin_layout Plain Layout
9790 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9793 \begin_layout Plain Layout
9799 <cell alignment="right" valignment="top" rightline="true" usebox="none">
9802 \begin_layout Plain Layout
9810 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9813 \begin_layout Plain Layout
9821 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9824 \begin_layout Plain Layout
9830 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9833 \begin_layout Plain Layout
9841 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9844 \begin_layout Plain Layout
9852 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9855 \begin_layout Plain Layout
9861 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9864 \begin_layout Plain Layout
9872 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9875 \begin_layout Plain Layout
9883 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9886 \begin_layout Plain Layout
9892 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9895 \begin_layout Plain Layout
9903 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9906 \begin_layout Plain Layout
9914 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9917 \begin_layout Plain Layout
9923 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9926 \begin_layout Plain Layout
9934 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9937 \begin_layout Plain Layout
9945 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9948 \begin_layout Plain Layout
9954 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9957 \begin_layout Plain Layout
9965 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9968 \begin_layout Plain Layout
9976 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9979 \begin_layout Plain Layout
9985 <cell alignment="center" valignment="top" rightline="true" usebox="none">
9988 \begin_layout Plain Layout
9996 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9999 \begin_layout Plain Layout
10007 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10010 \begin_layout Plain Layout
10016 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10019 \begin_layout Plain Layout
10027 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10030 \begin_layout Plain Layout
10038 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10041 \begin_layout Plain Layout
10047 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10050 \begin_layout Plain Layout
10058 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10061 \begin_layout Plain Layout
10069 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10072 \begin_layout Plain Layout
10078 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10081 \begin_layout Plain Layout
10089 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10092 \begin_layout Plain Layout
10100 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10103 \begin_layout Plain Layout
10109 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10112 \begin_layout Plain Layout
10120 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10123 \begin_layout Plain Layout
10131 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10134 \begin_layout Plain Layout
10140 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10143 \begin_layout Plain Layout
10151 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10154 \begin_layout Plain Layout
10162 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10165 \begin_layout Plain Layout
10171 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10174 \begin_layout Plain Layout
10182 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10185 \begin_layout Plain Layout
10193 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10196 \begin_layout Plain Layout
10202 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10205 \begin_layout Plain Layout
10213 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10216 \begin_layout Plain Layout
10224 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10227 \begin_layout Plain Layout
10233 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10236 \begin_layout Plain Layout
10244 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10247 \begin_layout Plain Layout
10255 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10258 \begin_layout Plain Layout
10264 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10267 \begin_layout Plain Layout
10275 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10278 \begin_layout Plain Layout
10286 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10289 \begin_layout Plain Layout
10295 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10298 \begin_layout Plain Layout
10306 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10309 \begin_layout Plain Layout
10317 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10320 \begin_layout Plain Layout
10326 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10329 \begin_layout Plain Layout
10337 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10340 \begin_layout Plain Layout
10348 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10351 \begin_layout Plain Layout
10357 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10360 \begin_layout Plain Layout
10368 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10371 \begin_layout Plain Layout
10379 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10382 \begin_layout Plain Layout
10388 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10391 \begin_layout Plain Layout
10399 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10402 \begin_layout Plain Layout
10410 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10413 \begin_layout Plain Layout
10419 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10422 \begin_layout Plain Layout
10430 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10433 \begin_layout Plain Layout
10441 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10444 \begin_layout Plain Layout
10450 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10453 \begin_layout Plain Layout
10461 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10464 \begin_layout Plain Layout
10472 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10475 \begin_layout Plain Layout
10477 Fürst von Montecompatri, 11.
10478 Fürst von Sulmona und Vivaro, 10.
10479 Fürst von Rossano, 5.
10480 Herzog von Canemorte, 11.
10481 Herzog von Palombara, 5.
10482 Herzog von Castelchiodato,
10486 \begin_layout Plain Layout
10495 \begin_layout Plain Layout
10503 Herzog von Poggionativo, 11.
10504 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10505 Graf von Valinfreda, 11.
10506 Baron von Cropalati, 11.
10507 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10512 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10515 \begin_layout Plain Layout
10523 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10526 \begin_layout Plain Layout
10534 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10537 \begin_layout Plain Layout
10543 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10546 \begin_layout Plain Layout
10554 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10557 \begin_layout Plain Layout
10565 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10568 \begin_layout Plain Layout
10574 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10577 \begin_layout Plain Layout
10585 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10588 \begin_layout Plain Layout
10596 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10599 \begin_layout Plain Layout
10605 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10608 \begin_layout Plain Layout
10616 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10619 \begin_layout Plain Layout
10627 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10630 \begin_layout Plain Layout
10636 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10639 \begin_layout Plain Layout
10647 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10650 \begin_layout Plain Layout
10658 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10661 \begin_layout Plain Layout
10667 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10670 \begin_layout Plain Layout
10678 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10681 \begin_layout Plain Layout
10689 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10692 \begin_layout Plain Layout
10698 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10701 \begin_layout Plain Layout
10709 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10712 \begin_layout Plain Layout
10720 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10723 \begin_layout Plain Layout
10729 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10732 \begin_layout Plain Layout
10740 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10743 \begin_layout Plain Layout
10751 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10754 \begin_layout Plain Layout
10760 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
10763 \begin_layout Plain Layout
10777 \begin_layout Standard
10778 \begin_inset Newpage newpage
10784 \begin_layout Section
10785 Multiple Lines Columns and Rows
10788 \begin_layout Subsection
10789 Multiple Lines in Table Cells
10790 \begin_inset CommandInset label
10792 name "sub:Multiple-Lines-in"
10800 \begin_layout Plain Layout
10801 Multiple Lines in Table Cells
10810 \begin_layout Plain Layout
10819 \begin_layout Standard
10821 \begin_inset Float table
10827 \begin_layout Plain Layout
10828 \begin_inset Caption
10830 \begin_layout Plain Layout
10831 \begin_inset CommandInset label
10833 name "tab:Table-with-multiple"
10837 Table with multiple lines in cells
10845 \begin_layout Plain Layout
10847 \begin_inset Tabular
10848 <lyxtabular version="3" rows="3" columns="3">
10850 <column alignment="center" valignment="middle" width="2.5cm">
10851 <column alignment="center" valignment="middle" width="0">
10852 <column alignment="center" valignment="middle" width="0">
10854 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10857 \begin_layout Plain Layout
10859 \begin_inset Newline linebreak
10867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10870 \begin_layout Plain Layout
10876 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10879 \begin_layout Plain Layout
10887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10890 \begin_layout Plain Layout
10896 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
10899 \begin_layout Plain Layout
10905 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10908 \begin_layout Plain Layout
10916 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10919 \begin_layout Plain Layout
10925 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
10928 \begin_layout Plain Layout
10934 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10937 \begin_layout Plain Layout
10956 \begin_layout Standard
10957 Adjusting a fixed width for a column, enables to enter text as a paragraph
10958 with multiple lines and hyphenations.
10961 \begin_layout Standard
10963 \begin_inset space ~
10967 \begin_inset CommandInset ref
10969 reference "tab:Table-with-multiple"
10973 , create a 3×3 table, mark the first cell and right-click on it.
10974 In the appearing table dialog we set a cell width of 2.5
10975 \begin_inset space \thinspace{}
10978 cm and choose centered for the vertical and horizontal alignment.
10979 The vertical alignment is used for all cells of the row.
10980 As our text is smaller than than 2.5
10981 \begin_inset space \thinspace{}
10984 cm, only one line will appear.
10985 To get two lines, a justified line break (shortcut
10990 If the text is wider than the set cell width, it will automatically be
10991 broken to several lines.
10994 \begin_layout Standard
10995 If you have a long word in a cell with a fixed width, it cannot be hyphenated
10996 by LaTeX if it is the first entry.
10997 Therefore you need to insert something, to make the word not being the
10999 So add a horizontal space of 0
11000 \begin_inset space \thinspace{}
11003 pt before the word.
11004 As the space is zero, it doesn't change the output.
11006 \begin_inset space ~
11010 \begin_inset CommandInset ref
11012 reference "tab:Table-with-and"
11019 \begin_layout Standard
11020 \begin_inset Float table
11026 \begin_layout Plain Layout
11027 \begin_inset Caption
11029 \begin_layout Plain Layout
11030 \begin_inset CommandInset label
11032 name "tab:Table-with-and"
11036 Table with and without hyphenation
11044 \begin_layout Plain Layout
11045 \begin_inset space \hfill{}
11049 \begin_inset Tabular
11050 <lyxtabular version="3" rows="3" columns="3">
11052 <column alignment="center" valignment="middle" width="2.5cm">
11053 <column alignment="center" valignment="middle" width="0">
11054 <column alignment="center" valignment="middle" width="0">
11056 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11059 \begin_layout Plain Layout
11060 verylongtablecellword
11065 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11068 \begin_layout Plain Layout
11074 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11077 \begin_layout Plain Layout
11085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11088 \begin_layout Plain Layout
11094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11097 \begin_layout Plain Layout
11103 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11106 \begin_layout Plain Layout
11114 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11117 \begin_layout Plain Layout
11123 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11126 \begin_layout Plain Layout
11132 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11135 \begin_layout Plain Layout
11147 \begin_inset space \hfill{}
11151 \begin_inset Tabular
11152 <lyxtabular version="3" rows="3" columns="3">
11154 <column alignment="center" valignment="middle" width="2.5cm">
11155 <column alignment="center" valignment="middle" width="0">
11156 <column alignment="center" valignment="middle" width="0">
11158 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11161 \begin_layout Plain Layout
11162 \begin_inset space \hspace{}
11166 verylongtablecellword
11171 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11174 \begin_layout Plain Layout
11180 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11183 \begin_layout Plain Layout
11191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11194 \begin_layout Plain Layout
11200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11203 \begin_layout Plain Layout
11209 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11212 \begin_layout Plain Layout
11220 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11223 \begin_layout Plain Layout
11229 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11232 \begin_layout Plain Layout
11238 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11241 \begin_layout Plain Layout
11253 \begin_inset space \hfill{}
11264 \begin_layout Standard
11265 \begin_inset Newpage newpage
11271 \begin_layout Subsection
11273 \begin_inset CommandInset label
11275 name "sub:Multicolumns"
11283 \begin_layout Plain Layout
11293 \begin_layout Plain Layout
11294 Table ! Multicolumns
11302 \begin_layout Subsubsection
11306 \begin_layout Standard
11307 To span a cell over multiple columns, mark as much cells within a line that
11308 should be one spanned cell and use either the table-toolbar button
11309 \begin_inset Graphics
11310 filename ../images/tabular-feature_multicolumn.png
11312 scaleBeforeRotation
11318 Edit\SpecialChar \menuseparator
11319 Table\SpecialChar \menuseparator
11322 , or right click on the marked cells and choose multicolumn in the appearing
11323 table dialog under the tab
11330 \begin_layout Standard
11331 Multicolumns have there own cell settings.
11332 That means changing cell borders, cell alignment, and the width only affects
11334 Here is an example table with a multicolumn cell in the first row and one
11335 in the last row without the upper border:
11338 \begin_layout Standard
11340 \begin_inset Tabular
11341 <lyxtabular version="3" rows="3" columns="4">
11342 <features firstHeadTopDL="true" firstHeadBottomDL="true">
11343 <column alignment="center" valignment="top" width="0pt">
11344 <column alignment="center" valignment="middle" width="0">
11345 <column alignment="center" valignment="top" width="0in">
11346 <column alignment="center" valignment="top" width="0pt">
11348 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11351 \begin_layout Plain Layout
11357 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11360 \begin_layout Plain Layout
11366 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11369 \begin_layout Plain Layout
11375 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11378 \begin_layout Plain Layout
11386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11389 \begin_layout Plain Layout
11404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11407 \begin_layout Plain Layout
11413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11416 \begin_layout Plain Layout
11422 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11425 \begin_layout Plain Layout
11433 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11436 \begin_layout Plain Layout
11442 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11445 \begin_layout Plain Layout
11451 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11454 \begin_layout Plain Layout
11460 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11463 \begin_layout Plain Layout
11477 \begin_layout Subsubsection
11478 Multicolumn Calculations
11479 \begin_inset CommandInset label
11481 name "sub:Multicolumn-Calculations"
11489 \begin_layout Plain Layout
11490 Multicolumns ! Calculations
11498 \begin_layout Standard
11499 LyX supports multicolumns directly, but we have to take notice of the cell
11500 width of the columns spanned by the multicolumn cell.
11503 \begin_layout Standard
11504 \begin_inset Float table
11510 \begin_layout Plain Layout
11511 \begin_inset Caption
11513 \begin_layout Plain Layout
11514 \begin_inset CommandInset label
11516 name "tab:Table-with-centered"
11520 Table with centered multicolumn text above two columns that have exactly
11521 half the width of the multicolumn cell
11522 \begin_inset OptArg
11525 \begin_layout Plain Layout
11526 Perfect multicolumn table
11539 \begin_layout Plain Layout
11541 \begin_inset Tabular
11542 <lyxtabular version="3" rows="3" columns="3">
11544 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11545 <column alignment="center" valignment="middle" width="0">
11546 <column alignment="center" valignment="top" width="0">
11548 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11551 \begin_layout Plain Layout
11552 multiple lines multicolumn
11557 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11560 \begin_layout Plain Layout
11566 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11569 \begin_layout Plain Layout
11577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11580 \begin_layout Plain Layout
11586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11589 \begin_layout Plain Layout
11595 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11598 \begin_layout Plain Layout
11606 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11609 \begin_layout Plain Layout
11615 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11618 \begin_layout Plain Layout
11624 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11627 \begin_layout Plain Layout
11646 \begin_layout Standard
11647 To create for example Table
11648 \begin_inset space ~
11652 \begin_inset CommandInset ref
11654 reference "tab:Table-with-centered"
11658 , mark the first two cells in the first row of a 3×3 table and right-click
11660 Now choose for this cell
11669 \begin_inset space \thinspace{}
11672 cm in the table dialog.
11673 The spanned columns should have exactly half the width of the multicolumn
11674 cell, so that you would adjust a width of 1.25
11675 \begin_inset space \thinspace{}
11678 cm for the first column.
11679 The second column has then automatically a width of 1.25
11680 \begin_inset space \thinspace{}
11683 cm (multicolumn width - width of first column).
11684 This was done for Table
11685 \begin_inset space ~
11689 \begin_inset CommandInset ref
11691 reference "tab:Table-without-half"
11698 \begin_layout Standard
11699 \begin_inset Float table
11704 \begin_layout Plain Layout
11705 \begin_inset Caption
11707 \begin_layout Plain Layout
11708 \begin_inset CommandInset label
11710 name "tab:Table-without-half"
11714 Table where the spanned table columns have not exactly half the width of
11715 the multicolumn cell
11716 \begin_inset OptArg
11719 \begin_layout Plain Layout
11720 Imperfect multicolumn table
11733 \begin_layout Plain Layout
11735 \begin_inset Tabular
11736 <lyxtabular version="3" rows="3" columns="3">
11738 <column alignment="center" valignment="top" width="1.25cm">
11739 <column alignment="center" valignment="top" width="0">
11740 <column alignment="center" valignment="top" width="0">
11742 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
11745 \begin_layout Plain Layout
11746 multiple lines multicolumn
11751 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11754 \begin_layout Plain Layout
11760 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11763 \begin_layout Plain Layout
11771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11774 \begin_layout Plain Layout
11780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11783 \begin_layout Plain Layout
11789 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11792 \begin_layout Plain Layout
11800 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11803 \begin_layout Plain Layout
11809 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11812 \begin_layout Plain Layout
11818 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11821 \begin_layout Plain Layout
11840 \begin_layout Standard
11841 You can see that the first column has not the half width of the multicolumn
11842 cell, it is a bit bigger.
11843 The reason is that the given width of a cell
11844 \begin_inset Formula $W_{g}$
11847 is not its total width
11848 \begin_inset Formula $W_{\mathrm{tot}}$
11851 because a cell is always a bit larger than its given width.
11853 \begin_inset space ~
11857 \begin_inset CommandInset ref
11859 reference "cha:Explanation-of-Equation"
11863 explains it in detail.
11866 \begin_layout Standard
11867 The needed given width
11868 \begin_inset Formula $W_{g\, n}$
11875 columns are spanned can be calculated, so that each column has a total
11877 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
11881 \begin_inset Formula \begin{equation}
11882 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}\end{equation}
11889 \begin_layout Standard
11890 In our case we have
11891 \begin_inset Formula $n=2$
11895 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
11898 cm and the default values for the lengths, so that equation
11899 \begin_inset CommandInset ref
11906 \begin_inset Formula \begin{equation}
11907 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}\end{equation}
11914 \begin_layout Standard
11915 To enable calculations in LaTeX, the LaTeX-package
11919 must be loaded with the document preamble line
11923 \begin_layout Plain Layout
11924 LaTeX-packages ! calc
11932 \begin_layout Standard
11940 \begin_layout Standard
11941 LyX does not allow to calculate lengths in the width-field of the table
11943 Therefore you have to format the column by inserting a LaTeX-argument in
11945 Here is an overview about the arguments:
11948 \begin_layout Itemize
11953 creates cell with a fixed width, its text is vertically top-aligned
11956 \begin_layout Itemize
11961 creates cell with a fixed width, its text is vertically centered
11964 \begin_layout Itemize
11969 creates cell with a fixed width, its text is vertically bottom-aligned
11972 \begin_layout Standard
11973 By entering a LaTeX-argument, all cell settings set in the table dialog
11977 \begin_layout Standard
11978 \begin_inset Note Greyedout
11981 \begin_layout Plain Layout
11986 Due to a bug, LyX shows the overwritten settings anyway.
11994 \begin_layout Standard
11995 As the text should be horizontally centered, the command
12002 You can now enter the following LaTeX-argument for the first spanned column:
12005 \begin_layout Standard
12010 centering}m{1.25cm-6.2pt}
12013 \begin_layout Standard
12018 means, that the commands inside the braces are applied before the cell
12022 \begin_layout Standard
12023 Although we have chosen centered alignment for the text of the multicolumn
12024 cell, it is still left aligned.
12025 This is because LyX only applies the alignment to single columns.
12026 So we have to use for the multicolumn the LaTeX-argument
12029 \begin_layout Standard
12037 \begin_layout Subsection
12042 \begin_layout Plain Layout
12052 \begin_layout Plain Layout
12062 \begin_layout Plain Layout
12063 LaTeX-packages ! multirow
12071 \begin_layout Standard
12072 In contrary to multicolumns multirows are not yet supported by LyX so a
12073 bit of TeX-Code needs to be used.
12074 To use multirows load the LaTeX-package
12078 in your document preamble with the command
12081 \begin_layout Standard
12086 usepackage{multirow}
12089 \begin_layout Standard
12090 Multirows are created with the command
12093 \begin_layout Standard
12098 multirow{number of rows}{cell width}{cell entry}
12101 \begin_layout Standard
12102 To create the following table:
12105 \begin_layout Standard
12110 \begin_layout Plain Layout
12124 \begin_inset Tabular
12125 <lyxtabular version="3" rows="3" columns="3">
12127 <column alignment="center" valignment="top" width="0">
12128 <column alignment="center" valignment="top" width="0">
12129 <column alignment="center" valignment="top" width="0">
12131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12134 \begin_layout Plain Layout
12140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12143 \begin_layout Plain Layout
12149 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12152 \begin_layout Plain Layout
12160 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12163 \begin_layout Plain Layout
12167 \begin_layout Plain Layout
12171 multirow{2}{2.5cm}{
12180 \begin_layout Plain Layout
12192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12195 \begin_layout Plain Layout
12201 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12204 \begin_layout Plain Layout
12212 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
12215 \begin_layout Plain Layout
12221 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12224 \begin_layout Plain Layout
12230 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12233 \begin_layout Plain Layout
12248 \begin_layout Plain Layout
12264 \begin_layout Standard
12265 create a 3×3 table.
12266 To get rid of the line above the last cell in the first column, the cell
12267 is marked as multicolumn and the upper border is unset.
12268 The multirow is now created in the second row of the first column by inserting
12272 \begin_layout Standard
12277 multirow{2}{2.5cm}{
12280 \begin_layout Standard
12282 According to the command parameters the multirow spans now two rows and
12284 \begin_inset space \thinspace{}
12288 The content of the multirow cell follows outside the TeX-Code box and the
12289 command is finished with a right brace
12293 in another TeX-Code-box behind the text.
12296 \begin_layout Standard
12303 left-aligns its content by default.
12304 To override the default, renew the command
12313 \begin_layout Standard
12325 \begin_layout Standard
12326 in TeX-Code in the document preamble.
12327 Then all entries of multirow cells in the document are centered.
12328 If centering is only needed for several tables, you can renew the command
12329 in an TeX-Code box just before the table instead of the preamble.
12330 If the text should be right-aligned, replace
12343 To return to left-alignment
12352 \begin_layout Section
12354 \begin_inset CommandInset label
12356 name "sec:Formal-Tables"
12364 \begin_layout Plain Layout
12373 \begin_layout Standard
12374 Tables are often typeset in books similar to Table
12375 \begin_inset space ~
12379 \begin_inset CommandInset ref
12381 reference "tab:Example-booktabs-table"
12386 This kind of tables is called
12387 \begin_inset Quotes eld
12395 \begin_inset Quotes erd
12399 To make a table a formal table use the option
12407 tab of the table dialog.
12410 \begin_layout Standard
12411 \begin_inset Float table
12417 \begin_layout Plain Layout
12418 \begin_inset Caption
12420 \begin_layout Plain Layout
12421 \begin_inset CommandInset label
12423 name "tab:Example-booktabs-table"
12427 Example booktabs-table
12435 \begin_layout Plain Layout
12437 \begin_inset Tabular
12438 <lyxtabular version="3" rows="8" columns="4">
12439 <features booktabs="true">
12440 <column alignment="center" valignment="top" width="0">
12441 <column alignment="center" valignment="top" width="0">
12442 <column alignment="center" valignment="top" width="0">
12443 <column alignment="center" valignment="top" width="0">
12445 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12448 \begin_layout Plain Layout
12454 <cell alignment="center" valignment="top" topline="true" usebox="none">
12457 \begin_layout Plain Layout
12459 \begin_inset Formula $\,$
12467 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
12470 \begin_layout Plain Layout
12472 \begin_inset Formula $\,$
12480 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12483 \begin_layout Plain Layout
12491 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12494 \begin_layout Plain Layout
12498 \begin_layout Plain Layout
12511 \begin_layout Plain Layout
12520 Detector thickness [µm]
12525 <cell alignment="center" valignment="top" usebox="none">
12528 \begin_layout Plain Layout
12534 <cell alignment="center" valignment="top" usebox="none">
12537 \begin_layout Plain Layout
12543 <cell alignment="center" valignment="top" usebox="none">
12546 \begin_layout Plain Layout
12554 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12557 \begin_layout Plain Layout
12563 <cell alignment="center" valignment="top" topline="true" usebox="none">
12566 \begin_layout Plain Layout
12572 <cell alignment="center" valignment="top" topline="true" usebox="none">
12575 \begin_layout Plain Layout
12581 <cell alignment="center" valignment="top" topline="true" usebox="none">
12584 \begin_layout Plain Layout
12591 <row topspace="default">
12592 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12595 \begin_layout Plain Layout
12596 Spatial resolution [µm]
12601 <cell alignment="center" valignment="top" usebox="none">
12604 \begin_layout Plain Layout
12610 <cell alignment="center" valignment="top" usebox="none">
12613 \begin_layout Plain Layout
12619 <cell alignment="center" valignment="top" usebox="none">
12622 \begin_layout Plain Layout
12629 <row topspace="default">
12630 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12633 \begin_layout Plain Layout
12635 \begin_inset Formula $f_{\mathrm{max}}$
12643 <cell alignment="center" valignment="top" usebox="none">
12646 \begin_layout Plain Layout
12652 <cell alignment="center" valignment="top" usebox="none">
12655 \begin_layout Plain Layout
12661 <cell alignment="center" valignment="top" usebox="none">
12664 \begin_layout Plain Layout
12671 <row topspace="default">
12672 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12675 \begin_layout Plain Layout
12679 \begin_layout Plain Layout
12683 cmidrule(l{10pt}){1-1}
12688 LSF-spatial resolution
12693 <cell alignment="center" valignment="top" usebox="none">
12696 \begin_layout Plain Layout
12702 <cell alignment="center" valignment="top" usebox="none">
12705 \begin_layout Plain Layout
12711 <cell alignment="center" valignment="top" usebox="none">
12714 \begin_layout Plain Layout
12722 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12725 \begin_layout Plain Layout
12731 <cell alignment="center" valignment="top" usebox="none">
12734 \begin_layout Plain Layout
12740 <cell alignment="center" valignment="top" usebox="none">
12743 \begin_layout Plain Layout
12749 <cell alignment="center" valignment="top" usebox="none">
12752 \begin_layout Plain Layout
12760 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
12763 \begin_layout Plain Layout
12769 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12772 \begin_layout Plain Layout
12778 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12781 \begin_layout Plain Layout
12787 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
12790 \begin_layout Plain Layout
12809 \begin_layout Standard
12810 Spaces to table rows can be added using the
12814 tab of the table dialog as described in section
12815 \begin_inset space ~
12819 \begin_inset CommandInset ref
12821 reference "sub:Row-Spacing"
12828 \begin_layout Standard
12829 In contrary to normal tables, formal tables have no vertical table lines.
12830 The horizontal table lines can be set like for normal tables but they appear
12831 with different width in the output:
12832 \begin_inset Newline newline
12835 The first and the last table line have a default width of 0.08
12836 \begin_inset space \thinspace{}
12839 em while the other lines have a default width of 0.05
12840 \begin_inset space \thinspace{}
12846 \begin_layout Standard
12847 The default widths can be changed with the following preamble lines
12850 \begin_layout Standard
12860 \begin_inset Newline newline
12872 \begin_layout Standard
12873 This example is for the first line, the so called
12878 If you want to change the width for the last line, replace
12887 To change the width for the other lines replace
12896 You can use all units listed in appendix
12897 \begin_inset space ~
12901 \begin_inset CommandInset ref
12903 reference "cha:Units-available-in"
12910 \begin_layout Standard
12911 Lines that don't span over all table columns can be created by setting a
12912 table line for multicolumn cells.
12913 LyX will then internally use the command
12919 to create this line.
12923 \begin_layout Standard
12928 cmidrule[width](trim){startcol-endcol}
12931 \begin_layout Standard
12938 are are currently not supported by LyX so you have to use TeX-Code to be
12946 s can manually be created by inserting the command as TeX-Code as first
12947 cell entry of the first cell of a row.
12948 The line is then drawn in the output above the current row.
12951 \begin_layout Standard
12952 The default for the width is 0.03
12953 \begin_inset space \thinspace{}
12957 Startcol is the number of the column where the line starts and endcol the
12958 column number where the line ends.
12959 The endcol always needs to be specified, also when the line should span
12961 The optional parameter trim could be either
12969 where the trimwidth is also optional.
12970 Using for example the parameter
12974 means that the line is trimmed from its left end by 2
12975 \begin_inset space \thinspace{}
12979 If you don't specify the trimwidth the lines are trimmed by the default
12981 \begin_inset space \thinspace{}
12987 \begin_layout Standard
12988 \begin_inset VSpace bigskip
12992 \begin_inset space ~
12996 \begin_inset CommandInset ref
12998 reference "tab:Example-booktabs-table"
13002 was created using the commands
13005 \begin_layout Standard
13015 \begin_layout Standard
13016 at the beginning of the in the second row and
13019 \begin_layout Standard
13024 cmidrule(l{10pt}){1-1}
13027 \begin_layout Standard
13031 \begin_layout Standard
13032 \begin_inset VSpace bigskip
13038 \begin_layout Standard
13039 You might want to have overlapping
13046 \begin_inset space ~
13050 \begin_inset CommandInset ref
13052 reference "tab:Special-booktabs-table"
13057 This can be achieved with the TeX-Code command
13060 \begin_layout Standard
13068 \begin_layout Standard
13069 The command that was used for the second row of Table
13070 \begin_inset space ~
13074 \begin_inset CommandInset ref
13076 reference "tab:Special-booktabs-table"
13083 \begin_layout Standard
13097 \begin_layout Standard
13098 The command for the sixth row is
13101 \begin_layout Standard
13113 \begin_layout Standard
13114 \begin_inset VSpace bigskip
13120 \begin_layout Standard
13121 If you are anyway not satisfied with the border line spacing, you can use
13122 the following command to produce lines that span over all table columns
13127 \begin_layout Standard
13132 specialrule{width}{space above}{space below}
13135 \begin_layout Standard
13136 For more informations about these specialties, we refer to the manual of
13142 \begin_inset CommandInset citation
13152 \begin_layout Plain Layout
13153 LaTeX-packages ! booktabs
13161 \begin_layout Standard
13162 \begin_inset Float table
13168 \begin_layout Plain Layout
13169 \begin_inset Caption
13171 \begin_layout Plain Layout
13172 \begin_inset CommandInset label
13174 name "tab:Special-booktabs-table"
13178 Special booktabs-table
13186 \begin_layout Plain Layout
13188 \begin_inset Tabular
13189 <lyxtabular version="3" rows="8" columns="4">
13190 <features booktabs="true">
13191 <column alignment="center" valignment="top" width="0">
13192 <column alignment="center" valignment="top" width="0">
13193 <column alignment="center" valignment="top" width="0">
13194 <column alignment="center" valignment="top" width="0">
13196 <cell alignment="center" valignment="top" topline="true" usebox="none">
13199 \begin_layout Plain Layout
13205 <cell alignment="center" valignment="top" topline="true" usebox="none">
13208 \begin_layout Plain Layout
13210 \begin_inset space \thinspace{}
13218 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
13221 \begin_layout Plain Layout
13223 \begin_inset space \thinspace{}
13231 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13234 \begin_layout Plain Layout
13242 <cell alignment="center" valignment="top" usebox="none">
13245 \begin_layout Plain Layout
13249 \begin_layout Plain Layout
13262 \begin_layout Plain Layout
13275 \begin_layout Plain Layout
13288 \begin_layout Plain Layout
13297 Detector thickness [µm]
13302 <cell alignment="center" valignment="top" usebox="none">
13305 \begin_layout Plain Layout
13311 <cell alignment="center" valignment="top" usebox="none">
13314 \begin_layout Plain Layout
13320 <cell alignment="center" valignment="top" usebox="none">
13323 \begin_layout Plain Layout
13331 <cell alignment="center" valignment="top" topline="true" usebox="none">
13334 \begin_layout Plain Layout
13340 <cell alignment="center" valignment="top" topline="true" usebox="none">
13343 \begin_layout Plain Layout
13349 <cell alignment="center" valignment="top" topline="true" usebox="none">
13352 \begin_layout Plain Layout
13358 <cell alignment="center" valignment="top" topline="true" usebox="none">
13361 \begin_layout Plain Layout
13368 <row topspace="default">
13369 <cell alignment="center" valignment="top" usebox="none">
13372 \begin_layout Plain Layout
13373 Spatial resolution [µm]
13378 <cell alignment="center" valignment="top" usebox="none">
13381 \begin_layout Plain Layout
13387 <cell alignment="center" valignment="top" usebox="none">
13390 \begin_layout Plain Layout
13396 <cell alignment="center" valignment="top" usebox="none">
13399 \begin_layout Plain Layout
13406 <row topspace="default">
13407 <cell alignment="center" valignment="top" usebox="none">
13410 \begin_layout Plain Layout
13412 \begin_inset Formula $f_{\mathrm{max}}$
13420 <cell alignment="center" valignment="top" usebox="none">
13423 \begin_layout Plain Layout
13429 <cell alignment="center" valignment="top" usebox="none">
13432 \begin_layout Plain Layout
13438 <cell alignment="center" valignment="top" usebox="none">
13441 \begin_layout Plain Layout
13449 <cell alignment="center" valignment="top" topline="true" usebox="none">
13452 \begin_layout Plain Layout
13456 \begin_layout Plain Layout
13469 \begin_layout Plain Layout
13478 LSF-spatial resolution
13483 <cell alignment="center" valignment="top" topline="true" usebox="none">
13486 \begin_layout Plain Layout
13492 <cell alignment="center" valignment="top" topline="true" usebox="none">
13495 \begin_layout Plain Layout
13501 <cell alignment="center" valignment="top" topline="true" usebox="none">
13504 \begin_layout Plain Layout
13512 <cell alignment="center" valignment="top" usebox="none">
13515 \begin_layout Plain Layout
13521 <cell alignment="center" valignment="top" usebox="none">
13524 \begin_layout Plain Layout
13530 <cell alignment="center" valignment="top" usebox="none">
13533 \begin_layout Plain Layout
13539 <cell alignment="center" valignment="top" usebox="none">
13542 \begin_layout Plain Layout
13550 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13553 \begin_layout Plain Layout
13559 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13562 \begin_layout Plain Layout
13568 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13571 \begin_layout Plain Layout
13577 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13580 \begin_layout Plain Layout
13599 \begin_layout Section
13600 Vertical Table Alignment
13604 \begin_layout Plain Layout
13613 \begin_layout Standard
13614 To align tables vertically in a text line the table must be inside a box.
13615 The box can then be vertically aligned as described in section
13616 \begin_inset space ~
13620 \begin_inset CommandInset ref
13622 reference "sec:Box-Dialog"
13629 \begin_layout Standard
13630 In the following example the tables are inside a minipage
13634 \begin_layout Plain Layout
13635 Minipages are described in section
13636 \begin_inset space ~
13640 \begin_inset CommandInset ref
13642 reference "sec:Minipages"
13651 box that has a width of 15
13652 \begin_inset space \thinspace{}
13658 \begin_layout Itemize
13660 \begin_inset Box Frameless
13669 height_special "totalheight"
13672 \begin_layout Plain Layout
13673 \begin_inset Tabular
13674 <lyxtabular version="3" rows="3" columns="3">
13676 <column alignment="center" valignment="top" width="0">
13677 <column alignment="center" valignment="top" width="0">
13678 <column alignment="center" valignment="top" width="0">
13680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13683 \begin_layout Plain Layout
13689 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13692 \begin_layout Plain Layout
13698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13701 \begin_layout Plain Layout
13709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13712 \begin_layout Plain Layout
13718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13721 \begin_layout Plain Layout
13727 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13730 \begin_layout Plain Layout
13738 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13741 \begin_layout Plain Layout
13747 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13750 \begin_layout Plain Layout
13756 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13759 \begin_layout Plain Layout
13779 \begin_layout Plain Layout
13791 \begin_inset Box Frameless
13800 height_special "totalheight"
13803 \begin_layout Plain Layout
13804 \begin_inset Tabular
13805 <lyxtabular version="3" rows="3" columns="3">
13807 <column alignment="center" valignment="top" width="0">
13808 <column alignment="center" valignment="top" width="0">
13809 <column alignment="center" valignment="top" width="0">
13811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13814 \begin_layout Plain Layout
13820 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13823 \begin_layout Plain Layout
13829 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13832 \begin_layout Plain Layout
13840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13843 \begin_layout Plain Layout
13849 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13852 \begin_layout Plain Layout
13858 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13861 \begin_layout Plain Layout
13869 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13872 \begin_layout Plain Layout
13878 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13881 \begin_layout Plain Layout
13887 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13890 \begin_layout Plain Layout
13910 \begin_layout Plain Layout
13920 \begin_layout Itemize
13922 \begin_inset Box Frameless
13931 height_special "totalheight"
13934 \begin_layout Plain Layout
13935 \begin_inset Tabular
13936 <lyxtabular version="3" rows="3" columns="3">
13938 <column alignment="center" valignment="top" width="0">
13939 <column alignment="center" valignment="top" width="0">
13940 <column alignment="center" valignment="top" width="0">
13942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13945 \begin_layout Plain Layout
13951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13954 \begin_layout Plain Layout
13960 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13963 \begin_layout Plain Layout
13971 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13974 \begin_layout Plain Layout
13980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
13983 \begin_layout Plain Layout
13989 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13992 \begin_layout Plain Layout
14000 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14003 \begin_layout Plain Layout
14009 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14012 \begin_layout Plain Layout
14018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14021 \begin_layout Plain Layout
14040 \begin_layout Itemize
14042 \begin_inset Box Frameless
14051 height_special "totalheight"
14054 \begin_layout Plain Layout
14055 \begin_inset Tabular
14056 <lyxtabular version="3" rows="3" columns="3">
14058 <column alignment="center" valignment="top" width="0">
14059 <column alignment="center" valignment="top" width="0">
14060 <column alignment="center" valignment="top" width="0">
14062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14065 \begin_layout Plain Layout
14071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14074 \begin_layout Plain Layout
14080 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14083 \begin_layout Plain Layout
14091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14094 \begin_layout Plain Layout
14100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14103 \begin_layout Plain Layout
14109 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14112 \begin_layout Plain Layout
14120 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14123 \begin_layout Plain Layout
14129 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14132 \begin_layout Plain Layout
14138 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14141 \begin_layout Plain Layout
14161 \begin_layout Plain Layout
14173 \begin_inset Box Frameless
14182 height_special "totalheight"
14185 \begin_layout Plain Layout
14186 \begin_inset Tabular
14187 <lyxtabular version="3" rows="3" columns="3">
14189 <column alignment="center" valignment="top" width="0">
14190 <column alignment="center" valignment="top" width="0">
14191 <column alignment="center" valignment="top" width="0">
14193 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14196 \begin_layout Plain Layout
14202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14205 \begin_layout Plain Layout
14211 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14214 \begin_layout Plain Layout
14222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14225 \begin_layout Plain Layout
14231 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14234 \begin_layout Plain Layout
14240 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14243 \begin_layout Plain Layout
14251 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14254 \begin_layout Plain Layout
14260 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14263 \begin_layout Plain Layout
14269 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14272 \begin_layout Plain Layout
14292 \begin_layout Plain Layout
14302 \begin_layout Standard
14303 As you can see, the content of the first and last table row is not correctly
14304 aligned with the text line where the table is in.
14305 To get this alignment, the minipage box must be set into a raisebox
14309 \begin_layout Plain Layout
14310 Raiseboxes are described in section
14311 \begin_inset space ~
14315 \begin_inset CommandInset ref
14317 reference "sub:Vertical-Alignment"
14327 In the example above the second table in the first item is aligned using
14328 the TeX-Code-command
14331 \begin_layout Standard
14341 \begin_layout Standard
14343 Behind the box the closing brace
14347 is inserted as TeX-Code.
14348 For the second table in the last item the command
14351 \begin_layout Standard
14361 \begin_layout Standard
14365 \begin_layout Standard
14366 \begin_inset Note Greyedout
14369 \begin_layout Plain Layout
14374 The alignment of the table row content to the surrounding text line is
14376 The needed factor of the
14382 command for this alignment depends on the document font, the font size,
14383 and the table line thickness.
14391 \begin_layout Section
14393 \begin_inset CommandInset label
14395 name "sec:Colored-Tables"
14403 \begin_layout Plain Layout
14412 \begin_layout Subsection
14417 \begin_layout Plain Layout
14418 Table Color ! for Cells
14427 \begin_layout Plain Layout
14428 Color ! for Table Cells
14436 \begin_layout Standard
14437 \begin_inset Float table
14443 \begin_layout Plain Layout
14444 \begin_inset Caption
14446 \begin_layout Plain Layout
14447 \begin_inset CommandInset label
14449 name "tab:Table-colored-without"
14453 Table colored without using the package
14458 \begin_inset OptArg
14461 \begin_layout Plain Layout
14462 Table without colortbl
14475 \begin_layout Plain Layout
14477 \begin_inset Tabular
14478 <lyxtabular version="3" rows="3" columns="3">
14480 <column alignment="center" valignment="top" width="0">
14481 <column alignment="center" valignment="top" width="0">
14482 <column alignment="center" valignment="top" width="0">
14484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14487 \begin_layout Plain Layout
14495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14498 \begin_layout Plain Layout
14506 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14509 \begin_layout Plain Layout
14519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14522 \begin_layout Plain Layout
14530 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14533 \begin_layout Plain Layout
14541 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14544 \begin_layout Plain Layout
14554 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14557 \begin_layout Plain Layout
14565 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14568 \begin_layout Plain Layout
14576 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14579 \begin_layout Plain Layout
14600 \begin_layout Standard
14601 If you only need colored text, mark the cells and choose a color in the
14604 Edit\SpecialChar \menuseparator
14606 \begin_inset space ~
14612 This was used to create Table
14613 \begin_inset space ~
14617 \begin_inset CommandInset ref
14619 reference "tab:Table-colored-without"
14624 In any other case you have to use the LaTeX-package
14632 \begin_layout Plain Layout
14633 LaTeX-packages ! colortbl
14641 \begin_layout Standard
14645 \begin_layout Plain Layout
14655 \begin_inset Note Note
14658 \begin_layout Plain Layout
14659 The following section part will only be displayed when the LaTeX-package
14672 \begin_layout Standard
14673 To create colored tables,
14677 must be loaded in the preamble with the line
14680 \begin_layout Standard
14685 usepackage{colortbl}
14688 \begin_layout Standard
14689 The color of a column is adjusted with the command
14692 \begin_layout Standard
14697 columncolor{name of color}
14700 \begin_layout Standard
14706 More about the command
14710 is described in section
14711 \begin_inset space ~
14715 \begin_inset CommandInset ref
14717 reference "sub:Multicolumn-Calculations"
14724 \begin_layout Standard
14725 The following color names are predefined:
14728 \begin_layout Standard
14762 \begin_layout Standard
14763 \begin_inset VSpace medskip
14769 \begin_layout Standard
14770 You can also define your own color with the command
14773 \begin_layout Standard
14778 definecolor{color name}{color model}{color values}
14781 \begin_layout Standard
14782 The color model can be
14785 \begin_layout Labeling
14786 \labelwidthstring 00.00.0000
14787 cmyk: cyan, magenta, yellow, black
14790 \begin_layout Labeling
14791 \labelwidthstring 00.00.0000
14792 rgb: red, green blue
14795 \begin_layout Labeling
14796 \labelwidthstring 00.00.0000
14800 \begin_layout Standard
14801 and the color values are comma separated numbers between 0 and 1 describing
14802 the factor for the corresponding color of the color model.
14805 \begin_layout Standard
14807 \begin_inset space \thinspace{}
14811 \begin_inset space ~
14818 " in the preamble with
14821 \begin_layout Standard
14826 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
14829 \begin_layout Standard
14837 \begin_layout Standard
14842 definecolor{lightgray}{gray}{0.8}
14845 \begin_layout Standard
14846 \begin_inset VSpace medskip
14852 \begin_layout Standard
14853 Lines are colored with the command
14856 \begin_layout Standard
14861 rowcolor{name of color}
14864 \begin_layout Standard
14865 and cells are colored with the command
14868 \begin_layout Standard
14873 cellcolor{name of color}
14876 \begin_layout Standard
14877 Both commands are inserted at the beginning of a cell as TeX-Code.
14880 \begin_layout Standard
14881 To color characters in the table, mark the cells and use the LyX menu
14883 Edit\SpecialChar \menuseparator
14885 \begin_inset space ~
14891 If a cell contains TeX-Code mark only the characters, otherwise the colored
14892 TeX-Code will cause LaTeX-errors.
14895 \begin_layout Standard
14896 \begin_inset Note Greyedout
14899 \begin_layout Plain Layout
14904 Not all DVI-viewers are able to display self-defined colors.
14912 \begin_layout Standard
14913 \begin_inset VSpace bigskip
14919 \begin_layout Standard
14921 \begin_inset space ~
14925 \begin_inset CommandInset ref
14927 reference "tab:Table-colored-using"
14931 do the following: The color of the first column should be
14939 \begin_layout Standard
14944 columncolor{darkgreen}
14949 \begin_layout Standard
14950 as LaTeX-argument for this column.
14951 The first row should be blue, therefore the TeX-Code command
14954 \begin_layout Standard
14962 \begin_layout Standard
14963 is inserted to the first cell of this row.
14964 Note that this overwrites the column color for the first cell.
14965 The last cell of the last row is colored magenta by inserting the TeX-Code
14969 \begin_layout Standard
14977 \begin_layout Standard
14978 The characters could now be colored using the menu
14980 Edit\SpecialChar \menuseparator
14982 \begin_inset space ~
14990 \begin_layout Standard
14991 \begin_inset Float table
14997 \begin_layout Plain Layout
14998 \begin_inset Caption
15000 \begin_layout Plain Layout
15001 \begin_inset CommandInset label
15003 name "tab:Table-colored-using"
15007 Table colored using the package
15012 \begin_inset OptArg
15015 \begin_layout Plain Layout
15016 Table with colortbl
15029 \begin_layout Plain Layout
15031 \begin_inset Tabular
15032 <lyxtabular version="3" rows="3" columns="3">
15034 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15035 <column alignment="center" valignment="top" width="0">
15036 <column alignment="center" valignment="top" width="0">
15038 <cell alignment="center" valignment="top" usebox="none">
15041 \begin_layout Plain Layout
15045 \begin_layout Plain Layout
15061 <cell alignment="center" valignment="top" usebox="none">
15064 \begin_layout Plain Layout
15072 <cell alignment="center" valignment="top" usebox="none">
15075 \begin_layout Plain Layout
15085 <cell alignment="center" valignment="top" usebox="none">
15088 \begin_layout Plain Layout
15096 <cell alignment="center" valignment="top" usebox="none">
15099 \begin_layout Plain Layout
15107 <cell alignment="center" valignment="top" usebox="none">
15110 \begin_layout Plain Layout
15120 <cell alignment="center" valignment="top" usebox="none">
15123 \begin_layout Plain Layout
15131 <cell alignment="center" valignment="top" usebox="none">
15134 \begin_layout Plain Layout
15142 <cell alignment="center" valignment="top" usebox="none">
15145 \begin_layout Plain Layout
15149 \begin_layout Plain Layout
15178 \begin_layout Standard
15182 \begin_layout Plain Layout
15192 \begin_inset Note Note
15195 \begin_layout Plain Layout
15196 The following will be displayed when the LaTeX-package
15208 \begin_layout Standard
15209 You need to install the package
15213 to see the content of this section in the output.
15216 \begin_layout Standard
15220 \begin_layout Plain Layout
15232 \begin_layout Subsection
15237 \begin_layout Plain Layout
15238 Table Color ! for Lines
15247 \begin_layout Plain Layout
15248 Color ! for Table Lines
15256 \begin_layout Standard
15257 As described in section
15258 \begin_inset space ~
15262 \begin_inset CommandInset ref
15264 reference "sub:Line-Thickness"
15268 , the line thickness for all lines in a table can be adjusted with the length
15277 \begin_inset space \thinspace{}
15280 pt for all tables of this section.
15284 \begin_layout Plain Layout
15290 arrayrulewidth}{1.5pt}
15298 \begin_layout Standard
15299 To color vertical lines for example with green, create the following column
15300 format in the document preamble, according to the description in section
15301 \begin_inset space ~
15305 \begin_inset CommandInset ref
15307 reference "sub:Customized-Format"
15314 \begin_layout Standard
15319 newcolumntype{W}{!{
15326 \begin_layout Standard
15328 \begin_inset space ~
15332 \begin_inset CommandInset ref
15334 reference "tab:Table-with-vertical-colored"
15342 was used for the last column and
15346 for the other columns.
15349 \begin_layout Standard
15350 If you want to have several colors, define more column formats.
15353 \begin_layout Standard
15354 \begin_inset Float table
15360 \begin_layout Plain Layout
15361 \begin_inset Caption
15363 \begin_layout Plain Layout
15364 \begin_inset CommandInset label
15366 name "tab:Table-with-vertical-colored"
15370 Table with colored vertical lines
15378 \begin_layout Plain Layout
15380 \begin_inset Tabular
15381 <lyxtabular version="3" rows="3" columns="3">
15383 <column alignment="center" valignment="top" width="0" special="Wc">
15384 <column alignment="center" valignment="top" width="0" special="Wc">
15385 <column alignment="center" valignment="top" width="0" special="WcW">
15387 <cell alignment="center" valignment="top" topline="true" usebox="none">
15390 \begin_layout Plain Layout
15396 <cell alignment="center" valignment="top" topline="true" usebox="none">
15399 \begin_layout Plain Layout
15405 <cell alignment="center" valignment="top" topline="true" usebox="none">
15408 \begin_layout Plain Layout
15416 <cell alignment="center" valignment="top" topline="true" usebox="none">
15419 \begin_layout Plain Layout
15425 <cell alignment="center" valignment="top" topline="true" usebox="none">
15428 \begin_layout Plain Layout
15434 <cell alignment="center" valignment="top" topline="true" usebox="none">
15437 \begin_layout Plain Layout
15445 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15448 \begin_layout Plain Layout
15454 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15457 \begin_layout Plain Layout
15463 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15466 \begin_layout Plain Layout
15485 \begin_layout Standard
15486 \begin_inset VSpace bigskip
15489 To color horizontal lines for example with red, like in Table
15490 \begin_inset space ~
15494 \begin_inset CommandInset ref
15496 reference "tab:Table-with-horizontal-colored"
15500 , insert these commands in TeX-Code before the table or table float:
15503 \begin_layout Standard
15513 \begin_inset Newline newline
15521 \begin_inset Newline newline
15528 \begin_layout Plain Layout
15539 arrayrulecolor{red}
15543 arrayrulecolor{black}}
15546 \begin_layout Standard
15550 \begin_layout Plain Layout
15561 \begin_layout Plain Layout
15570 \begin_layout Plain Layout
15574 arrayrulecolor{red}
15578 arrayrulecolor{black}}
15584 \begin_inset Float table
15590 \begin_layout Plain Layout
15591 \begin_inset Caption
15593 \begin_layout Plain Layout
15594 \begin_inset CommandInset label
15596 name "tab:Table-with-horizontal-colored"
15600 Table with colored horizontal lines
15608 \begin_layout Plain Layout
15610 \begin_inset Tabular
15611 <lyxtabular version="3" rows="3" columns="3">
15613 <column alignment="center" valignment="top" width="0">
15614 <column alignment="center" valignment="top" width="0">
15615 <column alignment="center" valignment="top" width="0">
15617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15620 \begin_layout Plain Layout
15626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15629 \begin_layout Plain Layout
15635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15638 \begin_layout Plain Layout
15646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15649 \begin_layout Plain Layout
15655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15658 \begin_layout Plain Layout
15664 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15667 \begin_layout Plain Layout
15675 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15678 \begin_layout Plain Layout
15684 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15687 \begin_layout Plain Layout
15693 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15696 \begin_layout Plain Layout
15715 \begin_layout Standard
15716 To return to the default line color black, insert this command in TeX-Code
15717 behind the table or table float:
15720 \begin_layout Standard
15732 \begin_layout Standard
15734 \begin_inset space ~
15738 \begin_inset CommandInset ref
15740 reference "tab:Table-with-colored"
15744 is an example with colored vertical and horizontal lines.
15747 \begin_layout Standard
15748 \begin_inset Float table
15754 \begin_layout Plain Layout
15755 \begin_inset Caption
15757 \begin_layout Plain Layout
15758 \begin_inset CommandInset label
15760 name "tab:Table-with-colored"
15764 Table with colored lines
15772 \begin_layout Plain Layout
15774 \begin_inset Tabular
15775 <lyxtabular version="3" rows="3" columns="3">
15777 <column alignment="center" valignment="top" width="0" special="Wc">
15778 <column alignment="center" valignment="top" width="0" special="Wc">
15779 <column alignment="center" valignment="top" width="0" special="WcW">
15781 <cell alignment="center" valignment="top" topline="true" usebox="none">
15784 \begin_layout Plain Layout
15790 <cell alignment="center" valignment="top" topline="true" usebox="none">
15793 \begin_layout Plain Layout
15799 <cell alignment="center" valignment="top" topline="true" usebox="none">
15802 \begin_layout Plain Layout
15810 <cell alignment="center" valignment="top" topline="true" usebox="none">
15813 \begin_layout Plain Layout
15819 <cell alignment="center" valignment="top" topline="true" usebox="none">
15822 \begin_layout Plain Layout
15828 <cell alignment="center" valignment="top" topline="true" usebox="none">
15831 \begin_layout Plain Layout
15838 <row topspace="default">
15839 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15842 \begin_layout Plain Layout
15848 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15851 \begin_layout Plain Layout
15857 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15860 \begin_layout Plain Layout
15879 \begin_layout Standard
15883 \begin_layout Plain Layout
15899 \begin_layout Standard
15903 \begin_layout Plain Layout
15909 arrayrulewidth}{0.4pt}
15917 \begin_layout Section
15918 Table Customization
15922 \begin_layout Plain Layout
15923 Table Customization
15932 \begin_layout Plain Layout
15933 Table ! Customization
15941 \begin_layout Subsection
15943 \begin_inset CommandInset label
15945 name "sub:Row-Spacing"
15953 \begin_layout Plain Layout
15954 Table Customization ! Row Spacing
15962 \begin_layout Standard
15963 You can add vertical space to table rows in the
15967 tab of the table dialog.
15968 You find there three possibilities:
15971 \begin_layout Description
15973 \begin_inset space ~
15977 \begin_inset space ~
15980 row will add space above the characters of the table row.
15981 If the table is a formal table
15985 \begin_layout Plain Layout
15986 Formal tables are explained in section
15987 \begin_inset space ~
15991 \begin_inset CommandInset ref
15993 reference "sec:Formal-Tables"
16002 LyX will insert as default 0.5
16003 \begin_inset space \thinspace{}
16007 For normal tables the inserted space will unfortunately destroy the vertical
16008 table lines as in the following table:
16009 \begin_inset VSpace medskip
16013 \begin_inset Newline newline
16017 \begin_inset space \hspace*{}
16022 \begin_inset space \hfill{}
16026 \begin_inset Tabular
16027 <lyxtabular version="3" rows="3" columns="1">
16029 <column alignment="center" valignment="top" width="0">
16031 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16034 \begin_layout Plain Layout
16041 <row topspace="3mm">
16042 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16045 \begin_layout Plain Layout
16047 \begin_inset space \thinspace{}
16050 mm space top of row
16057 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16060 \begin_layout Plain Layout
16072 \begin_inset space \hfill{}
16076 \begin_inset space \hspace*{}
16081 \begin_inset VSpace medskip
16085 \begin_inset Newline newline
16088 So inserting space to the top of row for normal tables is only useful when
16089 you don't have vertical lines.
16092 \begin_layout Description
16094 \begin_inset space ~
16098 \begin_inset space ~
16101 row will add space below the characters of the table row.
16102 If the table is a formal table LyX will insert as default 0.5
16103 \begin_inset space \thinspace{}
16106 em space, for normal tables the default size is 2
16107 \begin_inset space \thinspace{}
16113 \begin_layout Description
16115 \begin_inset space ~
16118 rows adds space between the current and the following row.
16119 If the table is a formal table LyX will insert as default 0.5
16120 \begin_inset space \thinspace{}
16124 For normal tables the inserted space will unfortunately destroy the vertical
16125 table lines as in the following table:
16126 \begin_inset VSpace medskip
16130 \begin_inset Newline newline
16134 \begin_inset space \hspace*{}
16139 \begin_inset space \hfill{}
16143 \begin_inset Tabular
16144 <lyxtabular version="3" rows="3" columns="1">
16146 <column alignment="center" valignment="top" width="0">
16148 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16151 \begin_layout Plain Layout
16158 <row interlinespace="3mm">
16159 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16162 \begin_layout Plain Layout
16163 \begin_inset Formula $\downarrow$
16167 \begin_inset space \thinspace{}
16170 mm space between row
16171 \begin_inset Formula $\downarrow$
16181 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16184 \begin_layout Plain Layout
16185 \begin_inset Formula $\uparrow$
16189 \begin_inset space \thinspace{}
16192 mm space between row
16193 \begin_inset Formula $\uparrow$
16207 \begin_inset space \hfill{}
16211 \begin_inset space \hspace*{}
16216 \begin_inset VSpace medskip
16220 \begin_inset Newline newline
16223 So inserting space between rows for normal tables is only useful when you
16224 don't have vertical lines.
16227 \begin_layout Standard
16228 \begin_inset VSpace bigskip
16231 When you want to add extra height to all cells of all tables, you can do
16232 this with the following preamble lines:
16235 \begin_layout Standard
16240 @ifundefined{extrarowheight}
16241 \begin_inset Newline newline
16248 \begin_layout Plain Layout
16259 usepackage{array}}{}
16260 \begin_inset Newline newline
16267 extrarowheight}{height}
16270 \begin_layout Standard
16271 But this has the disadvantage that the cell texts are no longer exactly
16272 vertically centered.
16277 will be loaded automatically by LyX when you use self defined table formats.
16278 To avoid that it is loaded twice the command
16284 is used in the above command.)
16287 \begin_layout Subsection
16288 Special Cell Alignment
16292 \begin_layout Plain Layout
16293 Table Customization ! Special Cell Alignment
16301 \begin_layout Standard
16302 Sometimes it looks better when the cell entries of a column are aligned
16303 with a special character, e.
16304 \begin_inset space \thinspace{}
16308 \begin_inset space ~
16311 with the decimal separator as in Table
16312 \begin_inset space ~
16316 \begin_inset CommandInset ref
16318 reference "tab:Table-cells-of"
16325 \begin_layout Standard
16326 \begin_inset Float table
16332 \begin_layout Plain Layout
16333 \begin_inset Caption
16335 \begin_layout Plain Layout
16336 \begin_inset CommandInset label
16338 name "tab:Table-cells-of"
16342 Table cells of a column aligned with the decimal separator.
16350 \begin_layout Plain Layout
16352 \begin_inset Tabular
16353 <lyxtabular version="3" rows="4" columns="2">
16355 <column alignment="right" valignment="top" width="0">
16356 <column alignment="left" valignment="top" width="0" special="@{}l">
16358 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16361 \begin_layout Plain Layout
16367 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16370 \begin_layout Plain Layout
16378 <cell alignment="center" valignment="top" usebox="none">
16381 \begin_layout Plain Layout
16387 <cell alignment="center" valignment="top" usebox="none">
16390 \begin_layout Plain Layout
16398 <cell alignment="center" valignment="top" usebox="none">
16401 \begin_layout Plain Layout
16407 <cell alignment="center" valignment="top" usebox="none">
16410 \begin_layout Plain Layout
16418 <cell alignment="center" valignment="top" usebox="none">
16421 \begin_layout Plain Layout
16427 <cell alignment="center" valignment="top" usebox="none">
16430 \begin_layout Plain Layout
16449 \begin_layout Standard
16450 This table was created with a 4×2 table.
16451 The heading is a centered multicolumn.
16452 The first column is right-aligned and contains the digits before the decimal
16453 point and the decimal point.
16454 The second column is left aligned and contains the digits after the decimal
16456 To omit the space that is normally between two table columns, use the following
16457 LaTeX-argument for the second column:
16460 \begin_layout Standard
16466 \begin_layout Standard
16468 \begin_inset space ~
16472 \begin_inset CommandInset ref
16474 reference "tab:Several-table-cell"
16478 shows some example alignments.
16479 For the alignment with the relation sign, you must add the second smallest
16480 math-space at the beginning of the last column to get the correct space
16481 surrounding the relation sign.
16484 \begin_layout Standard
16485 \begin_inset Float table
16490 \begin_layout Plain Layout
16491 \begin_inset Caption
16493 \begin_layout Plain Layout
16494 \begin_inset CommandInset label
16496 name "tab:Several-table-cell"
16500 Several table cell alignments.
16508 \begin_layout Plain Layout
16510 \begin_inset Tabular
16511 <lyxtabular version="3" rows="4" columns="6">
16513 <column alignment="right" valignment="top" width="0">
16514 <column alignment="left" valignment="top" width="0" special="@{}l">
16515 <column alignment="right" valignment="top" width="0">
16516 <column alignment="left" valignment="top" width="0" special="@{}l">
16517 <column alignment="right" valignment="top" width="0">
16518 <column alignment="left" valignment="top" width="0" special="@{}l">
16520 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16523 \begin_layout Plain Layout
16529 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16532 \begin_layout Plain Layout
16538 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16541 \begin_layout Plain Layout
16547 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16550 \begin_layout Plain Layout
16556 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16559 \begin_layout Plain Layout
16565 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16568 \begin_layout Plain Layout
16576 <cell alignment="center" valignment="top" usebox="none">
16579 \begin_layout Plain Layout
16585 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16588 \begin_layout Plain Layout
16590 \begin_inset space \thinspace{}
16598 <cell alignment="center" valignment="top" usebox="none">
16601 \begin_layout Plain Layout
16602 \begin_inset Formula $10\cdot$
16610 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16613 \begin_layout Plain Layout
16614 \begin_inset Formula $10^{\mbox{-}17}$
16622 <cell alignment="center" valignment="top" usebox="none">
16625 \begin_layout Plain Layout
16626 \begin_inset Formula $\Gamma(t)\propto$
16634 <cell alignment="center" valignment="top" usebox="none">
16637 \begin_layout Plain Layout
16638 \begin_inset Formula $\:\Upsilon(t)$
16648 <cell alignment="center" valignment="top" usebox="none">
16651 \begin_layout Plain Layout
16657 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16660 \begin_layout Plain Layout
16662 \begin_inset space \thinspace{}
16670 <cell alignment="center" valignment="top" usebox="none">
16673 \begin_layout Plain Layout
16674 \begin_inset Formula $5.78\cdot$
16682 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16685 \begin_layout Plain Layout
16686 \begin_inset Formula $10^{7}$
16694 <cell alignment="center" valignment="top" usebox="none">
16697 \begin_layout Plain Layout
16698 \begin_inset Formula $A\ne$
16706 <cell alignment="center" valignment="top" usebox="none">
16709 \begin_layout Plain Layout
16710 \begin_inset Formula $\: B_{\mathrm{red}}$
16720 <cell alignment="center" valignment="top" usebox="none">
16723 \begin_layout Plain Layout
16729 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16732 \begin_layout Plain Layout
16734 \begin_inset space \thinspace{}
16742 <cell alignment="center" valignment="top" usebox="none">
16745 \begin_layout Plain Layout
16747 \begin_inset Formula $33.5\cdot$
16755 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16758 \begin_layout Plain Layout
16759 \begin_inset Formula $10^{4}$
16767 <cell alignment="center" valignment="top" usebox="none">
16770 \begin_layout Plain Layout
16771 \begin_inset Formula $\sin(\alpha)\ge$
16779 <cell alignment="center" valignment="top" usebox="none">
16782 \begin_layout Plain Layout
16783 \begin_inset Formula $\:\sin(\beta)$
16804 \begin_layout Standard
16805 \begin_inset VSpace bigskip
16808 There is also the LaTeX-package
16816 \begin_layout Plain Layout
16817 LaTeX-packages ! dcolumn
16822 that provides table cell alignments.
16823 But this unfortunately treats the cell entries as math and doesn't allow
16824 formulas in table cells: The first column of Table
16825 \begin_inset space ~
16829 \begin_inset CommandInset ref
16831 reference "tab:Several-table-cell"
16839 like the first column in Table
16840 \begin_inset space ~
16844 \begin_inset CommandInset ref
16846 reference "tab:Alignments-when"
16850 and only with some tricks like the expected.
16851 The alignment of the second and third column of Table
16852 \begin_inset space ~
16856 \begin_inset CommandInset ref
16858 reference "tab:Several-table-cell"
16862 is not possible with
16869 \begin_layout Standard
16870 \begin_inset Float table
16876 \begin_layout Plain Layout
16877 \begin_inset Caption
16879 \begin_layout Plain Layout
16880 \begin_inset CommandInset label
16882 name "tab:Alignments-when"
16886 Alignments when LaTeX-package dcolumn is used.
16887 For all column alignments tricks have to be used to get the output.
16895 \begin_layout Plain Layout
16897 \begin_inset Tabular
16898 <lyxtabular version="3" rows="4" columns="3">
16900 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{-1}">
16901 <column alignment="center" valignment="top" width="0" special="D{x}{\times}{4.9}">
16902 <column alignment="center" valignment="top" width="0" special="D{~}{\,}{9.7}">
16904 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16907 \begin_layout Plain Layout
16913 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
16916 \begin_layout Plain Layout
16922 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
16925 \begin_layout Plain Layout
16933 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16936 \begin_layout Plain Layout
16938 \begin_inset space \thinspace{}
16946 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16949 \begin_layout Plain Layout
16951 \begin_inset space \thinspace{}
16955 \begin_inset Formula $\mbox{bottles}$
16963 <cell alignment="center" valignment="top" usebox="none">
16966 \begin_layout Plain Layout
16971 \begin_layout Plain Layout
16981 \begin_inset Formula $\mbox{bottles}$
16991 <cell alignment="center" valignment="top" rightline="true" usebox="none">
16994 \begin_layout Plain Layout
16996 \begin_inset space \thinspace{}
17004 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17007 \begin_layout Plain Layout
17009 \begin_inset space \thinspace{}
17013 \begin_inset Formula $\mbox{Pixels}$
17021 <cell alignment="center" valignment="top" usebox="none">
17024 \begin_layout Plain Layout
17029 \begin_layout Plain Layout
17039 \begin_inset Formula $\mbox{Pixels}$
17049 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17052 \begin_layout Plain Layout
17054 \begin_inset space \thinspace{}
17062 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17065 \begin_layout Plain Layout
17067 \begin_inset space \thinspace{}
17071 \begin_inset Formula $\mbox{cm}$
17079 <cell alignment="center" valignment="top" usebox="none">
17082 \begin_layout Plain Layout
17087 \begin_layout Plain Layout
17097 \begin_inset Formula $\mbox{cm}$
17118 \begin_layout Subsection
17119 Customized Cell/Column Format
17120 \begin_inset CommandInset label
17122 name "sub:Customized-Format"
17130 \begin_layout Plain Layout
17131 Table Customization ! Cell/Column Format
17139 \begin_layout Standard
17140 Calculating the needed width for spanned columns like in section
17141 \begin_inset space ~
17145 \begin_inset CommandInset ref
17147 reference "sub:Multicolumn-Calculations"
17151 is very annoying if you have several tables with multicolumn cells.
17152 To make life easier, you can define a cell/column format in the preamble,
17153 so that it can be used in all tables of the document.
17154 The format is defined with the command
17157 \begin_layout Standard
17162 newcolumntype{name of format}[number of arguments]{commands}
17165 \begin_layout Standard
17166 The format name may only consist of one letter.
17191 are predefined and cannot be used.
17192 But all letters are allowed as capitals.
17195 \begin_layout Standard
17196 \begin_inset VSpace medskip
17202 \begin_layout Standard
17203 For vertically and horizontally centered multicolumn cells with a fixed
17204 width you can define the cell format
17207 \begin_layout Standard
17212 newcolumntype{M}[1]{>{
17219 \begin_layout Standard
17226 avoids the problem of hyphenating the first word, as described in section
17227 \begin_inset space ~
17231 \begin_inset CommandInset ref
17233 reference "sub:Multiple-Lines-in"
17238 Now you can simply enter
17241 \begin_layout Standard
17247 \begin_layout Standard
17248 as LaTeX-argument in the table dialog to create a multicolumn.
17251 \begin_layout Standard
17252 \begin_inset VSpace bigskip
17258 \begin_layout Standard
17259 For cells spanned by a multicolumn cell, you can define the format
17262 \begin_layout Standard
17267 newcolumntype{S}[2]{>{
17272 \begin_inset Newline newline
17279 \begin_layout Plain Layout
17294 \begin_layout Plain Layout
17305 arrayrulewidth)*(1-#2))/#2}}
17308 \begin_layout Standard
17309 This format uses equation
17310 \begin_inset CommandInset ref
17316 to calculate the needed width so that each spanned cell has the same width.
17319 \begin_layout Standard
17323 \begin_layout Standard
17326 S{width of multicolumn cell}{number of spanned columns}
17329 \begin_layout Standard
17330 as LaTeX-argument of the column.
17333 \begin_layout Standard
17334 \begin_inset VSpace bigskip
17340 \begin_layout Standard
17341 For colored columns, you can define
17344 \begin_layout Standard
17349 newcolumntype{K}[1]{>{
17356 \begin_layout Standard
17358 \begin_inset Quotes eld
17362 \begin_inset Quotes erd
17365 at the end creates a column with a flexible width whose text is horizontally
17370 \begin_layout Standard
17376 \begin_layout Standard
17380 \begin_layout Standard
17381 \begin_inset VSpace bigskip
17387 \begin_layout Standard
17389 \begin_inset space ~
17393 \begin_inset CommandInset ref
17395 reference "tab:Table-using-user-defined"
17399 use the LaTeX-arguments
17402 \begin_layout Standard
17408 \begin_layout Standard
17409 for the first column and the multicolumn,
17412 \begin_layout Standard
17418 \begin_layout Standard
17419 for the the last column, and
17422 \begin_layout Standard
17428 \begin_layout Standard
17429 for the cells in the second column.
17432 \begin_layout Standard
17433 \begin_inset Float table
17439 \begin_layout Plain Layout
17440 \begin_inset Caption
17442 \begin_layout Plain Layout
17443 \begin_inset CommandInset label
17445 name "tab:Table-using-user-defined"
17449 Table using user-defined table formats
17457 \begin_layout Plain Layout
17459 \begin_inset Tabular
17460 <lyxtabular version="3" rows="3" columns="4">
17462 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
17463 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
17464 <column alignment="center" valignment="middle" width="0">
17465 <column alignment="center" valignment="middle" width="0" special="K{red}">
17467 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17470 \begin_layout Plain Layout
17471 verylongtablecellword
17476 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
17479 \begin_layout Plain Layout
17480 multiple lines multicolumn
17485 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17488 \begin_layout Plain Layout
17494 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17497 \begin_layout Plain Layout
17505 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17508 \begin_layout Plain Layout
17514 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17517 \begin_layout Plain Layout
17523 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17526 \begin_layout Plain Layout
17532 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17535 \begin_layout Plain Layout
17543 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17546 \begin_layout Plain Layout
17552 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17555 \begin_layout Plain Layout
17561 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17564 \begin_layout Plain Layout
17570 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17573 \begin_layout Plain Layout
17592 \begin_layout Subsection
17594 \begin_inset CommandInset label
17596 name "sub:Line-Thickness"
17604 \begin_layout Plain Layout
17605 Table Customization ! Line Thickness
17613 \begin_layout Standard
17614 The line thickness for all lines in a table can be adjusted with the length
17622 To set for example a line thickness of 1.5
17623 \begin_inset space \thinspace{}
17627 \begin_inset space ~
17631 \begin_inset CommandInset ref
17633 reference "tab:Table-with-1.5"
17637 , insert the command
17640 \begin_layout Standard
17647 arrayrulewidth}{1.5pt}
17650 \begin_layout Standard
17651 in TeX-Code before the table or table float.
17652 The changed thickness is valid for all following tables.
17653 To use the default value again, set
17660 \begin_inset space \thinspace{}
17663 pt in TeX-Code behind the table or table float.
17666 \begin_layout Standard
17670 \begin_layout Plain Layout
17676 arrayrulewidth}{1.5pt}
17682 \begin_inset Float table
17687 \begin_layout Plain Layout
17688 \begin_inset Caption
17690 \begin_layout Plain Layout
17691 \begin_inset CommandInset label
17693 name "tab:Table-with-1.5"
17698 \begin_inset space \thinspace{}
17709 \begin_layout Plain Layout
17711 \begin_inset Tabular
17712 <lyxtabular version="3" rows="3" columns="3">
17714 <column alignment="center" valignment="top" width="0">
17715 <column alignment="center" valignment="top" width="0">
17716 <column alignment="center" valignment="top" width="0">
17718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17721 \begin_layout Plain Layout
17727 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17730 \begin_layout Plain Layout
17736 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17739 \begin_layout Plain Layout
17747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17750 \begin_layout Plain Layout
17756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17759 \begin_layout Plain Layout
17765 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17768 \begin_layout Plain Layout
17776 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17779 \begin_layout Plain Layout
17785 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17788 \begin_layout Plain Layout
17794 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17797 \begin_layout Plain Layout
17817 \begin_layout Plain Layout
17823 arrayrulewidth}{0.4pt}
17831 \begin_layout Standard
17832 \begin_inset VSpace bigskip
17835 To set the line thickness to 1.5
17836 \begin_inset space \thinspace{}
17839 pt only for horizontal lines, like in Table
17840 \begin_inset space ~
17844 \begin_inset CommandInset ref
17846 reference "tab:Table-with-horizontal"
17850 , insert these commands in TeX-Code before the table or table float:
17853 \begin_layout Standard
17863 \begin_inset Newline newline
17871 \begin_inset Newline newline
17880 arrayrulewidth 1.5pt}
17881 \begin_inset Newline newline
17892 arrayrulewidth 0.4pt}}
17895 \begin_layout Standard
17896 To return to the default line thickness, insert this command in TeX-Code
17897 behind the table or table float:
17900 \begin_layout Standard
17912 \begin_layout Standard
17916 \begin_layout Plain Layout
17927 \begin_layout Plain Layout
17936 \begin_layout Plain Layout
17944 arrayrulewidth 1.5pt}
17947 \begin_layout Plain Layout
17957 arrayrulewidth 0.4pt}}
17963 \begin_inset Float table
17968 \begin_layout Plain Layout
17969 \begin_inset Caption
17971 \begin_layout Plain Layout
17972 \begin_inset CommandInset label
17974 name "tab:Table-with-horizontal"
17979 \begin_inset space \thinspace{}
17982 pt thick horizontal lines
17990 \begin_layout Plain Layout
17992 \begin_inset Tabular
17993 <lyxtabular version="3" rows="3" columns="3">
17995 <column alignment="center" valignment="top" width="0">
17996 <column alignment="center" valignment="top" width="0">
17997 <column alignment="center" valignment="top" width="0">
17999 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18002 \begin_layout Plain Layout
18008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18011 \begin_layout Plain Layout
18017 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18020 \begin_layout Plain Layout
18028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18031 \begin_layout Plain Layout
18037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18040 \begin_layout Plain Layout
18046 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18049 \begin_layout Plain Layout
18057 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18060 \begin_layout Plain Layout
18066 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18069 \begin_layout Plain Layout
18075 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18078 \begin_layout Plain Layout
18098 \begin_layout Plain Layout
18114 \begin_layout Standard
18115 \begin_inset VSpace bigskip
18118 To set the line thickness to 1.5
18119 \begin_inset space \thinspace{}
18122 pt only for vertical lines, create the following column format in the document
18123 preamble, according to the description in section
18124 \begin_inset space ~
18128 \begin_inset CommandInset ref
18130 reference "sub:Customized-Format"
18137 \begin_layout Standard
18142 newcolumntype{V}{!{
18144 vrule width 1.5pt}}
18147 \begin_layout Standard
18149 \begin_inset space ~
18153 \begin_inset CommandInset ref
18155 reference "tab:Table-with-vertical"
18162 \begin_layout Standard
18168 \begin_layout Standard
18169 was used for the last column and
18172 \begin_layout Standard
18178 \begin_layout Standard
18179 for the other columns.
18182 \begin_layout Standard
18183 \begin_inset Float table
18188 \begin_layout Plain Layout
18189 \begin_inset Caption
18191 \begin_layout Plain Layout
18192 \begin_inset CommandInset label
18194 name "tab:Table-with-vertical"
18199 \begin_inset space \thinspace{}
18202 pt thick vertical lines
18210 \begin_layout Plain Layout
18212 \begin_inset Tabular
18213 <lyxtabular version="3" rows="3" columns="3">
18215 <column alignment="center" valignment="top" width="0" special="Vc">
18216 <column alignment="center" valignment="top" width="0" special="Vc">
18217 <column alignment="center" valignment="top" width="0" special="VcV">
18219 <cell alignment="center" valignment="top" topline="true" usebox="none">
18222 \begin_layout Plain Layout
18228 <cell alignment="center" valignment="top" topline="true" usebox="none">
18231 \begin_layout Plain Layout
18237 <cell alignment="center" valignment="top" topline="true" usebox="none">
18240 \begin_layout Plain Layout
18248 <cell alignment="center" valignment="top" topline="true" usebox="none">
18251 \begin_layout Plain Layout
18257 <cell alignment="center" valignment="top" topline="true" usebox="none">
18260 \begin_layout Plain Layout
18266 <cell alignment="center" valignment="top" topline="true" usebox="none">
18269 \begin_layout Plain Layout
18277 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18280 \begin_layout Plain Layout
18286 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18289 \begin_layout Plain Layout
18295 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18298 \begin_layout Plain Layout
18317 \begin_layout Subsection
18322 \begin_layout Plain Layout
18323 Table Customization ! Dashed Lines
18331 \begin_layout Standard
18335 \begin_layout Plain Layout
18345 \begin_inset Note Note
18348 \begin_layout Plain Layout
18349 The following section will only be displayed when the LaTeX-package
18361 \begin_layout Standard
18362 \begin_inset Float table
18368 \begin_layout Plain Layout
18369 \begin_inset Caption
18371 \begin_layout Plain Layout
18372 \begin_inset CommandInset label
18374 name "tab:Table-with-dashed"
18378 Table with dashed lines
18386 \begin_layout Plain Layout
18388 \begin_inset Tabular
18389 <lyxtabular version="3" rows="5" columns="5">
18391 <column alignment="center" valignment="top" width="0">
18392 <column alignment="center" valignment="top" width="0">
18393 <column alignment="center" valignment="top" width="0" special=":c">
18394 <column alignment="center" valignment="top" width="0">
18395 <column alignment="center" valignment="top" width="0">
18397 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18400 \begin_layout Plain Layout
18406 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18409 \begin_layout Plain Layout
18415 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18418 \begin_layout Plain Layout
18424 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18427 \begin_layout Plain Layout
18433 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18436 \begin_layout Plain Layout
18444 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18447 \begin_layout Plain Layout
18453 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18456 \begin_layout Plain Layout
18462 <cell alignment="center" valignment="top" topline="true" usebox="none">
18465 \begin_layout Plain Layout
18471 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18474 \begin_layout Plain Layout
18480 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18483 \begin_layout Plain Layout
18491 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18494 \begin_layout Plain Layout
18498 \begin_layout Plain Layout
18512 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18515 \begin_layout Plain Layout
18521 <cell alignment="center" valignment="top" usebox="none">
18524 \begin_layout Plain Layout
18530 <cell alignment="center" valignment="top" leftline="true" usebox="none">
18533 \begin_layout Plain Layout
18539 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
18542 \begin_layout Plain Layout
18550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18553 \begin_layout Plain Layout
18557 \begin_layout Plain Layout
18571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18574 \begin_layout Plain Layout
18580 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
18583 \begin_layout Plain Layout
18589 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
18592 \begin_layout Plain Layout
18598 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18601 \begin_layout Plain Layout
18609 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18612 \begin_layout Plain Layout
18618 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18621 \begin_layout Plain Layout
18627 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18630 \begin_layout Plain Layout
18636 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18639 \begin_layout Plain Layout
18645 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18648 \begin_layout Plain Layout
18667 \begin_layout Standard
18668 LyX doesn't natively support dashed lines, so you have to use TeX-Code.
18669 As prerequisite the LaTeX-package
18677 \begin_layout Plain Layout
18678 LaTeX-packages ! arydshln
18683 must be loaded in the document preamble with the command
18686 \begin_layout Standard
18691 usepackage{arydshln}
18694 \begin_layout Standard
18695 To make a vertical line dashed, enter the colon
18696 \begin_inset Quotes eld
18700 \begin_inset Quotes erd
18703 together with the character for the horizontal alignment as LaTeX-argument
18704 in the table cell dialog.
18707 \begin_layout Standard
18708 For a horizontal dashed line add the command
18711 \begin_layout Standard
18719 \begin_layout Standard
18720 in TeX-Code as first element of the first cell in the table row.
18723 \begin_layout Standard
18724 For dashed multicolumn lines use the command
18727 \begin_layout Standard
18732 cdashline{line number
18737 \begin_layout Standard
18738 in TeX-Code as first element of the first cell in the table row.
18739 If you have for example a multicolumn spanning over columns 2 to 4 and
18740 you want to have a dashed line above, add the command
18743 \begin_layout Standard
18751 \begin_layout Standard
18752 as first element of the first cell in the row of the multicolumn.
18755 \begin_layout Standard
18756 \begin_inset VSpace bigskip
18762 \begin_layout Standard
18764 \begin_inset space ~
18768 \begin_inset CommandInset ref
18770 reference "tab:Table-with-dashed"
18775 \begin_inset Quotes eld
18783 \begin_inset Quotes erd
18786 as LaTeX-argument of the third column.
18787 The TeX-Code command
18793 was inserted to the first cell of the third row and the the TeX-Code command
18794 \begin_inset Newline newline
18803 was inserted to the first cell of the fourth row.
18806 \begin_layout Standard
18807 \begin_inset Note Greyedout
18810 \begin_layout Plain Layout
18815 The used LaTeX-package
18819 is apparently not compatible with the LaTeX-package
18827 \begin_layout Plain Layout
18828 LaTeX-packages ! colortbl
18833 that is used for colored tables in section
18834 \begin_inset space ~
18838 \begin_inset CommandInset ref
18840 reference "sec:Colored-Tables"
18845 That means colored tables cannot have dashed lines.
18853 \begin_layout Standard
18857 \begin_layout Plain Layout
18867 \begin_inset Note Note
18870 \begin_layout Plain Layout
18871 The following will be displayed when the LaTeX-package
18883 \begin_layout Standard
18884 You need to install the package
18888 to see the content of this section in the output.
18891 \begin_layout Standard
18895 \begin_layout Plain Layout
18907 \begin_layout Chapter
18912 \begin_layout Plain Layout
18919 \begin_inset CommandInset label
18928 \begin_layout Section
18930 \begin_inset CommandInset label
18932 name "sec:FloatIntroduction"
18940 \begin_layout Plain Layout
18941 Floats ! Introduction
18949 \begin_layout Standard
18950 A float is a block of text associated with some sort of label, which doesn't
18951 have a fixed location.
18953 \begin_inset Quotes eld
18957 \begin_inset Quotes erd
18960 forward or backward a page or two, to wherever it fits best.
18968 \begin_inset space ~
18973 are also floats, because they can float to the next page when there are
18974 too many notes at the page.
18977 \begin_layout Standard
18978 Floats allow a high quality layout.
18979 Images and tables can evenly be spread to the pages to avoid white space
18980 and pages without text.
18981 As the floating often destroys the context between the text and the image/table
18982 , every float can be referenced in the text.
18983 Floats are therefore numbered.
18984 Referencing is described in section
18985 \begin_inset space ~
18989 \begin_inset CommandInset ref
18991 reference "sec:Referencing-Floats"
18998 \begin_layout Standard
18999 To insert a float, use the menu
19001 Insert\SpecialChar \menuseparator
19009 inset, a box with a label.
19010 The label will automatically be translated to the document language in
19012 Behind the label you can insert the caption text.
19013 The image or table is inserted above or below the caption in a separate
19014 paragraph within the float.
19015 More about the caption placement is described in section
19016 \begin_inset space ~
19020 \begin_inset CommandInset ref
19022 reference "sec:Caption-Placement"
19027 To keep your LyX-document readable, you can open and close the float box
19028 by left-clicking on the box label.
19029 A closed float box looks like this:
19030 \begin_inset Graphics
19031 filename clipart/floatQt4.png
19033 scaleBeforeRotation
19037 -- a gray button with a red label.
19040 \begin_layout Standard
19041 It is recommended to insert floats as a separate paragraph to avoid possible
19042 LaTeX-errors that can occur when the surrounding text is specially formatted.
19045 \begin_layout Standard
19046 Existing figures or tables can be put into a float by marking them and then
19047 pressing the corresponding toolbar button for a new float.
19050 \begin_layout Section
19054 \begin_layout Standard
19055 Besides figure and table floats that are described in section
19056 \begin_inset space ~
19060 \begin_inset CommandInset ref
19062 reference "sec:Figure-Floats"
19067 \begin_inset CommandInset ref
19069 reference "sec:Table-Floats"
19073 , respectively, LyX offers the float types
19084 \begin_layout Subsection
19089 \begin_layout Plain Layout
19090 Floats ! Algorithms
19096 \begin_inset CommandInset label
19098 name "sub:Algorithm-Floats"
19105 \begin_layout Standard
19106 \begin_inset Float algorithm
19112 \begin_layout Plain Layout
19113 \begin_inset Caption
19115 \begin_layout Plain Layout
19116 \begin_inset CommandInset label
19118 name "alg:Example-Algorithm-float"
19122 Example Algorithm float
19130 \begin_layout LyX-Code
19132 \begin_inset Newline newline
19135 Sum:= Sum + A(I); /*comment*/
19136 \begin_inset Newline newline
19140 \begin_inset VSpace -4mm
19151 \begin_layout Standard
19152 This float type is inserted with the menu
19154 Insert\SpecialChar \menuseparator
19155 Floats\SpecialChar \menuseparator
19159 It is used for program codes and descriptions of algorithms.
19160 A possible environment for algorithms is the
19164 , described in LyX's
19170 \begin_inset space ~
19174 \begin_inset CommandInset ref
19176 reference "alg:Example-Algorithm-float"
19180 is an example of an algorithm float where -4
19181 \begin_inset space \thinspace{}
19184 mm vertical space was added at the end of the float to have the bottom rule
19185 exactly below the last text line.
19188 \begin_layout Standard
19189 The float label is not automatically translated into the document language.
19190 If your document is not in English, you have to do this manually by adding
19191 the following line to the document preamble
19196 \begin_layout Standard
19201 floatname{algorithm}{your
19202 \begin_inset space ~
19208 \begin_layout Standard
19212 \begin_inset space ~
19218 \begin_inset Quotes eld
19226 \begin_inset Quotes erd
19232 \begin_layout Standard
19233 To insert the list of algorithms you can not use the menu
19235 Insert\SpecialChar \menuseparator
19237 \begin_inset space \thinspace{}
19241 \begin_inset space \thinspace{}
19244 TOC\SpecialChar \menuseparator
19247 when your document is a non-English one.
19248 In this case use this command in TeX-Code instead:
19251 \begin_layout Standard
19256 listof{algorithm}{your
19257 \begin_inset space ~
19263 \begin_layout Standard
19267 \begin_inset space ~
19273 \begin_inset Quotes eld
19281 \begin_inset Quotes erd
19287 \begin_layout Standard
19288 Algorithm floats are not by default numbered in the scheme
19289 \begin_inset Quotes eld
19293 \begin_inset Quotes erd
19296 like it is the case for table and figure floats in many document-classes.
19297 To number algorithm floats in the same scheme, add this command to your
19301 \begin_layout Standard
19306 numberwithin{algorithm}{chapter}
19309 \begin_layout Standard
19310 To be able to use the command
19319 \begin_inset space ~
19324 in the document settings the option
19327 \begin_inset space ~
19331 \begin_inset space ~
19335 \begin_inset space ~
19343 \begin_layout Subsection
19348 \begin_layout Plain Layout
19349 Floats ! Wrap Floats
19355 \begin_inset CommandInset label
19357 name "sub:wrap-floats"
19364 \begin_layout Standard
19365 \begin_inset Wrap figure
19372 \begin_layout Plain Layout
19373 \begin_inset Graphics
19374 filename clipart/mobius.eps
19376 scaleBeforeRotation
19377 rotateOrigin center
19384 \begin_layout Plain Layout
19385 \begin_inset Caption
19387 \begin_layout Plain Layout
19388 \begin_inset CommandInset label
19390 name "fig:This-is-a"
19394 This is a figure wrap float.
19404 This float type is used if you want to wrap text around a figure or table
19405 so that it only occupies some fraction of the column width.
19406 It can be inserted using the menu
19408 Insert\SpecialChar \menuseparator
19409 Floats\SpecialChar \menuseparator
19411 \begin_inset space ~
19415 \begin_inset space ~
19423 \begin_inset space ~
19427 \begin_inset space ~
19432 if the LaTeX-package
19440 \begin_layout Plain Layout
19441 LaTeX-packages ! wrapfig
19445 \begin_layout Plain Layout
19463 \begin_layout Plain Layout
19464 Installing a LaTeX-package is explained it in the
19467 \begin_inset space ~
19477 The settings of the float can be modified by right-clicking on the float
19479 The mandatory settings are the float
19492 that specifies how much the float is set into the paragraph
19493 \begin_inset space \thinspace{}
19497 \begin_inset space \thinspace{}
19500 page margin, and the
19503 \begin_inset space ~
19508 that specifies how many text lines the float will approximately need.
19509 The line span is often hard to be approximated, so better only use it when
19510 you encounter float placement problems.
19511 You can furthermore decide if LaTeX is allowed to let the float float within
19512 the paragraph or to surrounding paragraphs.
19514 \begin_inset space ~
19518 \begin_inset CommandInset ref
19520 reference "fig:This-is-a"
19524 is an example text wrap float with a width of 40
19525 \begin_inset space \thinspace{}
19529 \begin_inset space \thinspace{}
19532 cm overhang, set to the left.
19536 \begin_layout Plain Layout
19537 Available units are explained in appendix
19538 \begin_inset space ~
19542 \begin_inset CommandInset ref
19544 reference "cha:Units-available-in"
19556 \begin_layout Standard
19557 \begin_inset Note Greyedout
19560 \begin_layout Plain Layout
19566 \begin_inset space ~
19569 wrap float floats are fragile! E.
19570 \begin_inset space \thinspace{}
19574 \begin_inset space ~
19577 having a figure too close to the bottom of the page can mess things up in
19578 the way that the float doesn't appear in the output or that it is placed
19579 over some other text.
19587 \begin_layout Standard
19591 \begin_layout Itemize
19592 Wrap floats should not be placed in paragraphs that run over a page break.
19593 That means that wrap floats should better be inserted to the exact place
19594 when the document is nearly finished and you are able to estimate where
19595 page breaks will appear.
19598 \begin_layout Itemize
19599 Wrap floats should either be placed in an own paragraph before the paragraph
19600 where they should wrap into or within a paragraph.
19603 \begin_layout Itemize
19604 Wrap floats in consecutive paragraphs may cause troubles, so assure that
19605 there is a text paragraph between them as separator.
19608 \begin_layout Itemize
19609 Wrap floats are not allowed in section headings or tables.
19612 \begin_layout Section
19614 \begin_inset CommandInset label
19616 name "sec:Float-Numbering"
19624 \begin_layout Plain Layout
19633 \begin_layout Standard
19634 Floats are usually numbered either independent from the sections the floats
19635 are in, or in the scheme
19636 \begin_inset Quotes eld
19640 \begin_inset Quotes erd
19644 \begin_inset Quotes eld
19648 \begin_inset Quotes erd
19652 This depends on the used document class.
19655 \begin_layout Standard
19656 To change the section independent numbering, you can use this command in
19657 the document preamble:
19660 \begin_layout Standard
19672 \begin_layout Standard
19679 is the command that prints the table number, for figure floats, the command
19693 prints in the command above the table number as small roman number.
19696 \begin_layout Standard
19697 To change the numbering scheme for example to
19698 \begin_inset Quotes eld
19702 \begin_inset Quotes erd
19705 , use this command in the preamble:
19708 \begin_layout Standard
19713 numberwithin{table}{subsection}
19716 \begin_layout Standard
19717 To be able to use the command
19726 \begin_inset space ~
19731 in the document settings the option
19734 \begin_inset space ~
19738 \begin_inset space ~
19742 \begin_inset space ~
19750 \begin_layout Standard
19751 Please also have a look at section
19752 \begin_inset space ~
19756 \begin_inset CommandInset ref
19758 reference "sub:Footnote-Numbering"
19762 for the details and important notes about the numbering commands.
19765 \begin_layout Section
19767 \begin_inset CommandInset label
19769 name "sec:Referencing-Floats"
19777 \begin_layout Plain Layout
19778 Floats ! References
19787 \begin_layout Plain Layout
19796 \begin_layout Standard
19797 To reference a float, insert a label into its caption using the menu
19799 Insert\SpecialChar \menuseparator
19802 or the toolbar button
19803 \begin_inset Graphics
19804 filename ../images/label-insert.png
19806 scaleBeforeRotation
19811 A grey label box like this one:
19812 \begin_inset Graphics
19813 filename clipart/labelQt4.png
19815 scaleBeforeRotation
19819 will be inserted and the label window pops up asking for the label text.
19820 LyX offers as text the first words of the caption with a prefix.
19821 The prefix depends on the float type, e.
19822 \begin_inset space \thinspace{}
19826 \begin_inset space ~
19829 for figure floats the prefix will be "
19836 \begin_layout Standard
19837 The label is used as anchor and name for the reference.
19838 You can refer to the label using the menu
19840 Insert\SpecialChar \menuseparator
19843 or the toolbar button
19844 \begin_inset Graphics
19845 filename ../images/dialog-show-new-inset_ref.png
19847 scaleBeforeRotation
19852 A grey cross-reference box like this one:
19853 \begin_inset Graphics
19854 filename clipart/referenceQt4.png
19856 scaleBeforeRotation
19860 will be inserted and the cross-reference window appear showing all labels
19862 If you have multiple LyX-documents opened, choose the one you are working
19863 on from the drop-list at the top of the dialog.
19864 You can now sort the labels alphabetically and then choose one.
19865 At the position of the cross-reference box the float number will appear
19869 \begin_layout Standard
19870 It is recommended to use a protected space between the cross-reference name
19871 and its number to avoid line breaks between them.
19872 If a cross-reference refers to a non-existing label, you will see two question
19873 marks in the output instead of the reference.
19876 \begin_layout Standard
19877 You can change labels at any time by clicking on the label box.
19878 References to the changed label will automatically change its link to the
19879 new label text, so that you don't need to take care about this.
19882 \begin_layout Standard
19886 \begin_inset space ~
19890 \begin_inset space ~
19895 in the cross-reference window sets the cursor before the referred label.
19896 The button text changes then to Go
19897 \begin_inset space ~
19900 Back and you can use it to set the cursor back to the cross-reference.
19901 Right-clicking on a cross-reference box also sets the cursor before the
19902 referenced label but without a possibility to go back.
19905 \begin_layout Subsection
19906 Cross-Reference Formats
19907 \begin_inset CommandInset label
19909 name "sub:Cross-Reference-Formats"
19917 \begin_layout Plain Layout
19918 References ! Formats
19926 \begin_layout Standard
19927 There are six varieties of cross-references:
19930 \begin_layout Description
19931 <reference>: prints the float number, this is the default:
19932 \begin_inset CommandInset ref
19934 reference "fig:Two-distorted-images"
19941 \begin_layout Description
19942 (<reference>): prints the float number within two parentheses, this is the
19943 style normally used to reference formulas, especially when the reference
19945 \begin_inset Quotes eld
19949 \begin_inset Quotes erd
19953 \begin_inset CommandInset ref
19962 \begin_layout Description
19963 <page>: prints the page number: Page
19964 \begin_inset space ~
19968 \begin_inset CommandInset ref
19969 LatexCommand pageref
19970 reference "fig:Two-distorted-images"
19977 \begin_layout Description
19979 \begin_inset space ~
19983 \begin_inset space ~
19986 <page>: prints the text "on page" and the page number:
19987 \begin_inset CommandInset ref
19988 LatexCommand vpageref
19989 reference "fig:Two-distorted-images"
19996 \begin_layout Description
19998 \begin_inset space ~
20002 \begin_inset space ~
20006 \begin_inset space ~
20009 <page>: prints the float number, the text "on page", and the page number:
20011 \begin_inset CommandInset ref
20013 reference "fig:Two-distorted-images"
20020 \begin_layout Description
20022 \begin_inset space ~
20025 reference: prints a self defined cross-reference format.
20027 \begin_inset Note Greyedout
20030 \begin_layout Plain Layout
20035 This feature is only available when you have the LaTeX-package
20047 \begin_layout Standard
20048 Note that the style <page> won't print the page number if the label is on
20049 the previous, the same, or the next page.
20051 \begin_inset space \thinspace{}
20055 \begin_inset space ~
20059 \begin_inset Quotes eld
20067 \begin_inset Quotes erd
20073 \begin_layout Standard
20074 The number and current page of the referred document part in the output,
20075 is automatically calculated by LaTeX.
20076 The varieties are adjusted in the field
20080 of the cross-reference window, that appear when you click on the cross-referenc
20084 \begin_layout Subsection
20085 Automatic Reference Naming
20089 \begin_layout Plain Layout
20090 References ! Automatic Reference Naming
20098 \begin_layout Standard
20103 provides a very useful feature that cross-references automatically include
20104 the name of the referenced floats (or text parts like sections).
20105 You save to write e.
20106 \begin_inset space \thinspace{}
20110 \begin_inset space ~
20114 \begin_inset Quotes eld
20118 \begin_inset Quotes erd
20121 before every reference box.
20122 To get this automatic reference naming, you have to load the LaTeX-package
20131 \begin_layout Plain Layout
20132 LaTeX-packages ! hyperref
20137 in the document preamble with
20140 \begin_layout Standard
20145 usepackage[pdfborder={0 0 0}]{hyperref}
20146 \begin_inset Newline newline
20162 \begin_layout Standard
20167 is used to link cross-references in the DVI- and PDF-output, this means
20168 that the reader of your document will be able to click on a table of content
20169 (TOC) entry or on a reference and he will be shown the referenced document
20175 also creates PDF-bookmarks for every section of your document to make it
20176 easier for readers to navigate through the document.
20177 This is also used in this document but when you have a look in the document
20178 preamble you will find various options in the load command of
20183 To learn more about the
20187 package, we refer to its documentation
20188 \begin_inset CommandInset citation
20197 \begin_layout Standard
20198 \begin_inset Note Greyedout
20201 \begin_layout Plain Layout
20206 Automatic reference naming cannot be used when you use cross-references
20210 \begin_inset space ~
20215 style, described in section
20216 \begin_inset space ~
20220 \begin_inset CommandInset ref
20222 reference "sub:Cross-Reference-Formats"
20234 \begin_layout Subsection
20236 \begin_inset CommandInset label
20238 name "sub:Reference-Position"
20246 \begin_layout Plain Layout
20247 References ! Reference Position
20255 \begin_layout Standard
20264 \begin_layout Plain Layout
20265 LaTeX-packages ! hyperref
20270 to link cross-references in the output, you will see that clicking on an
20271 image float reference jumps to the image label.
20272 The caption will be the first text part on the screen, so that you cannot
20273 see the image without scrolling.
20274 This is because the reference link anchor is placed at the position of
20276 With the use of the package
20284 \begin_layout Plain Layout
20285 LaTeX-packages ! hypcap
20290 , which is part of the LaTeX-package
20298 \begin_layout Plain Layout
20299 LaTeX-packages ! oberdiek
20304 , the link anchor is placed at the beginning of a float.
20305 To use this feature for figure floats, load
20309 in the document preamble with the line
20312 \begin_layout Standard
20317 usepackage[figure]{hypcap}
20320 \begin_layout Standard
20325 for all floats but this isn't recommended for stability reasons.
20326 For more informations, have a look at
20331 \begin_inset CommandInset citation
20340 \begin_layout Standard
20341 \begin_inset Note Greyedout
20344 \begin_layout Plain Layout
20353 must be loaded after
20357 in the document preamble.
20365 \begin_layout Standard
20366 \begin_inset Note Greyedout
20369 \begin_layout Plain Layout
20378 has no effect for references to subfigures.
20386 \begin_layout Section
20388 \begin_inset CommandInset label
20390 name "sec:Float-Placement"
20398 \begin_layout Plain Layout
20407 \begin_layout Standard
20408 Right-clicking on a float-box opens a dialog where you can alter the placement
20409 options that LaTeX uses for positioning the float.
20410 \begin_inset Newline newline
20416 \begin_inset space ~
20421 is only useful for two-column documents: If you select it, the float will
20422 span across both columns on the page instead of being confined to just
20424 \begin_inset Newline newline
20430 \begin_inset space ~
20435 is used to rotate floats, see section
20436 \begin_inset CommandInset ref
20438 reference "sec:Rotated-Floats"
20445 \begin_layout Standard
20446 You can use one ore more of the following options in the float dialog to
20447 set the placement for a particular float when you uncheck the option
20450 \begin_inset space ~
20454 \begin_inset space ~
20462 \begin_layout Description
20464 \begin_inset space ~
20468 \begin_inset space ~
20471 possible try to place the float on the position where it is inserted
20474 \begin_layout Description
20476 \begin_inset space ~
20480 \begin_inset space ~
20483 page try to place the float on the top of the current page
20486 \begin_layout Description
20488 \begin_inset space ~
20492 \begin_inset space ~
20495 page try to place the float on the bottom of the current page
20498 \begin_layout Description
20500 \begin_inset space ~
20504 \begin_inset space ~
20507 floats try to place the float on an own page
20510 \begin_layout Standard
20511 The order of the above option is
20516 That means, if you use the default placement, LaTeX will first try out
20520 \begin_inset space ~
20524 \begin_inset space ~
20532 \begin_inset space ~
20536 \begin_inset space ~
20541 , and then the others.
20542 If you don't use the default, LaTeX will try only the checked options but
20544 If none of the 4 placements are possible the procedure is internally repeated
20545 but it is tried to put the float on the following page.
20548 \begin_layout Standard
20549 By default, each option has its own rules:
20552 \begin_layout Labeling
20553 \labelwidthstring 00.00.0000
20557 \begin_inset space ~
20561 \begin_inset space ~
20566 only floats occupying less than 70
20567 \begin_inset space \thinspace{}
20570 % of the page can be placed at the top of a page (
20579 \begin_layout Labeling
20580 \labelwidthstring 00.00.0000
20584 \begin_inset space ~
20588 \begin_inset space ~
20593 : only floats occupying less than 30
20594 \begin_inset space \thinspace{}
20597 % of the page can be placed at the bottom of a page.
20607 \begin_layout Labeling
20608 \labelwidthstring 00.00.0000
20612 \begin_inset space ~
20616 \begin_inset space ~
20621 : only if more than 50
20622 \begin_inset space \thinspace{}
20625 % of the page are occupied by floats, several floats can be set together
20636 \begin_layout Standard
20637 If you don't like these rules, you can ignore them by using the additional
20641 \begin_inset space ~
20645 \begin_inset space ~
20651 \begin_inset Newline newline
20654 You can also redefine the rules with LaTeX-commands that are given in parenthese
20655 s behind the rules description above.
20656 To increase for example the often too small default of the bottom-rule
20658 \begin_inset space \thinspace{}
20661 % of the page, add this line to your document preamble:
20664 \begin_layout Standard
20671 bottomfraction}{0.5}
20674 \begin_layout Standard
20675 Sometimes you might need, under all circumstances, a float to be placed
20676 exactly at the position where it is inserted.
20677 For this case you can use the option
20680 \begin_inset space ~
20686 Use this option very rarely and only if the document is nearly ready to
20688 Because the float is then no longer able to
20689 \begin_inset Quotes eld
20693 \begin_inset Quotes erd
20696 when you change your document and this will often destroy the page layout.
20699 \begin_layout Standard
20700 There are no placement options for text wrap floats, because they are always
20701 surrounded by the text of a certain paragraph.
20702 \begin_inset VSpace bigskip
20708 \begin_layout Standard
20709 Sometimes you have the problem that a float is placed at the top of a page
20710 while its corresponding section starts at the middle of the page, so that
20711 the reader could think the float is part of the previous section.
20712 To avoid this the LaTeX-command
20719 It suppresses a given float placement for the page where it is inserted
20720 and can therefore be used to avoid that floats could be set before a section
20722 To get this, add these commands to your document preamble:
20725 \begin_layout Standard
20735 \begin_inset Newline newline
20749 \begin_layout Standard
20750 You can define the same for all section headings, like chapters and subsections.
20751 This definition is not recommended to be used for small text parts like
20752 subsubsections because LaTeX may then have problems to find a suitable
20756 \begin_layout Standard
20757 \begin_inset VSpace bigskip
20760 In some cases it is required to have all figures/tables at the end of the
20762 For this purpose the LaTeX-package
20770 \begin_layout Plain Layout
20771 LaTeX-packages ! endfloat
20777 It puts all figure and table floats at the end of the document into own
20779 At the original float position a text hint like
20780 \begin_inset Quotes eld
20786 \begin_inset space ~
20792 \begin_inset Quotes erd
20796 The endfloat-package is loaded in the preamble with the line
20799 \begin_layout Standard
20804 usepackage[options]{endfloat}
20807 \begin_layout Standard
20808 There are various package options to format the created figure/table sections.
20809 For more information we refer to the
20814 \begin_inset CommandInset citation
20821 \begin_inset Newline newline
20825 \begin_inset Note Greyedout
20828 \begin_layout Plain Layout
20833 doesn't provide an automatic translation for the text hint, you have to
20834 do this manually, see section
20835 \begin_inset space ~
20839 \begin_inset CommandInset citation
20851 \begin_inset Newline newline
20855 \begin_inset Note Greyedout
20858 \begin_layout Plain Layout
20863 There is currently a bug in
20867 when the caption contains a German
20868 \begin_inset Quotes eld
20872 \begin_inset Quotes erd
20876 Use in this case the command
20877 \begin_inset Quotes eld
20887 \begin_inset Quotes erd
20890 in TeX-Code instead of
20891 \begin_inset Quotes eld
20895 \begin_inset Quotes erd
20906 \begin_layout Standard
20907 \begin_inset VSpace bigskip
20910 For more details about float placements, have a look at LaTeX books,
20911 \begin_inset CommandInset citation
20913 key "latexcompanion,latexguide,latexbook"
20920 \begin_layout Section
20922 \begin_inset CommandInset label
20924 name "sec:Rotated-Floats"
20932 \begin_layout Plain Layout
20941 \begin_layout Standard
20942 Especially for wide tables you might have floats rotated.
20943 To rotate a whole float including the caption, right-click on the float-box
20947 \begin_inset space ~
20955 \begin_layout Standard
20956 Rotated floats are always placed on its own page (or column, in case you
20957 have a multi-column document).
20958 You can let them span several columns using the float settings option
20961 \begin_inset space ~
20967 Floats are rotated so that you can read them from the outside margin.
20968 To force a certain rotation direction for all pages, you can add either
20977 to the document class options.
20980 \begin_layout Standard
20981 Referencing rotated floats is the same like for normal floats, the caption
20982 format is also the same: Table
20983 \begin_inset space ~
20987 \begin_inset CommandInset ref
20989 reference "tab:Rotated-table"
20993 is an example of a rotated table float.
20996 \begin_layout Standard
20997 \begin_inset Note Greyedout
21000 \begin_layout Plain Layout
21005 Not all DVI-viewers are able to display rotated floats.
21013 \begin_layout Standard
21014 \begin_inset Float table
21019 \begin_layout Plain Layout
21020 \begin_inset Caption
21022 \begin_layout Plain Layout
21023 \begin_inset CommandInset label
21025 name "tab:Rotated-table"
21037 \begin_layout Plain Layout
21039 \begin_inset Tabular
21040 <lyxtabular version="3" rows="1" columns="5">
21042 <column alignment="center" valignment="top" width="0">
21043 <column alignment="center" valignment="top" width="0">
21044 <column alignment="center" valignment="top" width="0">
21045 <column alignment="center" valignment="top" width="0">
21046 <column alignment="center" valignment="top" width="0">
21048 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21051 \begin_layout Plain Layout
21057 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21060 \begin_layout Plain Layout
21066 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21069 \begin_layout Plain Layout
21075 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21078 \begin_layout Plain Layout
21084 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21087 \begin_layout Plain Layout
21106 \begin_layout Section
21107 Floats Side by Side
21111 \begin_layout Plain Layout
21112 Floats ! Side by side
21120 \begin_layout Standard
21121 To place floats side by side, like for Figure
21122 \begin_inset space ~
21126 \begin_inset CommandInset ref
21128 reference "fig:Float-left"
21133 \begin_inset CommandInset ref
21135 reference "fig:Float-right"
21144 In it two minipage boxes are inserted.
21148 \begin_layout Plain Layout
21149 Minipages are explained in section
21150 \begin_inset space ~
21154 \begin_inset CommandInset ref
21156 reference "sec:Minipages"
21165 The width is set to 45
21166 \begin_inset space \thinspace{}
21170 \begin_inset space \thinspace{}
21173 column% and the box alignment to
21178 The minipage boxes contain the image and the caption in the same way as
21179 they are in a float.
21180 The only difference is that the image unit
21183 \begin_inset space ~
21187 \begin_inset space ~
21192 is now calculated according to the width of the minipage boxes.
21195 \begin_layout Standard
21196 \begin_inset Float figure
21201 \begin_layout Plain Layout
21202 \begin_inset Box Frameless
21211 height_special "totalheight"
21214 \begin_layout Plain Layout
21216 \begin_inset Graphics
21217 filename clipart/mobius.eps
21220 scaleBeforeRotation
21227 \begin_layout Plain Layout
21228 \begin_inset Caption
21230 \begin_layout Plain Layout
21231 \begin_inset CommandInset label
21233 name "fig:Float-left"
21237 Float on the left side.
21248 \begin_inset space \hfill{}
21252 \begin_inset Box Frameless
21261 height_special "totalheight"
21264 \begin_layout Plain Layout
21266 \begin_inset Graphics
21267 filename clipart/platypus.eps
21270 scaleBeforeRotation
21277 \begin_layout Plain Layout
21278 \begin_inset Caption
21280 \begin_layout Plain Layout
21281 \begin_inset CommandInset label
21283 name "fig:Float-right"
21287 Float on the right side.
21300 \begin_layout Plain Layout
21309 \begin_layout Section
21314 \begin_layout Plain Layout
21315 Caption ! Formatting
21324 \begin_layout Plain Layout
21325 Floats ! Caption Formatting
21334 \begin_layout Plain Layout
21335 LaTeX-packages ! caption
21341 \begin_inset CommandInset label
21343 name "sec:Caption-Formatting"
21350 \begin_layout Standard
21355 environment is the default paragraph environment for
21360 On the LyX screen captions appear as label, e.
21361 \begin_inset space \thinspace{}
21365 \begin_inset space ~
21369 \begin_inset Quotes eld
21377 \begin_inset Quotes erd
21380 followed by the caption text.
21382 \begin_inset Quotes eld
21386 \begin_inset Quotes erd
21389 is the actual reference number.
21390 By default the label and the number are in the same font as the caption
21391 text and a colon follows the number to divide the label from the text.
21392 This caption format is not suitable for all document formats.
21396 \begin_layout Standard
21397 To change the default caption format, load the LaTeX-package
21405 \begin_layout Plain Layout
21406 LaTeX-packages ! caption
21411 in the document preamble with this line:
21414 \begin_layout Standard
21419 usepackage[format definition]{caption}
21422 \begin_layout Standard
21423 To have for example the label and the number in sans-serif bold font and
21424 the table captions always above the table like in this document, use the
21428 \begin_layout Standard
21433 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
21436 \begin_layout Standard
21437 You can also define different caption formats for the different float types.
21438 In this case load the
21442 package without format specific options and define the different formats
21443 with the help of the command
21446 \begin_layout Standard
21451 captionsetup[float type]{format definition}
21454 \begin_layout Standard
21455 in the document preamble.
21456 For example the caption formats of Figure
21457 \begin_inset space ~
21461 \begin_inset CommandInset ref
21463 reference "fig:This-is-an-fig"
21468 \begin_inset space ~
21472 \begin_inset CommandInset ref
21474 reference "tab:This-is-an-tab"
21478 can be created using these commands in the document preamble:
21481 \begin_layout Standard
21486 usepackage[tableposition=top]{caption}
21489 \begin_inset Newline newline
21496 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
21497 \begin_inset Newline newline
21504 \begin_layout Plain Layout
21512 captionsetup[figure]
21520 \begin_inset Newline newline
21525 captionsetup[table]{labelfont={bf,sf}}
21528 \begin_layout Standard
21529 \begin_inset Note Greyedout
21532 \begin_layout Plain Layout
21541 has no effect when a
21549 \begin_layout Plain Layout
21550 LaTeX-packages ! koma-script
21555 document class is used.
21556 In this case the document class option
21568 \begin_layout Standard
21569 For more information about the package
21573 we refer to its documentation
21574 \begin_inset CommandInset citation
21583 \begin_layout Standard
21584 To change the label name from e.g.
21586 \begin_inset Quotes eld
21590 \begin_inset Quotes erd
21594 \begin_inset Quotes eld
21598 \begin_inset Quotes erd
21601 use this preamble command:
21604 \begin_layout Standard
21611 fnum@figure}{Image~
21616 \begin_layout Standard
21623 inserts the figure number and
21626 \begin_inset Quotes eld
21632 \begin_inset Quotes erd
21635 creates a protected space.
21638 \begin_layout Standard
21639 \begin_inset VSpace bigskip
21650 \begin_layout Plain Layout
21651 LaTeX-packages ! koma-script
21658 article (koma-script)
21666 letter (koma-script)
21670 report (koma-script)
21673 \begin_inset space \thinspace{}
21676 ), you can alternatively to the
21684 's built-in command
21691 For example, to have the caption label in bold, add this command to your
21695 \begin_layout Standard
21700 setkomafont{captionlabel}{
21705 \begin_layout Standard
21706 For more information about
21717 \begin_inset CommandInset citation
21726 \begin_layout Standard
21730 \begin_layout Plain Layout
21734 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
21741 \begin_inset Note Note
21744 \begin_layout Plain Layout
21745 The caption format is changed only for this example.
21753 \begin_layout Standard
21754 \begin_inset Float figure
21760 \begin_layout Plain Layout
21762 \begin_inset Graphics
21763 filename clipart/mobius.eps
21766 scaleBeforeRotation
21773 \begin_layout Plain Layout
21774 \begin_inset Caption
21776 \begin_layout Plain Layout
21777 \begin_inset CommandInset label
21779 name "fig:This-is-an-fig"
21783 This is an example figure caption that is longer than one line to show the
21784 different caption format.
21785 Here a self-defined caption format is used.
21798 \begin_layout Standard
21802 \begin_layout Plain Layout
21806 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
21815 \begin_layout Standard
21816 \begin_inset Float table
21822 \begin_layout Plain Layout
21823 \begin_inset Caption
21825 \begin_layout Plain Layout
21826 \begin_inset CommandInset label
21828 name "tab:This-is-an-tab"
21832 This is an example table caption that is longer than one line to show the
21833 different caption format.
21834 Here the standard caption format for tables in this document is used.
21842 \begin_layout Plain Layout
21844 \begin_inset Tabular
21845 <lyxtabular version="3" rows="1" columns="5">
21847 <column alignment="center" valignment="top" width="0">
21848 <column alignment="center" valignment="top" width="0">
21849 <column alignment="center" valignment="top" width="0">
21850 <column alignment="center" valignment="top" width="0">
21851 <column alignment="center" valignment="top" width="0">
21853 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21856 \begin_layout Plain Layout
21862 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21865 \begin_layout Plain Layout
21871 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21874 \begin_layout Plain Layout
21880 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21883 \begin_layout Plain Layout
21889 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21892 \begin_layout Plain Layout
21911 \begin_layout Section
21916 \begin_layout Plain Layout
21917 Caption ! Placement
21926 \begin_layout Plain Layout
21927 Floats ! Caption Placement
21933 \begin_inset CommandInset label
21935 name "sec:Caption-Placement"
21942 \begin_layout Standard
21943 The common caption placement rule is:
21946 \begin_layout Description
21947 Figure: Caption is set below the figure
21950 \begin_layout Description
21951 Table: Caption is set above the table
21954 \begin_layout Standard
21955 Having the caption above the table is unfortunately not supported in LaTeX's
21957 That means if you are using the document classes
21973 there will be no space between the caption and the table.
21974 To insert the needed space, add the following option to the load command
21975 of the LaTeX-package
21979 in your document preamble
21983 \begin_layout Plain Layout
21985 \begin_inset space ~
21989 \begin_inset CommandInset ref
21991 reference "sec:Caption-Formatting"
21995 for more information of the package
22007 \begin_layout Standard
22013 \begin_layout Standard
22022 \begin_layout Plain Layout
22023 LaTeX-packages ! koma-script
22030 article (koma-script)
22038 letter (koma-script)
22042 report (koma-script)
22045 \begin_inset space \thinspace{}
22048 ), you can alternatively to the
22052 package set the document class option
22059 \begin_layout Standard
22060 \begin_inset VSpace bigskip
22063 It is also possible to set the caption beside a figure or table.
22064 To get this the LaTeX-package
22072 \begin_layout Plain Layout
22073 LaTeX-packages ! sidecap
22078 has to be loaded in the document preamble with the line
22081 \begin_layout Standard
22086 usepackage[option]{sidecap}
22089 \begin_layout Standard
22090 If you set no option, the caption is placed on the side of the outer page
22091 margin -- to the right on odd pages, to the left on even pages.
22092 You can change the placement to inner margin with the option
22097 To force the placement always to the right or left, use the option
22108 \begin_layout Standard
22112 \begin_layout Plain Layout
22122 \begin_inset Note Note
22125 \begin_layout Plain Layout
22126 The following section will only be displayed when the LaTeX-package
22138 \begin_layout Standard
22139 To place in LyX the caption of a float on the side, it is necessary to add
22140 these commands to the document preamble:
22143 \begin_layout Standard
22149 \begin_layout Standard
22157 \begin_inset Newline newline
22164 \begin_layout Plain Layout
22180 \begin_inset Newline newline
22187 \begin_layout Plain Layout
22203 \begin_inset Newline newline
22210 \begin_layout Plain Layout
22221 renewenvironment{table}{
22228 \begin_layout Standard
22236 \begin_inset Newline newline
22243 \begin_layout Plain Layout
22259 \begin_inset Newline newline
22266 \begin_layout Plain Layout
22284 \begin_layout Standard
22292 \begin_inset Newline newline
22299 \begin_layout Plain Layout
22315 \begin_inset Newline newline
22322 \begin_layout Plain Layout
22338 \begin_inset Newline newline
22345 \begin_layout Plain Layout
22356 renewenvironment{figure}{
22363 \begin_layout Standard
22371 \begin_inset Newline newline
22378 \begin_layout Plain Layout
22394 \begin_inset Newline newline
22401 \begin_layout Plain Layout
22419 \begin_layout Standard
22425 \begin_layout Standard
22426 The commands allow you to redefine the floats so that the caption is set
22428 For figure floats use the command
22431 \begin_layout Standard
22439 \begin_layout Standard
22440 in TeX-Code before the float.
22441 Behind the float insert the command
22444 \begin_layout Standard
22452 \begin_layout Standard
22453 in TeX-Code to get back to the original float definition.
22456 \begin_layout Standard
22457 For table floats use the corresponding commands
22460 \begin_layout Standard
22474 \begin_layout Standard
22476 \begin_inset space ~
22480 \begin_inset CommandInset ref
22482 reference "fig:cap-beside-fig"
22487 \begin_inset space ~
22491 \begin_inset CommandInset ref
22493 reference "tab:cap-beside-tab"
22497 are examples where the caption is set beside.
22500 \begin_layout Standard
22501 You can see in the examples that the caption text appears at the top of
22502 the floats for table floats and at the bottom for figure floats.
22503 To change this, you can use the command
22506 \begin_layout Standard
22511 sidecaptionvpos{float type}{placement}
22514 \begin_layout Standard
22515 in the document preamble or in TeX-Code before the float.
22516 The float type is either
22524 , the placement can be
22525 \begin_inset Quotes eld
22533 \begin_inset Quotes erd
22537 \begin_inset Quotes eld
22545 \begin_inset Quotes erd
22549 \begin_inset Quotes eld
22557 \begin_inset Quotes erd
22561 To have for example the caption of figure floats vertically centered, use
22565 \begin_layout Standard
22570 sidecaptionvpos{figure}{c}
22573 \begin_layout Standard
22574 This was used for Figure
22575 \begin_inset space ~
22579 \begin_inset CommandInset ref
22581 reference "fig:cap-beside-fig-2"
22588 \begin_layout Standard
22589 \begin_inset VSpace medskip
22592 For more information about the package
22596 we refer to its documentation
22597 \begin_inset CommandInset citation
22606 \begin_layout Standard
22607 \begin_inset Note Greyedout
22610 \begin_layout Plain Layout
22623 \begin_layout Plain Layout
22624 LaTeX-packages ! hypcap
22629 , described in section
22630 \begin_inset space ~
22634 \begin_inset CommandInset ref
22636 reference "sub:Reference-Position"
22640 , has no effect on floats with the caption set beside.
22648 \begin_layout Standard
22652 \begin_layout Plain Layout
22664 \begin_layout Standard
22665 \begin_inset Float figure
22670 \begin_layout Plain Layout
22671 \begin_inset Graphics
22672 filename clipart/escher-lsd.eps
22674 scaleBeforeRotation
22681 \begin_layout Plain Layout
22682 \begin_inset Caption
22684 \begin_layout Plain Layout
22685 \begin_inset CommandInset label
22687 name "fig:cap-beside-fig"
22691 This is a caption beside a figure.
22704 \begin_layout Standard
22708 \begin_layout Plain Layout
22720 \begin_layout Standard
22721 \begin_inset Float table
22726 \begin_layout Plain Layout
22727 \begin_inset Caption
22729 \begin_layout Plain Layout
22730 \begin_inset CommandInset label
22732 name "tab:cap-beside-tab"
22736 This is a caption beside a table.
22744 \begin_layout Plain Layout
22745 \begin_inset Tabular
22746 <lyxtabular version="3" rows="4" columns="5">
22748 <column alignment="center" valignment="top" width="0">
22749 <column alignment="center" valignment="top" width="0">
22750 <column alignment="center" valignment="top" width="0">
22751 <column alignment="center" valignment="top" width="0">
22752 <column alignment="center" valignment="top" width="0">
22754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22757 \begin_layout Plain Layout
22763 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22766 \begin_layout Plain Layout
22772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22775 \begin_layout Plain Layout
22781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22784 \begin_layout Plain Layout
22790 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22793 \begin_layout Plain Layout
22801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22804 \begin_layout Plain Layout
22810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22813 \begin_layout Plain Layout
22819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22822 \begin_layout Plain Layout
22828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22831 \begin_layout Plain Layout
22837 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22840 \begin_layout Plain Layout
22848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22851 \begin_layout Plain Layout
22857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22860 \begin_layout Plain Layout
22866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22869 \begin_layout Plain Layout
22875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22878 \begin_layout Plain Layout
22884 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22887 \begin_layout Plain Layout
22895 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22898 \begin_layout Plain Layout
22904 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22907 \begin_layout Plain Layout
22913 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22916 \begin_layout Plain Layout
22922 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22925 \begin_layout Plain Layout
22931 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22934 \begin_layout Plain Layout
22953 \begin_layout Standard
22957 \begin_layout Plain Layout
22969 \begin_layout Standard
22973 \begin_layout Plain Layout
22977 sidecaptionvpos{figure}{c}
22983 \begin_inset Float figure
22988 \begin_layout Plain Layout
22989 \begin_inset Graphics
22990 filename clipart/escher-lsd.eps
22992 scaleBeforeRotation
22999 \begin_layout Plain Layout
23000 \begin_inset Caption
23002 \begin_layout Plain Layout
23003 \begin_inset CommandInset label
23005 name "fig:cap-beside-fig-2"
23009 This is a vertically centered caption beside a figure.
23022 \begin_layout Standard
23026 \begin_layout Plain Layout
23038 \begin_layout Standard
23042 \begin_layout Plain Layout
23052 \begin_inset Note Note
23055 \begin_layout Plain Layout
23056 The following will be displayed when the LaTeX-package
23068 \begin_layout Standard
23069 You need to install the LaTeX-package
23073 to see the following part of this section in the output.
23076 \begin_layout Standard
23080 \begin_layout Plain Layout
23092 \begin_layout Section
23094 \begin_inset CommandInset label
23096 name "sec:Listings-of-Floats"
23104 \begin_layout Plain Layout
23105 Floats ! Float Lists
23113 \begin_layout Standard
23114 Similar to the the table of contents where the sections of the document
23115 are listed, there are listings for all float types, like the figures of
23117 You can insert them via the
23119 Insert\SpecialChar \menuseparator
23121 \begin_inset space ~
23125 \begin_inset space ~
23133 \begin_layout Standard
23134 The list entries are the float captions or its short title, the float number,
23135 and the page number where they appear in the document.
23138 \begin_layout Standard
23139 You can find the list of figures and tables at the end of this document.
23142 \begin_layout Chapter
23146 \begin_layout Section
23148 \begin_inset CommandInset label
23150 name "sec:LyX-Notes"
23158 \begin_layout Plain Layout
23167 \begin_layout Standard
23168 Notes are inserted with the toolbar button
23169 \begin_inset Graphics
23170 filename ../images/note-insert.png
23172 scaleBeforeRotation
23178 Insert\SpecialChar \menuseparator
23182 There are three types of notes:
23185 \begin_layout Description
23187 \begin_inset space ~
23190 Note This note type is for internal notes that won't appear in the output.
23191 Its note-box looks like this:
23192 \begin_inset Newline newline
23196 \begin_inset Newline newline
23200 \begin_inset Graphics
23201 filename clipart/LyXNoteImageQt4.png
23204 scaleBeforeRotation
23209 \begin_inset Note Note
23212 \begin_layout Plain Layout
23213 This is text in a note box that doesn't appear in the output.
23221 \begin_layout Description
23222 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
23223 ent, when you export the document to LaTeX via the menu
23225 File\SpecialChar \menuseparator
23226 Export\SpecialChar \menuseparator
23227 LaTeX (pdflatex) / (plain)
23230 Its note-box looks like this:
23231 \begin_inset Newline newline
23235 \begin_inset Newline newline
23239 \begin_inset Graphics
23240 filename clipart/CommentNoteImageQt4.png
23243 scaleBeforeRotation
23248 \begin_inset Note Comment
23251 \begin_layout Plain Layout
23252 This is text in a note box that only appears as comment in LaTeX-files.
23260 \begin_layout Description
23262 \begin_inset space ~
23265 Out This note will appear in the output as grey text.
23266 Its note-box looks like this:
23267 \begin_inset Newline newline
23271 \begin_inset Newline newline
23275 \begin_inset Graphics
23276 filename clipart/GreyedOutNoteImageQt4.png
23279 scaleBeforeRotation
23284 \begin_inset Newline newline
23291 \begin_layout Plain Layout
23295 renewenvironment{lyxgreyedout}
23298 \begin_layout Plain Layout
23302 textcolor[gray]{0.8}
23312 \begin_inset Note Greyedout
23315 \begin_layout Plain Layout
23320 \begin_layout Plain Layout
23321 This is an example footnote within a greyed out note.
23326 of a comment that appears in the output as grey text.
23335 \begin_layout Plain Layout
23339 renewenvironment{lyxgreyedout}
23342 \begin_layout Plain Layout
23356 \begin_inset Note Note
23359 \begin_layout Plain Layout
23360 The greyed out note is here redefined to show it with the original LyX definitio
23361 n because greyed out notes are redefined in the preamble of this document,
23362 as described below, to have blue text.
23368 \begin_inset Newline newline
23372 \begin_inset Newline newline
23375 As you can see in the example, the first line of greyed out notes is a bit
23376 indented and greyed out notes can have footnotes.
23379 \begin_layout Standard
23380 \begin_inset VSpace bigskip
23383 When you use the toolbar button
23384 \begin_inset Graphics
23385 filename ../images/note-insert.png
23387 scaleBeforeRotation
23394 \begin_inset space ~
23400 You can switch between the five note types by right-clicking on the note-box.
23405 If you want to turn existing text into a note, mark it and click on the
23419 To change a note to text, press the backspace key when the cursor is in
23420 the first position of a note, or press the deletey key when the cursor
23421 is in the very last position of the note, respectively.
23424 \begin_layout Standard
23425 \begin_inset VSpace bigskip
23428 You can change the text color of the greyed out notes in the preamble with
23429 the following command:
23432 \begin_layout Standard
23437 renewenvironment{lyxgreyedout}
23438 \begin_inset Newline newline
23445 \begin_layout Plain Layout
23463 \begin_layout Standard
23464 The available colors and the method to define own colors is explained in
23466 \begin_inset space ~
23470 \begin_inset CommandInset ref
23472 reference "sec:Colored-Tables"
23479 \begin_layout Standard
23480 Notes that appear in blue in this document are set using greyed out notes
23484 \begin_layout Section
23486 \begin_inset CommandInset label
23488 name "sec:Footnotes"
23496 \begin_layout Plain Layout
23506 \begin_layout Plain Layout
23515 \begin_layout Standard
23516 Footnotes can be inserted using the toolbar button
23517 \begin_inset Graphics
23518 filename ../images/footnote-insert.png
23520 scaleBeforeRotation
23526 Insert\SpecialChar \menuseparator
23538 then the following footnote-box:
23539 \begin_inset Graphics
23540 filename clipart/footnoteQt4.png
23542 scaleBeforeRotation
23550 where you can enter the footnote text.
23551 If you want to turn existing text into a footnote, mark it and click on
23573 to text, press the Backspace key when the cursor is in the first position
23582 , or press the Delete key when the cursor is in the very last position of
23594 \begin_layout Standard
23595 Here is an example footnote:
23603 \begin_layout Plain Layout
23604 \begin_inset CommandInset label
23606 name "foot:This-is-an"
23610 This is an example footnote.
23623 \begin_layout Plain Layout
23627 newcounter{MyRepeatFoot}
23630 \begin_layout Plain Layout
23634 setcounter{MyRepeatFoot}{
23644 \begin_layout Standard
23645 The footnote will appear in the output as a superscript number at the text
23646 position where the footnote box is placed.
23647 The footnote text is placed at the bottom of the current page.
23648 The footnote number is calculated by LaTeX, the numbers are consecutive.
23649 It depends on your document-class, if the footnote number is reset for
23653 \begin_layout Standard
23654 Footnotes can be referenced like floats: Insert a label into the footnote
23655 and cross-reference this label in the text as described in section
23656 \begin_inset space ~
23660 \begin_inset CommandInset ref
23662 reference "sec:Referencing-Floats"
23667 \begin_inset Newline newline
23670 This is a cross-reference of Footnote
23671 \begin_inset space ~
23675 \begin_inset CommandInset ref
23677 reference "foot:This-is-an"
23684 \begin_layout Standard
23685 \begin_inset VSpace defskip
23688 To use footnotes within tables, you have to use minipages, see section
23689 \begin_inset space ~
23693 \begin_inset CommandInset ref
23695 reference "sec:Minipages"
23700 Footnotes within longtables are described in section
23701 \begin_inset space ~
23705 \begin_inset CommandInset ref
23707 reference "sub:Footnotes-in-Longtables"
23714 \begin_layout Standard
23715 \begin_inset VSpace defskip
23718 To create only a mark for a footnote, use the command
23722 footnotemark[number]
23725 This is used when you have the same annotation several times in a text
23726 but doesn't want to print the footnote text every time.
23727 \begin_inset Newline newline
23730 As you don't know the number of the repeating footnote while you are writing
23731 the text, you have to store its number.
23732 For the following footnote mark example, these commands were inserted in
23733 TeX-Code behind Footnote
23734 \begin_inset space ~
23738 \begin_inset CommandInset ref
23740 reference "foot:This-is-an"
23744 to store the footnote number:
23747 \begin_layout Standard
23752 newcounter{MyRepeatFoot}
23753 \begin_inset Newline newline
23758 setcounter{MyRepeatFoot}{
23763 \begin_layout Standard
23764 The footnote mark was then created with this command:
23767 \begin_layout Standard
23777 \begin_layout Standard
23778 Here is an example footnote mark:
23786 \begin_layout Plain Layout
23800 \begin_layout Subsection
23802 \begin_inset CommandInset label
23804 name "sub:Footnote-Numbering"
23812 \begin_layout Plain Layout
23813 Footnotes ! Numbering
23821 \begin_layout Standard
23822 To reset the footnote number back to 1 after each section
23824 , add this command to your document preamble:
23827 \begin_layout Standard
23832 @addtoreset{footnote}{section}
23835 \begin_layout Standard
23836 \begin_inset VSpace bigskip
23839 The following preamble command changes the footnote numbering style to small
23843 \begin_layout Standard
23855 \begin_layout Standard
23859 \begin_layout Plain Layout
23872 This is a footnote with roman numbering:
23876 \begin_layout Plain Layout
23877 This is an example footnote with roman numbering.
23885 \begin_layout Standard
23886 To change the numbering style to capital roman numerals replace in the command
23901 \begin_inset Quotes eld
23905 \begin_inset Quotes erd
23908 footnotes with capital or small Latin letters use
23922 \begin_inset Quotes eld
23926 \begin_inset Quotes erd
23929 footnotes with symbols use
23938 \begin_layout Standard
23939 \begin_inset Note Greyedout
23942 \begin_layout Plain Layout
23947 You can only number 26 footnotes with Latin letters, because this numbering
23948 is limited to single letters.
23954 \begin_inset Newline newline
23958 \begin_inset Note Greyedout
23961 \begin_layout Plain Layout
23966 You can only number 9 footnotes with symbols.
23974 \begin_layout Standard
23975 To return to the default numbering style when you changed to another one,
23988 in the command above.
23992 \begin_layout Plain Layout
24008 \begin_layout Standard
24009 \begin_inset VSpace bigskip
24015 \begin_layout Standard
24016 If you want to have footnotes numbered in the scheme
24017 \begin_inset Quotes eld
24021 \begin_inset Quotes erd
24024 , add the following command to your document preamble:
24027 \begin_layout Standard
24032 numberwithin{footnote}{chapter}
24035 \begin_layout Standard
24036 To be able to use the command
24045 \begin_inset space ~
24050 in the document settings the option
24053 \begin_inset space ~
24057 \begin_inset space ~
24061 \begin_inset space ~
24069 \begin_layout Standard
24073 \begin_layout Plain Layout
24077 numberwithin{footnote}{chapter}
24082 This is another example footnote:
24088 \begin_layout Plain Layout
24089 This is a footnote numbered in the scheme
24090 \begin_inset Quotes eld
24094 \begin_inset Quotes erd
24108 \begin_layout Plain Layout
24124 \begin_layout Standard
24125 \begin_inset Note Greyedout
24128 \begin_layout Plain Layout
24139 always prints out the footnote number as arabic number; previous redefinitions
24140 to get non-arabic numbers are overwritten.
24148 \begin_layout Standard
24149 So to get for example the scheme
24150 \begin_inset Quotes eld
24156 \begin_inset Quotes erd
24159 , use this command instead of
24168 \begin_layout Standard
24182 \begin_layout Subsection
24187 \begin_layout Plain Layout
24188 Footnotes ! Placement
24196 \begin_layout Standard
24197 If you have several footnotes in one page, they appear without vertical
24198 space between them at the bottom of the page.
24199 To make them better readable you can e.
24200 \begin_inset space \thinspace{}
24204 \begin_inset space ~
24208 \begin_inset space \thinspace{}
24211 mm space with the following preamble command:
24214 \begin_layout Standard
24224 \begin_inset Newline newline
24238 \begin_layout Standard
24239 \begin_inset VSpace bigskip
24242 In a two-column document the footnotes appear at the bottom of every column,
24244 \begin_inset space ~
24248 \begin_inset CommandInset ref
24250 reference "fig:Standard-footnote-placement"
24255 If the footnotes should only appear at the bottom of the right column,
24257 \begin_inset space ~
24261 \begin_inset CommandInset ref
24263 reference "fig:Footnote-placement-in"
24267 , use the LaTeX-package
24275 \begin_layout Plain Layout
24276 LaTeX-packages ! ftnright
24281 with this command in the document preamble:
24284 \begin_layout Standard
24289 usepackage{ftnright}
24292 \begin_layout Standard
24293 \begin_inset Float figure
24299 \begin_layout Plain Layout
24303 \begin_layout Plain Layout
24313 \begin_inset Graphics
24314 filename clipart/without_fntright.pdf
24316 scaleBeforeRotation
24324 \begin_layout Plain Layout
24334 \begin_layout Plain Layout
24335 \begin_inset Caption
24337 \begin_layout Plain Layout
24338 \begin_inset CommandInset label
24340 name "fig:Standard-footnote-placement"
24344 Standard footnote placement in two-column documents.
24357 \begin_layout Standard
24358 \begin_inset Float figure
24364 \begin_layout Plain Layout
24368 \begin_layout Plain Layout
24378 \begin_inset Graphics
24379 filename clipart/with_fntright.pdf
24381 scaleBeforeRotation
24389 \begin_layout Plain Layout
24399 \begin_layout Plain Layout
24400 \begin_inset Caption
24402 \begin_layout Plain Layout
24403 \begin_inset CommandInset label
24405 name "fig:Footnote-placement-in"
24409 Footnote placement in two-column documents when the LaTeX-package
24426 \begin_layout Standard
24427 \begin_inset VSpace bigskip
24430 In some scientific literature it is usual to collect the footnotes and print
24431 them in a separate paragraph at the the end of a section, like in Figure
24432 \begin_inset space ~
24436 \begin_inset CommandInset ref
24438 reference "fig:Endnotes----footnotes"
24443 They are then so called
24444 \begin_inset Quotes eld
24448 \begin_inset Quotes erd
24455 \begin_layout Plain Layout
24461 To use endnotes instead of footnotes in your document, load the LaTeX-package
24470 \begin_layout Plain Layout
24471 LaTeX-packages ! endnotes
24476 with the document preamble lines
24479 \begin_layout Standard
24484 usepackage{endnotes}
24485 \begin_inset Newline newline
24497 \begin_layout Standard
24498 To insert the collected footnotes, insert the command
24501 \begin_layout Standard
24509 \begin_layout Standard
24510 in TeX-Code at the the end of a section or chapter.
24513 \begin_layout Standard
24514 \begin_inset Float figure
24519 \begin_layout Plain Layout
24524 \begin_layout Plain Layout
24534 \begin_inset Graphics
24535 filename clipart/endnotes.pdf
24536 scaleBeforeRotation
24544 \begin_layout Plain Layout
24554 \begin_layout Plain Layout
24555 \begin_inset Caption
24557 \begin_layout Plain Layout
24558 \begin_inset CommandInset label
24560 name "fig:Endnotes----footnotes"
24564 Endnotes -- footnotes are printed in a separate paragraph at the end of
24565 sections or chapters.
24578 \begin_layout Standard
24579 \begin_inset VSpace medskip
24582 The paragraph heading for the endnotes isn't automatically translated into
24583 the document language, this must be done manually.
24584 The following preamble command translate the default English name
24585 \begin_inset Quotes eld
24589 \begin_inset Quotes erd
24592 to the German translation
24593 \begin_inset Quotes eld
24597 \begin_inset Quotes erd
24603 \begin_layout Standard
24610 notesname}{Anmerkungen}
24613 \begin_layout Standard
24614 \begin_inset VSpace medskip
24617 The numbering of endnotes can be changed like the footnote numbering as
24618 described in section
24619 \begin_inset space ~
24623 \begin_inset CommandInset ref
24625 reference "sub:Footnote-Numbering"
24629 ; just replace the command
24642 To reset the endnote number use the command
24648 as described in section
24649 \begin_inset space ~
24653 \begin_inset CommandInset ref
24655 reference "sub:Footnote-Numbering"
24659 and replace the command parameter
24670 \begin_layout Standard
24671 To create only a mark for an endnote, use the command
24675 endnotemark[number]
24677 similar to the command
24683 , described in section
24684 \begin_inset space ~
24688 \begin_inset CommandInset ref
24690 reference "sec:Footnotes"
24697 \begin_layout Standard
24698 \begin_inset VSpace bigskip
24701 Footnotes can also be placed in the page margin and the footnote text alignment
24702 can be changed, see the LaTeX-package
24710 \begin_layout Plain Layout
24711 LaTeX-packages ! footmisc
24717 \begin_inset CommandInset citation
24723 for more information about this.
24726 \begin_layout Standard
24727 For various further footnote formatting issues have a look at LaTeX-books,
24729 \begin_inset CommandInset citation
24731 key "latexcompanion,latexguide,latexbook"
24738 \begin_layout Section
24743 \begin_layout Plain Layout
24744 Notes ! Margin Notes
24752 \begin_layout Standard
24753 Margin notes look and behave in LyX like footnotes.
24754 They are inserted via the menu
24756 Insert\SpecialChar \menuseparator
24758 \begin_inset space ~
24763 or the toolbar button
24764 \begin_inset Graphics
24765 filename ../images/marginalnote-insert.png
24767 scaleBeforeRotation
24782 \begin_inset Quotes eld
24786 \begin_inset Quotes erd
24789 appears where you can enter the text of the margin note.
24792 \begin_layout Standard
24793 At the side is an example margin note.
24798 \begin_inset Marginal
24801 \begin_layout Plain Layout
24802 This is a margin note.
24810 \begin_layout Standard
24811 Margin notes appear at the right side in single-sided documents.
24812 In double-sided documents they appear in the outer margin -- left on even
24813 pages, right on odd pages.
24814 The text of margin notes is aligned opposite to the outer margin -- right-align
24815 ed when the note appears in the left margin.
24816 The first line of the margin note is placed at the position of the text
24817 line where it is inserted in the document.
24820 \begin_layout Standard
24821 \begin_inset VSpace bigskip
24824 To place the margin note in the inner margin, add the command
24827 \begin_layout Standard
24835 \begin_layout Standard
24836 in TeX-Code before a margin note.
24837 The new placement is valid for all following margin notes.
24842 \begin_layout Plain Layout
24852 \begin_inset Marginal
24855 \begin_layout Plain Layout
24856 This is a margin note in the inner margin.
24864 \begin_inset Newline newline
24870 \begin_inset Note Greyedout
24873 \begin_layout Plain Layout
24878 There is often not enough space in the inner margin so that the notes are
24879 not correctly displayed in the output.
24887 \begin_layout Standard
24888 To return to the default placement insert the command
24891 \begin_layout Standard
24899 \begin_layout Standard
24904 \begin_layout Plain Layout
24914 \begin_inset Note Greyedout
24917 \begin_layout Plain Layout
24922 The command is ignored when it is within a paragraph where also the command
24937 \begin_layout Standard
24938 \begin_inset VSpace bigskip
24945 \begin_inset Marginal
24948 \begin_layout Plain Layout
24949 AVeryLongMarginParWord that isn't hyphenated.
24957 Similar to the case described in section
24958 \begin_inset space ~
24962 \begin_inset CommandInset ref
24964 reference "sub:Multiple-Lines-in"
24968 , long words cannot be hyphenated when they are the first word in a margin
24970 To avoid this, insert 0
24971 \begin_inset space \thinspace{}
24974 pt horizontal space before the word
24979 \begin_inset Marginal
24982 \begin_layout Plain Layout
24983 \begin_inset space \hspace*{}
24987 AVeryLongMarginParWord that is hyphenated.
24995 \begin_layout Standard
24996 \begin_inset VSpace bigskip
25002 \begin_layout Standard
25003 \begin_inset Note Greyedout
25006 \begin_layout Plain Layout
25011 Margin notes can normally not be used inside tables, floats, and footnotes.
25019 \begin_layout Standard
25020 \begin_inset VSpace bigskip
25026 \begin_layout Standard
25030 \begin_layout Plain Layout
25040 \begin_inset Note Note
25043 \begin_layout Plain Layout
25044 The following section will only be displayed when the LaTeX-package
25056 \begin_layout Standard
25057 This restriction can be evaded by using the LaTeX-package
25065 \begin_layout Plain Layout
25066 LaTeX-packages ! marginnote
25072 By adding these two lines to your document preamble, the command used by
25073 LyX for margin notes is redefined to use the command provided by the
25080 \begin_layout Standard
25085 usepackage{marginnote}
25086 \begin_inset Newline newline
25098 \begin_layout Standard
25099 This is also used in this document because
25103 has another useful feature: You can set a vertical offset for the note.
25104 This is often needed when too many margin notes are too close together
25105 or for a better page layout.
25106 The offset is set in LyX as TeX-Code directly behind the margin note in
25110 \begin_layout Standard
25116 \begin_layout Standard
25117 where the offset is a length with one of the units listed in Table
25118 \begin_inset space ~
25122 \begin_inset CommandInset ref
25124 reference "tab:Units"
25129 A negative value shifts the note up, a positive value shifts it down.
25133 For example the margin note beside this text line is shifted up 1.5
25134 \begin_inset space \thinspace{}
25137 cm with the TeX-Code-command
25138 \begin_inset Quotes eld
25148 \begin_inset Quotes erd
25152 \begin_inset Marginal
25155 \begin_layout Plain Layout
25156 This margin note is shifted up 1.5
25157 \begin_inset space \thinspace{}
25160 cm from its original position.
25172 \begin_layout Plain Layout
25182 \begin_layout Standard
25183 \begin_inset VSpace medskip
25190 you can also change the alignment of the text in the margin note.
25191 For example the commands
25194 \begin_layout Standard
25201 raggedleftmarginnote}{
25204 \begin_inset Newline newline
25211 raggedrightmarginnote}{
25216 \begin_layout Standard
25217 set the alignment to centered.
25222 raggedleftmarginnote
25224 denotes margin notes that appear at the left side.
25231 \begin_layout Plain Layout
25237 raggedleftmarginnote}{
25242 \begin_layout Plain Layout
25248 raggedrightmarginnote}{
25256 \begin_inset Marginal
25259 \begin_layout Plain Layout
25260 The text of this margin note is centered.
25271 \begin_layout Standard
25278 raggedleftmarginnote}{
25281 \begin_inset Newline newline
25288 raggedrightmarginnote}{
25297 \begin_layout Plain Layout
25303 raggedleftmarginnote}{
25308 \begin_layout Plain Layout
25314 raggedrightmarginnote}{
25324 \begin_layout Standard
25325 \begin_inset VSpace medskip
25328 For the other features of
25332 we refer to its documentation
25333 \begin_inset CommandInset citation
25342 \begin_layout Standard
25343 \begin_inset VSpace bigskip
25346 You can adjust the layout of margin notes by changing its definition.
25347 To create for example a header for all margin notes with the underlined,
25348 sans-serif, and bold header text
25349 \begin_inset Quotes eld
25361 \begin_inset Quotes erd
25364 , add this to your document preamble:
25367 \begin_layout Standard
25377 \begin_inset Newline newline
25387 \begin_inset Newline newline
25394 \begin_layout Plain Layout
25411 underbar{Attention!}}}%
25412 \begin_inset Newline newline
25419 \begin_layout Plain Layout
25437 \begin_layout Standard
25444 \begin_layout Plain Layout
25455 \begin_layout Plain Layout
25466 \begin_layout Plain Layout
25474 underbar{Attention!}}}%
25477 \begin_layout Plain Layout
25491 \begin_inset Marginal
25494 \begin_layout Plain Layout
25495 This is a margin note with a defined heading.
25507 \begin_layout Plain Layout
25521 \begin_layout Plain Layout
25538 \begin_inset Note Note
25541 \begin_layout Plain Layout
25542 The margin note format is changed only for this example.
25550 \begin_layout Standard
25554 \begin_layout Plain Layout
25564 \begin_inset Note Note
25567 \begin_layout Plain Layout
25568 The following will be displayed when the LaTeX-package
25580 \begin_layout Standard
25581 You need to install the LaTeX-package
25585 to see the following part of this section in the output.
25588 \begin_layout Standard
25592 \begin_layout Plain Layout
25604 \begin_layout Chapter
25608 \begin_layout Section
25613 \begin_layout Plain Layout
25614 Boxes ! Introduction
25622 \begin_layout Standard
25623 Boxes are used to format a block of text.
25624 Boxes can be used to write documents with multiple languages, see section
25625 \begin_inset space ~
25629 \begin_inset CommandInset ref
25631 reference "sec:Minipages"
25635 , to frame texts, see section
25636 \begin_inset space ~
25640 \begin_inset CommandInset ref
25642 reference "sec:Decoration"
25646 , to prevent words to be hyphenated, see section
25647 \begin_inset space ~
25651 \begin_inset CommandInset ref
25653 reference "sec:Prevent-Hyphenation"
25657 , to align text, see section
25658 \begin_inset space ~
25662 \begin_inset CommandInset ref
25664 reference "sub:Vertical-Alignment"
25668 , or to set the background color of texts, see section
25669 \begin_inset space ~
25673 \begin_inset CommandInset ref
25675 reference "sec:Colored-Boxes"
25682 \begin_layout Standard
25683 Boxes can be inserted with the menu
25685 Insert\SpecialChar \menuseparator
25688 or the toolbar button
25689 \begin_inset Graphics
25690 filename ../images/box-insert.png
25692 scaleBeforeRotation
25697 A grey box with the label
25702 \begin_inset Graphics
25703 filename clipart/BoxInsetDefaultQt4.png
25705 scaleBeforeRotation
25709 , will be inserted.
25710 The box type can be specified by right-clicking on the box.
25711 The appearing box dialog offers the
25714 \begin_inset space ~
25732 is the default for new boxes and is explained in section
25733 \begin_inset space ~
25737 \begin_inset CommandInset ref
25739 reference "sec:Minipages"
25747 is described in section
25748 \begin_inset space ~
25752 \begin_inset CommandInset ref
25754 reference "sec:Parboxes"
25761 \begin_layout Standard
25762 Boxes aren't numbered and can therefore not be referenced like floats or
25766 \begin_layout Standard
25767 \begin_inset Note Greyedout
25770 \begin_layout Plain Layout
25775 Boxes must not be the item in an
25791 \begin_layout Standard
25792 \begin_inset Note Greyedout
25795 \begin_layout Plain Layout
25800 For an unknown reason you can only set the
25803 \begin_inset space ~
25812 when you use a framed box.
25816 \begin_inset space ~
25821 type and without frames are explained in section
25822 \begin_inset space ~
25826 \begin_inset CommandInset ref
25828 reference "sec:Prevent-Hyphenation"
25840 \begin_layout Section
25842 \begin_inset CommandInset label
25844 name "sec:Box-Dialog"
25852 \begin_layout Plain Layout
25861 \begin_layout Subsection
25866 \begin_layout Plain Layout
25875 \begin_layout Standard
25876 In the box dialog you can adjust the box geometry in the fields
25885 The available units for the geometry are explained in Table
25886 \begin_inset space ~
25890 \begin_inset CommandInset ref
25892 reference "tab:Units"
25901 offers the following additional sizes:
25904 \begin_layout Description
25905 Depth This is the plain text
25906 \begin_inset Quotes eld
25910 \begin_inset Quotes erd
25914 It ignores the total depth when there are multiple text lines in the box:
25915 \begin_inset Newline newline
25919 \begin_inset Newline newline
25923 \begin_inset Newline newline
25927 \begin_inset Box Boxed
25936 height_special "depth"
25939 \begin_layout Plain Layout
25941 Box height set to 1
25942 \begin_inset space \thinspace{}
25951 \begin_inset Newline newline
25955 \begin_inset Newline newline
25961 \begin_layout Description
25962 Height This is the heigth of the text that is inside the box.
25964 \begin_inset space \thinspace{}
25968 \begin_inset space ~
25971 2 for this size will set the box heigth to 2 times the text height:
25972 \begin_inset Box Boxed
25981 height_special "height"
25984 \begin_layout Plain Layout
25986 Box height set to 2
25987 \begin_inset space \thinspace{}
25998 \begin_layout Description
26000 \begin_inset space ~
26003 Height This is the Height
26004 \begin_inset space \thinspace{}
26008 \begin_inset space \thinspace{}
26012 \begin_inset Box Boxed
26021 height_special "totalheight"
26024 \begin_layout Plain Layout
26026 Box height set to 1
26027 \begin_inset space \thinspace{}
26031 \begin_inset space ~
26042 \begin_layout Description
26043 Width This sets the width of the box as heigth:
26044 \begin_inset Box Boxed
26053 height_special "width"
26056 \begin_layout Plain Layout
26058 Box height set to 1
26059 \begin_inset space \thinspace{}
26070 \begin_layout Subsection
26075 \begin_layout Plain Layout
26084 \begin_layout Standard
26085 When you have chosen an
26088 \begin_inset space ~
26093 , the vertical box alignment can be:
26096 \begin_layout Description
26097 Top This is an example text line.
26099 \begin_inset Box Boxed
26108 height_special "totalheight"
26111 \begin_layout Plain Layout
26113 This box is top-aligned.
26118 This is an example text line.
26121 \begin_layout Description
26122 Middle This is an example text line.
26124 \begin_inset Box Boxed
26133 height_special "totalheight"
26136 \begin_layout Plain Layout
26138 This box is middle-aligned.
26143 This is an example text line.
26146 \begin_layout Description
26147 Bottom This is an example text line.
26149 \begin_inset Box Boxed
26158 height_special "totalheight"
26161 \begin_layout Plain Layout
26163 This box is bottom-aligned.
26168 This is an example text line.
26171 \begin_layout Standard
26172 \begin_inset Note Greyedout
26175 \begin_layout Plain Layout
26180 The vertical box aligment can be lost in the output when you have two boxes
26181 in a line and one has e.
26182 \begin_inset space \thinspace{}
26186 \begin_inset space ~
26189 a shadow and the other one not.
26197 \begin_layout Standard
26198 The horizontal box alignment can be set via LyX's paragraph dialog when
26199 you set the box into its own paragraph.
26202 \begin_layout Standard
26203 \begin_inset VSpace bigskip
26206 When you have chosen an
26209 \begin_inset space ~
26214 , the box content can be vertical aligned to:
26217 \begin_layout Description
26218 top This is an example text line.
26220 \begin_inset Box Boxed
26229 height_special "totalheight"
26232 \begin_layout Plain Layout
26234 This box text is top-aligned.
26239 This is an example text line.
26242 \begin_layout Description
26243 middle This is an example text line.
26245 \begin_inset Box Boxed
26254 height_special "totalheight"
26257 \begin_layout Plain Layout
26259 This box text is middle-aligned.
26264 This is an example text line.
26267 \begin_layout Description
26268 bottom This is an example text line.
26270 \begin_inset Box Boxed
26279 height_special "totalheight"
26282 \begin_layout Plain Layout
26284 This box text is bottom-aligned.
26289 This is an example text line.
26292 \begin_layout Description
26293 stretch This is an example text line.
26295 \begin_inset Box Boxed
26304 height_special "totalheight"
26307 \begin_layout Plain Layout
26312 \begin_layout Plain Layout
26317 \begin_layout Plain Layout
26324 This is an example text line.
26327 \begin_layout Standard
26328 To stretch the box content, it must consist of more than one paragraph.
26329 In the example above every text line is in an own paragraph.
26332 \begin_layout Standard
26333 \begin_inset VSpace bigskip
26336 To align the box content horizontally you can use LyX's paragraph dialog
26337 when you have chosen an
26340 \begin_inset space ~
26348 \begin_layout Standard
26350 \begin_inset Box Boxed
26359 height_special "totalheight"
26362 \begin_layout Plain Layout
26367 \begin_layout Plain Layout
26372 \begin_layout Plain Layout
26382 \begin_layout Standard
26383 If you haven't set an
26386 \begin_inset space ~
26391 , you can align the box content horizontally in the box dialog.
26394 \begin_layout Standard
26396 \begin_inset Box Boxed
26405 height_special "totalheight"
26408 \begin_layout Plain Layout
26410 This box text is horizontally stretched.
26418 \begin_layout Subsection
26420 \begin_inset CommandInset label
26422 name "sec:Decoration"
26430 \begin_layout Plain Layout
26439 \begin_layout Standard
26440 The type of the box can be specified in the box-dialog in the drop-down
26446 The following types are possible:
26449 \begin_layout Description
26451 \begin_inset space ~
26455 \begin_inset space ~
26458 frame This draws a rectangle frame around the box.
26459 The frame line thickness has the size of
26467 \begin_inset Box Boxed
26476 height_special "totalheight"
26479 \begin_layout Plain Layout
26489 \begin_layout Description
26491 \begin_inset space ~
26495 \begin_inset space ~
26498 break When you use the decoration
26500 simple rectangular frame
26502 and no inner box, you can allow page breaks within a box.
26503 Note that then, in contrary to other framed boxes, the frame always uses
26504 the whole column width, the box is set as its own paragraph, and
26516 has no effect on this box type.
26517 The frame line thickness has the size of
26525 \begin_inset Box Framed
26534 height_special "totalheight"
26537 \begin_layout Plain Layout
26538 Allow page break box
26546 \begin_layout Description
26548 \begin_inset space ~
26552 \begin_inset space ~
26555 thin This draws an oval frame around the box.
26556 The frame line thickness has the size 0.4
26557 \begin_inset space \thinspace{}
26562 \begin_inset Box ovalbox
26571 height_special "totalheight"
26574 \begin_layout Plain Layout
26584 \begin_layout Description
26586 \begin_inset space ~
26590 \begin_inset space ~
26593 thick This draws an oval frame around the box.
26594 The frame line thickness has the size 0.8
26595 \begin_inset space \thinspace{}
26600 \begin_inset Box Ovalbox
26609 height_special "totalheight"
26612 \begin_layout Plain Layout
26622 \begin_layout Description
26624 \begin_inset space ~
26627 shadow This draws a rectangle frame with a shadow around the box.
26628 The frame line thickness has the size of
26634 , the shadow has a width of 4
26635 \begin_inset space \thinspace{}
26640 \begin_inset Box Shadowbox
26649 height_special "totalheight"
26652 \begin_layout Plain Layout
26662 \begin_layout Description
26664 \begin_inset space ~
26667 background This draws a box with red background color.
26668 In contrary to colored boxes
26672 \begin_layout Plain Layout
26674 \begin_inset space \thinspace{}
26678 \begin_inset CommandInset ref
26680 reference "sec:Colored-Boxes"
26689 , it always uses the whole column width and the box is set as its own paragraph.
26691 \begin_inset Box Shaded
26700 height_special "totalheight"
26703 \begin_layout Plain Layout
26704 Shaded background box
26712 \begin_layout Description
26714 \begin_inset space ~
26718 \begin_inset space ~
26721 frame This draws a double-line rectangle frame around the box.
26722 The line thickness of the inner frame is 0.75
26723 \begin_inset space \thinspace{}
26732 , the thickness of the outer frame is 1.5
26733 \begin_inset space \thinspace{}
26743 The distance between the lines is 1.5
26744 \begin_inset space \thinspace{}
26754 \begin_inset space \thinspace{}
26758 \begin_inset space \thinspace{}
26762 \begin_inset space \thinspace{}
26767 \begin_inset Box Doublebox
26776 height_special "totalheight"
26779 \begin_layout Plain Layout
26781 Double rectangular box
26789 \begin_layout Standard
26790 \begin_inset VSpace bigskip
26793 LyX's box label will reflect the different frame types.
26794 To be able to use all types, the LaTeX-package
26802 \begin_layout Plain Layout
26803 LaTeX-packages ! fancybox
26811 \begin_layout Section
26816 \begin_layout Plain Layout
26817 Boxes ! Customization
26825 \begin_layout Standard
26826 The default value for the size
26833 \begin_inset space \thinspace{}
26837 It can be changed with the following command in TeX-Code to e.
26838 \begin_inset space \thinspace{}
26842 \begin_inset space ~
26846 \begin_inset space \thinspace{}
26852 \begin_layout Standard
26862 \begin_layout Standard
26866 \begin_layout Plain Layout
26878 \begin_inset Box Boxed
26887 height_special "totalheight"
26890 \begin_layout Plain Layout
26892 Rectangular box with
26899 \begin_inset space \thinspace{}
26903 \begin_inset space \thinspace{}
26907 \begin_inset space \thinspace{}
26919 \begin_layout Plain Layout
26933 \begin_layout Standard
26934 \begin_inset VSpace bigskip
26937 The space between the frame and the box content is for all frame styles
26939 \begin_inset space \thinspace{}
26943 You can change it by setting the length
26950 For example the command
26953 \begin_layout Standard
26963 \begin_layout Standard
26964 sets the value to 10
26965 \begin_inset space \thinspace{}
26968 pt, like for the following box:
26971 \begin_layout Standard
26975 \begin_layout Plain Layout
26987 \begin_inset Box Boxed
26996 height_special "totalheight"
26999 \begin_layout Plain Layout
27001 Rectangular box with
27008 \begin_inset space \thinspace{}
27012 \begin_inset space \thinspace{}
27016 \begin_inset space \thinspace{}
27028 \begin_layout Plain Layout
27042 \begin_layout Standard
27043 \begin_inset VSpace bigskip
27046 The diameter of the round corners of the oval boxes can be set with the
27057 \begin_layout Standard
27065 \begin_layout Standard
27066 sets the diameter to 1
27067 \begin_inset space \thinspace{}
27074 \begin_layout Standard
27082 \begin_layout Standard
27083 sets the diameter to
27086 \begin_inset space \thinspace{}
27090 \begin_inset space \thinspace{}
27093 minimum(width and heigth of box)
27105 \begin_layout Standard
27109 \begin_layout Plain Layout
27119 \begin_inset Box Ovalbox
27128 height_special "totalheight"
27131 \begin_layout Plain Layout
27140 \begin_inset space \thinspace{}
27144 \begin_inset space \thinspace{}
27148 \begin_inset space \thinspace{}
27160 \begin_layout Plain Layout
27172 \begin_layout Standard
27173 \begin_inset VSpace bigskip
27176 The size of the shadow can be adjusted by changing the length
27184 \begin_inset space \thinspace{}
27187 pt for the following box by this command:
27190 \begin_layout Standard
27200 \begin_layout Standard
27204 \begin_layout Plain Layout
27216 \begin_inset Box Shadowbox
27225 height_special "totalheight"
27228 \begin_layout Plain Layout
27237 \begin_inset space \thinspace{}
27241 \begin_inset space \thinspace{}
27245 \begin_inset space \thinspace{}
27257 \begin_layout Plain Layout
27271 \begin_layout Standard
27272 \begin_inset VSpace bigskip
27278 \begin_layout Standard
27279 The default value for the size
27286 \begin_inset space \thinspace{}
27290 The default space between the note content and the frame is 9
27291 \begin_inset space \thinspace{}
27294 pt and can be changed with the value of
27301 For example the frame appearance of the following
27305 is set with the TeX-Code commands
27308 \begin_layout Standard
27316 \begin_inset Newline newline
27326 \begin_layout Standard
27330 \begin_layout Plain Layout
27339 \begin_layout Plain Layout
27351 \begin_inset Box Framed
27360 height_special "totalheight"
27363 \begin_layout Plain Layout
27377 \begin_layout Plain Layout
27386 \begin_layout Plain Layout
27400 \begin_layout Standard
27401 \begin_inset VSpace bigskip
27407 \begin_layout Standard
27412 boxes the default space between the box content and the box border is 3
27413 \begin_inset space \thinspace{}
27416 pt and can be changed with the value of
27423 The default background color red can either be changed locally with the
27428 definecolor{shadebox}
27430 or globally with the menu
27432 Tools\SpecialChar \menuseparator
27433 Preferences\SpecialChar \menuseparator
27434 Colors\SpecialChar \menuseparator
27436 \begin_inset space ~
27448 command is explained in section
27449 \begin_inset space ~
27453 \begin_inset CommandInset ref
27455 reference "sec:Colored-Tables"
27463 \begin_layout Plain Layout
27470 requires the LaTeX-package
27474 in the preamble, see section
27475 \begin_inset space ~
27479 \begin_inset CommandInset ref
27481 reference "sec:Colored-Boxes"
27490 For example the appearance of the following shaded background note is set
27491 with the TeX-Code commands
27494 \begin_layout Standard
27504 \begin_inset Newline newline
27511 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
27514 \begin_layout Standard
27518 \begin_layout Plain Layout
27527 \begin_layout Plain Layout
27531 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
27537 \begin_inset Box Shaded
27546 height_special "totalheight"
27549 \begin_layout Plain Layout
27552 This is yellow text in a
27562 box with dark green background.
27571 \begin_layout Plain Layout
27580 \begin_layout Plain Layout
27584 definecolor{shadecolor}{rgb}{1,0,0}
27592 \begin_layout Standard
27593 \begin_inset VSpace bigskip
27596 Changed lengths and widths are valid for all boxes following the commands
27600 \begin_layout Section
27602 \begin_inset CommandInset label
27604 name "sec:Minipages"
27612 \begin_layout Plain Layout
27621 \begin_layout Standard
27622 Minipages are treated by LaTeX as pages within pages and can therefore for
27623 example have their own footnotes.
27626 \begin_layout Standard
27627 Minipages are useful when you write documents with different languages.
27630 \begin_layout Standard
27631 Below are two example minipages side by side.
27632 Their width is set to 45
27633 \begin_inset space \thinspace{}
27636 col% and they are separated by a horizontal fill, that was inserted via
27639 Insert\SpecialChar \menuseparator
27641 \begin_inset space ~
27644 Formatting\SpecialChar \menuseparator
27646 \begin_inset space ~
27652 \begin_inset Newpage newpage
27658 \begin_layout Standard
27659 \begin_inset Box Frameless
27668 height_special "totalheight"
27671 \begin_layout Plain Layout
27674 Dies ist ein deutscher Text.
27675 Dies ist ein deutscher Text.
27676 Dies ist ein deutscher Text.
27677 Dies ist ein deutscher Text.
27678 Dies ist ein deutscher Text.
27679 Dies ist ein deutscher Text.
27680 Dies ist ein deutscher Text.
27681 Dies ist ein deutscher Text.
27682 Dies ist ein deutscher Text.
27683 Dies ist ein deutscher Text.
27684 Dies ist ein deutscher Text.
27685 Dies ist ein deutscher Text.
27686 Dies ist ein deutscher Text
27690 \begin_layout Plain Layout
27693 Dies ist eine deutsche Fußnote.
27699 Dies ist ein deutscher Text.
27700 Dies ist ein deutscher Text.
27706 \begin_inset space \hfill{}
27710 \begin_inset Box Frameless
27719 height_special "totalheight"
27722 \begin_layout Plain Layout
27723 This is an English Text.
27724 This is an English Text.
27725 This is an English Text.
27726 This is an English Text.
27727 This is an English Text.
27728 This is an English Text.
27729 This is an English Text.
27730 This is an English Text.
27731 This is an English Text.
27732 This is an English Text.
27733 This is an English Text.
27734 This is an English Text.
27735 This is an English Text.
27736 This is an English Text.
27737 This is an English Text.
27738 This is an English Text.
27742 \begin_layout Plain Layout
27743 This is an English footnote.
27748 This is an English Text.
27757 \begin_layout Standard
27758 \begin_inset VSpace bigskip
27761 Another application for minipages are footnotes within tables.
27762 Due to a LaTeX restriction footnotes within tables doesn't appear at the
27763 bottom of the current page.
27764 But when you put the table with the footnote to a minipage, the footnote
27765 will appear at its bottom, numbered with Latin letters.
27766 The footnote number is reset to 1 in every minipage but not outside the
27770 \begin_layout Standard
27771 The footnote of this table doesn't appear:
27772 \begin_inset Tabular
27773 <lyxtabular version="3" rows="3" columns="4">
27775 <column alignment="center" valignment="top" width="0pt">
27776 <column alignment="center" valignment="top" width="0pt">
27777 <column alignment="center" valignment="top" width="0pt">
27778 <column alignment="center" valignment="top" width="0pt">
27780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27783 \begin_layout Plain Layout
27789 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27792 \begin_layout Plain Layout
27798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27801 \begin_layout Plain Layout
27806 \begin_layout Plain Layout
27807 This is a footnote within a table.
27817 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27820 \begin_layout Plain Layout
27828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27831 \begin_layout Plain Layout
27837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27840 \begin_layout Plain Layout
27846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27849 \begin_layout Plain Layout
27855 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27858 \begin_layout Plain Layout
27866 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27869 \begin_layout Plain Layout
27875 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27878 \begin_layout Plain Layout
27884 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27887 \begin_layout Plain Layout
27893 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27896 \begin_layout Plain Layout
27910 \begin_layout Standard
27912 \begin_inset Box Frameless
27921 height_special "totalheight"
27924 \begin_layout Plain Layout
27926 \begin_inset Tabular
27927 <lyxtabular version="3" rows="3" columns="4">
27929 <column alignment="center" valignment="top" width="0pt">
27930 <column alignment="center" valignment="top" width="0pt">
27931 <column alignment="center" valignment="top" width="0pt">
27932 <column alignment="center" valignment="top" width="0pt">
27934 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27937 \begin_layout Plain Layout
27943 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27946 \begin_layout Plain Layout
27952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27955 \begin_layout Plain Layout
27960 \begin_layout Plain Layout
27961 This is a footnote within a table.
27971 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27974 \begin_layout Plain Layout
27982 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27985 \begin_layout Plain Layout
27991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
27994 \begin_layout Plain Layout
28000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28003 \begin_layout Plain Layout
28009 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28012 \begin_layout Plain Layout
28020 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28023 \begin_layout Plain Layout
28029 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28032 \begin_layout Plain Layout
28038 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28041 \begin_layout Plain Layout
28047 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28050 \begin_layout Plain Layout
28069 \begin_layout Standard
28070 \begin_inset VSpace bigskip
28073 The document-wide paragraph settings are ignored within minipages.
28074 That means that there will be no space between paragraphs in minipages
28075 although you set it to e.
28076 \begin_inset space \thinspace{}
28080 \begin_inset space ~
28087 in the document settings.
28090 \begin_layout Standard
28091 Minipages can also be used to set a background color for text parts, see
28093 \begin_inset space ~
28097 \begin_inset CommandInset ref
28099 reference "sub:Color-for-Paragraphs"
28106 \begin_layout Standard
28107 \begin_inset Note Greyedout
28110 \begin_layout Plain Layout
28115 You cannot have floats or margin notes inside minipages but minipages can
28116 be used inside tables, floats, and other boxes.
28124 \begin_layout Section
28126 \begin_inset CommandInset label
28128 name "sec:Parboxes"
28136 \begin_layout Plain Layout
28145 \begin_layout Standard
28146 Parboxes are very similar to minipages with the difference that they cannot
28148 The main difference to minipages is that minipages are in contrary to parboxes
28149 no real boxes but LaTeX-environments.
28152 \begin_layout Standard
28154 \begin_inset Box Frameless
28163 height_special "totalheight"
28166 \begin_layout Plain Layout
28167 This a text within a parbox.
28168 This a text within a parbox.
28171 \begin_layout Plain Layout
28172 This footnote won't appear:
28176 \begin_layout Plain Layout
28177 This footnote is inside a parbox and will therefore not appear.
28190 \begin_layout Section
28191 Boxes for Words and Characters
28195 \begin_layout Plain Layout
28196 Boxes ! for Characters
28204 \begin_layout Subsection
28205 Prevent Hyphenation
28206 \begin_inset CommandInset label
28208 name "sec:Prevent-Hyphenation"
28216 \begin_layout Plain Layout
28217 Boxes ! to Prevent Hyphenation
28225 \begin_layout Standard
28226 You can use a special kind of boxes to prevent words or text to be hyphenated.
28227 \begin_inset Newline newline
28230 Here is an example text:
28233 \begin_layout Standard
28234 This line is an example to show how you can prevent the hyphenation of
28235 \begin_inset Quotes eld
28239 \begin_inset Quotes erd
28245 \begin_layout Standard
28246 To prevent the hyphenation of the word
28247 \begin_inset Quotes eld
28251 \begin_inset Quotes erd
28257 \begin_layout Standard
28265 \begin_layout Standard
28266 in TeX-Code before the word.
28267 Behind the word insert a closing brace
28268 \begin_inset Quotes eld
28276 \begin_inset Quotes erd
28282 \begin_layout Standard
28283 This is the result:
28286 \begin_layout Standard
28287 This line is an example to show how you can prevent the hyphenation of
28291 \begin_layout Plain Layout
28301 \begin_inset Quotes eld
28305 \begin_inset Quotes erd
28312 \begin_layout Plain Layout
28322 \begin_layout Standard
28323 You can alternatively set the command
28324 \begin_inset Quotes eld
28334 \begin_inset Quotes grd
28337 as TeX-Code directly before the word:
28340 \begin_layout Standard
28341 This line is an example to show how you can prevent the hyphenation of
28342 \begin_inset Quotes eld
28349 \begin_layout Plain Layout
28359 \begin_inset Quotes erd
28365 \begin_layout Standard
28366 Of course the word now protrudes over the side margin.
28367 To avoid this, add via the menu
28369 Insert\SpecialChar \menuseparator
28371 \begin_inset space ~
28374 Formatting\SpecialChar \menuseparator
28376 \begin_inset space ~
28385 ) a line break before the word:
28388 \begin_layout Standard
28389 This line is an example to show how you can prevent the hyphenation of
28390 \begin_inset Newline newline
28397 \begin_layout Plain Layout
28407 \begin_inset Quotes eld
28411 \begin_inset Quotes erd
28418 \begin_layout Plain Layout
28428 \begin_layout Subsection
28430 \begin_inset CommandInset label
28432 name "sub:Vertical-Alignment"
28440 \begin_layout Plain Layout
28441 Boxes ! for Vertical Alignment
28450 \begin_layout Plain Layout
28459 \begin_layout Standard
28460 With the help of the command
28466 you can align words, characters or other boxes vertically to the surrounding
28474 is used with the following scheme:
28477 \begin_layout Standard
28482 raisebox{lift}[height][depth]{box content}
28485 \begin_layout Standard
28486 The lift can be a positive value to raise the box or a negative value to
28490 \begin_layout Standard
28491 To align for example the word
28492 \begin_inset Quotes eld
28496 \begin_inset Quotes erd
28499 so that the bottom of the
28500 \begin_inset Quotes eld
28504 \begin_inset Quotes erd
28508 \begin_inset Quotes eld
28512 \begin_inset Quotes erd
28515 is at the baseline, insert the command
28518 \begin_layout Standard
28528 \begin_layout Standard
28529 in TeX-Code before the word.
28530 Behind the word insert a closing brace
28531 \begin_inset Quotes eld
28539 \begin_inset Quotes erd
28543 \begin_inset Newline newline
28546 This is the result:
28549 \begin_layout Standard
28550 This is a text line with the word
28554 \begin_layout Plain Layout
28566 \begin_inset Quotes eld
28570 \begin_inset Quotes erd
28577 \begin_layout Plain Layout
28587 \begin_layout Standard
28588 \begin_inset VSpace bigskip
28591 When you raise or lower characters in a line, the line distance will be
28595 \begin_layout Standard
28596 This is a text line with the word
28600 \begin_layout Plain Layout
28612 \begin_inset Quotes eld
28616 \begin_inset Quotes erd
28623 \begin_layout Plain Layout
28631 \begin_inset Newline newline
28634 This is a text line with the word
28638 \begin_layout Plain Layout
28648 \begin_inset Quotes eld
28652 \begin_inset Quotes erd
28659 \begin_layout Plain Layout
28669 \begin_layout Standard
28670 If you want to prevent this for a certain reason, set the box height to
28675 \begin_layout Standard
28685 \begin_layout Standard
28686 This is a text line with the word
28690 \begin_layout Plain Layout
28702 \begin_inset Quotes eld
28706 \begin_inset Quotes erd
28713 \begin_layout Plain Layout
28721 \begin_inset Newline newline
28724 This is a text line with the word
28728 \begin_layout Plain Layout
28732 raisebox{0.5cm}[0pt]{
28738 \begin_inset Quotes eld
28742 \begin_inset Quotes erd
28749 \begin_layout Plain Layout
28759 \begin_layout Section
28761 \begin_inset CommandInset label
28763 name "sec:Colored-Boxes"
28771 \begin_layout Plain Layout
28780 \begin_layout Subsection
28785 \begin_layout Plain Layout
28794 \begin_layout Standard
28795 To color the background of text the text must be put into a so called
28796 \begin_inset Quotes eld
28800 \begin_inset Quotes erd
28804 This requires that the LaTeX-package
28812 \begin_layout Plain Layout
28813 LaTeX-packages ! color
28818 is loaded in the document preamble with the command
28821 \begin_layout Standard
28826 @ifundefined{textcolor}
28827 \begin_inset Newline newline
28834 \begin_layout Plain Layout
28845 usepackage{color}}{}
28848 \begin_layout Standard
28853 will be loaded automatically by LyX when you color text
28857 \begin_layout Plain Layout
28858 To avoid that it is loaded twice the command
28872 \begin_layout Standard
28873 \begin_inset VSpace medskip
28876 Colorboxes are created with the command
28883 This will be used with the following scheme:
28886 \begin_layout Standard
28891 colorbox{color}{box content}
28894 \begin_layout Standard
28895 The box content can also be a box and colorboxes can also be within other
28899 \begin_layout Standard
28900 The following colors are predefined:
28901 \begin_inset Newline newline
28940 \begin_inset Newline newline
28943 You can also define your own color as described in section
28944 \begin_inset space ~
28948 \begin_inset CommandInset ref
28950 reference "sec:Colored-Tables"
28957 \begin_layout Standard
28959 \begin_inset space \thinspace{}
28963 \begin_inset space ~
28966 a red background for a word, insert the command
28969 \begin_layout Standard
28977 \begin_layout Standard
28978 before the word in TeX-Code.
28979 Behind the word insert a closing brace
28980 \begin_inset Quotes eld
28988 \begin_inset Quotes erd
28992 \begin_inset Newline newline
28995 This is the result:
28998 \begin_layout Standard
28999 This is a line where the word
29003 \begin_layout Plain Layout
29013 \begin_inset Quotes eld
29017 \begin_inset Quotes erd
29024 \begin_layout Plain Layout
29031 has a red background.
29034 \begin_layout Standard
29035 \begin_inset VSpace bigskip
29038 If you would have the box frame in a different color, you can use the command
29045 with the following scheme:
29048 \begin_layout Standard
29053 fcolorbox{frame color}{box color}{box content}
29056 \begin_layout Standard
29070 The frame thickness and the space between the frame and the box content
29071 can be adjusted with the lengths
29083 , respectively, as described in section
29084 \begin_inset space ~
29088 \begin_inset CommandInset ref
29090 reference "sec:Decoration"
29097 \begin_layout Standard
29098 For the following example the command
29101 \begin_layout Standard
29106 fcolorbox{cyan}{magenta}{
29109 \begin_layout Standard
29113 \begin_layout Standard
29114 Here is an example where the frame line thickness was set to 1
29115 \begin_inset space \thinspace{}
29119 \begin_inset Newline newline
29126 \begin_layout Plain Layout
29141 \begin_layout Plain Layout
29145 fcolorbox{cyan}{magenta}{
29150 This is text within a colored, framed box.
29154 \begin_layout Plain Layout
29164 \begin_layout Standard
29165 \begin_inset VSpace bigskip
29168 Of course you can also have colored text inside a colorbox:
29169 \begin_inset Newline newline
29176 \begin_layout Plain Layout
29180 fcolorbox{cyan}{magenta}{
29187 This is colored text within a colored, framed box.
29193 \begin_layout Plain Layout
29204 \begin_layout Plain Layout
29218 \begin_layout Standard
29221 \begin_inset VSpace medskip
29227 \begin_layout Standard
29228 \begin_inset Note Greyedout
29231 \begin_layout Plain Layout
29236 Text in colorboxes cannot have line breaks.
29237 To color multiple text lines or paragraphs, use a box inside a colorbox
29238 as described in the following.
29246 \begin_layout Subsection
29247 Color for Paragraphs
29248 \begin_inset CommandInset label
29250 name "sub:Color-for-Paragraphs"
29258 \begin_layout Plain Layout
29259 Color ! for Paragraphs
29267 \begin_layout Standard
29268 To set the background color for more than one text line, put the text into
29270 Before the minipage insert the
29279 \begin_layout Standard
29287 \begin_layout Standard
29289 Behind the minipage insert a closing brace
29290 \begin_inset Quotes eld
29298 \begin_inset Quotes erd
29304 \begin_layout Standard
29308 \begin_layout Plain Layout
29312 colorbox{lightgrey}{
29318 \begin_inset Box Frameless
29327 height_special "totalheight"
29330 \begin_layout Plain Layout
29331 This is text with background color.
29332 This is text with background color.
29335 \begin_layout Plain Layout
29336 \begin_inset VSpace defskip
29339 The text can have footnotes
29343 \begin_layout Plain Layout
29344 Another example footnote
29349 and can include tables and figures.
29352 \begin_layout Plain Layout
29354 \begin_inset Tabular
29355 <lyxtabular version="3" rows="3" columns="3">
29357 <column alignment="center" valignment="top" width="0">
29358 <column alignment="center" valignment="top" width="0">
29359 <column alignment="center" valignment="top" width="0">
29361 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29364 \begin_layout Plain Layout
29370 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29373 \begin_layout Plain Layout
29379 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29382 \begin_layout Plain Layout
29390 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29393 \begin_layout Plain Layout
29399 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29402 \begin_layout Plain Layout
29404 \begin_inset Quotes erd
29412 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29415 \begin_layout Plain Layout
29423 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29426 \begin_layout Plain Layout
29432 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29435 \begin_layout Plain Layout
29441 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29444 \begin_layout Plain Layout
29464 \begin_layout Plain Layout
29474 \begin_layout Section
29475 Rotated and Scaled Boxes
29478 \begin_layout Standard
29479 To use the the commands described in this section, the LaTeX-package
29487 \begin_layout Plain Layout
29488 LaTeX-packages ! graphicx
29493 needs to be loaded in the document preamble with the command
29496 \begin_layout Standard
29501 @ifundefined{rotatebox}
29502 \begin_inset Newline newline
29509 \begin_layout Plain Layout
29520 usepackage{graphicx}}{}
29523 \begin_layout Standard
29524 \begin_inset Note Greyedout
29527 \begin_layout Plain Layout
29532 Some DVI-viewers can't display rotated or scaled material.
29540 \begin_layout Standard
29541 \begin_inset Note Greyedout
29544 \begin_layout Plain Layout
29549 Floats mustn't be inside a rotated or scaled box.
29557 \begin_layout Subsection
29562 \begin_layout Plain Layout
29572 \begin_layout Plain Layout
29582 \begin_layout Plain Layout
29592 \begin_layout Plain Layout
29593 Table Customization ! Rotating
29601 \begin_layout Standard
29602 To rotate material, you can put it into a rotated box.
29603 Such a box is created using the command
29609 in TeX-Code with the following scheme:
29612 \begin_layout Standard
29617 rotatebox[rotation origin]{rotation angle}{box content}
29620 \begin_layout Standard
29621 The rotation origin is specified in the form
29626 The following positions are possible:
29646 (top), and also expedient combinations of the four base positions.
29651 means, that the rotation origin is at the top left corner of the box.
29652 When no rotation origin is specified, the position
29657 The rotation angle is a number that can be negative that specifies the
29659 The rotation direction is counterclockwise.
29662 \begin_layout Standard
29663 In the following example the command
29667 rotatebox[origin=c]{60}{
29669 was inserted as TeX-Code before the text
29670 \begin_inset Quotes eld
29674 \begin_inset Quotes erd
29677 ; after the text the box was closed by a closing brace
29684 \begin_layout Standard
29689 \begin_layout Plain Layout
29693 rotatebox[origin=c]{60}{
29702 \begin_layout Plain Layout
29712 \begin_layout Standard
29713 The box content can also be another box or an inline formula:
29716 \begin_layout Standard
29721 \begin_layout Plain Layout
29725 rotatebox[origin=r]{-60}{
29731 \begin_inset Box Doublebox
29740 height_special "totalheight"
29743 \begin_layout Plain Layout
29753 \begin_layout Plain Layout
29764 \begin_layout Plain Layout
29768 rotatebox[origin=lb]{60}{
29774 \begin_inset Formula $\int A\,\mathrm{d}x=B$
29781 \begin_layout Plain Layout
29791 \begin_layout Standard
29792 or an image or table:
29795 \begin_layout Standard
29800 \begin_layout Plain Layout
29804 rotatebox[origin=lb]{90}{
29810 \begin_inset Graphics
29811 filename clipart/platypus.eps
29821 \begin_layout Plain Layout
29828 with a rotated image
29832 \begin_layout Plain Layout
29836 rotatebox[origin=l]{-90}{
29842 \begin_inset Tabular
29843 <lyxtabular version="3" rows="2" columns="2">
29845 <column alignment="center" valignment="top" width="0">
29846 <column alignment="center" valignment="top" width="0">
29848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
29851 \begin_layout Plain Layout
29857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
29860 \begin_layout Plain Layout
29868 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
29871 \begin_layout Plain Layout
29877 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
29880 \begin_layout Plain Layout
29895 \begin_layout Plain Layout
29905 \begin_layout Subsection
29910 \begin_layout Plain Layout
29920 \begin_layout Plain Layout
29930 \begin_layout Plain Layout
29940 \begin_layout Plain Layout
29941 Table Customization ! Scaling
29949 \begin_layout Standard
29950 To scale material the commands
29962 can be used as TeX-Code.
29965 \begin_layout Standard
29972 is used with the following scheme:
29975 \begin_layout Standard
29980 scalebox{horizontal}[vertical]{box content}
29983 \begin_layout Standard
29984 Horizontal and vertical are the corresponding scaling factors.
29985 If no vertical scaling factor is given, the horizontal factor will also
29986 be used as vertical one.
29989 \begin_layout Standard
29996 creates for example a double size
30000 \begin_layout Plain Layout
30013 \begin_layout Plain Layout
30020 , compared to the document text size.
30023 \begin_layout Standard
30028 scalebox{2}[1]{Hello}
30030 in contrary distorts the
30034 \begin_layout Plain Layout
30047 \begin_layout Plain Layout
30057 \begin_layout Standard
30058 If a the scaling factor is negative, the box content will be mirrored.
30059 Therefore the command
30063 scalebox{-1}[1]{Hello}
30065 can be used to create mirror writing:
30069 \begin_layout Plain Layout
30082 \begin_layout Plain Layout
30092 \begin_layout Standard
30097 scalebox{1}[-1]{Hello}
30103 \begin_layout Plain Layout
30116 \begin_layout Plain Layout
30126 \begin_layout Standard
30131 scalebox{-1}[1]{box content}
30133 there exists the command
30134 \begin_inset Newline newline
30141 reflectbox{box content}
30146 \begin_layout Standard
30147 \begin_inset VSpace bigskip
30156 is used to scale the box to a defined width and height.
30157 The command scheme is:
30160 \begin_layout Standard
30165 resizebox{width}{height}{box content}
30168 \begin_layout Standard
30169 Is one of the two command arguments given as exclamation mark
30173 , the size is set so that the aspect ratio of the box content is kept.
30176 \begin_layout Standard
30181 resizebox{2cm}{1cm}{Hello}
30187 \begin_layout Plain Layout
30191 resizebox{2cm}{1cm}{
30200 \begin_layout Plain Layout
30208 \begin_inset Newline newline
30215 resizebox{2cm}{!}{Hello}
30221 \begin_layout Plain Layout
30234 \begin_layout Plain Layout
30244 \begin_layout Standard
30245 \begin_inset VSpace bigskip
30249 \begin_inset Note Greyedout
30252 \begin_layout Plain Layout
30269 are set to zero, no LaTeX-errors occur when exporting the document but
30270 the exported files can not or only partly be displayed.
30278 \begin_layout Standard
30279 \begin_inset VSpace bigskip
30285 \begin_layout Standard
30286 The boxes can be combined in any order.
30288 \begin_inset space \thinspace{}
30292 \begin_inset space ~
30296 \begin_inset Newline newline
30303 rotatebox[origin=c]{-45}{
30307 reflectbox{Hello}}}
30308 \begin_inset Newline newline
30316 \begin_layout Standard
30321 \begin_layout Plain Layout
30325 rotatebox[origin=c]{-45}{
30338 \begin_layout Plain Layout
30348 \begin_layout Standard
30350 Images, tables, and inline formulas are allowed as box content:
30353 \begin_layout Standard
30358 \begin_layout Plain Layout
30362 rotatebox[origin=c]{-30}{
30372 \begin_inset Graphics
30373 filename clipart/platypus.eps
30383 \begin_layout Plain Layout
30394 \begin_layout Plain Layout
30398 rotatebox[origin=c]{-45}{
30408 \begin_inset Tabular
30409 <lyxtabular version="3" rows="2" columns="2">
30411 <column alignment="center" valignment="top" width="0">
30412 <column alignment="center" valignment="top" width="0">
30414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30417 \begin_layout Plain Layout
30423 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30426 \begin_layout Plain Layout
30434 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30437 \begin_layout Plain Layout
30443 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30446 \begin_layout Plain Layout
30461 \begin_layout Plain Layout
30472 \begin_layout Plain Layout
30476 rotatebox[origin=c]{-45}{
30486 \begin_inset Formula $\int A\,\mathrm{d}x=B$
30493 \begin_layout Plain Layout
30503 \begin_layout Standard
30504 When the global formula style
30508 is used in the document
30512 \begin_layout Plain Layout
30514 \begin_inset Quotes eld
30518 \begin_inset Quotes erd
30521 is added to the document class options.
30526 , also display formulas can be scaled.
30529 \begin_layout Chapter
30534 \begin_layout Plain Layout
30543 \begin_layout Standard
30546 Insert\SpecialChar \menuseparator
30549 you can insert external material to your document.
30553 \begin_layout Description
30555 \begin_inset space ~
30558 Document Another LyX document; its content is directly inserted to your
30562 \begin_layout Description
30564 \begin_inset space ~
30567 Text A text document; every of its text lines is inserted to your document
30571 \begin_layout Description
30573 \begin_inset space ~
30577 \begin_inset space ~
30581 \begin_inset space ~
30584 Lines A text document; its text lines are inserted as they are.
30585 Empty text lines creates a new paragraph in your document.
30588 \begin_layout Description
30590 \begin_inset space ~
30593 Material Files in various formats.
30596 \begin_layout Description
30598 \begin_inset space ~
30601 Document LyX or LaTeX-documents.
30604 \begin_layout Section
30609 \begin_layout Plain Layout
30610 External Stuff ! External Material
30618 \begin_layout Standard
30619 The external material feature allows you to insert files to your document
30620 without converting them previously to a format that can be read by the
30621 document output format because LyX takes care of needed conversions.
30622 This is similar to images that can be inserted in various image formats
30626 \begin_layout Standard
30627 External material can be inserted via the
30631 dialog that is accessible with the menu
30633 Insert\SpecialChar \menuseparator
30634 File\SpecialChar \menuseparator
30636 \begin_inset space ~
30642 Currently the following file types (
30649 \begin_layout Description
30650 ChessDiagram This template supports chess position diagrams made with the
30654 \begin_inset CommandInset href
30657 target "http://en.wikipedia.org/wiki/XBoard"
30666 \begin_layout Description
30667 Date This inserts the date in the form
30672 This is a date inserted as external material:
30673 \begin_inset External
30680 \begin_inset space ~
30684 \begin_inset Note Note
30687 \begin_layout Plain Layout
30688 Remove the protected space when bug 4398 is fixed!
30694 \begin_inset Newline newline
30697 The date is not shown within LyX, only in the output.
30698 There are two other methods of inserting a date: Via menu
30700 Insert\SpecialChar \menuseparator
30703 and with the LaTeX command
30710 The different methods are compared in Table
30711 \begin_inset space ~
30715 \begin_inset CommandInset ref
30717 reference "tab:Comparison-of-the"
30724 \begin_layout Description
30725 LilyPond This template is used for music notation typeset with the program
30726 \begin_inset Newline linebreak
30732 \begin_inset CommandInset href
30735 target "http://en.wikipedia.org/wiki/LilyPond"
30744 \begin_layout Description
30745 RasterImage This can be used for bitmap images.
30746 Nearly all popular image formats are supported.
30747 The image can be treated in the
30751 dialog like the images that are usually included via the
30755 dialog as described in section
30756 \begin_inset space ~
30760 \begin_inset CommandInset ref
30762 reference "sec:Graphics-Dialog"
30767 The difference is that only raster images are allowed, that means that
30768 PDF and EPS-images are not supported.
30771 \begin_layout Description
30772 XFig This template supports images created with the program
30775 \begin_inset CommandInset href
30778 target "http://en.wikipedia.org/wiki/Xfig"
30787 \begin_layout Standard
30788 \begin_inset Float table
30794 \begin_layout Plain Layout
30795 \begin_inset Caption
30797 \begin_layout Plain Layout
30798 \begin_inset CommandInset label
30800 name "tab:Comparison-of-the"
30804 Comparison of the date input methods.
30812 \begin_layout Plain Layout
30814 \begin_inset Tabular
30815 <lyxtabular version="3" rows="4" columns="4">
30817 <column alignment="center" valignment="top" width="0">
30818 <column alignment="center" valignment="top" width="0">
30819 <column alignment="center" valignment="top" width="0">
30820 <column alignment="center" valignment="top" width="0">
30822 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30825 \begin_layout Plain Layout
30831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30834 \begin_layout Plain Layout
30837 External Material\SpecialChar \menuseparator
30843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30846 \begin_layout Plain Layout
30849 Insert\SpecialChar \menuseparator
30855 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30858 \begin_layout Plain Layout
30870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30873 \begin_layout Plain Layout
30879 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30882 \begin_layout Plain Layout
30888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30891 \begin_layout Plain Layout
30897 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30900 \begin_layout Plain Layout
30901 as TeX-Code inset box
30908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30911 \begin_layout Plain Layout
30917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30920 \begin_layout Plain Layout
30926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30929 \begin_layout Plain Layout
30935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30938 \begin_layout Plain Layout
30946 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30949 \begin_layout Plain Layout
30955 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30958 \begin_layout Plain Layout
30964 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30967 \begin_layout Plain Layout
30973 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30976 \begin_layout Plain Layout
30995 \begin_layout Standard
30996 When you use the option
31008 dialog, only the path to the inserted file is shown in the output.
31009 \begin_inset Newline newline
31012 External material is displayed in LyX either as box like this:
31013 \begin_inset Graphics
31014 filename clipart/ExternalMaterialQt4.png
31016 scaleBeforeRotation
31020 or as image, depending on the setting in the
31023 \begin_inset space ~
31035 \begin_layout Standard
31042 manual explains how you can define your own templates.
31045 \begin_layout Section
31047 \begin_inset CommandInset label
31049 name "sec:Child-Documents"
31057 \begin_layout Plain Layout
31058 External Stuff ! Child Documents
31067 \begin_layout Plain Layout
31076 \begin_layout Standard
31077 Child documents are used when you have a long document consisting of several
31078 larger parts or sections.
31079 For maintenance it is often useful and sometimes even required to split
31080 the document in several files that can be revised separately.
31081 The different documents are then the so called child documents and a master
31082 document connects them to print the full document or parts of it.
31085 \begin_layout Standard
31086 Included documents are displayed in LyX as a box like this:
31087 \begin_inset Graphics
31088 filename clipart/ChildDocumentQt4.png
31090 scaleBeforeRotation
31094 To include child documents to a master document use the menu
31096 Insert\SpecialChar \menuseparator
31097 File\SpecialChar \menuseparator
31099 \begin_inset space ~
31105 A dialog pops up where you can choose between four include methods:
31108 \begin_layout Description
31109 Include You can include LyX and LaTeX-documents.
31118 dialog, the included documents will be opened in LyX in a new file tab
31119 so that you can modify it.
31120 \begin_inset Newline newline
31126 \begin_layout Standard
31127 Here is a child document inserted using
31132 \begin_inset CommandInset include
31133 LatexCommand include
31134 filename "DummyDocument1.lyx"
31141 \begin_layout Standard
31142 The section numbering includes the sections of the included files in the
31143 order they are inserted in the master document.
31144 The included example document has for example a subsection that is numbered
31145 as subsection of this section.
31146 Labels of included documents can be referenced: Subsection
31147 \begin_inset space ~
31151 \begin_inset CommandInset ref
31153 reference "sub:External-Subsection-1"
31160 \begin_layout Standard
31161 The preamble of the child document is ignored, only the preamble of the
31162 master document is used.
31163 Included documents are inserted starting on a new page and end with a page
31167 \begin_layout Standard
31168 With the LaTeX-command
31174 you can specify which included child documents are processed when the output
31176 This is useful when you are perhaps only working on a certain chapter of
31177 your large document as this saves compiling time.
31184 is inserted to the master document preamble.
31185 It takes a comma-separated list of the filenames as argument, e.g.
31188 \begin_layout Standard
31193 includeonly{chapter1,chapter5}
31196 \begin_layout Standard
31197 will only process the included files named
31198 \begin_inset Quotes eld
31202 \begin_inset Quotes erd
31206 \begin_inset Quotes eld
31210 \begin_inset Quotes erd
31214 \begin_inset Quotes eld
31218 \begin_inset Quotes erd
31224 \begin_layout Standard
31225 \begin_inset Note Greyedout
31228 \begin_layout Plain Layout
31233 When you have included a LyX- or LaTeX-file, you are warned when you export/vie
31234 w the document in case that the child document uses another document class
31235 than the master document as this will lead to unexpected outputs.
31243 \begin_layout Description
31244 Input This method is very similar to the Include method.
31245 The differences are:
31249 \begin_layout Itemize
31250 Input files don't start with a new page and don't end with a page break.
31253 \begin_layout Itemize
31254 Input files can be previewed in LyX when
31257 \begin_inset space ~
31262 is enabled in LyX's preferences under
31265 \begin_inset space ~
31269 \begin_inset space ~
31272 feel\SpecialChar \menuseparator
31278 \begin_layout Itemize
31289 \begin_layout Standard
31290 Here is a child document inserted using
31295 \begin_inset CommandInset include
31297 filename "DummyDocument2.lyx"
31304 \begin_layout Description
31305 Verbatim With this method every text file can be included.
31306 The file is shown in the output with its source code, no command used in
31307 the text is invoked.
31308 You can use the option
31310 Mark spaces in output
31312 that displays the character
31313 \begin_inset Quotes eld
31320 \begin_layout Plain Layout
31330 \begin_inset Quotes erd
31333 for every space character in the source code.
31334 The difference to the method via the menu
31336 Insert\SpecialChar \menuseparator
31337 File\SpecialChar \menuseparator
31339 \begin_inset space ~
31344 is that the document content is not shown in LyX.
31347 \begin_layout Standard
31348 Here is a child document inserted as Verbatim:
31349 \begin_inset CommandInset include
31350 LatexCommand verbatiminput
31351 filename "DummyTextDocument.txt"
31356 \begin_inset VSpace bigskip
31359 Here is a child document inserted as Verbatim using the
31361 Mark spaces in output
31364 \begin_inset CommandInset include
31365 LatexCommand verbatiminput*
31366 filename "DummyTextDocument.txt"
31373 \begin_layout Standard
31374 \begin_inset VSpace bigskip
31380 \begin_layout Standard
31381 \begin_inset Note Greyedout
31384 \begin_layout Plain Layout
31389 As you can see in the examples above, the text of the documents included
31394 is not broken at the end of the document lines.
31402 \begin_layout Description
31403 Listings This type is described in chapter
31404 \begin_inset space ~
31408 \begin_inset CommandInset ref
31410 reference "cha:Program-Code-Listings"
31417 \begin_layout Standard
31418 \begin_inset Note Greyedout
31421 \begin_layout Plain Layout
31426 Including the same document twice in a document using different methods
31427 could cause LaTeX-problems.
31435 \begin_layout Chapter
31436 Program Code Listings
31437 \begin_inset CommandInset label
31439 name "cha:Program-Code-Listings"
31447 \begin_layout Plain Layout
31457 \begin_layout Plain Layout
31467 \begin_layout Plain Layout
31476 \begin_layout Standard
31477 To include and typeset program code you can use the
31481 inset that can be inserted via the menu
31483 Insert\SpecialChar \menuseparator
31495 \begin_layout Plain Layout
31496 LaTeX-packages ! listings
31501 provides a powerful and flexible way to insert program source code to your
31505 \begin_layout Standard
31506 When right-clicking on a listings inset a dialog pops up where you can set
31507 the listings format.
31510 \begin_layout Standard
31511 By default, a listing starts a new paragraph in the output.
31512 The placement option
31515 \begin_inset space ~
31520 prints the listing inline like this:
31521 \begin_inset listings
31522 lstparams "language={C++}"
31526 \begin_layout Plain Layout
31534 \begin_inset Newline newline
31541 creates a listings float where you can specify the placement options
31542 \begin_inset Quotes eld
31550 \begin_inset Quotes erd
31554 \begin_inset Quotes eld
31562 \begin_inset Quotes erd
31566 \begin_inset Quotes eld
31574 \begin_inset Quotes erd
31578 \begin_inset Quotes eld
31586 \begin_inset Quotes erd
31589 corresponding to the float placement options described in section
31590 \begin_inset space ~
31594 \begin_inset CommandInset ref
31596 reference "sec:Float-Placement"
31601 The placement options can be mixed and are inserted without any separation,
31603 \begin_inset space \thinspace{}
31607 \begin_inset space ~
31611 \begin_inset Quotes eld
31619 \begin_inset Quotes erd
31624 \begin_inset Quotes eld
31628 \begin_inset Quotes erd
31631 has sometimes no effect, but you don't need to use the
31635 option in this case as also non-float listings can have captions and be
31639 \begin_layout Standard
31640 You can add captions to listings with the menu
31642 Insert\SpecialChar \menuseparator
31646 Listings can be referenced like floats: Listing
31647 \begin_inset space ~
31651 \begin_inset CommandInset ref
31653 reference "lst:Example-Listing"
31660 \begin_layout Standard
31661 \begin_inset listings
31662 lstparams "language=Python"
31666 \begin_layout Plain Layout
31668 \begin_inset Caption
31670 \begin_layout Plain Layout
31671 \begin_inset CommandInset label
31673 name "lst:Example-Listing"
31677 Example Listing float
31682 # Example listing float
31685 \begin_layout Plain Layout
31690 \begin_layout Plain Layout
31692 'this is a python function'
31695 \begin_layout Plain Layout
31705 \begin_layout Standard
31706 When you have set a programming language in the listings dialog, the keywords
31707 of this language will be recognized and specially typeset in the output.
31708 In the example listings the Python keyword
31709 \begin_inset Quotes eld
31713 \begin_inset Quotes erd
31716 is recognized and printed bold in the output.
31719 \begin_layout Standard
31720 \begin_inset Note Greyedout
31723 \begin_layout Plain Layout
31728 If you don't get bold keywords when using typewriter fonts, your typewriter
31729 font probably doesn't provide a bold shape.
31730 In this case select a different one in the menu
31732 Document\SpecialChar \menuseparator
31733 Settings\SpecialChar \menuseparator
31745 provide bold shapes.)
31753 \begin_layout Standard
31757 \begin_inset space ~
31762 of the listings dialog you can specify the line numbering style.
31763 You can insert a number to specify which lines are numbered to the field
31769 When you insert e.g.
31771 \begin_inset Quotes eld
31775 \begin_inset Quotes erd
31778 , only every 3rd line will be numbered.
31781 \begin_layout Standard
31782 You can furthermore specify a range of lines, only these will then appear
31787 \begin_inset space ~
31792 should be used when you use national characters like the German umlauts
31794 \begin_inset Newline newline
31797 Here is an example listing with left line numbering, step
31798 \begin_inset Quotes eld
31802 \begin_inset Quotes erd
31806 \begin_inset Quotes eld
31810 \begin_inset Quotes erd
31814 \begin_inset Quotes eld
31818 \begin_inset space ~
31822 \begin_inset Quotes erd
31826 \begin_inset Quotes eld
31830 \begin_inset space ~
31834 \begin_inset space ~
31838 \begin_inset Quotes erd
31842 \begin_inset space \thinspace{}
31846 \begin_inset space \thinspace{}
31852 \begin_layout Standard
31853 \begin_inset listings
31854 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
31858 \begin_layout Plain Layout
31863 \begin_layout Plain Layout
31865 'this is a python function'
31868 \begin_layout Plain Layout
31873 \begin_layout Plain Layout
31878 \begin_layout Plain Layout
31880 'This is a German word: Tschüß'
31883 \begin_layout Plain Layout
31888 \begin_layout Plain Layout
31893 \begin_layout Plain Layout
31895 'this is a python function'
31898 \begin_layout Plain Layout
31908 \begin_layout Standard
31909 \begin_inset Note Greyedout
31912 \begin_layout Plain Layout
31917 Due to a bug in the
31921 package the line numbering is shifted by a line by every previous listing.
31922 That's the reason why the lines 2 and 5 are numbered in the above listing
31923 and not the lines 3 and 6.
31931 \begin_layout Standard
31932 \begin_inset VSpace bigskip
31938 \begin_layout Standard
31939 It is also possible to print lines from a file as listing.
31940 To do this, use the menu
31942 Insert\SpecialChar \menuseparator
31943 File\SpecialChar \menuseparator
31946 and choose the type
31954 \begin_layout Plain Layout
31955 The other child document types are described in section
31956 \begin_inset space ~
31960 \begin_inset CommandInset ref
31962 reference "sec:Child-Documents"
31971 In the child document dialog you can specify the listing parameters in
31973 To show a list of all available parameters, type in a question mark
31974 \begin_inset Quotes eld
31978 \begin_inset Quotes erd
31984 \begin_layout Standard
31985 To reference child document listings, write a label text into the corresponding
31986 field of the child document dialog.
31987 The label can then be referenced using the menu
31989 Insert\SpecialChar \menuseparator
31995 \begin_layout Standard
31997 \begin_inset space ~
32001 \begin_inset CommandInset ref
32003 reference "lst:file-listing"
32007 is an example for a listing of a file; there the lines 10
32008 \begin_inset space \thinspace{}
32012 \begin_inset space \thinspace{}
32015 15 of this LyX file are listed.
32018 \begin_layout Standard
32019 \begin_inset CommandInset include
32020 LatexCommand lstinputlisting
32021 filename "EmbeddedObjects.lyx"
32022 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
32029 \begin_layout Standard
32030 \begin_inset VSpace bigskip
32036 \begin_layout Standard
32037 Global listings settings can be set in the
32039 Document\SpecialChar \menuseparator
32040 Settings\SpecialChar \menuseparator
32044 To get there a list of available options, type in a question mark
32045 \begin_inset Quotes eld
32049 \begin_inset Quotes erd
32055 \begin_inset space ~
32063 \begin_layout Standard
32064 For more information about the
32068 package, we refer to its documentation
32069 \begin_inset CommandInset citation
32078 \begin_layout Standard
32079 \begin_inset Newpage newpage
32085 \begin_layout Chapter
32087 Units available in LyX
32091 \begin_layout Plain Layout
32098 \begin_inset CommandInset label
32100 name "cha:Units-available-in"
32107 \begin_layout Standard
32108 To understand the units described in this documentation, Table
32109 \begin_inset space ~
32113 \begin_inset CommandInset ref
32115 reference "tab:Units"
32119 explains all units available in LyX.
32122 \begin_layout Standard
32123 \begin_inset Float table
32129 \begin_layout Plain Layout
32130 \begin_inset Caption
32132 \begin_layout Plain Layout
32133 \begin_inset CommandInset label
32147 \begin_layout Plain Layout
32148 \begin_inset VSpace medskip
32154 \begin_layout Plain Layout
32156 \begin_inset Tabular
32157 <lyxtabular version="3" rows="20" columns="2">
32159 <column alignment="center" valignment="top" width="0">
32160 <column alignment="center" valignment="top" width="0">
32162 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32165 \begin_layout Plain Layout
32171 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32174 \begin_layout Plain Layout
32182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32185 \begin_layout Plain Layout
32191 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32194 \begin_layout Plain Layout
32202 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32205 \begin_layout Plain Layout
32211 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32214 \begin_layout Plain Layout
32222 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32225 \begin_layout Plain Layout
32231 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32234 \begin_layout Plain Layout
32242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32245 \begin_layout Plain Layout
32251 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32254 \begin_layout Plain Layout
32256 \begin_inset space \thinspace{}
32260 \begin_inset space \thinspace{}
32270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32273 \begin_layout Plain Layout
32279 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32282 \begin_layout Plain Layout
32284 \begin_inset space \thinspace{}
32288 \begin_inset space \thinspace{}
32298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32301 \begin_layout Plain Layout
32307 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32310 \begin_layout Plain Layout
32311 scaled point (65536
32312 \begin_inset space \thinspace{}
32316 \begin_inset space \thinspace{}
32326 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32329 \begin_layout Plain Layout
32335 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32338 \begin_layout Plain Layout
32340 \begin_inset space \thinspace{}
32344 \begin_inset space \thinspace{}
32354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32357 \begin_layout Plain Layout
32363 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32366 \begin_layout Plain Layout
32368 \begin_inset space \thinspace{}
32372 \begin_inset Formula $\approx$
32376 \begin_inset space \thinspace{}
32386 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32389 \begin_layout Plain Layout
32395 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32398 \begin_layout Plain Layout
32400 \begin_inset space \thinspace{}
32404 \begin_inset space \thinspace{}
32414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32417 \begin_layout Plain Layout
32423 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32426 \begin_layout Plain Layout
32427 % of original image width
32434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32437 \begin_layout Plain Layout
32443 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32446 \begin_layout Plain Layout
32454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32457 \begin_layout Plain Layout
32463 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32466 \begin_layout Plain Layout
32474 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32477 \begin_layout Plain Layout
32483 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32486 \begin_layout Plain Layout
32494 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32497 \begin_layout Plain Layout
32503 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32506 \begin_layout Plain Layout
32514 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32517 \begin_layout Plain Layout
32523 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32526 \begin_layout Plain Layout
32534 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32537 \begin_layout Plain Layout
32543 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32546 \begin_layout Plain Layout
32554 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32557 \begin_layout Plain Layout
32563 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32566 \begin_layout Plain Layout
32578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32581 \begin_layout Plain Layout
32587 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32590 \begin_layout Plain Layout
32602 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32605 \begin_layout Plain Layout
32611 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32614 \begin_layout Plain Layout
32616 \begin_inset space \thinspace{}
32620 \begin_inset space \thinspace{}
32641 \begin_layout Chapter
32642 Output File Formats with Graphics
32643 \begin_inset CommandInset label
32645 name "cha:Output-File-Formats"
32652 \begin_layout Section
32657 \begin_layout Plain Layout
32667 \begin_layout Plain Layout
32672 \begin_layout Plain Layout
32683 \begin_layout Plain Layout
32698 \begin_layout Standard
32699 This file type has the extension
32700 \begin_inset Quotes eld
32708 \begin_inset Quotes erd
32713 \begin_inset Quotes eld
32717 \begin_inset Quotes erd
32720 (DVI), because it is completely portable; you can move them from one machine
32721 to another without needing to do any sort of conversion.
32722 At the time when this file-format was developed, this was no matter of
32724 DVIs are used for quick previews and as pre-stage for other output formats,
32728 \begin_layout Standard
32729 \begin_inset Note Greyedout
32732 \begin_layout Plain Layout
32737 DVI-files doesn't contain images, they will only be a linked.
32742 So don't forget this, if you move your
32746 file to another computer.
32747 This property can also slow down your computer when you view the DVI.
32748 Because the DVI-viewer has to convert the image in the background to make
32749 it visible when you scroll in the DVI.
32750 So we recommend to use PDF for files with many images.
32753 \begin_layout Standard
32754 You can export your document to DVI by using the menu
32756 File\SpecialChar \menuseparator
32757 Export\SpecialChar \menuseparator
32761 You can view your document as DVI via the
32765 menu or by using the toolbar button
32766 \begin_inset Graphics
32767 filename ../images/buffer-view_dvi.png
32769 scaleBeforeRotation
32776 \begin_layout Section
32778 \begin_inset CommandInset label
32780 name "sec:PostScript"
32788 \begin_layout Plain Layout
32789 File Formats ! PostScript
32798 \begin_layout Plain Layout
32803 \begin_layout Plain Layout
32814 \begin_layout Plain Layout
32829 \begin_layout Standard
32830 This file type has the extension
32831 \begin_inset Quotes eld
32839 \begin_inset Quotes erd
32843 PostScript was developed by the company
32847 as printer language.
32848 The file contains therefore commands that the printer uses to print the
32850 PostScript can be seen as
32851 \begin_inset Quotes eld
32854 programming language
32855 \begin_inset Quotes erd
32858 ; you can calculate with it and draw diagrams and images
32862 \begin_layout Plain Layout
32863 If you are interested to learn more about this, have a look at the LaTeX-package
32869 \begin_inset CommandInset citation
32881 Due to this ability, the files are often bigger than PDFs.
32884 \begin_layout Standard
32885 PostScript can only contain images in the format
32886 \begin_inset Quotes eld
32889 Encapsulated PostScript
32890 \begin_inset Quotes erd
32893 (EPS, file extension
32894 \begin_inset Quotes eld
32902 \begin_inset Quotes erd
32906 As LyX allows you to use any known image format in your document, it has
32907 to convert images in the background to EPS.
32908 If you have e.g 50 images in your document, LyX has to do 50 conversions
32909 whenever you view or export your document.
32910 This will slow down your work flow with LyX drastically.
32911 So if you plan to use PostScript, you can insert your images directly as
32912 EPS to avoid this problem.
32915 \begin_layout Standard
32916 You can export your document to PostScript using the menu
32918 File\SpecialChar \menuseparator
32919 Export\SpecialChar \menuseparator
32923 You can view your document as PostScript via the
32927 menu or by using the toolbar button
32928 \begin_inset Graphics
32929 filename ../images/buffer-view_ps.png
32931 scaleBeforeRotation
32938 \begin_layout Section
32940 \begin_inset CommandInset label
32950 \begin_layout Plain Layout
32960 \begin_layout Plain Layout
32969 \begin_layout Standard
32970 This file type has the extension
32971 \begin_inset Quotes eld
32979 \begin_inset Quotes erd
32984 \begin_inset Quotes eld
32987 Portable Document Format
32988 \begin_inset Quotes erd
32991 (PDF) is developed by
32995 as derivative from PostScript.
32996 It is more compressed and it uses much less commands than PostScript.
32998 \begin_inset Quotes eld
33002 \begin_inset Quotes erd
33005 implies, it can be processed at any computer system and the printed output
33006 looks exactly the same.
33009 \begin_layout Standard
33010 PDF can contain images in its own PDF format, in the format
33011 \begin_inset Quotes eld
33014 Joint Photographic Experts Group
33015 \begin_inset Quotes erd
33018 (JPG, file extension
33019 \begin_inset Quotes eld
33027 \begin_inset Quotes erd
33031 \begin_inset Quotes eld
33039 \begin_inset Quotes erd
33042 ), and in the format
33043 \begin_inset Quotes eld
33046 Portable Network Graphics
33047 \begin_inset Quotes erd
33050 (PNG, file extension
33051 \begin_inset Quotes eld
33059 \begin_inset Quotes erd
33063 Nevertheless you can use any other image format, because LyX converts them
33064 in the background to one of these formats.
33065 But as described in the section about PostScript, the image conversion
33066 will slow down your work flow.
33067 So it is recommended to use images in one of the three mentioned formats.
33070 \begin_layout Standard
33071 You can export your document to PDF via the menu
33073 File\SpecialChar \menuseparator
33076 in three different ways:
33079 \begin_layout Description
33081 \begin_inset space ~
33084 (ps2pdf) This uses the program
33088 that creates a PDF from a PostScript-version of your file.
33089 The PostScript-version is produced by the program
33093 which uses a DVI-version as intermediate step.
33094 So this export variant consist of three conversions.
33097 \begin_layout Description
33099 \begin_inset space ~
33102 (dvipdfm) This uses the program
33106 that converts your file in the background to DVI and in a second step to
33110 \begin_layout Description
33112 \begin_inset space ~
33115 (pdflatex) This uses the program
33119 that converts your file directly to PDF.
33122 \begin_layout Standard
33123 It is recommended to use
33126 \begin_inset space ~
33135 supports all features of actual PDF-versions, is quick and works stable
33141 is not under development and therefore a bit outdated.
33144 \begin_layout Standard
33145 You can view your document as PDF via the
33149 menu or by using the toolbar button
33150 \begin_inset Graphics
33151 filename ../images/buffer-view_pdf2.png
33153 scaleBeforeRotation
33164 \begin_inset space ~
33172 \begin_layout Chapter
33173 Explanation of Equation
33174 \begin_inset space ~
33178 \begin_inset CommandInset ref
33185 \begin_inset CommandInset label
33187 name "cha:Explanation-of-Equation"
33194 \begin_layout Standard
33200 \begin_inset Formula $W_{\mathrm{tot\, n}}$
33203 can be calculated to
33206 \begin_layout Standard
33207 \begin_inset Formula \begin{equation}
33208 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}
33215 \begin_layout Standard
33217 \begin_inset Formula $W_{g\, n}$
33220 is the given width of all cells.
33227 is the LaTeX-length between the cell text and the cell border, its default
33229 \begin_inset space \thinspace{}
33239 is the thickness of the cell border line, the default is 0.4
33240 \begin_inset space \thinspace{}
33246 \begin_layout Standard
33248 \begin_inset space ~
33252 \begin_inset CommandInset ref
33254 reference "eq:Wtot_n"
33258 , the total width of a multicolumn
33259 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
33265 \begin_layout Standard
33266 \begin_inset Formula \begin{equation}
33267 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}\end{equation}
33274 \begin_layout Standard
33275 By setting equation
33276 \begin_inset space ~
33280 \begin_inset CommandInset ref
33282 reference "eq:Wtot_n"
33287 \begin_inset CommandInset ref
33289 reference "eq:Wtot_mult"
33293 equal we can calculate the needed given width
33294 \begin_inset Formula $W_{g\, n}$
33301 columns are spanned, so that each column has a total width of
33302 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
33308 \begin_layout Standard
33309 \begin_inset Formula \begin{equation}
33310 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n\end{equation}
33317 \begin_layout Bibliography
33318 \begin_inset CommandInset bibitem
33319 LatexCommand bibitem
33320 key "latexcompanion"
33324 Frank Mittelbach and Michel Goossens:
33326 The LaTeX Companion Second Edition.
33329 Addison-Wesley, 2004
33332 \begin_layout Bibliography
33333 \begin_inset CommandInset bibitem
33334 LatexCommand bibitem
33339 Helmut Kopka and Patrick W.
33342 A Guide to LaTeX Fourth Edition.
33345 Addison-Wesley, 2003
33348 \begin_layout Bibliography
33349 \begin_inset CommandInset bibitem
33350 LatexCommand bibitem
33357 LaTeX: A Document Preparation System.
33360 Addison-Wesley, second edition, 1994
33363 \begin_layout Bibliography
33364 \begin_inset CommandInset bibitem
33365 LatexCommand bibitem
33370 Documentation of the LaTeX-package
33373 \begin_inset CommandInset href
33376 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
33386 \begin_layout Plain Layout
33387 LaTeX-packages ! booktabs
33395 \begin_layout Bibliography
33396 \begin_inset CommandInset bibitem
33397 LatexCommand bibitem
33402 Documentation of the LaTeX-package
33405 \begin_inset CommandInset href
33408 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
33418 \begin_layout Plain Layout
33419 LaTeX-packages ! caption
33427 \begin_layout Bibliography
33428 \begin_inset CommandInset bibitem
33429 LatexCommand bibitem
33434 Documentation of the LaTeX-package
33437 \begin_inset CommandInset href
33440 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
33450 \begin_layout Plain Layout
33451 LaTeX-packages ! endfloat
33459 \begin_layout Bibliography
33460 \begin_inset CommandInset bibitem
33461 LatexCommand bibitem
33466 Documentation of the LaTeX-package
33469 \begin_inset CommandInset href
33472 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
33482 \begin_layout Plain Layout
33483 LaTeX-packages ! wrapfig
33487 \begin_layout Plain Layout
33504 \begin_layout Bibliography
33505 \begin_inset CommandInset bibitem
33506 LatexCommand bibitem
33511 Documentation of the LaTeX-package
33514 \begin_inset CommandInset href
33517 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
33527 \begin_layout Plain Layout
33528 LaTeX-packages ! footmisc
33536 \begin_layout Bibliography
33537 \begin_inset CommandInset bibitem
33538 LatexCommand bibitem
33543 Documentation of the LaTeX-package
33546 \begin_inset CommandInset href
33549 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
33559 \begin_layout Plain Layout
33560 LaTeX-packages ! hyperref
33568 \begin_layout Bibliography
33569 \begin_inset CommandInset bibitem
33570 LatexCommand bibitem
33575 Documentation of the LaTeX-package
33578 \begin_inset CommandInset href
33581 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
33591 \begin_layout Plain Layout
33592 LaTeX-packages ! hyperref
33600 \begin_layout Bibliography
33601 \begin_inset CommandInset bibitem
33602 LatexCommand bibitem
33607 Documentation of the LaTeX-package
33610 \begin_inset CommandInset href
33613 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
33623 \begin_layout Plain Layout
33624 LaTeX-packages ! koma-script
33632 \begin_layout Bibliography
33633 \begin_inset CommandInset bibitem
33634 LatexCommand bibitem
33639 Documentation of the LaTeX-package
33642 \begin_inset CommandInset href
33645 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
33655 \begin_layout Plain Layout
33656 LaTeX-packages ! listings
33664 \begin_layout Bibliography
33665 \begin_inset CommandInset bibitem
33666 LatexCommand bibitem
33671 Documentation of the LaTeX-package
33674 \begin_inset CommandInset href
33677 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
33687 \begin_layout Plain Layout
33688 LaTeX-packages ! marginnote
33696 \begin_layout Bibliography
33697 \begin_inset CommandInset bibitem
33698 LatexCommand bibitem
33703 Web page of the LaTeX-package
33706 \begin_inset CommandInset href
33709 target "http://tug.org/PSTricks/"
33719 \begin_layout Plain Layout
33720 LaTeX-packages ! PSTricks
33728 \begin_layout Bibliography
33729 \begin_inset CommandInset bibitem
33730 LatexCommand bibitem
33735 Documentation of the LaTeX-package
33738 \begin_inset CommandInset href
33741 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
33751 \begin_layout Plain Layout
33752 LaTeX-packages ! sidecap
33760 \begin_layout Bibliography
33761 \begin_inset CommandInset bibitem
33762 LatexCommand bibitem
33768 \begin_inset CommandInset href
33771 target "http://wiki.lyx.org/LyX/NewInLyX16"
33775 about new features in
33782 \begin_layout Standard
33783 \begin_inset CommandInset index_print
33784 LatexCommand printindex
33791 \begin_layout Standard
33792 \begin_inset FloatList figure
33799 \begin_layout Standard
33800 \begin_inset FloatList table
33807 \begin_layout Standard
33808 \begin_inset FloatList algorithm