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 preamble with
24915 the following command:
24918 \begin_layout Standard
24923 renewenvironment{lyxgreyedout}
24924 \begin_inset Newline newline
24928 \begin_inset Phantom HPhantom
24931 \begin_layout Plain Layout
24934 \begin_inset space ~
24951 \begin_layout Standard
24952 The available colors and the method to define colors is explained in section
24953 \begin_inset space ~
24957 \begin_inset CommandInset ref
24959 reference "sec:Colored-Tables"
24966 \begin_layout Standard
24967 Notes that appear in blue in this document are set using greyed out notes
24971 \begin_layout Section
24973 \begin_inset CommandInset label
24975 name "sec:Footnotes"
24980 \begin_inset Index idx
24983 \begin_layout Plain Layout
24990 \begin_inset Index idx
24993 \begin_layout Plain Layout
25002 \begin_layout Standard
25003 Footnotes can be inserted using the toolbar button
25004 \begin_inset Graphics
25005 filename ../images/footnote-insert.png
25007 scaleBeforeRotation
25013 Insert\SpecialChar \menuseparator
25025 then the following footnote-box:
25026 \begin_inset Graphics
25027 filename clipart/footnoteQt4.png
25029 scaleBeforeRotation
25037 where you can enter the footnote text.
25038 If you want to turn existing text into a footnote, mark it and click on
25060 to text, press the Backspace key when the cursor is in the first position
25069 , or press the Delete key when the cursor is in the very last position of
25081 \begin_layout Standard
25082 Here is an example footnote:
25090 \begin_layout Plain Layout
25091 \begin_inset CommandInset label
25093 name "foot:This-is-an"
25097 This is an example footnote.
25110 \begin_layout Plain Layout
25114 newcounter{MyRepeatFoot}
25117 \begin_layout Plain Layout
25121 setcounter{MyRepeatFoot}{
25131 \begin_layout Standard
25132 The footnote will appear in the output as a superscript number at the text
25133 position where the footnote box is placed.
25134 The footnote text is placed at the bottom of the current page.
25135 The footnote number is calculated by LaTeX; the numbers are consecutive.
25136 It depends on your document-class, whether the footnote number is reset
25140 \begin_layout Standard
25141 Footnotes can be referenced like floats: Insert a label into the footnote
25142 and cross-reference this label in the text as described in section
25143 \begin_inset space ~
25147 \begin_inset CommandInset ref
25149 reference "sec:Referencing-Floats"
25154 \begin_inset Newline newline
25157 This is a cross-reference of Footnote
25158 \begin_inset space ~
25162 \begin_inset CommandInset ref
25164 reference "foot:This-is-an"
25171 \begin_layout Standard
25172 \begin_inset VSpace defskip
25175 Footnotes in tables are not printed by LaTeX due to technical reasons.
25176 However there exists another method to print them: Instead of the footnote
25183 is inserted as TeX-code.
25184 The text of the footnote is entered as an argument of the TeX-code command
25192 \begin_inset Newline newline
25195 This was done for the following table with the command
25198 \begin_layout Standard
25205 Printed table footnote.
25210 \begin_layout Standard
25211 \begin_inset Tabular
25212 <lyxtabular version="3" rows="2" columns="1">
25213 <features tabularvalignment="middle">
25214 <column alignment="center" valignment="top" width="0">
25216 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25219 \begin_layout Plain Layout
25220 This an example text.
25224 \begin_layout Plain Layout
25225 This footnote will not be printed!
25237 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25240 \begin_layout Plain Layout
25241 This an example text.
25245 \begin_layout Plain Layout
25268 \begin_layout Plain Layout
25277 Printed table footnote.
25281 \begin_layout Plain Layout
25291 \begin_layout Standard
25292 Footnotes in longtables are described in section
25293 \begin_inset space ~
25297 \begin_inset CommandInset ref
25299 reference "sub:Footnotes-in-Longtables"
25306 \begin_layout Standard
25307 Footnotes in minipage boxes are printed, but inside the box and with a different
25308 numbering because a minipage box is like a page inside a page.
25309 (For more about minipages, see section
25310 \begin_inset space ~
25314 \begin_inset CommandInset ref
25316 reference "sec:Minipages"
25320 .) To get a footnote in the minipage that is output at the bottom of the
25321 page like normal footnotes, also use the method of
25336 \begin_layout Standard
25337 \begin_inset Box Frameless
25347 height_special "totalheight"
25350 \begin_layout Plain Layout
25351 This an example text in a minipage.
25355 \begin_layout Plain Layout
25356 Footnote in the minipage.
25364 \begin_layout Plain Layout
25365 This an example text in a minipage.
25369 \begin_layout Plain Layout
25386 \begin_layout Standard
25390 \begin_layout Plain Layout
25399 Footnote outside the minipage.
25403 \begin_layout Plain Layout
25413 \begin_layout Standard
25414 \begin_inset VSpace defskip
25420 \begin_layout Standard
25421 To refer to the same footnote several times without printing the footnote
25422 text every time, use the command
25426 footnotemark[number]
25429 \begin_inset Newline newline
25432 As you do not know the number of the repeating footnote while you are writing
25433 the text, you have to store its number.
25434 For the following footnote mark example, these commands were inserted in
25435 TeX-code after Footnote
25436 \begin_inset space ~
25440 \begin_inset CommandInset ref
25442 reference "foot:This-is-an"
25446 to store the footnote number:
25449 \begin_layout Standard
25454 newcounter{MyRepeatFoot}
25455 \begin_inset Newline newline
25460 setcounter{MyRepeatFoot}{
25465 \begin_layout Standard
25466 The footnote mark was then created with this command:
25469 \begin_layout Standard
25479 \begin_layout Standard
25480 Here is a repeated footnote:
25488 \begin_layout Plain Layout
25502 \begin_layout Standard
25503 If you want to repeat the previous footnote, you can omit the storage of
25504 the footnote number and just use this command instead:
25507 \begin_layout Standard
25517 \begin_layout Standard
25518 Here is another repeated footnote:
25526 \begin_layout Plain Layout
25540 \begin_layout Subsection
25542 \begin_inset CommandInset label
25544 name "sub:Footnote-Numbering"
25549 \begin_inset Index idx
25552 \begin_layout Plain Layout
25553 Footnotes ! Numbering
25561 \begin_layout Standard
25562 To reset the footnote number back to 1 after each section
25564 , add this command to your document preamble:
25567 \begin_layout Standard
25572 @addtoreset{footnote}{section}
25575 \begin_layout Standard
25576 \begin_inset VSpace bigskip
25579 The following preamble command changes the footnote numbering style to small
25583 \begin_layout Standard
25595 \begin_layout Standard
25599 \begin_layout Plain Layout
25612 This is a footnote with roman numbering:
25616 \begin_layout Plain Layout
25617 This is an example footnote with roman numbering.
25625 \begin_layout Standard
25626 To change the numbering style to capital roman numerals replace in the command
25641 \begin_inset Quotes eld
25645 \begin_inset Quotes erd
25648 footnotes with capital or small Latin letters use
25662 \begin_inset Quotes eld
25666 \begin_inset Quotes erd
25669 footnotes with symbols use
25678 \begin_layout Standard
25679 \begin_inset Note Greyedout
25682 \begin_layout Plain Layout
25687 You can only number 26 footnotes with Latin letters, because this numbering
25688 is limited to single letters.
25694 \begin_inset Newline newline
25698 \begin_inset Note Greyedout
25701 \begin_layout Plain Layout
25706 You can only number 9 footnotes with symbols.
25714 \begin_layout Standard
25715 To return to the default numbering style after you have changed to another
25728 in the command above.
25732 \begin_layout Plain Layout
25748 \begin_layout Standard
25749 \begin_inset VSpace bigskip
25755 \begin_layout Standard
25756 If you want to have footnotes numbered in the scheme
25757 \begin_inset Quotes eld
25761 \begin_inset Quotes erd
25764 , add the following command to your document preamble:
25767 \begin_layout Standard
25772 numberwithin{footnote}{chapter}
25775 \begin_layout Standard
25776 To be able to use the command
25785 \begin_inset space ~
25790 in the document settings the option
25793 \begin_inset space ~
25797 \begin_inset space ~
25801 \begin_inset space ~
25809 \begin_layout Standard
25813 \begin_layout Plain Layout
25817 numberwithin{footnote}{chapter}
25822 This is another example footnote:
25828 \begin_layout Plain Layout
25829 This is a footnote numbered in the scheme
25830 \begin_inset Quotes eld
25834 \begin_inset Quotes erd
25848 \begin_layout Plain Layout
25864 \begin_layout Standard
25865 \begin_inset Note Greyedout
25868 \begin_layout Plain Layout
25879 always prints out the footnote number as arabic number; previous redefinitions
25880 to get non-arabic numbers are overwritten.
25888 \begin_layout Standard
25889 So to get for example the scheme
25890 \begin_inset Quotes eld
25896 \begin_inset Quotes erd
25899 , use this command instead of
25908 \begin_layout Standard
25922 \begin_layout Subsection
25924 \begin_inset Index idx
25927 \begin_layout Plain Layout
25928 Footnotes ! Placement
25936 \begin_layout Standard
25937 If you have several footnotes in one page, they appear without vertical
25938 space between them at the bottom of the page.
25939 To make them more readable you can e.
25940 \begin_inset space \thinspace{}
25944 \begin_inset space \space{}
25948 \begin_inset space \thinspace{}
25951 mm space with the following preamble command:
25954 \begin_layout Standard
25964 \begin_inset Newline newline
25978 \begin_layout Standard
25979 \begin_inset VSpace bigskip
25982 In a two-column document the footnotes appear at the bottom of every column,
25984 \begin_inset space ~
25988 \begin_inset CommandInset ref
25990 reference "fig:Standard-footnote-placement"
25995 If the footnotes should only appear at the bottom of the right column,
25997 \begin_inset space ~
26001 \begin_inset CommandInset ref
26003 reference "fig:Footnote-placement-in"
26007 , use the LaTeX-package
26012 \begin_inset Index idx
26015 \begin_layout Plain Layout
26016 LaTeX-packages ! ftnright
26021 with this command in the document preamble:
26024 \begin_layout Standard
26029 usepackage{ftnright}
26032 \begin_layout Standard
26033 \begin_inset Float figure
26039 \begin_layout Plain Layout
26043 \begin_layout Plain Layout
26053 \begin_inset Graphics
26054 filename clipart/without_fntright.pdf
26056 scaleBeforeRotation
26064 \begin_layout Plain Layout
26074 \begin_layout Plain Layout
26075 \begin_inset Caption
26077 \begin_layout Plain Layout
26078 \begin_inset CommandInset label
26080 name "fig:Standard-footnote-placement"
26084 Standard footnote placement in two-column documents.
26097 \begin_layout Standard
26098 \begin_inset Float figure
26104 \begin_layout Plain Layout
26108 \begin_layout Plain Layout
26118 \begin_inset Graphics
26119 filename clipart/with_fntright.pdf
26121 scaleBeforeRotation
26129 \begin_layout Plain Layout
26139 \begin_layout Plain Layout
26140 \begin_inset Caption
26142 \begin_layout Plain Layout
26143 \begin_inset CommandInset label
26145 name "fig:Footnote-placement-in"
26149 Footnote placement in two-column documents when the LaTeX-package
26166 \begin_layout Standard
26167 \begin_inset VSpace bigskip
26170 In some scientific literature it is usual to collect the footnotes and print
26171 them in a separate paragraph at the end of a section, as in Figure
26172 \begin_inset space ~
26176 \begin_inset CommandInset ref
26178 reference "fig:Endnotes"
26183 They are then called
26184 \begin_inset Quotes eld
26188 \begin_inset Quotes erd
26192 \begin_inset Index idx
26195 \begin_layout Plain Layout
26201 To use endnotes instead of footnotes in your document, load in the menu
26204 Document\SpecialChar \menuseparator
26205 Settings\SpecialChar \menuseparator
26211 \begin_inset space ~
26215 \begin_inset space ~
26221 To insert the collected footnotes, insert the command
26224 \begin_layout Standard
26232 \begin_layout Standard
26233 in TeX-Code at the end of a section or chapter.
26236 \begin_layout Standard
26237 \begin_inset Float figure
26242 \begin_layout Plain Layout
26247 \begin_layout Plain Layout
26257 \begin_inset Graphics
26258 filename clipart/endnotes.pdf
26259 scaleBeforeRotation
26267 \begin_layout Plain Layout
26277 \begin_layout Plain Layout
26278 \begin_inset Caption
26280 \begin_layout Plain Layout
26281 \begin_inset CommandInset label
26283 name "fig:Endnotes"
26287 Endnotes – footnotes are printed in a separate paragraph at the end of sections
26301 \begin_layout Standard
26302 \begin_inset VSpace medskip
26305 The paragraph heading for the endnotes isn't automatically translated into
26306 the document language, this must be done manually.
26307 The following preamble command translates the default English
26308 \begin_inset Quotes eld
26312 \begin_inset Quotes erd
26316 \begin_inset Quotes eld
26320 \begin_inset Quotes erd
26326 \begin_layout Standard
26333 notesname}{Anmerkungen}
26336 \begin_layout Standard
26337 \begin_inset VSpace medskip
26340 The numbering of endnotes can be changed like the footnote numbering as
26341 described in section
26342 \begin_inset space ~
26346 \begin_inset CommandInset ref
26348 reference "sub:Footnote-Numbering"
26352 ; just replace the command
26365 To reset the endnote number use the command
26371 as described in section
26372 \begin_inset space ~
26376 \begin_inset CommandInset ref
26378 reference "sub:Footnote-Numbering"
26382 and replace the command parameter
26393 \begin_layout Standard
26394 For endnotes there is the command
26398 endnotemark[number]
26400 similar to the command
26406 , that is described in section
26407 \begin_inset space ~
26411 \begin_inset CommandInset ref
26413 reference "sec:Footnotes"
26420 \begin_layout Standard
26421 \begin_inset VSpace bigskip
26424 Footnotes can also be placed in the page margin and the footnote text alignment
26425 can be changed, see the LaTeX-package
26430 \begin_inset Index idx
26433 \begin_layout Plain Layout
26434 LaTeX-packages ! footmisc
26440 \begin_inset CommandInset citation
26446 for more information about this.
26449 \begin_layout Standard
26450 For various further footnote formatting issues have a look at LaTeX-books,
26452 \begin_inset CommandInset citation
26454 key "latexcompanion,latexguide,latexbook"
26461 \begin_layout Section
26463 \begin_inset Index idx
26466 \begin_layout Plain Layout
26467 Notes ! Margin Notes
26475 \begin_layout Standard
26476 Margin notes look and behave in LyX like footnotes.
26477 They are inserted via the menu
26479 Insert\SpecialChar \menuseparator
26481 \begin_inset space ~
26486 or the toolbar button
26487 \begin_inset Graphics
26488 filename ../images/marginalnote-insert.png
26490 scaleBeforeRotation
26505 \begin_inset Quotes eld
26509 \begin_inset Quotes erd
26512 appears where you can enter the text of the margin note.
26515 \begin_layout Standard
26516 At the side is an example margin note.
26521 \begin_inset Marginal
26524 \begin_layout Plain Layout
26525 This is a margin note.
26533 \begin_layout Standard
26534 Margin notes appear at the right side in single-sided documents.
26535 In double-sided documents they appear in the outer margin – left on even
26536 pages, right on odd pages.
26537 The text of margin notes is aligned opposite to the outer margin – right-aligne
26538 d when the note appears in the left margin.
26539 The first line of the margin note is placed at the position of the text
26540 line where it is inserted in the document.
26543 \begin_layout Standard
26544 \begin_inset VSpace bigskip
26547 To place the margin note in the inner margin, add the command
26550 \begin_layout Standard
26558 \begin_layout Standard
26559 in TeX-Code before a margin note.
26560 The new placement is valid for all subsequent margin notes.
26565 \begin_layout Plain Layout
26575 \begin_inset Marginal
26578 \begin_layout Plain Layout
26579 This is a margin note in the inner margin.
26587 \begin_inset Newline newline
26593 \begin_inset Note Greyedout
26596 \begin_layout Plain Layout
26601 There is often not enough space in the inner margin so that the notes are
26602 not correctly displayed in the output.
26610 \begin_layout Standard
26611 To return to the default placement insert the command
26614 \begin_layout Standard
26622 \begin_layout Standard
26627 \begin_layout Plain Layout
26637 \begin_inset Note Greyedout
26640 \begin_layout Plain Layout
26645 The command is ignored when it is within a paragraph where also the command
26660 \begin_layout Standard
26661 \begin_inset VSpace bigskip
26668 \begin_inset Marginal
26671 \begin_layout Plain Layout
26672 AVeryLongMarginParWord that isn't hyphenated.
26680 Similar to the case described in section
26681 \begin_inset space ~
26685 \begin_inset CommandInset ref
26687 reference "sub:Multiple-Lines-in"
26691 , long words cannot be hyphenated when they are the first word in a margin
26693 To avoid this, insert 0
26694 \begin_inset space \thinspace{}
26697 pt horizontal space before the word
26702 \begin_inset Marginal
26705 \begin_layout Plain Layout
26706 \begin_inset space \hspace*{}
26710 AVeryLongMarginParWord that is hyphenated.
26718 \begin_layout Standard
26719 \begin_inset VSpace bigskip
26725 \begin_layout Standard
26726 \begin_inset Note Greyedout
26729 \begin_layout Plain Layout
26734 Margin notes can normally not be used inside tables, floats, and footnotes.
26742 \begin_layout Standard
26743 \begin_inset VSpace bigskip
26749 \begin_layout Standard
26753 \begin_layout Plain Layout
26763 \begin_inset Note Note
26766 \begin_layout Plain Layout
26767 The following section will only be displayed when the LaTeX-package
26779 \begin_layout Standard
26780 This restriction can be evaded by using the LaTeX-package
26785 \begin_inset Index idx
26788 \begin_layout Plain Layout
26789 LaTeX-packages ! marginnote
26795 By adding these two lines to your document preamble, the command used by
26796 LyX for margin notes is redefined to use the command provided by the
26803 \begin_layout Standard
26808 usepackage{marginnote}
26809 \begin_inset Newline newline
26821 \begin_layout Standard
26822 This is also used in this document because
26826 has another useful feature: You can set a vertical offset for the note.
26827 This is often needed when too many margin notes are too close together
26828 or for a better page layout.
26829 The offset is set in LyX as TeX-Code directly after the margin note in
26833 \begin_layout Standard
26839 \begin_layout Standard
26840 where the offset is a length with one of the units listed in Table
26841 \begin_inset space ~
26845 \begin_inset CommandInset ref
26847 reference "tab:Units"
26852 A negative value shifts the note up, a positive value shifts it down.
26856 For example the margin note beside this text line is shifted up 1.5
26857 \begin_inset space \thinspace{}
26860 cm with the TeX-Code-command
26861 \begin_inset Quotes eld
26871 \begin_inset Quotes erd
26875 \begin_inset Marginal
26878 \begin_layout Plain Layout
26879 This margin note is shifted up 1.5
26880 \begin_inset space \thinspace{}
26883 cm from its original position.
26895 \begin_layout Plain Layout
26905 \begin_layout Standard
26906 \begin_inset VSpace medskip
26913 you can also change the alignment of the text in the margin note.
26914 For example the commands
26917 \begin_layout Standard
26924 raggedleftmarginnote}{
26927 \begin_inset Newline newline
26934 raggedrightmarginnote}{
26939 \begin_layout Standard
26940 set the alignment to centered.
26945 raggedleftmarginnote
26947 denotes margin notes that appear at the left side.
26954 \begin_layout Plain Layout
26960 raggedleftmarginnote}{
26965 \begin_layout Plain Layout
26971 raggedrightmarginnote}{
26979 \begin_inset Marginal
26982 \begin_layout Plain Layout
26983 The text of this margin note is centered.
26994 \begin_layout Standard
27001 raggedleftmarginnote}{
27004 \begin_inset Newline newline
27011 raggedrightmarginnote}{
27020 \begin_layout Plain Layout
27026 raggedleftmarginnote}{
27031 \begin_layout Plain Layout
27037 raggedrightmarginnote}{
27047 \begin_layout Standard
27048 \begin_inset VSpace medskip
27051 For the other features of
27055 refer to its documentation
27056 \begin_inset CommandInset citation
27065 \begin_layout Standard
27066 \begin_inset VSpace bigskip
27069 You can adjust the layout of margin notes by changing its definition.
27070 To create for example a header for all margin notes with the underlined,
27071 sans-serif, and bold header text
27072 \begin_inset Quotes eld
27084 \begin_inset Quotes erd
27087 , add this to your document preamble:
27090 \begin_layout Standard
27100 \begin_inset Newline newline
27110 \begin_inset Newline newline
27114 \begin_inset Phantom HPhantom
27117 \begin_layout Plain Layout
27120 \begin_inset space ~
27136 underbar{Attention!}}}%
27137 \begin_inset Newline newline
27141 \begin_inset Phantom HPhantom
27144 \begin_layout Plain Layout
27147 \begin_inset space ~
27164 \begin_layout Standard
27171 \begin_layout Plain Layout
27182 \begin_layout Plain Layout
27193 \begin_layout Plain Layout
27201 underbar{Attention!}}}%
27204 \begin_layout Plain Layout
27218 \begin_inset Marginal
27221 \begin_layout Plain Layout
27222 This is a margin note with a defined heading.
27234 \begin_layout Plain Layout
27248 \begin_layout Plain Layout
27265 \begin_inset Note Note
27268 \begin_layout Plain Layout
27269 The margin note format is changed only for this example.
27277 \begin_layout Standard
27281 \begin_layout Plain Layout
27291 \begin_inset Note Note
27294 \begin_layout Plain Layout
27295 The following will be displayed when the LaTeX-package
27307 \begin_layout Standard
27308 You need to install the LaTeX-package
27312 to see the following part of this section in the output.
27315 \begin_layout Standard
27319 \begin_layout Plain Layout
27331 \begin_layout Chapter
27335 \begin_layout Section
27337 \begin_inset Index idx
27340 \begin_layout Plain Layout
27341 Boxes ! Introduction
27349 \begin_layout Standard
27350 Boxes are used to format a block of text.
27351 Boxes can be used to write documents with multiple languages, see section
27352 \begin_inset space ~
27356 \begin_inset CommandInset ref
27358 reference "sec:Minipages"
27362 , to frame texts, see section
27363 \begin_inset space ~
27367 \begin_inset CommandInset ref
27369 reference "sec:Decoration"
27373 , to prevent words from being hyphenated, see section
27374 \begin_inset space ~
27378 \begin_inset CommandInset ref
27380 reference "sec:Prevent-Hyphenation"
27384 , to align text, see section
27385 \begin_inset space ~
27389 \begin_inset CommandInset ref
27391 reference "sub:Vertical-Alignment"
27395 , or to set the background color of texts, see section
27396 \begin_inset space ~
27400 \begin_inset CommandInset ref
27402 reference "sec:Colored-Boxes"
27409 \begin_layout Standard
27410 Boxes can be inserted with the menu
27412 Insert\SpecialChar \menuseparator
27415 or the toolbar button
27416 \begin_inset Graphics
27417 filename ../images/box-insert.png
27419 scaleBeforeRotation
27424 A grey box with the label
27429 \begin_inset Graphics
27430 filename clipart/BoxInsetDefaultQt4.png
27432 scaleBeforeRotation
27437 The box type can be specified by right-clicking on the box and selecting
27443 The box dialog offers the
27446 \begin_inset space ~
27468 is the default for new boxes and is explained in section
27469 \begin_inset space ~
27473 \begin_inset CommandInset ref
27475 reference "sec:Minipages"
27483 is described in section
27484 \begin_inset space ~
27488 \begin_inset CommandInset ref
27490 reference "sec:Parboxes"
27499 \begin_inset CommandInset ref
27501 reference "sec:Prevent-Hyphenation"
27508 \begin_layout Standard
27509 Boxes are not numbered and can therefore not be referenced like floats or
27513 \begin_layout Standard
27514 \begin_inset Note Greyedout
27517 \begin_layout Plain Layout
27522 Boxes must not be the item in an
27538 \begin_layout Standard
27539 \begin_inset Note Greyedout
27542 \begin_layout Plain Layout
27547 For an unknown reason you can only set the
27550 \begin_inset space ~
27559 when you use a framed box.
27563 \begin_inset space ~
27568 type and without frames are explained in section
27569 \begin_inset space ~
27573 \begin_inset CommandInset ref
27575 reference "sec:Prevent-Hyphenation"
27587 \begin_layout Section
27589 \begin_inset CommandInset label
27591 name "sec:Box-Dialog"
27596 \begin_inset Index idx
27599 \begin_layout Plain Layout
27608 \begin_layout Subsection
27610 \begin_inset Index idx
27613 \begin_layout Plain Layout
27622 \begin_layout Standard
27623 In the box dialog you can adjust the box geometry in the fields
27632 The available units for the geometry are explained in Table
27633 \begin_inset space ~
27637 \begin_inset CommandInset ref
27639 reference "tab:Units"
27648 offers the following additional sizes:
27651 \begin_layout Description
27652 Depth This is the plain text
27653 \begin_inset Quotes eld
27657 \begin_inset Quotes erd
27661 It ignores the total depth when there are multiple text lines in the box:
27662 \begin_inset Newline newline
27666 \begin_inset Newline newline
27670 \begin_inset Newline newline
27674 \begin_inset Box Boxed
27684 height_special "depth"
27687 \begin_layout Plain Layout
27689 Box height set to 1
27690 \begin_inset space \thinspace{}
27699 \begin_inset Newline newline
27703 \begin_inset Newline newline
27709 \begin_layout Description
27710 Height This is the height of the text that is inside the box.
27712 \begin_inset space \thinspace{}
27716 \begin_inset space \space{}
27719 2 for this size will set the box height to 2
27720 \begin_inset space ~
27723 times the text height:
27724 \begin_inset Box Boxed
27734 height_special "height"
27737 \begin_layout Plain Layout
27739 Box height set to 2
27740 \begin_inset space \thinspace{}
27751 \begin_layout Description
27753 \begin_inset space ~
27756 Height This is the Height
27757 \begin_inset space \thinspace{}
27761 \begin_inset space \thinspace{}
27765 \begin_inset Box Boxed
27775 height_special "totalheight"
27778 \begin_layout Plain Layout
27780 Box height set to 1
27781 \begin_inset space \thinspace{}
27785 \begin_inset space ~
27796 \begin_layout Description
27797 Width This sets the width of the box as height:
27798 \begin_inset Box Boxed
27808 height_special "width"
27811 \begin_layout Plain Layout
27813 Box height set to 1
27814 \begin_inset space \thinspace{}
27825 \begin_layout Subsection
27827 \begin_inset Index idx
27830 \begin_layout Plain Layout
27839 \begin_layout Standard
27840 When you have chosen an
27843 \begin_inset space ~
27848 , the vertical box alignment can be:
27851 \begin_layout Description
27852 Top This is an example text line.
27854 \begin_inset Box Boxed
27864 height_special "totalheight"
27867 \begin_layout Plain Layout
27869 This box is top-aligned.
27874 This is an example text line.
27877 \begin_layout Description
27878 Middle This is an example text line.
27880 \begin_inset Box Boxed
27890 height_special "totalheight"
27893 \begin_layout Plain Layout
27895 This box is middle-aligned.
27900 This is an example text line.
27903 \begin_layout Description
27904 Bottom This is an example text line.
27906 \begin_inset Box Boxed
27916 height_special "totalheight"
27919 \begin_layout Plain Layout
27921 This box is bottom-aligned.
27926 This is an example text line.
27929 \begin_layout Standard
27930 \begin_inset Note Greyedout
27933 \begin_layout Plain Layout
27938 The vertical box alignment can be lost in the output when you have two
27939 boxes in a line and one has e.
27940 \begin_inset space \thinspace{}
27944 \begin_inset space \space{}
27947 a shadow and the other one not.
27955 \begin_layout Standard
27956 The horizontal box alignment can be set via LyX's paragraph dialog when
27957 you set the box into its own paragraph.
27960 \begin_layout Standard
27961 \begin_inset VSpace bigskip
27964 When you have chosen an
27967 \begin_inset space ~
27972 , the box content can be aligned vertically to:
27975 \begin_layout Description
27976 top This is an example text line.
27978 \begin_inset Box Boxed
27988 height_special "totalheight"
27991 \begin_layout Plain Layout
27993 This box text is top-aligned.
27998 This is an example text line.
28001 \begin_layout Description
28002 middle This is an example text line.
28004 \begin_inset Box Boxed
28014 height_special "totalheight"
28017 \begin_layout Plain Layout
28019 This box text is middle-aligned.
28024 This is an example text line.
28027 \begin_layout Description
28028 bottom This is an example text line.
28030 \begin_inset Box Boxed
28040 height_special "totalheight"
28043 \begin_layout Plain Layout
28045 This box text is bottom-aligned.
28050 This is an example text line.
28053 \begin_layout Description
28054 stretch This is an example text line.
28056 \begin_inset Box Boxed
28066 height_special "totalheight"
28069 \begin_layout Plain Layout
28074 \begin_layout Plain Layout
28079 \begin_layout Plain Layout
28086 This is an example text line.
28089 \begin_layout Standard
28090 To stretch the box content, it must consist of more than one paragraph.
28091 In the example above every text line is in an own paragraph.
28094 \begin_layout Standard
28095 \begin_inset VSpace bigskip
28098 To align the box content horizontally you can use LyX's paragraph dialog
28099 when you have chosen an
28102 \begin_inset space ~
28110 \begin_layout Standard
28112 \begin_inset Box Boxed
28122 height_special "totalheight"
28125 \begin_layout Plain Layout
28130 \begin_layout Plain Layout
28135 \begin_layout Plain Layout
28145 \begin_layout Standard
28146 If you have not set an
28149 \begin_inset space ~
28154 , you can align the box content horizontally in the box dialog.
28157 \begin_layout Standard
28159 \begin_inset Box Boxed
28169 height_special "totalheight"
28172 \begin_layout Plain Layout
28173 This box text is horizontally stretched.
28181 \begin_layout Subsection
28183 \begin_inset CommandInset label
28185 name "sec:Decoration"
28190 \begin_inset Index idx
28193 \begin_layout Plain Layout
28202 \begin_layout Standard
28203 The type of the box can be specified in the box dialog in the drop-down
28209 The following types are possible:
28212 \begin_layout Description
28214 \begin_inset space ~
28217 frame Nothing is drawn.
28220 \begin_layout Description
28222 \begin_inset space ~
28226 \begin_inset space ~
28229 frame This draws a rectangular frame around the box.
28230 The frame line thickness has the size of
28238 \begin_inset Box Boxed
28248 height_special "totalheight"
28251 \begin_layout Plain Layout
28261 \begin_layout Description
28263 \begin_inset space ~
28267 \begin_inset space ~
28270 thin This draws an oval frame around the box.
28271 The frame line thickness has the size 0.4
28272 \begin_inset space \thinspace{}
28277 \begin_inset Box ovalbox
28287 height_special "totalheight"
28290 \begin_layout Plain Layout
28300 \begin_layout Description
28302 \begin_inset space ~
28306 \begin_inset space ~
28309 thick This draws an oval frame around the box.
28310 The frame line thickness has the size 0.8
28311 \begin_inset space \thinspace{}
28316 \begin_inset Box Ovalbox
28326 height_special "totalheight"
28329 \begin_layout Plain Layout
28339 \begin_layout Description
28341 \begin_inset space ~
28344 shadow This draws a rectangular frame with a shadow around the box.
28345 The frame line thickness has the size of
28351 , the shadow has a width of 4
28352 \begin_inset space \thinspace{}
28357 \begin_inset Box Shadowbox
28367 height_special "totalheight"
28370 \begin_layout Plain Layout
28380 \begin_layout Description
28382 \begin_inset space ~
28385 background This draws a box with a red background.
28386 Unlike colored boxes
28390 \begin_layout Plain Layout
28392 \begin_inset space \thinspace{}
28396 \begin_inset CommandInset ref
28398 reference "sec:Colored-Boxes"
28407 , it always uses the whole column width and the box is set as its own paragraph.
28409 \begin_inset Box Shaded
28419 height_special "totalheight"
28422 \begin_layout Plain Layout
28423 Shaded background box
28431 \begin_layout Description
28433 \begin_inset space ~
28437 \begin_inset space ~
28440 frame This draws a double-line rectangular frame around the box.
28441 The line thickness of the inner frame is 0.75
28442 \begin_inset space \thinspace{}
28451 , the thickness of the outer frame is 1.5
28452 \begin_inset space \thinspace{}
28462 The distance between the lines is 1.5
28463 \begin_inset space \thinspace{}
28473 \begin_inset space \thinspace{}
28477 \begin_inset space \thinspace{}
28481 \begin_inset space \thinspace{}
28486 \begin_inset Box Doublebox
28496 height_special "totalheight"
28499 \begin_layout Plain Layout
28501 Double rectangular box
28509 \begin_layout Standard
28510 \begin_inset VSpace bigskip
28513 LyX's box label will reflect the different frame types.
28514 To be able to use all types, the LaTeX-package
28519 \begin_inset Index idx
28522 \begin_layout Plain Layout
28523 LaTeX-packages ! fancybox
28531 \begin_layout Standard
28532 \begin_inset VSpace bigskip
28535 When you use the decoration
28537 simple rectangular frame
28539 and no inner box, you can allow page breaks within a box.
28540 Note that then, unlike other framed boxes, the frame always uses the whole
28541 column width, the box is set as its own paragraph, and
28553 have no effect on this box type.
28554 The frame line thickness has the size of
28562 \begin_inset Box Framed
28572 height_special "totalheight"
28575 \begin_layout Plain Layout
28576 Allow page break box
28584 \begin_layout Section
28586 \begin_inset Index idx
28589 \begin_layout Plain Layout
28590 Boxes ! Customization
28598 \begin_layout Standard
28599 The default value for the size
28606 \begin_inset space \thinspace{}
28610 It can be changed with the following command in TeX-Code to e.
28611 \begin_inset space \thinspace{}
28615 \begin_inset space \space{}
28619 \begin_inset space \thinspace{}
28625 \begin_layout Standard
28635 \begin_layout Standard
28639 \begin_layout Plain Layout
28651 \begin_inset Box Boxed
28661 height_special "totalheight"
28664 \begin_layout Plain Layout
28666 Rectangular box with
28673 \begin_inset space \thinspace{}
28677 \begin_inset space \thinspace{}
28681 \begin_inset space \thinspace{}
28693 \begin_layout Plain Layout
28707 \begin_layout Standard
28708 \begin_inset VSpace bigskip
28711 The space between the frame and the box content is for all frame styles
28713 \begin_inset space \thinspace{}
28717 You can change it by setting the length
28724 For example the command
28727 \begin_layout Standard
28737 \begin_layout Standard
28738 sets the value to 10
28739 \begin_inset space \thinspace{}
28742 pt, as with the following box:
28745 \begin_layout Standard
28749 \begin_layout Plain Layout
28761 \begin_inset Box Boxed
28771 height_special "totalheight"
28774 \begin_layout Plain Layout
28776 Rectangular box with
28783 \begin_inset space \thinspace{}
28787 \begin_inset space \thinspace{}
28791 \begin_inset space \thinspace{}
28803 \begin_layout Plain Layout
28817 \begin_layout Standard
28818 \begin_inset VSpace bigskip
28821 The diameter of the round corners of the oval boxes can be set with the
28832 \begin_layout Standard
28840 \begin_layout Standard
28841 sets the diameter to 1
28842 \begin_inset space \thinspace{}
28849 \begin_layout Standard
28857 \begin_layout Standard
28858 sets the diameter to
28861 \begin_inset space \thinspace{}
28865 \begin_inset space \thinspace{}
28868 minimum(width and heigth of box)
28880 \begin_layout Standard
28884 \begin_layout Plain Layout
28894 \begin_inset Box Ovalbox
28904 height_special "totalheight"
28907 \begin_layout Plain Layout
28916 \begin_inset space \thinspace{}
28920 \begin_inset space \thinspace{}
28924 \begin_inset space \thinspace{}
28936 \begin_layout Plain Layout
28948 \begin_layout Standard
28949 \begin_inset VSpace bigskip
28952 The size of the shadow can be adjusted by changing the length
28960 \begin_inset space \thinspace{}
28963 pt for the following box by this command:
28966 \begin_layout Standard
28976 \begin_layout Standard
28980 \begin_layout Plain Layout
28992 \begin_inset Box Shadowbox
29002 height_special "totalheight"
29005 \begin_layout Plain Layout
29014 \begin_inset space \thinspace{}
29018 \begin_inset space \thinspace{}
29022 \begin_inset space \thinspace{}
29034 \begin_layout Plain Layout
29048 \begin_layout Standard
29049 \begin_inset VSpace bigskip
29055 \begin_layout Standard
29056 The default value for the size
29063 \begin_inset space \thinspace{}
29067 The default space between the note content and the frame is 9
29068 \begin_inset space \thinspace{}
29071 pt and can be changed with the value of
29078 For example the frame appearance of the following
29082 is set with the TeX-Code commands
29085 \begin_layout Standard
29093 \begin_inset Newline newline
29103 \begin_layout Standard
29107 \begin_layout Plain Layout
29116 \begin_layout Plain Layout
29128 \begin_inset Box Framed
29138 height_special "totalheight"
29141 \begin_layout Plain Layout
29155 \begin_layout Plain Layout
29164 \begin_layout Plain Layout
29178 \begin_layout Standard
29179 \begin_inset VSpace bigskip
29185 \begin_layout Standard
29190 boxes the default space between the box content and the box border is 3
29191 \begin_inset space \thinspace{}
29194 pt and can be changed with the value of
29201 The default background color red can either be changed locally with the
29206 definecolor{shadecolor}
29208 or globally with the menu
29210 Tools\SpecialChar \menuseparator
29211 Preferences\SpecialChar \menuseparator
29212 Colors\SpecialChar \menuseparator
29214 \begin_inset space ~
29226 command is explained in section
29227 \begin_inset space ~
29231 \begin_inset CommandInset ref
29233 reference "sec:Colored-Tables"
29241 \begin_layout Plain Layout
29248 requires the LaTeX-package
29252 in the preamble, see section
29253 \begin_inset space ~
29257 \begin_inset CommandInset ref
29259 reference "sec:Colored-Boxes"
29268 For example the appearance of the following shaded background box is set
29269 with the TeX-Code commands
29272 \begin_layout Standard
29282 \begin_inset Newline newline
29289 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29292 \begin_layout Standard
29296 \begin_layout Plain Layout
29305 \begin_layout Plain Layout
29309 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29315 \begin_inset Box Shaded
29325 height_special "totalheight"
29328 \begin_layout Plain Layout
29331 This is yellow text in a
29341 box with dark green background.
29350 \begin_layout Plain Layout
29359 \begin_layout Plain Layout
29363 definecolor{shadecolor}{rgb}{1,0,0}
29371 \begin_layout Standard
29372 \begin_inset VSpace bigskip
29375 Changed lengths and widths are valid for all boxes following the commands
29379 \begin_layout Section
29381 \begin_inset CommandInset label
29383 name "sec:Minipages"
29388 \begin_inset Index idx
29391 \begin_layout Plain Layout
29400 \begin_layout Standard
29401 Minipages are treated by LaTeX as pages within pages and can therefore for
29402 example have their own footnotes.
29405 \begin_layout Standard
29406 Minipages are useful when you write documents with different languages.
29409 \begin_layout Standard
29410 Below are two example minipages side by side.
29411 Their width is set to 45
29412 \begin_inset space \thinspace{}
29415 col% and they are separated by a horizontal fill, that was inserted via
29418 Insert\SpecialChar \menuseparator
29420 \begin_inset space ~
29423 Formatting\SpecialChar \menuseparator
29425 \begin_inset space ~
29431 \begin_inset Newpage newpage
29437 \begin_layout Standard
29438 \begin_inset Box Frameless
29448 height_special "totalheight"
29451 \begin_layout Plain Layout
29454 Dies ist ein deutscher Text.
29455 Dies ist ein deutscher Text.
29456 Dies ist ein deutscher Text.
29457 Dies ist ein deutscher Text.
29458 Dies ist ein deutscher Text.
29459 Dies ist ein deutscher Text.
29460 Dies ist ein deutscher Text.
29461 Dies ist ein deutscher Text.
29462 Dies ist ein deutscher Text.
29463 Dies ist ein deutscher Text.
29464 Dies ist ein deutscher Text.
29465 Dies ist ein deutscher Text.
29466 Dies ist ein deutscher Text
29470 \begin_layout Plain Layout
29473 Dies ist eine deutsche Fußnote.
29479 Dies ist ein deutscher Text.
29480 Dies ist ein deutscher Text.
29486 \begin_inset space \hfill{}
29490 \begin_inset Box Frameless
29500 height_special "totalheight"
29503 \begin_layout Plain Layout
29504 This is an English Text.
29505 This is an English Text.
29506 This is an English Text.
29507 This is an English Text.
29508 This is an English Text.
29509 This is an English Text.
29510 This is an English Text.
29511 This is an English Text.
29512 This is an English Text.
29513 This is an English Text.
29514 This is an English Text.
29515 This is an English Text.
29516 This is an English Text.
29517 This is an English Text.
29518 This is an English Text.
29519 This is an English Text.
29523 \begin_layout Plain Layout
29524 This is an English footnote.
29529 This is an English Text.
29538 \begin_layout Standard
29539 \begin_inset VSpace bigskip
29542 The document-wide paragraph settings are ignored within minipages.
29543 That means that there will be no space between paragraphs in minipages
29544 although you set it to e.
29545 \begin_inset space \thinspace{}
29549 \begin_inset space \space{}
29556 in the document settings.
29559 \begin_layout Standard
29560 Minipages can also be used to set a background color for text parts, see
29562 \begin_inset space ~
29566 \begin_inset CommandInset ref
29568 reference "sub:Color-for-Paragraphs"
29575 \begin_layout Standard
29576 \begin_inset Note Greyedout
29579 \begin_layout Plain Layout
29584 You cannot have floats or margin notes inside minipages but minipages can
29585 be used inside tables, floats, and other boxes.
29593 \begin_layout Section
29595 \begin_inset CommandInset label
29597 name "sec:Parboxes"
29602 \begin_inset Index idx
29605 \begin_layout Plain Layout
29614 \begin_layout Standard
29615 Parboxes are very similar to minipages with the difference that they cannot
29619 \begin_layout Standard
29621 \begin_inset Box Frameless
29631 height_special "totalheight"
29634 \begin_layout Plain Layout
29635 This a text within a parbox.
29636 This a text within a parbox.
29639 \begin_layout Plain Layout
29640 This footnote won't appear:
29644 \begin_layout Plain Layout
29645 This footnote is inside a parbox and will therefore not appear.
29658 \begin_layout Section
29659 Boxes for Words and Characters
29660 \begin_inset Index idx
29663 \begin_layout Plain Layout
29664 Boxes ! for Characters
29672 \begin_layout Subsection
29673 Prevent Hyphenation
29674 \begin_inset CommandInset label
29676 name "sec:Prevent-Hyphenation"
29681 \begin_inset Index idx
29684 \begin_layout Plain Layout
29685 Boxes ! to Prevent Hyphenation
29693 \begin_layout Standard
29694 You can use the box type
29698 to prevent words or text from being hyphenated.
29699 \begin_inset Newline newline
29702 Here is an example text:
29705 \begin_layout Standard
29706 This line is an example to show how you can prevent the hyphenation of
29707 \begin_inset Quotes eld
29711 \begin_inset Quotes erd
29717 \begin_layout Standard
29718 To prevent the hyphenation of the word
29719 \begin_inset Quotes eld
29723 \begin_inset Quotes erd
29726 , put the word into a box, set the
29729 \begin_inset space ~
29739 \begin_inset space \thinspace{}
29745 \begin_layout Standard
29746 This is the result:
29749 \begin_layout Standard
29750 This line is an example to show how you can prevent the hyphenation of
29751 \begin_inset Box Frameless
29761 height_special "totalheight"
29764 \begin_layout Plain Layout
29765 \begin_inset Quotes eld
29769 \begin_inset Quotes erd
29780 \begin_layout Standard
29781 You can alternatively set the command
29782 \begin_inset Quotes eld
29792 \begin_inset Quotes grd
29795 as TeX-Code directly before the word:
29798 \begin_layout Standard
29799 This line is an example to show how you can prevent the hyphenation of
29800 \begin_inset Quotes eld
29807 \begin_layout Plain Layout
29817 \begin_inset Quotes erd
29823 \begin_layout Standard
29824 Of course the word now protrudes over the side margin.
29825 To avoid this, add via the menu
29827 Insert\SpecialChar \menuseparator
29829 \begin_inset space ~
29832 Formatting\SpecialChar \menuseparator
29834 \begin_inset space ~
29842 arg "newline-insert newline"
29845 ) a line break before the word:
29848 \begin_layout Standard
29849 This line is an example to show how you can prevent the hyphenation of
29850 \begin_inset Newline newline
29854 \begin_inset Box Frameless
29864 height_special "totalheight"
29867 \begin_layout Plain Layout
29868 \begin_inset Quotes eld
29872 \begin_inset Quotes erd
29883 \begin_layout Subsection
29885 \begin_inset CommandInset label
29887 name "sub:Vertical-Alignment"
29892 \begin_inset Index idx
29895 \begin_layout Plain Layout
29896 Boxes ! for Vertical Alignment
29902 \begin_inset Index idx
29905 \begin_layout Plain Layout
29914 \begin_layout Standard
29915 With the help of the command
29921 you can align words, characters or other boxes vertically relative to the
29929 is used with the following scheme:
29932 \begin_layout Standard
29937 raisebox{lift}[height][depth]{box content}
29940 \begin_layout Standard
29941 The lift can be a positive value to raise the box or a negative value to
29945 \begin_layout Standard
29946 To align for example the word
29947 \begin_inset Quotes eld
29951 \begin_inset Quotes erd
29954 so that the bottom of the
29955 \begin_inset Quotes eld
29959 \begin_inset Quotes erd
29963 \begin_inset Quotes eld
29967 \begin_inset Quotes erd
29970 is at the baseline, insert the command
29973 \begin_layout Standard
29983 \begin_layout Standard
29984 in TeX-Code before the word.
29985 After the word insert a closing brace
29986 \begin_inset Quotes eld
29994 \begin_inset Quotes erd
29998 \begin_inset Newline newline
30001 This is the result:
30004 \begin_layout Standard
30005 This is a text line with the word
30009 \begin_layout Plain Layout
30021 \begin_inset Quotes eld
30025 \begin_inset Quotes erd
30032 \begin_layout Plain Layout
30042 \begin_layout Standard
30043 \begin_inset VSpace bigskip
30046 When you raise or lower characters in a line, the line distance will be
30050 \begin_layout Standard
30051 This is a text line with the word
30055 \begin_layout Plain Layout
30067 \begin_inset Quotes eld
30071 \begin_inset Quotes erd
30078 \begin_layout Plain Layout
30086 \begin_inset Newline newline
30089 This is a text line with the word
30093 \begin_layout Plain Layout
30103 \begin_inset Quotes eld
30107 \begin_inset Quotes erd
30114 \begin_layout Plain Layout
30124 \begin_layout Standard
30125 If you want to prevent this for a certain reason, set the box height to
30130 \begin_layout Standard
30140 \begin_layout Standard
30141 This is a text line with the word
30145 \begin_layout Plain Layout
30157 \begin_inset Quotes eld
30161 \begin_inset Quotes erd
30168 \begin_layout Plain Layout
30176 \begin_inset Newline newline
30179 This is a text line with the word
30183 \begin_layout Plain Layout
30187 raisebox{0.5cm}[0pt]{
30193 \begin_inset Quotes eld
30197 \begin_inset Quotes erd
30204 \begin_layout Plain Layout
30214 \begin_layout Section
30216 \begin_inset CommandInset label
30218 name "sec:Colored-Boxes"
30223 \begin_inset Index idx
30226 \begin_layout Plain Layout
30235 \begin_layout Subsection
30237 \begin_inset Index idx
30240 \begin_layout Plain Layout
30249 \begin_layout Standard
30250 To color the background of text the text must be put into a so called
30251 \begin_inset Quotes eld
30255 \begin_inset Quotes erd
30259 This requires that the LaTeX-package
30264 \begin_inset Index idx
30267 \begin_layout Plain Layout
30268 LaTeX-packages ! color
30273 is loaded in the document preamble with the command
30276 \begin_layout Standard
30281 @ifundefined{textcolor}
30282 \begin_inset Newline newline
30286 \begin_inset Phantom HPhantom
30289 \begin_layout Plain Layout
30292 \begin_inset space ~
30302 usepackage{color}}{}
30305 \begin_layout Standard
30310 will be loaded automatically by LyX when you color text.
30314 \begin_layout Plain Layout
30315 To avoid it being loaded twice the command
30329 \begin_layout Standard
30330 \begin_inset VSpace medskip
30333 Colorboxes are created with the command
30340 This will be used with the following scheme:
30343 \begin_layout Standard
30348 colorbox{color}{box content}
30351 \begin_layout Standard
30352 The box content can also be a box and colorboxes can also be within other
30356 \begin_layout Standard
30357 The following colors are predefined:
30358 \begin_inset Newline newline
30397 \begin_inset Newline newline
30400 You can also define your own color as described in section
30401 \begin_inset space ~
30405 \begin_inset CommandInset ref
30407 reference "sec:Colored-Tables"
30414 \begin_layout Standard
30416 \begin_inset space \thinspace{}
30420 \begin_inset space \space{}
30423 a red background for a word, insert the command
30426 \begin_layout Standard
30434 \begin_layout Standard
30435 before the word in TeX-Code.
30436 After the word insert a closing brace
30437 \begin_inset Quotes eld
30445 \begin_inset Quotes erd
30449 \begin_inset Newline newline
30452 This is the result:
30455 \begin_layout Standard
30456 This is a line where the word
30460 \begin_layout Plain Layout
30470 \begin_inset Quotes eld
30474 \begin_inset Quotes erd
30481 \begin_layout Plain Layout
30488 has a red background.
30491 \begin_layout Standard
30492 \begin_inset VSpace bigskip
30495 If you would like the box frame in a different color, you can use the command
30502 with the following scheme:
30505 \begin_layout Standard
30510 fcolorbox{frame color}{box color}{box content}
30513 \begin_layout Standard
30527 The frame thickness and the space between the frame and the box content
30528 can be adjusted with the lengths
30540 , respectively, as described in section
30541 \begin_inset space ~
30545 \begin_inset CommandInset ref
30547 reference "sec:Decoration"
30554 \begin_layout Standard
30555 For the following example the command
30558 \begin_layout Standard
30563 fcolorbox{cyan}{magenta}{
30566 \begin_layout Standard
30570 \begin_layout Standard
30571 Here is an example where the frame line thickness was set to 1
30572 \begin_inset space \thinspace{}
30576 \begin_inset Newline newline
30583 \begin_layout Plain Layout
30598 \begin_layout Plain Layout
30602 fcolorbox{cyan}{magenta}{
30607 This is text within a colored, framed box.
30611 \begin_layout Plain Layout
30621 \begin_layout Standard
30622 \begin_inset VSpace bigskip
30625 Of course you can also have colored text inside a colorbox:
30626 \begin_inset Newline newline
30633 \begin_layout Plain Layout
30637 fcolorbox{cyan}{magenta}{
30644 This is colored text within a colored, framed box.
30650 \begin_layout Plain Layout
30661 \begin_layout Plain Layout
30675 \begin_layout Standard
30676 \begin_inset VSpace medskip
30682 \begin_layout Standard
30683 \begin_inset Note Greyedout
30686 \begin_layout Plain Layout
30691 Text in colorboxes cannot have line breaks.
30692 To color multiple text lines or paragraphs, use a box inside a colorbox
30693 as described in the following.
30701 \begin_layout Subsection
30702 Color for Paragraphs
30703 \begin_inset CommandInset label
30705 name "sub:Color-for-Paragraphs"
30710 \begin_inset Index idx
30713 \begin_layout Plain Layout
30714 Color ! for Paragraphs
30722 \begin_layout Standard
30723 To set the background color for more than one text line, put the text into
30725 Before the minipage insert the
30734 \begin_layout Standard
30742 \begin_layout Standard
30744 After the minipage insert a closing brace
30745 \begin_inset Quotes eld
30753 \begin_inset Quotes erd
30759 \begin_layout Standard
30763 \begin_layout Plain Layout
30767 colorbox{lightgrey}{
30773 \begin_inset Box Frameless
30783 height_special "totalheight"
30786 \begin_layout Plain Layout
30787 This is text with background color.
30788 This is text with background color.
30791 \begin_layout Plain Layout
30792 \begin_inset VSpace defskip
30795 The text can have footnotes
30799 \begin_layout Plain Layout
30800 Another example footnote
30805 and can include tables and figures.
30808 \begin_layout Plain Layout
30810 \begin_inset Tabular
30811 <lyxtabular version="3" rows="3" columns="3">
30812 <features tabularvalignment="middle">
30813 <column alignment="center" valignment="top" width="0">
30814 <column alignment="center" valignment="top" width="0">
30815 <column alignment="center" valignment="top" width="0">
30817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30820 \begin_layout Plain Layout
30826 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30829 \begin_layout Plain Layout
30835 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30838 \begin_layout Plain Layout
30846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30849 \begin_layout Plain Layout
30855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
30858 \begin_layout Plain Layout
30860 \begin_inset Quotes erd
30868 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
30871 \begin_layout Plain Layout
30879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30882 \begin_layout Plain Layout
30888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
30891 \begin_layout Plain Layout
30897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
30900 \begin_layout Plain Layout
30920 \begin_layout Plain Layout
30930 \begin_layout Section
30931 Rotated and Scaled Boxes
30934 \begin_layout Standard
30935 To use the commands described in this section, the LaTeX-package
30940 \begin_inset Index idx
30943 \begin_layout Plain Layout
30944 LaTeX-packages ! graphicx
30949 needs to be loaded in the document preamble with the command
30952 \begin_layout Standard
30957 @ifundefined{rotatebox}
30958 \begin_inset Newline newline
30962 \begin_inset Phantom HPhantom
30965 \begin_layout Plain Layout
30968 \begin_inset space ~
30978 usepackage{graphicx}}{}
30981 \begin_layout Standard
30982 \begin_inset Note Greyedout
30985 \begin_layout Plain Layout
30990 Some DVI-viewers can't display rotated or scaled material.
30998 \begin_layout Standard
30999 \begin_inset Note Greyedout
31002 \begin_layout Plain Layout
31007 Floats mustn't be inside a rotated or scaled box.
31015 \begin_layout Subsection
31017 \begin_inset Index idx
31020 \begin_layout Plain Layout
31027 \begin_inset Index idx
31030 \begin_layout Plain Layout
31037 \begin_inset Index idx
31040 \begin_layout Plain Layout
31047 \begin_inset Index idx
31050 \begin_layout Plain Layout
31051 Table Customization ! Rotating
31059 \begin_layout Standard
31060 To rotate material, you can put it into a rotated box.
31061 Such a box is created using the command
31067 in TeX-Code with the following scheme:
31070 \begin_layout Standard
31075 rotatebox[rotation origin]{rotation angle}{box content}
31078 \begin_layout Standard
31079 The rotation origin is specified in the form
31084 The following positions are possible:
31104 (top), along with meaningful combinations of the four base positions.
31109 means that the rotation origin is at the top left corner of the box.
31110 When no rotation origin is specified, the position
31115 The rotation angle is a number that can be negative that specifies the
31117 The rotation direction is counterclockwise.
31120 \begin_layout Standard
31121 In the following example the command
31125 rotatebox[origin=c]{60}{
31127 was inserted as TeX-Code before the text
31128 \begin_inset Quotes eld
31132 \begin_inset Quotes erd
31135 ; after the text the box was closed by a closing brace
31142 \begin_layout Standard
31147 \begin_layout Plain Layout
31151 rotatebox[origin=c]{60}{
31160 \begin_layout Plain Layout
31170 \begin_layout Standard
31171 The box content can also be another box or an inline formula:
31174 \begin_layout Standard
31179 \begin_layout Plain Layout
31183 rotatebox[origin=r]{-60}{
31189 \begin_inset Box Doublebox
31199 height_special "totalheight"
31202 \begin_layout Plain Layout
31212 \begin_layout Plain Layout
31223 \begin_layout Plain Layout
31227 rotatebox[origin=lb]{60}{
31233 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31240 \begin_layout Plain Layout
31250 \begin_layout Standard
31251 or an image or table:
31254 \begin_layout Standard
31259 \begin_layout Plain Layout
31263 rotatebox[origin=lb]{90}{
31269 \begin_inset Graphics
31270 filename clipart/platypus.eps
31280 \begin_layout Plain Layout
31287 with a rotated image
31291 \begin_layout Plain Layout
31295 rotatebox[origin=l]{-90}{
31301 \begin_inset Tabular
31302 <lyxtabular version="3" rows="2" columns="2">
31303 <features tabularvalignment="middle">
31304 <column alignment="center" valignment="top" width="0">
31305 <column alignment="center" valignment="top" width="0">
31307 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31310 \begin_layout Plain Layout
31316 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31319 \begin_layout Plain Layout
31327 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31330 \begin_layout Plain Layout
31336 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31339 \begin_layout Plain Layout
31354 \begin_layout Plain Layout
31364 \begin_layout Subsection
31366 \begin_inset Index idx
31369 \begin_layout Plain Layout
31376 \begin_inset Index idx
31379 \begin_layout Plain Layout
31386 \begin_inset Index idx
31389 \begin_layout Plain Layout
31396 \begin_inset Index idx
31399 \begin_layout Plain Layout
31400 Table Customization ! Scaling
31408 \begin_layout Standard
31409 To scale material the commands
31421 can be used as TeX-Code.
31424 \begin_layout Standard
31431 is used with the following scheme:
31434 \begin_layout Standard
31439 scalebox{horizontal}[vertical]{box content}
31442 \begin_layout Standard
31443 Horizontal and vertical are the corresponding scaling factors.
31444 If no vertical scaling factor is given, the horizontal factor will also
31445 be used as the vertical one.
31448 \begin_layout Standard
31455 creates for example a double size
31459 \begin_layout Plain Layout
31472 \begin_layout Plain Layout
31479 , compared with the document text size.
31482 \begin_layout Standard
31487 scalebox{2}[1]{Hello}
31489 on the other hand distorts the
31493 \begin_layout Plain Layout
31506 \begin_layout Plain Layout
31516 \begin_layout Standard
31517 If the scaling factor is negative, the box content will be mirrored.
31518 Therefore the command
31522 scalebox{-1}[1]{Hello}
31524 can be used to create mirror writing:
31528 \begin_layout Plain Layout
31541 \begin_layout Plain Layout
31551 \begin_layout Standard
31556 scalebox{1}[-1]{Hello}
31562 \begin_layout Plain Layout
31575 \begin_layout Plain Layout
31585 \begin_layout Standard
31590 scalebox{-1}[1]{box content}
31592 there exists the command
31593 \begin_inset Newline newline
31600 reflectbox{box content}
31605 \begin_layout Standard
31606 \begin_inset VSpace bigskip
31615 is used to scale the box to a defined width and height.
31616 The command scheme is:
31619 \begin_layout Standard
31624 resizebox{width}{height}{box content}
31627 \begin_layout Standard
31628 If one of the two command arguments given is an exclamation mark
31632 , the size is set so that the aspect ratio of the box content is kept.
31635 \begin_layout Standard
31640 resizebox{2cm}{1cm}{Hello}
31646 \begin_layout Plain Layout
31650 resizebox{2cm}{1cm}{
31659 \begin_layout Plain Layout
31667 \begin_inset Newline newline
31674 resizebox{2cm}{!}{Hello}
31680 \begin_layout Plain Layout
31693 \begin_layout Plain Layout
31703 \begin_layout Standard
31704 \begin_inset VSpace bigskip
31708 \begin_inset Note Greyedout
31711 \begin_layout Plain Layout
31728 are set to zero, no LaTeX-errors occur when exporting the document but
31729 the exported files can not or only partly be displayed.
31737 \begin_layout Standard
31738 \begin_inset VSpace bigskip
31744 \begin_layout Standard
31745 The boxes can be combined in any order.
31747 \begin_inset space \thinspace{}
31751 \begin_inset space \space{}
31755 \begin_inset Newline newline
31762 rotatebox[origin=c]{-45}{
31766 reflectbox{Hello}}}
31767 \begin_inset Newline newline
31775 \begin_layout Standard
31780 \begin_layout Plain Layout
31784 rotatebox[origin=c]{-45}{
31797 \begin_layout Plain Layout
31807 \begin_layout Standard
31809 Images, tables, and inline formulas are allowed as box content:
31812 \begin_layout Standard
31817 \begin_layout Plain Layout
31821 rotatebox[origin=c]{-30}{
31831 \begin_inset Graphics
31832 filename clipart/platypus.eps
31842 \begin_layout Plain Layout
31853 \begin_layout Plain Layout
31857 rotatebox[origin=c]{-45}{
31867 \begin_inset Tabular
31868 <lyxtabular version="3" rows="2" columns="2">
31869 <features tabularvalignment="middle">
31870 <column alignment="center" valignment="top" width="0">
31871 <column alignment="center" valignment="top" width="0">
31873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31876 \begin_layout Plain Layout
31882 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31885 \begin_layout Plain Layout
31893 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31896 \begin_layout Plain Layout
31902 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31905 \begin_layout Plain Layout
31920 \begin_layout Plain Layout
31931 \begin_layout Plain Layout
31935 rotatebox[origin=c]{-45}{
31945 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31952 \begin_layout Plain Layout
31962 \begin_layout Standard
31963 When the global formula style
31967 is used in the document
31971 \begin_layout Plain Layout
31973 \begin_inset Quotes eld
31977 \begin_inset Quotes erd
31980 is added to the document class options.
31985 , display style formulas can also be scaled.
31988 \begin_layout Chapter
31989 External Document Parts
31990 \begin_inset Index idx
31993 \begin_layout Plain Layout
31994 External Document Parts
32002 \begin_layout Standard
32005 Insert\SpecialChar \menuseparator
32008 you can insert external material to your document.
32012 \begin_layout Description
32014 \begin_inset space ~
32017 Document Another LyX document; its content is directly inserted to your
32021 \begin_layout Description
32023 \begin_inset space ~
32026 Text A text document; each line is inserted in your document as a separate
32030 \begin_layout Description
32032 \begin_inset space ~
32036 \begin_inset space ~
32040 \begin_inset space ~
32043 Lines A text document; text lines are inserted in your document continuously
32044 but an empty text line creates a new paragraph.
32047 \begin_layout Description
32049 \begin_inset space ~
32052 Material Files in various formats.
32055 \begin_layout Description
32057 \begin_inset space ~
32060 Document LyX or LaTeX-documents.
32063 \begin_layout Section
32065 \begin_inset Index idx
32068 \begin_layout Plain Layout
32069 External Document Parts ! External Material
32077 \begin_layout Standard
32078 The external material feature allows you to insert files in to your document
32079 without converting them to a format that can be read by the document output
32081 LyX takes care of the necessary conversions.
32082 This is similar to images that can be inserted in various image formats
32084 When you have enabled Instant Preview in LyX's preferences under
32087 \begin_inset space ~
32091 \begin_inset space ~
32094 feel\SpecialChar \menuseparator
32097 , the external material types Dia and Xfig are directly shown in LyX.
32100 \begin_layout Standard
32101 External material can be inserted via the
32105 dialog that is accessible with the menu
32107 Insert\SpecialChar \menuseparator
32108 File\SpecialChar \menuseparator
32110 \begin_inset space ~
32116 Currently the following file types (
32123 \begin_layout Description
32124 ChessDiagram This template supports chess position diagrams made with the
32128 \begin_inset CommandInset href
32131 target "http://en.wikipedia.org/wiki/XBoard"
32140 \begin_layout Description
32141 Date This inserts the date in the form
32146 This is a date inserted as external material:
32147 \begin_inset External
32154 \begin_inset space ~
32158 \begin_inset Note Note
32161 \begin_layout Plain Layout
32162 Remove the protected space when bug 4398 is fixed!
32168 \begin_inset Newline newline
32171 The date is not shown within LyX, only in the output.
32172 There are two other methods of inserting a date: Via menu
32174 Insert\SpecialChar \menuseparator
32177 and with the LaTeX command
32184 The different methods are compared in Table
32185 \begin_inset space ~
32189 \begin_inset CommandInset ref
32191 reference "tab:Comparison-of-the"
32198 \begin_layout Description
32199 Dia This template supports diagrams created with the program
32202 \begin_inset CommandInset href
32205 target "http://en.wikipedia.org/wiki/Dia_(software)"
32214 \begin_layout Description
32215 LilyPond This template is used for music notation typeset with the program
32216 \begin_inset Newline linebreak
32222 \begin_inset CommandInset href
32225 target "http://en.wikipedia.org/wiki/LilyPond"
32234 \begin_layout Description
32235 PDFPages With this template you can insert PDF documents to your document.
32236 To insert certain or all pages of a PDF, use the
32246 LaTeX and LyX options
32248 tab according to the template description in the dialog.
32253 option is given, only the first page of the PDF will be inserted.
32256 \begin_layout Description
32257 RasterImage This can be used for bitmap images.
32258 Nearly all popular image formats are supported.
32259 The image can be treated in the
32263 dialog like the images that are usually included via the
32267 dialog as described in section
32268 \begin_inset space ~
32272 \begin_inset CommandInset ref
32274 reference "sec:Graphics-Dialog"
32279 The difference is that only raster images are allowed; that means that
32280 PDF and EPS-images are not supported.
32283 \begin_layout Description
32284 XFig This template supports images created with the program
32287 \begin_inset CommandInset href
32290 target "http://en.wikipedia.org/wiki/Xfig"
32299 \begin_layout Standard
32300 \begin_inset Float table
32306 \begin_layout Plain Layout
32307 \begin_inset Caption
32309 \begin_layout Plain Layout
32310 \begin_inset CommandInset label
32312 name "tab:Comparison-of-the"
32316 Comparison of the date input methods.
32324 \begin_layout Plain Layout
32326 \begin_inset Tabular
32327 <lyxtabular version="3" rows="4" columns="4">
32328 <features tabularvalignment="middle">
32329 <column alignment="center" valignment="top" width="0">
32330 <column alignment="center" valignment="top" width="0">
32331 <column alignment="center" valignment="top" width="0">
32332 <column alignment="center" valignment="top" width="0">
32334 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32337 \begin_layout Plain Layout
32343 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32346 \begin_layout Plain Layout
32349 External Material\SpecialChar \menuseparator
32355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32358 \begin_layout Plain Layout
32361 Insert\SpecialChar \menuseparator
32367 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32370 \begin_layout Plain Layout
32382 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32385 \begin_layout Plain Layout
32391 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32394 \begin_layout Plain Layout
32400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32403 \begin_layout Plain Layout
32409 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32412 \begin_layout Plain Layout
32413 as TeX-Code inset box
32420 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32423 \begin_layout Plain Layout
32429 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32432 \begin_layout Plain Layout
32438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32441 \begin_layout Plain Layout
32447 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32450 \begin_layout Plain Layout
32458 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32461 \begin_layout Plain Layout
32467 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32470 \begin_layout Plain Layout
32476 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32479 \begin_layout Plain Layout
32485 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32488 \begin_layout Plain Layout
32507 \begin_layout Standard
32508 When you use the option
32520 dialog, only the path to the inserted file is shown in the output.
32521 \begin_inset Newline newline
32524 External material is displayed in LyX either as a box like this:
32525 \begin_inset Graphics
32526 filename clipart/ExternalMaterialQt4.png
32528 scaleBeforeRotation
32532 or as image, depending on the option
32538 LaTeX and LyX options
32543 \begin_layout Standard
32550 manual explains how you can define your own templates.
32553 \begin_layout Section
32555 \begin_inset CommandInset label
32557 name "sec:Child-Documents"
32562 \begin_inset Index idx
32565 \begin_layout Plain Layout
32566 External Document Parts ! Child Documents
32572 \begin_inset Index idx
32575 \begin_layout Plain Layout
32584 \begin_layout Standard
32585 Child documents are used if you have a long document consisting of several
32586 larger parts or sections.
32587 For maintenance it is often useful and sometimes even required to split
32588 the document into several files that can be revised separately.
32589 The different documents are then the so called
32590 \begin_inset Quotes eld
32594 \begin_inset Quotes erd
32597 , and a master document connects them to print the full document or parts
32599 A child document inherits elements of its master, for example the LaTeX
32600 preamble, the bibliography, and labels for cross-references.
32603 \begin_layout Standard
32604 To be able to work on child documents without the need to open their master,
32605 specify in the child document the master in the menu
32607 Document\SpecialChar \menuseparator
32608 Settings\SpecialChar \menuseparator
32610 \begin_inset space ~
32616 This master document will then be used in the background by LyX when you
32617 edit the child document.
32620 \begin_layout Standard
32621 Included documents are displayed in LyX as a box like this:
32622 \begin_inset Graphics
32623 filename clipart/ChildDocumentQt4.png
32625 scaleBeforeRotation
32629 To include child documents in a master document use the menu
32631 Insert\SpecialChar \menuseparator
32632 File\SpecialChar \menuseparator
32634 \begin_inset space ~
32640 A dialog pops up where you can choose between four include methods:
32643 \begin_layout Description
32644 Include You can include LyX- and LaTeX-documents.
32653 dialog, the included documents will be opened in LyX in a new file tab
32654 so that you can modify them.
32655 \begin_inset Newline newline
32661 \begin_layout Standard
32662 Here is a child document inserted using
32667 \begin_inset CommandInset include
32668 LatexCommand include
32669 filename "DummyDocument1.lyx"
32676 \begin_layout Standard
32677 The section numbering includes the sections of the included files in the
32678 order they are inserted in the master document.
32679 The included example document has for example a subsection that is numbered
32680 as a subsection of this section.
32681 Labels of included documents can be referenced: Subsection
32682 \begin_inset space ~
32686 \begin_inset CommandInset ref
32688 reference "sub:External-Subsection-1"
32695 \begin_layout Standard
32696 The preamble of the child document is ignored; only the preamble of the
32697 master document is used.
32698 Branches in child documents will be ignored by the master document when
32699 the master document does not have a branch with the same name.
32700 Included documents are inserted starting on a new page and ending with
32704 \begin_layout Standard
32705 \begin_inset Note Greyedout
32708 \begin_layout Plain Layout
32713 If you have included a LyX- or LaTeX-file, you are warned when you export/view
32714 the document in case the child document uses another document class than
32715 the master document as this will lead to unexpected outputs.
32723 \begin_layout Description
32724 Input This method is very similar to the Include method.
32725 The differences are:
32729 \begin_layout Itemize
32730 Input files don't start with a new page and don't end with a page break.
32733 \begin_layout Itemize
32734 Input files can be previewed in LyX when
32737 \begin_inset space ~
32742 is enabled in LyX's preferences under
32745 \begin_inset space ~
32749 \begin_inset space ~
32752 feel\SpecialChar \menuseparator
32758 \begin_layout Itemize
32759 You cannot exclude Input files via the menu
32761 Document\SpecialChar \menuseparator
32762 Settings\SpecialChar \menuseparator
32769 \begin_layout Standard
32770 Here is a child document inserted using
32775 \begin_inset CommandInset include
32777 filename "DummyDocument2.lyx"
32784 \begin_layout Description
32785 Verbatim With this method any text file can be included.
32786 The file is shown in the output with its source code; no command used in
32787 the text is invoked.
32788 You can use the option
32790 Mark spaces in output
32792 that displays the character
32793 \begin_inset Quotes eld
32800 \begin_layout Plain Layout
32810 \begin_inset Quotes erd
32813 for every space character in the source code.
32814 The difference from the method via the menu
32816 Insert\SpecialChar \menuseparator
32817 File\SpecialChar \menuseparator
32819 \begin_inset space ~
32824 is that the document content is not shown in LyX.
32827 \begin_layout Standard
32828 Here is a child document inserted as Verbatim:
32829 \begin_inset CommandInset include
32830 LatexCommand verbatiminput
32831 filename "DummyTextDocument.txt"
32836 \begin_inset VSpace bigskip
32839 Here is a child document inserted as Verbatim using the
32841 Mark spaces in output
32844 \begin_inset CommandInset include
32845 LatexCommand verbatiminput*
32846 filename "DummyTextDocument.txt"
32853 \begin_layout Standard
32854 \begin_inset VSpace bigskip
32860 \begin_layout Standard
32861 \begin_inset Note Greyedout
32864 \begin_layout Plain Layout
32869 As you can see in the examples above, the text of the documents included
32874 is not broken at the end of the document lines.
32882 \begin_layout Description
32883 Listings This type is described in chapter
32884 \begin_inset space ~
32888 \begin_inset CommandInset ref
32890 reference "cha:Program-Code-Listings"
32897 \begin_layout Standard
32898 \begin_inset Note Greyedout
32901 \begin_layout Plain Layout
32906 Including the same document twice in a document using different methods
32907 could cause LaTeX-problems.
32915 \begin_layout Standard
32916 If you want to view/export only selected children of your master document,
32917 either because you want to save compiling time or because you want to distribut
32918 e single chapters of the book you are just writing, you can exclude children
32920 This is done via the menu
32922 Document\SpecialChar \menuseparator
32923 Settings\SpecialChar \menuseparator
32927 You can exclude\SpecialChar \slash{}
32928 include children by double-clicking on the
32932 column of the respective child document in the list (note that this only
32933 works for documents embedded via
32934 \begin_inset Quotes eld
32938 \begin_inset Quotes erd
32942 \begin_inset Quotes eld
32946 \begin_inset Quotes erd
32952 Maintain counters and references
32954 is enabled, LyX will assure that all page numbers, references etc.
32955 \begin_inset space ~
32958 are correct as if the whole document was processed.
32959 This is useful if you want the selected sub-documents to look exactly as
32960 in the context of the whole document.
32961 However, LyX needs to process the whole document in the background for
32963 So if you want to save compile time and if counters and references do not
32964 need to be correct, disable this checkbox.
32967 \begin_layout Standard
32968 Alternatively, you can put each included file into a branch.
32972 \begin_layout Plain Layout
32973 Branches are described in section
32986 By enabling\SpecialChar \slash{}
32987 disabling branches you can decide which included files will
32988 appear in the output.
32989 This has the advantage that it also works with Input'ed sub-documents.
32990 However, counters and references will not be maintained with this approach.
32993 \begin_layout Chapter
32994 Program Code Listings
32995 \begin_inset CommandInset label
32997 name "cha:Program-Code-Listings"
33002 \begin_inset Index idx
33005 \begin_layout Plain Layout
33012 \begin_inset Index idx
33015 \begin_layout Plain Layout
33022 \begin_inset Index idx
33025 \begin_layout Plain Layout
33034 \begin_layout Standard
33035 To include and typeset program code you can use the
33039 inset that can be inserted via the menu
33041 Insert\SpecialChar \menuseparator
33050 \begin_inset Index idx
33053 \begin_layout Plain Layout
33054 LaTeX-packages ! listings
33059 provides a powerful and flexible way to insert program source code into
33063 \begin_layout Standard
33064 Right-clicking on a listings inset opens the context menu containing where
33065 you can set the listings format.
33068 \begin_layout Standard
33069 By default, a listing starts a new paragraph in the output.
33070 The placement option
33073 \begin_inset space ~
33078 prints the listing inline like this:
33079 \begin_inset listings
33080 lstparams "language={C++}"
33084 \begin_layout Plain Layout
33092 \begin_inset Newline newline
33099 creates a listings float where you can specify the placement options
33100 \begin_inset Quotes eld
33108 \begin_inset Quotes erd
33112 \begin_inset Quotes eld
33120 \begin_inset Quotes erd
33124 \begin_inset Quotes eld
33132 \begin_inset Quotes erd
33136 \begin_inset Quotes eld
33144 \begin_inset Quotes erd
33147 corresponding to the float placement options described in section
33148 \begin_inset space ~
33152 \begin_inset CommandInset ref
33154 reference "sec:Float-Placement"
33159 The placement options can be mixed and are inserted without any separation,
33161 \begin_inset space \thinspace{}
33165 \begin_inset space \space{}
33169 \begin_inset Quotes eld
33177 \begin_inset Quotes erd
33182 \begin_inset Quotes eld
33186 \begin_inset Quotes erd
33189 has sometimes no effect, but you don't need to use the
33193 option in this case as also non-float listings can have captions and be
33197 \begin_layout Standard
33198 You can add captions to listings with the menu
33200 Insert\SpecialChar \menuseparator
33204 Listings can be referenced like floats: Listing
33205 \begin_inset space ~
33209 \begin_inset CommandInset ref
33211 reference "lst:Example-Listing"
33218 \begin_layout Standard
33219 \begin_inset listings
33220 lstparams "language=Python"
33224 \begin_layout Plain Layout
33226 \begin_inset Caption
33228 \begin_layout Plain Layout
33229 \begin_inset CommandInset label
33231 name "lst:Example-Listing"
33235 Example Listing float
33240 # Example listing float
33243 \begin_layout Plain Layout
33248 \begin_layout Plain Layout
33250 'this is a python function'
33253 \begin_layout Plain Layout
33263 \begin_layout Standard
33264 When you have set a programming language in the listings dialog, the keywords
33265 of this language will be recognized and specially typeset in the output.
33266 In the example listings the Python keyword
33267 \begin_inset Quotes eld
33271 \begin_inset Quotes erd
33274 is recognized and printed bold in the output.
33277 \begin_layout Standard
33278 \begin_inset Note Greyedout
33281 \begin_layout Plain Layout
33286 If you don't get bold keywords when using typewriter fonts, your
33290 font probably doesn't provide a bold shape.
33291 In this case select a different one in the menu
33293 Document\SpecialChar \menuseparator
33294 Settings\SpecialChar \menuseparator
33306 provide bold shapes.)
33314 \begin_layout Standard
33318 \begin_inset space ~
33323 of the listings dialog you can specify the line numbering style.
33324 You can insert a number to specify which lines are numbered in the field
33331 \begin_inset space \thinspace{}
33335 \begin_inset space \space{}
33339 \begin_inset Quotes eld
33343 \begin_inset Quotes erd
33346 , only every 3rd line will be numbered.
33349 \begin_layout Standard
33350 You can furthermore specify a range of lines; only these will then appear
33354 Extended character table
33356 should be used when you use national characters like the German umlauts
33358 \begin_inset Newline newline
33361 Here is an example listing with left line numbering, step
33362 \begin_inset Quotes eld
33366 \begin_inset Quotes erd
33370 \begin_inset Quotes eld
33374 \begin_inset Quotes erd
33378 \begin_inset Quotes eld
33381 Extended character table
33382 \begin_inset Quotes erd
33386 \begin_inset Quotes eld
33390 \begin_inset space ~
33394 \begin_inset space ~
33398 \begin_inset Quotes erd
33402 \begin_inset space \thinspace{}
33406 \begin_inset space \thinspace{}
33412 \begin_layout Standard
33413 \begin_inset listings
33414 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
33418 \begin_layout Plain Layout
33423 \begin_layout Plain Layout
33425 'this is a python function'
33428 \begin_layout Plain Layout
33433 \begin_layout Plain Layout
33438 \begin_layout Plain Layout
33440 'This is a German word: Tschüß'
33443 \begin_layout Plain Layout
33448 \begin_layout Plain Layout
33453 \begin_layout Plain Layout
33455 'this is a python function'
33458 \begin_layout Plain Layout
33468 \begin_layout Standard
33469 When you have tabulators in your listing, you can specify the number of
33470 characters that are spanned by a tabulator in the field
33473 \begin_inset space ~
33481 \begin_layout Standard
33482 \begin_inset Note Greyedout
33485 \begin_layout Plain Layout
33490 Due to a bug in the
33494 package the line numbering is shifted by a line by every previous listing.
33495 That's the reason why the lines 2 and 5 are numbered in the above listing
33496 and not the lines 3 and 6.
33504 \begin_layout Standard
33505 \begin_inset VSpace bigskip
33511 \begin_layout Standard
33512 It is also possible to print lines from a file as listing.
33513 To do this, use the menu
33515 Insert\SpecialChar \menuseparator
33516 File\SpecialChar \menuseparator
33519 and choose the type
33527 \begin_layout Plain Layout
33528 The other child document types are described in section
33529 \begin_inset space ~
33533 \begin_inset CommandInset ref
33535 reference "sec:Child-Documents"
33544 In the child document dialog you can specify the listing parameters in
33546 To show a list of all available parameters, type in a question mark
33547 \begin_inset Quotes eld
33551 \begin_inset Quotes erd
33557 \begin_layout Standard
33558 To reference child document listings, write a label text into the corresponding
33559 field of the child document dialog.
33560 The label can then be referenced using the menu
33562 Insert\SpecialChar \menuseparator
33568 \begin_layout Standard
33570 \begin_inset space ~
33574 \begin_inset CommandInset ref
33576 reference "lst:file-listing"
33580 is an example for a listing of a file; there the lines 10
33581 \begin_inset space \thinspace{}
33585 \begin_inset space \thinspace{}
33588 15 of this LyX file are listed.
33591 \begin_layout Standard
33592 \begin_inset CommandInset include
33593 LatexCommand lstinputlisting
33594 filename "EmbeddedObjects.lyx"
33595 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
33602 \begin_layout Standard
33603 \begin_inset VSpace bigskip
33609 \begin_layout Standard
33610 Inserting a formula into a listing can be done the following way:
33613 \begin_layout Enumerate
33614 Open the listings dialog and add
33615 \begin_inset Newline newline
33623 \begin_inset Newline newline
33626 to the field of the
33633 \begin_layout Enumerate
33634 Create a formula outside the listing
33637 \begin_layout Enumerate
33638 Copy the content of the formula (not the formula inset) to the clipboard
33648 \begin_layout Enumerate
33649 In the listing write
33650 \begin_inset Quotes eld
33658 \begin_inset Quotes erd
33661 and copy from the clipboard between the dollar-signs (shortcut
33670 \begin_layout Standard
33671 \begin_inset listings
33672 lstparams "language=Python,mathescape=true"
33676 \begin_layout Plain Layout
33678 \begin_inset Caption
33680 \begin_layout Plain Layout
33681 Example Listing float containing a formula
33686 # Example listing float
33689 \begin_layout Plain Layout
33694 \begin_layout Plain Layout
33707 \begin_layout Plain Layout
33717 \begin_layout Standard
33718 \begin_inset VSpace bigskip
33724 \begin_layout Standard
33725 Global listings settings can be set in the
33727 Document\SpecialChar \menuseparator
33728 Settings\SpecialChar \menuseparator
33732 To get there a list of available options, type in a question mark
33733 \begin_inset Quotes eld
33737 \begin_inset Quotes erd
33743 \begin_layout Standard
33744 For more information about the
33748 package, we refer to its documentation
33749 \begin_inset CommandInset citation
33758 \begin_layout Standard
33759 \begin_inset Newpage newpage
33765 \begin_layout Chapter
33767 Units available in LyX
33768 \begin_inset Index idx
33771 \begin_layout Plain Layout
33778 \begin_inset CommandInset label
33780 name "cha:Units-available-in"
33787 \begin_layout Standard
33788 To understand the units described in this documentation, Table
33789 \begin_inset space ~
33793 \begin_inset CommandInset ref
33795 reference "tab:Units"
33799 explains all units available in LyX.
33802 \begin_layout Standard
33803 \begin_inset Float table
33809 \begin_layout Plain Layout
33810 \begin_inset Caption
33812 \begin_layout Plain Layout
33813 \begin_inset CommandInset label
33827 \begin_layout Plain Layout
33828 \begin_inset VSpace medskip
33834 \begin_layout Plain Layout
33836 \begin_inset Tabular
33837 <lyxtabular version="3" rows="20" columns="2">
33838 <features tabularvalignment="middle">
33839 <column alignment="center" valignment="top" width="0">
33840 <column alignment="center" valignment="top" width="0">
33842 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33845 \begin_layout Plain Layout
33851 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33854 \begin_layout Plain Layout
33862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33865 \begin_layout Plain Layout
33871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33874 \begin_layout Plain Layout
33882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33885 \begin_layout Plain Layout
33891 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33894 \begin_layout Plain Layout
33902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33905 \begin_layout Plain Layout
33911 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33914 \begin_layout Plain Layout
33922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33925 \begin_layout Plain Layout
33931 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33934 \begin_layout Plain Layout
33936 \begin_inset space \thinspace{}
33940 \begin_inset space \thinspace{}
33950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33953 \begin_layout Plain Layout
33959 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33962 \begin_layout Plain Layout
33964 \begin_inset space \thinspace{}
33968 \begin_inset space \thinspace{}
33978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33981 \begin_layout Plain Layout
33987 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33990 \begin_layout Plain Layout
33991 scaled point (65536
33992 \begin_inset space \thinspace{}
33996 \begin_inset space \thinspace{}
34006 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34009 \begin_layout Plain Layout
34015 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34018 \begin_layout Plain Layout
34020 \begin_inset space \thinspace{}
34024 \begin_inset space \thinspace{}
34034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34037 \begin_layout Plain Layout
34043 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34046 \begin_layout Plain Layout
34048 \begin_inset space \thinspace{}
34052 \begin_inset Formula $\approx$
34056 \begin_inset space \thinspace{}
34066 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34069 \begin_layout Plain Layout
34075 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34078 \begin_layout Plain Layout
34080 \begin_inset space \thinspace{}
34084 \begin_inset space \thinspace{}
34094 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34097 \begin_layout Plain Layout
34103 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34106 \begin_layout Plain Layout
34107 % of original image width
34114 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34117 \begin_layout Plain Layout
34123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34126 \begin_layout Plain Layout
34134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34137 \begin_layout Plain Layout
34143 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34146 \begin_layout Plain Layout
34154 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34157 \begin_layout Plain Layout
34163 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34166 \begin_layout Plain Layout
34174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34177 \begin_layout Plain Layout
34183 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34186 \begin_layout Plain Layout
34194 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34197 \begin_layout Plain Layout
34203 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34206 \begin_layout Plain Layout
34214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34217 \begin_layout Plain Layout
34223 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34226 \begin_layout Plain Layout
34234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34237 \begin_layout Plain Layout
34243 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34246 \begin_layout Plain Layout
34258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34261 \begin_layout Plain Layout
34267 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34270 \begin_layout Plain Layout
34282 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34285 \begin_layout Plain Layout
34291 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34294 \begin_layout Plain Layout
34296 \begin_inset space \thinspace{}
34300 \begin_inset space \thinspace{}
34321 \begin_layout Chapter
34322 Output File Formats with Graphics
34323 \begin_inset CommandInset label
34325 name "cha:Output-File-Formats"
34332 \begin_layout Section
34334 \begin_inset Index idx
34337 \begin_layout Plain Layout
34344 \begin_inset Index idx
34347 \begin_layout Plain Layout
34352 \begin_layout Plain Layout
34363 \begin_layout Plain Layout
34378 \begin_layout Standard
34379 This file type has the extension
34380 \begin_inset Quotes eld
34388 \begin_inset Quotes erd
34393 \begin_inset Quotes eld
34397 \begin_inset Quotes erd
34400 (DVI), because it is completely portable; you can move them from one machine
34401 to another without needing to do any sort of conversion.
34402 At the time when this file-format was developed, this was no matter of
34404 DVIs are used for quick previews and as pre-stage for other output formats,
34408 \begin_layout Standard
34409 \begin_inset Note Greyedout
34412 \begin_layout Plain Layout
34417 DVI-files do not contain images; they will only be a linked.
34422 So don't forget this, if you move your
34426 file to another computer.
34427 This property can also slow down your computer when you view the DVI, because
34428 the DVI-viewer has to convert the image in the background to make it visible
34429 when you scroll in the DVI.
34430 So it is recommended that you use PDF for files with many images.
34433 \begin_layout Standard
34434 You can export your document to DVI by using the menu
34436 File\SpecialChar \menuseparator
34437 Export\SpecialChar \menuseparator
34441 You can view your document as DVI via the
34445 menu or by using the toolbar button
34446 \begin_inset Graphics
34447 filename ../images/buffer-view_dvi.png
34449 scaleBeforeRotation
34456 \begin_layout Section
34458 \begin_inset CommandInset label
34460 name "sec:PostScript"
34465 \begin_inset Index idx
34468 \begin_layout Plain Layout
34469 File Formats ! PostScript
34475 \begin_inset Index idx
34478 \begin_layout Plain Layout
34483 \begin_layout Plain Layout
34494 \begin_layout Plain Layout
34509 \begin_layout Standard
34510 This file type has the extension
34511 \begin_inset Quotes eld
34519 \begin_inset Quotes erd
34523 PostScript was developed by the company
34527 as a printer language.
34528 The file therefore contains commands that the printer uses to print the
34530 PostScript can be seen as a
34531 \begin_inset Quotes eld
34534 programming language
34535 \begin_inset Quotes erd
34538 ; you can calculate with it and draw diagrams and images
34542 \begin_layout Plain Layout
34543 If you are interested to learn more about this, have a look at the LaTeX-package
34549 \begin_inset CommandInset citation
34561 Due to this ability, the files are often bigger than PDFs.
34564 \begin_layout Standard
34565 PostScript can only contain images in the format
34566 \begin_inset Quotes eld
34569 Encapsulated PostScript
34570 \begin_inset Quotes erd
34573 (EPS, file extension
34574 \begin_inset Quotes eld
34582 \begin_inset Quotes erd
34586 As LyX allows you to use any known image format in your document, it has
34587 to convert images in the background to EPS.
34589 \begin_inset space ~
34593 \begin_inset space ~
34596 images in your document, LyX has to do 50
34597 \begin_inset space ~
34600 conversions whenever you view or export your document.
34601 This will slow down your work flow with LyX drastically.
34602 So if you plan to use PostScript, you can insert your images directly as
34603 EPS to avoid this problem.
34606 \begin_layout Standard
34607 You can export your document to PostScript using the menu
34609 File\SpecialChar \menuseparator
34610 Export\SpecialChar \menuseparator
34614 You can view your document as PostScript via the
34618 menu or by using the toolbar button
34619 \begin_inset Graphics
34620 filename ../images/buffer-view_ps.png
34622 scaleBeforeRotation
34629 \begin_layout Section
34631 \begin_inset Index idx
34634 \begin_layout Plain Layout
34641 \begin_inset Index idx
34644 \begin_layout Plain Layout
34653 \begin_layout Standard
34654 This file type has the extension
34655 \begin_inset Quotes eld
34663 \begin_inset Quotes erd
34668 \begin_inset Quotes eld
34671 Portable Document Format
34672 \begin_inset Quotes erd
34675 (PDF) was developed by
34679 as a derivative of PostScript.
34680 It is more compressed and it uses fewer commands than PostScript.
34682 \begin_inset Quotes eld
34686 \begin_inset Quotes erd
34689 implies, it can be processed at any computer system and the printed output
34690 looks exactly the same.
34693 \begin_layout Standard
34694 PDF can contain images in its own PDF format, in the format
34695 \begin_inset Quotes eld
34698 Joint Photographic Experts Group
34699 \begin_inset Quotes erd
34702 (JPG, file extension
34703 \begin_inset Quotes eld
34711 \begin_inset Quotes erd
34715 \begin_inset Quotes eld
34723 \begin_inset Quotes erd
34726 ), and in the format
34727 \begin_inset Quotes eld
34730 Portable Network Graphics
34731 \begin_inset Quotes erd
34734 (PNG, file extension
34735 \begin_inset Quotes eld
34743 \begin_inset Quotes erd
34747 Nevertheless you can use any other image format, because LyX converts them
34748 in the background to one of these formats.
34749 But as described in the section about PostScript, the image conversion
34750 will slow down your work flow.
34751 So it is recommended that you use images in one of the three mentioned
34755 \begin_layout Standard
34756 You can export your document to PDF via the menu
34758 File\SpecialChar \menuseparator
34761 in three different ways:
34764 \begin_layout Description
34766 \begin_inset space ~
34769 (ps2pdf) This uses the program
34773 that creates a PDF from a PostScript-version of your file.
34774 The PostScript-version is produced by the program
34778 which uses a DVI-version as intermediate step.
34779 So this export variant consists of three conversions.
34782 \begin_layout Description
34784 \begin_inset space ~
34787 (dvipdfm) This uses the program
34791 that converts your file in the background to DVI and in a second step to
34795 \begin_layout Description
34797 \begin_inset space ~
34800 (pdflatex) This uses the program
34804 that converts your file directly to PDF.
34807 \begin_layout Standard
34808 It is recommended that you use
34811 \begin_inset space ~
34820 supports all features of actual PDF-versions, is quick and works stable.
34825 is not under development and therefore a bit outdated.
34828 \begin_layout Standard
34829 You can view your document as PDF via the
34833 menu or by using the toolbar button
34834 \begin_inset Graphics
34835 filename ../images/buffer-view_pdf2.png
34837 scaleBeforeRotation
34848 \begin_inset space ~
34856 \begin_layout Chapter
34857 Explanation of Equation
34858 \begin_inset space ~
34862 \begin_inset CommandInset ref
34869 \begin_inset CommandInset label
34871 name "cha:Explanation-of-Equation"
34878 \begin_layout Standard
34879 We can calculate the total width of
34884 \begin_inset Formula $W_{\mathrm{tot\, n}}$
34890 \begin_layout Standard
34891 \begin_inset Formula
34893 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
34899 \begin_inset Formula $W_{g\, n}$
34902 is the given width of all cells,
34908 is the LaTeX-length between the cell text and the cell border (its default
34910 \begin_inset space \thinspace{}
34920 is the thickness of the cell border line, the default is 0.4
34921 \begin_inset space \thinspace{}
34927 \begin_layout Standard
34929 \begin_inset space ~
34933 \begin_inset CommandInset ref
34935 reference "eq:Wtot_n"
34939 , the total width of a multicolumn
34940 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
34946 \begin_layout Standard
34947 \begin_inset Formula
34949 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
34957 \begin_layout Standard
34958 By setting equation
34959 \begin_inset space ~
34963 \begin_inset CommandInset ref
34965 reference "eq:Wtot_n"
34970 \begin_inset CommandInset ref
34972 reference "eq:Wtot_mult"
34976 equal we can calculate the needed given width
34977 \begin_inset Formula $W_{g\, n}$
34984 columns are spanned, so that each column has a total width of
34985 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
34991 \begin_layout Standard
34992 \begin_inset Formula
34994 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n
35002 \begin_layout Bibliography
35003 \labelwidthstring Bibliography
35004 \begin_inset CommandInset bibitem
35005 LatexCommand bibitem
35006 key "latexcompanion"
35010 Frank Mittelbach and Michel Goossens:
35012 The LaTeX Companion Second Edition.
35015 Addison-Wesley, 2004
35018 \begin_layout Bibliography
35019 \labelwidthstring Bibliography
35020 \begin_inset CommandInset bibitem
35021 LatexCommand bibitem
35026 Helmut Kopka and Patrick W.
35029 A Guide to LaTeX Fourth Edition.
35032 Addison-Wesley, 2003
35035 \begin_layout Bibliography
35036 \labelwidthstring Bibliography
35037 \begin_inset CommandInset bibitem
35038 LatexCommand bibitem
35045 LaTeX: A Document Preparation System.
35048 Addison-Wesley, second edition, 1994
35051 \begin_layout Bibliography
35052 \labelwidthstring Bibliography
35053 \begin_inset CommandInset bibitem
35054 LatexCommand bibitem
35059 Documentation of the LaTeX-package
35062 \begin_inset CommandInset href
35065 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
35072 \begin_inset Index idx
35075 \begin_layout Plain Layout
35076 LaTeX-packages ! booktabs
35084 \begin_layout Bibliography
35085 \labelwidthstring Bibliography
35086 \begin_inset CommandInset bibitem
35087 LatexCommand bibitem
35092 Documentation of the LaTeX-package
35095 \begin_inset CommandInset href
35098 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
35105 \begin_inset Index idx
35108 \begin_layout Plain Layout
35109 LaTeX-packages ! caption
35117 \begin_layout Bibliography
35118 \labelwidthstring Bibliography
35119 \begin_inset CommandInset bibitem
35120 LatexCommand bibitem
35125 Documentation of the LaTeX-package
35128 \begin_inset CommandInset href
35131 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
35138 \begin_inset Index idx
35141 \begin_layout Plain Layout
35142 LaTeX-packages ! endfloat
35150 \begin_layout Bibliography
35151 \labelwidthstring Bibliography
35152 \begin_inset CommandInset bibitem
35153 LatexCommand bibitem
35158 Documentation of the LaTeX-package
35161 \begin_inset CommandInset href
35164 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
35171 \begin_inset Index idx
35174 \begin_layout Plain Layout
35175 LaTeX-packages ! wrapfig
35179 \begin_layout Plain Layout
35196 \begin_layout Bibliography
35197 \labelwidthstring Bibliography
35198 \begin_inset CommandInset bibitem
35199 LatexCommand bibitem
35204 Documentation of the LaTeX-package
35207 \begin_inset CommandInset href
35210 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
35217 \begin_inset Index idx
35220 \begin_layout Plain Layout
35221 LaTeX-packages ! footmisc
35229 \begin_layout Bibliography
35230 \labelwidthstring Bibliography
35231 \begin_inset CommandInset bibitem
35232 LatexCommand bibitem
35237 Documentation of the LaTeX-package
35240 \begin_inset CommandInset href
35243 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
35250 \begin_inset Index idx
35253 \begin_layout Plain Layout
35254 LaTeX-packages ! hyperref
35262 \begin_layout Bibliography
35263 \labelwidthstring Bibliography
35264 \begin_inset CommandInset bibitem
35265 LatexCommand bibitem
35270 Documentation of the LaTeX-package
35273 \begin_inset CommandInset href
35276 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
35283 \begin_inset Index idx
35286 \begin_layout Plain Layout
35287 LaTeX-packages ! hyperref
35295 \begin_layout Bibliography
35296 \labelwidthstring Bibliography
35297 \begin_inset CommandInset bibitem
35298 LatexCommand bibitem
35303 Documentation of the LaTeX-package
35306 \begin_inset CommandInset href
35309 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
35316 \begin_inset Index idx
35319 \begin_layout Plain Layout
35320 LaTeX-packages ! KOMA-Script
35328 \begin_layout Bibliography
35329 \labelwidthstring Bibliography
35330 \begin_inset CommandInset bibitem
35331 LatexCommand bibitem
35336 Documentation of the LaTeX-package
35339 \begin_inset CommandInset href
35342 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
35349 \begin_inset Index idx
35352 \begin_layout Plain Layout
35353 LaTeX-packages ! listings
35361 \begin_layout Bibliography
35362 \labelwidthstring Bibliography
35363 \begin_inset CommandInset bibitem
35364 LatexCommand bibitem
35369 Documentation of the LaTeX-package
35372 \begin_inset CommandInset href
35375 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
35382 \begin_inset Index idx
35385 \begin_layout Plain Layout
35386 LaTeX-packages ! marginnote
35394 \begin_layout Bibliography
35395 \labelwidthstring Bibliography
35396 \begin_inset CommandInset bibitem
35397 LatexCommand bibitem
35402 Web page of the LaTeX-package
35405 \begin_inset CommandInset href
35408 target "http://tug.org/PSTricks/"
35415 \begin_inset Index idx
35418 \begin_layout Plain Layout
35419 LaTeX-packages ! PSTricks
35427 \begin_layout Bibliography
35428 \labelwidthstring Bibliography
35429 \begin_inset CommandInset bibitem
35430 LatexCommand bibitem
35435 Documentation of the LaTeX-package
35438 \begin_inset CommandInset href
35441 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
35448 \begin_inset Index idx
35451 \begin_layout Plain Layout
35452 LaTeX-packages ! sidecap
35460 \begin_layout Bibliography
35461 \labelwidthstring Bibliography
35462 \begin_inset CommandInset bibitem
35463 LatexCommand bibitem
35468 Documentation of the LaTeX-package
35471 \begin_inset CommandInset href
35474 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
35481 \begin_inset Index idx
35484 \begin_layout Plain Layout
35485 LaTeX-packages ! prettyref
35493 \begin_layout Bibliography
35494 \labelwidthstring Bibliography
35495 \begin_inset CommandInset bibitem
35496 LatexCommand bibitem
35501 Documentation of the LaTeX-package
35504 \begin_inset CommandInset href
35507 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/doc/latex/refstyle/refstyle.pdf"
35514 \begin_inset Index idx
35517 \begin_layout Plain Layout
35518 LaTeX-packages ! refstyle
35526 \begin_layout Bibliography
35527 \labelwidthstring Bibliography
35528 \begin_inset CommandInset bibitem
35529 LatexCommand bibitem
35535 \begin_inset CommandInset href
35538 target "http://wiki.lyx.org/LyX/NewInLyX20"
35542 about new features in
35549 \begin_layout Standard
35550 \begin_inset CommandInset index_print
35551 LatexCommand printindex