1 #LyX 2.0 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}]{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 % increase the bottom float placement fraction
60 \renewcommand{\bottomfraction}{0.5}
62 % avoids that floats are placed before their
63 % corresponding section starts
64 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
66 % speed up the longtable calculation
67 \setcounter{LTchunksize}{100}
69 % used for scaled and rotated boxes
70 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
72 % used for colored tables
73 \@ifundefined{textcolor}
74 {\usepackage{color}}{}
75 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
76 \definecolor{lightgrey}{gray}{0.8}
78 % check for package colortbl
79 % used for colored table cells
81 \IfFileExists{colortbl.sty}
82 {\usepackage{colortbl}
83 \setboolean{colortbl}{true}}
84 {\setboolean{colortbl}{false}}
86 % used for book-style tables
89 % used to have extra space in table cells
90 \@ifundefined{extrarowheight}
91 {\usepackage{array}}{}
92 \setlength{\extrarowheight}{2pt}
94 % used for customized tables
97 {>{\centering\hspace{0pt}}m{#1}}
100 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
103 {>{\columncolor{#1}\hspace{0pt}}c}
105 \newcolumntype{V}{!{\vrule width 1.5pt}}
107 \newcolumntype{W}{!{\color{green}\vline}}
110 % insert additional vertical space of
111 % 1.5 mm between footnotes
113 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
115 % number algorithm floats within chapters
116 \numberwithin{algorithm}{chapter}
118 % ------------------------------------
119 % used to check for needed LaTeX packages
122 % check for package arydshln
123 % used for tables with dashed lines
124 \newboolean{arydshln}
125 \IfFileExists{arydshln.sty}
126 {\usepackage{arydshln}
127 \setboolean{arydshln}{true}}
128 {\setboolean{arydshln}{false}}
130 % check for package marginnote
131 % used for margin notes
132 \newboolean{marginnote}
133 \IfFileExists{marginnote.sty}
134 {\usepackage{marginnote}
135 \let\marginpar\marginnote
136 \setboolean{marginnote}{true}}
137 {\setboolean{marginnote}{false}}
139 % check for package sidecap
140 % used for captions on the side
142 \IfFileExists{sidecap.sty}
143 {\usepackage{sidecap}
144 \setboolean{sidecap}{true}}
145 {\setboolean{sidecap}{false}}
147 % redefine the \LyX macro for PDF bookmarks
148 \def\LyX{\texorpdfstring{%
149 L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
152 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
153 \use_default_options false
154 \maintain_unincluded_children false
156 \language_package default
161 \font_typewriter default
162 \font_default_family default
163 \use_non_tex_fonts false
170 \default_output_format default
172 \bibtex_command default
173 \index_command default
177 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
178 \pdf_author "LyX Team, Uwe Stöhr"
179 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
180 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
182 \pdf_bookmarksnumbered true
183 \pdf_bookmarksopen true
184 \pdf_bookmarksopenlevel 1
185 \pdf_breaklinks false
189 \pdf_pdfusetitle false
190 \pdf_quoted_options " linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
200 \paperorientation portrait
203 \notefontcolor #0000ff
210 \paragraph_separation skip
212 \quotes_language english
215 \paperpagestyle default
219 \tracking_changes false
220 \output_changes false
223 \html_be_strict false
229 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
238 \begin_layout Plain Layout
240 If you have comments or error corrections, please send them to the LyX Documenta
242 \begin_inset CommandInset href
244 name "lyx-docs@lists.lyx.org"
245 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
256 \begin_inset Note Note
259 \begin_layout Plain Layout
266 \begin_inset Newline newline
270 \begin_inset Newline newline
278 \begin_layout Standard
279 \begin_inset CommandInset toc
280 LatexCommand tableofcontents
287 \begin_layout Standard
288 \begin_inset Note Note
291 \begin_layout Plain Layout
292 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
310 If they are not installed you can export the document anyway but the sections
311 where the packages are required won't appear in the output.
314 \begin_layout Plain Layout
315 The latest PDF-version of this document can be found here:
316 \begin_inset Newline newline
321 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
329 \begin_layout Chapter
331 \begin_inset Index idx
334 \begin_layout Plain Layout
341 \begin_inset Index idx
344 \begin_layout Plain Layout
349 \begin_layout Plain Layout
360 \begin_layout Plain Layout
375 \begin_layout Section
377 \begin_inset Index idx
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
444 \begin_inset Index idx
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
460 \begin_inset Index idx
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 by right-clicking on it
486 and choosing the entry
495 The program can be set for every image format in the file format settings
496 in LyX's preferences.
499 \begin_layout Description
504 Alternatively to the usage of scaling units it is possible to set image
505 coordinates to adjust the height and width of the image in the output.
506 The coordinates can also be calculated automatically by pressing the button
536 will only print the image region within the given coordinates.
537 Normally you don't need to take care about image coordinates and can ignore
541 \begin_layout Description
558 In this tab you can modify the appearance of the image within LyX and LaTeX
559 experts can specify additional LaTeX options.
560 \begin_inset Newline newline
571 makes the image appear in the output only as a frame with the size of the
573 \begin_inset Newline newline
592 option only affects zipped EPS-graphics, e.
593 \begin_inset space \thinspace{}
597 \begin_inset space \space{}
605 When the option is used the images will not be unzipped on export, since
606 LaTeX can handle them as they are.
607 \begin_inset Newline newline
610 Zipped EPS-graphics are useful to save disk space when you choose PostScript
611 as output format, see appendix
616 \begin_inset CommandInset ref
618 reference "sec:PostScript"
623 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
625 \begin_inset Newline newline
633 \begin_inset Newline newline
638 zgrep %%Bounding x.eps.gz > x.eps.bb
641 \begin_inset Newline newline
644 The second command creates the bounding box file
645 \begin_inset Quotes eld
649 \begin_inset Quotes erd
652 that is needed by LaTeX for zipped graphics.
653 \begin_inset Newline newline
668 allows you define or join an image settings group.
669 \begin_inset Index idx
672 \begin_layout Plain Layout
673 Figures ! Settings grouping
678 Images within such a group share their settings, so adjusting one image
679 of the group automatically also adjusts all other images of the group in
681 So you can for example change the size for a bunch of images without the
682 need to manually change each of them.
683 Joining an existing group can also be done using the context menu of the
684 image by checking the name of the desired group.
687 \begin_layout Standard
688 \begin_inset VSpace bigskip
694 \begin_layout Standard
695 This is an example image in EPS format
699 \begin_layout Plain Layout
700 Image formats are explained in section
705 \begin_inset CommandInset ref
707 reference "sec:Image-Formats"
716 within a separate, horizontally centered paragraph:
719 \begin_layout Standard
721 \begin_inset Graphics
722 filename clipart/mobius.eps
732 \begin_layout Standard
733 This is the same image like the one above but in draft mode:
736 \begin_layout Standard
738 \begin_inset Graphics
739 filename clipart/mobius.eps
750 \begin_layout Standard
751 \begin_inset Newpage newpage
757 \begin_layout Section
759 \begin_inset CommandInset label
761 name "sec:Figure-Floats"
766 \begin_inset Index idx
769 \begin_layout Plain Layout
776 \begin_inset Index idx
779 \begin_layout Plain Layout
788 \begin_layout Standard
789 For general explanations about floats, have a look at section
794 \begin_inset CommandInset ref
796 reference "sec:FloatIntroduction"
803 \begin_layout Standard
805 \begin_inset Graphics
806 filename ../images/float-insert_figure.png
814 Insert\SpecialChar \menuseparator
815 Float\SpecialChar \menuseparator
818 inserts a float with a caption that has the label
819 \begin_inset Quotes eld
827 \begin_inset Quotes erd
830 (# is the actual number).
831 You can insert the image above the caption, like in Figure
836 \begin_inset CommandInset ref
838 reference "fig:kill-plat"
842 or below the caption, like in Figure
847 \begin_inset CommandInset ref
849 reference "fig:escher"
854 More about caption placement is described in section
859 \begin_inset CommandInset ref
861 reference "sec:Caption-Placement"
868 \begin_layout Standard
869 \begin_inset Float figure
874 \begin_layout Plain Layout
876 \begin_inset Graphics
877 filename clipart/platypus.eps
887 \begin_layout Plain Layout
890 \begin_layout Plain Layout
891 \begin_inset CommandInset label
897 A severely distorted platypus in a float.
910 \begin_layout Standard
911 \begin_inset Float figure
916 \begin_layout Plain Layout
919 \begin_layout Plain Layout
920 \begin_inset CommandInset label
935 \begin_layout Plain Layout
937 \begin_inset Graphics
938 filename clipart/escher-lsd.eps
953 \begin_layout Standard
954 \begin_inset Index idx
957 \begin_layout Plain Layout
958 References ! to Figures
968 \begin_inset CommandInset ref
970 reference "fig:kill-plat"
975 \begin_inset CommandInset ref
977 reference "fig:escher"
981 are examples of referenced figures.
982 Figures can be referenced in the text by referencing their label.
983 To do this insert a label in the caption using the menu
985 Insert\SpecialChar \menuseparator
988 or the toolbar button
989 \begin_inset Graphics
990 filename ../images/label-insert.png
997 You can now refer to the label using the menu
999 Insert\SpecialChar \menuseparator
1001 \begin_inset space ~
1006 or the toolbar button
1007 \begin_inset Graphics
1008 filename ../images/dialog-show-new-inset_ref.png
1015 It is important to use references to floats, rather than using vague references
1017 \begin_inset Quotes eld
1021 \begin_inset Quotes erd
1024 , because LaTeX will reposition the floats in the final document and it
1026 \begin_inset Quotes eld
1030 \begin_inset Quotes erd
1034 \begin_inset Newline newline
1037 Referencing is explained in detail in section
1038 \begin_inset space ~
1042 \begin_inset CommandInset ref
1044 reference "sec:Referencing-Floats"
1051 \begin_layout Standard
1052 Normally only one image is inserted to a figure float, but sometimes you
1053 might want to use two images with separate subcaptions.
1054 This can be done by inserting image floats into existing image floats.
1055 Note that only the main caption of the float is added to the List of Figures.
1057 \begin_inset space ~
1061 \begin_inset CommandInset ref
1063 reference "fig:Two-distorted-images"
1067 is an example of a figure float with two images set side by side.
1068 You can also set the images one below the other.
1070 \begin_inset space ~
1074 \begin_inset CommandInset ref
1076 reference "fig:Undefinable-structure"
1081 \begin_inset CommandInset ref
1083 reference "fig:A-Platypus"
1090 \begin_layout Standard
1091 \begin_inset Float figure
1096 \begin_layout Plain Layout
1097 \begin_inset space \hfill{}
1101 \begin_inset Float figure
1106 \begin_layout Plain Layout
1107 \begin_inset Caption
1109 \begin_layout Plain Layout
1110 \begin_inset CommandInset label
1112 name "fig:Undefinable-structure"
1116 Undefinable structure.
1124 \begin_layout Plain Layout
1125 \begin_inset Graphics
1126 filename clipart/escher-lsd.eps
1139 \begin_inset space \hfill{}
1143 \begin_inset Float figure
1148 \begin_layout Plain Layout
1149 \begin_inset Caption
1151 \begin_layout Plain Layout
1152 \begin_inset CommandInset label
1154 name "fig:A-Platypus"
1166 \begin_layout Plain Layout
1167 \begin_inset Graphics
1168 filename clipart/platypus.eps
1181 \begin_inset space \hfill{}
1187 \begin_layout Plain Layout
1188 \begin_inset Caption
1190 \begin_layout Plain Layout
1191 \begin_inset CommandInset label
1193 name "fig:Two-distorted-images"
1198 \begin_inset CommandInset label
1200 name "fig2:Two-distorted-images-2"
1204 Two distorted images.
1205 Both images are in the image settings group named
1206 \begin_inset Quotes eld
1210 \begin_inset Quotes erd
1226 \begin_layout Standard
1227 \begin_inset Newpage newpage
1233 \begin_layout Section
1235 \begin_inset CommandInset label
1237 name "sec:Image-Formats"
1242 \begin_inset Index idx
1245 \begin_layout Plain Layout
1252 \begin_inset Index idx
1255 \begin_layout Plain Layout
1256 Figures ! Image Formats
1264 \begin_layout Standard
1265 You can insert images in any known file format.
1266 But as explained in appendix
1267 \begin_inset space ~
1271 \begin_inset CommandInset ref
1273 reference "cha:Output-File-Formats"
1277 , each output document format allows only a few image formats.
1278 LyX uses therefore the program
1282 in the background to convert the images to the right format.
1283 To increase your work flow by avoiding these conversions in the background,
1284 you can use only the image formats that can directly be embedded in the
1286 The output file formats are explained in appendix
1287 \begin_inset space ~
1291 \begin_inset CommandInset ref
1293 reference "cha:Output-File-Formats"
1300 \begin_layout Standard
1301 Similar to fonts there are two types of image formats:
1304 \begin_layout Description
1306 \begin_inset space ~
1309 images consist of pixel values, often in a compressed form.
1310 They are therefore not fully scalable and look pixelated in large zooms.
1311 Well-known bitmap image formats are
1312 \begin_inset Quotes eld
1315 Graphics Interchange Format
1316 \begin_inset Quotes erd
1319 (GIF, file extension
1320 \begin_inset Quotes eld
1328 \begin_inset Quotes erd
1332 \begin_inset Index idx
1335 \begin_layout Plain Layout
1340 \begin_layout Plain Layout
1351 \begin_layout Plain Layout
1364 \begin_inset Quotes eld
1367 Portable Network Graphics
1368 \begin_inset Quotes erd
1371 (PNG, file extension
1372 \begin_inset Quotes eld
1380 \begin_inset Quotes erd
1384 \begin_inset Index idx
1387 \begin_layout Plain Layout
1392 \begin_layout Plain Layout
1403 \begin_layout Plain Layout
1416 \begin_inset Quotes eld
1419 Joint Photographic Experts Group
1420 \begin_inset Quotes erd
1423 (JPG, file extension
1424 \begin_inset Quotes eld
1432 \begin_inset Quotes erd
1436 \begin_inset Quotes eld
1444 \begin_inset Quotes erd
1448 \begin_inset Index idx
1451 \begin_layout Plain Layout
1456 \begin_layout Plain Layout
1467 \begin_layout Plain Layout
1482 \begin_layout Description
1484 \begin_inset space ~
1487 images consist of vectors and can therefore be scaled to any size without
1489 The scaling ability is necessary if you want to create presentations, because
1490 presentations are always scaled by the video projector.
1491 Scaling is also useful for online documents to let the user zoom into diagrams.
1492 \begin_inset Newline newline
1495 Well-known scalable image formats are
1496 \begin_inset Quotes eld
1499 Scalable Vector Graphics
1500 \begin_inset Quotes erd
1503 (SVG, file extension
1504 \begin_inset Quotes eld
1512 \begin_inset Quotes erd
1516 \begin_inset Index idx
1519 \begin_layout Plain Layout
1524 \begin_layout Plain Layout
1535 \begin_layout Plain Layout
1548 \begin_inset Quotes eld
1551 Encapsulated PostScript
1552 \begin_inset Quotes erd
1555 (EPS, file extension
1556 \begin_inset Quotes eld
1564 \begin_inset Quotes erd
1568 \begin_inset Index idx
1571 \begin_layout Plain Layout
1576 \begin_layout Plain Layout
1587 \begin_layout Plain Layout
1600 \begin_inset Quotes eld
1603 Portable Document Format
1604 \begin_inset Quotes erd
1607 (PDF, file extension
1608 \begin_inset Quotes eld
1616 \begin_inset Quotes erd
1620 \begin_inset Index idx
1623 \begin_layout Plain Layout
1630 \begin_inset Quotes eld
1634 \begin_inset Quotes erd
1637 (WMF, file extension
1638 \begin_inset Quotes eld
1646 \begin_inset Quotes erd
1650 \begin_inset Index idx
1653 \begin_layout Plain Layout
1658 \begin_layout Plain Layout
1669 \begin_layout Plain Layout
1683 \begin_inset Quotes eld
1687 \begin_inset Quotes erd
1690 , because you can convert any bitmap image to a PDF or EPS-image and the
1691 result will still be a bitmap image.
1692 In such cases only a header with the image properties is added to the original
1697 \begin_layout Plain Layout
1698 In the case of PDF, the original image is additionally compressed.
1704 The PDF-files generated by
1708 are for example bitmap images.
1711 \begin_layout Standard
1712 Normally it is not possible to convert a bitmap image into a scalable one,
1714 Only the image formats PDF and EPS can directly be embedded to PDF and
1715 PostScript output files, respectively.
1716 SVG and WMF-images are recalculated to bitmaps when the output file is
1717 generated because there is currently no adequate WMF/SVG
1718 \begin_inset Formula $\to$
1721 PDF/EPS converter available.
1724 \begin_layout Chapter
1726 \begin_inset Index idx
1729 \begin_layout Plain Layout
1738 \begin_layout Section
1740 \begin_inset Index idx
1743 \begin_layout Plain Layout
1744 Table ! Introduction
1752 \begin_layout Standard
1753 You can insert a table using either the toolbar button
1754 \begin_inset Graphics
1755 filename ../images/tabular-insert.png
1763 Insert\SpecialChar \menuseparator
1767 The toolbar button offers you a graphical selection: move the mouse to
1768 set the column/row number of the table that should be created and then
1769 press a mouse button.
1770 When you use the menu to create a table, a dialog will appear, asking you
1771 for the number of rows and columns.
1772 \begin_inset Newline newline
1775 The default table has lines around any cell and the first row appears separated
1776 from the rest of the table.
1777 This separation occurs due to a double line: The cells of the first row
1778 have a line below them and the cells of the second row have a line above
1780 Here is an example table:
1783 \begin_layout Standard
1785 \begin_inset Tabular
1786 <lyxtabular version="3" rows="4" columns="4">
1787 <features tabularvalignment="middle">
1788 <column alignment="center" valignment="top" width="0">
1789 <column alignment="center" valignment="top" width="0">
1790 <column alignment="center" valignment="top" width="0">
1791 <column alignment="center" valignment="top" width="0">
1793 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1796 \begin_layout Plain Layout
1802 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1805 \begin_layout Plain Layout
1820 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1823 \begin_layout Plain Layout
1829 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1832 \begin_layout Plain Layout
1840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1843 \begin_layout Plain Layout
1858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1861 \begin_layout Plain Layout
1867 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1870 \begin_layout Plain Layout
1876 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1879 \begin_layout Plain Layout
1887 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1890 \begin_layout Plain Layout
1905 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1908 \begin_layout Plain Layout
1914 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1917 \begin_layout Plain Layout
1923 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1926 \begin_layout Plain Layout
1934 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1937 \begin_layout Plain Layout
1952 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1955 \begin_layout Plain Layout
1961 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1964 \begin_layout Plain Layout
1970 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1973 \begin_layout Plain Layout
1987 \begin_layout Section
1989 \begin_inset Index idx
1992 \begin_layout Plain Layout
2001 \begin_layout Standard
2002 You can alter a table by clicking on it with the right mouse button, which
2003 brings up the table dialog.
2004 Here you can adjust the settings of that cell and row/column respectively
2005 where the cursor is currently placed.
2006 Most of the dialog options also work on selections.
2007 This means if you select more cells, columns or rows, the action is done
2008 for the whole selection.
2009 Note that there is a difference between selecting the
2013 of the cell, and the cell itself.
2014 \begin_inset Newline newline
2017 With the dialog option
2020 \begin_inset space ~
2025 every change you make in the dialog is directly applied.
2026 If you move the cursor to another table cell the dialog will then also
2027 be updated with the parameters of the new cell.
2028 If you change length values in the dialog you must press return to get
2030 \begin_inset Newline newline
2033 You can alter tables with the following tabs of the table dialog:
2036 \begin_layout Description
2040 \begin_inset space ~
2045 Here you can set the table width
2046 \begin_inset Index idx
2049 \begin_layout Plain Layout
2055 , and the horizontal alignment and the width of the current column.
2059 \begin_inset space ~
2063 \begin_inset space ~
2068 is described in section
2069 \begin_inset space ~
2073 \begin_inset CommandInset ref
2075 reference "sub:Special-Cell-Alignment"
2080 When you have set a width you can also adjust the vertical alignment of
2082 A given width will allow the cell to have line breaks and multiple paragraphs
2083 of text, see section
2084 \begin_inset space ~
2088 \begin_inset CommandInset ref
2090 reference "sub:Multiple-Lines-in"
2095 If you set no width, the column is as wide as the content of its widest
2097 \begin_inset Newline newline
2100 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2102 \begin_inset space ~
2106 \begin_inset CommandInset ref
2108 reference "sub:Multicolumns"
2112 or the cells of one column as multirow cell, see section
2113 \begin_inset space ~
2117 \begin_inset CommandInset ref
2119 reference "sub:Multirows"
2124 \begin_inset Newline newline
2127 The rotate check boxes rotate the current cell, a selection, or the whole
2128 table counter-clockwise by 90°.
2129 The rotation is not shown within LyX, only in the output.
2130 \begin_inset Newline newline
2134 \begin_inset Note Greyedout
2137 \begin_layout Plain Layout
2142 Not all DVI-viewers are able to display rotations.
2148 \begin_inset Newline newline
2151 The table-wide vertical alignment is used for tables within text lines:
2152 \begin_inset Newline newline
2155 A line with tables with different alignments:
2156 \begin_inset Tabular
2157 <lyxtabular version="3" rows="2" columns="2">
2158 <features tabularvalignment="top">
2159 <column alignment="center" valignment="top" width="0pt">
2160 <column alignment="center" valignment="top" width="0">
2162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2165 \begin_layout Plain Layout
2171 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2174 \begin_layout Plain Layout
2191 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2194 \begin_layout Plain Layout
2209 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2212 \begin_layout Plain Layout
2224 \begin_inset Tabular
2225 <lyxtabular version="3" rows="2" columns="2">
2226 <features tabularvalignment="middle">
2227 <column alignment="center" valignment="top" width="0">
2228 <column alignment="center" valignment="top" width="0">
2230 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2233 \begin_layout Plain Layout
2239 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2242 \begin_layout Plain Layout
2259 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2262 \begin_layout Plain Layout
2277 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2280 \begin_layout Plain Layout
2292 \begin_inset Tabular
2293 <lyxtabular version="3" rows="2" columns="2">
2294 <features tabularvalignment="bottom">
2295 <column alignment="center" valignment="top" width="0pt">
2296 <column alignment="center" valignment="top" width="0">
2298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2301 \begin_layout Plain Layout
2307 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2310 \begin_layout Plain Layout
2327 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2330 \begin_layout Plain Layout
2345 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2348 \begin_layout Plain Layout
2360 \begin_inset Newline newline
2363 It is also possible to enter a LaTeX-argument which is needed for special
2364 table formattings, see section
2365 \begin_inset space ~
2369 \begin_inset CommandInset ref
2371 reference "sub:Multicolumn-Calculations"
2376 \begin_inset CommandInset ref
2378 reference "sec:Colored-Tables"
2385 \begin_layout Description
2390 In this tab you can add and delete border lines for the current row/column.
2391 \begin_inset Newline newline
2394 Using the style option
2398 will convert the table to a formal table as described in section
2399 \begin_inset space ~
2403 \begin_inset CommandInset ref
2405 reference "sec:Formal-Tables"
2410 \begin_inset Newline newline
2413 You can also add here space to table rows as described in section
2414 \begin_inset space ~
2418 \begin_inset CommandInset ref
2420 reference "sub:Row-Spacing"
2427 \begin_layout Description
2432 This tab is to make a table a so called
2433 \begin_inset Quotes eld
2441 \begin_inset Quotes erd
2444 that can run over several pages.
2446 \begin_inset space ~
2450 \begin_inset CommandInset ref
2452 reference "sec:Longtables"
2457 \begin_inset CommandInset ref
2459 reference "sec:Special-Longtable-Issues"
2463 describe the longtable features in detail.
2466 \begin_layout Section
2468 \begin_inset Index idx
2471 \begin_layout Plain Layout
2480 \begin_layout Standard
2481 The table toolbar is an alternative to the table dialog to be able to alter
2483 It should normally appear at the bottom of LyX's main window when the cursor
2485 You can alternatively switch it on to appear always, by right-clicking
2486 in LyX's main menu bar.
2489 \begin_layout Standard
2490 The toolbar has the following icons:
2493 \begin_layout Labeling
2494 \labelwidthstring 00.00.0000
2495 \begin_inset Graphics
2496 filename ../images/tabular-feature_append-row.png
2501 adds a row below the current cell or selection
2504 \begin_layout Labeling
2505 \labelwidthstring 00.00.0000
2506 \begin_inset Graphics
2507 filename ../images/tabular-feature_append-column.png
2512 adds a column right beside the current cell or selection
2515 \begin_layout Labeling
2516 \labelwidthstring 00.00.0000
2517 \begin_inset Graphics
2518 filename ../images/tabular-feature_delete-row.png
2523 deletes the current row or selection
2526 \begin_layout Labeling
2527 \labelwidthstring 00.00.0000
2528 \begin_inset Graphics
2529 filename ../images/tabular-feature_delete-column.png
2534 deletes the current column or selection
2537 \begin_layout Labeling
2538 \labelwidthstring 00.00.0000
2539 \begin_inset Graphics
2540 filename ../images/tabular-feature_toggle-line-top.png
2545 adds a line at the top of the current cell / row or of a selection
2548 \begin_layout Labeling
2549 \labelwidthstring 00.00.0000
2550 \begin_inset Graphics
2551 filename ../images/tabular-feature_toggle-line-bottom.png
2556 adds a line at the bottom of the current cell / row or of a selection
2559 \begin_layout Labeling
2560 \labelwidthstring 00.00.0000
2561 \begin_inset Graphics
2562 filename ../images/tabular-feature_toggle-line-left.png
2567 adds a line at the left side of the current cell / row or of a selection
2570 \begin_layout Labeling
2571 \labelwidthstring 00.00.0000
2572 \begin_inset Graphics
2573 filename ../images/tabular-feature_toggle-line-right.png
2578 adds a line at the right side of the current cell / row or of a selection
2581 \begin_layout Labeling
2582 \labelwidthstring 00.00.0000
2583 \begin_inset Graphics
2584 filename ../images/tabular-feature_set-all-lines.png
2589 adds lines around the current or selected cells - if the current cell no
2590 multicolumn cell this also affects the current row and column
2593 \begin_layout Labeling
2594 \labelwidthstring 00.00.0000
2595 \begin_inset Graphics
2596 filename ../images/tabular-feature_unset-all-lines.png
2601 deletes all lines of the current or selected cells - if the current cell
2602 no multicolumn cell this also affects the current row and column
2605 \begin_layout Labeling
2606 \labelwidthstring 00.00.0000
2607 \begin_inset Graphics
2608 filename ../images/tabular-feature_m-align-left.png
2613 left-aligns the content of the current cell / column
2616 \begin_layout Labeling
2617 \labelwidthstring 00.00.0000
2618 \begin_inset Graphics
2619 filename ../images/tabular-feature_m-align-center.png
2624 centers the content of the current cell / column horizontally
2627 \begin_layout Labeling
2628 \labelwidthstring 00.00.0000
2629 \begin_inset Graphics
2630 filename ../images/tabular-feature_m-align-right.png
2635 right-aligns the content of the current cell / column
2638 \begin_layout Labeling
2639 \labelwidthstring 00.00.0000
2640 \begin_inset Graphics
2641 filename ../images/tabular-feature_align-decimal.png
2646 aligns the content of the current column at a character
2649 \begin_layout Labeling
2650 \labelwidthstring 00.00.0000
2651 \begin_inset Graphics
2652 filename ../images/tabular-feature_m-valign-top.png
2657 aligns the content of the current cell vertically to the top
2660 \begin_layout Labeling
2661 \labelwidthstring 00.00.0000
2662 \begin_inset Graphics
2663 filename ../images/tabular-feature_m-valign-middle.png
2668 centers the content of the current cell vertically
2671 \begin_layout Labeling
2672 \labelwidthstring 00.00.0000
2673 \begin_inset Graphics
2674 filename ../images/tabular-feature_m-valign-bottom.png
2679 aligns the content of the current cell vertically to the bottom
2682 \begin_layout Labeling
2683 \labelwidthstring 00.00.0000
2684 \begin_inset Graphics
2685 filename ../images/tabular-feature_set-rotate-cell.png
2690 rotates the current cell or selection counter-clockwise by 90°
2693 \begin_layout Labeling
2694 \labelwidthstring 00.00.0000
2695 \begin_inset Graphics
2696 filename ../images/tabular-feature_set-rotate-tabular.png
2701 rotates the whole table counter-clockwise by 90°
2704 \begin_layout Labeling
2705 \labelwidthstring 00.00.0000
2706 \begin_inset Graphics
2707 filename ../images/tabular-feature_multicolumn.png
2712 sets the current cell or selection as a multicolumn
2715 \begin_layout Labeling
2716 \labelwidthstring 00.00.0000
2717 \begin_inset Graphics
2718 filename ../images/tabular-feature_multirow.png
2723 sets the current cell or selection as a multirow
2726 \begin_layout Standard
2727 \begin_inset Note Greyedout
2730 \begin_layout Plain Layout
2735 For the output the vertical alignment of the first cell in a row is used
2736 for all following cells in the row.
2744 \begin_layout Section
2746 \begin_inset Index idx
2749 \begin_layout Plain Layout
2758 \begin_layout Standard
2759 Additionally to the table dialog and toolbar, the menu
2761 Edit\SpecialChar \menuseparator
2764 allows you to add and delete border lines for the current row/column and
2765 to set the current selection as multicolumn.
2766 The menu is only available when the cursor is inside a table.
2769 \begin_layout Section
2771 \begin_inset CommandInset label
2773 name "sec:Table-Floats"
2778 \begin_inset Index idx
2781 \begin_layout Plain Layout
2788 \begin_inset Index idx
2791 \begin_layout Plain Layout
2800 \begin_layout Standard
2801 For general explanations about floats, have a look at section
2802 \begin_inset space ~
2806 \begin_inset CommandInset ref
2808 reference "sec:FloatIntroduction"
2815 \begin_layout Standard
2816 \begin_inset Float table
2822 \begin_layout Plain Layout
2823 \begin_inset Caption
2825 \begin_layout Plain Layout
2826 \begin_inset CommandInset label
2828 name "tab:a table float"
2840 \begin_layout Plain Layout
2842 \begin_inset Tabular
2843 <lyxtabular version="3" rows="3" columns="3">
2844 <features tabularvalignment="middle">
2845 <column alignment="center" valignment="top" width="0pt">
2846 <column alignment="center" valignment="top" width="0pt">
2847 <column alignment="center" valignment="top" width="0pt">
2849 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2852 \begin_layout Plain Layout
2867 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2870 \begin_layout Plain Layout
2885 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2888 \begin_layout Plain Layout
2905 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2908 \begin_layout Plain Layout
2923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2926 \begin_layout Plain Layout
2941 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2944 \begin_layout Plain Layout
2961 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2964 \begin_layout Plain Layout
2974 \begin_inset Formula $\int x^{2}dx$
2982 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2985 \begin_layout Plain Layout
2995 \begin_inset Formula $\left[\begin{array}{cc}
3006 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3009 \begin_layout Plain Layout
3019 \begin_inset Formula $1+1=2$
3040 \begin_layout Standard
3041 Table floats can be inserted using the menu
3043 Insert\SpecialChar \menuseparator
3044 Float\SpecialChar \menuseparator
3047 or the toolbar button
3048 \begin_inset Graphics
3049 filename ../images/float-insert_table.png
3058 \begin_layout Standard
3059 The float appears as a collapsible box with a caption that has the label
3061 \begin_inset Quotes eld
3065 \begin_inset space ~
3069 \begin_inset Quotes erd
3072 (# is the actual table number).
3073 You can insert tables in the float above or below the caption.
3076 \begin_layout Standard
3078 \begin_inset space ~
3082 \begin_inset CommandInset ref
3084 reference "tab:a table float"
3088 is an example table within a table float.
3091 \begin_layout Standard
3092 Having the caption above the table is the common rule that is unfortunately
3093 not supported in LaTeX's standard classes.
3094 This means that, if you are using the document classes
3110 , there will be no space between the caption and the table.
3111 To insert the needed space, add the following option to the load command
3112 of the LaTeX-package
3117 \begin_inset Index idx
3120 \begin_layout Plain Layout
3121 LaTeX-packages ! caption
3126 in your document preamble
3130 \begin_layout Plain Layout
3131 For more information have a look at section
3132 \begin_inset space ~
3136 \begin_inset CommandInset ref
3138 reference "sec:Caption-Placement"
3150 \begin_layout Standard
3156 \begin_layout Standard
3161 , which is described in section
3162 \begin_inset space ~
3166 \begin_inset CommandInset ref
3168 reference "sec:Caption-Formatting"
3172 , is used to adjust the caption format.
3175 \begin_layout Standard
3176 \begin_inset Index idx
3179 \begin_layout Plain Layout
3180 References ! to Tables
3185 Tables can be cross-referenced in the text by referencing their label.
3186 To do this insert a label in the caption using the menu
3188 Insert\SpecialChar \menuseparator
3191 or the toolbar button
3192 \begin_inset Graphics
3193 filename ../images/label-insert.png
3200 You can now refer to the label using the menu
3202 Insert\SpecialChar \menuseparator
3204 \begin_inset space ~
3209 or the toolbar button
3210 \begin_inset Graphics
3211 filename ../images/dialog-show-new-inset_ref.png
3218 \begin_inset Newline newline
3221 Referencing is explained in detail in section
3222 \begin_inset space ~
3226 \begin_inset CommandInset ref
3228 reference "sec:Referencing-Floats"
3235 \begin_layout Section
3237 \begin_inset CommandInset label
3239 name "sec:Longtables"
3244 \begin_inset Index idx
3247 \begin_layout Plain Layout
3254 \begin_inset Index idx
3257 \begin_layout Plain Layout
3266 \begin_layout Standard
3267 If the table is too long to fit on one page, you can use the option
3270 \begin_inset space ~
3274 \begin_inset space ~
3283 of the table dialog to split the table automatically over more pages.
3284 Doing this enables the following options:
3287 \begin_layout Description
3288 Header: The current row is defined to be a header row that appears on all
3289 pages of the longtable; except for the first page, if
3292 \begin_inset space ~
3298 This is therefore called the main header.
3301 \begin_layout Description
3303 \begin_inset space ~
3306 header: The current row is defined to be a header row that appears on the
3307 first page of the longtable.
3310 \begin_layout Description
3311 Footer: The current row is defined to be a footer row that appears on all
3312 pages of the longtable; except for the last page, if
3315 \begin_inset space ~
3323 \begin_layout Description
3325 \begin_inset space ~
3328 footer: The current row is defined to be a footer row that appears on the
3329 last page of the longtable.
3332 \begin_layout Description
3333 Caption: The current row contains the table caption.
3334 The row is reset as single column and a caption is inserted.
3335 More about longtable captions is explained in sec.
3336 \begin_inset space \thinspace{}
3340 \begin_inset CommandInset ref
3342 reference "sub:Longtable-Captions"
3349 \begin_layout Standard
3350 You can also specify a row where the table is split.
3351 See the following longtable to see how it works:
3354 \begin_layout Standard
3356 \begin_inset Tabular
3357 <lyxtabular version="3" rows="69" columns="3">
3358 <features islongtable="true" longtabularalignment="center">
3359 <column alignment="left" valignment="top" width="0cm">
3360 <column alignment="left" valignment="top" width="0pt">
3361 <column alignment="center" valignment="top" width="0pt">
3362 <row endfirsthead="true">
3363 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3366 \begin_layout Plain Layout
3369 Example Phone List (ignore the names)
3374 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3377 \begin_layout Plain Layout
3383 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3386 \begin_layout Plain Layout
3393 <row endfirsthead="true">
3394 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3397 \begin_layout Plain Layout
3405 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3408 \begin_layout Plain Layout
3414 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3417 \begin_layout Plain Layout
3426 <row endhead="true">
3427 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3430 \begin_layout Plain Layout
3438 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3441 \begin_layout Plain Layout
3447 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3450 \begin_layout Plain Layout
3457 <row endhead="true">
3458 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3461 \begin_layout Plain Layout
3469 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3472 \begin_layout Plain Layout
3478 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3481 \begin_layout Plain Layout
3490 <row endfoot="true">
3491 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3494 \begin_layout Plain Layout
3495 continued on next page
3500 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3503 \begin_layout Plain Layout
3509 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3512 \begin_layout Plain Layout
3520 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3523 \begin_layout Plain Layout
3531 <cell alignment="center" valignment="top" usebox="none">
3534 \begin_layout Plain Layout
3540 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3543 \begin_layout Plain Layout
3551 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3554 \begin_layout Plain Layout
3562 <cell alignment="center" valignment="top" usebox="none">
3565 \begin_layout Plain Layout
3571 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3574 \begin_layout Plain Layout
3582 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3585 \begin_layout Plain Layout
3593 <cell alignment="center" valignment="top" usebox="none">
3596 \begin_layout Plain Layout
3602 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3605 \begin_layout Plain Layout
3613 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3616 \begin_layout Plain Layout
3624 <cell alignment="center" valignment="top" usebox="none">
3627 \begin_layout Plain Layout
3633 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3636 \begin_layout Plain Layout
3644 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3647 \begin_layout Plain Layout
3655 <cell alignment="center" valignment="top" usebox="none">
3658 \begin_layout Plain Layout
3664 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3667 \begin_layout Plain Layout
3675 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3678 \begin_layout Plain Layout
3686 <cell alignment="center" valignment="top" usebox="none">
3689 \begin_layout Plain Layout
3695 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3698 \begin_layout Plain Layout
3706 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3709 \begin_layout Plain Layout
3717 <cell alignment="center" valignment="top" usebox="none">
3720 \begin_layout Plain Layout
3726 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3729 \begin_layout Plain Layout
3737 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3740 \begin_layout Plain Layout
3748 <cell alignment="center" valignment="top" usebox="none">
3751 \begin_layout Plain Layout
3757 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3760 \begin_layout Plain Layout
3768 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3771 \begin_layout Plain Layout
3779 <cell alignment="center" valignment="top" usebox="none">
3782 \begin_layout Plain Layout
3788 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3791 \begin_layout Plain Layout
3799 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3802 \begin_layout Plain Layout
3810 <cell alignment="center" valignment="top" usebox="none">
3813 \begin_layout Plain Layout
3819 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3822 \begin_layout Plain Layout
3830 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3833 \begin_layout Plain Layout
3841 <cell alignment="center" valignment="top" usebox="none">
3844 \begin_layout Plain Layout
3850 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3853 \begin_layout Plain Layout
3861 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3864 \begin_layout Plain Layout
3872 <cell alignment="center" valignment="top" usebox="none">
3875 \begin_layout Plain Layout
3881 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3884 \begin_layout Plain Layout
3892 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3895 \begin_layout Plain Layout
3903 <cell alignment="center" valignment="top" usebox="none">
3906 \begin_layout Plain Layout
3912 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3915 \begin_layout Plain Layout
3923 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3926 \begin_layout Plain Layout
3934 <cell alignment="center" valignment="top" usebox="none">
3937 \begin_layout Plain Layout
3943 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3946 \begin_layout Plain Layout
3954 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3957 \begin_layout Plain Layout
3965 <cell alignment="center" valignment="top" usebox="none">
3968 \begin_layout Plain Layout
3974 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3977 \begin_layout Plain Layout
3985 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3988 \begin_layout Plain Layout
3996 <cell alignment="center" valignment="top" usebox="none">
3999 \begin_layout Plain Layout
4005 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4008 \begin_layout Plain Layout
4016 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4019 \begin_layout Plain Layout
4027 <cell alignment="center" valignment="top" usebox="none">
4030 \begin_layout Plain Layout
4036 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4039 \begin_layout Plain Layout
4047 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4050 \begin_layout Plain Layout
4058 <cell alignment="center" valignment="top" usebox="none">
4061 \begin_layout Plain Layout
4067 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4070 \begin_layout Plain Layout
4078 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4081 \begin_layout Plain Layout
4089 <cell alignment="center" valignment="top" usebox="none">
4092 \begin_layout Plain Layout
4098 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4101 \begin_layout Plain Layout
4109 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4112 \begin_layout Plain Layout
4120 <cell alignment="center" valignment="top" usebox="none">
4123 \begin_layout Plain Layout
4129 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4132 \begin_layout Plain Layout
4140 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4143 \begin_layout Plain Layout
4151 <cell alignment="center" valignment="top" usebox="none">
4154 \begin_layout Plain Layout
4160 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4163 \begin_layout Plain Layout
4171 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4174 \begin_layout Plain Layout
4182 <cell alignment="center" valignment="top" usebox="none">
4185 \begin_layout Plain Layout
4191 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4194 \begin_layout Plain Layout
4202 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4205 \begin_layout Plain Layout
4213 <cell alignment="center" valignment="top" usebox="none">
4216 \begin_layout Plain Layout
4222 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4225 \begin_layout Plain Layout
4233 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4236 \begin_layout Plain Layout
4244 <cell alignment="center" valignment="top" usebox="none">
4247 \begin_layout Plain Layout
4253 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4256 \begin_layout Plain Layout
4264 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4267 \begin_layout Plain Layout
4275 <cell alignment="center" valignment="top" usebox="none">
4278 \begin_layout Plain Layout
4284 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4287 \begin_layout Plain Layout
4295 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4298 \begin_layout Plain Layout
4306 <cell alignment="center" valignment="top" usebox="none">
4309 \begin_layout Plain Layout
4315 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4318 \begin_layout Plain Layout
4326 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4329 \begin_layout Plain Layout
4337 <cell alignment="center" valignment="top" usebox="none">
4340 \begin_layout Plain Layout
4346 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4349 \begin_layout Plain Layout
4357 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4360 \begin_layout Plain Layout
4368 <cell alignment="center" valignment="top" usebox="none">
4371 \begin_layout Plain Layout
4377 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4380 \begin_layout Plain Layout
4388 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4391 \begin_layout Plain Layout
4399 <cell alignment="center" valignment="top" usebox="none">
4402 \begin_layout Plain Layout
4408 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4411 \begin_layout Plain Layout
4419 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4422 \begin_layout Plain Layout
4430 <cell alignment="center" valignment="top" usebox="none">
4433 \begin_layout Plain Layout
4439 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4442 \begin_layout Plain Layout
4450 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4453 \begin_layout Plain Layout
4461 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4464 \begin_layout Plain Layout
4470 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4473 \begin_layout Plain Layout
4481 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4484 \begin_layout Plain Layout
4490 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4493 \begin_layout Plain Layout
4499 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4502 \begin_layout Plain Layout
4510 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4513 \begin_layout Plain Layout
4521 <cell alignment="center" valignment="top" usebox="none">
4524 \begin_layout Plain Layout
4530 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4533 \begin_layout Plain Layout
4541 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4544 \begin_layout Plain Layout
4552 <cell alignment="center" valignment="top" usebox="none">
4555 \begin_layout Plain Layout
4561 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4564 \begin_layout Plain Layout
4572 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4575 \begin_layout Plain Layout
4583 <cell alignment="center" valignment="top" usebox="none">
4586 \begin_layout Plain Layout
4592 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4595 \begin_layout Plain Layout
4603 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4606 \begin_layout Plain Layout
4614 <cell alignment="center" valignment="top" usebox="none">
4617 \begin_layout Plain Layout
4623 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4626 \begin_layout Plain Layout
4634 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4637 \begin_layout Plain Layout
4645 <cell alignment="center" valignment="top" usebox="none">
4648 \begin_layout Plain Layout
4654 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4657 \begin_layout Plain Layout
4665 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4668 \begin_layout Plain Layout
4676 <cell alignment="center" valignment="top" usebox="none">
4679 \begin_layout Plain Layout
4685 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4688 \begin_layout Plain Layout
4696 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4699 \begin_layout Plain Layout
4707 <cell alignment="center" valignment="top" usebox="none">
4710 \begin_layout Plain Layout
4716 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4719 \begin_layout Plain Layout
4727 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4730 \begin_layout Plain Layout
4738 <cell alignment="center" valignment="top" usebox="none">
4741 \begin_layout Plain Layout
4747 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4750 \begin_layout Plain Layout
4758 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4761 \begin_layout Plain Layout
4769 <cell alignment="center" valignment="top" usebox="none">
4772 \begin_layout Plain Layout
4778 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4781 \begin_layout Plain Layout
4789 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4792 \begin_layout Plain Layout
4800 <cell alignment="center" valignment="top" usebox="none">
4803 \begin_layout Plain Layout
4809 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4812 \begin_layout Plain Layout
4820 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4823 \begin_layout Plain Layout
4831 <cell alignment="center" valignment="top" usebox="none">
4834 \begin_layout Plain Layout
4840 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4843 \begin_layout Plain Layout
4851 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4854 \begin_layout Plain Layout
4862 <cell alignment="center" valignment="top" usebox="none">
4865 \begin_layout Plain Layout
4871 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4874 \begin_layout Plain Layout
4882 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4885 \begin_layout Plain Layout
4893 <cell alignment="center" valignment="top" usebox="none">
4896 \begin_layout Plain Layout
4902 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4905 \begin_layout Plain Layout
4913 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4916 \begin_layout Plain Layout
4924 <cell alignment="center" valignment="top" usebox="none">
4927 \begin_layout Plain Layout
4933 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4936 \begin_layout Plain Layout
4944 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4947 \begin_layout Plain Layout
4955 <cell alignment="center" valignment="top" usebox="none">
4958 \begin_layout Plain Layout
4964 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4967 \begin_layout Plain Layout
4975 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4978 \begin_layout Plain Layout
4986 <cell alignment="center" valignment="top" usebox="none">
4989 \begin_layout Plain Layout
4995 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4998 \begin_layout Plain Layout
5006 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5009 \begin_layout Plain Layout
5017 <cell alignment="center" valignment="top" usebox="none">
5020 \begin_layout Plain Layout
5026 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5029 \begin_layout Plain Layout
5037 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5040 \begin_layout Plain Layout
5048 <cell alignment="center" valignment="top" usebox="none">
5051 \begin_layout Plain Layout
5057 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5060 \begin_layout Plain Layout
5068 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5071 \begin_layout Plain Layout
5079 <cell alignment="center" valignment="top" usebox="none">
5082 \begin_layout Plain Layout
5088 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5091 \begin_layout Plain Layout
5099 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5102 \begin_layout Plain Layout
5110 <cell alignment="center" valignment="top" usebox="none">
5113 \begin_layout Plain Layout
5119 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5122 \begin_layout Plain Layout
5130 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5133 \begin_layout Plain Layout
5141 <cell alignment="center" valignment="top" usebox="none">
5144 \begin_layout Plain Layout
5150 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5153 \begin_layout Plain Layout
5161 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5164 \begin_layout Plain Layout
5172 <cell alignment="center" valignment="top" usebox="none">
5175 \begin_layout Plain Layout
5181 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5184 \begin_layout Plain Layout
5192 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5195 \begin_layout Plain Layout
5203 <cell alignment="center" valignment="top" usebox="none">
5206 \begin_layout Plain Layout
5212 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5215 \begin_layout Plain Layout
5223 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5226 \begin_layout Plain Layout
5234 <cell alignment="center" valignment="top" usebox="none">
5237 \begin_layout Plain Layout
5243 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5246 \begin_layout Plain Layout
5254 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5257 \begin_layout Plain Layout
5265 <cell alignment="center" valignment="top" usebox="none">
5268 \begin_layout Plain Layout
5274 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5277 \begin_layout Plain Layout
5285 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5288 \begin_layout Plain Layout
5296 <cell alignment="center" valignment="top" usebox="none">
5299 \begin_layout Plain Layout
5305 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5308 \begin_layout Plain Layout
5316 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5319 \begin_layout Plain Layout
5327 <cell alignment="center" valignment="top" usebox="none">
5330 \begin_layout Plain Layout
5336 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5339 \begin_layout Plain Layout
5347 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5350 \begin_layout Plain Layout
5358 <cell alignment="center" valignment="top" usebox="none">
5361 \begin_layout Plain Layout
5367 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5370 \begin_layout Plain Layout
5378 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5381 \begin_layout Plain Layout
5389 <cell alignment="center" valignment="top" usebox="none">
5392 \begin_layout Plain Layout
5398 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5401 \begin_layout Plain Layout
5409 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5412 \begin_layout Plain Layout
5420 <cell alignment="center" valignment="top" usebox="none">
5423 \begin_layout Plain Layout
5429 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5432 \begin_layout Plain Layout
5440 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5443 \begin_layout Plain Layout
5451 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5454 \begin_layout Plain Layout
5460 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5463 \begin_layout Plain Layout
5470 <row endlastfoot="true">
5471 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5474 \begin_layout Plain Layout
5480 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5483 \begin_layout Plain Layout
5489 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5492 \begin_layout Plain Layout
5507 \begin_layout Plain Layout
5511 addtocounter{table}{-1}
5517 \begin_inset Note Note
5520 \begin_layout Plain Layout
5521 See the first greyed-out note in section
5522 \begin_inset space ~
5526 \begin_inset CommandInset ref
5528 reference "sub:Longtable-Captions"
5532 for an explanation of this command.
5540 \begin_layout Subsection
5541 Footnotes in Longtables
5542 \begin_inset CommandInset label
5544 name "sub:Footnotes-in-Longtables"
5549 \begin_inset Index idx
5552 \begin_layout Plain Layout
5553 Longtables ! Footnotes
5561 \begin_layout Standard
5562 Footnotes can be inserted to every longtable cell.
5563 They appear at the bottom of the page where the table cell with the footnote
5566 \begin_inset space ~
5570 \begin_inset CommandInset ref
5572 reference "tab:DiffCaptions"
5576 has for example a footnote.
5579 \begin_layout Subsection
5581 \begin_inset Index idx
5584 \begin_layout Plain Layout
5585 Longtables ! Alignment
5593 \begin_layout Standard
5594 The horizontal alignment of longtables can be set in the table settings
5596 For left- and right-alignment the table will be directly at the page border.
5597 To add space between the table and the border one has to set the alignment
5598 to center and change the value of the LaTeX-lengths
5610 by inserting this line as TeX-Code before the longtable:
5613 \begin_layout Standard
5623 \begin_layout Standard
5624 The value can have any of the units listed in Table
5625 \begin_inset space ~
5629 \begin_inset CommandInset ref
5631 reference "tab:Units"
5642 controls the horizontal distance from the left page border to the longtable,
5649 the distance from the right side.
5650 The default value for both lengths is
5656 , which is in this case the same as an horizontal fill in LyX.
5659 \begin_layout Standard
5660 The following longtable was centered and
5676 \begin_layout Plain Layout
5692 \begin_layout Standard
5693 \begin_inset Tabular
5694 <lyxtabular version="3" rows="5" columns="5">
5695 <features islongtable="true" longtabularalignment="center">
5696 <column alignment="center" valignment="top" width="0">
5697 <column alignment="center" valignment="top" width="0pt">
5698 <column alignment="center" valignment="top" width="0">
5699 <column alignment="center" valignment="top" width="0">
5700 <column alignment="center" valignment="top" width="0">
5702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5705 \begin_layout Plain Layout
5711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5714 \begin_layout Plain Layout
5720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5723 \begin_layout Plain Layout
5729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5732 \begin_layout Plain Layout
5738 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5741 \begin_layout Plain Layout
5749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5752 \begin_layout Plain Layout
5758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5761 \begin_layout Plain Layout
5767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5770 \begin_layout Plain Layout
5776 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5779 \begin_layout Plain Layout
5785 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5788 \begin_layout Plain Layout
5796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5799 \begin_layout Plain Layout
5805 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5808 \begin_layout Plain Layout
5814 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5817 \begin_layout Plain Layout
5823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5826 \begin_layout Plain Layout
5832 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5835 \begin_layout Plain Layout
5843 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5846 \begin_layout Plain Layout
5852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5855 \begin_layout Plain Layout
5861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5864 \begin_layout Plain Layout
5870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5873 \begin_layout Plain Layout
5879 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5882 \begin_layout Plain Layout
5890 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5893 \begin_layout Plain Layout
5899 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5902 \begin_layout Plain Layout
5908 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5911 \begin_layout Plain Layout
5917 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5920 \begin_layout Plain Layout
5926 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5929 \begin_layout Plain Layout
5944 \begin_layout Plain Layout
5961 \begin_layout Plain Layout
5965 addtocounter{table}{-1}
5971 \begin_inset Note Note
5974 \begin_layout Plain Layout
5975 See the first greyed-out note in section
5976 \begin_inset space ~
5980 \begin_inset CommandInset ref
5982 reference "sub:Longtable-Captions"
5986 for an explanation of this command.
5994 \begin_layout Subsection
5996 \begin_inset Index idx
5999 \begin_layout Plain Layout
6000 Longtables ! Captions
6006 \begin_inset CommandInset label
6008 name "sub:Longtable-Captions"
6015 \begin_layout Standard
6016 A longtable cannot be put into a table float because floats can only be
6018 But the caption environment of floats can also be used for longtables when
6019 you use the longtable option
6023 as described in sec.
6024 \begin_inset space \thinspace{}
6028 \begin_inset CommandInset ref
6030 reference "sec:Longtables"
6035 Only one table row can contain the caption.
6038 \begin_layout Standard
6039 Here is a short longtable to see how it works:
6042 \begin_layout Standard
6043 \begin_inset Tabular
6044 <lyxtabular version="3" rows="6" columns="5">
6045 <features islongtable="true" longtabularalignment="center">
6046 <column alignment="center" valignment="top" width="0">
6047 <column alignment="center" valignment="top" width="0">
6048 <column alignment="center" valignment="top" width="0">
6049 <column alignment="center" valignment="top" width="0">
6050 <column alignment="center" valignment="top" width="0">
6051 <row caption="true">
6052 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6055 \begin_layout Plain Layout
6056 \begin_inset Caption
6058 \begin_layout Plain Layout
6059 Longtable with caption
6060 \begin_inset Argument
6063 \begin_layout Plain Layout
6079 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6082 \begin_layout Plain Layout
6088 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6091 \begin_layout Plain Layout
6097 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6100 \begin_layout Plain Layout
6106 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6109 \begin_layout Plain Layout
6117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6120 \begin_layout Plain Layout
6126 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6129 \begin_layout Plain Layout
6135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6138 \begin_layout Plain Layout
6144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6147 \begin_layout Plain Layout
6153 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6156 \begin_layout Plain Layout
6164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6167 \begin_layout Plain Layout
6173 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6176 \begin_layout Plain Layout
6182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6185 \begin_layout Plain Layout
6191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6194 \begin_layout Plain Layout
6200 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6203 \begin_layout Plain Layout
6211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6214 \begin_layout Plain Layout
6220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6223 \begin_layout Plain Layout
6229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6232 \begin_layout Plain Layout
6238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6241 \begin_layout Plain Layout
6247 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6250 \begin_layout Plain Layout
6258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6261 \begin_layout Plain Layout
6267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6270 \begin_layout Plain Layout
6276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6279 \begin_layout Plain Layout
6285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6288 \begin_layout Plain Layout
6294 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6297 \begin_layout Plain Layout
6305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6308 \begin_layout Plain Layout
6314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6317 \begin_layout Plain Layout
6323 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6326 \begin_layout Plain Layout
6332 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6335 \begin_layout Plain Layout
6341 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6344 \begin_layout Plain Layout
6358 \begin_layout Standard
6359 \begin_inset VSpace medskip
6363 \begin_inset Note Greyedout
6366 \begin_layout Plain Layout
6370 \begin_inset space ~
6375 The table number is increased for for every longtable, even if you did
6376 not set a caption for it.
6377 For this reason you could have the case that e.
6378 \begin_inset space \thinspace{}
6382 \begin_inset space \space{}
6386 \begin_inset space ~
6390 \begin_inset space ~
6393 2.1 in the list of tables if there are two longtables without captions.
6394 To avoid this you can add the following command in TeX-Code after every
6395 longtable without a caption:
6398 \begin_layout Plain Layout
6403 addtocounter{table}{-1}
6406 \begin_layout Plain Layout
6407 This is not needed when none of your longtables have a caption and you add
6408 the following code to the document preamble:
6411 \begin_layout Plain Layout
6421 \begin_inset Newline newline
6432 addtocounter{table}{-1}}
6440 \begin_layout Standard
6441 \begin_inset Note Greyedout
6444 \begin_layout Plain Layout
6448 \begin_inset space ~
6458 \begin_inset Index idx
6461 \begin_layout Plain Layout
6462 LaTeX-packages ! hyperref
6475 dialog to link cross-references, the link to a longtable caption will always
6476 point to the beginning of the document.
6484 \begin_layout Subsubsection
6485 References to Longtables
6486 \begin_inset Index idx
6489 \begin_layout Plain Layout
6490 Longtables ! References
6498 \begin_layout Standard
6499 \begin_inset Tabular
6500 <lyxtabular version="3" rows="6" columns="5">
6501 <features islongtable="true" longtabularalignment="center">
6502 <column alignment="center" valignment="top" width="0">
6503 <column alignment="center" valignment="top" width="0">
6504 <column alignment="center" valignment="top" width="0">
6505 <column alignment="center" valignment="top" width="0">
6506 <column alignment="center" valignment="top" width="0">
6507 <row caption="true">
6508 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6511 \begin_layout Plain Layout
6512 \begin_inset Caption
6514 \begin_layout Plain Layout
6515 Referenced longtable
6516 \begin_inset CommandInset label
6518 name "tab:RefExample"
6532 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6535 \begin_layout Plain Layout
6541 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6544 \begin_layout Plain Layout
6550 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6553 \begin_layout Plain Layout
6559 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6562 \begin_layout Plain Layout
6570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6573 \begin_layout Plain Layout
6579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6582 \begin_layout Plain Layout
6588 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6591 \begin_layout Plain Layout
6597 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6600 \begin_layout Plain Layout
6606 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6609 \begin_layout Plain Layout
6617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6620 \begin_layout Plain Layout
6626 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6629 \begin_layout Plain Layout
6635 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6638 \begin_layout Plain Layout
6644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6647 \begin_layout Plain Layout
6653 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6656 \begin_layout Plain Layout
6664 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6667 \begin_layout Plain Layout
6673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6676 \begin_layout Plain Layout
6682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6685 \begin_layout Plain Layout
6691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6694 \begin_layout Plain Layout
6700 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6703 \begin_layout Plain Layout
6711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6714 \begin_layout Plain Layout
6720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6723 \begin_layout Plain Layout
6729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6732 \begin_layout Plain Layout
6738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6741 \begin_layout Plain Layout
6747 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6750 \begin_layout Plain Layout
6758 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6761 \begin_layout Plain Layout
6767 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6770 \begin_layout Plain Layout
6776 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6779 \begin_layout Plain Layout
6785 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6788 \begin_layout Plain Layout
6794 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6797 \begin_layout Plain Layout
6811 \begin_layout Standard
6812 To reference a longtable, insert a label into the caption.
6815 \begin_layout Standard
6816 This is a reference to Table
6817 \begin_inset space ~
6821 \begin_inset CommandInset ref
6823 reference "tab:RefExample"
6830 \begin_layout Standard
6831 The caption layout can be set together with all other captions of your document
6832 using the LaTeX-package
6837 \begin_inset Index idx
6840 \begin_layout Plain Layout
6841 LaTeX-packages ! caption
6847 \begin_inset space ~
6851 \begin_inset CommandInset ref
6853 reference "sec:Caption-Formatting"
6860 \begin_layout Subsubsection
6862 \begin_inset Index idx
6865 \begin_layout Plain Layout
6866 Longtables ! Caption Width
6874 \begin_layout Standard
6875 The maximal width of of caption lines is defined by the length
6882 Its default value is 4
6883 \begin_inset space \thinspace{}
6887 To change it add the following command to your document preamble or as
6888 TeX-Code into your document before the longtable that should be affected
6891 \begin_layout Standard
6901 \begin_layout Standard
6902 where the width could have one of the units listed in appendix
6903 \begin_inset space ~
6907 \begin_inset CommandInset ref
6909 reference "cha:Units-available-in"
6916 \begin_layout Standard
6917 The following tables show the difference:
6920 \begin_layout Standard
6921 \begin_inset Tabular
6922 <lyxtabular version="3" rows="6" columns="5">
6923 <features islongtable="true" longtabularalignment="center">
6924 <column alignment="center" valignment="top" width="0">
6925 <column alignment="center" valignment="top" width="0">
6926 <column alignment="center" valignment="top" width="0">
6927 <column alignment="center" valignment="top" width="0">
6928 <column alignment="center" valignment="top" width="0">
6929 <row caption="true">
6930 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6933 \begin_layout Plain Layout
6934 \begin_inset Caption
6936 \begin_layout Plain Layout
6937 long full title with default width long full title with default width long
6938 full title with default width
6939 \begin_inset Argument
6942 \begin_layout Plain Layout
6943 caption with default width
6958 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6961 \begin_layout Plain Layout
6967 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6970 \begin_layout Plain Layout
6976 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6979 \begin_layout Plain Layout
6985 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6988 \begin_layout Plain Layout
6996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6999 \begin_layout Plain Layout
7005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7008 \begin_layout Plain Layout
7014 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7017 \begin_layout Plain Layout
7023 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7026 \begin_layout Plain Layout
7032 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7035 \begin_layout Plain Layout
7043 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7046 \begin_layout Plain Layout
7052 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7055 \begin_layout Plain Layout
7061 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7064 \begin_layout Plain Layout
7070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7073 \begin_layout Plain Layout
7079 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7082 \begin_layout Plain Layout
7090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7093 \begin_layout Plain Layout
7099 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7102 \begin_layout Plain Layout
7108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7111 \begin_layout Plain Layout
7117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7120 \begin_layout Plain Layout
7126 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7129 \begin_layout Plain Layout
7137 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7140 \begin_layout Plain Layout
7146 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7149 \begin_layout Plain Layout
7155 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7158 \begin_layout Plain Layout
7164 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7167 \begin_layout Plain Layout
7173 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7176 \begin_layout Plain Layout
7184 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7187 \begin_layout Plain Layout
7193 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7196 \begin_layout Plain Layout
7202 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7205 \begin_layout Plain Layout
7211 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7214 \begin_layout Plain Layout
7220 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7223 \begin_layout Plain Layout
7237 \begin_layout Standard
7241 \begin_layout Plain Layout
7253 \begin_inset Tabular
7254 <lyxtabular version="3" rows="6" columns="5">
7255 <features islongtable="true" longtabularalignment="center">
7256 <column alignment="center" valignment="top" width="0">
7257 <column alignment="center" valignment="top" width="0">
7258 <column alignment="center" valignment="top" width="0">
7259 <column alignment="center" valignment="top" width="0">
7260 <column alignment="center" valignment="top" width="0">
7261 <row caption="true">
7262 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7265 \begin_layout Plain Layout
7266 \begin_inset Caption
7268 \begin_layout Plain Layout
7269 long full title with width set to 5
7270 \begin_inset space \thinspace{}
7273 cm long full title with width set to 5
7274 \begin_inset space \thinspace{}
7277 cm long full title with width set to 5
7278 \begin_inset space \thinspace{}
7282 \begin_inset Argument
7285 \begin_layout Plain Layout
7287 \begin_inset space \thinspace{}
7291 \begin_inset space \thinspace{}
7295 \begin_inset space \thinspace{}
7313 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7316 \begin_layout Plain Layout
7322 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7325 \begin_layout Plain Layout
7331 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7334 \begin_layout Plain Layout
7340 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7343 \begin_layout Plain Layout
7351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7354 \begin_layout Plain Layout
7360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7363 \begin_layout Plain Layout
7369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7372 \begin_layout Plain Layout
7378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7381 \begin_layout Plain Layout
7387 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7390 \begin_layout Plain Layout
7398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7401 \begin_layout Plain Layout
7407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7410 \begin_layout Plain Layout
7416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7419 \begin_layout Plain Layout
7425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7428 \begin_layout Plain Layout
7434 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7437 \begin_layout Plain Layout
7445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7448 \begin_layout Plain Layout
7454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7457 \begin_layout Plain Layout
7463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7466 \begin_layout Plain Layout
7472 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7475 \begin_layout Plain Layout
7481 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7484 \begin_layout Plain Layout
7492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7495 \begin_layout Plain Layout
7501 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7504 \begin_layout Plain Layout
7510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7513 \begin_layout Plain Layout
7519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7522 \begin_layout Plain Layout
7528 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7531 \begin_layout Plain Layout
7539 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7542 \begin_layout Plain Layout
7548 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7551 \begin_layout Plain Layout
7557 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7560 \begin_layout Plain Layout
7566 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7569 \begin_layout Plain Layout
7575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7578 \begin_layout Plain Layout
7592 \begin_layout Standard
7596 \begin_layout Plain Layout
7610 \begin_layout Standard
7611 \begin_inset Note Greyedout
7614 \begin_layout Plain Layout
7619 When the LaTeX-package
7624 \begin_inset Index idx
7627 \begin_layout Plain Layout
7628 LaTeX-packages ! caption
7633 is used, as in this document, the full page width is used for the caption
7634 when you use the default value of 4
7635 \begin_inset space \thinspace{}
7645 To get in this case exactly a 4
7646 \begin_inset space \thinspace{}
7649 in wide caption, you can either use a value slightly different from 4.0
7650 \begin_inset space \thinspace{}
7654 \begin_inset space \thinspace{}
7658 \begin_inset space \space{}
7662 \begin_inset space \thinspace{}
7665 in, or the LaTeX-command
7669 captionsetup{width=value}
7671 that is provided by the
7683 \begin_layout Subsubsection
7684 Different Captions for Table Pages
7685 \begin_inset Index idx
7688 \begin_layout Plain Layout
7689 Longtables ! Different Captions for Pages
7697 \begin_layout Standard
7698 When the table captions for the following pages should differ from the one
7699 of the first table page, insert a caption with the TeX code command
7702 \begin_layout Standard
7707 caption*{caption text}
7714 \begin_layout Standard
7715 in a dummy caption row that is marked as a header.
7717 \begin_inset space ~
7721 \begin_inset CommandInset ref
7723 reference "tab:DiffCaptions"
7727 is an example of a longtable with different heading where the second caption
7728 doesn't include the table number.
7731 \begin_layout Standard
7733 \begin_inset Tabular
7734 <lyxtabular version="3" rows="59" columns="3">
7735 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
7736 <column alignment="left" valignment="top" width="0cm">
7737 <column alignment="left" valignment="top" width="0pt">
7738 <column alignment="center" valignment="top" width="0pt">
7739 <row caption="true">
7740 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7743 \begin_layout Plain Layout
7744 \begin_inset Caption
7746 \begin_layout Plain Layout
7748 \begin_inset CommandInset label
7750 name "tab:DiffCaptions"
7755 \begin_inset Argument
7758 \begin_layout Plain Layout
7774 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7777 \begin_layout Plain Layout
7783 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7786 \begin_layout Plain Layout
7793 <row endfirsthead="true">
7794 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7797 \begin_layout Plain Layout
7800 Example Phone List (ignore the names)
7805 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7808 \begin_layout Plain Layout
7814 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7817 \begin_layout Plain Layout
7824 <row endfirsthead="true">
7825 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7828 \begin_layout Plain Layout
7836 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7839 \begin_layout Plain Layout
7845 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7848 \begin_layout Plain Layout
7857 <row endhead="true">
7858 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7861 \begin_layout Plain Layout
7865 \begin_layout Plain Layout
7869 caption*{Continued Example Phone List}
7883 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7886 \begin_layout Plain Layout
7892 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7895 \begin_layout Plain Layout
7902 <row endhead="true">
7903 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7906 \begin_layout Plain Layout
7914 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7917 \begin_layout Plain Layout
7923 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7926 \begin_layout Plain Layout
7933 <row endhead="true">
7934 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7937 \begin_layout Plain Layout
7945 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7948 \begin_layout Plain Layout
7954 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7957 \begin_layout Plain Layout
7966 <row endfoot="true">
7967 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
7970 \begin_layout Plain Layout
7971 continued on next page
7976 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7979 \begin_layout Plain Layout
7985 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7988 \begin_layout Plain Layout
7996 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7999 \begin_layout Plain Layout
8007 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8010 \begin_layout Plain Layout
8016 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
8019 \begin_layout Plain Layout
8027 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8030 \begin_layout Plain Layout
8038 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8041 \begin_layout Plain Layout
8047 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8050 \begin_layout Plain Layout
8058 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8061 \begin_layout Plain Layout
8069 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8072 \begin_layout Plain Layout
8078 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8081 \begin_layout Plain Layout
8089 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8092 \begin_layout Plain Layout
8100 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8103 \begin_layout Plain Layout
8109 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8112 \begin_layout Plain Layout
8120 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8123 \begin_layout Plain Layout
8131 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8134 \begin_layout Plain Layout
8140 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8143 \begin_layout Plain Layout
8151 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8154 \begin_layout Plain Layout
8162 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8165 \begin_layout Plain Layout
8171 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8174 \begin_layout Plain Layout
8182 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8185 \begin_layout Plain Layout
8193 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8196 \begin_layout Plain Layout
8202 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8205 \begin_layout Plain Layout
8213 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8216 \begin_layout Plain Layout
8224 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8227 \begin_layout Plain Layout
8233 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8236 \begin_layout Plain Layout
8244 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8247 \begin_layout Plain Layout
8255 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8258 \begin_layout Plain Layout
8264 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8267 \begin_layout Plain Layout
8275 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8278 \begin_layout Plain Layout
8286 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8289 \begin_layout Plain Layout
8295 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8298 \begin_layout Plain Layout
8306 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8309 \begin_layout Plain Layout
8317 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8320 \begin_layout Plain Layout
8326 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8329 \begin_layout Plain Layout
8337 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8340 \begin_layout Plain Layout
8348 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8351 \begin_layout Plain Layout
8357 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8360 \begin_layout Plain Layout
8368 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8371 \begin_layout Plain Layout
8379 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8382 \begin_layout Plain Layout
8388 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8391 \begin_layout Plain Layout
8399 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8402 \begin_layout Plain Layout
8410 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8413 \begin_layout Plain Layout
8419 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8422 \begin_layout Plain Layout
8430 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8433 \begin_layout Plain Layout
8442 \begin_layout Plain Layout
8453 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8456 \begin_layout Plain Layout
8462 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8465 \begin_layout Plain Layout
8473 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8476 \begin_layout Plain Layout
8484 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8487 \begin_layout Plain Layout
8493 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8496 \begin_layout Plain Layout
8504 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8507 \begin_layout Plain Layout
8515 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8518 \begin_layout Plain Layout
8524 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8527 \begin_layout Plain Layout
8535 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8538 \begin_layout Plain Layout
8546 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8549 \begin_layout Plain Layout
8555 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8558 \begin_layout Plain Layout
8566 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8569 \begin_layout Plain Layout
8577 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8580 \begin_layout Plain Layout
8586 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8589 \begin_layout Plain Layout
8597 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8600 \begin_layout Plain Layout
8608 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8611 \begin_layout Plain Layout
8617 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8620 \begin_layout Plain Layout
8628 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8631 \begin_layout Plain Layout
8639 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8642 \begin_layout Plain Layout
8648 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8651 \begin_layout Plain Layout
8659 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8662 \begin_layout Plain Layout
8670 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8673 \begin_layout Plain Layout
8679 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8682 \begin_layout Plain Layout
8690 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8693 \begin_layout Plain Layout
8701 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8704 \begin_layout Plain Layout
8710 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8713 \begin_layout Plain Layout
8721 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8724 \begin_layout Plain Layout
8732 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8735 \begin_layout Plain Layout
8741 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8744 \begin_layout Plain Layout
8752 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8755 \begin_layout Plain Layout
8763 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8766 \begin_layout Plain Layout
8772 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8775 \begin_layout Plain Layout
8783 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8786 \begin_layout Plain Layout
8794 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8797 \begin_layout Plain Layout
8803 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8806 \begin_layout Plain Layout
8814 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8817 \begin_layout Plain Layout
8825 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8828 \begin_layout Plain Layout
8834 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8837 \begin_layout Plain Layout
8845 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8848 \begin_layout Plain Layout
8856 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8859 \begin_layout Plain Layout
8865 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8868 \begin_layout Plain Layout
8876 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8879 \begin_layout Plain Layout
8887 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8890 \begin_layout Plain Layout
8896 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8899 \begin_layout Plain Layout
8907 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8910 \begin_layout Plain Layout
8918 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8921 \begin_layout Plain Layout
8927 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8930 \begin_layout Plain Layout
8938 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8941 \begin_layout Plain Layout
8949 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8952 \begin_layout Plain Layout
8958 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8961 \begin_layout Plain Layout
8969 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8972 \begin_layout Plain Layout
8978 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
8981 \begin_layout Plain Layout
8987 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
8990 \begin_layout Plain Layout
8998 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9001 \begin_layout Plain Layout
9009 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9012 \begin_layout Plain Layout
9018 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9021 \begin_layout Plain Layout
9029 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9032 \begin_layout Plain Layout
9040 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9043 \begin_layout Plain Layout
9049 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9052 \begin_layout Plain Layout
9060 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9063 \begin_layout Plain Layout
9071 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9074 \begin_layout Plain Layout
9080 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9083 \begin_layout Plain Layout
9091 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9094 \begin_layout Plain Layout
9102 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9105 \begin_layout Plain Layout
9111 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9114 \begin_layout Plain Layout
9122 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9125 \begin_layout Plain Layout
9133 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9136 \begin_layout Plain Layout
9142 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9145 \begin_layout Plain Layout
9153 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9156 \begin_layout Plain Layout
9164 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9167 \begin_layout Plain Layout
9173 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9176 \begin_layout Plain Layout
9184 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9187 \begin_layout Plain Layout
9195 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9198 \begin_layout Plain Layout
9204 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9207 \begin_layout Plain Layout
9215 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9218 \begin_layout Plain Layout
9226 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9229 \begin_layout Plain Layout
9235 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9238 \begin_layout Plain Layout
9246 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9249 \begin_layout Plain Layout
9257 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9260 \begin_layout Plain Layout
9266 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9269 \begin_layout Plain Layout
9277 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9280 \begin_layout Plain Layout
9288 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9291 \begin_layout Plain Layout
9297 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9300 \begin_layout Plain Layout
9308 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9311 \begin_layout Plain Layout
9319 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9322 \begin_layout Plain Layout
9328 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9331 \begin_layout Plain Layout
9339 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9342 \begin_layout Plain Layout
9350 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9353 \begin_layout Plain Layout
9359 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9362 \begin_layout Plain Layout
9370 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9373 \begin_layout Plain Layout
9381 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9384 \begin_layout Plain Layout
9390 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9393 \begin_layout Plain Layout
9401 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9404 \begin_layout Plain Layout
9412 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9415 \begin_layout Plain Layout
9421 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9424 \begin_layout Plain Layout
9432 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9435 \begin_layout Plain Layout
9443 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9446 \begin_layout Plain Layout
9452 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9455 \begin_layout Plain Layout
9463 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9466 \begin_layout Plain Layout
9474 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9477 \begin_layout Plain Layout
9483 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9486 \begin_layout Plain Layout
9494 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9497 \begin_layout Plain Layout
9505 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9508 \begin_layout Plain Layout
9514 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9517 \begin_layout Plain Layout
9525 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9528 \begin_layout Plain Layout
9536 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9539 \begin_layout Plain Layout
9545 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9548 \begin_layout Plain Layout
9556 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9559 \begin_layout Plain Layout
9567 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9570 \begin_layout Plain Layout
9576 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9579 \begin_layout Plain Layout
9587 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9590 \begin_layout Plain Layout
9598 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9601 \begin_layout Plain Layout
9607 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9610 \begin_layout Plain Layout
9624 \begin_layout Section
9625 Special Longtable Issues
9626 \begin_inset CommandInset label
9628 name "sec:Special-Longtable-Issues"
9635 \begin_layout Subsection
9636 Longtable Calculation
9637 \begin_inset Index idx
9640 \begin_layout Plain Layout
9641 Longtables ! Calculation
9649 \begin_layout Standard
9650 LaTeX calculates the height of table pages and their page breaks using so
9652 Chunks are parts of tables that held at the same time in LaTeX's memory.
9653 The default value was historically set to only 20 table rows.
9654 If you are using longtables with many pages this may slow down the creation
9656 You can safely increase the chunk size to values of 100-1000 by adding
9657 this command line to your document preamble:
9660 \begin_layout Standard
9665 setcounter{LTchunksize}{100}
9668 \begin_layout Subsection
9669 Floats and Longtables
9670 \begin_inset Index idx
9673 \begin_layout Plain Layout
9682 \begin_layout Standard
9683 There might be problems when a float appears on the same page where a longtable
9685 To avoid such a situation, insert a
9686 \begin_inset Quotes eld
9690 \begin_inset Quotes erd
9695 Insert\SpecialChar \menuseparator
9696 Formatting\SpecialChar \menuseparator
9698 \begin_inset space ~
9703 ) before your longtable.
9706 \begin_layout Subsection
9708 \begin_inset Index idx
9711 \begin_layout Plain Layout
9712 Longtables ! Forced Page Breaks
9720 \begin_layout Standard
9721 By default tables are only broken between rows.
9722 If you have a cell with multiples lines and want to have a page break within
9723 the cell, insert the new line command
9724 \begin_inset Quotes eld
9736 \begin_inset Quotes erd
9739 as TeX-Code at the point of the cell where it can be broken.
9748 command you have to insert in TeX-Code as many
9749 \begin_inset Quotes eld
9757 \begin_inset Quotes erd
9760 characters as the number of the following table columns.
9765 is the character to separate table cells.
9766 Write in TeX-Code after each
9770 the content of the corresponding following cell and delete the content
9772 \begin_inset Newline newline
9783 command, insert as many
9787 characters as the number of table columns before the current column.
9789 \begin_inset space ~
9793 \begin_inset CommandInset ref
9795 reference "tab:ForcedPagebreak"
9799 the cell that should be broken is in the second column followed by another
9801 Therefore the following command was inserted in the cell as TeX-Code after
9803 \begin_inset Quotes eld
9811 \begin_inset Quotes erd
9817 \begin_layout Standard
9827 \begin_inset Newline newline
9833 \begin_layout Standard
9835 \begin_inset Quotes eld
9839 \begin_inset Quotes erd
9842 in the third column of the row was deleted.
9849 is only needed when a page break should definitely occur at this position,
9850 otherwise it would be a conditional break.
9851 If your footer row of the longtable has for a certain reason no upper line
9852 but you would have a horizontal line where the cell is broken, use this
9856 \begin_layout Standard
9864 \begin_inset Newline newline
9872 \begin_layout Standard
9873 When the cell to be broken is in the last column, the command
9876 \begin_layout Standard
9886 \begin_layout Standard
9887 must be inserted as TeX-Code at the beginning of the cell.
9888 This ensures that the part of the cell that will be displayed on the new
9889 page appears with the full width.
9892 \begin_layout Standard
9894 \begin_inset Tabular
9895 <lyxtabular version="3" rows="38" columns="3">
9896 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9897 <column alignment="left" valignment="top" width="0cm">
9898 <column alignment="left" valignment="top" width="3cm">
9899 <column alignment="center" valignment="top" width="0pt">
9900 <row caption="true">
9901 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9904 \begin_layout Plain Layout
9905 \begin_inset Caption
9907 \begin_layout Plain Layout
9908 Table with forced page break in table cell
9909 \begin_inset CommandInset label
9911 name "tab:ForcedPagebreak"
9916 \begin_inset Argument
9919 \begin_layout Plain Layout
9920 Table with forced page break in table cell
9935 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9938 \begin_layout Plain Layout
9944 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9947 \begin_layout Plain Layout
9954 <row endfirsthead="true">
9955 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
9958 \begin_layout Plain Layout
9961 Example Phone List (ignore the names)
9966 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9969 \begin_layout Plain Layout
9975 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9978 \begin_layout Plain Layout
9985 <row endfirsthead="true">
9986 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9989 \begin_layout Plain Layout
9997 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10000 \begin_layout Plain Layout
10006 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10009 \begin_layout Plain Layout
10018 <row endhead="true">
10019 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10022 \begin_layout Plain Layout
10026 \begin_layout Plain Layout
10030 caption*{Continued Example Phone List}
10044 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10047 \begin_layout Plain Layout
10053 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10056 \begin_layout Plain Layout
10063 <row endhead="true">
10064 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10067 \begin_layout Plain Layout
10075 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10078 \begin_layout Plain Layout
10084 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10087 \begin_layout Plain Layout
10094 <row endhead="true">
10095 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10098 \begin_layout Plain Layout
10106 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10109 \begin_layout Plain Layout
10115 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10118 \begin_layout Plain Layout
10127 <row endfoot="true">
10128 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10131 \begin_layout Plain Layout
10132 continued on next page
10137 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10140 \begin_layout Plain Layout
10146 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10149 \begin_layout Plain Layout
10157 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10160 \begin_layout Plain Layout
10168 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10171 \begin_layout Plain Layout
10177 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10180 \begin_layout Plain Layout
10188 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10191 \begin_layout Plain Layout
10199 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10202 \begin_layout Plain Layout
10208 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10211 \begin_layout Plain Layout
10219 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10222 \begin_layout Plain Layout
10230 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10233 \begin_layout Plain Layout
10239 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10242 \begin_layout Plain Layout
10250 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10253 \begin_layout Plain Layout
10261 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10264 \begin_layout Plain Layout
10270 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10273 \begin_layout Plain Layout
10281 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10284 \begin_layout Plain Layout
10292 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10295 \begin_layout Plain Layout
10301 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10304 \begin_layout Plain Layout
10312 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10315 \begin_layout Plain Layout
10323 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10326 \begin_layout Plain Layout
10332 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10335 \begin_layout Plain Layout
10343 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10346 \begin_layout Plain Layout
10354 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10357 \begin_layout Plain Layout
10363 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10366 \begin_layout Plain Layout
10374 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10377 \begin_layout Plain Layout
10385 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10388 \begin_layout Plain Layout
10394 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10397 \begin_layout Plain Layout
10405 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10408 \begin_layout Plain Layout
10416 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10419 \begin_layout Plain Layout
10425 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10428 \begin_layout Plain Layout
10436 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10439 \begin_layout Plain Layout
10447 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10450 \begin_layout Plain Layout
10456 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10459 \begin_layout Plain Layout
10467 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10470 \begin_layout Plain Layout
10478 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10481 \begin_layout Plain Layout
10487 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10490 \begin_layout Plain Layout
10498 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10501 \begin_layout Plain Layout
10509 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10512 \begin_layout Plain Layout
10518 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10521 \begin_layout Plain Layout
10529 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10532 \begin_layout Plain Layout
10540 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10543 \begin_layout Plain Layout
10549 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10552 \begin_layout Plain Layout
10560 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10563 \begin_layout Plain Layout
10571 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10574 \begin_layout Plain Layout
10580 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10583 \begin_layout Plain Layout
10591 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10594 \begin_layout Plain Layout
10602 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10605 \begin_layout Plain Layout
10611 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10614 \begin_layout Plain Layout
10622 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10625 \begin_layout Plain Layout
10633 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10636 \begin_layout Plain Layout
10642 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10645 \begin_layout Plain Layout
10653 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10656 \begin_layout Plain Layout
10664 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10667 \begin_layout Plain Layout
10673 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10676 \begin_layout Plain Layout
10684 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10687 \begin_layout Plain Layout
10695 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10698 \begin_layout Plain Layout
10704 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10707 \begin_layout Plain Layout
10715 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10718 \begin_layout Plain Layout
10726 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10729 \begin_layout Plain Layout
10735 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10738 \begin_layout Plain Layout
10746 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10749 \begin_layout Plain Layout
10757 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10760 \begin_layout Plain Layout
10766 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10769 \begin_layout Plain Layout
10777 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10780 \begin_layout Plain Layout
10788 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10791 \begin_layout Plain Layout
10797 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10800 \begin_layout Plain Layout
10808 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10811 \begin_layout Plain Layout
10819 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10822 \begin_layout Plain Layout
10828 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10831 \begin_layout Plain Layout
10839 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10842 \begin_layout Plain Layout
10850 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10853 \begin_layout Plain Layout
10855 Fürst von Montecompatri, 11.
10856 Fürst von Sulmona und Vivaro, 10.
10857 Fürst von Rossano, 5.
10858 Herzog von Canemorte, 11.
10859 Herzog von Palombara, 5.
10860 Herzog von Castelchiodato,
10864 \begin_layout Plain Layout
10875 \begin_layout Plain Layout
10883 Herzog von Poggionativo, 11.
10884 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10885 Graf von Valinfreda, 11.
10886 Baron von Cropalati, 11.
10887 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10892 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10895 \begin_layout Plain Layout
10903 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10906 \begin_layout Plain Layout
10914 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10917 \begin_layout Plain Layout
10923 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10926 \begin_layout Plain Layout
10934 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10937 \begin_layout Plain Layout
10945 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10948 \begin_layout Plain Layout
10954 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10957 \begin_layout Plain Layout
10965 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10968 \begin_layout Plain Layout
10976 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10979 \begin_layout Plain Layout
10985 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10988 \begin_layout Plain Layout
10996 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10999 \begin_layout Plain Layout
11007 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11010 \begin_layout Plain Layout
11016 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11019 \begin_layout Plain Layout
11027 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11030 \begin_layout Plain Layout
11038 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11041 \begin_layout Plain Layout
11047 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11050 \begin_layout Plain Layout
11058 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11061 \begin_layout Plain Layout
11069 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11072 \begin_layout Plain Layout
11078 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11081 \begin_layout Plain Layout
11089 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11092 \begin_layout Plain Layout
11100 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11103 \begin_layout Plain Layout
11109 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11112 \begin_layout Plain Layout
11120 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11123 \begin_layout Plain Layout
11131 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11134 \begin_layout Plain Layout
11140 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11143 \begin_layout Plain Layout
11157 \begin_layout Section
11158 Multiple Lines Columns and Rows
11161 \begin_layout Subsection
11162 Multiple Lines in Table Cells
11163 \begin_inset CommandInset label
11165 name "sub:Multiple-Lines-in"
11170 \begin_inset Index idx
11173 \begin_layout Plain Layout
11174 Multiple Lines in Table Cells
11180 \begin_inset Index idx
11183 \begin_layout Plain Layout
11192 \begin_layout Standard
11194 \begin_inset Float table
11200 \begin_layout Plain Layout
11201 \begin_inset Caption
11203 \begin_layout Plain Layout
11204 \begin_inset CommandInset label
11206 name "tab:Table-with-multiple"
11210 Table with multiple lines in cells
11218 \begin_layout Plain Layout
11220 \begin_inset Tabular
11221 <lyxtabular version="3" rows="3" columns="3">
11222 <features tabularvalignment="middle">
11223 <column alignment="center" valignment="middle" width="2.5cm">
11224 <column alignment="center" valignment="middle" width="0">
11225 <column alignment="center" valignment="middle" width="0">
11227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11230 \begin_layout Plain Layout
11232 \begin_inset Newline linebreak
11240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11243 \begin_layout Plain Layout
11249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11252 \begin_layout Plain Layout
11260 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11263 \begin_layout Plain Layout
11269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11272 \begin_layout Plain Layout
11278 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11281 \begin_layout Plain Layout
11289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11292 \begin_layout Plain Layout
11298 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11301 \begin_layout Plain Layout
11307 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11310 \begin_layout Plain Layout
11329 \begin_layout Standard
11330 Setting a fixed width for a column enables you to enter text as a paragraph
11331 with multiple lines and hyphenation.
11334 \begin_layout Standard
11336 \begin_inset space ~
11340 \begin_inset CommandInset ref
11342 reference "tab:Table-with-multiple"
11346 , create a 3×3 table, mark the first cell and right-click on it.
11347 In the appearing table dialog we set a cell width of 2.5
11348 \begin_inset space \thinspace{}
11351 cm and choose centered for the vertical and horizontal alignment.
11352 The vertical alignment is used for all cells of the row.
11353 As our text is smaller than 2.5
11354 \begin_inset space \thinspace{}
11357 cm, only one line will appear.
11358 To get two lines, a justified line break (shortcut
11361 arg "newline-insert linebreak"
11365 If the text is wider than the set cell width, it will automatically be
11366 broken to several lines.
11369 \begin_layout Standard
11370 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11371 by LaTeX if it is the first entry.
11372 Therefore you need to insert something to prevent the word not being the
11374 So add a horizontal space of 0
11375 \begin_inset space \thinspace{}
11378 pt before the word.
11379 As the space is zero, it doesn't change the output.
11381 \begin_inset space ~
11385 \begin_inset CommandInset ref
11387 reference "tab:Table-with-and"
11394 \begin_layout Standard
11395 \begin_inset Float table
11401 \begin_layout Plain Layout
11402 \begin_inset Caption
11404 \begin_layout Plain Layout
11405 \begin_inset CommandInset label
11407 name "tab:Table-with-and"
11411 Table with and without hyphenation
11419 \begin_layout Plain Layout
11420 \begin_inset space \hfill{}
11424 \begin_inset Tabular
11425 <lyxtabular version="3" rows="3" columns="3">
11426 <features tabularvalignment="middle">
11427 <column alignment="center" valignment="middle" width="2.5cm">
11428 <column alignment="center" valignment="middle" width="0">
11429 <column alignment="center" valignment="middle" width="0">
11431 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11434 \begin_layout Plain Layout
11435 verylongtablecellword
11440 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11443 \begin_layout Plain Layout
11449 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11452 \begin_layout Plain Layout
11460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11463 \begin_layout Plain Layout
11469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11472 \begin_layout Plain Layout
11478 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11481 \begin_layout Plain Layout
11489 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11492 \begin_layout Plain Layout
11498 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11501 \begin_layout Plain Layout
11507 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11510 \begin_layout Plain Layout
11522 \begin_inset space \hfill{}
11526 \begin_inset Tabular
11527 <lyxtabular version="3" rows="3" columns="3">
11528 <features tabularvalignment="middle">
11529 <column alignment="center" valignment="middle" width="2.5cm">
11530 <column alignment="center" valignment="middle" width="0">
11531 <column alignment="center" valignment="middle" width="0">
11533 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11536 \begin_layout Plain Layout
11537 \begin_inset space \hspace{}
11541 verylongtablecellword
11546 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11549 \begin_layout Plain Layout
11555 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11558 \begin_layout Plain Layout
11566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11569 \begin_layout Plain Layout
11575 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11578 \begin_layout Plain Layout
11584 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11587 \begin_layout Plain Layout
11595 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11598 \begin_layout Plain Layout
11604 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11607 \begin_layout Plain Layout
11613 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11616 \begin_layout Plain Layout
11628 \begin_inset space \hfill{}
11639 \begin_layout Subsection
11641 \begin_inset CommandInset label
11643 name "sub:Multicolumns"
11648 \begin_inset Index idx
11651 \begin_layout Plain Layout
11658 \begin_inset Index idx
11661 \begin_layout Plain Layout
11662 Table ! Multicolumns
11670 \begin_layout Subsubsection
11674 \begin_layout Standard
11675 To merge cells over multiple columns, select as many cells within a row
11676 as you want to merge and use either the table-toolbar button
11677 \begin_inset Graphics
11678 filename ../images/tabular-feature_multicolumn.png
11680 scaleBeforeRotation
11686 Edit\SpecialChar \menuseparator
11687 Table\SpecialChar \menuseparator
11690 , or right click on the marked cells and choose
11694 in the context menu.
11697 \begin_layout Standard
11698 Multicolumns have there own cell settings.
11699 That means changing cell borders, cell alignment, and the width only affects
11701 Here is an example table with a multicolumn cell in the first row and one
11702 in the last row without the upper border:
11705 \begin_layout Standard
11707 \begin_inset Tabular
11708 <lyxtabular version="3" rows="3" columns="4">
11709 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11710 <column alignment="center" valignment="top" width="0pt">
11711 <column alignment="center" valignment="middle" width="0">
11712 <column alignment="center" valignment="top" width="0in">
11713 <column alignment="center" valignment="top" width="0pt">
11715 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11718 \begin_layout Plain Layout
11724 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11727 \begin_layout Plain Layout
11733 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11736 \begin_layout Plain Layout
11742 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11745 \begin_layout Plain Layout
11753 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11756 \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 multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11812 \begin_layout Plain Layout
11818 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11821 \begin_layout Plain Layout
11827 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11830 \begin_layout Plain Layout
11844 \begin_layout Subsubsection
11845 Multicolumn Calculations
11846 \begin_inset CommandInset label
11848 name "sub:Multicolumn-Calculations"
11853 \begin_inset Index idx
11856 \begin_layout Plain Layout
11857 Multicolumns ! Calculations
11865 \begin_layout Standard
11866 LyX supports multicolumns directly, but we have to take account of the cell
11867 width of the columns spanned by the multicolumn cell.
11870 \begin_layout Standard
11871 \begin_inset Float table
11877 \begin_layout Plain Layout
11878 \begin_inset Caption
11880 \begin_layout Plain Layout
11881 \begin_inset CommandInset label
11883 name "tab:Table-with-centered"
11887 Table with centered multicolumn text above two columns that have exactly
11888 half the width of the multicolumn cell
11889 \begin_inset Argument
11892 \begin_layout Plain Layout
11893 Perfect multicolumn table
11906 \begin_layout Plain Layout
11908 \begin_inset Tabular
11909 <lyxtabular version="3" rows="3" columns="3">
11910 <features tabularvalignment="middle">
11911 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11912 <column alignment="center" valignment="middle" width="0">
11913 <column alignment="center" valignment="top" width="0">
11915 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11918 \begin_layout Plain Layout
11919 multiple lines multicolumn
11924 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11927 \begin_layout Plain Layout
11933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11936 \begin_layout Plain Layout
11944 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11947 \begin_layout Plain Layout
11953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11956 \begin_layout Plain Layout
11962 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11965 \begin_layout Plain Layout
11973 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11976 \begin_layout Plain Layout
11982 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11985 \begin_layout Plain Layout
11991 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11994 \begin_layout Plain Layout
12013 \begin_layout Standard
12014 To create for example Table
12015 \begin_inset space ~
12019 \begin_inset CommandInset ref
12021 reference "tab:Table-with-centered"
12025 , mark the first two cells in the first row of a 3×3 table and right-click
12027 Now choose for this cell
12036 \begin_inset space \thinspace{}
12039 cm in the table dialog.
12040 The merged columns should have exactly half the width of the multicolumn
12041 cell, so that you would set a width of 1.25
12042 \begin_inset space \thinspace{}
12045 cm for the first column.
12046 The second column has then automatically a width of 1.25
12047 \begin_inset space \thinspace{}
12050 cm (multicolumn width - width of first column).
12051 This was done for Table
12052 \begin_inset space ~
12056 \begin_inset CommandInset ref
12058 reference "tab:Table-without-half"
12065 \begin_layout Standard
12066 \begin_inset Float table
12071 \begin_layout Plain Layout
12072 \begin_inset Caption
12074 \begin_layout Plain Layout
12075 \begin_inset CommandInset label
12077 name "tab:Table-without-half"
12081 Table where the spanned table columns are not exactly half the width of
12082 the multicolumn cell
12083 \begin_inset Argument
12086 \begin_layout Plain Layout
12087 Imperfect multicolumn table
12100 \begin_layout Plain Layout
12102 \begin_inset Tabular
12103 <lyxtabular version="3" rows="3" columns="3">
12104 <features tabularvalignment="middle">
12105 <column alignment="center" valignment="top" width="1.25cm">
12106 <column alignment="center" valignment="top" width="0">
12107 <column alignment="center" valignment="top" width="0">
12109 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12112 \begin_layout Plain Layout
12113 multiple lines multicolumn
12118 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12121 \begin_layout Plain Layout
12127 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12130 \begin_layout Plain Layout
12138 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12141 \begin_layout Plain Layout
12147 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12150 \begin_layout Plain Layout
12156 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12159 \begin_layout Plain Layout
12167 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12170 \begin_layout Plain Layout
12176 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12179 \begin_layout Plain Layout
12185 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12188 \begin_layout Plain Layout
12207 \begin_layout Standard
12208 You can see that the first column is not half the width of the multicolumn
12209 cell, it is a bit bigger.
12210 The reason is that the specified width of a cell
12211 \begin_inset Formula $W_{g}$
12214 is not its total width
12215 \begin_inset Formula $W_{\mathrm{tot}}$
12218 because a cell is always a bit larger than specified.
12220 \begin_inset space ~
12224 \begin_inset CommandInset ref
12226 reference "cha:Explanation-of-Equation"
12230 explains this in detail.
12233 \begin_layout Standard
12235 \begin_inset Formula $W_{g\, n}$
12238 which the user needs to set when
12242 columns are spanned can be calculated, so that each column has a total
12244 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
12248 \begin_inset Formula
12250 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12258 \begin_layout Standard
12259 In our case we have
12260 \begin_inset Formula $n=2$
12264 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12267 cm and the default values for the lengths, so that equation
12268 \begin_inset CommandInset ref
12275 \begin_inset Formula
12277 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12285 \begin_layout Standard
12286 To enable calculations in LaTeX, the LaTeX-package
12290 must be loaded with the document preamble line
12291 \begin_inset Index idx
12294 \begin_layout Plain Layout
12295 LaTeX-packages ! calc
12303 \begin_layout Standard
12311 \begin_layout Standard
12312 LyX does not allow you to calculate lengths in the
12316 field of the table dialog.
12317 Therefore you have to format the column by inserting a LaTeX-argument in
12319 Here is an overview about the arguments:
12322 \begin_layout Itemize
12327 creates cell with a fixed width, its text is vertically top-aligned
12330 \begin_layout Itemize
12335 creates cell with a fixed width, its text is vertically centered
12338 \begin_layout Itemize
12343 creates cell with a fixed width, its text is vertically bottom-aligned
12346 \begin_layout Standard
12347 By entering a LaTeX-argument, all cell settings set in the table dialog
12351 \begin_layout Standard
12352 \begin_inset Note Greyedout
12355 \begin_layout Plain Layout
12360 Due to a bug, LyX shows the overwritten settings anyway.
12368 \begin_layout Standard
12369 As the text should be horizontally centered, the command
12376 You can now enter the following LaTeX-argument for the first spanned column:
12379 \begin_layout Standard
12384 centering}m{1.25cm-6.2pt}
12387 \begin_layout Standard
12392 means, that the commands inside the braces are applied before the cell
12396 \begin_layout Standard
12397 Although we have chosen centered alignment for the text of the multicolumn
12398 cell, it is still left aligned.
12399 This is because LyX only applies the alignment to single columns.
12400 So for the multicolumn cell we have to use the LaTeX-argument
12403 \begin_layout Standard
12411 \begin_layout Subsection
12413 \begin_inset CommandInset label
12415 name "sub:Multirows"
12420 \begin_inset Index idx
12423 \begin_layout Plain Layout
12430 \begin_inset Index idx
12433 \begin_layout Plain Layout
12442 \begin_layout Standard
12443 To merge cells over multiple rows, select as many cells within a column
12444 as you want to merge and use either the table-toolbar button
12445 \begin_inset Graphics
12446 filename ../images/tabular-feature_multirow.png
12448 scaleBeforeRotation
12454 Edit\SpecialChar \menuseparator
12455 Table\SpecialChar \menuseparator
12458 , or right click on the marked cells and choose
12462 in the context menu.
12465 \begin_layout Standard
12466 Here is an example table with a multirow in the first column:
12469 \begin_layout Standard
12471 \begin_inset Tabular
12472 <lyxtabular version="3" rows="3" columns="3">
12473 <features tabularvalignment="middle">
12474 <column alignment="center" valignment="top" width="0pt">
12475 <column alignment="center" valignment="top" width="0">
12476 <column alignment="center" valignment="top" width="0">
12478 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12481 \begin_layout Plain Layout
12487 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12490 \begin_layout Plain Layout
12496 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12499 \begin_layout Plain Layout
12507 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12510 \begin_layout Plain Layout
12516 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12519 \begin_layout Plain Layout
12525 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12528 \begin_layout Plain Layout
12536 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12539 \begin_layout Plain Layout
12545 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12548 \begin_layout Plain Layout
12554 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12557 \begin_layout Plain Layout
12571 \begin_layout Standard
12572 The width of multirow cells is set by setting the width and alignment for
12578 shifts the content of the multirow up/down if the offset is positive/negative.
12581 \begin_layout Standard
12582 If the column of a multirow cell has no explicit width, the multirow cell
12583 inherits the alignment of the column.
12584 Otherwise it is by default left-aligned.
12585 To override the default, renew the command
12594 \begin_layout Standard
12606 \begin_layout Standard
12607 in the document preamble.
12608 Then all entries of multirow cells in the document are centered.
12609 If centering is only needed for several tables, you can renew the command
12610 in a TeX-Code box just before the table instead of the preamble.
12611 If the text should be right-aligned, replace
12624 To return to left-alignment
12633 \begin_layout Standard
12634 This is an example table with a right-aligned multirow cell that has a vertical
12636 \begin_inset space \thinspace{}
12640 \begin_inset space \thinspace{}
12646 \begin_layout Standard
12652 \begin_layout Plain Layout
12666 \begin_inset Tabular
12667 <lyxtabular version="3" rows="4" columns="3">
12668 <features tabularvalignment="middle">
12669 <column alignment="center" valignment="top" width="3cm">
12670 <column alignment="center" valignment="top" width="0">
12671 <column alignment="center" valignment="top" width="0">
12673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12676 \begin_layout Plain Layout
12682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12685 \begin_layout Plain Layout
12691 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12694 \begin_layout Plain Layout
12702 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12705 \begin_layout Plain Layout
12711 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12714 \begin_layout Plain Layout
12720 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12723 \begin_layout Plain Layout
12731 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12734 \begin_layout Plain Layout
12740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12743 \begin_layout Plain Layout
12749 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12752 \begin_layout Plain Layout
12760 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12763 \begin_layout Plain Layout
12769 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12772 \begin_layout Plain Layout
12778 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12781 \begin_layout Plain Layout
12796 \begin_layout Plain Layout
12812 \begin_layout Section
12814 \begin_inset CommandInset label
12816 name "sec:Formal-Tables"
12821 \begin_inset Index idx
12824 \begin_layout Plain Layout
12833 \begin_layout Standard
12834 Tables are often typeset in books similar to Table
12835 \begin_inset space ~
12839 \begin_inset CommandInset ref
12841 reference "tab:Example-booktabs-table"
12846 This kind of tables is called
12847 \begin_inset Quotes eld
12855 \begin_inset Quotes erd
12859 To make a table a formal table use the option
12867 tab of the table dialog.
12870 \begin_layout Standard
12871 \begin_inset Float table
12877 \begin_layout Plain Layout
12878 \begin_inset Caption
12880 \begin_layout Plain Layout
12881 \begin_inset CommandInset label
12883 name "tab:Example-booktabs-table"
12887 Example booktabs-table
12895 \begin_layout Plain Layout
12897 \begin_inset Tabular
12898 <lyxtabular version="3" rows="8" columns="4">
12899 <features booktabs="true" tabularvalignment="middle">
12900 <column alignment="center" valignment="top" width="0">
12901 <column alignment="center" valignment="top" width="0">
12902 <column alignment="center" valignment="top" width="0">
12903 <column alignment="center" valignment="top" width="0">
12905 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
12908 \begin_layout Plain Layout
12914 <cell alignment="center" valignment="top" topline="true" usebox="none">
12917 \begin_layout Plain Layout
12919 \begin_inset space \thinspace{}
12927 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
12930 \begin_layout Plain Layout
12932 \begin_inset space \thinspace{}
12940 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12943 \begin_layout Plain Layout
12951 <cell alignment="center" valignment="top" rightline="true" usebox="none">
12954 \begin_layout Plain Layout
12958 \begin_layout Plain Layout
12971 \begin_layout Plain Layout
12980 Detector thickness in µm
12985 <cell alignment="center" valignment="top" usebox="none">
12988 \begin_layout Plain Layout
12994 <cell alignment="center" valignment="top" usebox="none">
12997 \begin_layout Plain Layout
13003 <cell alignment="center" valignment="top" usebox="none">
13006 \begin_layout Plain Layout
13014 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13017 \begin_layout Plain Layout
13023 <cell alignment="center" valignment="top" topline="true" usebox="none">
13026 \begin_layout Plain Layout
13032 <cell alignment="center" valignment="top" topline="true" usebox="none">
13035 \begin_layout Plain Layout
13041 <cell alignment="center" valignment="top" topline="true" usebox="none">
13044 \begin_layout Plain Layout
13051 <row topspace="default">
13052 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13055 \begin_layout Plain Layout
13056 Spatial resolution in µm
13061 <cell alignment="center" valignment="top" usebox="none">
13064 \begin_layout Plain Layout
13070 <cell alignment="center" valignment="top" usebox="none">
13073 \begin_layout Plain Layout
13079 <cell alignment="center" valignment="top" usebox="none">
13082 \begin_layout Plain Layout
13089 <row topspace="default">
13090 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13093 \begin_layout Plain Layout
13095 \begin_inset Formula $f_{\mathrm{max}}$
13103 <cell alignment="center" valignment="top" usebox="none">
13106 \begin_layout Plain Layout
13112 <cell alignment="center" valignment="top" usebox="none">
13115 \begin_layout Plain Layout
13121 <cell alignment="center" valignment="top" usebox="none">
13124 \begin_layout Plain Layout
13131 <row topspace="default">
13132 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13135 \begin_layout Plain Layout
13139 \begin_layout Plain Layout
13143 cmidrule(l{10pt}){1-1}
13148 LSF-spatial resolution
13153 <cell alignment="center" valignment="top" usebox="none">
13156 \begin_layout Plain Layout
13162 <cell alignment="center" valignment="top" usebox="none">
13165 \begin_layout Plain Layout
13171 <cell alignment="center" valignment="top" usebox="none">
13174 \begin_layout Plain Layout
13182 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13185 \begin_layout Plain Layout
13191 <cell alignment="center" valignment="top" usebox="none">
13194 \begin_layout Plain Layout
13200 <cell alignment="center" valignment="top" usebox="none">
13203 \begin_layout Plain Layout
13209 <cell alignment="center" valignment="top" usebox="none">
13212 \begin_layout Plain Layout
13220 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
13223 \begin_layout Plain Layout
13229 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13232 \begin_layout Plain Layout
13238 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13241 \begin_layout Plain Layout
13247 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13250 \begin_layout Plain Layout
13269 \begin_layout Standard
13270 Spaces to table rows can be added using the
13274 tab of the table dialog as described in section
13275 \begin_inset space ~
13279 \begin_inset CommandInset ref
13281 reference "sub:Row-Spacing"
13288 \begin_layout Standard
13289 Unlike normal tables, formal tables have no vertical table lines.
13290 The horizontal table lines can be set as for normal tables but they appear
13291 with different widths in the output:
13292 \begin_inset Newline newline
13295 The first and the last table line have a default width of 0.08
13296 \begin_inset space \thinspace{}
13299 em while the other lines have a default width of 0.05
13300 \begin_inset space \thinspace{}
13306 \begin_layout Standard
13307 The default widths can be changed with the following preamble lines
13310 \begin_layout Standard
13320 \begin_inset Newline newline
13332 \begin_layout Standard
13333 This example is for the first line, the so called
13338 If you want to change the width for the last line, replace
13347 To change the width for the other lines replace
13356 You can use all units listed in appendix
13357 \begin_inset space ~
13361 \begin_inset CommandInset ref
13363 reference "cha:Units-available-in"
13370 \begin_layout Standard
13371 Lines that do not span all table columns can be created by setting a table
13372 line for multicolumn cells.
13373 LyX will then internally use the command
13379 to create this line.
13383 \begin_layout Standard
13388 cmidrule[width](trim){startcol-endcol}
13391 \begin_layout Standard
13398 are currently not supported by LyX so you have to use TeX-Code to be able
13406 s can manually be created by inserting the command as TeX-Code as the first
13407 cell entry of the first cell of a row.
13408 The line is then drawn in the output above the current row.
13411 \begin_layout Standard
13412 The default for the width is 0.03
13413 \begin_inset space \thinspace{}
13417 Startcol is the number of the column where the line starts and endcol the
13418 column number where the line ends.
13419 The endcol always needs to be specified, also when the line should span
13421 The optional parameter trim could be either
13429 where the trimwidth is also optional.
13430 Using for example the parameter
13434 means that the line is trimmed from its left end by 2
13435 \begin_inset space \thinspace{}
13439 If you don't specify the trimwidth the lines are trimmed by the default
13441 \begin_inset space \thinspace{}
13447 \begin_layout Standard
13448 \begin_inset VSpace bigskip
13452 \begin_inset space ~
13456 \begin_inset CommandInset ref
13458 reference "tab:Example-booktabs-table"
13462 was created using the commands
13465 \begin_layout Standard
13475 \begin_layout Standard
13476 at the beginning of the second row and
13479 \begin_layout Standard
13484 cmidrule(l{10pt}){1-1}
13487 \begin_layout Standard
13491 \begin_layout Standard
13492 \begin_inset VSpace bigskip
13498 \begin_layout Standard
13499 You might want to have overlapping
13506 \begin_inset space ~
13510 \begin_inset CommandInset ref
13512 reference "tab:Special-booktabs-table"
13517 This can be achieved with the TeX-Code command
13520 \begin_layout Standard
13528 \begin_layout Standard
13529 The command that was used for the second row of Table
13530 \begin_inset space ~
13534 \begin_inset CommandInset ref
13536 reference "tab:Special-booktabs-table"
13543 \begin_layout Standard
13557 \begin_layout Standard
13558 The command for the sixth row is
13561 \begin_layout Standard
13573 \begin_layout Standard
13574 \begin_inset VSpace bigskip
13580 \begin_layout Standard
13581 If you are anyway not satisfied with the border line spacing, you can use
13582 the following command to produce lines that span over all table columns
13587 \begin_layout Standard
13592 specialrule{width}{space above}{space below}
13595 \begin_layout Standard
13596 For more information about these features, refer to the manual of the LaTeX-pack
13602 \begin_inset CommandInset citation
13609 \begin_inset Index idx
13612 \begin_layout Plain Layout
13613 LaTeX-packages ! booktabs
13621 \begin_layout Standard
13622 \begin_inset Float table
13628 \begin_layout Plain Layout
13629 \begin_inset Caption
13631 \begin_layout Plain Layout
13632 \begin_inset CommandInset label
13634 name "tab:Special-booktabs-table"
13638 Special booktabs-table
13646 \begin_layout Plain Layout
13648 \begin_inset Tabular
13649 <lyxtabular version="3" rows="8" columns="4">
13650 <features booktabs="true" tabularvalignment="middle">
13651 <column alignment="center" valignment="top" width="0">
13652 <column alignment="center" valignment="top" width="0">
13653 <column alignment="center" valignment="top" width="0">
13654 <column alignment="center" valignment="top" width="0">
13656 <cell alignment="center" valignment="top" topline="true" usebox="none">
13659 \begin_layout Plain Layout
13665 <cell alignment="center" valignment="top" topline="true" usebox="none">
13668 \begin_layout Plain Layout
13670 \begin_inset space \thinspace{}
13678 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
13681 \begin_layout Plain Layout
13683 \begin_inset space \thinspace{}
13691 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13694 \begin_layout Plain Layout
13702 <cell alignment="center" valignment="top" usebox="none">
13705 \begin_layout Plain Layout
13709 \begin_layout Plain Layout
13722 \begin_layout Plain Layout
13735 \begin_layout Plain Layout
13748 \begin_layout Plain Layout
13757 Detector thickness in µm
13762 <cell alignment="center" valignment="top" usebox="none">
13765 \begin_layout Plain Layout
13771 <cell alignment="center" valignment="top" usebox="none">
13774 \begin_layout Plain Layout
13780 <cell alignment="center" valignment="top" usebox="none">
13783 \begin_layout Plain Layout
13791 <cell alignment="center" valignment="top" topline="true" usebox="none">
13794 \begin_layout Plain Layout
13800 <cell alignment="center" valignment="top" topline="true" usebox="none">
13803 \begin_layout Plain Layout
13809 <cell alignment="center" valignment="top" topline="true" usebox="none">
13812 \begin_layout Plain Layout
13818 <cell alignment="center" valignment="top" topline="true" usebox="none">
13821 \begin_layout Plain Layout
13828 <row topspace="default">
13829 <cell alignment="center" valignment="top" usebox="none">
13832 \begin_layout Plain Layout
13833 Spatial resolution in µm
13838 <cell alignment="center" valignment="top" usebox="none">
13841 \begin_layout Plain Layout
13847 <cell alignment="center" valignment="top" usebox="none">
13850 \begin_layout Plain Layout
13856 <cell alignment="center" valignment="top" usebox="none">
13859 \begin_layout Plain Layout
13866 <row topspace="default">
13867 <cell alignment="center" valignment="top" usebox="none">
13870 \begin_layout Plain Layout
13872 \begin_inset Formula $f_{\mathrm{max}}$
13880 <cell alignment="center" valignment="top" usebox="none">
13883 \begin_layout Plain Layout
13889 <cell alignment="center" valignment="top" usebox="none">
13892 \begin_layout Plain Layout
13898 <cell alignment="center" valignment="top" usebox="none">
13901 \begin_layout Plain Layout
13909 <cell alignment="center" valignment="top" topline="true" usebox="none">
13912 \begin_layout Plain Layout
13916 \begin_layout Plain Layout
13929 \begin_layout Plain Layout
13938 LSF-spatial resolution
13943 <cell alignment="center" valignment="top" topline="true" usebox="none">
13946 \begin_layout Plain Layout
13952 <cell alignment="center" valignment="top" topline="true" usebox="none">
13955 \begin_layout Plain Layout
13961 <cell alignment="center" valignment="top" topline="true" usebox="none">
13964 \begin_layout Plain Layout
13972 <cell alignment="center" valignment="top" usebox="none">
13975 \begin_layout Plain Layout
13981 <cell alignment="center" valignment="top" usebox="none">
13984 \begin_layout Plain Layout
13990 <cell alignment="center" valignment="top" usebox="none">
13993 \begin_layout Plain Layout
13999 <cell alignment="center" valignment="top" usebox="none">
14002 \begin_layout Plain Layout
14010 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14013 \begin_layout Plain Layout
14019 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14022 \begin_layout Plain Layout
14028 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14031 \begin_layout Plain Layout
14037 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14040 \begin_layout Plain Layout
14059 \begin_layout Section
14060 Vertical Table Alignment
14061 \begin_inset Index idx
14064 \begin_layout Plain Layout
14073 \begin_layout Standard
14074 To align tables vertically in a text line the table must be inside a box.
14075 The box can then be vertically aligned as described in section
14076 \begin_inset space ~
14080 \begin_inset CommandInset ref
14082 reference "sec:Box-Dialog"
14089 \begin_layout Standard
14090 In the following example the tables are inside a minipage
14094 \begin_layout Plain Layout
14095 Minipages are described in section
14096 \begin_inset space ~
14100 \begin_inset CommandInset ref
14102 reference "sec:Minipages"
14111 box that has a width of 15
14112 \begin_inset space \thinspace{}
14118 \begin_layout Itemize
14120 \begin_inset Box Frameless
14130 height_special "totalheight"
14133 \begin_layout Plain Layout
14134 \begin_inset Tabular
14135 <lyxtabular version="3" rows="3" columns="3">
14136 <features tabularvalignment="middle">
14137 <column alignment="center" valignment="top" width="0">
14138 <column alignment="center" valignment="top" width="0">
14139 <column alignment="center" valignment="top" width="0">
14141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14144 \begin_layout Plain Layout
14150 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14153 \begin_layout Plain Layout
14159 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14162 \begin_layout Plain Layout
14170 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14173 \begin_layout Plain Layout
14179 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14182 \begin_layout Plain Layout
14188 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14191 \begin_layout Plain Layout
14199 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14202 \begin_layout Plain Layout
14208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14211 \begin_layout Plain Layout
14217 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14220 \begin_layout Plain Layout
14240 \begin_layout Plain Layout
14252 \begin_inset Box Frameless
14262 height_special "totalheight"
14265 \begin_layout Plain Layout
14266 \begin_inset Tabular
14267 <lyxtabular version="3" rows="3" columns="3">
14268 <features tabularvalignment="middle">
14269 <column alignment="center" valignment="top" width="0">
14270 <column alignment="center" valignment="top" width="0">
14271 <column alignment="center" valignment="top" width="0">
14273 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14276 \begin_layout Plain Layout
14282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14285 \begin_layout Plain Layout
14291 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14294 \begin_layout Plain Layout
14302 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14305 \begin_layout Plain Layout
14311 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14314 \begin_layout Plain Layout
14320 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14323 \begin_layout Plain Layout
14331 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14334 \begin_layout Plain Layout
14340 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14343 \begin_layout Plain Layout
14349 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14352 \begin_layout Plain Layout
14372 \begin_layout Plain Layout
14382 \begin_layout Itemize
14384 \begin_inset Box Frameless
14394 height_special "totalheight"
14397 \begin_layout Plain Layout
14398 \begin_inset Tabular
14399 <lyxtabular version="3" rows="3" columns="3">
14400 <features tabularvalignment="middle">
14401 <column alignment="center" valignment="top" width="0">
14402 <column alignment="center" valignment="top" width="0">
14403 <column alignment="center" valignment="top" width="0">
14405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14408 \begin_layout Plain Layout
14414 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14417 \begin_layout Plain Layout
14423 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14426 \begin_layout Plain Layout
14434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14437 \begin_layout Plain Layout
14443 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14446 \begin_layout Plain Layout
14452 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14455 \begin_layout Plain Layout
14463 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14466 \begin_layout Plain Layout
14472 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14475 \begin_layout Plain Layout
14481 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14484 \begin_layout Plain Layout
14503 \begin_layout Itemize
14505 \begin_inset Box Frameless
14515 height_special "totalheight"
14518 \begin_layout Plain Layout
14519 \begin_inset Tabular
14520 <lyxtabular version="3" rows="3" columns="3">
14521 <features tabularvalignment="middle">
14522 <column alignment="center" valignment="top" width="0">
14523 <column alignment="center" valignment="top" width="0">
14524 <column alignment="center" valignment="top" width="0">
14526 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14529 \begin_layout Plain Layout
14535 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14538 \begin_layout Plain Layout
14544 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14547 \begin_layout Plain Layout
14555 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14558 \begin_layout Plain Layout
14564 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14567 \begin_layout Plain Layout
14573 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14576 \begin_layout Plain Layout
14584 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14587 \begin_layout Plain Layout
14593 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14596 \begin_layout Plain Layout
14602 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14605 \begin_layout Plain Layout
14625 \begin_layout Plain Layout
14637 \begin_inset Box Frameless
14647 height_special "totalheight"
14650 \begin_layout Plain Layout
14651 \begin_inset Tabular
14652 <lyxtabular version="3" rows="3" columns="3">
14653 <features tabularvalignment="middle">
14654 <column alignment="center" valignment="top" width="0">
14655 <column alignment="center" valignment="top" width="0">
14656 <column alignment="center" valignment="top" width="0">
14658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14661 \begin_layout Plain Layout
14667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14670 \begin_layout Plain Layout
14676 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14679 \begin_layout Plain Layout
14687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14690 \begin_layout Plain Layout
14696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14699 \begin_layout Plain Layout
14705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14708 \begin_layout Plain Layout
14716 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14719 \begin_layout Plain Layout
14725 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14728 \begin_layout Plain Layout
14734 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14737 \begin_layout Plain Layout
14757 \begin_layout Plain Layout
14767 \begin_layout Standard
14768 As you will see, the content of the first and last table row is not correctly
14770 To get this alignment, the minipage box must be set into a raisebox
14774 \begin_layout Plain Layout
14775 Raiseboxes are described in section
14776 \begin_inset space ~
14780 \begin_inset CommandInset ref
14782 reference "sub:Vertical-Alignment"
14792 In the example above the second table in the first item is aligned using
14793 the TeX-Code-command
14796 \begin_layout Standard
14806 \begin_layout Standard
14808 After the box the closing brace
14812 is inserted as TeX-Code.
14813 For the second table in the last item the command
14816 \begin_layout Standard
14826 \begin_layout Standard
14830 \begin_layout Standard
14831 \begin_inset Note Greyedout
14834 \begin_layout Plain Layout
14839 The alignment of the table row content to the surrounding text line is
14841 The required value for the
14847 command for this alignment depends on the document font, the font size,
14848 and the table line thickness.
14856 \begin_layout Section
14858 \begin_inset CommandInset label
14860 name "sec:Colored-Tables"
14865 \begin_inset Index idx
14868 \begin_layout Plain Layout
14877 \begin_layout Subsection
14879 \begin_inset Index idx
14882 \begin_layout Plain Layout
14883 Table Color ! for Cells
14889 \begin_inset Index idx
14892 \begin_layout Plain Layout
14893 Color ! for Table Cells
14901 \begin_layout Standard
14902 \begin_inset Float table
14908 \begin_layout Plain Layout
14909 \begin_inset Caption
14911 \begin_layout Plain Layout
14912 \begin_inset CommandInset label
14914 name "tab:Table-colored-without"
14918 Table colored without using the package
14923 \begin_inset Argument
14926 \begin_layout Plain Layout
14927 Table without colortbl
14940 \begin_layout Plain Layout
14942 \begin_inset Tabular
14943 <lyxtabular version="3" rows="3" columns="3">
14944 <features tabularvalignment="middle">
14945 <column alignment="center" valignment="top" width="0">
14946 <column alignment="center" valignment="top" width="0">
14947 <column alignment="center" valignment="top" width="0">
14949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14952 \begin_layout Plain Layout
14960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14963 \begin_layout Plain Layout
14971 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14974 \begin_layout Plain Layout
14984 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14987 \begin_layout Plain Layout
14995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14998 \begin_layout Plain Layout
15006 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15009 \begin_layout Plain Layout
15019 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15022 \begin_layout Plain Layout
15030 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15033 \begin_layout Plain Layout
15041 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15044 \begin_layout Plain Layout
15065 \begin_layout Standard
15066 If you only need colored text, mark the cells and choose a color in the
15069 Edit\SpecialChar \menuseparator
15071 \begin_inset space ~
15077 This was used to create Table
15078 \begin_inset space ~
15082 \begin_inset CommandInset ref
15084 reference "tab:Table-colored-without"
15089 In any other case you have to use the LaTeX-package
15094 \begin_inset Index idx
15097 \begin_layout Plain Layout
15098 LaTeX-packages ! colortbl
15106 \begin_layout Standard
15110 \begin_layout Plain Layout
15120 \begin_inset Note Note
15123 \begin_layout Plain Layout
15124 The following section part will only be displayed when the LaTeX-package
15137 \begin_layout Standard
15138 To create colored tables,
15142 must be loaded in the preamble with the line
15145 \begin_layout Standard
15150 usepackage{colortbl}
15153 \begin_layout Standard
15154 The color of a column is adjusted with the command
15157 \begin_layout Standard
15162 columncolor{name of color}
15165 \begin_layout Standard
15171 More about the command
15175 is contained in section
15176 \begin_inset space ~
15180 \begin_inset CommandInset ref
15182 reference "sub:Multicolumn-Calculations"
15189 \begin_layout Standard
15190 The following color names are predefined:
15193 \begin_layout Standard
15227 \begin_layout Standard
15228 \begin_inset VSpace medskip
15234 \begin_layout Standard
15235 You can also define your own color with the command
15238 \begin_layout Standard
15243 definecolor{color name}{color model}{color values}
15246 \begin_layout Standard
15247 The color model can be
15250 \begin_layout Labeling
15251 \labelwidthstring 00.00.0000
15252 cmyk: cyan, magenta, yellow, black
15255 \begin_layout Labeling
15256 \labelwidthstring 00.00.0000
15257 rgb: red, green blue
15260 \begin_layout Labeling
15261 \labelwidthstring 00.00.0000
15265 \begin_layout Standard
15266 and the color values are comma separated numbers between 0 and 1 describing
15267 the factor for the corresponding color of the color model.
15270 \begin_layout Standard
15272 \begin_inset space \thinspace{}
15276 \begin_inset space \space{}
15283 " in the preamble with
15286 \begin_layout Standard
15291 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
15294 \begin_layout Standard
15302 \begin_layout Standard
15307 definecolor{lightgray}{gray}{0.8}
15310 \begin_layout Standard
15311 \begin_inset VSpace medskip
15317 \begin_layout Standard
15318 Lines are colored with the command
15321 \begin_layout Standard
15326 rowcolor{name of color}
15329 \begin_layout Standard
15330 and cells are colored with the command
15333 \begin_layout Standard
15338 cellcolor{name of color}
15341 \begin_layout Standard
15342 Both commands are inserted at the beginning of a cell as TeX-Code.
15345 \begin_layout Standard
15346 To color characters in the table, mark the cells and use the LyX menu
15348 Edit\SpecialChar \menuseparator
15350 \begin_inset space ~
15356 If a cell contains TeX-Code mark only the characters, otherwise the colored
15357 TeX-Code will cause LaTeX-errors.
15360 \begin_layout Standard
15361 \begin_inset Note Greyedout
15364 \begin_layout Plain Layout
15369 Not all DVI-viewers are able to display self-defined colors.
15377 \begin_layout Standard
15378 \begin_inset VSpace bigskip
15384 \begin_layout Standard
15386 \begin_inset space ~
15390 \begin_inset CommandInset ref
15392 reference "tab:Table-colored-using"
15396 do the following: The color of the first column should be
15404 \begin_layout Standard
15409 columncolor{darkgreen}
15414 \begin_layout Standard
15415 as LaTeX-argument for this column.
15416 The first row should be blue, therefore the TeX-Code command
15419 \begin_layout Standard
15427 \begin_layout Standard
15428 is inserted to the first cell of this row.
15429 Note that this overwrites the column color for the first cell.
15430 The last cell of the last row is colored magenta by inserting the TeX-Code
15434 \begin_layout Standard
15442 \begin_layout Standard
15443 The characters could now be colored using the menu
15445 Edit\SpecialChar \menuseparator
15447 \begin_inset space ~
15455 \begin_layout Standard
15456 \begin_inset Float table
15462 \begin_layout Plain Layout
15463 \begin_inset Caption
15465 \begin_layout Plain Layout
15466 \begin_inset CommandInset label
15468 name "tab:Table-colored-using"
15472 Table colored using the package
15477 \begin_inset Argument
15480 \begin_layout Plain Layout
15481 Table with colortbl
15494 \begin_layout Plain Layout
15496 \begin_inset Tabular
15497 <lyxtabular version="3" rows="3" columns="3">
15498 <features tabularvalignment="middle">
15499 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15500 <column alignment="center" valignment="top" width="0">
15501 <column alignment="center" valignment="top" width="0">
15503 <cell alignment="center" valignment="top" usebox="none">
15506 \begin_layout Plain Layout
15510 \begin_layout Plain Layout
15526 <cell alignment="center" valignment="top" usebox="none">
15529 \begin_layout Plain Layout
15537 <cell alignment="center" valignment="top" usebox="none">
15540 \begin_layout Plain Layout
15550 <cell alignment="center" valignment="top" usebox="none">
15553 \begin_layout Plain Layout
15561 <cell alignment="center" valignment="top" usebox="none">
15564 \begin_layout Plain Layout
15572 <cell alignment="center" valignment="top" usebox="none">
15575 \begin_layout Plain Layout
15585 <cell alignment="center" valignment="top" usebox="none">
15588 \begin_layout Plain Layout
15596 <cell alignment="center" valignment="top" usebox="none">
15599 \begin_layout Plain Layout
15607 <cell alignment="center" valignment="top" usebox="none">
15610 \begin_layout Plain Layout
15614 \begin_layout Plain Layout
15643 \begin_layout Standard
15647 \begin_layout Plain Layout
15657 \begin_inset Note Note
15660 \begin_layout Plain Layout
15661 The following will be displayed when the LaTeX-package
15673 \begin_layout Standard
15674 You need to install the package
15678 to see the content of this section in the output.
15681 \begin_layout Standard
15685 \begin_layout Plain Layout
15697 \begin_layout Subsection
15699 \begin_inset Index idx
15702 \begin_layout Plain Layout
15703 Table Color ! for Lines
15709 \begin_inset Index idx
15712 \begin_layout Plain Layout
15713 Color ! for Table Lines
15721 \begin_layout Standard
15722 As described in section
15723 \begin_inset space ~
15727 \begin_inset CommandInset ref
15729 reference "sub:Line-Thickness"
15733 , the line thickness for all lines in a table can be adjusted with the length
15742 \begin_inset space \thinspace{}
15745 pt for all tables of this section.
15749 \begin_layout Plain Layout
15755 arrayrulewidth}{1.5pt}
15763 \begin_layout Standard
15764 To color vertical lines for example with green, create the following column
15765 format in the document preamble, according to the description in section
15766 \begin_inset space ~
15770 \begin_inset CommandInset ref
15772 reference "sub:Customized-Format"
15779 \begin_layout Standard
15784 newcolumntype{W}{!{
15791 \begin_layout Standard
15793 \begin_inset space ~
15797 \begin_inset CommandInset ref
15799 reference "tab:Table-with-vertical-colored"
15807 was used for the last column and
15811 for the other columns.
15814 \begin_layout Standard
15815 If you want to have several colors, define more column formats.
15818 \begin_layout Standard
15819 \begin_inset Float table
15825 \begin_layout Plain Layout
15826 \begin_inset Caption
15828 \begin_layout Plain Layout
15829 \begin_inset CommandInset label
15831 name "tab:Table-with-vertical-colored"
15835 Table with colored vertical lines
15843 \begin_layout Plain Layout
15845 \begin_inset Tabular
15846 <lyxtabular version="3" rows="3" columns="3">
15847 <features tabularvalignment="middle">
15848 <column alignment="center" valignment="top" width="0" special="Wc">
15849 <column alignment="center" valignment="top" width="0" special="Wc">
15850 <column alignment="center" valignment="top" width="0" special="WcW">
15852 <cell alignment="center" valignment="top" topline="true" usebox="none">
15855 \begin_layout Plain Layout
15861 <cell alignment="center" valignment="top" topline="true" usebox="none">
15864 \begin_layout Plain Layout
15870 <cell alignment="center" valignment="top" topline="true" usebox="none">
15873 \begin_layout Plain Layout
15881 <cell alignment="center" valignment="top" topline="true" usebox="none">
15884 \begin_layout Plain Layout
15890 <cell alignment="center" valignment="top" topline="true" usebox="none">
15893 \begin_layout Plain Layout
15899 <cell alignment="center" valignment="top" topline="true" usebox="none">
15902 \begin_layout Plain Layout
15910 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15913 \begin_layout Plain Layout
15919 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15922 \begin_layout Plain Layout
15928 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
15931 \begin_layout Plain Layout
15950 \begin_layout Standard
15951 \begin_inset VSpace bigskip
15954 To color horizontal lines for example with red, as in Table
15955 \begin_inset space ~
15959 \begin_inset CommandInset ref
15961 reference "tab:Table-with-horizontal-colored"
15965 , insert these commands in TeX-Code before the table or table float:
15968 \begin_layout Standard
15978 \begin_inset Newline newline
15986 \begin_inset Newline newline
15990 \begin_inset Phantom HPhantom
15993 \begin_layout Plain Layout
15996 \begin_inset space ~
16006 arrayrulecolor{red}
16010 arrayrulecolor{black}}
16013 \begin_layout Standard
16017 \begin_layout Plain Layout
16028 \begin_layout Plain Layout
16037 \begin_layout Plain Layout
16041 arrayrulecolor{red}
16045 arrayrulecolor{black}}
16051 \begin_inset Float table
16057 \begin_layout Plain Layout
16058 \begin_inset Caption
16060 \begin_layout Plain Layout
16061 \begin_inset CommandInset label
16063 name "tab:Table-with-horizontal-colored"
16067 Table with colored horizontal lines
16075 \begin_layout Plain Layout
16077 \begin_inset Tabular
16078 <lyxtabular version="3" rows="3" columns="3">
16079 <features tabularvalignment="middle">
16080 <column alignment="center" valignment="top" width="0">
16081 <column alignment="center" valignment="top" width="0">
16082 <column alignment="center" valignment="top" width="0">
16084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16087 \begin_layout Plain Layout
16093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16096 \begin_layout Plain Layout
16102 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16105 \begin_layout Plain Layout
16113 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16116 \begin_layout Plain Layout
16122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16125 \begin_layout Plain Layout
16131 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16134 \begin_layout Plain Layout
16142 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16145 \begin_layout Plain Layout
16151 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16154 \begin_layout Plain Layout
16160 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16163 \begin_layout Plain Layout
16182 \begin_layout Standard
16183 To return to the default line color black, insert this command in TeX-Code
16184 after the table or table float:
16187 \begin_layout Standard
16199 \begin_layout Standard
16201 \begin_inset space ~
16205 \begin_inset CommandInset ref
16207 reference "tab:Table-with-colored"
16211 is an example with colored vertical and horizontal lines.
16214 \begin_layout Standard
16215 \begin_inset Float table
16221 \begin_layout Plain Layout
16222 \begin_inset Caption
16224 \begin_layout Plain Layout
16225 \begin_inset CommandInset label
16227 name "tab:Table-with-colored"
16231 Table with colored lines
16239 \begin_layout Plain Layout
16241 \begin_inset Tabular
16242 <lyxtabular version="3" rows="3" columns="3">
16243 <features tabularvalignment="middle">
16244 <column alignment="center" valignment="top" width="0" special="Wc">
16245 <column alignment="center" valignment="top" width="0" special="Wc">
16246 <column alignment="center" valignment="top" width="0" special="WcW">
16248 <cell alignment="center" valignment="top" topline="true" usebox="none">
16251 \begin_layout Plain Layout
16257 <cell alignment="center" valignment="top" topline="true" usebox="none">
16260 \begin_layout Plain Layout
16266 <cell alignment="center" valignment="top" topline="true" usebox="none">
16269 \begin_layout Plain Layout
16277 <cell alignment="center" valignment="top" topline="true" usebox="none">
16280 \begin_layout Plain Layout
16286 <cell alignment="center" valignment="top" topline="true" usebox="none">
16289 \begin_layout Plain Layout
16295 <cell alignment="center" valignment="top" topline="true" usebox="none">
16298 \begin_layout Plain Layout
16305 <row topspace="default">
16306 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16309 \begin_layout Plain Layout
16315 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16318 \begin_layout Plain Layout
16324 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16327 \begin_layout Plain Layout
16346 \begin_layout Standard
16350 \begin_layout Plain Layout
16366 \begin_layout Standard
16370 \begin_layout Plain Layout
16376 arrayrulewidth}{0.4pt}
16384 \begin_layout Section
16385 Table Customization
16386 \begin_inset Index idx
16389 \begin_layout Plain Layout
16390 Table Customization
16396 \begin_inset Index idx
16399 \begin_layout Plain Layout
16400 Table ! Customization
16408 \begin_layout Subsection
16410 \begin_inset CommandInset label
16412 name "sub:Row-Spacing"
16417 \begin_inset Index idx
16420 \begin_layout Plain Layout
16421 Table Customization ! Row Spacing
16429 \begin_layout Standard
16430 You can add vertical space to table rows in the
16434 tab of the table dialog.
16435 You find there three possibilities:
16438 \begin_layout Description
16440 \begin_inset space ~
16444 \begin_inset space ~
16447 row will add space above the characters of the table row.
16448 If the table is a formal table
16452 \begin_layout Plain Layout
16453 Formal tables are explained in section
16454 \begin_inset space ~
16458 \begin_inset CommandInset ref
16460 reference "sec:Formal-Tables"
16469 LyX will insert as default 0.5
16470 \begin_inset space \thinspace{}
16474 For normal tables the inserted space will unfortunately destroy the vertical
16475 table lines as in the following table:
16476 \begin_inset VSpace medskip
16480 \begin_inset Newline newline
16484 \begin_inset space \hspace*{}
16489 \begin_inset space \hfill{}
16493 \begin_inset Tabular
16494 <lyxtabular version="3" rows="3" columns="1">
16495 <features tabularvalignment="middle">
16496 <column alignment="center" valignment="top" width="0">
16498 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16501 \begin_layout Plain Layout
16508 <row topspace="3mm">
16509 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16512 \begin_layout Plain Layout
16514 \begin_inset space \thinspace{}
16517 mm space top of row
16524 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16527 \begin_layout Plain Layout
16539 \begin_inset space \hfill{}
16543 \begin_inset space \hspace*{}
16548 \begin_inset VSpace medskip
16552 \begin_inset Newline newline
16555 So inserting space in the top of row for normal tables is only useful when
16556 you don't have vertical lines.
16559 \begin_layout Description
16561 \begin_inset space ~
16565 \begin_inset space ~
16568 row will add space below the characters of the table row.
16569 If the table is a formal table LyX will insert as default 0.5
16570 \begin_inset space \thinspace{}
16573 em space, for normal tables the default size is 2
16574 \begin_inset space \thinspace{}
16580 \begin_layout Description
16582 \begin_inset space ~
16585 rows adds space between the current and the following row.
16586 If the table is a formal table LyX will insert as default 0.5
16587 \begin_inset space \thinspace{}
16591 For normal tables the inserted space will unfortunately destroy the vertical
16592 table lines as in the following table:
16593 \begin_inset VSpace medskip
16597 \begin_inset Newline newline
16601 \begin_inset space \hspace*{}
16606 \begin_inset space \hfill{}
16610 \begin_inset Tabular
16611 <lyxtabular version="3" rows="3" columns="1">
16612 <features tabularvalignment="middle">
16613 <column alignment="center" valignment="top" width="0">
16615 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16618 \begin_layout Plain Layout
16625 <row interlinespace="3mm">
16626 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16629 \begin_layout Plain Layout
16630 \begin_inset Formula $\downarrow$
16634 \begin_inset space \thinspace{}
16637 mm space between row
16638 \begin_inset Formula $\downarrow$
16648 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16651 \begin_layout Plain Layout
16652 \begin_inset Formula $\uparrow$
16656 \begin_inset space \thinspace{}
16659 mm space between row
16660 \begin_inset Formula $\uparrow$
16674 \begin_inset space \hfill{}
16678 \begin_inset space \hspace*{}
16683 \begin_inset VSpace medskip
16687 \begin_inset Newline newline
16690 So inserting space between rows for normal tables is only useful when you
16691 don't have vertical lines.
16694 \begin_layout Standard
16695 \begin_inset VSpace bigskip
16698 When you want to add extra height to all cells of all tables, you can do
16699 this with the following preamble lines:
16702 \begin_layout Standard
16707 @ifundefined{extrarowheight}
16708 \begin_inset Newline newline
16712 \begin_inset Phantom HPhantom
16715 \begin_layout Plain Layout
16718 \begin_inset space ~
16728 usepackage{array}}{}
16729 \begin_inset Newline newline
16736 extrarowheight}{height}
16739 \begin_layout Standard
16740 But this has the disadvantage that the cell texts are no longer exactly
16741 vertically centered.
16746 will be loaded automatically by LyX when you use self defined table formats.
16747 To avoid that it being loaded twice the command
16753 is used in the above command.)
16756 \begin_layout Standard
16757 If you are using font sizes larger than the normal size, the table borders
16758 are often too close to the letters.
16759 This can be corrected by inserting the command
16765 in TeX code at the beginning of a table row.
16767 \begin_inset space ~
16771 \begin_inset CommandInset ref
16773 reference "tab:Vertical-alignment-of"
16777 illustrates the effect.
16780 \begin_layout Standard
16782 \begin_inset Float table
16788 \begin_layout Plain Layout
16789 \begin_inset Caption
16791 \begin_layout Plain Layout
16792 \begin_inset CommandInset label
16794 name "tab:Vertical-alignment-of"
16798 Vertical alignment of text with large font sizes.
16806 \begin_layout Plain Layout
16807 \begin_inset space \hfill{}
16811 \begin_inset Float table
16816 \begin_layout Plain Layout
16817 \begin_inset Caption
16819 \begin_layout Plain Layout
16828 \begin_layout Plain Layout
16831 \begin_inset Tabular
16832 <lyxtabular version="3" rows="6" columns="1">
16833 <features tabularvalignment="middle">
16834 <column alignment="left" valignment="top" width="0">
16836 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16839 \begin_layout Plain Layout
16847 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16850 \begin_layout Plain Layout
16860 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16863 \begin_layout Plain Layout
16873 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16876 \begin_layout Plain Layout
16886 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16889 \begin_layout Plain Layout
16899 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16902 \begin_layout Plain Layout
16921 \begin_inset space \hfill{}
16925 \begin_inset Float table
16930 \begin_layout Plain Layout
16931 \begin_inset Caption
16933 \begin_layout Plain Layout
16934 Table using the command
16948 \begin_layout Plain Layout
16951 \begin_inset Tabular
16952 <lyxtabular version="3" rows="6" columns="1">
16953 <features tabularvalignment="middle">
16954 <column alignment="left" valignment="top" width="0">
16956 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16959 \begin_layout Plain Layout
16967 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16970 \begin_layout Plain Layout
16976 \begin_layout Plain Layout
16992 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16995 \begin_layout Plain Layout
17001 \begin_layout Plain Layout
17017 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17020 \begin_layout Plain Layout
17026 \begin_layout Plain Layout
17042 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17045 \begin_layout Plain Layout
17051 \begin_layout Plain Layout
17067 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17070 \begin_layout Plain Layout
17076 \begin_layout Plain Layout
17103 \begin_inset space \hfill{}
17114 \begin_layout Subsection
17115 Special Cell Alignment
17116 \begin_inset CommandInset label
17118 name "sub:Special-Cell-Alignment"
17123 \begin_inset Index idx
17126 \begin_layout Plain Layout
17127 Table Customization ! Special Cell Alignment
17135 \begin_layout Standard
17136 Sometimes it looks better when the cell entries of a column are aligned
17137 with a special character, e.
17138 \begin_inset space \thinspace{}
17142 \begin_inset space \space{}
17145 with the decimal separator as in Table
17146 \begin_inset space ~
17150 \begin_inset CommandInset ref
17152 reference "tab:Table-cells-align"
17157 This alignment is achieved by setting the cursor into the column and then
17158 either pressing the toolbar button
17159 \begin_inset Graphics
17160 filename ../images/tabular-feature_align-decimal.png
17162 scaleBeforeRotation
17166 or setting the alignment in the table settings to
17169 \begin_inset space ~
17173 \begin_inset space ~
17179 The alignment character can be a character of your choice and is specified
17180 in the table settings.
17183 \begin_layout Standard
17184 \begin_inset Float table
17190 \begin_layout Plain Layout
17191 \begin_inset Caption
17193 \begin_layout Plain Layout
17194 \begin_inset CommandInset label
17196 name "tab:Table-cells-align"
17200 Table cells of a column aligned with the decimal separator.
17208 \begin_layout Plain Layout
17210 \begin_inset Tabular
17211 <lyxtabular version="3" rows="4" columns="1">
17212 <features booktabs="true" tabularvalignment="middle">
17213 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
17215 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17218 \begin_layout Plain Layout
17226 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17229 \begin_layout Plain Layout
17237 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17240 \begin_layout Plain Layout
17248 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17251 \begin_layout Plain Layout
17270 \begin_layout Standard
17271 \begin_inset Float table
17277 \begin_layout Plain Layout
17278 \begin_inset Caption
17280 \begin_layout Plain Layout
17281 \begin_inset CommandInset label
17283 name "tab:Table-align-operator"
17287 Table cells of a column aligned with the operators.
17295 \begin_layout Plain Layout
17297 \begin_inset Tabular
17298 <lyxtabular version="3" rows="4" columns="2">
17299 <features booktabs="true" tabularvalignment="middle">
17300 <column alignment="right" valignment="top" width="0pt">
17301 <column alignment="left" valignment="top" width="0pt" special="@{}l">
17303 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17306 \begin_layout Plain Layout
17312 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17315 \begin_layout Plain Layout
17323 <cell alignment="center" valignment="top" usebox="none">
17326 \begin_layout Plain Layout
17327 \begin_inset Formula $12\,+$
17335 <cell alignment="center" valignment="top" usebox="none">
17338 \begin_layout Plain Layout
17339 \begin_inset Formula $\,6$
17349 <cell alignment="center" valignment="top" usebox="none">
17352 \begin_layout Plain Layout
17353 \begin_inset Formula $0\,-$
17361 <cell alignment="center" valignment="top" usebox="none">
17364 \begin_layout Plain Layout
17365 \begin_inset Formula $\,68$
17375 <cell alignment="center" valignment="top" usebox="none">
17378 \begin_layout Plain Layout
17379 \begin_inset Formula $-123\,/$
17387 <cell alignment="center" valignment="top" usebox="none">
17390 \begin_layout Plain Layout
17391 \begin_inset Formula $\,0$
17412 \begin_layout Standard
17413 For alignments at characters in formulas this method does not work because
17414 the field to specify the alignment character does not allow formulas.
17415 In this case one need to use the method from Table
17416 \begin_inset space ~
17420 \begin_inset CommandInset ref
17422 reference "tab:Table-align-operator"
17427 This table was created with a 4×2 table.
17428 The heading is a centered multicolumn.
17429 The first column is right-aligned and contains the first part including
17431 The second column is left aligned and contains the rest.
17432 A small space was added at the beginning of each cell of the second column
17433 to get the space that is usually around operators.
17434 To omit the space that is normally between two table columns, the following
17435 LaTeX-argument was used for the second column:
17438 \begin_layout Standard
17444 \begin_layout Standard
17446 \begin_inset space ~
17450 \begin_inset CommandInset ref
17452 reference "tab:Several-table-cell"
17456 shows some example alignments.
17457 For the alignment with the relation sign, a small space was added like
17458 for the second column of Table
17459 \begin_inset space ~
17463 \begin_inset CommandInset ref
17465 reference "tab:Table-align-operator"
17472 \begin_layout Standard
17473 \begin_inset Float table
17479 \begin_layout Plain Layout
17480 \begin_inset Caption
17482 \begin_layout Plain Layout
17483 \begin_inset CommandInset label
17485 name "tab:Several-table-cell"
17489 Several table cell alignments.
17497 \begin_layout Plain Layout
17499 \begin_inset Tabular
17500 <lyxtabular version="3" rows="4" columns="6">
17501 <features tabularvalignment="middle">
17502 <column alignment="right" valignment="top" width="0">
17503 <column alignment="left" valignment="top" width="0" special="@{}l">
17504 <column alignment="right" valignment="top" width="0">
17505 <column alignment="left" valignment="top" width="0" special="@{}l">
17506 <column alignment="right" valignment="top" width="0">
17507 <column alignment="left" valignment="top" width="0" special="@{}l">
17509 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17512 \begin_layout Plain Layout
17518 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17521 \begin_layout Plain Layout
17527 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17530 \begin_layout Plain Layout
17536 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17539 \begin_layout Plain Layout
17545 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17548 \begin_layout Plain Layout
17554 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17557 \begin_layout Plain Layout
17565 <cell alignment="center" valignment="top" usebox="none">
17568 \begin_layout Plain Layout
17574 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17577 \begin_layout Plain Layout
17579 \begin_inset space \thinspace{}
17587 <cell alignment="center" valignment="top" usebox="none">
17590 \begin_layout Plain Layout
17591 \begin_inset Formula $10\cdot$
17599 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17602 \begin_layout Plain Layout
17603 \begin_inset Formula $10^{\mbox{-}17}$
17611 <cell alignment="center" valignment="top" usebox="none">
17614 \begin_layout Plain Layout
17615 \begin_inset Formula $\Gamma(t)\propto$
17623 <cell alignment="center" valignment="top" usebox="none">
17626 \begin_layout Plain Layout
17627 \begin_inset Formula $\:\Upsilon(t)$
17637 <cell alignment="center" valignment="top" usebox="none">
17640 \begin_layout Plain Layout
17646 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17649 \begin_layout Plain Layout
17651 \begin_inset space \thinspace{}
17659 <cell alignment="center" valignment="top" usebox="none">
17662 \begin_layout Plain Layout
17663 \begin_inset Formula $5.78\cdot$
17671 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17674 \begin_layout Plain Layout
17675 \begin_inset Formula $10^{7}$
17683 <cell alignment="center" valignment="top" usebox="none">
17686 \begin_layout Plain Layout
17687 \begin_inset Formula $A\ne$
17695 <cell alignment="center" valignment="top" usebox="none">
17698 \begin_layout Plain Layout
17699 \begin_inset Formula $\: B_{\mathrm{red}}$
17709 <cell alignment="center" valignment="top" usebox="none">
17712 \begin_layout Plain Layout
17718 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17721 \begin_layout Plain Layout
17723 \begin_inset space \thinspace{}
17731 <cell alignment="center" valignment="top" usebox="none">
17734 \begin_layout Plain Layout
17736 \begin_inset Formula $33.5\cdot$
17744 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17747 \begin_layout Plain Layout
17748 \begin_inset Formula $10^{4}$
17756 <cell alignment="center" valignment="top" usebox="none">
17759 \begin_layout Plain Layout
17760 \begin_inset Formula $\sin(\alpha)\ge$
17768 <cell alignment="center" valignment="top" usebox="none">
17771 \begin_layout Plain Layout
17772 \begin_inset Formula $\:\sin(\beta)$
17793 \begin_layout Subsection
17794 Customized Cell/Column Format
17795 \begin_inset CommandInset label
17797 name "sub:Customized-Format"
17802 \begin_inset Index idx
17805 \begin_layout Plain Layout
17806 Table Customization ! Cell/Column Format
17814 \begin_layout Standard
17815 Calculating the required width for spanned columns as in section
17816 \begin_inset space ~
17820 \begin_inset CommandInset ref
17822 reference "sub:Multicolumn-Calculations"
17826 is very annoying if you have several tables with multicolumn cells.
17827 To make life easier, you can define a cell/column format in the preamble,
17828 so that it can be used in all tables of the document.
17829 The format is defined with the command
17832 \begin_layout Standard
17837 newcolumntype{name of format}[number of arguments]{commands}
17840 \begin_layout Standard
17841 The format name may only consist of one letter.
17866 are predefined and cannot be used.
17867 But all letters are allowed as capitals.
17870 \begin_layout Standard
17871 \begin_inset VSpace medskip
17877 \begin_layout Standard
17878 For vertically and horizontally centered multicolumn cells with a fixed
17879 width you can define the cell format
17882 \begin_layout Standard
17887 newcolumntype{M}[1]{>{
17894 \begin_layout Standard
17901 avoids the problem of hyphenating the first word, as described in section
17902 \begin_inset space ~
17906 \begin_inset CommandInset ref
17908 reference "sub:Multiple-Lines-in"
17913 Now you can simply enter
17916 \begin_layout Standard
17922 \begin_layout Standard
17923 as LaTeX-argument in the table dialog to create a multicolumn.
17926 \begin_layout Standard
17927 \begin_inset VSpace bigskip
17933 \begin_layout Standard
17934 For cells spanned by a multicolumn cell, you can define the format
17937 \begin_layout Standard
17942 newcolumntype{S}[2]{>{
17947 \begin_inset Newline newline
17951 \begin_inset Phantom HPhantom
17954 \begin_layout Plain Layout
17968 arrayrulewidth)*(1-#2))/#2}}
17971 \begin_layout Standard
17972 This format uses equation
17973 \begin_inset CommandInset ref
17979 to calculate the required width so that each spanned cell has the same
17983 \begin_layout Standard
17987 \begin_layout Standard
17990 S{width of multicolumn cell}{number of spanned columns}
17993 \begin_layout Standard
17994 as LaTeX-argument of the column.
17997 \begin_layout Standard
17998 \begin_inset VSpace bigskip
18004 \begin_layout Standard
18005 For colored columns, you can define
18008 \begin_layout Standard
18013 newcolumntype{K}[1]{>{
18020 \begin_layout Standard
18022 \begin_inset Quotes eld
18026 \begin_inset Quotes erd
18029 at the end creates a column with a flexible width whose text is horizontally
18034 \begin_layout Standard
18040 \begin_layout Standard
18044 \begin_layout Standard
18045 \begin_inset VSpace bigskip
18051 \begin_layout Standard
18053 \begin_inset space ~
18057 \begin_inset CommandInset ref
18059 reference "tab:Table-using-user-defined"
18063 use the LaTeX-arguments
18066 \begin_layout Standard
18072 \begin_layout Standard
18073 for the first column and the multicolumn,
18076 \begin_layout Standard
18082 \begin_layout Standard
18083 for the last column, and
18086 \begin_layout Standard
18092 \begin_layout Standard
18093 for the cells in the second column.
18096 \begin_layout Standard
18097 \begin_inset Float table
18103 \begin_layout Plain Layout
18104 \begin_inset Caption
18106 \begin_layout Plain Layout
18107 \begin_inset CommandInset label
18109 name "tab:Table-using-user-defined"
18113 Table using user-defined table formats
18121 \begin_layout Plain Layout
18123 \begin_inset Tabular
18124 <lyxtabular version="3" rows="3" columns="4">
18125 <features tabularvalignment="middle">
18126 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
18127 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
18128 <column alignment="center" valignment="middle" width="0">
18129 <column alignment="center" valignment="middle" width="0" special="K{red}">
18131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18134 \begin_layout Plain Layout
18135 verylongtablecellword
18140 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
18143 \begin_layout Plain Layout
18144 multiple lines multicolumn
18149 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18152 \begin_layout Plain Layout
18158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18161 \begin_layout Plain Layout
18169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18172 \begin_layout Plain Layout
18178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18181 \begin_layout Plain Layout
18187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18190 \begin_layout Plain Layout
18196 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18199 \begin_layout Plain Layout
18207 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18210 \begin_layout Plain Layout
18216 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18219 \begin_layout Plain Layout
18225 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18228 \begin_layout Plain Layout
18234 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18237 \begin_layout Plain Layout
18256 \begin_layout Subsection
18258 \begin_inset CommandInset label
18260 name "sub:Line-Thickness"
18265 \begin_inset Index idx
18268 \begin_layout Plain Layout
18269 Table Customization ! Line Thickness
18277 \begin_layout Standard
18278 The line thickness for all lines in a table can be adjusted with the length
18286 To set for example a line thickness of 1.5
18287 \begin_inset space \thinspace{}
18291 \begin_inset space ~
18295 \begin_inset CommandInset ref
18297 reference "tab:Table-with-1.5"
18301 , insert the command
18304 \begin_layout Standard
18311 arrayrulewidth}{1.5pt}
18314 \begin_layout Standard
18315 in TeX-Code before the table or table float.
18316 The changed thickness is valid for all subsequent tables.
18317 To use the default value again, set
18324 \begin_inset space \thinspace{}
18327 pt in TeX-Code after the table or table float.
18330 \begin_layout Standard
18334 \begin_layout Plain Layout
18340 arrayrulewidth}{1.5pt}
18346 \begin_inset Float table
18351 \begin_layout Plain Layout
18352 \begin_inset Caption
18354 \begin_layout Plain Layout
18355 \begin_inset CommandInset label
18357 name "tab:Table-with-1.5"
18362 \begin_inset space \thinspace{}
18373 \begin_layout Plain Layout
18375 \begin_inset Tabular
18376 <lyxtabular version="3" rows="3" columns="3">
18377 <features tabularvalignment="middle">
18378 <column alignment="center" valignment="top" width="0">
18379 <column alignment="center" valignment="top" width="0">
18380 <column alignment="center" valignment="top" width="0">
18382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18385 \begin_layout Plain Layout
18391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18394 \begin_layout Plain Layout
18400 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18403 \begin_layout Plain Layout
18411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18414 \begin_layout Plain Layout
18420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18423 \begin_layout Plain Layout
18429 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18432 \begin_layout Plain Layout
18440 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18443 \begin_layout Plain Layout
18449 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18452 \begin_layout Plain Layout
18458 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18461 \begin_layout Plain Layout
18481 \begin_layout Plain Layout
18487 arrayrulewidth}{0.4pt}
18495 \begin_layout Standard
18496 \begin_inset VSpace bigskip
18499 To set the line thickness to 1.5
18500 \begin_inset space \thinspace{}
18503 pt only for horizontal lines, as in Table
18504 \begin_inset space ~
18508 \begin_inset CommandInset ref
18510 reference "tab:Table-with-horizontal"
18514 , insert these commands in TeX-Code before the table or table float:
18517 \begin_layout Standard
18527 \begin_inset Newline newline
18535 \begin_inset Newline newline
18544 arrayrulewidth 1.5pt}
18545 \begin_inset Newline newline
18556 arrayrulewidth 0.4pt}}
18559 \begin_layout Standard
18560 To return to the default line thickness, insert this command in TeX-Code
18561 after the table or table float:
18564 \begin_layout Standard
18576 \begin_layout Standard
18580 \begin_layout Plain Layout
18591 \begin_layout Plain Layout
18600 \begin_layout Plain Layout
18608 arrayrulewidth 1.5pt}
18611 \begin_layout Plain Layout
18621 arrayrulewidth 0.4pt}}
18627 \begin_inset Float table
18632 \begin_layout Plain Layout
18633 \begin_inset Caption
18635 \begin_layout Plain Layout
18636 \begin_inset CommandInset label
18638 name "tab:Table-with-horizontal"
18643 \begin_inset space \thinspace{}
18646 pt thick horizontal lines
18654 \begin_layout Plain Layout
18656 \begin_inset Tabular
18657 <lyxtabular version="3" rows="3" columns="3">
18658 <features tabularvalignment="middle">
18659 <column alignment="center" valignment="top" width="0">
18660 <column alignment="center" valignment="top" width="0">
18661 <column alignment="center" valignment="top" width="0">
18663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18666 \begin_layout Plain Layout
18672 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18675 \begin_layout Plain Layout
18681 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18684 \begin_layout Plain Layout
18692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18695 \begin_layout Plain Layout
18701 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18704 \begin_layout Plain Layout
18710 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18713 \begin_layout Plain Layout
18721 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18724 \begin_layout Plain Layout
18730 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18733 \begin_layout Plain Layout
18739 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18742 \begin_layout Plain Layout
18762 \begin_layout Plain Layout
18778 \begin_layout Standard
18779 \begin_inset VSpace bigskip
18782 To set the line thickness to 1.5
18783 \begin_inset space \thinspace{}
18786 pt only for vertical lines, create the following column format in the document
18787 preamble, according to the description in section
18788 \begin_inset space ~
18792 \begin_inset CommandInset ref
18794 reference "sub:Customized-Format"
18801 \begin_layout Standard
18806 newcolumntype{V}{!{
18808 vrule width 1.5pt}}
18811 \begin_layout Standard
18813 \begin_inset space ~
18817 \begin_inset CommandInset ref
18819 reference "tab:Table-with-vertical"
18826 \begin_layout Standard
18832 \begin_layout Standard
18833 was used for the last column and
18836 \begin_layout Standard
18842 \begin_layout Standard
18843 for the other columns.
18846 \begin_layout Standard
18847 \begin_inset Float table
18852 \begin_layout Plain Layout
18853 \begin_inset Caption
18855 \begin_layout Plain Layout
18856 \begin_inset CommandInset label
18858 name "tab:Table-with-vertical"
18863 \begin_inset space \thinspace{}
18866 pt thick vertical lines
18874 \begin_layout Plain Layout
18876 \begin_inset Tabular
18877 <lyxtabular version="3" rows="3" columns="3">
18878 <features tabularvalignment="middle">
18879 <column alignment="center" valignment="top" width="0" special="Vc">
18880 <column alignment="center" valignment="top" width="0" special="Vc">
18881 <column alignment="center" valignment="top" width="0" special="VcV">
18883 <cell alignment="center" valignment="top" topline="true" usebox="none">
18886 \begin_layout Plain Layout
18892 <cell alignment="center" valignment="top" topline="true" usebox="none">
18895 \begin_layout Plain Layout
18901 <cell alignment="center" valignment="top" topline="true" usebox="none">
18904 \begin_layout Plain Layout
18912 <cell alignment="center" valignment="top" topline="true" usebox="none">
18915 \begin_layout Plain Layout
18921 <cell alignment="center" valignment="top" topline="true" usebox="none">
18924 \begin_layout Plain Layout
18930 <cell alignment="center" valignment="top" topline="true" usebox="none">
18933 \begin_layout Plain Layout
18941 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18944 \begin_layout Plain Layout
18950 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18953 \begin_layout Plain Layout
18959 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
18962 \begin_layout Plain Layout
18981 \begin_layout Subsection
18983 \begin_inset Index idx
18986 \begin_layout Plain Layout
18987 Table Customization ! Dashed Lines
18995 \begin_layout Standard
18999 \begin_layout Plain Layout
19009 \begin_inset Note Note
19012 \begin_layout Plain Layout
19013 The following section will only be displayed when the LaTeX-package
19025 \begin_layout Standard
19026 \begin_inset Float table
19032 \begin_layout Plain Layout
19033 \begin_inset Caption
19035 \begin_layout Plain Layout
19036 \begin_inset CommandInset label
19038 name "tab:Table-with-dashed"
19042 Table with dashed lines
19050 \begin_layout Plain Layout
19052 \begin_inset Tabular
19053 <lyxtabular version="3" rows="5" columns="5">
19054 <features tabularvalignment="middle">
19055 <column alignment="center" valignment="top" width="0">
19056 <column alignment="center" valignment="top" width="0">
19057 <column alignment="center" valignment="top" width="0" special=":c">
19058 <column alignment="center" valignment="top" width="0">
19059 <column alignment="center" valignment="top" width="0">
19061 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19064 \begin_layout Plain Layout
19070 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19073 \begin_layout Plain Layout
19079 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19082 \begin_layout Plain Layout
19088 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19091 \begin_layout Plain Layout
19097 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19100 \begin_layout Plain Layout
19108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19111 \begin_layout Plain Layout
19117 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19120 \begin_layout Plain Layout
19126 <cell alignment="center" valignment="top" topline="true" usebox="none">
19129 \begin_layout Plain Layout
19135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19138 \begin_layout Plain Layout
19144 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19147 \begin_layout Plain Layout
19155 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19158 \begin_layout Plain Layout
19162 \begin_layout Plain Layout
19176 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19179 \begin_layout Plain Layout
19185 <cell alignment="center" valignment="top" usebox="none">
19188 \begin_layout Plain Layout
19194 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19197 \begin_layout Plain Layout
19203 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
19206 \begin_layout Plain Layout
19214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19217 \begin_layout Plain Layout
19221 \begin_layout Plain Layout
19235 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19238 \begin_layout Plain Layout
19244 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
19247 \begin_layout Plain Layout
19253 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19256 \begin_layout Plain Layout
19262 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19265 \begin_layout Plain Layout
19273 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19276 \begin_layout Plain Layout
19282 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19285 \begin_layout Plain Layout
19291 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19294 \begin_layout Plain Layout
19300 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19303 \begin_layout Plain Layout
19309 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19312 \begin_layout Plain Layout
19331 \begin_layout Standard
19332 LyX does not natively support dashed lines, so you have to use TeX-Code.
19333 As a prerequisite the LaTeX-package
19338 \begin_inset Index idx
19341 \begin_layout Plain Layout
19342 LaTeX-packages ! arydshln
19347 must be loaded in the document preamble with the command
19350 \begin_layout Standard
19355 usepackage{arydshln}
19358 \begin_layout Standard
19359 To make a vertical line dashed, enter the colon
19360 \begin_inset Quotes eld
19364 \begin_inset Quotes erd
19367 together with the character for the horizontal alignment as LaTeX-argument
19368 in the table cell dialog.
19371 \begin_layout Standard
19372 For a horizontal dashed line add the command
19375 \begin_layout Standard
19383 \begin_layout Standard
19384 in TeX-Code as first element of the first cell in the table row.
19387 \begin_layout Standard
19388 For dashed multicolumn lines use the command
19391 \begin_layout Standard
19396 cdashline{line number
19401 \begin_layout Standard
19402 in TeX-Code as the first element of the first cell in the table row.
19403 If you have for example a multicolumn spanning columns 2 to 4 and you want
19404 to have a dashed line above, add the command
19407 \begin_layout Standard
19415 \begin_layout Standard
19416 as the first element of the first cell in the row of the multicolumn.
19419 \begin_layout Standard
19420 \begin_inset VSpace bigskip
19426 \begin_layout Standard
19428 \begin_inset space ~
19432 \begin_inset CommandInset ref
19434 reference "tab:Table-with-dashed"
19439 \begin_inset Quotes eld
19447 \begin_inset Quotes erd
19450 as LaTeX-argument of the third column.
19451 The TeX-Code command
19457 was inserted in the first cell of the third row and the TeX-Code command
19458 \begin_inset Newline newline
19467 was inserted in the first cell of the fourth row.
19470 \begin_layout Standard
19471 \begin_inset Note Greyedout
19474 \begin_layout Plain Layout
19483 is apparently not compatible with the LaTeX-package
19488 \begin_inset Index idx
19491 \begin_layout Plain Layout
19492 LaTeX-packages ! colortbl
19497 that is used for colored tables in section
19498 \begin_inset space ~
19502 \begin_inset CommandInset ref
19504 reference "sec:Colored-Tables"
19509 That means colored tables cannot have dashed lines.
19517 \begin_layout Standard
19521 \begin_layout Plain Layout
19531 \begin_inset Note Note
19534 \begin_layout Plain Layout
19535 The following will be displayed when the LaTeX-package
19547 \begin_layout Standard
19548 You need to install the package
19552 to see the content of this section in the output.
19555 \begin_layout Standard
19559 \begin_layout Plain Layout
19571 \begin_layout Chapter
19573 \begin_inset Index idx
19576 \begin_layout Plain Layout
19585 \begin_layout Section
19587 \begin_inset CommandInset label
19589 name "sec:FloatIntroduction"
19594 \begin_inset Index idx
19597 \begin_layout Plain Layout
19598 Floats ! Introduction
19606 \begin_layout Standard
19607 A float is a block of text associated with some sort of label, which doesn't
19608 have a fixed location.
19610 \begin_inset Quotes eld
19614 \begin_inset Quotes erd
19617 forward or backward a page or two, to wherever it fits best.
19625 \begin_inset space ~
19630 are also floats, because they can float to the next page when there are
19631 too many notes on the page.
19634 \begin_layout Standard
19635 Floats allow a high quality layout.
19636 Images and tables can be spread evenly to the pages to avoid white space
19637 and pages without text.
19638 As the floating often destroys the context between the text and the image/table
19639 , every float can be referenced in the text.
19640 Floats are therefore numbered.
19641 Referencing is described in section
19642 \begin_inset space ~
19646 \begin_inset CommandInset ref
19648 reference "sec:Referencing-Floats"
19655 \begin_layout Standard
19656 To insert a float, use the menu
19658 Insert\SpecialChar \menuseparator
19666 inset, a box with a label.
19667 The label will automatically be translated to the document language in
19669 After the label you can insert the caption text.
19670 The image or table is inserted above or below the caption in a separate
19671 paragraph within the float.
19672 More about the caption placement is contained in section
19673 \begin_inset space ~
19677 \begin_inset CommandInset ref
19679 reference "sec:Caption-Placement"
19684 To keep your LyX-document readable, you can open and close the float box
19685 by left-clicking on the box label.
19686 A closed float box looks like this:
19687 \begin_inset Graphics
19688 filename clipart/floatQt4.png
19690 scaleBeforeRotation
19694 – a gray button with a red label.
19697 \begin_layout Standard
19698 It is recommended that you insert floats as a separate standard paragraph
19699 to avoid possible LaTeX-errors that can occur when the surrounding text
19700 is specially formatted.
19703 \begin_layout Standard
19704 Existing figures or tables can be put into a float by highlighting them
19705 and then pressing the corresponding toolbar button for a new float.
19708 \begin_layout Section
19712 \begin_layout Standard
19713 Besides figure and table floats that are described in sections
19714 \begin_inset space ~
19718 \begin_inset CommandInset ref
19720 reference "sec:Figure-Floats"
19725 \begin_inset CommandInset ref
19727 reference "sec:Table-Floats"
19731 respectively, LyX offers the float types
19742 \begin_layout Subsection
19744 \begin_inset Index idx
19747 \begin_layout Plain Layout
19748 Floats ! Algorithms
19756 \begin_layout Standard
19757 \begin_inset Float algorithm
19763 \begin_layout Plain Layout
19764 \begin_inset Caption
19766 \begin_layout Plain Layout
19767 \begin_inset CommandInset label
19769 name "alg:Example-Algorithm-float"
19773 Example Algorithm float
19781 \begin_layout LyX-Code
19783 \begin_inset Newline newline
19786 Sum:= Sum + A(I); /*comment*/
19787 \begin_inset Newline newline
19791 \begin_inset VSpace -4mm
19802 \begin_layout Standard
19803 This float type is inserted with the menu
19805 Insert\SpecialChar \menuseparator
19806 Floats\SpecialChar \menuseparator
19810 It is used for program codes and descriptions of algorithms and can be
19811 seen as an alternative to program code listings that are explained in chapter
19812 \begin_inset space ~
19816 \begin_inset CommandInset ref
19818 reference "cha:Program-Code-Listings"
19823 A possible environment for algorithms is the
19827 , described in LyX's
19833 \begin_inset space ~
19837 \begin_inset CommandInset ref
19839 reference "alg:Example-Algorithm-float"
19843 is an example of an algorithm float where -4
19844 \begin_inset space \thinspace{}
19847 mm vertical space was added at the end of the float to have the bottom rule
19848 exactly below the last text line.
19851 \begin_layout Standard
19852 The float label is not automatically translated into the document language.
19853 If your document is not in English, you have to do this manually by adding
19854 the following line to the document preamble
19859 \begin_layout Standard
19864 floatname{algorithm}{your
19865 \begin_inset space ~
19871 \begin_layout Standard
19875 \begin_inset space ~
19881 \begin_inset Quotes eld
19889 \begin_inset Quotes erd
19895 \begin_layout Standard
19896 To insert the list of algorithms you can use the menu
19898 Insert\SpecialChar \menuseparator
19900 \begin_inset space \thinspace{}
19904 \begin_inset space \thinspace{}
19907 TOC\SpecialChar \menuseparator
19910 when your document has the same language as LyX's menu names.
19911 In other cases use this command in TeX-Code instead:
19914 \begin_layout Standard
19919 listof{algorithm}{your
19920 \begin_inset space ~
19926 \begin_layout Standard
19930 \begin_inset space ~
19936 \begin_inset Quotes eld
19944 \begin_inset Quotes erd
19950 \begin_layout Standard
19951 Algorithm floats are not by default numbered in the scheme
19952 \begin_inset Quotes eld
19956 \begin_inset Quotes erd
19959 as is the case for table and figure floats in many document-classes.
19960 To number algorithm floats in the same scheme, add this command to your
19964 \begin_layout Standard
19969 numberwithin{algorithm}{chapter}
19972 \begin_layout Standard
19973 To be able to use the command
19982 \begin_inset space ~
19987 in the document settings the option
19990 \begin_inset space ~
19994 \begin_inset space ~
19998 \begin_inset space ~
20006 \begin_layout Subsection
20008 \begin_inset Index idx
20011 \begin_layout Plain Layout
20012 Floats ! Wrap Floats
20020 \begin_layout Standard
20021 \begin_inset Wrap figure
20028 \begin_layout Plain Layout
20029 \begin_inset Graphics
20030 filename clipart/mobius.eps
20032 scaleBeforeRotation
20033 rotateOrigin center
20040 \begin_layout Plain Layout
20041 \begin_inset Caption
20043 \begin_layout Plain Layout
20044 \begin_inset CommandInset label
20046 name "fig:This-is-a"
20050 This is a figure wrap float.
20060 This float type is used if you want to wrap text around a figure or table
20061 so that it only occupies some fraction of the column width.
20062 It can be inserted using the menu
20064 Insert\SpecialChar \menuseparator
20065 Floats\SpecialChar \menuseparator
20067 \begin_inset space ~
20071 \begin_inset space ~
20079 \begin_inset space ~
20083 \begin_inset space ~
20088 if the LaTeX-package
20093 \begin_inset Index idx
20096 \begin_layout Plain Layout
20097 LaTeX-packages ! wrapfig
20101 \begin_layout Plain Layout
20119 \begin_layout Plain Layout
20120 Installing a LaTeX-package is explained it in the
20123 \begin_inset space ~
20133 The settings of the float can be modified by right-clicking on the float
20135 The mandatory settings are the float
20148 that specifies how much the float is set into the paragraph
20149 \begin_inset space \thinspace{}
20153 \begin_inset space \thinspace{}
20156 page margin, and the
20159 \begin_inset space ~
20164 that specifies how many text lines the float will approximately need.
20165 The line span is often hard to approximate; so it is better only to use
20166 it when you encounter float placement problems.
20167 You can furthermore decide if LaTeX is allowed to let the float float within
20168 the paragraph or to surrounding paragraphs.
20170 \begin_inset space ~
20174 \begin_inset CommandInset ref
20176 reference "fig:This-is-a"
20180 is an example text wrap float with a width of 40
20181 \begin_inset space \thinspace{}
20185 \begin_inset space \thinspace{}
20188 cm overhang, set to the left.
20192 \begin_layout Plain Layout
20193 Available units are explained in appendix
20194 \begin_inset space ~
20198 \begin_inset CommandInset ref
20200 reference "cha:Units-available-in"
20212 \begin_layout Standard
20213 \begin_inset Note Greyedout
20216 \begin_layout Plain Layout
20222 \begin_inset space ~
20225 wrap float floats are fragile! E.
20226 \begin_inset space \thinspace{}
20230 \begin_inset space \space{}
20233 having a figure too close to the bottom of the page can mess things up in
20234 such a way that the float does not appear in the output or that it is placed
20235 over some other text.
20243 \begin_layout Standard
20247 \begin_layout Itemize
20248 Wrap floats should not be placed in paragraphs that run over a page break.
20249 That means that wrap floats are better inserted in their exact place when
20250 the document is almost finished and you are able to estimate where page
20251 breaks will appear.
20254 \begin_layout Itemize
20255 Wrap floats should either be placed in their own paragraph before the paragraph
20256 where they should wrap into or within a paragraph.
20259 \begin_layout Itemize
20260 Wrap floats in consecutive paragraphs may cause troubles, so ensure that
20261 there is a text paragraph between them as separator.
20264 \begin_layout Itemize
20265 Wrap floats are not allowed in section headings or tables.
20268 \begin_layout Section
20270 \begin_inset Index idx
20273 \begin_layout Plain Layout
20282 \begin_layout Standard
20283 Floats are usually numbered either independently from the sections the floats
20284 are in, or in the scheme
20285 \begin_inset Quotes eld
20289 \begin_inset Quotes erd
20293 \begin_inset Quotes eld
20297 \begin_inset Quotes erd
20301 This depends on the document class used.
20304 \begin_layout Standard
20305 To change section-independent numbering, you can use this command in the
20309 \begin_layout Standard
20321 \begin_layout Standard
20328 is the command that prints the table number, for figure floats, the command
20342 in the command above prints the table number as small roman number.
20345 \begin_layout Standard
20346 To change the numbering scheme for example to
20347 \begin_inset Quotes eld
20351 \begin_inset Quotes erd
20354 , use this command in the preamble:
20357 \begin_layout Standard
20362 numberwithin{table}{subsection}
20365 \begin_layout Standard
20366 To be able to use the command
20375 \begin_inset space ~
20380 in the document settings the option
20383 \begin_inset space ~
20387 \begin_inset space ~
20391 \begin_inset space ~
20399 \begin_layout Standard
20400 Please also have a look at section
20401 \begin_inset space ~
20405 \begin_inset CommandInset ref
20407 reference "sub:Footnote-Numbering"
20411 for the details and important notes about the numbering commands.
20414 \begin_layout Section
20416 \begin_inset CommandInset label
20418 name "sec:Referencing-Floats"
20423 \begin_inset Index idx
20426 \begin_layout Plain Layout
20427 Floats ! References
20433 \begin_inset Index idx
20436 \begin_layout Plain Layout
20437 References ! to Floats
20445 \begin_layout Standard
20446 To reference a float, insert a label into its caption using the menu
20448 Insert\SpecialChar \menuseparator
20451 or the toolbar button
20452 \begin_inset Graphics
20453 filename ../images/label-insert.png
20455 scaleBeforeRotation
20460 A grey label box like this one:
20461 \begin_inset Graphics
20462 filename clipart/labelQt4.png
20464 scaleBeforeRotation
20468 will be inserted and the label window pops up asking for the label text.
20469 LyX offers as text the first words of the caption with a prefix.
20470 The prefix depends on the float type, e.
20471 \begin_inset space \thinspace{}
20475 \begin_inset space \space{}
20478 for figure floats the prefix will be "
20485 \begin_layout Standard
20486 The label is used as anchor and name for the reference.
20487 You can refer to the label using the menu
20489 Insert\SpecialChar \menuseparator
20492 or the toolbar button
20493 \begin_inset Graphics
20494 filename ../images/dialog-show-new-inset_ref.png
20496 scaleBeforeRotation
20501 A grey cross-reference box like this one:
20502 \begin_inset Graphics
20503 filename clipart/referenceQt4.png
20505 scaleBeforeRotation
20509 will be inserted and the cross-reference window appear showing all labels
20511 If you have multiple LyX-documents opened, choose the one you are working
20512 on from the drop-list at the top of the dialog.
20513 You can now sort the labels alphabetically and then choose one.
20514 At the position of the cross-reference box the float number will appear
20518 \begin_layout Standard
20519 It is recommended that you use a protected space between the cross-reference
20520 name and its number to avoid line breaks between them.
20521 If a cross-reference refers to a non-existing label, you will see two question
20522 marks in the output instead of the reference.
20525 \begin_layout Standard
20526 You can change labels at any time by clicking on the label box.
20527 References to the changed label will automatically change its link to the
20528 new label text, so that you don't need to take care about this.
20531 \begin_layout Standard
20535 \begin_inset space ~
20539 \begin_inset space ~
20544 in the cross-reference window sets the cursor before the referred label.
20545 The button text changes then to Go
20546 \begin_inset space ~
20549 Back and you can use it to set the cursor back to the cross-reference.
20550 Right-clicking on a cross-reference box also sets the cursor before the
20551 referenced label but without the possibility of going back.
20554 \begin_layout Subsection
20555 Cross-Reference Formats
20556 \begin_inset CommandInset label
20558 name "sub:Cross-Reference-Formats"
20563 \begin_inset Index idx
20566 \begin_layout Plain Layout
20567 References ! Formats
20575 \begin_layout Standard
20576 There are six varieties of cross-references:
20579 \begin_layout Description
20580 <reference>: prints the float number, this is the default:
20581 \begin_inset CommandInset ref
20583 reference "fig:Two-distorted-images"
20590 \begin_layout Description
20591 (<reference>): prints the float number within two parentheses, this is the
20592 style normally used to reference formulas, especially when the reference
20594 \begin_inset Quotes eld
20598 \begin_inset Quotes erd
20602 \begin_inset CommandInset ref
20611 \begin_layout Description
20612 <page>: prints the page number: Page
20613 \begin_inset space ~
20617 \begin_inset CommandInset ref
20618 LatexCommand pageref
20619 reference "fig:Two-distorted-images"
20626 \begin_layout Description
20628 \begin_inset space ~
20632 \begin_inset space ~
20635 <page>: prints the text "on page" and the page number:
20636 \begin_inset CommandInset ref
20637 LatexCommand vpageref
20638 reference "fig:Two-distorted-images"
20645 \begin_layout Description
20647 \begin_inset space ~
20651 \begin_inset space ~
20655 \begin_inset space ~
20658 <page>: prints the float number, the text "on page", and the page number:
20660 \begin_inset CommandInset ref
20662 reference "fig:Two-distorted-images"
20669 \begin_layout Description
20671 \begin_inset space ~
20674 reference: prints a self-defined cross-reference format.
20675 \begin_inset Newline newline
20679 \begin_inset Note Greyedout
20682 \begin_layout Plain Layout
20687 This feature is only available when you have the LaTeX-package
20696 \begin_inset Index idx
20699 \begin_layout Plain Layout
20700 LaTeX-packages ! prettyref
20706 \begin_inset Index idx
20709 \begin_layout Plain Layout
20710 LaTeX-packages ! refstyle
20721 \begin_inset Newline newline
20724 You can select which LaTeX-package should be used for this feature by setting
20727 Use refstyle (not prettyref) for cross-references
20731 Document\SpecialChar \menuseparator
20732 Settings\SpecialChar \menuseparator
20736 The format is specified by adding the command
20748 (refstyle) to the preamble of the document.
20749 For example redefining all references to figures (which have the label
20751 \begin_inset Quotes eld
20759 \begin_inset Quotes erd
20762 ) can be done with this command
20763 \begin_inset Newline newline
20770 newref{fig}{refcmd={Image on page
20775 \begin_inset Newline newline
20778 For more information about the format, have a look at the package documentations
20780 \begin_inset CommandInset citation
20782 key "prettyref,refstyle"
20789 \begin_layout Description
20791 \begin_inset space ~
20794 reference: prints the caption of the reference:
20795 \begin_inset CommandInset ref
20796 LatexCommand nameref
20797 reference "fig:Two-distorted-images"
20804 \begin_layout Standard
20809 will not print the page number if the label is on the previous, the same,
20812 \begin_inset space \thinspace{}
20816 \begin_inset space \space{}
20820 \begin_inset Quotes eld
20828 \begin_inset Quotes erd
20834 <reference> on page <page>
20836 will not print anything about the page if the label is on the same page.
20839 \begin_layout Standard
20840 The number and current page of the part of the document referred to in the
20841 output is automatically calculated by LaTeX.
20842 The varieties are adjusted in the field
20846 of the cross-reference window that appears when you click on the cross-referenc
20850 \begin_layout Standard
20851 \begin_inset Note Greyedout
20854 \begin_layout Plain Layout
20859 It is recommended to use the LaTeX-package
20864 \begin_inset Index idx
20867 \begin_layout Plain Layout
20868 LaTeX-packages ! refstyle
20878 \begin_inset Index idx
20881 \begin_layout Plain Layout
20882 LaTeX-packages ! prettyref
20887 does not know all of LyX's possible label shortcuts
20891 \begin_layout Plain Layout
20892 \begin_inset Quotes eld
20896 \begin_inset Quotes erd
20899 is for example LyX's shortcut for labels in figure captions.
20904 and is not internationalized.
20912 \begin_layout Standard
20913 \begin_inset Note Greyedout
20916 \begin_layout Plain Layout
20921 Due to a bug in the LaTeX-package
20925 version 1.4w, some cross-reference formats will cause LaTeX errors for document
20926 languages that make the period character active (like French).
20927 For a workaround, see
20928 \begin_inset Newline newline
20932 \begin_inset CommandInset href
20934 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
20946 \begin_layout Subsection
20947 Automatic Reference Naming
20948 \begin_inset Index idx
20951 \begin_layout Plain Layout
20952 References ! Automatic Reference Naming
20960 \begin_layout Standard
20966 \begin_inset Index idx
20969 \begin_layout Plain Layout
20970 LaTeX-packages ! hyperref
20975 , that is enabled in the
20983 dialog, provides a very useful feature that cross-references automatically
20984 include the name of the referenced floats (or text parts like
20989 So you will save having to write e.
20990 \begin_inset space \thinspace{}
20994 \begin_inset space \space{}
20998 \begin_inset Quotes eld
21002 \begin_inset Quotes erd
21005 before every reference to a figure.
21006 To use this feature, enable
21010 and insert this line to the LaTeX preamble:
21013 \begin_layout Standard
21029 \begin_layout Standard
21030 When you prefer other reference names than the default ones, for example
21031 you want instead of
21032 \begin_inset Quotes eld
21036 \begin_inset Quotes erd
21040 \begin_inset Quotes eld
21044 \begin_inset space \thinspace{}
21048 \begin_inset Quotes eld
21051 , you can redefine the name by inserting this in the preamble:
21054 \begin_layout Standard
21065 sectionautorefname}
21066 \begin_inset Newline newline
21070 \begin_inset Phantom HPhantom
21073 \begin_layout Plain Layout
21076 \begin_inset space ~
21089 \begin_layout Standard
21090 When you are using another document language than English, replace
21091 \begin_inset Newline newline
21106 , where *** is the name of the language used.
21109 \begin_layout Standard
21110 To get automatic names, but not for certain reference types, for example
21111 not for equations, use this preamble code:
21114 \begin_layout Standard
21122 \begin_inset Newline newline
21132 \begin_inset Newline newline
21143 equationautorefname}
21144 \begin_inset Newline newline
21148 \begin_inset Phantom HPhantom
21151 \begin_layout Plain Layout
21154 \begin_inset space ~
21169 \begin_layout Standard
21170 More about this topic can be found in
21175 \begin_inset CommandInset citation
21184 \begin_layout Standard
21185 \begin_inset Note Greyedout
21188 \begin_layout Plain Layout
21193 Automatic reference naming cannot be used when you use cross-references
21197 \begin_inset space ~
21202 style, as described in section
21203 \begin_inset space ~
21207 \begin_inset CommandInset ref
21209 reference "sub:Cross-Reference-Formats"
21221 \begin_layout Standard
21226 manual is an example where automatic reference naming is used.
21229 \begin_layout Subsection
21231 \begin_inset CommandInset label
21233 name "sub:Reference-Position"
21238 \begin_inset Index idx
21241 \begin_layout Plain Layout
21242 References ! Reference Position
21250 \begin_layout Standard
21256 \begin_inset Index idx
21259 \begin_layout Plain Layout
21260 LaTeX-packages ! hyperref
21273 dialog to link cross-references in the output, you will see that clicking
21274 on an image float reference jumps to the image label.
21275 The caption will be the first text part on the screen, so that you cannot
21276 see the image without scrolling.
21277 This is because the reference link anchor is placed at the position of
21279 With the use of the package
21284 \begin_inset Index idx
21287 \begin_layout Plain Layout
21288 LaTeX-packages ! hypcap
21293 , which is part of the LaTeX-package
21298 \begin_inset Index idx
21301 \begin_layout Plain Layout
21302 LaTeX-packages ! oberdiek
21307 , the link anchor is placed at the beginning of a float.
21308 To use this feature for figure floats, load
21312 in the document preamble with the line
21315 \begin_layout Standard
21320 usepackage[figure]{hypcap}
21323 \begin_layout Standard
21328 for all float types but this is not recommended for stability reasons.
21329 For more information, have a look at
21334 \begin_inset CommandInset citation
21343 \begin_layout Standard
21344 \begin_inset Note Greyedout
21347 \begin_layout Plain Layout
21356 has no effect on references to subfigures.
21364 \begin_layout Section
21366 \begin_inset CommandInset label
21368 name "sec:Float-Placement"
21373 \begin_inset Index idx
21376 \begin_layout Plain Layout
21385 \begin_layout Standard
21386 Right-clicking on a float-box opens a dialog where you can alter the placement
21387 options that LaTeX uses for positioning the float.
21388 \begin_inset Newline newline
21394 \begin_inset space ~
21399 is only useful for two-column documents: If you select it, the float will
21400 span both columns on the page instead of being confined to just one.
21401 \begin_inset Newline newline
21407 \begin_inset space ~
21412 is used to rotate floats, see section
21413 \begin_inset CommandInset ref
21415 reference "sec:Rotated-Floats"
21422 \begin_layout Standard
21423 You can use one ore more of the following options in the float dialog to
21424 set the placement for a particular float when you uncheck the option
21427 \begin_inset space ~
21431 \begin_inset space ~
21439 \begin_layout Description
21441 \begin_inset space ~
21445 \begin_inset space ~
21448 possible try to place the float on the position where it has been inserted
21451 \begin_layout Description
21453 \begin_inset space ~
21457 \begin_inset space ~
21460 page try to place the float at the top of the current page
21463 \begin_layout Description
21465 \begin_inset space ~
21469 \begin_inset space ~
21472 page try to place the float at the bottom of the current page
21475 \begin_layout Description
21477 \begin_inset space ~
21481 \begin_inset space ~
21484 floats try to place the float on its own page
21487 \begin_layout Standard
21488 The order of the above option is
21493 That means, if you use the default placement, LaTeX will first try out
21497 \begin_inset space ~
21501 \begin_inset space ~
21509 \begin_inset space ~
21513 \begin_inset space ~
21518 , and then the others.
21519 If you do not use the default, LaTeX will try only the checked options
21520 but in the same order.
21522 \begin_inset space ~
21525 placements are possible the procedure is internally repeated but it is tried
21526 to put the float on the following page.
21529 \begin_layout Standard
21530 By default, each option has its own rules:
21533 \begin_layout Labeling
21534 \labelwidthstring 00.00.0000
21538 \begin_inset space ~
21542 \begin_inset space ~
21547 only floats occupying less than 70
21548 \begin_inset space \thinspace{}
21551 % of the page can be placed at the top of a page (
21560 \begin_layout Labeling
21561 \labelwidthstring 00.00.0000
21565 \begin_inset space ~
21569 \begin_inset space ~
21574 : only floats occupying less than 30
21575 \begin_inset space \thinspace{}
21578 % of the page can be placed at the bottom of a page.
21588 \begin_layout Labeling
21589 \labelwidthstring 00.00.0000
21593 \begin_inset space ~
21597 \begin_inset space ~
21602 : only if more than 50
21603 \begin_inset space \thinspace{}
21606 % of the page are occupied by floats, several floats can be set together
21617 \begin_layout Standard
21618 If you don't like these rules, you can ignore them by using the additional
21622 \begin_inset space ~
21626 \begin_inset space ~
21632 \begin_inset Newline newline
21635 You can also redefine the rules with LaTeX-commands that are given in parenthese
21636 s after the rules description above.
21637 To increase for example the often too small default of the bottom-rule
21639 \begin_inset space \thinspace{}
21642 % of the page, add this line to your document preamble:
21645 \begin_layout Standard
21652 bottomfraction}{0.5}
21655 \begin_layout Standard
21656 Sometimes you might need, under all circumstances, a float to be placed
21657 exactly at the position where it is inserted.
21658 For this case you can use the option
21661 \begin_inset space ~
21667 Use this option very rarely and only if the document is almost ready to
21668 be printed, because the float is then no longer able to
21669 \begin_inset Quotes eld
21673 \begin_inset Quotes erd
21676 when you change your document and this will often destroy the page layout.
21679 \begin_layout Standard
21680 There are no placement options for text wrap floats, because they are always
21681 surrounded by the text of a certain paragraph.
21682 \begin_inset VSpace bigskip
21688 \begin_layout Standard
21689 Sometimes you have the problem that a float is placed at the top of a page
21690 while its corresponding section starts at the middle of the page, so that
21691 the reader could think the float is part of the previous section.
21692 To avoid this the LaTeX-command
21699 It suppresses a given float placement for the page where it is inserted
21700 and can therefore be used to avoid floats being set before a section starts.
21701 To get this, add these commands to your document preamble:
21704 \begin_layout Standard
21714 \begin_inset Newline newline
21728 \begin_layout Standard
21729 You can define the same for all section headings, like chapters and subsections.
21730 This definition is not recommended to be used for small text parts like
21731 subsubsections because LaTeX may then have problems finding a suitable
21735 \begin_layout Standard
21736 \begin_inset VSpace bigskip
21739 In some cases it is required to have all figures/tables at the end of the
21741 For this purpose the LaTeX-package
21746 \begin_inset Index idx
21749 \begin_layout Plain Layout
21750 LaTeX-packages ! endfloat
21756 It puts all figure and table floats at the end of the document into their
21758 At the original float position a text hint like
21759 \begin_inset Quotes eld
21765 \begin_inset space ~
21771 \begin_inset Quotes erd
21775 The endfloat-package is loaded in the preamble with the line
21778 \begin_layout Standard
21783 usepackage[options]{endfloat}
21786 \begin_layout Standard
21787 There are various package options to format the created figure/table sections.
21788 For more information we refer to the
21793 \begin_inset CommandInset citation
21800 \begin_inset Newline newline
21804 \begin_inset Note Greyedout
21807 \begin_layout Plain Layout
21812 doesn't provide an automatic translation for the text hint, you have to
21813 do this manually, see section
21814 \begin_inset space ~
21818 \begin_inset CommandInset citation
21830 \begin_inset Newline newline
21834 \begin_inset Note Greyedout
21837 \begin_layout Plain Layout
21842 There is currently a bug in
21846 when the caption contains a German
21847 \begin_inset Quotes eld
21851 \begin_inset Quotes erd
21855 Use in this case the command
21856 \begin_inset Quotes eld
21866 \begin_inset Quotes erd
21869 in TeX-Code instead of
21870 \begin_inset Quotes eld
21874 \begin_inset Quotes erd
21885 \begin_layout Standard
21886 \begin_inset VSpace bigskip
21889 For more details about float placements, have a look at LaTeX books,
21890 \begin_inset CommandInset citation
21892 key "latexcompanion,latexguide,latexbook"
21899 \begin_layout Section
21901 \begin_inset CommandInset label
21903 name "sec:Rotated-Floats"
21908 \begin_inset Index idx
21911 \begin_layout Plain Layout
21920 \begin_layout Standard
21921 Especially for wide tables you might have floats rotated.
21922 To rotate a whole float including the caption, right-click on the float-box
21926 \begin_inset space ~
21934 \begin_layout Standard
21935 Rotated floats are always placed on a page of their own (or column of their
21936 own; in case you have a multi-column document).
21937 You can let them span several columns using the float settings option
21940 \begin_inset space ~
21946 Floats are rotated so that you can read them from the outside margin.
21947 To force a certain rotation direction for all pages, you can add either
21956 to the document class options.
21959 \begin_layout Standard
21960 Referencing rotated floats is the same as for normal floats, the caption
21961 format is also the same: Table
21962 \begin_inset space ~
21966 \begin_inset CommandInset ref
21968 reference "tab:Rotated-table"
21972 is an example of a rotated table float.
21975 \begin_layout Standard
21976 \begin_inset Note Greyedout
21979 \begin_layout Plain Layout
21984 Not all DVI-viewers are able to display rotated floats.
21992 \begin_layout Standard
21993 \begin_inset Float table
21998 \begin_layout Plain Layout
21999 \begin_inset Caption
22001 \begin_layout Plain Layout
22002 \begin_inset CommandInset label
22004 name "tab:Rotated-table"
22016 \begin_layout Plain Layout
22018 \begin_inset Tabular
22019 <lyxtabular version="3" rows="1" columns="5">
22020 <features tabularvalignment="middle">
22021 <column alignment="center" valignment="top" width="0">
22022 <column alignment="center" valignment="top" width="0">
22023 <column alignment="center" valignment="top" width="0">
22024 <column alignment="center" valignment="top" width="0">
22025 <column alignment="center" valignment="top" width="0">
22027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22030 \begin_layout Plain Layout
22036 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22039 \begin_layout Plain Layout
22045 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22048 \begin_layout Plain Layout
22054 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22057 \begin_layout Plain Layout
22063 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22066 \begin_layout Plain Layout
22085 \begin_layout Section
22087 \begin_inset Index idx
22090 \begin_layout Plain Layout
22099 \begin_layout Standard
22100 Subfloats are for example used when a figure consists of several images.
22101 They are created by inserting a float into an existing float.
22102 The placement of the subfloats can be controlled in the same way as for
22103 paragraphs as shown in table
22104 \begin_inset space ~
22108 \begin_inset CommandInset ref
22110 reference "tab:Two-subtables-side"
22115 \begin_inset CommandInset ref
22117 reference "tab:Two-subtables-upon"
22124 \begin_layout Standard
22125 Referencing subfloats works as for normal floats: Table
22126 \begin_inset space ~
22130 \begin_inset CommandInset ref
22132 reference "tab:This-is-subtable-a"
22137 \begin_inset CommandInset ref
22139 reference "tab:This-is-subtable-b"
22143 are subtables of table
22144 \begin_inset space ~
22148 \begin_inset CommandInset ref
22150 reference "tab:Two-subtables-side"
22157 \begin_layout Standard
22158 \begin_inset Float table
22163 \begin_layout Plain Layout
22164 \begin_inset Caption
22166 \begin_layout Plain Layout
22167 \begin_inset CommandInset label
22169 name "tab:Two-subtables-side"
22173 Two subtables placed side by side.
22181 \begin_layout Plain Layout
22183 \begin_inset space \hfill{}
22187 \begin_inset Float table
22192 \begin_layout Plain Layout
22193 \begin_inset Caption
22195 \begin_layout Plain Layout
22196 \begin_inset CommandInset label
22198 name "tab:This-is-subtable-a"
22202 This is subtable a.
22210 \begin_layout Plain Layout
22212 \begin_inset Tabular
22213 <lyxtabular version="3" rows="1" columns="5">
22214 <features tabularvalignment="middle">
22215 <column alignment="center" valignment="top" width="0">
22216 <column alignment="center" valignment="top" width="0">
22217 <column alignment="center" valignment="top" width="0">
22218 <column alignment="center" valignment="top" width="0">
22219 <column alignment="center" valignment="top" width="0">
22221 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22224 \begin_layout Plain Layout
22230 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22233 \begin_layout Plain Layout
22239 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22242 \begin_layout Plain Layout
22248 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22251 \begin_layout Plain Layout
22257 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22260 \begin_layout Plain Layout
22277 \begin_inset space \hfill{}
22281 \begin_inset Float table
22286 \begin_layout Plain Layout
22287 \begin_inset Caption
22289 \begin_layout Plain Layout
22290 \begin_inset CommandInset label
22292 name "tab:This-is-subtable-b"
22296 This is subtable b.
22304 \begin_layout Plain Layout
22306 \begin_inset Tabular
22307 <lyxtabular version="3" rows="1" columns="5">
22308 <features tabularvalignment="middle">
22309 <column alignment="center" valignment="top" width="0">
22310 <column alignment="center" valignment="top" width="0">
22311 <column alignment="center" valignment="top" width="0">
22312 <column alignment="center" valignment="top" width="0">
22313 <column alignment="center" valignment="top" width="0">
22315 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22318 \begin_layout Plain Layout
22324 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22327 \begin_layout Plain Layout
22333 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22336 \begin_layout Plain Layout
22342 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22345 \begin_layout Plain Layout
22351 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22354 \begin_layout Plain Layout
22371 \begin_inset space \hfill{}
22382 \begin_layout Standard
22383 \begin_inset Float table
22388 \begin_layout Plain Layout
22389 \begin_inset Caption
22391 \begin_layout Plain Layout
22392 \begin_inset CommandInset label
22394 name "tab:Two-subtables-upon"
22398 Two subtables placed one above the other.
22399 (a) table with 4 cells, (b) table with 5 cells.
22407 \begin_layout Plain Layout
22409 \begin_inset Float table
22414 \begin_layout Plain Layout
22415 \begin_inset Caption
22417 \begin_layout Plain Layout
22426 \begin_layout Plain Layout
22428 \begin_inset Tabular
22429 <lyxtabular version="3" rows="1" columns="4">
22430 <features tabularvalignment="middle">
22431 <column alignment="center" valignment="top" width="0">
22432 <column alignment="center" valignment="top" width="0">
22433 <column alignment="center" valignment="top" width="0">
22434 <column alignment="center" valignment="top" width="0">
22436 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22439 \begin_layout Plain Layout
22445 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22448 \begin_layout Plain Layout
22454 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22457 \begin_layout Plain Layout
22463 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22466 \begin_layout Plain Layout
22485 \begin_layout Plain Layout
22487 \begin_inset Float table
22492 \begin_layout Plain Layout
22493 \begin_inset Caption
22495 \begin_layout Plain Layout
22504 \begin_layout Plain Layout
22506 \begin_inset Tabular
22507 <lyxtabular version="3" rows="1" columns="5">
22508 <features tabularvalignment="middle">
22509 <column alignment="center" valignment="top" width="0">
22510 <column alignment="center" valignment="top" width="0">
22511 <column alignment="center" valignment="top" width="0">
22512 <column alignment="center" valignment="top" width="0">
22513 <column alignment="center" valignment="top" width="0">
22515 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22518 \begin_layout Plain Layout
22524 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22527 \begin_layout Plain Layout
22533 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22536 \begin_layout Plain Layout
22542 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22545 \begin_layout Plain Layout
22551 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22554 \begin_layout Plain Layout
22578 \begin_layout Section
22579 Floats Side by Side
22580 \begin_inset Index idx
22583 \begin_layout Plain Layout
22584 Floats ! Side by side
22592 \begin_layout Standard
22593 To place floats side by side, as in Figures
22594 \begin_inset space ~
22598 \begin_inset CommandInset ref
22600 reference "fig:Float-left"
22605 \begin_inset CommandInset ref
22607 reference "fig:Float-right"
22616 In it two minipage boxes are inserted.
22620 \begin_layout Plain Layout
22621 Minipages are explained in section
22622 \begin_inset space ~
22626 \begin_inset CommandInset ref
22628 reference "sec:Minipages"
22637 The width is set to 45
22638 \begin_inset space \thinspace{}
22642 \begin_inset space \thinspace{}
22645 column% and the box alignment to
22650 The minipage boxes contain the image and the caption in the same way as
22651 they are in a float.
22652 The only difference is that the image unit
22655 \begin_inset space ~
22659 \begin_inset space ~
22664 is now calculated according to the width of the minipage boxes.
22667 \begin_layout Standard
22668 \begin_inset Float figure
22673 \begin_layout Plain Layout
22674 \begin_inset Box Frameless
22684 height_special "totalheight"
22687 \begin_layout Plain Layout
22689 \begin_inset Graphics
22690 filename clipart/mobius.eps
22693 scaleBeforeRotation
22700 \begin_layout Plain Layout
22701 \begin_inset Caption
22703 \begin_layout Plain Layout
22704 \begin_inset CommandInset label
22706 name "fig:Float-left"
22710 Float on the left side.
22721 \begin_inset space \hfill{}
22725 \begin_inset Box Frameless
22735 height_special "totalheight"
22738 \begin_layout Plain Layout
22740 \begin_inset Graphics
22741 filename clipart/platypus.eps
22744 scaleBeforeRotation
22751 \begin_layout Plain Layout
22752 \begin_inset Caption
22754 \begin_layout Plain Layout
22755 \begin_inset CommandInset label
22757 name "fig:Float-right"
22761 Float on the right side.
22774 \begin_layout Plain Layout
22783 \begin_layout Section
22785 \begin_inset Index idx
22788 \begin_layout Plain Layout
22789 Caption ! Formatting
22795 \begin_inset Index idx
22798 \begin_layout Plain Layout
22799 Floats ! Caption Formatting
22805 \begin_inset CommandInset label
22807 name "sec:Caption-Formatting"
22814 \begin_layout Standard
22819 environment is the default paragraph environment for
22824 On the LyX screen captions appear as label, e.
22825 \begin_inset space \thinspace{}
22829 \begin_inset space \space{}
22833 \begin_inset Quotes eld
22841 \begin_inset Quotes erd
22844 followed by the caption text.
22846 \begin_inset Quotes eld
22850 \begin_inset Quotes erd
22853 is the actual reference number.
22854 By default the label and the number are in the same font as the caption
22855 text and a colon follows the number to divide the label from the text.
22856 This caption format is not suitable for all document formats.
22860 \begin_layout Standard
22861 To change the default caption format, load the LaTeX-package
22866 \begin_inset Index idx
22869 \begin_layout Plain Layout
22870 LaTeX-packages ! caption
22875 in the document preamble with this line:
22878 \begin_layout Standard
22883 usepackage[format definition]{caption}
22886 \begin_layout Standard
22887 To have for example the label and the number in sans-serif bold font and
22888 the table captions always above the table as in this document, use the
22892 \begin_layout Standard
22897 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22900 \begin_layout Standard
22901 You can also define different caption formats for the different float types.
22902 In this case load the
22906 package without format specific options and define the different formats
22907 with the help of the command
22910 \begin_layout Standard
22915 captionsetup[float type]{format definition}
22918 \begin_layout Standard
22919 in the document preamble.
22920 For example the caption formats of Figure
22921 \begin_inset space ~
22925 \begin_inset CommandInset ref
22927 reference "fig:This-is-an-fig"
22932 \begin_inset space ~
22936 \begin_inset CommandInset ref
22938 reference "tab:This-is-an-tab"
22942 can be created using these commands in the document preamble:
22945 \begin_layout Standard
22950 usepackage[tableposition=top]{caption}
22953 \begin_inset Newline newline
22960 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22961 \begin_inset Newline newline
22965 \begin_inset Phantom HPhantom
22968 \begin_layout Plain Layout
22973 captionsetup[figure]{
22979 \begin_inset Newline newline
22984 captionsetup[table]{labelfont={bf,sf}}
22987 \begin_layout Standard
22988 \begin_inset Note Greyedout
22991 \begin_layout Plain Layout
23000 has no effect when a
23005 \begin_inset Index idx
23008 \begin_layout Plain Layout
23009 LaTeX-packages ! KOMA-Script
23014 document class is used.
23015 In this case the document class option
23017 captions=tableheading
23027 \begin_layout Standard
23028 For more information about the package
23032 we refer to its documentation
23033 \begin_inset CommandInset citation
23042 \begin_layout Standard
23043 To change the label name from e.
23044 \begin_inset space \thinspace{}
23048 \begin_inset space \space{}
23052 \begin_inset Quotes eld
23056 \begin_inset Quotes erd
23060 \begin_inset Quotes eld
23064 \begin_inset Quotes erd
23067 use this preamble command:
23070 \begin_layout Standard
23077 fnum@figure}{Image~
23082 \begin_layout Standard
23089 inserts the figure number and
23092 \begin_inset Quotes eld
23098 \begin_inset Quotes erd
23101 creates a protected space.
23104 \begin_layout Standard
23105 \begin_inset VSpace bigskip
23113 \begin_inset Index idx
23116 \begin_layout Plain Layout
23117 LaTeX-packages ! KOMA-Script
23124 article (KOMA-Script)
23132 letter (KOMA-Script)
23136 report (KOMA-Script)
23139 \begin_inset space \thinspace{}
23142 ), you can alternatively to the
23150 's built-in command
23157 For example, to have the caption label in bold, add this command to your
23161 \begin_layout Standard
23166 setkomafont{captionlabel}{
23171 \begin_layout Standard
23172 For more information about
23183 \begin_inset CommandInset citation
23192 \begin_layout Standard
23196 \begin_layout Plain Layout
23200 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
23207 \begin_inset Note Note
23210 \begin_layout Plain Layout
23211 The caption format is changed only for this example.
23219 \begin_layout Standard
23220 \begin_inset Float figure
23226 \begin_layout Plain Layout
23228 \begin_inset Graphics
23229 filename clipart/mobius.eps
23232 scaleBeforeRotation
23239 \begin_layout Plain Layout
23240 \begin_inset Caption
23242 \begin_layout Plain Layout
23243 \begin_inset CommandInset label
23245 name "fig:This-is-an-fig"
23249 This is an example figure caption that is longer than one line to show the
23250 different caption format.
23251 Here a self-defined caption format is used.
23264 \begin_layout Standard
23268 \begin_layout Plain Layout
23272 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
23281 \begin_layout Standard
23282 \begin_inset Float table
23288 \begin_layout Plain Layout
23289 \begin_inset Caption
23291 \begin_layout Plain Layout
23292 \begin_inset CommandInset label
23294 name "tab:This-is-an-tab"
23298 This is an example table caption that is longer than one line to show the
23299 different caption format.
23300 Here the standard caption format for tables in this document is used.
23308 \begin_layout Plain Layout
23310 \begin_inset Tabular
23311 <lyxtabular version="3" rows="1" columns="5">
23312 <features tabularvalignment="middle">
23313 <column alignment="center" valignment="top" width="0">
23314 <column alignment="center" valignment="top" width="0">
23315 <column alignment="center" valignment="top" width="0">
23316 <column alignment="center" valignment="top" width="0">
23317 <column alignment="center" valignment="top" width="0">
23319 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23322 \begin_layout Plain Layout
23328 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23331 \begin_layout Plain Layout
23337 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23340 \begin_layout Plain Layout
23346 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23349 \begin_layout Plain Layout
23355 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23358 \begin_layout Plain Layout
23377 \begin_layout Section
23379 \begin_inset Index idx
23382 \begin_layout Plain Layout
23383 Caption ! Placement
23389 \begin_inset Index idx
23392 \begin_layout Plain Layout
23393 Floats ! Caption Placement
23399 \begin_inset CommandInset label
23401 name "sec:Caption-Placement"
23408 \begin_layout Standard
23409 The common caption placement rule is:
23412 \begin_layout Description
23413 Figure: Caption is set below the figure
23416 \begin_layout Description
23417 Table: Caption is set above the table
23420 \begin_layout Standard
23421 Having the caption above the table is unfortunately not supported in LaTeX's
23423 That means if you are using the document classes
23439 there will be no space between the caption and the table.
23440 To insert the necessary space, add the following option to the load command
23441 of the LaTeX-package
23445 in your document preamble
23449 \begin_layout Plain Layout
23451 \begin_inset space ~
23455 \begin_inset CommandInset ref
23457 reference "sec:Caption-Formatting"
23461 for more information of the package
23473 \begin_layout Standard
23479 \begin_layout Standard
23485 \begin_inset Index idx
23488 \begin_layout Plain Layout
23489 LaTeX-packages ! KOMA-Script
23496 article (KOMA-Script)
23504 letter (KOMA-Script)
23508 report (KOMA-Script)
23511 \begin_inset space \thinspace{}
23514 ), you can alternatively to the
23518 package set the document class option
23520 captions=tableheading
23525 \begin_layout Standard
23526 \begin_inset VSpace bigskip
23529 It is also possible to set the caption beside a figure or table.
23530 To get this the LaTeX-package
23535 \begin_inset Index idx
23538 \begin_layout Plain Layout
23539 LaTeX-packages ! sidecap
23544 has to be loaded in the document preamble with the line
23547 \begin_layout Standard
23552 usepackage[option]{sidecap}
23555 \begin_layout Standard
23556 If you set no option, the caption is placed on the side of the outer page
23557 margin – to the right on odd pages, to the left on even pages.
23558 You can change the placement to inner margin with the option
23563 To force the placement always to the right or left, use the option
23574 \begin_layout Standard
23578 \begin_layout Plain Layout
23588 \begin_inset Note Note
23591 \begin_layout Plain Layout
23592 The following section will only be displayed when the LaTeX-package
23604 \begin_layout Standard
23605 To place in LyX the caption of a float on the side, it is necessary to add
23606 these commands to the document preamble:
23609 \begin_layout Standard
23611 \begin_inset CommandInset line
23622 \begin_layout Standard
23630 \begin_inset Newline newline
23634 \begin_inset Phantom HPhantom
23637 \begin_layout Plain Layout
23640 \begin_inset space ~
23655 \begin_inset Newline newline
23659 \begin_inset Phantom HPhantom
23662 \begin_layout Plain Layout
23665 \begin_inset space ~
23680 \begin_inset Newline newline
23684 \begin_inset Phantom HPhantom
23687 \begin_layout Plain Layout
23690 \begin_inset space ~
23700 renewenvironment{table}{
23707 \begin_layout Standard
23715 \begin_inset Newline newline
23719 \begin_inset Phantom HPhantom
23722 \begin_layout Plain Layout
23725 \begin_inset space ~
23740 \begin_inset Newline newline
23744 \begin_inset Phantom HPhantom
23747 \begin_layout Plain Layout
23750 \begin_inset space ~
23767 \begin_layout Standard
23775 \begin_inset Newline newline
23779 \begin_inset Phantom HPhantom
23782 \begin_layout Plain Layout
23785 \begin_inset space ~
23800 \begin_inset Newline newline
23804 \begin_inset Phantom HPhantom
23807 \begin_layout Plain Layout
23810 \begin_inset space ~
23825 \begin_inset Newline newline
23829 \begin_inset Phantom HPhantom
23832 \begin_layout Plain Layout
23835 \begin_inset space ~
23845 renewenvironment{figure}{
23852 \begin_layout Standard
23860 \begin_inset Newline newline
23864 \begin_inset Phantom HPhantom
23867 \begin_layout Plain Layout
23870 \begin_inset space ~
23885 \begin_inset Newline newline
23889 \begin_inset Phantom HPhantom
23892 \begin_layout Plain Layout
23895 \begin_inset space ~
23912 \begin_layout Standard
23914 \begin_inset CommandInset line
23925 \begin_layout Standard
23926 The commands allow you to redefine the floats so that the caption is set
23928 For figure floats use the command
23931 \begin_layout Standard
23939 \begin_layout Standard
23940 in TeX-Code before the float.
23941 After the float insert the command
23944 \begin_layout Standard
23952 \begin_layout Standard
23953 in TeX-Code to get back to the original float definition.
23956 \begin_layout Standard
23957 For table floats use the corresponding commands
23960 \begin_layout Standard
23974 \begin_layout Standard
23976 \begin_inset space ~
23980 \begin_inset CommandInset ref
23982 reference "fig:cap-beside-fig"
23987 \begin_inset space ~
23991 \begin_inset CommandInset ref
23993 reference "tab:cap-beside-tab"
23997 are examples where the caption is set beside.
24000 \begin_layout Standard
24001 You can see in the examples that the caption text appears at the top of
24002 the floats for table floats and at the bottom for figure floats.
24003 To change this, you can use the command
24006 \begin_layout Standard
24011 sidecaptionvpos{float type}{placement}
24014 \begin_layout Standard
24015 in the document preamble or in TeX-Code before the float.
24016 The float type is either
24024 , the placement can be
24025 \begin_inset Quotes eld
24033 \begin_inset Quotes erd
24037 \begin_inset Quotes eld
24045 \begin_inset Quotes erd
24049 \begin_inset Quotes eld
24057 \begin_inset Quotes erd
24061 To have for example the caption of figure floats vertically centered, use
24065 \begin_layout Standard
24070 sidecaptionvpos{figure}{c}
24073 \begin_layout Standard
24074 This was used for Figure
24075 \begin_inset space ~
24079 \begin_inset CommandInset ref
24081 reference "fig:cap-beside-fig-2"
24088 \begin_layout Standard
24089 \begin_inset VSpace medskip
24092 For more information about the package
24096 we refer to its documentation
24097 \begin_inset CommandInset citation
24106 \begin_layout Standard
24107 \begin_inset Note Greyedout
24110 \begin_layout Plain Layout
24120 \begin_inset Index idx
24123 \begin_layout Plain Layout
24124 LaTeX-packages ! hypcap
24129 , described in section
24130 \begin_inset space ~
24134 \begin_inset CommandInset ref
24136 reference "sub:Reference-Position"
24140 , has no effect on floats with the caption set beside.
24148 \begin_layout Standard
24152 \begin_layout Plain Layout
24164 \begin_layout Standard
24165 \begin_inset Float figure
24170 \begin_layout Plain Layout
24171 \begin_inset Graphics
24172 filename clipart/escher-lsd.eps
24174 scaleBeforeRotation
24181 \begin_layout Plain Layout
24182 \begin_inset Caption
24184 \begin_layout Plain Layout
24185 \begin_inset CommandInset label
24187 name "fig:cap-beside-fig"
24191 This is a caption beside a figure.
24204 \begin_layout Standard
24208 \begin_layout Plain Layout
24220 \begin_layout Standard
24221 \begin_inset Float table
24226 \begin_layout Plain Layout
24227 \begin_inset Caption
24229 \begin_layout Plain Layout
24230 \begin_inset CommandInset label
24232 name "tab:cap-beside-tab"
24236 This is a caption beside a table.
24244 \begin_layout Plain Layout
24245 \begin_inset Tabular
24246 <lyxtabular version="3" rows="4" columns="5">
24247 <features tabularvalignment="middle">
24248 <column alignment="center" valignment="top" width="0">
24249 <column alignment="center" valignment="top" width="0">
24250 <column alignment="center" valignment="top" width="0">
24251 <column alignment="center" valignment="top" width="0">
24252 <column alignment="center" valignment="top" width="0">
24254 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24257 \begin_layout Plain Layout
24263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24266 \begin_layout Plain Layout
24272 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24275 \begin_layout Plain Layout
24281 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24284 \begin_layout Plain Layout
24290 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24293 \begin_layout Plain Layout
24301 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24304 \begin_layout Plain Layout
24310 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24313 \begin_layout Plain Layout
24319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24322 \begin_layout Plain Layout
24328 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24331 \begin_layout Plain Layout
24337 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24340 \begin_layout Plain Layout
24348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24351 \begin_layout Plain Layout
24357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24360 \begin_layout Plain Layout
24366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24369 \begin_layout Plain Layout
24375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24378 \begin_layout Plain Layout
24384 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24387 \begin_layout Plain Layout
24395 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24398 \begin_layout Plain Layout
24404 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24407 \begin_layout Plain Layout
24413 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24416 \begin_layout Plain Layout
24422 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24425 \begin_layout Plain Layout
24431 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24434 \begin_layout Plain Layout
24453 \begin_layout Standard
24457 \begin_layout Plain Layout
24469 \begin_layout Standard
24473 \begin_layout Plain Layout
24477 sidecaptionvpos{figure}{c}
24483 \begin_inset Float figure
24488 \begin_layout Plain Layout
24489 \begin_inset Graphics
24490 filename clipart/escher-lsd.eps
24492 scaleBeforeRotation
24499 \begin_layout Plain Layout
24500 \begin_inset Caption
24502 \begin_layout Plain Layout
24503 \begin_inset CommandInset label
24505 name "fig:cap-beside-fig-2"
24509 This is a vertically centered caption beside a figure.
24522 \begin_layout Standard
24526 \begin_layout Plain Layout
24538 \begin_layout Standard
24542 \begin_layout Plain Layout
24552 \begin_inset Note Note
24555 \begin_layout Plain Layout
24556 The following will be displayed when the LaTeX-package
24568 \begin_layout Standard
24569 You need to install the LaTeX-package
24573 to see the following part of this section in the output.
24576 \begin_layout Standard
24580 \begin_layout Plain Layout
24592 \begin_layout Section
24594 \begin_inset Index idx
24597 \begin_layout Plain Layout
24598 Floats ! Float Lists
24606 \begin_layout Standard
24607 Similar to the table of contents where the sections of the document are
24608 listed, there are listings for all float types, like the figures of the
24610 You can insert them via the
24612 Insert\SpecialChar \menuseparator
24614 \begin_inset space ~
24618 \begin_inset space ~
24626 \begin_layout Standard
24627 The list entries are the float captions or its short title, the float number,
24628 and the page number where they appear in the document.
24631 \begin_layout Standard
24632 You can find the list of figures and tables at the end of this document.
24635 \begin_layout Chapter
24639 \begin_layout Section
24641 \begin_inset Index idx
24644 \begin_layout Plain Layout
24653 \begin_layout Standard
24654 Notes are inserted with the toolbar button
24655 \begin_inset Graphics
24656 filename ../images/note-insert.png
24658 scaleBeforeRotation
24664 Insert\SpecialChar \menuseparator
24668 There are three types of notes:
24671 \begin_layout Description
24673 \begin_inset space ~
24676 Note This note type is for internal notes that won't appear in the output.
24677 Its note-box looks like this:
24678 \begin_inset Newline newline
24682 \begin_inset Newline newline
24686 \begin_inset Graphics
24687 filename clipart/LyXNoteImageQt4.png
24690 scaleBeforeRotation
24695 \begin_inset Note Note
24698 \begin_layout Plain Layout
24699 This is text in a note box that doesn't appear in the output.
24707 \begin_layout Description
24708 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24709 ent, when you export the document to LaTeX via the menu
24711 File\SpecialChar \menuseparator
24712 Export\SpecialChar \menuseparator
24713 LaTeX (pdflatex) / (plain)
24716 Its note-box looks like this:
24717 \begin_inset Newline newline
24721 \begin_inset Newline newline
24725 \begin_inset Graphics
24726 filename clipart/CommentNoteImageQt4.png
24729 scaleBeforeRotation
24734 \begin_inset Note Comment
24737 \begin_layout Plain Layout
24738 This is text in a note box that only appears as comment in LaTeX-files.
24746 \begin_layout Description
24748 \begin_inset space ~
24751 Out This note will appear in the output as grey text.
24752 Its note-box looks like this:
24753 \begin_inset Newline newline
24757 \begin_inset Newline newline
24761 \begin_inset Graphics
24762 filename clipart/GreyedOutNoteImageQt4.png
24765 scaleBeforeRotation
24770 \begin_inset Newline newline
24777 \begin_layout Plain Layout
24781 renewenvironment{lyxgreyedout}
24784 \begin_layout Plain Layout
24788 textcolor[gray]{0.8}
24798 \begin_inset Note Greyedout
24801 \begin_layout Plain Layout
24806 \begin_layout Plain Layout
24807 This is an example footnote within a greyed out note.
24812 of a comment that appears in the output as grey text.
24821 \begin_layout Plain Layout
24825 renewenvironment{lyxgreyedout}
24828 \begin_layout Plain Layout
24842 \begin_inset Note Note
24845 \begin_layout Plain Layout
24846 The greyed out note is here redefined to show it with the original LyX definitio
24847 n because greyed out notes are redefined in the preamble of this document,
24848 as described below, to have blue text.
24854 \begin_inset Newline newline
24858 \begin_inset Newline newline
24861 As you can see in the example, the first line of greyed out notes is a bit
24862 indented and greyed out notes can have footnotes.
24865 \begin_layout Standard
24866 \begin_inset VSpace bigskip
24869 When you use the toolbar button
24870 \begin_inset Graphics
24871 filename ../images/note-insert.png
24873 scaleBeforeRotation
24880 \begin_inset space ~
24886 You can switch between the five note types by right-clicking on the note-box.
24891 If you want to turn existing text into a note, mark it and click on the
24905 To change a note to text, press the backspace key when the cursor is in
24906 the first position of a note, or press the delete key when the cursor is
24907 in the very last position of the note, respectively.
24910 \begin_layout Standard
24911 \begin_inset VSpace bigskip
24914 You can change the text color of the greyed out notes in the menu
24916 Document\SpecialChar \menuseparator
24917 Settings\SpecialChar \menuseparator
24923 \begin_layout Section
24925 \begin_inset CommandInset label
24927 name "sec:Footnotes"
24932 \begin_inset Index idx
24935 \begin_layout Plain Layout
24942 \begin_inset Index idx
24945 \begin_layout Plain Layout
24954 \begin_layout Standard
24955 Footnotes can be inserted using the toolbar button
24956 \begin_inset Graphics
24957 filename ../images/footnote-insert.png
24959 scaleBeforeRotation
24965 Insert\SpecialChar \menuseparator
24977 then the following footnote-box:
24978 \begin_inset Graphics
24979 filename clipart/footnoteQt4.png
24981 scaleBeforeRotation
24989 where you can enter the footnote text.
24990 If you want to turn existing text into a footnote, mark it and click on
25012 to text, press the Backspace key when the cursor is in the first position
25021 , or press the Delete key when the cursor is in the very last position of
25033 \begin_layout Standard
25034 Here is an example footnote:
25042 \begin_layout Plain Layout
25043 \begin_inset CommandInset label
25045 name "foot:This-is-an"
25049 This is an example footnote.
25062 \begin_layout Plain Layout
25066 newcounter{MyRepeatFoot}
25069 \begin_layout Plain Layout
25073 setcounter{MyRepeatFoot}{
25083 \begin_layout Standard
25084 The footnote will appear in the output as a superscript number at the text
25085 position where the footnote box is placed.
25086 The footnote text is placed at the bottom of the current page.
25087 The footnote number is calculated by LaTeX; the numbers are consecutive.
25088 It depends on your document-class, whether the footnote number is reset
25092 \begin_layout Standard
25093 Footnotes can be referenced like floats: Insert a label into the footnote
25094 and cross-reference this label in the text as described in section
25095 \begin_inset space ~
25099 \begin_inset CommandInset ref
25101 reference "sec:Referencing-Floats"
25106 \begin_inset Newline newline
25109 This is a cross-reference of Footnote
25110 \begin_inset space ~
25114 \begin_inset CommandInset ref
25116 reference "foot:This-is-an"
25123 \begin_layout Standard
25124 \begin_inset VSpace defskip
25127 Footnotes in tables are not printed by LaTeX due to technical reasons.
25128 However there exists another method to print them: Instead of the footnote
25135 is inserted as TeX-code.
25136 The text of the footnote is entered as an argument of the TeX-code command
25144 \begin_inset Newline newline
25147 This was done for the following table with the command
25150 \begin_layout Standard
25157 Printed table footnote.
25162 \begin_layout Standard
25163 \begin_inset Tabular
25164 <lyxtabular version="3" rows="2" columns="1">
25165 <features tabularvalignment="middle">
25166 <column alignment="center" valignment="top" width="0">
25168 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25171 \begin_layout Plain Layout
25172 This an example text.
25176 \begin_layout Plain Layout
25177 This footnote will not be printed!
25189 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25192 \begin_layout Plain Layout
25193 This an example text.
25197 \begin_layout Plain Layout
25220 \begin_layout Plain Layout
25229 Printed table footnote.
25233 \begin_layout Plain Layout
25243 \begin_layout Standard
25244 Footnotes in longtables are described in section
25245 \begin_inset space ~
25249 \begin_inset CommandInset ref
25251 reference "sub:Footnotes-in-Longtables"
25258 \begin_layout Standard
25259 Footnotes in minipage boxes are printed, but inside the box and with a different
25260 numbering because a minipage box is like a page inside a page.
25261 (For more about minipages, see section
25262 \begin_inset space ~
25266 \begin_inset CommandInset ref
25268 reference "sec:Minipages"
25272 .) To get a footnote in the minipage that is output at the bottom of the
25273 page like normal footnotes, also use the method of
25288 \begin_layout Standard
25289 \begin_inset Box Frameless
25299 height_special "totalheight"
25302 \begin_layout Plain Layout
25303 This an example text in a minipage.
25307 \begin_layout Plain Layout
25308 Footnote in the minipage.
25316 \begin_layout Plain Layout
25317 This an example text in a minipage.
25321 \begin_layout Plain Layout
25338 \begin_layout Standard
25342 \begin_layout Plain Layout
25351 Footnote outside the minipage.
25355 \begin_layout Plain Layout
25365 \begin_layout Standard
25366 \begin_inset VSpace defskip
25372 \begin_layout Standard
25373 To refer to the same footnote several times without printing the footnote
25374 text every time, use the command
25378 footnotemark[number]
25381 \begin_inset Newline newline
25384 As you do not know the number of the repeating footnote while you are writing
25385 the text, you have to store its number.
25386 For the following footnote mark example, these commands were inserted in
25387 TeX-code after Footnote
25388 \begin_inset space ~
25392 \begin_inset CommandInset ref
25394 reference "foot:This-is-an"
25398 to store the footnote number:
25401 \begin_layout Standard
25406 newcounter{MyRepeatFoot}
25407 \begin_inset Newline newline
25412 setcounter{MyRepeatFoot}{
25417 \begin_layout Standard
25418 The footnote mark was then created with this command:
25421 \begin_layout Standard
25431 \begin_layout Standard
25432 Here is a repeated footnote:
25440 \begin_layout Plain Layout
25454 \begin_layout Standard
25455 If you want to repeat the previous footnote, you can omit the storage of
25456 the footnote number and just use this command instead:
25459 \begin_layout Standard
25469 \begin_layout Standard
25470 Here is another repeated footnote:
25478 \begin_layout Plain Layout
25492 \begin_layout Subsection
25494 \begin_inset CommandInset label
25496 name "sub:Footnote-Numbering"
25501 \begin_inset Index idx
25504 \begin_layout Plain Layout
25505 Footnotes ! Numbering
25513 \begin_layout Standard
25514 To reset the footnote number back to 1 after each section
25516 , add this command to your document preamble:
25519 \begin_layout Standard
25524 @addtoreset{footnote}{section}
25527 \begin_layout Standard
25528 \begin_inset VSpace bigskip
25531 The following preamble command changes the footnote numbering style to small
25535 \begin_layout Standard
25547 \begin_layout Standard
25551 \begin_layout Plain Layout
25564 This is a footnote with roman numbering:
25568 \begin_layout Plain Layout
25569 This is an example footnote with roman numbering.
25577 \begin_layout Standard
25578 To change the numbering style to capital roman numerals replace in the command
25593 \begin_inset Quotes eld
25597 \begin_inset Quotes erd
25600 footnotes with capital or small Latin letters use
25614 \begin_inset Quotes eld
25618 \begin_inset Quotes erd
25621 footnotes with symbols use
25630 \begin_layout Standard
25631 \begin_inset Note Greyedout
25634 \begin_layout Plain Layout
25639 You can only number 26 footnotes with Latin letters, because this numbering
25640 is limited to single letters.
25646 \begin_inset Newline newline
25650 \begin_inset Note Greyedout
25653 \begin_layout Plain Layout
25658 You can only number 9 footnotes with symbols.
25666 \begin_layout Standard
25667 To return to the default numbering style after you have changed to another
25680 in the command above.
25684 \begin_layout Plain Layout
25700 \begin_layout Standard
25701 \begin_inset VSpace bigskip
25707 \begin_layout Standard
25708 If you want to have footnotes numbered in the scheme
25709 \begin_inset Quotes eld
25713 \begin_inset Quotes erd
25716 , add the following command to your document preamble:
25719 \begin_layout Standard
25724 numberwithin{footnote}{chapter}
25727 \begin_layout Standard
25728 To be able to use the command
25737 \begin_inset space ~
25742 in the document settings the option
25745 \begin_inset space ~
25749 \begin_inset space ~
25753 \begin_inset space ~
25761 \begin_layout Standard
25765 \begin_layout Plain Layout
25769 numberwithin{footnote}{chapter}
25774 This is another example footnote:
25780 \begin_layout Plain Layout
25781 This is a footnote numbered in the scheme
25782 \begin_inset Quotes eld
25786 \begin_inset Quotes erd
25800 \begin_layout Plain Layout
25816 \begin_layout Standard
25817 \begin_inset Note Greyedout
25820 \begin_layout Plain Layout
25831 always prints out the footnote number as arabic number; previous redefinitions
25832 to get non-arabic numbers are overwritten.
25840 \begin_layout Standard
25841 So to get for example the scheme
25842 \begin_inset Quotes eld
25848 \begin_inset Quotes erd
25851 , use this command instead of
25860 \begin_layout Standard
25874 \begin_layout Subsection
25876 \begin_inset Index idx
25879 \begin_layout Plain Layout
25880 Footnotes ! Placement
25888 \begin_layout Standard
25889 If you have several footnotes in one page, they appear without vertical
25890 space between them at the bottom of the page.
25891 To make them more readable you can e.
25892 \begin_inset space \thinspace{}
25896 \begin_inset space \space{}
25900 \begin_inset space \thinspace{}
25903 mm space with the following preamble command:
25906 \begin_layout Standard
25916 \begin_inset Newline newline
25930 \begin_layout Standard
25931 \begin_inset VSpace bigskip
25934 In a two-column document the footnotes appear at the bottom of every column,
25936 \begin_inset space ~
25940 \begin_inset CommandInset ref
25942 reference "fig:Standard-footnote-placement"
25947 If the footnotes should only appear at the bottom of the right column,
25949 \begin_inset space ~
25953 \begin_inset CommandInset ref
25955 reference "fig:Footnote-placement-in"
25959 , use the LaTeX-package
25964 \begin_inset Index idx
25967 \begin_layout Plain Layout
25968 LaTeX-packages ! ftnright
25973 with this command in the document preamble:
25976 \begin_layout Standard
25981 usepackage{ftnright}
25984 \begin_layout Standard
25985 \begin_inset Float figure
25991 \begin_layout Plain Layout
25995 \begin_layout Plain Layout
26005 \begin_inset Graphics
26006 filename clipart/without_fntright.pdf
26008 scaleBeforeRotation
26016 \begin_layout Plain Layout
26026 \begin_layout Plain Layout
26027 \begin_inset Caption
26029 \begin_layout Plain Layout
26030 \begin_inset CommandInset label
26032 name "fig:Standard-footnote-placement"
26036 Standard footnote placement in two-column documents.
26049 \begin_layout Standard
26050 \begin_inset Float figure
26056 \begin_layout Plain Layout
26060 \begin_layout Plain Layout
26070 \begin_inset Graphics
26071 filename clipart/with_fntright.pdf
26073 scaleBeforeRotation
26081 \begin_layout Plain Layout
26091 \begin_layout Plain Layout
26092 \begin_inset Caption
26094 \begin_layout Plain Layout
26095 \begin_inset CommandInset label
26097 name "fig:Footnote-placement-in"
26101 Footnote placement in two-column documents when the LaTeX-package
26118 \begin_layout Standard
26119 \begin_inset VSpace bigskip
26122 In some scientific literature it is usual to collect the footnotes and print
26123 them in a separate paragraph at the end of a section, as in Figure
26124 \begin_inset space ~
26128 \begin_inset CommandInset ref
26130 reference "fig:Endnotes"
26135 They are then called
26136 \begin_inset Quotes eld
26140 \begin_inset Quotes erd
26144 \begin_inset Index idx
26147 \begin_layout Plain Layout
26153 To use endnotes instead of footnotes in your document, load in the menu
26156 Document\SpecialChar \menuseparator
26157 Settings\SpecialChar \menuseparator
26163 \begin_inset space ~
26167 \begin_inset space ~
26173 To insert the collected footnotes, insert the command
26176 \begin_layout Standard
26184 \begin_layout Standard
26185 in TeX-Code at the end of a section or chapter.
26188 \begin_layout Standard
26189 \begin_inset Float figure
26194 \begin_layout Plain Layout
26199 \begin_layout Plain Layout
26209 \begin_inset Graphics
26210 filename clipart/endnotes.pdf
26211 scaleBeforeRotation
26219 \begin_layout Plain Layout
26229 \begin_layout Plain Layout
26230 \begin_inset Caption
26232 \begin_layout Plain Layout
26233 \begin_inset CommandInset label
26235 name "fig:Endnotes"
26239 Endnotes – footnotes are printed in a separate paragraph at the end of sections
26253 \begin_layout Standard
26254 \begin_inset VSpace medskip
26257 The paragraph heading for the endnotes isn't automatically translated into
26258 the document language, this must be done manually.
26259 The following preamble command translates the default English
26260 \begin_inset Quotes eld
26264 \begin_inset Quotes erd
26268 \begin_inset Quotes eld
26272 \begin_inset Quotes erd
26278 \begin_layout Standard
26285 notesname}{Anmerkungen}
26288 \begin_layout Standard
26289 \begin_inset VSpace medskip
26292 The numbering of endnotes can be changed like the footnote numbering as
26293 described in section
26294 \begin_inset space ~
26298 \begin_inset CommandInset ref
26300 reference "sub:Footnote-Numbering"
26304 ; just replace the command
26317 To reset the endnote number use the command
26323 as described in section
26324 \begin_inset space ~
26328 \begin_inset CommandInset ref
26330 reference "sub:Footnote-Numbering"
26334 and replace the command parameter
26345 \begin_layout Standard
26346 For endnotes there is the command
26350 endnotemark[number]
26352 similar to the command
26358 , that is described in section
26359 \begin_inset space ~
26363 \begin_inset CommandInset ref
26365 reference "sec:Footnotes"
26372 \begin_layout Standard
26373 \begin_inset VSpace bigskip
26376 Footnotes can also be placed in the page margin and the footnote text alignment
26377 can be changed, see the LaTeX-package
26382 \begin_inset Index idx
26385 \begin_layout Plain Layout
26386 LaTeX-packages ! footmisc
26392 \begin_inset CommandInset citation
26398 for more information about this.
26401 \begin_layout Standard
26402 For various further footnote formatting issues have a look at LaTeX-books,
26404 \begin_inset CommandInset citation
26406 key "latexcompanion,latexguide,latexbook"
26416 \begin_inset Index idx
26419 \begin_layout Plain Layout
26420 LaTeX-packages ! KOMA-Script
26425 document class, you can adjust all footnote settings using class-specific
26427 \begin_inset CommandInset citation
26436 \begin_layout Section
26438 \begin_inset Index idx
26441 \begin_layout Plain Layout
26442 Notes ! Margin Notes
26450 \begin_layout Standard
26451 Margin notes look and behave in LyX like footnotes.
26452 They are inserted via the menu
26454 Insert\SpecialChar \menuseparator
26456 \begin_inset space ~
26461 or the toolbar button
26462 \begin_inset Graphics
26463 filename ../images/marginalnote-insert.png
26465 scaleBeforeRotation
26480 \begin_inset Quotes eld
26484 \begin_inset Quotes erd
26487 appears where you can enter the text of the margin note.
26490 \begin_layout Standard
26491 At the side is an example margin note.
26496 \begin_inset Marginal
26499 \begin_layout Plain Layout
26500 This is a margin note.
26508 \begin_layout Standard
26509 Margin notes appear at the right side in single-sided documents.
26510 In double-sided documents they appear in the outer margin – left on even
26511 pages, right on odd pages.
26512 The text of margin notes is aligned opposite to the outer margin – right-aligne
26513 d when the note appears in the left margin.
26514 The first line of the margin note is placed at the position of the text
26515 line where it is inserted in the document.
26518 \begin_layout Standard
26519 \begin_inset VSpace bigskip
26522 To place the margin note in the inner margin, add the command
26525 \begin_layout Standard
26533 \begin_layout Standard
26534 in TeX-Code before a margin note.
26535 The new placement is valid for all subsequent margin notes.
26540 \begin_layout Plain Layout
26550 \begin_inset Marginal
26553 \begin_layout Plain Layout
26554 This is a margin note in the inner margin.
26562 \begin_inset Newline newline
26568 \begin_inset Note Greyedout
26571 \begin_layout Plain Layout
26576 There is often not enough space in the inner margin so that the notes are
26577 not correctly displayed in the output.
26585 \begin_layout Standard
26586 To return to the default placement insert the command
26589 \begin_layout Standard
26597 \begin_layout Standard
26602 \begin_layout Plain Layout
26612 \begin_inset Note Greyedout
26615 \begin_layout Plain Layout
26620 The command is ignored when it is within a paragraph where also the command
26635 \begin_layout Standard
26636 \begin_inset VSpace bigskip
26643 \begin_inset Marginal
26646 \begin_layout Plain Layout
26647 AVeryLongMarginParWord that isn't hyphenated.
26655 Similar to the case described in section
26656 \begin_inset space ~
26660 \begin_inset CommandInset ref
26662 reference "sub:Multiple-Lines-in"
26666 , long words cannot be hyphenated when they are the first word in a margin
26668 To avoid this, insert 0
26669 \begin_inset space \thinspace{}
26672 pt horizontal space before the word
26677 \begin_inset Marginal
26680 \begin_layout Plain Layout
26681 \begin_inset space \hspace*{}
26685 AVeryLongMarginParWord that is hyphenated.
26693 \begin_layout Standard
26694 \begin_inset VSpace bigskip
26700 \begin_layout Standard
26701 \begin_inset Note Greyedout
26704 \begin_layout Plain Layout
26709 Margin notes can normally not be used inside tables, floats, and footnotes.
26717 \begin_layout Standard
26718 \begin_inset VSpace bigskip
26724 \begin_layout Standard
26728 \begin_layout Plain Layout
26738 \begin_inset Note Note
26741 \begin_layout Plain Layout
26742 The following section will only be displayed when the LaTeX-package
26754 \begin_layout Standard
26755 This restriction can be evaded by using the LaTeX-package
26760 \begin_inset Index idx
26763 \begin_layout Plain Layout
26764 LaTeX-packages ! marginnote
26770 By adding these two lines to your document preamble, the command used by
26771 LyX for margin notes is redefined to use the command provided by the
26778 \begin_layout Standard
26783 usepackage{marginnote}
26784 \begin_inset Newline newline
26796 \begin_layout Standard
26797 This is also used in this document because
26801 has another useful feature: You can set a vertical offset for the note.
26802 This is often needed when too many margin notes are too close together
26803 or for a better page layout.
26804 The offset is set in LyX as TeX-Code directly after the margin note in
26808 \begin_layout Standard
26814 \begin_layout Standard
26815 where the offset is a length with one of the units listed in Table
26816 \begin_inset space ~
26820 \begin_inset CommandInset ref
26822 reference "tab:Units"
26827 A negative value shifts the note up, a positive value shifts it down.
26831 For example the margin note beside this text line is shifted up 1.5
26832 \begin_inset space \thinspace{}
26835 cm with the TeX-Code-command
26836 \begin_inset Quotes eld
26846 \begin_inset Quotes erd
26850 \begin_inset Marginal
26853 \begin_layout Plain Layout
26854 This margin note is shifted up 1.5
26855 \begin_inset space \thinspace{}
26858 cm from its original position.
26870 \begin_layout Plain Layout
26880 \begin_layout Standard
26881 \begin_inset VSpace medskip
26888 you can also change the alignment of the text in the margin note.
26889 For example the commands
26892 \begin_layout Standard
26899 raggedleftmarginnote}{
26902 \begin_inset Newline newline
26909 raggedrightmarginnote}{
26914 \begin_layout Standard
26915 set the alignment to centered.
26920 raggedleftmarginnote
26922 denotes margin notes that appear at the left side.
26929 \begin_layout Plain Layout
26935 raggedleftmarginnote}{
26940 \begin_layout Plain Layout
26946 raggedrightmarginnote}{
26954 \begin_inset Marginal
26957 \begin_layout Plain Layout
26958 The text of this margin note is centered.
26969 \begin_layout Standard
26976 raggedleftmarginnote}{
26979 \begin_inset Newline newline
26986 raggedrightmarginnote}{
26995 \begin_layout Plain Layout
27001 raggedleftmarginnote}{
27006 \begin_layout Plain Layout
27012 raggedrightmarginnote}{
27022 \begin_layout Standard
27023 \begin_inset VSpace medskip
27026 For the other features of
27030 refer to its documentation
27031 \begin_inset CommandInset citation
27040 \begin_layout Standard
27041 \begin_inset VSpace bigskip
27044 You can adjust the layout of margin notes by changing its definition.
27045 To create for example a header for all margin notes with the underlined,
27046 sans-serif, and bold header text
27047 \begin_inset Quotes eld
27059 \begin_inset Quotes erd
27062 , add this to your document preamble:
27065 \begin_layout Standard
27075 \begin_inset Newline newline
27085 \begin_inset Newline newline
27089 \begin_inset Phantom HPhantom
27092 \begin_layout Plain Layout
27095 \begin_inset space ~
27111 underbar{Attention!}}}%
27112 \begin_inset Newline newline
27116 \begin_inset Phantom HPhantom
27119 \begin_layout Plain Layout
27122 \begin_inset space ~
27139 \begin_layout Standard
27146 \begin_layout Plain Layout
27157 \begin_layout Plain Layout
27168 \begin_layout Plain Layout
27176 underbar{Attention!}}}%
27179 \begin_layout Plain Layout
27193 \begin_inset Marginal
27196 \begin_layout Plain Layout
27197 This is a margin note with a defined heading.
27209 \begin_layout Plain Layout
27223 \begin_layout Plain Layout
27240 \begin_inset Note Note
27243 \begin_layout Plain Layout
27244 The margin note format is changed only for this example.
27252 \begin_layout Standard
27256 \begin_layout Plain Layout
27266 \begin_inset Note Note
27269 \begin_layout Plain Layout
27270 The following will be displayed when the LaTeX-package
27282 \begin_layout Standard
27283 You need to install the LaTeX-package
27287 to see the following part of this section in the output.
27290 \begin_layout Standard
27294 \begin_layout Plain Layout
27306 \begin_layout Chapter
27310 \begin_layout Section
27312 \begin_inset Index idx
27315 \begin_layout Plain Layout
27316 Boxes ! Introduction
27324 \begin_layout Standard
27325 Boxes are used to format a block of text.
27326 Boxes can be used to write documents with multiple languages, see section
27327 \begin_inset space ~
27331 \begin_inset CommandInset ref
27333 reference "sec:Minipages"
27337 , to frame texts, see section
27338 \begin_inset space ~
27342 \begin_inset CommandInset ref
27344 reference "sec:Decoration"
27348 , to prevent words from being hyphenated, see section
27349 \begin_inset space ~
27353 \begin_inset CommandInset ref
27355 reference "sec:Prevent-Hyphenation"
27359 , to align text, see section
27360 \begin_inset space ~
27364 \begin_inset CommandInset ref
27366 reference "sub:Vertical-Alignment"
27370 , or to set the background color of texts, see section
27371 \begin_inset space ~
27375 \begin_inset CommandInset ref
27377 reference "sec:Colored-Boxes"
27384 \begin_layout Standard
27385 Boxes can be inserted with the menu
27387 Insert\SpecialChar \menuseparator
27390 or the toolbar button
27391 \begin_inset Graphics
27392 filename ../images/box-insert.png
27394 scaleBeforeRotation
27399 A grey box with the label
27404 \begin_inset Graphics
27405 filename clipart/BoxInsetDefaultQt4.png
27407 scaleBeforeRotation
27412 The box type can be specified by right-clicking on the box and selecting
27418 The box dialog offers the
27421 \begin_inset space ~
27443 is the default for new boxes and is explained in section
27444 \begin_inset space ~
27448 \begin_inset CommandInset ref
27450 reference "sec:Minipages"
27458 is described in section
27459 \begin_inset space ~
27463 \begin_inset CommandInset ref
27465 reference "sec:Parboxes"
27474 \begin_inset CommandInset ref
27476 reference "sec:Prevent-Hyphenation"
27483 \begin_layout Standard
27484 Boxes are not numbered and can therefore not be referenced like floats or
27488 \begin_layout Standard
27489 \begin_inset Note Greyedout
27492 \begin_layout Plain Layout
27497 Boxes must not be the item in an
27513 \begin_layout Standard
27514 \begin_inset Note Greyedout
27517 \begin_layout Plain Layout
27522 For an unknown reason you can only set the
27525 \begin_inset space ~
27534 when you use a framed box.
27538 \begin_inset space ~
27543 type and without frames are explained in section
27544 \begin_inset space ~
27548 \begin_inset CommandInset ref
27550 reference "sec:Prevent-Hyphenation"
27562 \begin_layout Section
27564 \begin_inset CommandInset label
27566 name "sec:Box-Dialog"
27571 \begin_inset Index idx
27574 \begin_layout Plain Layout
27583 \begin_layout Subsection
27585 \begin_inset Index idx
27588 \begin_layout Plain Layout
27597 \begin_layout Standard
27598 In the box dialog you can adjust the box geometry in the fields
27607 The available units for the geometry are explained in Table
27608 \begin_inset space ~
27612 \begin_inset CommandInset ref
27614 reference "tab:Units"
27623 offers the following additional sizes:
27626 \begin_layout Description
27627 Depth This is the plain text
27628 \begin_inset Quotes eld
27632 \begin_inset Quotes erd
27636 It ignores the total depth when there are multiple text lines in the box:
27637 \begin_inset Newline newline
27641 \begin_inset Newline newline
27645 \begin_inset Newline newline
27649 \begin_inset Box Boxed
27659 height_special "depth"
27662 \begin_layout Plain Layout
27664 Box height set to 1
27665 \begin_inset space \thinspace{}
27674 \begin_inset Newline newline
27678 \begin_inset Newline newline
27684 \begin_layout Description
27685 Height This is the height of the text that is inside the box.
27687 \begin_inset space \thinspace{}
27691 \begin_inset space \space{}
27694 2 for this size will set the box height to 2
27695 \begin_inset space ~
27698 times the text height:
27699 \begin_inset Box Boxed
27709 height_special "height"
27712 \begin_layout Plain Layout
27714 Box height set to 2
27715 \begin_inset space \thinspace{}
27726 \begin_layout Description
27728 \begin_inset space ~
27731 Height This is the Height
27732 \begin_inset space \thinspace{}
27736 \begin_inset space \thinspace{}
27740 \begin_inset Box Boxed
27750 height_special "totalheight"
27753 \begin_layout Plain Layout
27755 Box height set to 1
27756 \begin_inset space \thinspace{}
27760 \begin_inset space ~
27771 \begin_layout Description
27772 Width This sets the width of the box as height:
27773 \begin_inset Box Boxed
27783 height_special "width"
27786 \begin_layout Plain Layout
27788 Box height set to 1
27789 \begin_inset space \thinspace{}
27800 \begin_layout Subsection
27802 \begin_inset Index idx
27805 \begin_layout Plain Layout
27814 \begin_layout Standard
27815 When you have chosen an
27818 \begin_inset space ~
27823 , the vertical box alignment can be:
27826 \begin_layout Description
27827 Top This is an example text line.
27829 \begin_inset Box Boxed
27839 height_special "totalheight"
27842 \begin_layout Plain Layout
27844 This box is top-aligned.
27849 This is an example text line.
27852 \begin_layout Description
27853 Middle This is an example text line.
27855 \begin_inset Box Boxed
27865 height_special "totalheight"
27868 \begin_layout Plain Layout
27870 This box is middle-aligned.
27875 This is an example text line.
27878 \begin_layout Description
27879 Bottom This is an example text line.
27881 \begin_inset Box Boxed
27891 height_special "totalheight"
27894 \begin_layout Plain Layout
27896 This box is bottom-aligned.
27901 This is an example text line.
27904 \begin_layout Standard
27905 \begin_inset Note Greyedout
27908 \begin_layout Plain Layout
27913 The vertical box alignment can be lost in the output when you have two
27914 boxes in a line and one has e.
27915 \begin_inset space \thinspace{}
27919 \begin_inset space \space{}
27922 a shadow and the other one not.
27930 \begin_layout Standard
27931 The horizontal box alignment can be set via LyX's paragraph dialog when
27932 you set the box into its own paragraph.
27935 \begin_layout Standard
27936 \begin_inset VSpace bigskip
27939 When you have chosen an
27942 \begin_inset space ~
27947 , the box content can be aligned vertically to:
27950 \begin_layout Description
27951 top This is an example text line.
27953 \begin_inset Box Boxed
27963 height_special "totalheight"
27966 \begin_layout Plain Layout
27968 This box text is top-aligned.
27973 This is an example text line.
27976 \begin_layout Description
27977 middle This is an example text line.
27979 \begin_inset Box Boxed
27989 height_special "totalheight"
27992 \begin_layout Plain Layout
27994 This box text is middle-aligned.
27999 This is an example text line.
28002 \begin_layout Description
28003 bottom This is an example text line.
28005 \begin_inset Box Boxed
28015 height_special "totalheight"
28018 \begin_layout Plain Layout
28020 This box text is bottom-aligned.
28025 This is an example text line.
28028 \begin_layout Description
28029 stretch This is an example text line.
28031 \begin_inset Box Boxed
28041 height_special "totalheight"
28044 \begin_layout Plain Layout
28049 \begin_layout Plain Layout
28054 \begin_layout Plain Layout
28061 This is an example text line.
28064 \begin_layout Standard
28065 To stretch the box content, it must consist of more than one paragraph.
28066 In the example above every text line is in an own paragraph.
28069 \begin_layout Standard
28070 \begin_inset VSpace bigskip
28073 To align the box content horizontally you can use LyX's paragraph dialog
28074 when you have chosen an
28077 \begin_inset space ~
28085 \begin_layout Standard
28087 \begin_inset Box Boxed
28097 height_special "totalheight"
28100 \begin_layout Plain Layout
28105 \begin_layout Plain Layout
28110 \begin_layout Plain Layout
28120 \begin_layout Standard
28121 If you have not set an
28124 \begin_inset space ~
28129 , you can align the box content horizontally in the box dialog.
28132 \begin_layout Standard
28134 \begin_inset Box Boxed
28144 height_special "totalheight"
28147 \begin_layout Plain Layout
28148 This box text is horizontally stretched.
28156 \begin_layout Subsection
28158 \begin_inset CommandInset label
28160 name "sec:Decoration"
28165 \begin_inset Index idx
28168 \begin_layout Plain Layout
28177 \begin_layout Standard
28178 The type of the box can be specified in the box dialog in the drop-down
28184 The following types are possible:
28187 \begin_layout Description
28189 \begin_inset space ~
28192 frame Nothing is drawn.
28195 \begin_layout Description
28197 \begin_inset space ~
28201 \begin_inset space ~
28204 frame This draws a rectangular frame around the box.
28205 The frame line thickness has the size of
28213 \begin_inset Box Boxed
28223 height_special "totalheight"
28226 \begin_layout Plain Layout
28236 \begin_layout Description
28238 \begin_inset space ~
28242 \begin_inset space ~
28245 thin This draws an oval frame around the box.
28246 The frame line thickness has the size 0.4
28247 \begin_inset space \thinspace{}
28252 \begin_inset Box ovalbox
28262 height_special "totalheight"
28265 \begin_layout Plain Layout
28275 \begin_layout Description
28277 \begin_inset space ~
28281 \begin_inset space ~
28284 thick This draws an oval frame around the box.
28285 The frame line thickness has the size 0.8
28286 \begin_inset space \thinspace{}
28291 \begin_inset Box Ovalbox
28301 height_special "totalheight"
28304 \begin_layout Plain Layout
28314 \begin_layout Description
28316 \begin_inset space ~
28319 shadow This draws a rectangular frame with a shadow around the box.
28320 The frame line thickness has the size of
28326 , the shadow has a width of 4
28327 \begin_inset space \thinspace{}
28332 \begin_inset Box Shadowbox
28342 height_special "totalheight"
28345 \begin_layout Plain Layout
28355 \begin_layout Description
28357 \begin_inset space ~
28360 background This draws a box with a red background.
28361 Unlike colored boxes
28365 \begin_layout Plain Layout
28367 \begin_inset space \thinspace{}
28371 \begin_inset CommandInset ref
28373 reference "sec:Colored-Boxes"
28382 , it always uses the whole column width and the box is set as its own paragraph.
28384 \begin_inset Box Shaded
28394 height_special "totalheight"
28397 \begin_layout Plain Layout
28398 Shaded background box
28406 \begin_layout Description
28408 \begin_inset space ~
28412 \begin_inset space ~
28415 frame This draws a double-line rectangular frame around the box.
28416 The line thickness of the inner frame is 0.75
28417 \begin_inset space \thinspace{}
28426 , the thickness of the outer frame is 1.5
28427 \begin_inset space \thinspace{}
28437 The distance between the lines is 1.5
28438 \begin_inset space \thinspace{}
28448 \begin_inset space \thinspace{}
28452 \begin_inset space \thinspace{}
28456 \begin_inset space \thinspace{}
28461 \begin_inset Box Doublebox
28471 height_special "totalheight"
28474 \begin_layout Plain Layout
28476 Double rectangular box
28484 \begin_layout Standard
28485 \begin_inset VSpace bigskip
28488 LyX's box label will reflect the different frame types.
28489 To be able to use all types, the LaTeX-package
28494 \begin_inset Index idx
28497 \begin_layout Plain Layout
28498 LaTeX-packages ! fancybox
28506 \begin_layout Standard
28507 \begin_inset VSpace bigskip
28510 When you use the decoration
28512 simple rectangular frame
28514 and no inner box, you can allow page breaks within a box.
28515 Note that then, unlike other framed boxes, the frame always uses the whole
28516 column width, the box is set as its own paragraph, and
28528 have no effect on this box type.
28529 The frame line thickness has the size of
28537 \begin_inset Box Framed
28547 height_special "totalheight"
28550 \begin_layout Plain Layout
28551 Allow page break box
28559 \begin_layout Section
28561 \begin_inset Index idx
28564 \begin_layout Plain Layout
28565 Boxes ! Customization
28573 \begin_layout Standard
28574 The default value for the size
28581 \begin_inset space \thinspace{}
28585 It can be changed with the following command in TeX-code to e.
28586 \begin_inset space \thinspace{}
28590 \begin_inset space \space{}
28594 \begin_inset space \thinspace{}
28600 \begin_layout Standard
28610 \begin_layout Standard
28614 \begin_layout Plain Layout
28626 \begin_inset Box Boxed
28636 height_special "totalheight"
28639 \begin_layout Plain Layout
28641 Rectangular box with
28648 \begin_inset space \thinspace{}
28652 \begin_inset space \thinspace{}
28656 \begin_inset space \thinspace{}
28668 \begin_layout Plain Layout
28682 \begin_layout Standard
28683 \begin_inset VSpace bigskip
28686 The space between the frame and the box content is for all frame styles
28688 \begin_inset space \thinspace{}
28692 You can change it by setting the length
28699 For example the command
28702 \begin_layout Standard
28712 \begin_layout Standard
28713 sets the value to 10
28714 \begin_inset space \thinspace{}
28717 pt, as with the following box:
28720 \begin_layout Standard
28724 \begin_layout Plain Layout
28736 \begin_inset Box Boxed
28746 height_special "totalheight"
28749 \begin_layout Plain Layout
28751 Rectangular box with
28758 \begin_inset space \thinspace{}
28762 \begin_inset space \thinspace{}
28766 \begin_inset space \thinspace{}
28778 \begin_layout Plain Layout
28792 \begin_layout Standard
28793 \begin_inset VSpace bigskip
28796 The diameter of the round corners of the oval boxes can be set with the
28807 \begin_layout Standard
28815 \begin_layout Standard
28816 sets the diameter to 1
28817 \begin_inset space \thinspace{}
28824 \begin_layout Standard
28832 \begin_layout Standard
28833 sets the diameter to
28836 \begin_inset space \thinspace{}
28840 \begin_inset space \thinspace{}
28843 minimum(width and height of box)
28855 \begin_layout Standard
28859 \begin_layout Plain Layout
28869 \begin_inset Box Ovalbox
28879 height_special "totalheight"
28882 \begin_layout Plain Layout
28891 \begin_inset space \thinspace{}
28895 \begin_inset space \thinspace{}
28899 \begin_inset space \thinspace{}
28911 \begin_layout Plain Layout
28923 \begin_layout Standard
28924 \begin_inset VSpace bigskip
28927 The size of the shadow can be adjusted by changing the length
28935 \begin_inset space \thinspace{}
28938 pt for the following box by this command:
28941 \begin_layout Standard
28951 \begin_layout Standard
28955 \begin_layout Plain Layout
28967 \begin_inset Box Shadowbox
28977 height_special "totalheight"
28980 \begin_layout Plain Layout
28989 \begin_inset space \thinspace{}
28993 \begin_inset space \thinspace{}
28997 \begin_inset space \thinspace{}
29009 \begin_layout Plain Layout
29023 \begin_layout Standard
29024 \begin_inset VSpace bigskip
29030 \begin_layout Standard
29031 The default value for the size
29038 \begin_inset space \thinspace{}
29042 The default space between the note content and the frame is 9
29043 \begin_inset space \thinspace{}
29046 pt and can be changed with the value of
29053 For example the frame appearance of the following
29057 is set with the TeX-Code commands
29060 \begin_layout Standard
29068 \begin_inset Newline newline
29078 \begin_layout Standard
29082 \begin_layout Plain Layout
29091 \begin_layout Plain Layout
29103 \begin_inset Box Framed
29113 height_special "totalheight"
29116 \begin_layout Plain Layout
29130 \begin_layout Plain Layout
29139 \begin_layout Plain Layout
29153 \begin_layout Standard
29154 \begin_inset VSpace bigskip
29160 \begin_layout Standard
29165 boxes the default space between the box content and the box border is 3
29166 \begin_inset space \thinspace{}
29169 pt and can be changed with the value of
29176 The default background color red can either be changed locally with the
29181 definecolor{shadecolor}
29183 or globally with the menu
29185 Tools\SpecialChar \menuseparator
29186 Preferences\SpecialChar \menuseparator
29187 Colors\SpecialChar \menuseparator
29189 \begin_inset space ~
29201 command is explained in section
29202 \begin_inset space ~
29206 \begin_inset CommandInset ref
29208 reference "sec:Colored-Tables"
29216 \begin_layout Plain Layout
29223 requires the LaTeX-package
29227 in the preamble, see section
29228 \begin_inset space ~
29232 \begin_inset CommandInset ref
29234 reference "sec:Colored-Boxes"
29243 For example the appearance of the following shaded background box is set
29244 with the TeX-Code commands
29247 \begin_layout Standard
29257 \begin_inset Newline newline
29264 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29267 \begin_layout Standard
29271 \begin_layout Plain Layout
29280 \begin_layout Plain Layout
29284 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29290 \begin_inset Box Shaded
29300 height_special "totalheight"
29303 \begin_layout Plain Layout
29306 This is yellow text in a
29316 box with dark green background.
29325 \begin_layout Plain Layout
29334 \begin_layout Plain Layout
29338 definecolor{shadecolor}{rgb}{1,0,0}
29346 \begin_layout Standard
29347 \begin_inset VSpace bigskip
29350 Changed lengths and widths are valid for all boxes following the commands
29354 \begin_layout Section
29356 \begin_inset CommandInset label
29358 name "sec:Minipages"
29363 \begin_inset Index idx
29366 \begin_layout Plain Layout
29375 \begin_layout Standard
29376 Minipages are treated by LaTeX as pages within pages and can therefore for
29377 example have their own footnotes.
29380 \begin_layout Standard
29381 Minipages are useful when you write documents with different languages.
29384 \begin_layout Standard
29385 Below are two example minipages side by side.
29386 Their width is set to 45
29387 \begin_inset space \thinspace{}
29390 col% and they are separated by a horizontal fill, that was inserted via
29393 Insert\SpecialChar \menuseparator
29395 \begin_inset space ~
29398 Formatting\SpecialChar \menuseparator
29400 \begin_inset space ~
29406 \begin_inset Newpage newpage
29412 \begin_layout Standard
29413 \begin_inset Box Frameless
29423 height_special "totalheight"
29426 \begin_layout Plain Layout
29429 Dies ist ein deutscher Text.
29430 Dies ist ein deutscher Text.
29431 Dies ist ein deutscher Text.
29432 Dies ist ein deutscher Text.
29433 Dies ist ein deutscher Text.
29434 Dies ist ein deutscher Text.
29435 Dies ist ein deutscher Text.
29436 Dies ist ein deutscher Text.
29437 Dies ist ein deutscher Text.
29438 Dies ist ein deutscher Text.
29439 Dies ist ein deutscher Text.
29440 Dies ist ein deutscher Text.
29441 Dies ist ein deutscher Text
29445 \begin_layout Plain Layout
29448 Dies ist eine deutsche Fußnote.
29454 Dies ist ein deutscher Text.
29455 Dies ist ein deutscher Text.
29461 \begin_inset space \hfill{}
29465 \begin_inset Box Frameless
29475 height_special "totalheight"
29478 \begin_layout Plain Layout
29479 This is an English Text.
29480 This is an English Text.
29481 This is an English Text.
29482 This is an English Text.
29483 This is an English Text.
29484 This is an English Text.
29485 This is an English Text.
29486 This is an English Text.
29487 This is an English Text.
29488 This is an English Text.
29489 This is an English Text.
29490 This is an English Text.
29491 This is an English Text.
29492 This is an English Text.
29493 This is an English Text.
29494 This is an English Text.
29498 \begin_layout Plain Layout
29499 This is an English footnote.
29504 This is an English Text.
29513 \begin_layout Standard
29514 \begin_inset VSpace bigskip
29517 The document-wide paragraph settings are ignored within minipages.
29518 That means that there will be no space between paragraphs in minipages
29519 although you set it to e.
29520 \begin_inset space \thinspace{}
29524 \begin_inset space \space{}
29531 in the document settings.
29534 \begin_layout Standard
29535 Minipages can also be used to set a background color for text parts, see
29537 \begin_inset space ~
29541 \begin_inset CommandInset ref
29543 reference "sub:Color-for-Paragraphs"
29550 \begin_layout Standard
29551 \begin_inset Note Greyedout
29554 \begin_layout Plain Layout
29559 You cannot have floats or margin notes inside minipages but minipages can
29560 be used inside tables, floats, and other boxes.
29568 \begin_layout Section
29570 \begin_inset CommandInset label
29572 name "sec:Parboxes"
29577 \begin_inset Index idx
29580 \begin_layout Plain Layout
29589 \begin_layout Standard
29590 Parboxes are very similar to minipages with the difference that they cannot
29594 \begin_layout Standard
29596 \begin_inset Box Frameless
29606 height_special "totalheight"
29609 \begin_layout Plain Layout
29610 This a text within a parbox.
29611 This a text within a parbox.
29614 \begin_layout Plain Layout
29615 This footnote won't appear:
29619 \begin_layout Plain Layout
29620 This footnote is inside a parbox and will therefore not appear.
29633 \begin_layout Section
29634 Boxes for Words and Characters
29635 \begin_inset Index idx
29638 \begin_layout Plain Layout
29639 Boxes ! for Characters
29647 \begin_layout Subsection
29648 Prevent Hyphenation
29649 \begin_inset CommandInset label
29651 name "sec:Prevent-Hyphenation"
29656 \begin_inset Index idx
29659 \begin_layout Plain Layout
29660 Boxes ! to Prevent Hyphenation
29668 \begin_layout Standard
29669 You can use the box type
29673 to prevent words or text from being hyphenated.
29674 \begin_inset Newline newline
29677 Here is an example text:
29680 \begin_layout Standard
29681 This line is an example to show how you can prevent the hyphenation of
29682 \begin_inset Quotes eld
29686 \begin_inset Quotes erd
29692 \begin_layout Standard
29693 To prevent the hyphenation of the word
29694 \begin_inset Quotes eld
29698 \begin_inset Quotes erd
29701 , put the word into a box, set the
29704 \begin_inset space ~
29714 \begin_inset space \thinspace{}
29720 \begin_layout Standard
29721 This is the result:
29724 \begin_layout Standard
29725 This line is an example to show how you can prevent the hyphenation of
29726 \begin_inset Box Frameless
29736 height_special "totalheight"
29739 \begin_layout Plain Layout
29740 \begin_inset Quotes eld
29744 \begin_inset Quotes erd
29755 \begin_layout Standard
29756 You can alternatively set the command
29757 \begin_inset Quotes eld
29767 \begin_inset Quotes grd
29770 as TeX-Code directly before the word:
29773 \begin_layout Standard
29774 This line is an example to show how you can prevent the hyphenation of
29775 \begin_inset Quotes eld
29782 \begin_layout Plain Layout
29792 \begin_inset Quotes erd
29798 \begin_layout Standard
29799 Of course the word now protrudes over the side margin.
29800 To avoid this, add via the menu
29802 Insert\SpecialChar \menuseparator
29803 Formatting\SpecialChar \menuseparator
29805 \begin_inset space ~
29809 \begin_inset space ~
29817 arg "newline-insert newline"
29820 ) a line break before the word:
29823 \begin_layout Standard
29824 This line is an example to show how you can prevent the hyphenation of
29825 \begin_inset Newline newline
29829 \begin_inset Box Frameless
29839 height_special "totalheight"
29842 \begin_layout Plain Layout
29843 \begin_inset Quotes eld
29847 \begin_inset Quotes erd
29858 \begin_layout Subsection
29860 \begin_inset CommandInset label
29862 name "sub:Vertical-Alignment"
29867 \begin_inset Index idx
29870 \begin_layout Plain Layout
29871 Boxes ! for Vertical Alignment
29877 \begin_inset Index idx
29880 \begin_layout Plain Layout
29889 \begin_layout Standard
29890 With the help of the command
29896 you can align words, characters or other boxes vertically relative to the
29904 is used with the following scheme:
29907 \begin_layout Standard
29912 raisebox{lift}[height][depth]{box content}
29915 \begin_layout Standard
29916 The lift can be a positive value to raise the box or a negative value to
29920 \begin_layout Standard
29921 To align for example the word
29922 \begin_inset Quotes eld
29926 \begin_inset Quotes erd
29929 so that the bottom of the
29930 \begin_inset Quotes eld
29934 \begin_inset Quotes erd
29938 \begin_inset Quotes eld
29942 \begin_inset Quotes erd
29945 is at the baseline, insert the command
29948 \begin_layout Standard
29958 \begin_layout Standard
29959 in TeX-Code before the word.
29960 After the word insert a closing brace
29961 \begin_inset Quotes eld
29969 \begin_inset Quotes erd
29973 \begin_inset Newline newline
29976 This is the result:
29979 \begin_layout Standard
29980 This is a text line with the word
29984 \begin_layout Plain Layout
29996 \begin_inset Quotes eld
30000 \begin_inset Quotes erd
30007 \begin_layout Plain Layout
30017 \begin_layout Standard
30018 \begin_inset VSpace bigskip
30021 When you raise or lower characters in a line, the line distance will be
30025 \begin_layout Standard
30026 This is a text line with the word
30030 \begin_layout Plain Layout
30042 \begin_inset Quotes eld
30046 \begin_inset Quotes erd
30053 \begin_layout Plain Layout
30061 \begin_inset Newline newline
30064 This is a text line with the word
30068 \begin_layout Plain Layout
30078 \begin_inset Quotes eld
30082 \begin_inset Quotes erd
30089 \begin_layout Plain Layout
30099 \begin_layout Standard
30100 If you want to prevent this for a certain reason, set the box height to
30105 \begin_layout Standard
30115 \begin_layout Standard
30116 This is a text line with the word
30120 \begin_layout Plain Layout
30132 \begin_inset Quotes eld
30136 \begin_inset Quotes erd
30143 \begin_layout Plain Layout
30151 \begin_inset Newline newline
30154 This is a text line with the word
30158 \begin_layout Plain Layout
30162 raisebox{0.5cm}[0pt]{
30168 \begin_inset Quotes eld
30172 \begin_inset Quotes erd
30179 \begin_layout Plain Layout
30189 \begin_layout Section
30191 \begin_inset CommandInset label
30193 name "sec:Colored-Boxes"
30198 \begin_inset Index idx
30201 \begin_layout Plain Layout
30210 \begin_layout Subsection
30212 \begin_inset Index idx
30215 \begin_layout Plain Layout
30224 \begin_layout Standard
30225 To color the background of text the text must be put into a so called
30226 \begin_inset Quotes eld
30230 \begin_inset Quotes erd
30234 This requires that the LaTeX-package
30239 \begin_inset Index idx
30242 \begin_layout Plain Layout
30243 LaTeX-packages ! color
30248 is loaded in the document preamble with the command
30251 \begin_layout Standard
30256 @ifundefined{textcolor}
30257 \begin_inset Newline newline
30261 \begin_inset Phantom HPhantom
30264 \begin_layout Plain Layout
30267 \begin_inset space ~
30277 usepackage{color}}{}
30280 \begin_layout Standard
30285 will be loaded automatically by LyX when you color text.
30289 \begin_layout Plain Layout
30290 To avoid it being loaded twice the command
30304 \begin_layout Standard
30305 \begin_inset VSpace medskip
30308 Colorboxes are created with the command
30315 This will be used with the following scheme:
30318 \begin_layout Standard
30323 colorbox{color}{box content}
30326 \begin_layout Standard
30327 The box content can also be a box and colorboxes can also be within other
30331 \begin_layout Standard
30332 The following colors are predefined:
30333 \begin_inset Newline newline
30372 \begin_inset Newline newline
30375 You can also define your own color as described in section
30376 \begin_inset space ~
30380 \begin_inset CommandInset ref
30382 reference "sec:Colored-Tables"
30389 \begin_layout Standard
30391 \begin_inset space \thinspace{}
30395 \begin_inset space \space{}
30398 a red background for a word, insert the command
30401 \begin_layout Standard
30409 \begin_layout Standard
30410 before the word in TeX-Code.
30411 After the word insert a closing brace
30412 \begin_inset Quotes eld
30420 \begin_inset Quotes erd
30424 \begin_inset Newline newline
30427 This is the result:
30430 \begin_layout Standard
30431 This is a line where the word
30435 \begin_layout Plain Layout
30445 \begin_inset Quotes eld
30449 \begin_inset Quotes erd
30456 \begin_layout Plain Layout
30463 has a red background.
30466 \begin_layout Standard
30467 \begin_inset VSpace bigskip
30470 If you would like the box frame in a different color, you can use the command
30477 with the following scheme:
30480 \begin_layout Standard
30485 fcolorbox{frame color}{box color}{box content}
30488 \begin_layout Standard
30502 The frame thickness and the space between the frame and the box content
30503 can be adjusted with the lengths
30515 , respectively, as described in section
30516 \begin_inset space ~
30520 \begin_inset CommandInset ref
30522 reference "sec:Decoration"
30529 \begin_layout Standard
30530 For the following example the command
30533 \begin_layout Standard
30538 fcolorbox{cyan}{magenta}{
30541 \begin_layout Standard
30545 \begin_layout Standard
30546 Here is an example where the frame line thickness was set to 1
30547 \begin_inset space \thinspace{}
30551 \begin_inset Newline newline
30558 \begin_layout Plain Layout
30573 \begin_layout Plain Layout
30577 fcolorbox{cyan}{magenta}{
30582 This is text within a colored, framed box.
30586 \begin_layout Plain Layout
30596 \begin_layout Standard
30597 \begin_inset VSpace bigskip
30600 Of course you can also have colored text inside a colorbox:
30601 \begin_inset Newline newline
30608 \begin_layout Plain Layout
30612 fcolorbox{cyan}{magenta}{
30619 This is colored text within a colored, framed box.
30625 \begin_layout Plain Layout
30636 \begin_layout Plain Layout
30650 \begin_layout Standard
30651 \begin_inset VSpace medskip
30657 \begin_layout Standard
30658 \begin_inset Note Greyedout
30661 \begin_layout Plain Layout
30666 Text in colorboxes cannot have line breaks.
30667 To color multiple text lines or paragraphs, use a box inside a colorbox
30668 as described in the following.
30676 \begin_layout Subsection
30677 Color for Paragraphs
30678 \begin_inset CommandInset label
30680 name "sub:Color-for-Paragraphs"
30685 \begin_inset Index idx
30688 \begin_layout Plain Layout
30689 Color ! for Paragraphs
30697 \begin_layout Standard
30698 To set the background color for more than one text line, put the text into
30700 Before the minipage insert the
30709 \begin_layout Standard
30717 \begin_layout Standard
30719 After the minipage insert a closing brace
30720 \begin_inset Quotes eld
30728 \begin_inset Quotes erd
30734 \begin_layout Standard
30738 \begin_layout Plain Layout
30742 colorbox{lightgrey}{
30748 \begin_inset Box Frameless
30758 height_special "totalheight"
30761 \begin_layout Plain Layout
30762 This is text with background color.
30763 This is text with background color.
30766 \begin_layout Plain Layout
30767 \begin_inset VSpace defskip
30770 The text can have footnotes
30774 \begin_layout Plain Layout
30775 Another example footnote
30780 and can include tables and figures.
30783 \begin_layout Plain Layout
30785 \begin_inset Tabular
30786 <lyxtabular version="3" rows="3" columns="3">
30787 <features tabularvalignment="middle">
30788 <column alignment="center" valignment="top" width="0">
30789 <column alignment="center" valignment="top" width="0">
30790 <column alignment="center" valignment="top" width="0">
30792 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30795 \begin_layout Plain Layout
30801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30804 \begin_layout Plain Layout
30810 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30813 \begin_layout Plain Layout
30821 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30824 \begin_layout Plain Layout
30830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30833 \begin_layout Plain Layout
30835 \begin_inset Quotes erd
30843 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30846 \begin_layout Plain Layout
30854 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30857 \begin_layout Plain Layout
30863 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30866 \begin_layout Plain Layout
30872 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30875 \begin_layout Plain Layout
30895 \begin_layout Plain Layout
30905 \begin_layout Section
30906 Rotated and Scaled Boxes
30909 \begin_layout Standard
30910 To use the commands described in this section, the LaTeX-package
30915 \begin_inset Index idx
30918 \begin_layout Plain Layout
30919 LaTeX-packages ! graphicx
30924 needs to be loaded in the document preamble with the command
30927 \begin_layout Standard
30932 @ifundefined{rotatebox}
30933 \begin_inset Newline newline
30937 \begin_inset Phantom HPhantom
30940 \begin_layout Plain Layout
30943 \begin_inset space ~
30953 usepackage{graphicx}}{}
30956 \begin_layout Standard
30957 \begin_inset Note Greyedout
30960 \begin_layout Plain Layout
30965 Some DVI-viewers can't display rotated or scaled material.
30973 \begin_layout Standard
30974 \begin_inset Note Greyedout
30977 \begin_layout Plain Layout
30982 Floats mustn't be inside a rotated or scaled box.
30990 \begin_layout Subsection
30992 \begin_inset Index idx
30995 \begin_layout Plain Layout
31002 \begin_inset Index idx
31005 \begin_layout Plain Layout
31012 \begin_inset Index idx
31015 \begin_layout Plain Layout
31022 \begin_inset Index idx
31025 \begin_layout Plain Layout
31026 Table Customization ! Rotating
31034 \begin_layout Standard
31035 To rotate material, you can put it into a rotated box.
31036 Such a box is created using the command
31042 in TeX-Code with the following scheme:
31045 \begin_layout Standard
31050 rotatebox[rotation origin]{rotation angle}{box content}
31053 \begin_layout Standard
31054 The rotation origin is specified in the form
31059 The following positions are possible:
31079 (top), along with meaningful combinations of the four base positions.
31084 means that the rotation origin is at the top left corner of the box.
31085 When no rotation origin is specified, the position
31090 The rotation angle is a number that can be negative that specifies the
31092 The rotation direction is counterclockwise.
31095 \begin_layout Standard
31096 In the following example the command
31100 rotatebox[origin=c]{60}{
31102 was inserted as TeX-Code before the text
31103 \begin_inset Quotes eld
31107 \begin_inset Quotes erd
31110 ; after the text the box was closed by a closing brace
31117 \begin_layout Standard
31122 \begin_layout Plain Layout
31126 rotatebox[origin=c]{60}{
31135 \begin_layout Plain Layout
31145 \begin_layout Standard
31146 The box content can also be another box or an inline formula:
31149 \begin_layout Standard
31154 \begin_layout Plain Layout
31158 rotatebox[origin=r]{-60}{
31164 \begin_inset Box Doublebox
31174 height_special "totalheight"
31177 \begin_layout Plain Layout
31187 \begin_layout Plain Layout
31198 \begin_layout Plain Layout
31202 rotatebox[origin=lb]{60}{
31208 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31215 \begin_layout Plain Layout
31225 \begin_layout Standard
31226 or an image or table:
31229 \begin_layout Standard
31234 \begin_layout Plain Layout
31238 rotatebox[origin=lb]{90}{
31244 \begin_inset Graphics
31245 filename clipart/platypus.eps
31255 \begin_layout Plain Layout
31262 with a rotated image
31266 \begin_layout Plain Layout
31270 rotatebox[origin=l]{-90}{
31276 \begin_inset Tabular
31277 <lyxtabular version="3" rows="2" columns="2">
31278 <features tabularvalignment="middle">
31279 <column alignment="center" valignment="top" width="0">
31280 <column alignment="center" valignment="top" width="0">
31282 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31285 \begin_layout Plain Layout
31291 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31294 \begin_layout Plain Layout
31302 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31305 \begin_layout Plain Layout
31311 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31314 \begin_layout Plain Layout
31329 \begin_layout Plain Layout
31339 \begin_layout Subsection
31341 \begin_inset Index idx
31344 \begin_layout Plain Layout
31351 \begin_inset Index idx
31354 \begin_layout Plain Layout
31361 \begin_inset Index idx
31364 \begin_layout Plain Layout
31371 \begin_inset Index idx
31374 \begin_layout Plain Layout
31375 Table Customization ! Scaling
31383 \begin_layout Standard
31384 To scale material the commands
31396 can be used as TeX-Code.
31399 \begin_layout Standard
31406 is used with the following scheme:
31409 \begin_layout Standard
31414 scalebox{horizontal}[vertical]{box content}
31417 \begin_layout Standard
31418 Horizontal and vertical are the corresponding scaling factors.
31419 If no vertical scaling factor is given, the horizontal factor will also
31420 be used as the vertical one.
31423 \begin_layout Standard
31430 creates for example a double size
31434 \begin_layout Plain Layout
31447 \begin_layout Plain Layout
31454 , compared with the document text size.
31457 \begin_layout Standard
31462 scalebox{2}[1]{Hello}
31464 on the other hand distorts the
31468 \begin_layout Plain Layout
31481 \begin_layout Plain Layout
31491 \begin_layout Standard
31492 If the scaling factor is negative, the box content will be mirrored.
31493 Therefore the command
31497 scalebox{-1}[1]{Hello}
31499 can be used to create mirror writing:
31503 \begin_layout Plain Layout
31516 \begin_layout Plain Layout
31526 \begin_layout Standard
31531 scalebox{1}[-1]{Hello}
31537 \begin_layout Plain Layout
31550 \begin_layout Plain Layout
31560 \begin_layout Standard
31565 scalebox{-1}[1]{box content}
31567 there exists the command
31568 \begin_inset Newline newline
31575 reflectbox{box content}
31580 \begin_layout Standard
31581 \begin_inset VSpace bigskip
31590 is used to scale the box to a defined width and height.
31591 The command scheme is:
31594 \begin_layout Standard
31599 resizebox{width}{height}{box content}
31602 \begin_layout Standard
31603 If one of the two command arguments given is an exclamation mark
31607 , the size is set so that the aspect ratio of the box content is kept.
31610 \begin_layout Standard
31615 resizebox{2cm}{1cm}{Hello}
31621 \begin_layout Plain Layout
31625 resizebox{2cm}{1cm}{
31634 \begin_layout Plain Layout
31642 \begin_inset Newline newline
31649 resizebox{2cm}{!}{Hello}
31655 \begin_layout Plain Layout
31668 \begin_layout Plain Layout
31678 \begin_layout Standard
31679 \begin_inset VSpace bigskip
31683 \begin_inset Note Greyedout
31686 \begin_layout Plain Layout
31703 are set to zero, no LaTeX-errors occur when exporting the document but
31704 the exported files can not or only partly be displayed.
31712 \begin_layout Standard
31713 \begin_inset VSpace bigskip
31719 \begin_layout Standard
31720 The boxes can be combined in any order.
31722 \begin_inset space \thinspace{}
31726 \begin_inset space \space{}
31730 \begin_inset Newline newline
31737 rotatebox[origin=c]{-45}{
31741 reflectbox{Hello}}}
31742 \begin_inset Newline newline
31750 \begin_layout Standard
31755 \begin_layout Plain Layout
31759 rotatebox[origin=c]{-45}{
31772 \begin_layout Plain Layout
31782 \begin_layout Standard
31784 Images, tables, and inline formulas are allowed as box content:
31787 \begin_layout Standard
31792 \begin_layout Plain Layout
31796 rotatebox[origin=c]{-30}{
31806 \begin_inset Graphics
31807 filename clipart/platypus.eps
31817 \begin_layout Plain Layout
31828 \begin_layout Plain Layout
31832 rotatebox[origin=c]{-45}{
31842 \begin_inset Tabular
31843 <lyxtabular version="3" rows="2" columns="2">
31844 <features tabularvalignment="middle">
31845 <column alignment="center" valignment="top" width="0">
31846 <column alignment="center" valignment="top" width="0">
31848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31851 \begin_layout Plain Layout
31857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31860 \begin_layout Plain Layout
31868 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31871 \begin_layout Plain Layout
31877 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31880 \begin_layout Plain Layout
31895 \begin_layout Plain Layout
31906 \begin_layout Plain Layout
31910 rotatebox[origin=c]{-45}{
31920 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31927 \begin_layout Plain Layout
31937 \begin_layout Standard
31938 When the global formula style
31942 is used in the document
31946 \begin_layout Plain Layout
31948 \begin_inset Quotes eld
31952 \begin_inset Quotes erd
31955 is added to the document class options.
31960 , display style formulas can also be scaled.
31963 \begin_layout Chapter
31964 External Document Parts
31965 \begin_inset Index idx
31968 \begin_layout Plain Layout
31969 External Document Parts
31977 \begin_layout Standard
31980 Insert\SpecialChar \menuseparator
31983 you can insert external material to your document.
31987 \begin_layout Description
31989 \begin_inset space ~
31992 Document Another LyX document; its content is directly inserted to your
31996 \begin_layout Description
31998 \begin_inset space ~
32001 Text A text document; each line is inserted in your document as a separate
32005 \begin_layout Description
32007 \begin_inset space ~
32011 \begin_inset space ~
32015 \begin_inset space ~
32018 Lines A text document; text lines are inserted in your document continuously
32019 but an empty text line creates a new paragraph.
32022 \begin_layout Description
32024 \begin_inset space ~
32027 Material Files in various formats.
32030 \begin_layout Description
32032 \begin_inset space ~
32035 Document LyX or LaTeX-documents.
32038 \begin_layout Section
32040 \begin_inset Index idx
32043 \begin_layout Plain Layout
32044 External Document Parts ! External Material
32052 \begin_layout Standard
32053 The external material feature allows you to insert files in to your document
32054 without converting them to a format that can be read by the document output
32056 LyX takes care of the necessary conversions.
32057 This is similar to images that can be inserted in various image formats
32059 When you have enabled Instant Preview in LyX's preferences under
32062 \begin_inset space ~
32066 \begin_inset space ~
32069 feel\SpecialChar \menuseparator
32072 , the external material types Dia and Xfig are directly shown in LyX.
32075 \begin_layout Standard
32076 External material can be inserted via the
32080 dialog that is accessible with the menu
32082 Insert\SpecialChar \menuseparator
32083 File\SpecialChar \menuseparator
32085 \begin_inset space ~
32091 Currently the following file types (
32098 \begin_layout Description
32099 ChessDiagram This template supports chess position diagrams made with the
32103 \begin_inset CommandInset href
32106 target "http://en.wikipedia.org/wiki/XBoard"
32115 \begin_layout Description
32116 Date This inserts the date in the form
32121 This is a date inserted as external material:
32122 \begin_inset External
32129 \begin_inset space ~
32133 \begin_inset Note Note
32136 \begin_layout Plain Layout
32137 Remove the protected space when bug 4398 is fixed!
32143 \begin_inset Newline newline
32146 The date is not shown within LyX, only in the output.
32147 There are two other methods of inserting a date: Via menu
32149 Insert\SpecialChar \menuseparator
32152 and with the LaTeX command
32159 The different methods are compared in Table
32160 \begin_inset space ~
32164 \begin_inset CommandInset ref
32166 reference "tab:Comparison-of-the"
32173 \begin_layout Description
32174 Dia This template supports diagrams created with the program
32177 \begin_inset CommandInset href
32180 target "http://en.wikipedia.org/wiki/Dia_(software)"
32189 \begin_layout Description
32190 LilyPond This template is used for music notation typeset with the program
32191 \begin_inset Newline linebreak
32197 \begin_inset CommandInset href
32200 target "http://en.wikipedia.org/wiki/LilyPond"
32209 \begin_layout Description
32210 PDFPages With this template you can insert PDF documents to your document.
32211 To insert certain or all pages of a PDF, use the
32221 LaTeX and LyX options
32223 tab according to the template description in the dialog.
32228 option is given, only the first page of the PDF will be inserted.
32231 \begin_layout Description
32232 RasterImage This can be used for bitmap images.
32233 Nearly all popular image formats are supported.
32234 The image can be treated in the
32238 dialog like the images that are usually included via the
32242 dialog as described in section
32243 \begin_inset space ~
32247 \begin_inset CommandInset ref
32249 reference "sec:Graphics-Dialog"
32254 The difference is that only raster images are allowed; that means that
32255 PDF and EPS-images are not supported.
32258 \begin_layout Description
32259 XFig This template supports images created with the program
32262 \begin_inset CommandInset href
32265 target "http://en.wikipedia.org/wiki/Xfig"
32274 \begin_layout Standard
32275 \begin_inset Float table
32281 \begin_layout Plain Layout
32282 \begin_inset Caption
32284 \begin_layout Plain Layout
32285 \begin_inset CommandInset label
32287 name "tab:Comparison-of-the"
32291 Comparison of the date input methods.
32299 \begin_layout Plain Layout
32301 \begin_inset Tabular
32302 <lyxtabular version="3" rows="4" columns="4">
32303 <features tabularvalignment="middle">
32304 <column alignment="center" valignment="top" width="0">
32305 <column alignment="center" valignment="top" width="0">
32306 <column alignment="center" valignment="top" width="0">
32307 <column alignment="center" valignment="top" width="0">
32309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32312 \begin_layout Plain Layout
32318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32321 \begin_layout Plain Layout
32324 External Material\SpecialChar \menuseparator
32330 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32333 \begin_layout Plain Layout
32336 Insert\SpecialChar \menuseparator
32342 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32345 \begin_layout Plain Layout
32357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32360 \begin_layout Plain Layout
32366 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32369 \begin_layout Plain Layout
32375 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32378 \begin_layout Plain Layout
32384 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32387 \begin_layout Plain Layout
32388 as TeX-Code inset box
32395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32398 \begin_layout Plain Layout
32404 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32407 \begin_layout Plain Layout
32413 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32416 \begin_layout Plain Layout
32422 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32425 \begin_layout Plain Layout
32433 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32436 \begin_layout Plain Layout
32442 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32445 \begin_layout Plain Layout
32451 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32454 \begin_layout Plain Layout
32460 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32463 \begin_layout Plain Layout
32482 \begin_layout Standard
32483 When you use the option
32495 dialog, only the path to the inserted file is shown in the output.
32496 \begin_inset Newline newline
32499 External material is displayed in LyX either as a box like this:
32500 \begin_inset Graphics
32501 filename clipart/ExternalMaterialQt4.png
32503 scaleBeforeRotation
32507 or as image, depending on the option
32513 LaTeX and LyX options
32518 \begin_layout Standard
32525 manual explains how you can define your own templates.
32528 \begin_layout Section
32530 \begin_inset CommandInset label
32532 name "sec:Child-Documents"
32537 \begin_inset Index idx
32540 \begin_layout Plain Layout
32541 External Document Parts ! Child Documents
32547 \begin_inset Index idx
32550 \begin_layout Plain Layout
32559 \begin_layout Standard
32560 Child documents are used if you have a long document consisting of several
32561 larger parts or sections.
32562 For maintenance it is often useful and sometimes even required to split
32563 the document into several files that can be revised separately.
32564 The different documents are then the so called
32565 \begin_inset Quotes eld
32569 \begin_inset Quotes erd
32572 , and a master document connects them to print the full document or parts
32574 A child document inherits elements of its master, for example the LaTeX
32575 preamble, the bibliography, and labels for cross-references.
32578 \begin_layout Standard
32579 To be able to work on child documents without the need to open their master,
32580 specify in the child document the master in the menu
32582 Document\SpecialChar \menuseparator
32583 Settings\SpecialChar \menuseparator
32585 \begin_inset space ~
32591 This master document will then be used in the background by LyX when you
32592 edit the child document.
32595 \begin_layout Standard
32596 Included documents are displayed in LyX as a box like this:
32597 \begin_inset Graphics
32598 filename clipart/ChildDocumentQt4.png
32600 scaleBeforeRotation
32604 To include child documents in a master document use the menu
32606 Insert\SpecialChar \menuseparator
32607 File\SpecialChar \menuseparator
32609 \begin_inset space ~
32615 A dialog pops up where you can choose between four include methods:
32618 \begin_layout Description
32619 Include You can include LyX- and LaTeX-documents.
32628 dialog, the included documents will be opened in LyX in a new file tab
32629 so that you can modify them.
32630 \begin_inset Newline newline
32636 \begin_layout Standard
32637 Here is a child document inserted using
32642 \begin_inset CommandInset include
32643 LatexCommand include
32644 filename "DummyDocument1.lyx"
32651 \begin_layout Standard
32652 The section numbering includes the sections of the included files in the
32653 order they are inserted in the master document.
32654 The included example document has for example a subsection that is numbered
32655 as a subsection of this section.
32656 Labels of included documents can be referenced: Subsection
32657 \begin_inset space ~
32661 \begin_inset CommandInset ref
32663 reference "sub:External-Subsection-1"
32670 \begin_layout Standard
32671 The preamble of the child document is ignored; only the preamble of the
32672 master document is used.
32673 Branches in child documents will be ignored by the master document when
32674 the master document does not have a branch with the same name.
32675 Included documents are inserted starting on a new page and ending with
32679 \begin_layout Standard
32680 \begin_inset Note Greyedout
32683 \begin_layout Plain Layout
32688 If you have included a LyX- or LaTeX-file, you are warned when you export/view
32689 the document in case the child document uses another document class than
32690 the master document as this will lead to unexpected outputs.
32698 \begin_layout Description
32699 Input This method is very similar to the Include method.
32700 The differences are:
32704 \begin_layout Itemize
32705 Input files don't start with a new page and don't end with a page break.
32708 \begin_layout Itemize
32709 Input files can be previewed in LyX when
32712 \begin_inset space ~
32717 is enabled in LyX's preferences under
32720 \begin_inset space ~
32724 \begin_inset space ~
32727 feel\SpecialChar \menuseparator
32733 \begin_layout Itemize
32734 You cannot exclude Input files via the menu
32736 Document\SpecialChar \menuseparator
32737 Settings\SpecialChar \menuseparator
32744 \begin_layout Standard
32745 Here is a child document inserted using
32750 \begin_inset CommandInset include
32752 filename "DummyDocument2.lyx"
32759 \begin_layout Description
32760 Verbatim With this method any text file can be included.
32761 The file is shown in the output with its source code; no command used in
32762 the text is invoked.
32763 You can use the option
32765 Mark spaces in output
32767 that displays the character
32768 \begin_inset Quotes eld
32775 \begin_layout Plain Layout
32785 \begin_inset Quotes erd
32788 for every space character in the source code.
32789 The difference from the method via the menu
32791 Insert\SpecialChar \menuseparator
32792 File\SpecialChar \menuseparator
32794 \begin_inset space ~
32799 is that the document content is not shown in LyX.
32802 \begin_layout Standard
32803 Here is a child document inserted as Verbatim:
32804 \begin_inset CommandInset include
32805 LatexCommand verbatiminput
32806 filename "DummyTextDocument.txt"
32811 \begin_inset VSpace bigskip
32814 Here is a child document inserted as Verbatim using the
32816 Mark spaces in output
32819 \begin_inset CommandInset include
32820 LatexCommand verbatiminput*
32821 filename "DummyTextDocument.txt"
32828 \begin_layout Standard
32829 \begin_inset VSpace bigskip
32835 \begin_layout Standard
32836 \begin_inset Note Greyedout
32839 \begin_layout Plain Layout
32844 As you can see in the examples above, the text of the documents included
32849 is not broken at the end of the document lines.
32857 \begin_layout Description
32858 Listings This type is described in chapter
32859 \begin_inset space ~
32863 \begin_inset CommandInset ref
32865 reference "cha:Program-Code-Listings"
32872 \begin_layout Standard
32873 \begin_inset Note Greyedout
32876 \begin_layout Plain Layout
32881 Including the same document twice in a document using different methods
32882 could cause LaTeX-problems.
32890 \begin_layout Standard
32891 If you want to view/export only selected children of your master document,
32892 either because you want to save compiling time or because you want to distribut
32893 e single chapters of the book you are just writing, you can exclude children
32895 This is done via the menu
32897 Document\SpecialChar \menuseparator
32898 Settings\SpecialChar \menuseparator
32902 You can exclude\SpecialChar \slash{}
32903 include children by double-clicking on the
32907 column of the respective child document in the list (note that this only
32908 works for documents embedded via
32909 \begin_inset Quotes eld
32913 \begin_inset Quotes erd
32917 \begin_inset Quotes eld
32921 \begin_inset Quotes erd
32927 Maintain counters and references
32929 is enabled, LyX will assure that all page numbers, references etc.
32930 \begin_inset space ~
32933 are correct as if the whole document was processed.
32934 This is useful if you want the selected sub-documents to look exactly as
32935 in the context of the whole document.
32936 However, LyX needs to process the whole document in the background for
32938 So if you want to save compile time and if counters and references do not
32939 need to be correct, disable this checkbox.
32942 \begin_layout Standard
32943 Alternatively, you can put each included file into a branch.
32947 \begin_layout Plain Layout
32948 Branches are described in section
32961 By enabling\SpecialChar \slash{}
32962 disabling branches you can decide which included files will
32963 appear in the output.
32964 This has the advantage that it also works with Input'ed sub-documents.
32965 However, counters and references will not be maintained with this approach.
32968 \begin_layout Chapter
32969 Program Code Listings
32970 \begin_inset CommandInset label
32972 name "cha:Program-Code-Listings"
32977 \begin_inset Index idx
32980 \begin_layout Plain Layout
32987 \begin_inset Index idx
32990 \begin_layout Plain Layout
32997 \begin_inset Index idx
33000 \begin_layout Plain Layout
33009 \begin_layout Standard
33010 To include and typeset program code you can use the
33014 inset that can be inserted via the menu
33016 Insert\SpecialChar \menuseparator
33025 \begin_inset Index idx
33028 \begin_layout Plain Layout
33029 LaTeX-packages ! listings
33034 provides a powerful and flexible way to insert program source code into
33038 \begin_layout Standard
33039 Right-clicking on a listings inset opens the context menu containing where
33040 you can set the listings format.
33043 \begin_layout Standard
33044 By default, a listing starts a new paragraph in the output.
33045 The placement option
33048 \begin_inset space ~
33053 prints the listing inline like this:
33054 \begin_inset listings
33055 lstparams "language={C++}"
33059 \begin_layout Plain Layout
33067 \begin_inset Newline newline
33074 creates a listings float where you can specify the placement options
33075 \begin_inset Quotes eld
33083 \begin_inset Quotes erd
33087 \begin_inset Quotes eld
33095 \begin_inset Quotes erd
33099 \begin_inset Quotes eld
33107 \begin_inset Quotes erd
33111 \begin_inset Quotes eld
33119 \begin_inset Quotes erd
33122 corresponding to the float placement options described in section
33123 \begin_inset space ~
33127 \begin_inset CommandInset ref
33129 reference "sec:Float-Placement"
33134 The placement options can be mixed and are inserted without any separation,
33136 \begin_inset space \thinspace{}
33140 \begin_inset space \space{}
33144 \begin_inset Quotes eld
33152 \begin_inset Quotes erd
33157 \begin_inset Quotes eld
33161 \begin_inset Quotes erd
33164 has sometimes no effect, but you don't need to use the
33168 option in this case as also non-float listings can have captions and be
33172 \begin_layout Standard
33173 You can add captions to listings with the menu
33175 Insert\SpecialChar \menuseparator
33179 Listings can be referenced like floats: Listing
33180 \begin_inset space ~
33184 \begin_inset CommandInset ref
33186 reference "lst:Example-Listing"
33193 \begin_layout Standard
33194 \begin_inset listings
33195 lstparams "language=Python"
33199 \begin_layout Plain Layout
33201 \begin_inset Caption
33203 \begin_layout Plain Layout
33204 \begin_inset CommandInset label
33206 name "lst:Example-Listing"
33210 Example Listing float
33215 # Example listing float
33218 \begin_layout Plain Layout
33223 \begin_layout Plain Layout
33225 'this is a python function'
33228 \begin_layout Plain Layout
33238 \begin_layout Standard
33239 When you have set a programming language in the listings dialog, the keywords
33240 of this language will be recognized and specially typeset in the output.
33241 In the example listings the Python keyword
33242 \begin_inset Quotes eld
33246 \begin_inset Quotes erd
33249 is recognized and printed bold in the output.
33252 \begin_layout Standard
33253 \begin_inset Note Greyedout
33256 \begin_layout Plain Layout
33261 If you don't get bold keywords when using typewriter fonts, your
33265 font probably doesn't provide a bold shape.
33266 In this case select a different one in the menu
33268 Document\SpecialChar \menuseparator
33269 Settings\SpecialChar \menuseparator
33281 provide bold shapes.)
33289 \begin_layout Standard
33293 \begin_inset space ~
33298 of the listings dialog you can specify the line numbering style.
33299 You can insert a number to specify which lines are numbered in the field
33306 \begin_inset space \thinspace{}
33310 \begin_inset space \space{}
33314 \begin_inset Quotes eld
33318 \begin_inset Quotes erd
33321 , only every 3rd line will be numbered.
33324 \begin_layout Standard
33325 You can furthermore specify a range of lines; only these will then appear
33329 Extended character table
33331 should be used when you use national characters like the German umlauts
33333 \begin_inset Newline newline
33336 Here is an example listing with left line numbering, step
33337 \begin_inset Quotes eld
33341 \begin_inset Quotes erd
33345 \begin_inset Quotes eld
33349 \begin_inset Quotes erd
33353 \begin_inset Quotes eld
33356 Extended character table
33357 \begin_inset Quotes erd
33361 \begin_inset Quotes eld
33365 \begin_inset space ~
33369 \begin_inset space ~
33373 \begin_inset Quotes erd
33377 \begin_inset space \thinspace{}
33381 \begin_inset space \thinspace{}
33387 \begin_layout Standard
33388 \begin_inset listings
33389 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
33393 \begin_layout Plain Layout
33398 \begin_layout Plain Layout
33400 'this is a python function'
33403 \begin_layout Plain Layout
33408 \begin_layout Plain Layout
33413 \begin_layout Plain Layout
33415 'This is a German word: Tschüß'
33418 \begin_layout Plain Layout
33423 \begin_layout Plain Layout
33428 \begin_layout Plain Layout
33430 'this is a python function'
33433 \begin_layout Plain Layout
33443 \begin_layout Standard
33444 When you have tabulators in your listing, you can specify the number of
33445 characters that are spanned by a tabulator in the field
33448 \begin_inset space ~
33456 \begin_layout Standard
33457 \begin_inset Note Greyedout
33460 \begin_layout Plain Layout
33465 Due to a bug in the
33469 package the line numbering is shifted by a line by every previous listing.
33470 That's the reason why the lines 2 and 5 are numbered in the above listing
33471 and not the lines 3 and 6.
33479 \begin_layout Standard
33480 \begin_inset VSpace bigskip
33486 \begin_layout Standard
33487 It is also possible to print lines from a file as listing.
33488 To do this, use the menu
33490 Insert\SpecialChar \menuseparator
33491 File\SpecialChar \menuseparator
33494 and choose the type
33502 \begin_layout Plain Layout
33503 The other child document types are described in section
33504 \begin_inset space ~
33508 \begin_inset CommandInset ref
33510 reference "sec:Child-Documents"
33519 In the child document dialog you can specify the listing parameters in
33521 To show a list of all available parameters, type in a question mark
33522 \begin_inset Quotes eld
33526 \begin_inset Quotes erd
33532 \begin_layout Standard
33533 To reference child document listings, write a label text into the corresponding
33534 field of the child document dialog.
33535 The label can then be referenced using the menu
33537 Insert\SpecialChar \menuseparator
33543 \begin_layout Standard
33545 \begin_inset space ~
33549 \begin_inset CommandInset ref
33551 reference "lst:file-listing"
33555 is an example for a listing of a file; there the lines 10
33556 \begin_inset space \thinspace{}
33560 \begin_inset space \thinspace{}
33563 15 of this LyX file are listed.
33566 \begin_layout Standard
33567 \begin_inset CommandInset include
33568 LatexCommand lstinputlisting
33569 filename "EmbeddedObjects.lyx"
33570 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
33577 \begin_layout Standard
33578 \begin_inset VSpace bigskip
33584 \begin_layout Standard
33585 Inserting a formula into a listing can be done the following way:
33588 \begin_layout Enumerate
33589 Open the listings dialog and add
33590 \begin_inset Newline newline
33598 \begin_inset Newline newline
33601 to the field of the
33608 \begin_layout Enumerate
33609 Create a formula outside the listing
33612 \begin_layout Enumerate
33613 Copy the content of the formula (not the formula inset) to the clipboard
33623 \begin_layout Enumerate
33624 In the listing write
33625 \begin_inset Quotes eld
33633 \begin_inset Quotes erd
33636 and copy from the clipboard between the dollar-signs (shortcut
33645 \begin_layout Standard
33646 \begin_inset listings
33647 lstparams "language=Python,mathescape=true"
33651 \begin_layout Plain Layout
33653 \begin_inset Caption
33655 \begin_layout Plain Layout
33656 Example Listing float containing a formula
33661 # Example listing float
33664 \begin_layout Plain Layout
33669 \begin_layout Plain Layout
33682 \begin_layout Plain Layout
33692 \begin_layout Standard
33693 \begin_inset VSpace bigskip
33699 \begin_layout Standard
33700 Global listings settings can be set in the
33702 Document\SpecialChar \menuseparator
33703 Settings\SpecialChar \menuseparator
33707 To get there a list of available options, type in a question mark
33708 \begin_inset Quotes eld
33712 \begin_inset Quotes erd
33718 \begin_layout Standard
33719 For more information about the
33723 package, we refer to its documentation
33724 \begin_inset CommandInset citation
33733 \begin_layout Standard
33734 \begin_inset Newpage newpage
33740 \begin_layout Chapter
33742 Units available in LyX
33743 \begin_inset Index idx
33746 \begin_layout Plain Layout
33753 \begin_inset CommandInset label
33755 name "cha:Units-available-in"
33762 \begin_layout Standard
33763 To understand the units described in this documentation, Table
33764 \begin_inset space ~
33768 \begin_inset CommandInset ref
33770 reference "tab:Units"
33774 explains all units available in LyX.
33777 \begin_layout Standard
33778 \begin_inset Float table
33784 \begin_layout Plain Layout
33785 \begin_inset Caption
33787 \begin_layout Plain Layout
33788 \begin_inset CommandInset label
33802 \begin_layout Plain Layout
33803 \begin_inset VSpace medskip
33809 \begin_layout Plain Layout
33811 \begin_inset Tabular
33812 <lyxtabular version="3" rows="20" columns="2">
33813 <features tabularvalignment="middle">
33814 <column alignment="center" valignment="top" width="0">
33815 <column alignment="center" valignment="top" width="0">
33817 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33820 \begin_layout Plain Layout
33826 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33829 \begin_layout Plain Layout
33837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33840 \begin_layout Plain Layout
33846 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33849 \begin_layout Plain Layout
33857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33860 \begin_layout Plain Layout
33866 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33869 \begin_layout Plain Layout
33877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33880 \begin_layout Plain Layout
33886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33889 \begin_layout Plain Layout
33897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33900 \begin_layout Plain Layout
33906 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33909 \begin_layout Plain Layout
33911 \begin_inset space \thinspace{}
33915 \begin_inset space \thinspace{}
33925 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33928 \begin_layout Plain Layout
33934 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33937 \begin_layout Plain Layout
33939 \begin_inset space \thinspace{}
33943 \begin_inset space \thinspace{}
33953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33956 \begin_layout Plain Layout
33962 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33965 \begin_layout Plain Layout
33966 scaled point (65536
33967 \begin_inset space \thinspace{}
33971 \begin_inset space \thinspace{}
33981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33984 \begin_layout Plain Layout
33990 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33993 \begin_layout Plain Layout
33995 \begin_inset space \thinspace{}
33999 \begin_inset space \thinspace{}
34009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34012 \begin_layout Plain Layout
34018 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34021 \begin_layout Plain Layout
34023 \begin_inset space \thinspace{}
34027 \begin_inset Formula $\approx$
34031 \begin_inset space \thinspace{}
34041 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34044 \begin_layout Plain Layout
34050 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34053 \begin_layout Plain Layout
34055 \begin_inset space \thinspace{}
34059 \begin_inset space \thinspace{}
34069 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34072 \begin_layout Plain Layout
34078 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34081 \begin_layout Plain Layout
34082 % of original image width
34089 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34092 \begin_layout Plain Layout
34098 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34101 \begin_layout Plain Layout
34109 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34112 \begin_layout Plain Layout
34118 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34121 \begin_layout Plain Layout
34129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34132 \begin_layout Plain Layout
34138 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34141 \begin_layout Plain Layout
34149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34152 \begin_layout Plain Layout
34158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34161 \begin_layout Plain Layout
34169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34172 \begin_layout Plain Layout
34178 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34181 \begin_layout Plain Layout
34189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34192 \begin_layout Plain Layout
34198 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34201 \begin_layout Plain Layout
34209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34212 \begin_layout Plain Layout
34218 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34221 \begin_layout Plain Layout
34233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34236 \begin_layout Plain Layout
34242 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34245 \begin_layout Plain Layout
34257 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34260 \begin_layout Plain Layout
34266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34269 \begin_layout Plain Layout
34271 \begin_inset space \thinspace{}
34275 \begin_inset space \thinspace{}
34296 \begin_layout Chapter
34297 Output File Formats with Graphics
34298 \begin_inset CommandInset label
34300 name "cha:Output-File-Formats"
34307 \begin_layout Section
34309 \begin_inset Index idx
34312 \begin_layout Plain Layout
34319 \begin_inset Index idx
34322 \begin_layout Plain Layout
34327 \begin_layout Plain Layout
34338 \begin_layout Plain Layout
34353 \begin_layout Standard
34354 This file type has the extension
34355 \begin_inset Quotes eld
34363 \begin_inset Quotes erd
34368 \begin_inset Quotes eld
34372 \begin_inset Quotes erd
34375 (DVI), because it is completely portable; you can move them from one machine
34376 to another without needing to do any sort of conversion.
34377 At the time when this file-format was developed, this was no matter of
34379 DVIs are used for quick previews and as pre-stage for other output formats,
34383 \begin_layout Standard
34384 \begin_inset Note Greyedout
34387 \begin_layout Plain Layout
34392 DVI-files do not contain images; they will only be a linked.
34397 So don't forget this, if you move your
34401 file to another computer.
34402 This property can also slow down your computer when you view the DVI, because
34403 the DVI-viewer has to convert the image in the background to make it visible
34404 when you scroll in the DVI.
34405 So it is recommended that you use PDF for files with many images.
34408 \begin_layout Standard
34409 You can export your document to DVI by using the menu
34411 File\SpecialChar \menuseparator
34412 Export\SpecialChar \menuseparator
34416 You can view your document as DVI via the
34420 menu or by using the toolbar button
34421 \begin_inset Graphics
34422 filename ../images/buffer-view_dvi.png
34424 scaleBeforeRotation
34431 \begin_layout Section
34433 \begin_inset CommandInset label
34435 name "sec:PostScript"
34440 \begin_inset Index idx
34443 \begin_layout Plain Layout
34444 File Formats ! PostScript
34450 \begin_inset Index idx
34453 \begin_layout Plain Layout
34458 \begin_layout Plain Layout
34469 \begin_layout Plain Layout
34484 \begin_layout Standard
34485 This file type has the extension
34486 \begin_inset Quotes eld
34494 \begin_inset Quotes erd
34498 PostScript was developed by the company
34502 as a printer language.
34503 The file therefore contains commands that the printer uses to print the
34505 PostScript can be seen as a
34506 \begin_inset Quotes eld
34509 programming language
34510 \begin_inset Quotes erd
34513 ; you can calculate with it and draw diagrams and images
34517 \begin_layout Plain Layout
34518 If you are interested to learn more about this, have a look at the LaTeX-package
34524 \begin_inset CommandInset citation
34536 Due to this ability, the files are often bigger than PDFs.
34539 \begin_layout Standard
34540 PostScript can only contain images in the format
34541 \begin_inset Quotes eld
34544 Encapsulated PostScript
34545 \begin_inset Quotes erd
34548 (EPS, file extension
34549 \begin_inset Quotes eld
34557 \begin_inset Quotes erd
34561 As LyX allows you to use any known image format in your document, it has
34562 to convert images in the background to EPS.
34564 \begin_inset space ~
34568 \begin_inset space ~
34571 images in your document, LyX has to do 50
34572 \begin_inset space ~
34575 conversions whenever you view or export your document.
34576 This will slow down your work flow with LyX drastically.
34577 So if you plan to use PostScript, you can insert your images directly as
34578 EPS to avoid this problem.
34581 \begin_layout Standard
34582 You can export your document to PostScript using the menu
34584 File\SpecialChar \menuseparator
34585 Export\SpecialChar \menuseparator
34589 You can view your document as PostScript via the
34593 menu or by using the toolbar button
34594 \begin_inset Graphics
34595 filename ../images/buffer-view_ps.png
34597 scaleBeforeRotation
34604 \begin_layout Section
34606 \begin_inset Index idx
34609 \begin_layout Plain Layout
34616 \begin_inset Index idx
34619 \begin_layout Plain Layout
34628 \begin_layout Standard
34629 This file type has the extension
34630 \begin_inset Quotes eld
34638 \begin_inset Quotes erd
34643 \begin_inset Quotes eld
34646 Portable Document Format
34647 \begin_inset Quotes erd
34650 (PDF) was developed by
34654 as a derivative of PostScript.
34655 It is more compressed and it uses fewer commands than PostScript.
34657 \begin_inset Quotes eld
34661 \begin_inset Quotes erd
34664 implies, it can be processed at any computer system and the printed output
34665 looks exactly the same.
34668 \begin_layout Standard
34669 PDF can contain images in its own PDF format, in the format
34670 \begin_inset Quotes eld
34673 Joint Photographic Experts Group
34674 \begin_inset Quotes erd
34677 (JPG, file extension
34678 \begin_inset Quotes eld
34686 \begin_inset Quotes erd
34690 \begin_inset Quotes eld
34698 \begin_inset Quotes erd
34701 ), and in the format
34702 \begin_inset Quotes eld
34705 Portable Network Graphics
34706 \begin_inset Quotes erd
34709 (PNG, file extension
34710 \begin_inset Quotes eld
34718 \begin_inset Quotes erd
34722 Nevertheless you can use any other image format, because LyX converts them
34723 in the background to one of these formats.
34724 But as described in the section about PostScript, the image conversion
34725 will slow down your work flow.
34726 So it is recommended that you use images in one of the three mentioned
34730 \begin_layout Standard
34731 You can export your document to PDF via the menu
34733 File\SpecialChar \menuseparator
34736 in three different ways:
34739 \begin_layout Description
34741 \begin_inset space ~
34744 (ps2pdf) This uses the program
34748 that creates a PDF from a PostScript-version of your file.
34749 The PostScript-version is produced by the program
34753 which uses a DVI-version as intermediate step.
34754 So this export variant consists of three conversions.
34757 \begin_layout Description
34759 \begin_inset space ~
34762 (dvipdfm) This uses the program
34766 that converts your file in the background to DVI and in a second step to
34770 \begin_layout Description
34772 \begin_inset space ~
34775 (pdflatex) This uses the program
34779 that converts your file directly to PDF.
34782 \begin_layout Standard
34783 It is recommended that you use
34786 \begin_inset space ~
34795 supports all features of actual PDF-versions, is quick and works stable.
34800 is not under development and therefore a bit outdated.
34803 \begin_layout Standard
34804 You can view your document as PDF via the
34808 menu or by using the toolbar button
34809 \begin_inset Graphics
34810 filename ../images/buffer-view_pdf2.png
34812 scaleBeforeRotation
34823 \begin_inset space ~
34831 \begin_layout Chapter
34832 Explanation of Equation
34833 \begin_inset space ~
34837 \begin_inset CommandInset ref
34844 \begin_inset CommandInset label
34846 name "cha:Explanation-of-Equation"
34853 \begin_layout Standard
34854 We can calculate the total width of
34859 \begin_inset Formula $W_{\mathrm{tot\, n}}$
34865 \begin_layout Standard
34866 \begin_inset Formula
34868 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
34874 \begin_inset Formula $W_{g\, n}$
34877 is the given width of all cells,
34883 is the LaTeX-length between the cell text and the cell border (its default
34885 \begin_inset space \thinspace{}
34895 is the thickness of the cell border line, the default is 0.4
34896 \begin_inset space \thinspace{}
34902 \begin_layout Standard
34904 \begin_inset space ~
34908 \begin_inset CommandInset ref
34910 reference "eq:Wtot_n"
34914 , the total width of a multicolumn
34915 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
34921 \begin_layout Standard
34922 \begin_inset Formula
34924 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
34932 \begin_layout Standard
34933 By setting equation
34934 \begin_inset space ~
34938 \begin_inset CommandInset ref
34940 reference "eq:Wtot_n"
34945 \begin_inset CommandInset ref
34947 reference "eq:Wtot_mult"
34951 equal we can calculate the needed given width
34952 \begin_inset Formula $W_{g\, n}$
34959 columns are spanned, so that each column has a total width of
34960 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
34966 \begin_layout Standard
34967 \begin_inset Formula
34969 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n
34977 \begin_layout Bibliography
34978 \labelwidthstring Bibliography
34979 \begin_inset CommandInset bibitem
34980 LatexCommand bibitem
34981 key "latexcompanion"
34985 Frank Mittelbach and Michel Goossens:
34987 The LaTeX Companion Second Edition.
34990 Addison-Wesley, 2004
34993 \begin_layout Bibliography
34994 \labelwidthstring Bibliography
34995 \begin_inset CommandInset bibitem
34996 LatexCommand bibitem
35001 Helmut Kopka and Patrick W.
35004 A Guide to LaTeX Fourth Edition.
35007 Addison-Wesley, 2003
35010 \begin_layout Bibliography
35011 \labelwidthstring Bibliography
35012 \begin_inset CommandInset bibitem
35013 LatexCommand bibitem
35020 LaTeX: A Document Preparation System.
35023 Addison-Wesley, second edition, 1994
35026 \begin_layout Bibliography
35027 \labelwidthstring Bibliography
35028 \begin_inset CommandInset bibitem
35029 LatexCommand bibitem
35034 Documentation of the LaTeX-package
35037 \begin_inset CommandInset href
35040 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
35047 \begin_inset Index idx
35050 \begin_layout Plain Layout
35051 LaTeX-packages ! booktabs
35059 \begin_layout Bibliography
35060 \labelwidthstring Bibliography
35061 \begin_inset CommandInset bibitem
35062 LatexCommand bibitem
35067 Documentation of the LaTeX-package
35070 \begin_inset CommandInset href
35073 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
35080 \begin_inset Index idx
35083 \begin_layout Plain Layout
35084 LaTeX-packages ! caption
35092 \begin_layout Bibliography
35093 \labelwidthstring Bibliography
35094 \begin_inset CommandInset bibitem
35095 LatexCommand bibitem
35100 Documentation of the LaTeX-package
35103 \begin_inset CommandInset href
35106 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
35113 \begin_inset Index idx
35116 \begin_layout Plain Layout
35117 LaTeX-packages ! endfloat
35125 \begin_layout Bibliography
35126 \labelwidthstring Bibliography
35127 \begin_inset CommandInset bibitem
35128 LatexCommand bibitem
35133 Documentation of the LaTeX-package
35136 \begin_inset CommandInset href
35139 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
35146 \begin_inset Index idx
35149 \begin_layout Plain Layout
35150 LaTeX-packages ! wrapfig
35154 \begin_layout Plain Layout
35171 \begin_layout Bibliography
35172 \labelwidthstring Bibliography
35173 \begin_inset CommandInset bibitem
35174 LatexCommand bibitem
35179 Documentation of the LaTeX-package
35182 \begin_inset CommandInset href
35185 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
35192 \begin_inset Index idx
35195 \begin_layout Plain Layout
35196 LaTeX-packages ! footmisc
35204 \begin_layout Bibliography
35205 \labelwidthstring Bibliography
35206 \begin_inset CommandInset bibitem
35207 LatexCommand bibitem
35212 Documentation of the LaTeX-package
35215 \begin_inset CommandInset href
35218 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
35225 \begin_inset Index idx
35228 \begin_layout Plain Layout
35229 LaTeX-packages ! hyperref
35237 \begin_layout Bibliography
35238 \labelwidthstring Bibliography
35239 \begin_inset CommandInset bibitem
35240 LatexCommand bibitem
35245 Documentation of the LaTeX-package
35248 \begin_inset CommandInset href
35251 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
35258 \begin_inset Index idx
35261 \begin_layout Plain Layout
35262 LaTeX-packages ! hyperref
35270 \begin_layout Bibliography
35271 \labelwidthstring Bibliography
35272 \begin_inset CommandInset bibitem
35273 LatexCommand bibitem
35278 Documentation of the LaTeX-package
35281 \begin_inset CommandInset href
35284 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
35291 \begin_inset Index idx
35294 \begin_layout Plain Layout
35295 LaTeX-packages ! KOMA-Script
35303 \begin_layout Bibliography
35304 \labelwidthstring Bibliography
35305 \begin_inset CommandInset bibitem
35306 LatexCommand bibitem
35311 Documentation of the LaTeX-package
35314 \begin_inset CommandInset href
35317 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
35324 \begin_inset Index idx
35327 \begin_layout Plain Layout
35328 LaTeX-packages ! listings
35336 \begin_layout Bibliography
35337 \labelwidthstring Bibliography
35338 \begin_inset CommandInset bibitem
35339 LatexCommand bibitem
35344 Documentation of the LaTeX-package
35347 \begin_inset CommandInset href
35350 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
35357 \begin_inset Index idx
35360 \begin_layout Plain Layout
35361 LaTeX-packages ! marginnote
35369 \begin_layout Bibliography
35370 \labelwidthstring Bibliography
35371 \begin_inset CommandInset bibitem
35372 LatexCommand bibitem
35377 Web page of the LaTeX-package
35380 \begin_inset CommandInset href
35383 target "http://tug.org/PSTricks/"
35390 \begin_inset Index idx
35393 \begin_layout Plain Layout
35394 LaTeX-packages ! PSTricks
35402 \begin_layout Bibliography
35403 \labelwidthstring Bibliography
35404 \begin_inset CommandInset bibitem
35405 LatexCommand bibitem
35410 Documentation of the LaTeX-package
35413 \begin_inset CommandInset href
35416 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
35423 \begin_inset Index idx
35426 \begin_layout Plain Layout
35427 LaTeX-packages ! sidecap
35435 \begin_layout Bibliography
35436 \labelwidthstring Bibliography
35437 \begin_inset CommandInset bibitem
35438 LatexCommand bibitem
35443 Documentation of the LaTeX-package
35446 \begin_inset CommandInset href
35449 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
35456 \begin_inset Index idx
35459 \begin_layout Plain Layout
35460 LaTeX-packages ! prettyref
35468 \begin_layout Bibliography
35469 \labelwidthstring Bibliography
35470 \begin_inset CommandInset bibitem
35471 LatexCommand bibitem
35476 Documentation of the LaTeX-package
35479 \begin_inset CommandInset href
35482 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/doc/latex/refstyle/refstyle.pdf"
35489 \begin_inset Index idx
35492 \begin_layout Plain Layout
35493 LaTeX-packages ! refstyle
35501 \begin_layout Bibliography
35502 \labelwidthstring Bibliography
35503 \begin_inset CommandInset bibitem
35504 LatexCommand bibitem
35510 \begin_inset CommandInset href
35513 target "http://wiki.lyx.org/LyX/NewInLyX20"
35517 about new features in
35524 \begin_layout Standard
35525 \begin_inset CommandInset index_print
35526 LatexCommand printindex