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
36 \newcommand{\TabBesBeg}[1][1.0]{%
38 \let\MyEndtable\endtable
39 \renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
41 \newcommand{\TabBesEnd}{%
43 \let\endtable\MyEndtable}
45 \newcommand{\FigBesBeg}[1][1.0]{%
47 \let\MyEndfigure\endfigure
48 \renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
50 \newcommand{\FigBesEnd}{%
52 \let\endfigure\MyEndfigure}
54 % enables calculation of values,
57 % increase the bottom float placement fraction
58 \renewcommand{\bottomfraction}{0.5}
60 % avoids that floats are placed before their
61 % corresponding section starts
62 \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
64 % speed up the longtable calculation
65 \setcounter{LTchunksize}{100}
67 % used for scaled and rotated boxes
68 \@ifundefined{rotatebox}{\usepackage{graphicx}}{}
70 % used for colored tables
71 \@ifundefined{textcolor}
72 {\usepackage{color}}{}
73 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
74 \definecolor{lightgrey}{gray}{0.8}
76 % check for package colortbl
77 % used for colored table cells
79 \IfFileExists{colortbl.sty}
80 {\usepackage{colortbl}
81 \setboolean{colortbl}{true}}
82 {\setboolean{colortbl}{false}}
84 % used for book-style tables
87 % used to have extra space in table cells
88 \@ifundefined{extrarowheight}
89 {\usepackage{array}}{}
90 \setlength{\extrarowheight}{2pt}
92 % used for customized tables
95 {>{\centering\hspace{0pt}}m{#1}}
98 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
101 {>{\columncolor{#1}\hspace{0pt}}c}
103 \newcolumntype{V}{!{\vrule width 1.5pt}}
105 \newcolumntype{W}{!{\color{green}\vline}}
108 % insert additional vertical space of
109 % 1.5 mm between footnotes
111 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
113 % number algorithm floats within chapters
114 \numberwithin{algorithm}{chapter}
116 % ------------------------------------
117 % used to check for needed LaTeX packages
120 % check for package arydshln
121 % used for tables with dashed lines
122 \newboolean{arydshln}
123 \IfFileExists{arydshln.sty}
124 {\usepackage{arydshln}
125 \setboolean{arydshln}{true}}
126 {\setboolean{arydshln}{false}}
128 % check for package marginnote
129 % used for margin notes
130 \newboolean{marginnote}
131 \IfFileExists{marginnote.sty}
132 {\usepackage{marginnote}
133 \let\marginpar\marginnote
134 \setboolean{marginnote}{true}}
135 {\setboolean{marginnote}{false}}
137 % check for package sidecap
138 % used for captions on the side
140 \IfFileExists{sidecap.sty}
141 {\usepackage{sidecap}
142 \setboolean{sidecap}{true}}
143 {\setboolean{sidecap}{false}}
146 % used for surrounded fixed objects
147 \newboolean{picinpar}
148 \IfFileExists{picinpar.sty}
149 {\usepackage{picinpar}
150 \setboolean{picinpar}{true}}
151 {\setboolean{picinpar}{false}}
153 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
154 \use_default_options false
158 \maintain_unincluded_children false
160 \language_package default
165 \font_typewriter default
166 \font_default_family default
167 \use_non_tex_fonts false
174 \default_output_format default
176 \bibtex_command default
177 \index_command default
181 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
182 \pdf_author "LyX Team, Uwe Stöhr"
183 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
184 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
186 \pdf_bookmarksnumbered true
187 \pdf_bookmarksopen true
188 \pdf_bookmarksopenlevel 1
189 \pdf_breaklinks false
193 \pdf_pdfusetitle false
194 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
204 \paperorientation portrait
207 \notefontcolor #0000ff
214 \paragraph_separation skip
216 \quotes_language english
219 \paperpagestyle default
223 \tracking_changes false
224 \output_changes false
227 \html_be_strict false
233 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
242 \begin_layout Plain Layout
244 If you have comments or error corrections, please send them to the LyX Documenta
246 \begin_inset CommandInset href
248 name "lyx-docs@lists.lyx.org"
249 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
260 \begin_inset Note Note
263 \begin_layout Plain Layout
270 \begin_inset Newline newline
274 \begin_inset Newline newline
282 \begin_layout Standard
283 \begin_inset CommandInset toc
284 LatexCommand tableofcontents
291 \begin_layout Standard
292 \begin_inset Note Note
295 \begin_layout Plain Layout
296 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
307 lettrine, marginnote, picinpar
314 If they are not installed you can export the document anyway but the sections
315 where the packages are required won't appear in the output.
318 \begin_layout Plain Layout
319 The latest PDF-version of this document can be found here:
320 \begin_inset Newline newline
325 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
333 \begin_layout Chapter
335 \begin_inset Index idx
338 \begin_layout Plain Layout
345 \begin_inset Index idx
348 \begin_layout Plain Layout
353 \begin_layout Plain Layout
364 \begin_layout Plain Layout
379 \begin_layout Section
381 \begin_inset Index idx
384 \begin_layout Plain Layout
385 Figures ! Graphics Dialog
391 \begin_inset CommandInset label
393 name "sec:Graphics-Dialog"
400 \begin_layout Standard
401 To insert an image into your document, place the cursor at the text position
402 you want and click on the toolbar icon
403 \begin_inset Graphics
404 filename ../images/dialog-show-new-inset_graphics.png
412 Insert\SpecialChar \menuseparator
416 Then a dialog will appear to choose the file to load.
417 The image will appear in the output exactly at the position where it is
421 \begin_layout Standard
422 The graphics dialog can be called at any time by clicking on an image.
423 This dialog has three tabs:
426 \begin_layout Description
431 Here you can choose an image file and adjust its appearance in the output.
432 The available units for the image size are explained in appendix
437 \begin_inset CommandInset ref
439 reference "cha:Units-available-in"
444 \begin_inset Newline newline
448 \begin_inset Index idx
451 \begin_layout Plain Layout
457 You can rotate images counter-clockwise by setting a rotation angle and
459 The image will also be rotated inside LyX.
460 \begin_inset Newline newline
464 \begin_inset Index idx
467 \begin_layout Plain Layout
473 Images can be scaled by using a percentage value or by setting the width
474 and height explicitly.
475 If you set only the width or only the height, the other size will be determined
477 If you set both, then the image will be transformed to the given size,
478 possibly distorting it.
479 To prevent the image from distortion, use the option
481 Maintain aspect ratio
484 The image will then be scaled so that its width and height don't exceed
485 the specified dimensions.
486 \begin_inset Newline newline
489 Images can be opened in a program of your choice by right-clicking on it
490 and choosing the entry
499 The program can be set for every image format in the file format settings
500 in LyX's preferences.
503 \begin_layout Description
508 Alternatively to the usage of scaling units it is possible to set image
509 coordinates to adjust the height and width of the image in the output.
510 The coordinates can also be calculated automatically by pressing the button
540 will only print the image region within the given coordinates.
541 Normally you don't need to take care about image coordinates and can ignore
545 \begin_layout Description
562 In this tab you can modify the appearance of the image within LyX and LaTeX
563 experts can specify additional LaTeX options.
564 \begin_inset Newline newline
575 makes the image appear in the output only as a frame with the size of the
577 \begin_inset Newline newline
596 option only affects zipped EPS-graphics, e.
597 \begin_inset space \thinspace{}
601 \begin_inset space \space{}
609 When the option is used the images will not be unzipped on export, since
610 LaTeX can handle them as they are.
611 \begin_inset Newline newline
614 Zipped EPS-graphics are useful to save disk space when you choose PostScript
615 as output format, see appendix
620 \begin_inset CommandInset ref
622 reference "sec:PostScript"
627 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
629 \begin_inset Newline newline
637 \begin_inset Newline newline
642 zgrep %%Bounding x.eps.gz > x.eps.bb
645 \begin_inset Newline newline
648 The second command creates the bounding box file
649 \begin_inset Quotes eld
653 \begin_inset Quotes erd
656 that is needed by LaTeX for zipped graphics.
657 \begin_inset Newline newline
668 you can 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 Standard
12813 To start a new line in a multirow you can use a forced line break (shortcut
12817 arg "newline-insert newline"
12820 ) but this will not respect the cell lines as demonstrated in this table:
12823 \begin_layout Standard
12826 \begin_inset Tabular
12827 <lyxtabular version="3" rows="3" columns="2">
12828 <features tabularvalignment="middle">
12829 <column alignment="left" valignment="middle" width="2cm">
12830 <column alignment="center" valignment="top" width="0">
12832 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12835 \begin_layout Plain Layout
12837 \begin_inset Newline newline
12841 \begin_inset Newline newline
12849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12852 \begin_layout Plain Layout
12860 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12863 \begin_layout Plain Layout
12869 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12872 \begin_layout Plain Layout
12880 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12883 \begin_layout Plain Layout
12889 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12892 \begin_layout Plain Layout
12906 \begin_layout Standard
12907 Therefore be careful with forced line breaks.
12910 \begin_layout Section
12912 \begin_inset CommandInset label
12914 name "sec:Formal-Tables"
12919 \begin_inset Index idx
12922 \begin_layout Plain Layout
12931 \begin_layout Standard
12932 Tables are often typeset in books similar to Table
12933 \begin_inset space ~
12937 \begin_inset CommandInset ref
12939 reference "tab:Example-booktabs-table"
12944 This kind of tables is called
12945 \begin_inset Quotes eld
12953 \begin_inset Quotes erd
12957 To make a table a formal table use the option
12965 tab of the table dialog.
12968 \begin_layout Standard
12969 \begin_inset Float table
12975 \begin_layout Plain Layout
12976 \begin_inset Caption
12978 \begin_layout Plain Layout
12979 \begin_inset CommandInset label
12981 name "tab:Example-booktabs-table"
12985 Example booktabs-table
12993 \begin_layout Plain Layout
12995 \begin_inset Tabular
12996 <lyxtabular version="3" rows="8" columns="4">
12997 <features booktabs="true" tabularvalignment="middle">
12998 <column alignment="center" valignment="top" width="0">
12999 <column alignment="center" valignment="top" width="0">
13000 <column alignment="center" valignment="top" width="0">
13001 <column alignment="center" valignment="top" width="0">
13003 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13006 \begin_layout Plain Layout
13012 <cell alignment="center" valignment="top" topline="true" usebox="none">
13015 \begin_layout Plain Layout
13017 \begin_inset space \thinspace{}
13025 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
13028 \begin_layout Plain Layout
13030 \begin_inset space \thinspace{}
13038 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13041 \begin_layout Plain Layout
13049 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13052 \begin_layout Plain Layout
13056 \begin_layout Plain Layout
13069 \begin_layout Plain Layout
13078 Detector thickness in µm
13083 <cell alignment="center" valignment="top" usebox="none">
13086 \begin_layout Plain Layout
13092 <cell alignment="center" valignment="top" usebox="none">
13095 \begin_layout Plain Layout
13101 <cell alignment="center" valignment="top" usebox="none">
13104 \begin_layout Plain Layout
13112 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13115 \begin_layout Plain Layout
13121 <cell alignment="center" valignment="top" topline="true" usebox="none">
13124 \begin_layout Plain Layout
13130 <cell alignment="center" valignment="top" topline="true" usebox="none">
13133 \begin_layout Plain Layout
13139 <cell alignment="center" valignment="top" topline="true" usebox="none">
13142 \begin_layout Plain Layout
13149 <row topspace="default">
13150 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13153 \begin_layout Plain Layout
13154 Spatial resolution in µm
13159 <cell alignment="center" valignment="top" usebox="none">
13162 \begin_layout Plain Layout
13168 <cell alignment="center" valignment="top" usebox="none">
13171 \begin_layout Plain Layout
13177 <cell alignment="center" valignment="top" usebox="none">
13180 \begin_layout Plain Layout
13187 <row topspace="default">
13188 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13191 \begin_layout Plain Layout
13193 \begin_inset Formula $f_{\mathrm{max}}$
13201 <cell alignment="center" valignment="top" usebox="none">
13204 \begin_layout Plain Layout
13210 <cell alignment="center" valignment="top" usebox="none">
13213 \begin_layout Plain Layout
13219 <cell alignment="center" valignment="top" usebox="none">
13222 \begin_layout Plain Layout
13229 <row topspace="default">
13230 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13233 \begin_layout Plain Layout
13237 \begin_layout Plain Layout
13241 cmidrule(l{10pt}){1-1}
13246 LSF-spatial resolution
13251 <cell alignment="center" valignment="top" usebox="none">
13254 \begin_layout Plain Layout
13260 <cell alignment="center" valignment="top" usebox="none">
13263 \begin_layout Plain Layout
13269 <cell alignment="center" valignment="top" usebox="none">
13272 \begin_layout Plain Layout
13280 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13283 \begin_layout Plain Layout
13289 <cell alignment="center" valignment="top" usebox="none">
13292 \begin_layout Plain Layout
13298 <cell alignment="center" valignment="top" usebox="none">
13301 \begin_layout Plain Layout
13307 <cell alignment="center" valignment="top" usebox="none">
13310 \begin_layout Plain Layout
13318 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
13321 \begin_layout Plain Layout
13327 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13330 \begin_layout Plain Layout
13336 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13339 \begin_layout Plain Layout
13345 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13348 \begin_layout Plain Layout
13367 \begin_layout Standard
13368 Spaces to table rows can be added using the
13372 tab of the table dialog as described in section
13373 \begin_inset space ~
13377 \begin_inset CommandInset ref
13379 reference "sub:Row-Spacing"
13386 \begin_layout Standard
13387 Unlike normal tables, formal tables have no vertical table lines.
13388 The horizontal table lines can be set as for normal tables but they appear
13389 with different widths in the output:
13390 \begin_inset Newline newline
13393 The first and the last table line have a default width of 0.08
13394 \begin_inset space \thinspace{}
13397 em while the other lines have a default width of 0.05
13398 \begin_inset space \thinspace{}
13404 \begin_layout Standard
13405 The default widths can be changed with the following preamble lines
13408 \begin_layout Standard
13418 \begin_inset Newline newline
13430 \begin_layout Standard
13431 This example is for the first line, the so called
13436 If you want to change the width for the last line, replace
13445 To change the width for the other lines replace
13454 You can use all units listed in appendix
13455 \begin_inset space ~
13459 \begin_inset CommandInset ref
13461 reference "cha:Units-available-in"
13468 \begin_layout Standard
13469 Lines that do not span all table columns can be created by setting a table
13470 line for multicolumn cells.
13471 LyX will then internally use the command
13477 to create this line.
13481 \begin_layout Standard
13486 cmidrule[width](trim){startcol-endcol}
13489 \begin_layout Standard
13496 are currently not supported by LyX so you have to use TeX-Code to be able
13504 s can manually be created by inserting the command as TeX-Code as the first
13505 cell entry of the first cell of a row.
13506 The line is then drawn in the output above the current row.
13509 \begin_layout Standard
13510 The default for the width is 0.03
13511 \begin_inset space \thinspace{}
13515 Startcol is the number of the column where the line starts and endcol the
13516 column number where the line ends.
13517 The endcol always needs to be specified, also when the line should span
13519 The optional parameter trim could be either
13527 where the trimwidth is also optional.
13528 Using for example the parameter
13532 means that the line is trimmed from its left end by 2
13533 \begin_inset space \thinspace{}
13537 If you don't specify the trimwidth the lines are trimmed by the default
13539 \begin_inset space \thinspace{}
13545 \begin_layout Standard
13546 \begin_inset VSpace bigskip
13550 \begin_inset space ~
13554 \begin_inset CommandInset ref
13556 reference "tab:Example-booktabs-table"
13560 was created using the commands
13563 \begin_layout Standard
13573 \begin_layout Standard
13574 at the beginning of the second row and
13577 \begin_layout Standard
13582 cmidrule(l{10pt}){1-1}
13585 \begin_layout Standard
13589 \begin_layout Standard
13590 \begin_inset VSpace bigskip
13596 \begin_layout Standard
13597 You might want to have overlapping
13604 \begin_inset space ~
13608 \begin_inset CommandInset ref
13610 reference "tab:Special-booktabs-table"
13615 This can be achieved with the TeX-Code command
13618 \begin_layout Standard
13626 \begin_layout Standard
13627 The command that was used for the second row of Table
13628 \begin_inset space ~
13632 \begin_inset CommandInset ref
13634 reference "tab:Special-booktabs-table"
13641 \begin_layout Standard
13655 \begin_layout Standard
13656 The command for the sixth row is
13659 \begin_layout Standard
13671 \begin_layout Standard
13672 \begin_inset VSpace bigskip
13678 \begin_layout Standard
13679 If you are anyway not satisfied with the border line spacing, you can use
13680 the following command to produce lines that span over all table columns
13685 \begin_layout Standard
13690 specialrule{width}{space above}{space below}
13693 \begin_layout Standard
13694 For more information about these features, refer to the manual of the LaTeX-pack
13700 \begin_inset CommandInset citation
13707 \begin_inset Index idx
13710 \begin_layout Plain Layout
13711 LaTeX-packages ! booktabs
13719 \begin_layout Standard
13720 \begin_inset Float table
13726 \begin_layout Plain Layout
13727 \begin_inset Caption
13729 \begin_layout Plain Layout
13730 \begin_inset CommandInset label
13732 name "tab:Special-booktabs-table"
13736 Special booktabs-table
13744 \begin_layout Plain Layout
13746 \begin_inset Tabular
13747 <lyxtabular version="3" rows="8" columns="4">
13748 <features booktabs="true" tabularvalignment="middle">
13749 <column alignment="center" valignment="top" width="0">
13750 <column alignment="center" valignment="top" width="0">
13751 <column alignment="center" valignment="top" width="0">
13752 <column alignment="center" valignment="top" width="0">
13754 <cell alignment="center" valignment="top" topline="true" usebox="none">
13757 \begin_layout Plain Layout
13763 <cell alignment="center" valignment="top" topline="true" usebox="none">
13766 \begin_layout Plain Layout
13768 \begin_inset space \thinspace{}
13776 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
13779 \begin_layout Plain Layout
13781 \begin_inset space \thinspace{}
13789 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13792 \begin_layout Plain Layout
13800 <cell alignment="center" valignment="top" usebox="none">
13803 \begin_layout Plain Layout
13807 \begin_layout Plain Layout
13820 \begin_layout Plain Layout
13833 \begin_layout Plain Layout
13846 \begin_layout Plain Layout
13855 Detector thickness in µm
13860 <cell alignment="center" valignment="top" usebox="none">
13863 \begin_layout Plain Layout
13869 <cell alignment="center" valignment="top" usebox="none">
13872 \begin_layout Plain Layout
13878 <cell alignment="center" valignment="top" usebox="none">
13881 \begin_layout Plain Layout
13889 <cell alignment="center" valignment="top" topline="true" usebox="none">
13892 \begin_layout Plain Layout
13898 <cell alignment="center" valignment="top" topline="true" usebox="none">
13901 \begin_layout Plain Layout
13907 <cell alignment="center" valignment="top" topline="true" usebox="none">
13910 \begin_layout Plain Layout
13916 <cell alignment="center" valignment="top" topline="true" usebox="none">
13919 \begin_layout Plain Layout
13926 <row topspace="default">
13927 <cell alignment="center" valignment="top" usebox="none">
13930 \begin_layout Plain Layout
13931 Spatial resolution in µm
13936 <cell alignment="center" valignment="top" usebox="none">
13939 \begin_layout Plain Layout
13945 <cell alignment="center" valignment="top" usebox="none">
13948 \begin_layout Plain Layout
13954 <cell alignment="center" valignment="top" usebox="none">
13957 \begin_layout Plain Layout
13964 <row topspace="default">
13965 <cell alignment="center" valignment="top" usebox="none">
13968 \begin_layout Plain Layout
13970 \begin_inset Formula $f_{\mathrm{max}}$
13978 <cell alignment="center" valignment="top" usebox="none">
13981 \begin_layout Plain Layout
13987 <cell alignment="center" valignment="top" usebox="none">
13990 \begin_layout Plain Layout
13996 <cell alignment="center" valignment="top" usebox="none">
13999 \begin_layout Plain Layout
14007 <cell alignment="center" valignment="top" topline="true" usebox="none">
14010 \begin_layout Plain Layout
14014 \begin_layout Plain Layout
14027 \begin_layout Plain Layout
14036 LSF-spatial resolution
14041 <cell alignment="center" valignment="top" topline="true" usebox="none">
14044 \begin_layout Plain Layout
14050 <cell alignment="center" valignment="top" topline="true" usebox="none">
14053 \begin_layout Plain Layout
14059 <cell alignment="center" valignment="top" topline="true" usebox="none">
14062 \begin_layout Plain Layout
14070 <cell alignment="center" valignment="top" usebox="none">
14073 \begin_layout Plain Layout
14079 <cell alignment="center" valignment="top" usebox="none">
14082 \begin_layout Plain Layout
14088 <cell alignment="center" valignment="top" usebox="none">
14091 \begin_layout Plain Layout
14097 <cell alignment="center" valignment="top" usebox="none">
14100 \begin_layout Plain Layout
14108 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14111 \begin_layout Plain Layout
14117 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14120 \begin_layout Plain Layout
14126 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14129 \begin_layout Plain Layout
14135 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14138 \begin_layout Plain Layout
14157 \begin_layout Section
14158 Vertical Table Alignment
14159 \begin_inset Index idx
14162 \begin_layout Plain Layout
14171 \begin_layout Standard
14172 To align tables vertically in a text line the table must be inside a box.
14173 The box can then be vertically aligned as described in section
14174 \begin_inset space ~
14178 \begin_inset CommandInset ref
14180 reference "sec:Box-Dialog"
14187 \begin_layout Standard
14188 In the following example the tables are inside a minipage
14192 \begin_layout Plain Layout
14193 Minipages are described in section
14194 \begin_inset space ~
14198 \begin_inset CommandInset ref
14200 reference "sec:Minipages"
14209 box that has a width of 15
14210 \begin_inset space \thinspace{}
14216 \begin_layout Itemize
14218 \begin_inset Box Frameless
14228 height_special "totalheight"
14231 \begin_layout Plain Layout
14232 \begin_inset Tabular
14233 <lyxtabular version="3" rows="3" columns="3">
14234 <features tabularvalignment="middle">
14235 <column alignment="center" valignment="top" width="0">
14236 <column alignment="center" valignment="top" width="0">
14237 <column alignment="center" valignment="top" width="0">
14239 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14242 \begin_layout Plain Layout
14248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14251 \begin_layout Plain Layout
14257 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14260 \begin_layout Plain Layout
14268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14271 \begin_layout Plain Layout
14277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14280 \begin_layout Plain Layout
14286 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14289 \begin_layout Plain Layout
14297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14300 \begin_layout Plain Layout
14306 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14309 \begin_layout Plain Layout
14315 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14318 \begin_layout Plain Layout
14338 \begin_layout Plain Layout
14350 \begin_inset Box Frameless
14360 height_special "totalheight"
14363 \begin_layout Plain Layout
14364 \begin_inset Tabular
14365 <lyxtabular version="3" rows="3" columns="3">
14366 <features tabularvalignment="middle">
14367 <column alignment="center" valignment="top" width="0">
14368 <column alignment="center" valignment="top" width="0">
14369 <column alignment="center" valignment="top" width="0">
14371 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14374 \begin_layout Plain Layout
14380 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14383 \begin_layout Plain Layout
14389 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14392 \begin_layout Plain Layout
14400 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14403 \begin_layout Plain Layout
14409 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14412 \begin_layout Plain Layout
14418 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14421 \begin_layout Plain Layout
14429 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14432 \begin_layout Plain Layout
14438 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14441 \begin_layout Plain Layout
14447 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14450 \begin_layout Plain Layout
14470 \begin_layout Plain Layout
14480 \begin_layout Itemize
14482 \begin_inset Box Frameless
14492 height_special "totalheight"
14495 \begin_layout Plain Layout
14496 \begin_inset Tabular
14497 <lyxtabular version="3" rows="3" columns="3">
14498 <features tabularvalignment="middle">
14499 <column alignment="center" valignment="top" width="0">
14500 <column alignment="center" valignment="top" width="0">
14501 <column alignment="center" valignment="top" width="0">
14503 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14506 \begin_layout Plain Layout
14512 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14515 \begin_layout Plain Layout
14521 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14524 \begin_layout Plain Layout
14532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14535 \begin_layout Plain Layout
14541 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14544 \begin_layout Plain Layout
14550 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14553 \begin_layout Plain Layout
14561 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14564 \begin_layout Plain Layout
14570 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14573 \begin_layout Plain Layout
14579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14582 \begin_layout Plain Layout
14601 \begin_layout Itemize
14603 \begin_inset Box Frameless
14613 height_special "totalheight"
14616 \begin_layout Plain Layout
14617 \begin_inset Tabular
14618 <lyxtabular version="3" rows="3" columns="3">
14619 <features tabularvalignment="middle">
14620 <column alignment="center" valignment="top" width="0">
14621 <column alignment="center" valignment="top" width="0">
14622 <column alignment="center" valignment="top" width="0">
14624 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14627 \begin_layout Plain Layout
14633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14636 \begin_layout Plain Layout
14642 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14645 \begin_layout Plain Layout
14653 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14656 \begin_layout Plain Layout
14662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14665 \begin_layout Plain Layout
14671 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14674 \begin_layout Plain Layout
14682 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14685 \begin_layout Plain Layout
14691 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14694 \begin_layout Plain Layout
14700 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14703 \begin_layout Plain Layout
14723 \begin_layout Plain Layout
14735 \begin_inset Box Frameless
14745 height_special "totalheight"
14748 \begin_layout Plain Layout
14749 \begin_inset Tabular
14750 <lyxtabular version="3" rows="3" columns="3">
14751 <features tabularvalignment="middle">
14752 <column alignment="center" valignment="top" width="0">
14753 <column alignment="center" valignment="top" width="0">
14754 <column alignment="center" valignment="top" width="0">
14756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14759 \begin_layout Plain Layout
14765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14768 \begin_layout Plain Layout
14774 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14777 \begin_layout Plain Layout
14785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14788 \begin_layout Plain Layout
14794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14797 \begin_layout Plain Layout
14803 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14806 \begin_layout Plain Layout
14814 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14817 \begin_layout Plain Layout
14823 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14826 \begin_layout Plain Layout
14832 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14835 \begin_layout Plain Layout
14855 \begin_layout Plain Layout
14865 \begin_layout Standard
14866 As you will see, the content of the first and last table row is not correctly
14868 To get this alignment, the minipage box must be set into a raisebox
14872 \begin_layout Plain Layout
14873 Raiseboxes are described in section
14874 \begin_inset space ~
14878 \begin_inset CommandInset ref
14880 reference "sub:Vertical-Alignment"
14890 In the example above the second table in the first item is aligned using
14891 the TeX-Code-command
14894 \begin_layout Standard
14904 \begin_layout Standard
14906 After the box the closing brace
14910 is inserted as TeX-Code.
14911 For the second table in the last item the command
14914 \begin_layout Standard
14924 \begin_layout Standard
14928 \begin_layout Standard
14929 \begin_inset Note Greyedout
14932 \begin_layout Plain Layout
14937 The alignment of the table row content to the surrounding text line is
14939 The required value for the
14945 command for this alignment depends on the document font, the font size,
14946 and the table line thickness.
14954 \begin_layout Section
14956 \begin_inset CommandInset label
14958 name "sec:Colored-Tables"
14963 \begin_inset Index idx
14966 \begin_layout Plain Layout
14975 \begin_layout Subsection
14977 \begin_inset Index idx
14980 \begin_layout Plain Layout
14981 Table Color ! for Cells
14987 \begin_inset Index idx
14990 \begin_layout Plain Layout
14991 Color ! for Table Cells
14999 \begin_layout Standard
15000 \begin_inset Float table
15006 \begin_layout Plain Layout
15007 \begin_inset Caption
15009 \begin_layout Plain Layout
15010 \begin_inset CommandInset label
15012 name "tab:Table-colored-without"
15016 Table colored without using the package
15021 \begin_inset Argument
15024 \begin_layout Plain Layout
15025 Table without colortbl
15038 \begin_layout Plain Layout
15040 \begin_inset Tabular
15041 <lyxtabular version="3" rows="3" columns="3">
15042 <features tabularvalignment="middle">
15043 <column alignment="center" valignment="top" width="0">
15044 <column alignment="center" valignment="top" width="0">
15045 <column alignment="center" valignment="top" width="0">
15047 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15050 \begin_layout Plain Layout
15058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15061 \begin_layout Plain Layout
15069 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15072 \begin_layout Plain Layout
15082 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15085 \begin_layout Plain Layout
15093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15096 \begin_layout Plain Layout
15104 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15107 \begin_layout Plain Layout
15117 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15120 \begin_layout Plain Layout
15128 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15131 \begin_layout Plain Layout
15139 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15142 \begin_layout Plain Layout
15163 \begin_layout Standard
15164 If you only need colored text, mark the cells and choose a color in the
15167 Edit\SpecialChar \menuseparator
15169 \begin_inset space ~
15175 This was used to create Table
15176 \begin_inset space ~
15180 \begin_inset CommandInset ref
15182 reference "tab:Table-colored-without"
15187 In any other case you have to use the LaTeX-package
15192 \begin_inset Index idx
15195 \begin_layout Plain Layout
15196 LaTeX-packages ! colortbl
15204 \begin_layout Standard
15208 \begin_layout Plain Layout
15218 \begin_inset Note Note
15221 \begin_layout Plain Layout
15222 The following section part will only be displayed when the LaTeX-package
15235 \begin_layout Standard
15236 To create colored tables,
15240 must be loaded in the preamble with the line
15243 \begin_layout Standard
15248 usepackage{colortbl}
15251 \begin_layout Standard
15252 The color of a column is adjusted with the command
15255 \begin_layout Standard
15260 columncolor{name of color}
15263 \begin_layout Standard
15269 More about the command
15273 is contained in section
15274 \begin_inset space ~
15278 \begin_inset CommandInset ref
15280 reference "sub:Multicolumn-Calculations"
15287 \begin_layout Standard
15288 The following color names are predefined:
15291 \begin_layout Standard
15325 \begin_layout Standard
15326 \begin_inset VSpace medskip
15332 \begin_layout Standard
15333 You can also define your own color with the command
15336 \begin_layout Standard
15341 definecolor{color name}{color model}{color values}
15344 \begin_layout Standard
15345 The color model can be
15348 \begin_layout Labeling
15349 \labelwidthstring 00.00.0000
15350 cmyk: cyan, magenta, yellow, black
15353 \begin_layout Labeling
15354 \labelwidthstring 00.00.0000
15355 rgb: red, green blue
15358 \begin_layout Labeling
15359 \labelwidthstring 00.00.0000
15363 \begin_layout Standard
15364 and the color values are comma separated numbers between 0 and 1 describing
15365 the factor for the corresponding color of the color model.
15368 \begin_layout Standard
15370 \begin_inset space \thinspace{}
15374 \begin_inset space \space{}
15381 " in the preamble with
15384 \begin_layout Standard
15389 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
15392 \begin_layout Standard
15400 \begin_layout Standard
15405 definecolor{lightgray}{gray}{0.8}
15408 \begin_layout Standard
15409 \begin_inset VSpace medskip
15415 \begin_layout Standard
15416 Lines are colored with the command
15419 \begin_layout Standard
15424 rowcolor{name of color}
15427 \begin_layout Standard
15428 and cells are colored with the command
15431 \begin_layout Standard
15436 cellcolor{name of color}
15439 \begin_layout Standard
15440 Both commands are inserted at the beginning of a cell as TeX-Code.
15443 \begin_layout Standard
15444 To color characters in the table, mark the cells and use the LyX menu
15446 Edit\SpecialChar \menuseparator
15448 \begin_inset space ~
15454 If a cell contains TeX-Code mark only the characters, otherwise the colored
15455 TeX-Code will cause LaTeX-errors.
15458 \begin_layout Standard
15459 \begin_inset Note Greyedout
15462 \begin_layout Plain Layout
15467 Not all DVI-viewers are able to display self-defined colors.
15475 \begin_layout Standard
15476 \begin_inset VSpace bigskip
15482 \begin_layout Standard
15484 \begin_inset space ~
15488 \begin_inset CommandInset ref
15490 reference "tab:Table-colored-using"
15494 do the following: The color of the first column should be
15502 \begin_layout Standard
15507 columncolor{darkgreen}
15512 \begin_layout Standard
15513 as LaTeX-argument for this column.
15514 The first row should be blue, therefore the TeX-Code command
15517 \begin_layout Standard
15525 \begin_layout Standard
15526 is inserted to the first cell of this row.
15527 Note that this overwrites the column color for the first cell.
15528 The last cell of the last row is colored magenta by inserting the TeX-Code
15532 \begin_layout Standard
15540 \begin_layout Standard
15541 The characters could now be colored using the menu
15543 Edit\SpecialChar \menuseparator
15545 \begin_inset space ~
15553 \begin_layout Standard
15554 \begin_inset Float table
15560 \begin_layout Plain Layout
15561 \begin_inset Caption
15563 \begin_layout Plain Layout
15564 \begin_inset CommandInset label
15566 name "tab:Table-colored-using"
15570 Table colored using the package
15575 \begin_inset Argument
15578 \begin_layout Plain Layout
15579 Table with colortbl
15592 \begin_layout Plain Layout
15594 \begin_inset Tabular
15595 <lyxtabular version="3" rows="3" columns="3">
15596 <features tabularvalignment="middle">
15597 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15598 <column alignment="center" valignment="top" width="0">
15599 <column alignment="center" valignment="top" width="0">
15601 <cell alignment="center" valignment="top" usebox="none">
15604 \begin_layout Plain Layout
15608 \begin_layout Plain Layout
15624 <cell alignment="center" valignment="top" usebox="none">
15627 \begin_layout Plain Layout
15635 <cell alignment="center" valignment="top" usebox="none">
15638 \begin_layout Plain Layout
15648 <cell alignment="center" valignment="top" usebox="none">
15651 \begin_layout Plain Layout
15659 <cell alignment="center" valignment="top" usebox="none">
15662 \begin_layout Plain Layout
15670 <cell alignment="center" valignment="top" usebox="none">
15673 \begin_layout Plain Layout
15683 <cell alignment="center" valignment="top" usebox="none">
15686 \begin_layout Plain Layout
15694 <cell alignment="center" valignment="top" usebox="none">
15697 \begin_layout Plain Layout
15705 <cell alignment="center" valignment="top" usebox="none">
15708 \begin_layout Plain Layout
15712 \begin_layout Plain Layout
15741 \begin_layout Standard
15745 \begin_layout Plain Layout
15755 \begin_inset Note Note
15758 \begin_layout Plain Layout
15759 The following will be displayed when the LaTeX-package
15771 \begin_layout Standard
15772 You need to install the package
15776 to see the content of this section in the output.
15779 \begin_layout Standard
15783 \begin_layout Plain Layout
15795 \begin_layout Subsection
15797 \begin_inset Index idx
15800 \begin_layout Plain Layout
15801 Table Color ! for Lines
15807 \begin_inset Index idx
15810 \begin_layout Plain Layout
15811 Color ! for Table Lines
15819 \begin_layout Standard
15820 As described in section
15821 \begin_inset space ~
15825 \begin_inset CommandInset ref
15827 reference "sub:Line-Thickness"
15831 , the line thickness for all lines in a table can be adjusted with the length
15840 \begin_inset space \thinspace{}
15843 pt for all tables of this section.
15847 \begin_layout Plain Layout
15853 arrayrulewidth}{1.5pt}
15861 \begin_layout Standard
15862 To color vertical lines for example with green, create the following column
15863 format in the document preamble, according to the description in section
15864 \begin_inset space ~
15868 \begin_inset CommandInset ref
15870 reference "sub:Customized-Format"
15877 \begin_layout Standard
15882 newcolumntype{W}{!{
15889 \begin_layout Standard
15891 \begin_inset space ~
15895 \begin_inset CommandInset ref
15897 reference "tab:Table-with-vertical-colored"
15905 was used for the last column and
15909 for the other columns.
15912 \begin_layout Standard
15913 If you want to have several colors, define more column formats.
15916 \begin_layout Standard
15917 \begin_inset Float table
15923 \begin_layout Plain Layout
15924 \begin_inset Caption
15926 \begin_layout Plain Layout
15927 \begin_inset CommandInset label
15929 name "tab:Table-with-vertical-colored"
15933 Table with colored vertical lines
15941 \begin_layout Plain Layout
15943 \begin_inset Tabular
15944 <lyxtabular version="3" rows="3" columns="3">
15945 <features tabularvalignment="middle">
15946 <column alignment="center" valignment="top" width="0" special="Wc">
15947 <column alignment="center" valignment="top" width="0" special="Wc">
15948 <column alignment="center" valignment="top" width="0" special="WcW">
15950 <cell alignment="center" valignment="top" topline="true" usebox="none">
15953 \begin_layout Plain Layout
15959 <cell alignment="center" valignment="top" topline="true" usebox="none">
15962 \begin_layout Plain Layout
15968 <cell alignment="center" valignment="top" topline="true" usebox="none">
15971 \begin_layout Plain Layout
15979 <cell alignment="center" valignment="top" topline="true" usebox="none">
15982 \begin_layout Plain Layout
15988 <cell alignment="center" valignment="top" topline="true" usebox="none">
15991 \begin_layout Plain Layout
15997 <cell alignment="center" valignment="top" topline="true" usebox="none">
16000 \begin_layout Plain Layout
16008 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16011 \begin_layout Plain Layout
16017 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16020 \begin_layout Plain Layout
16026 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16029 \begin_layout Plain Layout
16048 \begin_layout Standard
16049 \begin_inset VSpace bigskip
16052 To color horizontal lines for example with red, as in Table
16053 \begin_inset space ~
16057 \begin_inset CommandInset ref
16059 reference "tab:Table-with-horizontal-colored"
16063 , insert these commands in TeX-Code before the table or table float:
16066 \begin_layout Standard
16076 \begin_inset Newline newline
16084 \begin_inset Newline newline
16088 \begin_inset Phantom HPhantom
16091 \begin_layout Plain Layout
16094 \begin_inset space ~
16104 arrayrulecolor{red}
16108 arrayrulecolor{black}}
16111 \begin_layout Standard
16115 \begin_layout Plain Layout
16126 \begin_layout Plain Layout
16135 \begin_layout Plain Layout
16139 arrayrulecolor{red}
16143 arrayrulecolor{black}}
16149 \begin_inset Float table
16155 \begin_layout Plain Layout
16156 \begin_inset Caption
16158 \begin_layout Plain Layout
16159 \begin_inset CommandInset label
16161 name "tab:Table-with-horizontal-colored"
16165 Table with colored horizontal lines
16173 \begin_layout Plain Layout
16175 \begin_inset Tabular
16176 <lyxtabular version="3" rows="3" columns="3">
16177 <features tabularvalignment="middle">
16178 <column alignment="center" valignment="top" width="0">
16179 <column alignment="center" valignment="top" width="0">
16180 <column alignment="center" valignment="top" width="0">
16182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16185 \begin_layout Plain Layout
16191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16194 \begin_layout Plain Layout
16200 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16203 \begin_layout Plain Layout
16211 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16214 \begin_layout Plain Layout
16220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16223 \begin_layout Plain Layout
16229 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16232 \begin_layout Plain Layout
16240 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16243 \begin_layout Plain Layout
16249 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16252 \begin_layout Plain Layout
16258 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16261 \begin_layout Plain Layout
16280 \begin_layout Standard
16281 To return to the default line color black, insert this command in TeX-Code
16282 after the table or table float:
16285 \begin_layout Standard
16297 \begin_layout Standard
16299 \begin_inset space ~
16303 \begin_inset CommandInset ref
16305 reference "tab:Table-with-colored"
16309 is an example with colored vertical and horizontal lines.
16312 \begin_layout Standard
16313 \begin_inset Float table
16319 \begin_layout Plain Layout
16320 \begin_inset Caption
16322 \begin_layout Plain Layout
16323 \begin_inset CommandInset label
16325 name "tab:Table-with-colored"
16329 Table with colored lines
16337 \begin_layout Plain Layout
16339 \begin_inset Tabular
16340 <lyxtabular version="3" rows="3" columns="3">
16341 <features tabularvalignment="middle">
16342 <column alignment="center" valignment="top" width="0" special="Wc">
16343 <column alignment="center" valignment="top" width="0" special="Wc">
16344 <column alignment="center" valignment="top" width="0" special="WcW">
16346 <cell alignment="center" valignment="top" topline="true" usebox="none">
16349 \begin_layout Plain Layout
16355 <cell alignment="center" valignment="top" topline="true" usebox="none">
16358 \begin_layout Plain Layout
16364 <cell alignment="center" valignment="top" topline="true" usebox="none">
16367 \begin_layout Plain Layout
16375 <cell alignment="center" valignment="top" topline="true" usebox="none">
16378 \begin_layout Plain Layout
16384 <cell alignment="center" valignment="top" topline="true" usebox="none">
16387 \begin_layout Plain Layout
16393 <cell alignment="center" valignment="top" topline="true" usebox="none">
16396 \begin_layout Plain Layout
16403 <row topspace="default">
16404 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16407 \begin_layout Plain Layout
16413 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16416 \begin_layout Plain Layout
16422 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16425 \begin_layout Plain Layout
16444 \begin_layout Standard
16448 \begin_layout Plain Layout
16464 \begin_layout Standard
16468 \begin_layout Plain Layout
16474 arrayrulewidth}{0.4pt}
16482 \begin_layout Section
16483 Table Customization
16484 \begin_inset Index idx
16487 \begin_layout Plain Layout
16488 Table Customization
16494 \begin_inset Index idx
16497 \begin_layout Plain Layout
16498 Table ! Customization
16506 \begin_layout Subsection
16508 \begin_inset CommandInset label
16510 name "sub:Row-Spacing"
16515 \begin_inset Index idx
16518 \begin_layout Plain Layout
16519 Table Customization ! Row Spacing
16527 \begin_layout Standard
16528 You can add vertical space to table rows in the
16532 tab of the table dialog.
16533 You find there three possibilities:
16536 \begin_layout Description
16538 \begin_inset space ~
16542 \begin_inset space ~
16545 row will add space above the characters of the table row.
16546 If the table is a formal table
16550 \begin_layout Plain Layout
16551 Formal tables are explained in section
16552 \begin_inset space ~
16556 \begin_inset CommandInset ref
16558 reference "sec:Formal-Tables"
16567 LyX will insert as default 0.5
16568 \begin_inset space \thinspace{}
16572 For normal tables the inserted space will unfortunately destroy the vertical
16573 table lines as in the following table:
16574 \begin_inset VSpace medskip
16578 \begin_inset Newline newline
16582 \begin_inset space \hspace*{}
16587 \begin_inset space \hfill{}
16591 \begin_inset Tabular
16592 <lyxtabular version="3" rows="3" columns="1">
16593 <features tabularvalignment="middle">
16594 <column alignment="center" valignment="top" width="0">
16596 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16599 \begin_layout Plain Layout
16606 <row topspace="3mm">
16607 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16610 \begin_layout Plain Layout
16612 \begin_inset space \thinspace{}
16615 mm space top of row
16622 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16625 \begin_layout Plain Layout
16637 \begin_inset space \hfill{}
16641 \begin_inset space \hspace*{}
16646 \begin_inset VSpace medskip
16650 \begin_inset Newline newline
16653 So inserting space in the top of row for normal tables is only useful when
16654 you don't have vertical lines.
16657 \begin_layout Description
16659 \begin_inset space ~
16663 \begin_inset space ~
16666 row will add space below the characters of the table row.
16667 If the table is a formal table LyX will insert as default 0.5
16668 \begin_inset space \thinspace{}
16671 em space, for normal tables the default size is 2
16672 \begin_inset space \thinspace{}
16678 \begin_layout Description
16680 \begin_inset space ~
16683 rows adds space between the current and the following row.
16684 If the table is a formal table LyX will insert as default 0.5
16685 \begin_inset space \thinspace{}
16689 For normal tables the inserted space will unfortunately destroy the vertical
16690 table lines as in the following table:
16691 \begin_inset VSpace medskip
16695 \begin_inset Newline newline
16699 \begin_inset space \hspace*{}
16704 \begin_inset space \hfill{}
16708 \begin_inset Tabular
16709 <lyxtabular version="3" rows="3" columns="1">
16710 <features tabularvalignment="middle">
16711 <column alignment="center" valignment="top" width="0">
16713 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16716 \begin_layout Plain Layout
16723 <row interlinespace="3mm">
16724 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16727 \begin_layout Plain Layout
16728 \begin_inset Formula $\downarrow$
16732 \begin_inset space \thinspace{}
16735 mm space between row
16736 \begin_inset Formula $\downarrow$
16746 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16749 \begin_layout Plain Layout
16750 \begin_inset Formula $\uparrow$
16754 \begin_inset space \thinspace{}
16757 mm space between row
16758 \begin_inset Formula $\uparrow$
16772 \begin_inset space \hfill{}
16776 \begin_inset space \hspace*{}
16781 \begin_inset VSpace medskip
16785 \begin_inset Newline newline
16788 So inserting space between rows for normal tables is only useful when you
16789 don't have vertical lines.
16792 \begin_layout Standard
16793 \begin_inset VSpace bigskip
16796 When you want to add extra height to all cells of all tables, you can do
16797 this with the following preamble lines:
16800 \begin_layout Standard
16805 @ifundefined{extrarowheight}
16806 \begin_inset Newline newline
16810 \begin_inset Phantom HPhantom
16813 \begin_layout Plain Layout
16816 \begin_inset space ~
16826 usepackage{array}}{}
16827 \begin_inset Newline newline
16834 extrarowheight}{height}
16837 \begin_layout Standard
16838 But this has the disadvantage that the cell texts are no longer exactly
16839 vertically centered.
16844 will be loaded automatically by LyX when you use self defined table formats.
16845 To avoid that it being loaded twice the command
16851 is used in the above command.)
16854 \begin_layout Standard
16855 If you are using font sizes larger than the normal size, the table borders
16856 are often too close to the letters.
16857 This can be corrected by inserting the command
16863 in TeX code at the beginning of a table row.
16865 \begin_inset space ~
16869 \begin_inset CommandInset ref
16871 reference "tab:Vertical-alignment-of"
16875 illustrates the effect.
16878 \begin_layout Standard
16880 \begin_inset Float table
16886 \begin_layout Plain Layout
16887 \begin_inset Caption
16889 \begin_layout Plain Layout
16890 \begin_inset CommandInset label
16892 name "tab:Vertical-alignment-of"
16896 Vertical alignment of text with large font sizes.
16904 \begin_layout Plain Layout
16905 \begin_inset space \hfill{}
16909 \begin_inset Float table
16914 \begin_layout Plain Layout
16915 \begin_inset Caption
16917 \begin_layout Plain Layout
16926 \begin_layout Plain Layout
16929 \begin_inset Tabular
16930 <lyxtabular version="3" rows="6" columns="1">
16931 <features tabularvalignment="middle">
16932 <column alignment="left" valignment="top" width="0">
16934 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16937 \begin_layout Plain Layout
16945 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16948 \begin_layout Plain Layout
16958 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16961 \begin_layout Plain Layout
16971 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16974 \begin_layout Plain Layout
16984 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16987 \begin_layout Plain Layout
16997 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17000 \begin_layout Plain Layout
17019 \begin_inset space \hfill{}
17023 \begin_inset Float table
17028 \begin_layout Plain Layout
17029 \begin_inset Caption
17031 \begin_layout Plain Layout
17032 Table using the command
17046 \begin_layout Plain Layout
17049 \begin_inset Tabular
17050 <lyxtabular version="3" rows="6" columns="1">
17051 <features tabularvalignment="middle">
17052 <column alignment="left" valignment="top" width="0">
17054 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17057 \begin_layout Plain Layout
17065 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17068 \begin_layout Plain Layout
17074 \begin_layout Plain Layout
17090 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17093 \begin_layout Plain Layout
17099 \begin_layout Plain Layout
17115 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17118 \begin_layout Plain Layout
17124 \begin_layout Plain Layout
17140 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17143 \begin_layout Plain Layout
17149 \begin_layout Plain Layout
17165 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17168 \begin_layout Plain Layout
17174 \begin_layout Plain Layout
17201 \begin_inset space \hfill{}
17212 \begin_layout Subsection
17213 Special Cell Alignment
17214 \begin_inset CommandInset label
17216 name "sub:Special-Cell-Alignment"
17221 \begin_inset Index idx
17224 \begin_layout Plain Layout
17225 Table Customization ! Special Cell Alignment
17233 \begin_layout Standard
17234 Sometimes it looks better when the cell entries of a column are aligned
17235 with a special character, e.
17236 \begin_inset space \thinspace{}
17240 \begin_inset space \space{}
17243 with the decimal separator as in Table
17244 \begin_inset space ~
17248 \begin_inset CommandInset ref
17250 reference "tab:Table-cells-align"
17255 This alignment is achieved by setting the cursor into the column and then
17256 either pressing the toolbar button
17257 \begin_inset Graphics
17258 filename ../images/tabular-feature_align-decimal.png
17260 scaleBeforeRotation
17264 or setting the alignment in the table settings to
17267 \begin_inset space ~
17271 \begin_inset space ~
17277 The alignment character can be a character of your choice and is specified
17278 in the table settings.
17281 \begin_layout Standard
17282 \begin_inset Float table
17288 \begin_layout Plain Layout
17289 \begin_inset Caption
17291 \begin_layout Plain Layout
17292 \begin_inset CommandInset label
17294 name "tab:Table-cells-align"
17298 Table cells of a column aligned with the decimal separator.
17306 \begin_layout Plain Layout
17308 \begin_inset Tabular
17309 <lyxtabular version="3" rows="4" columns="1">
17310 <features booktabs="true" tabularvalignment="middle">
17311 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
17313 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17316 \begin_layout Plain Layout
17324 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17327 \begin_layout Plain Layout
17335 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17338 \begin_layout Plain Layout
17346 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17349 \begin_layout Plain Layout
17368 \begin_layout Standard
17369 \begin_inset Float table
17375 \begin_layout Plain Layout
17376 \begin_inset Caption
17378 \begin_layout Plain Layout
17379 \begin_inset CommandInset label
17381 name "tab:Table-align-operator"
17385 Table cells of a column aligned with the operators.
17393 \begin_layout Plain Layout
17395 \begin_inset Tabular
17396 <lyxtabular version="3" rows="4" columns="2">
17397 <features booktabs="true" tabularvalignment="middle">
17398 <column alignment="right" valignment="top" width="0pt">
17399 <column alignment="left" valignment="top" width="0pt" special="@{}l">
17401 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17404 \begin_layout Plain Layout
17410 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17413 \begin_layout Plain Layout
17421 <cell alignment="center" valignment="top" usebox="none">
17424 \begin_layout Plain Layout
17425 \begin_inset Formula $12\,+$
17433 <cell alignment="center" valignment="top" usebox="none">
17436 \begin_layout Plain Layout
17437 \begin_inset Formula $\,6$
17447 <cell alignment="center" valignment="top" usebox="none">
17450 \begin_layout Plain Layout
17451 \begin_inset Formula $0\,-$
17459 <cell alignment="center" valignment="top" usebox="none">
17462 \begin_layout Plain Layout
17463 \begin_inset Formula $\,68$
17473 <cell alignment="center" valignment="top" usebox="none">
17476 \begin_layout Plain Layout
17477 \begin_inset Formula $-123\,/$
17485 <cell alignment="center" valignment="top" usebox="none">
17488 \begin_layout Plain Layout
17489 \begin_inset Formula $\,0$
17510 \begin_layout Standard
17511 For alignments at characters in formulas this method does not work because
17512 the field to specify the alignment character does not allow formulas.
17513 In this case one need to use the method from Table
17514 \begin_inset space ~
17518 \begin_inset CommandInset ref
17520 reference "tab:Table-align-operator"
17525 This table was created with a 4×2 table.
17526 The heading is a centered multicolumn.
17527 The first column is right-aligned and contains the first part including
17529 The second column is left aligned and contains the rest.
17530 A small space was added at the beginning of each cell of the second column
17531 to get the space that is usually around operators.
17532 To omit the space that is normally between two table columns, the following
17533 LaTeX-argument was used for the second column:
17536 \begin_layout Standard
17542 \begin_layout Standard
17544 \begin_inset space ~
17548 \begin_inset CommandInset ref
17550 reference "tab:Several-table-cell"
17554 shows some example alignments.
17555 For the alignment with the relation sign, a small space was added like
17556 for the second column of Table
17557 \begin_inset space ~
17561 \begin_inset CommandInset ref
17563 reference "tab:Table-align-operator"
17570 \begin_layout Standard
17571 \begin_inset Float table
17577 \begin_layout Plain Layout
17578 \begin_inset Caption
17580 \begin_layout Plain Layout
17581 \begin_inset CommandInset label
17583 name "tab:Several-table-cell"
17587 Several table cell alignments.
17595 \begin_layout Plain Layout
17597 \begin_inset Tabular
17598 <lyxtabular version="3" rows="4" columns="6">
17599 <features tabularvalignment="middle">
17600 <column alignment="right" valignment="top" width="0">
17601 <column alignment="left" valignment="top" width="0" special="@{}l">
17602 <column alignment="right" valignment="top" width="0">
17603 <column alignment="left" valignment="top" width="0" special="@{}l">
17604 <column alignment="right" valignment="top" width="0">
17605 <column alignment="left" valignment="top" width="0" special="@{}l">
17607 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17610 \begin_layout Plain Layout
17616 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17619 \begin_layout Plain Layout
17625 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17628 \begin_layout Plain Layout
17634 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17637 \begin_layout Plain Layout
17643 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17646 \begin_layout Plain Layout
17652 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17655 \begin_layout Plain Layout
17663 <cell alignment="center" valignment="top" usebox="none">
17666 \begin_layout Plain Layout
17672 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17675 \begin_layout Plain Layout
17677 \begin_inset space \thinspace{}
17685 <cell alignment="center" valignment="top" usebox="none">
17688 \begin_layout Plain Layout
17689 \begin_inset Formula $10\cdot$
17697 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17700 \begin_layout Plain Layout
17701 \begin_inset Formula $10^{\mbox{-}17}$
17709 <cell alignment="center" valignment="top" usebox="none">
17712 \begin_layout Plain Layout
17713 \begin_inset Formula $\Gamma(t)\propto$
17721 <cell alignment="center" valignment="top" usebox="none">
17724 \begin_layout Plain Layout
17725 \begin_inset Formula $\:\Upsilon(t)$
17735 <cell alignment="center" valignment="top" usebox="none">
17738 \begin_layout Plain Layout
17744 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17747 \begin_layout Plain Layout
17749 \begin_inset space \thinspace{}
17757 <cell alignment="center" valignment="top" usebox="none">
17760 \begin_layout Plain Layout
17761 \begin_inset Formula $5.78\cdot$
17769 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17772 \begin_layout Plain Layout
17773 \begin_inset Formula $10^{7}$
17781 <cell alignment="center" valignment="top" usebox="none">
17784 \begin_layout Plain Layout
17785 \begin_inset Formula $A\ne$
17793 <cell alignment="center" valignment="top" usebox="none">
17796 \begin_layout Plain Layout
17797 \begin_inset Formula $\: B_{\mathrm{red}}$
17807 <cell alignment="center" valignment="top" usebox="none">
17810 \begin_layout Plain Layout
17816 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17819 \begin_layout Plain Layout
17821 \begin_inset space \thinspace{}
17829 <cell alignment="center" valignment="top" usebox="none">
17832 \begin_layout Plain Layout
17834 \begin_inset Formula $33.5\cdot$
17842 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17845 \begin_layout Plain Layout
17846 \begin_inset Formula $10^{4}$
17854 <cell alignment="center" valignment="top" usebox="none">
17857 \begin_layout Plain Layout
17858 \begin_inset Formula $\sin(\alpha)\ge$
17866 <cell alignment="center" valignment="top" usebox="none">
17869 \begin_layout Plain Layout
17870 \begin_inset Formula $\:\sin(\beta)$
17891 \begin_layout Subsection
17892 Customized Cell/Column Format
17893 \begin_inset CommandInset label
17895 name "sub:Customized-Format"
17900 \begin_inset Index idx
17903 \begin_layout Plain Layout
17904 Table Customization ! Cell/Column Format
17912 \begin_layout Standard
17913 Calculating the required width for spanned columns as in section
17914 \begin_inset space ~
17918 \begin_inset CommandInset ref
17920 reference "sub:Multicolumn-Calculations"
17924 is very annoying if you have several tables with multicolumn cells.
17925 To make life easier, you can define a cell/column format in the preamble,
17926 so that it can be used in all tables of the document.
17927 The format is defined with the command
17930 \begin_layout Standard
17935 newcolumntype{name of format}[number of arguments]{commands}
17938 \begin_layout Standard
17939 The format name may only consist of one letter.
17964 are predefined and cannot be used.
17965 But all letters are allowed as capitals.
17968 \begin_layout Standard
17969 \begin_inset VSpace medskip
17975 \begin_layout Standard
17976 For vertically and horizontally centered multicolumn cells with a fixed
17977 width you can define the cell format
17980 \begin_layout Standard
17985 newcolumntype{M}[1]{>{
17992 \begin_layout Standard
17999 avoids the problem of hyphenating the first word, as described in section
18000 \begin_inset space ~
18004 \begin_inset CommandInset ref
18006 reference "sub:Multiple-Lines-in"
18011 Now you can simply enter
18014 \begin_layout Standard
18020 \begin_layout Standard
18021 as LaTeX-argument in the table dialog to create a multicolumn.
18024 \begin_layout Standard
18025 \begin_inset VSpace bigskip
18031 \begin_layout Standard
18032 For cells spanned by a multicolumn cell, you can define the format
18035 \begin_layout Standard
18040 newcolumntype{S}[2]{>{
18045 \begin_inset Newline newline
18049 \begin_inset Phantom HPhantom
18052 \begin_layout Plain Layout
18066 arrayrulewidth)*(1-#2))/#2}}
18069 \begin_layout Standard
18070 This format uses equation
18071 \begin_inset CommandInset ref
18077 to calculate the required width so that each spanned cell has the same
18081 \begin_layout Standard
18085 \begin_layout Standard
18088 S{width of multicolumn cell}{number of spanned columns}
18091 \begin_layout Standard
18092 as LaTeX-argument of the column.
18095 \begin_layout Standard
18096 \begin_inset VSpace bigskip
18102 \begin_layout Standard
18103 For colored columns, you can define
18106 \begin_layout Standard
18111 newcolumntype{K}[1]{>{
18118 \begin_layout Standard
18120 \begin_inset Quotes eld
18124 \begin_inset Quotes erd
18127 at the end creates a column with a flexible width whose text is horizontally
18132 \begin_layout Standard
18138 \begin_layout Standard
18142 \begin_layout Standard
18143 \begin_inset VSpace bigskip
18149 \begin_layout Standard
18151 \begin_inset space ~
18155 \begin_inset CommandInset ref
18157 reference "tab:Table-using-user-defined"
18161 use the LaTeX-arguments
18164 \begin_layout Standard
18170 \begin_layout Standard
18171 for the first column and the multicolumn,
18174 \begin_layout Standard
18180 \begin_layout Standard
18181 for the last column, and
18184 \begin_layout Standard
18190 \begin_layout Standard
18191 for the cells in the second column.
18194 \begin_layout Standard
18195 \begin_inset Float table
18201 \begin_layout Plain Layout
18202 \begin_inset Caption
18204 \begin_layout Plain Layout
18205 \begin_inset CommandInset label
18207 name "tab:Table-using-user-defined"
18211 Table using user-defined table formats
18219 \begin_layout Plain Layout
18221 \begin_inset Tabular
18222 <lyxtabular version="3" rows="3" columns="4">
18223 <features tabularvalignment="middle">
18224 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
18225 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
18226 <column alignment="center" valignment="middle" width="0">
18227 <column alignment="center" valignment="middle" width="0" special="K{red}">
18229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18232 \begin_layout Plain Layout
18233 verylongtablecellword
18238 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
18241 \begin_layout Plain Layout
18242 multiple lines multicolumn
18247 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18250 \begin_layout Plain Layout
18256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18259 \begin_layout Plain Layout
18267 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18270 \begin_layout Plain Layout
18276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18279 \begin_layout Plain Layout
18285 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18288 \begin_layout Plain Layout
18294 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18297 \begin_layout Plain Layout
18305 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18308 \begin_layout Plain Layout
18314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18317 \begin_layout Plain Layout
18323 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18326 \begin_layout Plain Layout
18332 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18335 \begin_layout Plain Layout
18354 \begin_layout Subsection
18356 \begin_inset CommandInset label
18358 name "sub:Line-Thickness"
18363 \begin_inset Index idx
18366 \begin_layout Plain Layout
18367 Table Customization ! Line Thickness
18375 \begin_layout Standard
18376 The line thickness for all lines in a table can be adjusted with the length
18384 To set for example a line thickness of 1.5
18385 \begin_inset space \thinspace{}
18389 \begin_inset space ~
18393 \begin_inset CommandInset ref
18395 reference "tab:Table-with-1.5"
18399 , insert the command
18402 \begin_layout Standard
18409 arrayrulewidth}{1.5pt}
18412 \begin_layout Standard
18413 in TeX-Code before the table or table float.
18414 The changed thickness is valid for all subsequent tables.
18415 To use the default value again, set
18422 \begin_inset space \thinspace{}
18425 pt in TeX-Code after the table or table float.
18428 \begin_layout Standard
18432 \begin_layout Plain Layout
18438 arrayrulewidth}{1.5pt}
18444 \begin_inset Float table
18449 \begin_layout Plain Layout
18450 \begin_inset Caption
18452 \begin_layout Plain Layout
18453 \begin_inset CommandInset label
18455 name "tab:Table-with-1.5"
18460 \begin_inset space \thinspace{}
18471 \begin_layout Plain Layout
18473 \begin_inset Tabular
18474 <lyxtabular version="3" rows="3" columns="3">
18475 <features tabularvalignment="middle">
18476 <column alignment="center" valignment="top" width="0">
18477 <column alignment="center" valignment="top" width="0">
18478 <column alignment="center" valignment="top" width="0">
18480 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18483 \begin_layout Plain Layout
18489 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18492 \begin_layout Plain Layout
18498 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18501 \begin_layout Plain Layout
18509 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18512 \begin_layout Plain Layout
18518 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18521 \begin_layout Plain Layout
18527 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18530 \begin_layout Plain Layout
18538 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18541 \begin_layout Plain Layout
18547 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18550 \begin_layout Plain Layout
18556 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18559 \begin_layout Plain Layout
18579 \begin_layout Plain Layout
18585 arrayrulewidth}{0.4pt}
18593 \begin_layout Standard
18594 \begin_inset VSpace bigskip
18597 To set the line thickness to 1.5
18598 \begin_inset space \thinspace{}
18601 pt only for horizontal lines, as in Table
18602 \begin_inset space ~
18606 \begin_inset CommandInset ref
18608 reference "tab:Table-with-horizontal"
18612 , insert these commands in TeX-Code before the table or table float:
18615 \begin_layout Standard
18625 \begin_inset Newline newline
18633 \begin_inset Newline newline
18642 arrayrulewidth 1.5pt}
18643 \begin_inset Newline newline
18654 arrayrulewidth 0.4pt}}
18657 \begin_layout Standard
18658 To return to the default line thickness, insert this command in TeX-Code
18659 after the table or table float:
18662 \begin_layout Standard
18674 \begin_layout Standard
18678 \begin_layout Plain Layout
18689 \begin_layout Plain Layout
18698 \begin_layout Plain Layout
18706 arrayrulewidth 1.5pt}
18709 \begin_layout Plain Layout
18719 arrayrulewidth 0.4pt}}
18725 \begin_inset Float table
18730 \begin_layout Plain Layout
18731 \begin_inset Caption
18733 \begin_layout Plain Layout
18734 \begin_inset CommandInset label
18736 name "tab:Table-with-horizontal"
18741 \begin_inset space \thinspace{}
18744 pt thick horizontal lines
18752 \begin_layout Plain Layout
18754 \begin_inset Tabular
18755 <lyxtabular version="3" rows="3" columns="3">
18756 <features tabularvalignment="middle">
18757 <column alignment="center" valignment="top" width="0">
18758 <column alignment="center" valignment="top" width="0">
18759 <column alignment="center" valignment="top" width="0">
18761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18764 \begin_layout Plain Layout
18770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18773 \begin_layout Plain Layout
18779 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18782 \begin_layout Plain Layout
18790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18793 \begin_layout Plain Layout
18799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18802 \begin_layout Plain Layout
18808 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18811 \begin_layout Plain Layout
18819 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18822 \begin_layout Plain Layout
18828 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18831 \begin_layout Plain Layout
18837 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18840 \begin_layout Plain Layout
18860 \begin_layout Plain Layout
18876 \begin_layout Standard
18877 \begin_inset VSpace bigskip
18880 To set the line thickness to 1.5
18881 \begin_inset space \thinspace{}
18884 pt only for vertical lines, create the following column format in the document
18885 preamble, according to the description in section
18886 \begin_inset space ~
18890 \begin_inset CommandInset ref
18892 reference "sub:Customized-Format"
18899 \begin_layout Standard
18904 newcolumntype{V}{!{
18906 vrule width 1.5pt}}
18909 \begin_layout Standard
18911 \begin_inset space ~
18915 \begin_inset CommandInset ref
18917 reference "tab:Table-with-vertical"
18924 \begin_layout Standard
18930 \begin_layout Standard
18931 was used for the last column and
18934 \begin_layout Standard
18940 \begin_layout Standard
18941 for the other columns.
18944 \begin_layout Standard
18945 \begin_inset Float table
18950 \begin_layout Plain Layout
18951 \begin_inset Caption
18953 \begin_layout Plain Layout
18954 \begin_inset CommandInset label
18956 name "tab:Table-with-vertical"
18961 \begin_inset space \thinspace{}
18964 pt thick vertical lines
18972 \begin_layout Plain Layout
18974 \begin_inset Tabular
18975 <lyxtabular version="3" rows="3" columns="3">
18976 <features tabularvalignment="middle">
18977 <column alignment="center" valignment="top" width="0" special="Vc">
18978 <column alignment="center" valignment="top" width="0" special="Vc">
18979 <column alignment="center" valignment="top" width="0" special="VcV">
18981 <cell alignment="center" valignment="top" topline="true" usebox="none">
18984 \begin_layout Plain Layout
18990 <cell alignment="center" valignment="top" topline="true" usebox="none">
18993 \begin_layout Plain Layout
18999 <cell alignment="center" valignment="top" topline="true" usebox="none">
19002 \begin_layout Plain Layout
19010 <cell alignment="center" valignment="top" topline="true" usebox="none">
19013 \begin_layout Plain Layout
19019 <cell alignment="center" valignment="top" topline="true" usebox="none">
19022 \begin_layout Plain Layout
19028 <cell alignment="center" valignment="top" topline="true" usebox="none">
19031 \begin_layout Plain Layout
19039 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19042 \begin_layout Plain Layout
19048 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19051 \begin_layout Plain Layout
19057 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19060 \begin_layout Plain Layout
19079 \begin_layout Subsection
19081 \begin_inset Index idx
19084 \begin_layout Plain Layout
19085 Table Customization ! Dashed Lines
19093 \begin_layout Standard
19097 \begin_layout Plain Layout
19107 \begin_inset Note Note
19110 \begin_layout Plain Layout
19111 The following section will only be displayed when the LaTeX-package
19123 \begin_layout Standard
19124 \begin_inset Float table
19130 \begin_layout Plain Layout
19131 \begin_inset Caption
19133 \begin_layout Plain Layout
19134 \begin_inset CommandInset label
19136 name "tab:Table-with-dashed"
19140 Table with dashed lines
19148 \begin_layout Plain Layout
19150 \begin_inset Tabular
19151 <lyxtabular version="3" rows="5" columns="5">
19152 <features tabularvalignment="middle">
19153 <column alignment="center" valignment="top" width="0">
19154 <column alignment="center" valignment="top" width="0">
19155 <column alignment="center" valignment="top" width="0" special=":c">
19156 <column alignment="center" valignment="top" width="0">
19157 <column alignment="center" valignment="top" width="0">
19159 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19162 \begin_layout Plain Layout
19168 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19171 \begin_layout Plain Layout
19177 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19180 \begin_layout Plain Layout
19186 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19189 \begin_layout Plain Layout
19195 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19198 \begin_layout Plain Layout
19206 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19209 \begin_layout Plain Layout
19215 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19218 \begin_layout Plain Layout
19224 <cell alignment="center" valignment="top" topline="true" usebox="none">
19227 \begin_layout Plain Layout
19233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19236 \begin_layout Plain Layout
19242 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19245 \begin_layout Plain Layout
19253 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19256 \begin_layout Plain Layout
19260 \begin_layout Plain Layout
19274 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19277 \begin_layout Plain Layout
19283 <cell alignment="center" valignment="top" usebox="none">
19286 \begin_layout Plain Layout
19292 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19295 \begin_layout Plain Layout
19301 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
19304 \begin_layout Plain Layout
19312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19315 \begin_layout Plain Layout
19319 \begin_layout Plain Layout
19333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19336 \begin_layout Plain Layout
19342 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
19345 \begin_layout Plain Layout
19351 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19354 \begin_layout Plain Layout
19360 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19363 \begin_layout Plain Layout
19371 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19374 \begin_layout Plain Layout
19380 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19383 \begin_layout Plain Layout
19389 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19392 \begin_layout Plain Layout
19398 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19401 \begin_layout Plain Layout
19407 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19410 \begin_layout Plain Layout
19429 \begin_layout Standard
19430 LyX does not natively support dashed lines, so you have to use TeX-Code.
19431 As a prerequisite the LaTeX-package
19436 \begin_inset Index idx
19439 \begin_layout Plain Layout
19440 LaTeX-packages ! arydshln
19445 must be loaded in the document preamble with the command
19448 \begin_layout Standard
19453 usepackage{arydshln}
19456 \begin_layout Standard
19457 To make a vertical line dashed, enter the colon
19458 \begin_inset Quotes eld
19462 \begin_inset Quotes erd
19465 together with the character for the horizontal alignment as LaTeX-argument
19466 in the table cell dialog.
19469 \begin_layout Standard
19470 For a horizontal dashed line add the command
19473 \begin_layout Standard
19481 \begin_layout Standard
19482 in TeX-Code as first element of the first cell in the table row.
19485 \begin_layout Standard
19486 For dashed multicolumn lines use the command
19489 \begin_layout Standard
19494 cdashline{line number
19499 \begin_layout Standard
19500 in TeX-Code as the first element of the first cell in the table row.
19501 If you have for example a multicolumn spanning columns 2 to 4 and you want
19502 to have a dashed line above, add the command
19505 \begin_layout Standard
19513 \begin_layout Standard
19514 as the first element of the first cell in the row of the multicolumn.
19517 \begin_layout Standard
19518 \begin_inset VSpace bigskip
19524 \begin_layout Standard
19526 \begin_inset space ~
19530 \begin_inset CommandInset ref
19532 reference "tab:Table-with-dashed"
19537 \begin_inset Quotes eld
19545 \begin_inset Quotes erd
19548 as LaTeX-argument of the third column.
19549 The TeX-Code command
19555 was inserted in the first cell of the third row and the TeX-Code command
19556 \begin_inset Newline newline
19565 was inserted in the first cell of the fourth row.
19568 \begin_layout Standard
19569 \begin_inset Note Greyedout
19572 \begin_layout Plain Layout
19581 is apparently not compatible with the LaTeX-package
19586 \begin_inset Index idx
19589 \begin_layout Plain Layout
19590 LaTeX-packages ! colortbl
19595 that is used for colored tables in section
19596 \begin_inset space ~
19600 \begin_inset CommandInset ref
19602 reference "sec:Colored-Tables"
19607 That means colored tables cannot have dashed lines.
19615 \begin_layout Standard
19619 \begin_layout Plain Layout
19629 \begin_inset Note Note
19632 \begin_layout Plain Layout
19633 The following will be displayed when the LaTeX-package
19645 \begin_layout Standard
19646 You need to install the package
19650 to see the content of this section in the output.
19653 \begin_layout Standard
19657 \begin_layout Plain Layout
19669 \begin_layout Chapter
19671 \begin_inset CommandInset label
19678 \begin_inset Index idx
19681 \begin_layout Plain Layout
19690 \begin_layout Section
19692 \begin_inset CommandInset label
19694 name "sec:FloatIntroduction"
19699 \begin_inset Index idx
19702 \begin_layout Plain Layout
19703 Floats ! Introduction
19711 \begin_layout Standard
19712 A float is a block of text associated with some sort of label, which doesn't
19713 have a fixed location.
19715 \begin_inset Quotes eld
19719 \begin_inset Quotes erd
19722 forward or backward a page or two, to wherever it fits best.
19730 \begin_inset space ~
19735 are also floats, because they can float to the next page when there are
19736 too many notes on the page.
19739 \begin_layout Standard
19740 Floats allow a high quality layout.
19741 Images and tables can be spread evenly to the pages to avoid white space
19742 and pages without text.
19743 As the floating often destroys the context between the text and the image/table
19744 , every float can be referenced in the text.
19745 Floats are therefore numbered.
19746 Referencing is described in section
19747 \begin_inset space ~
19751 \begin_inset CommandInset ref
19753 reference "sec:Referencing-Floats"
19760 \begin_layout Standard
19761 To insert a float, use the menu
19763 Insert\SpecialChar \menuseparator
19771 inset, a box with a label.
19772 The label will automatically be translated to the document language in
19774 After the label you can insert the caption text.
19775 The image or table is inserted above or below the caption in a separate
19776 paragraph within the float.
19777 More about the caption placement is contained in section
19778 \begin_inset space ~
19782 \begin_inset CommandInset ref
19784 reference "sec:Caption-Placement"
19789 To keep your LyX-document readable, you can open and close the float box
19790 by left-clicking on the box label.
19791 A closed float box looks like this:
19792 \begin_inset Graphics
19793 filename clipart/floatQt4.png
19795 scaleBeforeRotation
19799 – a gray button with a red label.
19802 \begin_layout Standard
19803 It is recommended that you insert floats as a separate standard paragraph
19804 to avoid possible LaTeX-errors that can occur when the surrounding text
19805 is specially formatted.
19808 \begin_layout Standard
19809 Existing figures or tables can be put into a float by highlighting them
19810 and then pressing the corresponding toolbar button for a new float.
19813 \begin_layout Section
19817 \begin_layout Standard
19818 Besides figure and table floats that are described in sections
19819 \begin_inset space ~
19823 \begin_inset CommandInset ref
19825 reference "sec:Figure-Floats"
19830 \begin_inset CommandInset ref
19832 reference "sec:Table-Floats"
19836 respectively, LyX offers the float types
19845 The latter are explained in sec.
19846 \begin_inset space \thinspace{}
19850 \begin_inset CommandInset ref
19852 reference "sec:Wrap-Floats"
19859 \begin_layout Subsection
19861 \begin_inset Index idx
19864 \begin_layout Plain Layout
19865 Floats ! Algorithms
19873 \begin_layout Standard
19874 \begin_inset Float algorithm
19880 \begin_layout Plain Layout
19881 \begin_inset Caption
19883 \begin_layout Plain Layout
19884 \begin_inset CommandInset label
19886 name "alg:Example-Algorithm-float"
19890 Example Algorithm float
19898 \begin_layout LyX-Code
19900 \begin_inset Newline newline
19903 Sum:= Sum + A(I); /*comment*/
19904 \begin_inset Newline newline
19908 \begin_inset VSpace -4mm
19919 \begin_layout Standard
19920 This float type is inserted with the menu
19922 Insert\SpecialChar \menuseparator
19923 Floats\SpecialChar \menuseparator
19927 It is used for program codes and descriptions of algorithms and can be
19928 seen as an alternative to program code listings that are explained in chapter
19929 \begin_inset space ~
19933 \begin_inset CommandInset ref
19935 reference "cha:Program-Code-Listings"
19940 A possible environment for algorithms is the
19944 , described in LyX's
19950 \begin_inset space ~
19954 \begin_inset CommandInset ref
19956 reference "alg:Example-Algorithm-float"
19960 is an example of an algorithm float where -4
19961 \begin_inset space \thinspace{}
19964 mm vertical space was added at the end of the float to have the bottom rule
19965 exactly below the last text line.
19968 \begin_layout Standard
19969 The float label is not automatically translated into the document language.
19970 If your document is not in English, you have to do this manually by adding
19971 the following line to the document preamble
19976 \begin_layout Standard
19981 floatname{algorithm}{your
19982 \begin_inset space ~
19988 \begin_layout Standard
19992 \begin_inset space ~
19998 \begin_inset Quotes eld
20006 \begin_inset Quotes erd
20012 \begin_layout Standard
20013 To insert the list of algorithms you can use the menu
20015 Insert\SpecialChar \menuseparator
20017 \begin_inset space \thinspace{}
20021 \begin_inset space \thinspace{}
20024 TOC\SpecialChar \menuseparator
20027 when your document has the same language as LyX's menu names.
20028 In other cases use this command in TeX-Code instead:
20031 \begin_layout Standard
20036 listof{algorithm}{your
20037 \begin_inset space ~
20043 \begin_layout Standard
20047 \begin_inset space ~
20053 \begin_inset Quotes eld
20061 \begin_inset Quotes erd
20067 \begin_layout Standard
20068 Algorithm floats are not by default numbered in the scheme
20069 \begin_inset Quotes eld
20073 \begin_inset Quotes erd
20076 as is the case for table and figure floats in many document-classes.
20077 To number algorithm floats in the same scheme, add this command to your
20081 \begin_layout Standard
20086 numberwithin{algorithm}{chapter}
20089 \begin_layout Standard
20090 To be able to use the command
20099 \begin_inset space ~
20104 in the document settings the option
20107 \begin_inset space ~
20111 \begin_inset space ~
20115 \begin_inset space ~
20123 \begin_layout Section
20125 \begin_inset Index idx
20128 \begin_layout Plain Layout
20137 \begin_layout Standard
20138 Floats are usually numbered either independently from the sections the floats
20139 are in, or in the scheme
20140 \begin_inset Quotes eld
20144 \begin_inset Quotes erd
20148 \begin_inset Quotes eld
20152 \begin_inset Quotes erd
20156 This depends on the document class used.
20159 \begin_layout Standard
20160 To change section-independent numbering, you can use this command in the
20164 \begin_layout Standard
20176 \begin_layout Standard
20183 is the command that prints the table number, for figure floats, the command
20197 in the command above prints the table number as small roman number.
20200 \begin_layout Standard
20201 To change the numbering scheme for example to
20202 \begin_inset Quotes eld
20206 \begin_inset Quotes erd
20209 , use this command in the preamble:
20212 \begin_layout Standard
20217 numberwithin{table}{subsection}
20220 \begin_layout Standard
20221 To be able to use the command
20230 \begin_inset space ~
20235 in the document settings the option
20238 \begin_inset space ~
20242 \begin_inset space ~
20246 \begin_inset space ~
20254 \begin_layout Standard
20255 Please also have a look at section
20256 \begin_inset space ~
20260 \begin_inset CommandInset ref
20262 reference "sub:Footnote-Numbering"
20266 for the details and important notes about the numbering commands.
20269 \begin_layout Section
20271 \begin_inset CommandInset label
20273 name "sec:Referencing-Floats"
20278 \begin_inset Index idx
20281 \begin_layout Plain Layout
20282 Floats ! References
20288 \begin_inset Index idx
20291 \begin_layout Plain Layout
20292 References ! to Floats
20300 \begin_layout Standard
20301 To reference a float, insert a label into its caption using the menu
20303 Insert\SpecialChar \menuseparator
20306 or the toolbar button
20307 \begin_inset Graphics
20308 filename ../images/label-insert.png
20310 scaleBeforeRotation
20315 A grey label box like this one:
20316 \begin_inset Graphics
20317 filename clipart/labelQt4.png
20319 scaleBeforeRotation
20323 will be inserted and the label window pops up asking for the label text.
20324 LyX offers as text the first words of the caption with a prefix.
20325 The prefix depends on the float type, e.
20326 \begin_inset space \thinspace{}
20330 \begin_inset space \space{}
20333 for figure floats the prefix will be "
20340 \begin_layout Standard
20341 The label is used as anchor and name for the reference.
20342 You can refer to the label using the menu
20344 Insert\SpecialChar \menuseparator
20347 or the toolbar button
20348 \begin_inset Graphics
20349 filename ../images/dialog-show-new-inset_ref.png
20351 scaleBeforeRotation
20356 A grey cross-reference box like this one:
20357 \begin_inset Graphics
20358 filename clipart/referenceQt4.png
20360 scaleBeforeRotation
20364 will be inserted and the cross-reference window appear showing all labels
20366 If you have multiple LyX-documents opened, choose the one you are working
20367 on from the drop-list at the top of the dialog.
20368 You can now sort the labels alphabetically and then choose one.
20369 At the position of the cross-reference box the float number will appear
20373 \begin_layout Standard
20374 It is recommended that you use a protected space between the cross-reference
20375 name and its number to avoid line breaks between them.
20376 If a cross-reference refers to a non-existing label, you will see two question
20377 marks in the output instead of the reference.
20380 \begin_layout Standard
20381 You can change labels at any time by clicking on the label box.
20382 References to the changed label will automatically change its link to the
20383 new label text, so that you don't need to take care about this.
20386 \begin_layout Standard
20390 \begin_inset space ~
20394 \begin_inset space ~
20399 in the cross-reference window sets the cursor before the referred label.
20400 The button text changes then to Go
20401 \begin_inset space ~
20404 Back and you can use it to set the cursor back to the cross-reference.
20405 Right-clicking on a cross-reference box also sets the cursor before the
20406 referenced label but without the possibility of going back.
20409 \begin_layout Subsection
20410 Cross-Reference Formats
20411 \begin_inset CommandInset label
20413 name "sub:Cross-Reference-Formats"
20418 \begin_inset Index idx
20421 \begin_layout Plain Layout
20422 References ! Formats
20430 \begin_layout Standard
20431 There are six varieties of cross-references:
20434 \begin_layout Description
20435 <reference>: prints the float number, this is the default:
20436 \begin_inset CommandInset ref
20438 reference "fig:Two-distorted-images"
20445 \begin_layout Description
20446 (<reference>): prints the float number within two parentheses, this is the
20447 style normally used to reference formulas, especially when the reference
20449 \begin_inset Quotes eld
20453 \begin_inset Quotes erd
20457 \begin_inset CommandInset ref
20466 \begin_layout Description
20467 <page>: prints the page number: Page
20468 \begin_inset space ~
20472 \begin_inset CommandInset ref
20473 LatexCommand pageref
20474 reference "fig:Two-distorted-images"
20481 \begin_layout Description
20483 \begin_inset space ~
20487 \begin_inset space ~
20490 <page>: prints the text "on page" and the page number:
20491 \begin_inset CommandInset ref
20492 LatexCommand vpageref
20493 reference "fig:Two-distorted-images"
20500 \begin_layout Description
20502 \begin_inset space ~
20506 \begin_inset space ~
20510 \begin_inset space ~
20513 <page>: prints the float number, the text "on page", and the page number:
20515 \begin_inset CommandInset ref
20517 reference "fig:Two-distorted-images"
20524 \begin_layout Description
20526 \begin_inset space ~
20529 reference: prints a self-defined cross-reference format.
20530 \begin_inset Newline newline
20534 \begin_inset Note Greyedout
20537 \begin_layout Plain Layout
20542 This feature is only available when you have the LaTeX-package
20551 \begin_inset Index idx
20554 \begin_layout Plain Layout
20555 LaTeX-packages ! prettyref
20561 \begin_inset Index idx
20564 \begin_layout Plain Layout
20565 LaTeX-packages ! refstyle
20576 \begin_inset Newline newline
20579 You can select which LaTeX-package should be used for this feature by setting
20582 Use refstyle (not prettyref) for cross-references
20586 Document\SpecialChar \menuseparator
20587 Settings\SpecialChar \menuseparator
20591 The format is specified by adding the command
20603 (refstyle) to the preamble of the document.
20604 For example redefining all references to figures (which have the label
20606 \begin_inset Quotes eld
20614 \begin_inset Quotes erd
20617 ) can be done with this command
20618 \begin_inset Newline newline
20625 newref{fig}{refcmd={Image on page
20630 \begin_inset Newline newline
20633 For more information about the format, have a look at the package documentations
20635 \begin_inset CommandInset citation
20637 key "prettyref,refstyle"
20644 \begin_layout Description
20646 \begin_inset space ~
20649 reference: prints the caption of the reference:
20650 \begin_inset CommandInset ref
20651 LatexCommand nameref
20652 reference "fig:Two-distorted-images"
20659 \begin_layout Standard
20664 will not print the page number if the label is on the previous, the same,
20667 \begin_inset space \thinspace{}
20671 \begin_inset space \space{}
20675 \begin_inset Quotes eld
20683 \begin_inset Quotes erd
20689 <reference> on page <page>
20691 will not print anything about the page if the label is on the same page.
20694 \begin_layout Standard
20695 The number and current page of the part of the document referred to in the
20696 output is automatically calculated by LaTeX.
20697 The varieties are adjusted in the field
20701 of the cross-reference window that appears when you click on the cross-referenc
20705 \begin_layout Standard
20706 \begin_inset Note Greyedout
20709 \begin_layout Plain Layout
20714 It is recommended to use the LaTeX-package
20719 \begin_inset Index idx
20722 \begin_layout Plain Layout
20723 LaTeX-packages ! refstyle
20733 \begin_inset Index idx
20736 \begin_layout Plain Layout
20737 LaTeX-packages ! prettyref
20742 does not know all of LyX's possible label shortcuts
20746 \begin_layout Plain Layout
20747 \begin_inset Quotes eld
20751 \begin_inset Quotes erd
20754 is for example LyX's shortcut for labels in figure captions.
20759 and is not internationalized.
20767 \begin_layout Standard
20768 \begin_inset Note Greyedout
20771 \begin_layout Plain Layout
20776 Due to a bug in the LaTeX-package
20780 version 1.4w, some cross-reference formats will cause LaTeX errors for document
20781 languages that make the period character active (like French).
20782 For a workaround, see
20783 \begin_inset Newline newline
20787 \begin_inset CommandInset href
20789 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
20801 \begin_layout Subsection
20802 Automatic Reference Naming
20803 \begin_inset Index idx
20806 \begin_layout Plain Layout
20807 References ! Automatic Reference Naming
20815 \begin_layout Standard
20821 \begin_inset Index idx
20824 \begin_layout Plain Layout
20825 LaTeX-packages ! hyperref
20830 , that is enabled in the
20838 dialog, provides a very useful feature that cross-references automatically
20839 include the name of the referenced floats (or text parts like
20844 So you will save having to write e.
20845 \begin_inset space \thinspace{}
20849 \begin_inset space \space{}
20853 \begin_inset Quotes eld
20857 \begin_inset Quotes erd
20860 before every reference to a figure.
20861 To use this feature, enable
20865 and insert this line to the LaTeX preamble:
20868 \begin_layout Standard
20884 \begin_layout Standard
20885 When you prefer other reference names than the default ones, for example
20886 you want instead of
20887 \begin_inset Quotes eld
20891 \begin_inset Quotes erd
20895 \begin_inset Quotes eld
20899 \begin_inset space \thinspace{}
20903 \begin_inset Quotes eld
20906 , you can redefine the name by inserting this in the preamble:
20909 \begin_layout Standard
20920 sectionautorefname}
20921 \begin_inset Newline newline
20925 \begin_inset Phantom HPhantom
20928 \begin_layout Plain Layout
20931 \begin_inset space ~
20944 \begin_layout Standard
20945 When you are using another document language than English, replace
20946 \begin_inset Newline newline
20961 , where *** is the name of the language used.
20964 \begin_layout Standard
20965 To get automatic names, but not for certain reference types, for example
20966 not for equations, use this preamble code:
20969 \begin_layout Standard
20977 \begin_inset Newline newline
20987 \begin_inset Newline newline
20998 equationautorefname}
20999 \begin_inset Newline newline
21003 \begin_inset Phantom HPhantom
21006 \begin_layout Plain Layout
21009 \begin_inset space ~
21024 \begin_layout Standard
21025 More about this topic can be found in
21030 \begin_inset CommandInset citation
21039 \begin_layout Standard
21040 \begin_inset Note Greyedout
21043 \begin_layout Plain Layout
21048 Automatic reference naming cannot be used when you use cross-references
21052 \begin_inset space ~
21057 style, as described in section
21058 \begin_inset space ~
21062 \begin_inset CommandInset ref
21064 reference "sub:Cross-Reference-Formats"
21076 \begin_layout Standard
21081 manual is an example where automatic reference naming is used.
21084 \begin_layout Subsection
21086 \begin_inset CommandInset label
21088 name "sub:Reference-Position"
21093 \begin_inset Index idx
21096 \begin_layout Plain Layout
21097 References ! Reference Position
21105 \begin_layout Standard
21111 \begin_inset Index idx
21114 \begin_layout Plain Layout
21115 LaTeX-packages ! hyperref
21128 dialog to link cross-references in the output, you will see that clicking
21129 on an image float reference jumps to the image label.
21130 The caption will be the first text part on the screen, so that you cannot
21131 see the image without scrolling.
21132 This is because the reference link anchor is placed at the position of
21134 With the use of the package
21139 \begin_inset Index idx
21142 \begin_layout Plain Layout
21143 LaTeX-packages ! hypcap
21148 , which is part of the LaTeX-package
21153 \begin_inset Index idx
21156 \begin_layout Plain Layout
21157 LaTeX-packages ! oberdiek
21162 , the link anchor is placed at the beginning of a float.
21163 To use this feature for figure floats, load
21167 in the document preamble with the line
21170 \begin_layout Standard
21175 usepackage[figure]{hypcap}
21178 \begin_layout Standard
21183 for all float types but this is not recommended for stability reasons.
21184 For more information, have a look at
21189 \begin_inset CommandInset citation
21198 \begin_layout Standard
21199 \begin_inset Note Greyedout
21202 \begin_layout Plain Layout
21211 has no effect on references to subfigures.
21219 \begin_layout Section
21221 \begin_inset CommandInset label
21223 name "sec:Float-Placement"
21228 \begin_inset Index idx
21231 \begin_layout Plain Layout
21240 \begin_layout Standard
21241 Right-clicking on a float-box opens a dialog where you can alter the placement
21242 options that LaTeX uses for positioning the float.
21243 \begin_inset Newline newline
21249 \begin_inset space ~
21254 is only useful for two-column documents: If you select it, the float will
21255 span both columns on the page instead of being confined to just one.
21256 \begin_inset Newline newline
21262 \begin_inset space ~
21267 is used to rotate floats, see section
21268 \begin_inset CommandInset ref
21270 reference "sec:Rotated-Floats"
21277 \begin_layout Standard
21278 You can use one ore more of the following options in the float dialog to
21279 set the placement for a particular float when you uncheck the option
21282 \begin_inset space ~
21286 \begin_inset space ~
21294 \begin_layout Description
21296 \begin_inset space ~
21300 \begin_inset space ~
21303 possible try to place the float on the position where it has been inserted
21306 \begin_layout Description
21308 \begin_inset space ~
21312 \begin_inset space ~
21315 page try to place the float at the top of the current page
21318 \begin_layout Description
21320 \begin_inset space ~
21324 \begin_inset space ~
21327 page try to place the float at the bottom of the current page
21330 \begin_layout Description
21332 \begin_inset space ~
21336 \begin_inset space ~
21339 floats try to place the float on its own page
21342 \begin_layout Standard
21343 The order of the above option is
21348 That means, if you use the default placement, LaTeX will first try out
21352 \begin_inset space ~
21356 \begin_inset space ~
21364 \begin_inset space ~
21368 \begin_inset space ~
21373 , and then the others.
21374 If you do not use the default, LaTeX will try only the checked options
21375 but in the same order.
21377 \begin_inset space ~
21380 placements are possible the procedure is internally repeated but it is tried
21381 to put the float on the following page.
21384 \begin_layout Standard
21385 By default, each option has its own rules:
21388 \begin_layout Labeling
21389 \labelwidthstring 00.00.0000
21393 \begin_inset space ~
21397 \begin_inset space ~
21402 only floats occupying less than 70
21403 \begin_inset space \thinspace{}
21406 % of the page can be placed at the top of a page (
21415 \begin_layout Labeling
21416 \labelwidthstring 00.00.0000
21420 \begin_inset space ~
21424 \begin_inset space ~
21429 : only floats occupying less than 30
21430 \begin_inset space \thinspace{}
21433 % of the page can be placed at the bottom of a page.
21443 \begin_layout Labeling
21444 \labelwidthstring 00.00.0000
21448 \begin_inset space ~
21452 \begin_inset space ~
21457 : only if more than 50
21458 \begin_inset space \thinspace{}
21461 % of the page are occupied by floats, several floats can be set together
21472 \begin_layout Standard
21473 If you don't like these rules, you can ignore them by using the additional
21477 \begin_inset space ~
21481 \begin_inset space ~
21487 \begin_inset Newline newline
21490 You can also redefine the rules with LaTeX-commands that are given in parenthese
21491 s after the rules description above.
21492 To increase for example the often too small default of the bottom-rule
21494 \begin_inset space \thinspace{}
21497 % of the page, add this line to your document preamble:
21500 \begin_layout Standard
21507 bottomfraction}{0.5}
21510 \begin_layout Standard
21511 Sometimes you might need, under all circumstances, a float to be placed
21512 exactly at the position where it is inserted.
21513 For this case you can use the option
21516 \begin_inset space ~
21522 Use this option very rarely and only if the document is almost ready to
21523 be printed, because the float is then no longer able to
21524 \begin_inset Quotes eld
21528 \begin_inset Quotes erd
21531 when you change your document and this will often destroy the page layout.
21534 \begin_layout Standard
21535 There are no placement options for text wrap floats, because they are always
21536 surrounded by the text of a certain paragraph.
21537 \begin_inset VSpace bigskip
21543 \begin_layout Standard
21544 Sometimes you have the problem that a float is placed at the top of a page
21545 while its corresponding section starts at the middle of the page, so that
21546 the reader could think the float is part of the previous section.
21547 To avoid this the LaTeX-command
21554 It suppresses a given float placement for the page where it is inserted
21555 and can therefore be used to avoid floats being set before a section starts.
21556 To get this, add these commands to your document preamble:
21559 \begin_layout Standard
21569 \begin_inset Newline newline
21583 \begin_layout Standard
21584 You can define the same for all section headings, like chapters and subsections.
21585 This definition is not recommended to be used for small text parts like
21586 subsubsections because LaTeX may then have problems finding a suitable
21590 \begin_layout Standard
21591 \begin_inset VSpace bigskip
21594 In some cases it is required to have all figures/tables at the end of the
21596 For this purpose the LaTeX-package
21601 \begin_inset Index idx
21604 \begin_layout Plain Layout
21605 LaTeX-packages ! endfloat
21611 It puts all figure and table floats at the end of the document into their
21613 At the original float position a text hint like
21614 \begin_inset Quotes eld
21620 \begin_inset space ~
21626 \begin_inset Quotes erd
21630 The endfloat-package is loaded in the preamble with the line
21633 \begin_layout Standard
21638 usepackage[options]{endfloat}
21641 \begin_layout Standard
21642 There are various package options to format the created figure/table sections.
21643 For more information we refer to the
21648 \begin_inset CommandInset citation
21655 \begin_inset Newline newline
21659 \begin_inset Note Greyedout
21662 \begin_layout Plain Layout
21667 doesn't provide an automatic translation for the text hint, you have to
21668 do this manually, see section
21669 \begin_inset space ~
21673 \begin_inset CommandInset citation
21685 \begin_inset Newline newline
21689 \begin_inset Note Greyedout
21692 \begin_layout Plain Layout
21697 There is currently a bug in
21701 when the caption contains a German
21702 \begin_inset Quotes eld
21706 \begin_inset Quotes erd
21710 Use in this case the command
21711 \begin_inset Quotes eld
21721 \begin_inset Quotes erd
21724 in TeX-Code instead of
21725 \begin_inset Quotes eld
21729 \begin_inset Quotes erd
21740 \begin_layout Standard
21741 \begin_inset VSpace bigskip
21744 For more details about float placements, have a look at LaTeX books,
21745 \begin_inset CommandInset citation
21747 key "latexcompanion,latexguide,latexbook"
21754 \begin_layout Section
21756 \begin_inset CommandInset label
21758 name "sec:Rotated-Floats"
21763 \begin_inset Index idx
21766 \begin_layout Plain Layout
21775 \begin_layout Standard
21776 Especially for wide tables you might have floats rotated.
21777 To rotate a whole float including the caption, right-click on the float-box
21781 \begin_inset space ~
21789 \begin_layout Standard
21790 Rotated floats are always placed on a page of their own (or column of their
21791 own; in case you have a multi-column document).
21792 You can let them span several columns using the float settings option
21795 \begin_inset space ~
21801 Floats are rotated so that you can read them from the outside margin.
21802 To force a certain rotation direction for all pages, you can add either
21811 to the document class options.
21814 \begin_layout Standard
21815 Referencing rotated floats is the same as for normal floats, the caption
21816 format is also the same: Table
21817 \begin_inset space ~
21821 \begin_inset CommandInset ref
21823 reference "tab:Rotated-table"
21827 is an example of a rotated table float.
21830 \begin_layout Standard
21831 \begin_inset Note Greyedout
21834 \begin_layout Plain Layout
21839 Not all DVI-viewers are able to display rotated floats.
21847 \begin_layout Standard
21848 \begin_inset Float table
21853 \begin_layout Plain Layout
21854 \begin_inset Caption
21856 \begin_layout Plain Layout
21857 \begin_inset CommandInset label
21859 name "tab:Rotated-table"
21871 \begin_layout Plain Layout
21873 \begin_inset Tabular
21874 <lyxtabular version="3" rows="1" columns="5">
21875 <features tabularvalignment="middle">
21876 <column alignment="center" valignment="top" width="0">
21877 <column alignment="center" valignment="top" width="0">
21878 <column alignment="center" valignment="top" width="0">
21879 <column alignment="center" valignment="top" width="0">
21880 <column alignment="center" valignment="top" width="0">
21882 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21885 \begin_layout Plain Layout
21891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21894 \begin_layout Plain Layout
21900 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21903 \begin_layout Plain Layout
21909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21912 \begin_layout Plain Layout
21918 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21921 \begin_layout Plain Layout
21940 \begin_layout Section
21942 \begin_inset Index idx
21945 \begin_layout Plain Layout
21954 \begin_layout Standard
21955 Subfloats are for example used when a figure consists of several images.
21956 They are created by inserting a float into an existing float.
21957 The placement of the subfloats can be controlled in the same way as for
21958 paragraphs as shown in table
21959 \begin_inset space ~
21963 \begin_inset CommandInset ref
21965 reference "tab:Two-subtables-side"
21970 \begin_inset CommandInset ref
21972 reference "tab:Two-subtables-upon"
21979 \begin_layout Standard
21980 Referencing subfloats works as for normal floats: Table
21981 \begin_inset space ~
21985 \begin_inset CommandInset ref
21987 reference "tab:This-is-subtable-a"
21992 \begin_inset CommandInset ref
21994 reference "tab:This-is-subtable-b"
21998 are subtables of table
21999 \begin_inset space ~
22003 \begin_inset CommandInset ref
22005 reference "tab:Two-subtables-side"
22012 \begin_layout Standard
22013 \begin_inset Float table
22018 \begin_layout Plain Layout
22019 \begin_inset Caption
22021 \begin_layout Plain Layout
22022 \begin_inset CommandInset label
22024 name "tab:Two-subtables-side"
22028 Two subtables placed side by side.
22036 \begin_layout Plain Layout
22038 \begin_inset space \hfill{}
22042 \begin_inset Float table
22047 \begin_layout Plain Layout
22048 \begin_inset Caption
22050 \begin_layout Plain Layout
22051 \begin_inset CommandInset label
22053 name "tab:This-is-subtable-a"
22057 This is subtable a.
22065 \begin_layout Plain Layout
22067 \begin_inset Tabular
22068 <lyxtabular version="3" rows="1" columns="5">
22069 <features tabularvalignment="middle">
22070 <column alignment="center" valignment="top" width="0">
22071 <column alignment="center" valignment="top" width="0">
22072 <column alignment="center" valignment="top" width="0">
22073 <column alignment="center" valignment="top" width="0">
22074 <column alignment="center" valignment="top" width="0">
22076 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22079 \begin_layout Plain Layout
22085 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22088 \begin_layout Plain Layout
22094 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22097 \begin_layout Plain Layout
22103 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22106 \begin_layout Plain Layout
22112 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22115 \begin_layout Plain Layout
22132 \begin_inset space \hfill{}
22136 \begin_inset Float table
22141 \begin_layout Plain Layout
22142 \begin_inset Caption
22144 \begin_layout Plain Layout
22145 \begin_inset CommandInset label
22147 name "tab:This-is-subtable-b"
22151 This is subtable b.
22159 \begin_layout Plain Layout
22161 \begin_inset Tabular
22162 <lyxtabular version="3" rows="1" columns="5">
22163 <features tabularvalignment="middle">
22164 <column alignment="center" valignment="top" width="0">
22165 <column alignment="center" valignment="top" width="0">
22166 <column alignment="center" valignment="top" width="0">
22167 <column alignment="center" valignment="top" width="0">
22168 <column alignment="center" valignment="top" width="0">
22170 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22173 \begin_layout Plain Layout
22179 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22182 \begin_layout Plain Layout
22188 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22191 \begin_layout Plain Layout
22197 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22200 \begin_layout Plain Layout
22206 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22209 \begin_layout Plain Layout
22226 \begin_inset space \hfill{}
22237 \begin_layout Standard
22238 \begin_inset Float table
22243 \begin_layout Plain Layout
22244 \begin_inset Caption
22246 \begin_layout Plain Layout
22247 \begin_inset CommandInset label
22249 name "tab:Two-subtables-upon"
22253 Two subtables placed one above the other.
22254 (a) table with 4 cells, (b) table with 5 cells.
22262 \begin_layout Plain Layout
22264 \begin_inset Float table
22269 \begin_layout Plain Layout
22270 \begin_inset Caption
22272 \begin_layout Plain Layout
22281 \begin_layout Plain Layout
22283 \begin_inset Tabular
22284 <lyxtabular version="3" rows="1" columns="4">
22285 <features tabularvalignment="middle">
22286 <column alignment="center" valignment="top" width="0">
22287 <column alignment="center" valignment="top" width="0">
22288 <column alignment="center" valignment="top" width="0">
22289 <column alignment="center" valignment="top" width="0">
22291 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22294 \begin_layout Plain Layout
22300 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22303 \begin_layout Plain Layout
22309 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22312 \begin_layout Plain Layout
22318 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22321 \begin_layout Plain Layout
22340 \begin_layout Plain Layout
22342 \begin_inset Float table
22347 \begin_layout Plain Layout
22348 \begin_inset Caption
22350 \begin_layout Plain Layout
22359 \begin_layout Plain Layout
22361 \begin_inset Tabular
22362 <lyxtabular version="3" rows="1" columns="5">
22363 <features tabularvalignment="middle">
22364 <column alignment="center" valignment="top" width="0">
22365 <column alignment="center" valignment="top" width="0">
22366 <column alignment="center" valignment="top" width="0">
22367 <column alignment="center" valignment="top" width="0">
22368 <column alignment="center" valignment="top" width="0">
22370 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22373 \begin_layout Plain Layout
22379 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22382 \begin_layout Plain Layout
22388 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22391 \begin_layout Plain Layout
22397 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22400 \begin_layout Plain Layout
22406 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22409 \begin_layout Plain Layout
22433 \begin_layout Section
22434 Floats Side by Side
22435 \begin_inset Index idx
22438 \begin_layout Plain Layout
22439 Floats ! Side by side
22447 \begin_layout Standard
22448 To place floats side by side, as in Figures
22449 \begin_inset space ~
22453 \begin_inset CommandInset ref
22455 reference "fig:Float-left"
22460 \begin_inset CommandInset ref
22462 reference "fig:Float-right"
22471 In it two minipage boxes are inserted.
22475 \begin_layout Plain Layout
22476 Minipages are explained in section
22477 \begin_inset space ~
22481 \begin_inset CommandInset ref
22483 reference "sec:Minipages"
22492 The width is set to 45
22493 \begin_inset space \thinspace{}
22497 \begin_inset space \thinspace{}
22500 column% and the box alignment to
22505 The minipage boxes contain the image and the caption in the same way as
22506 they are in a float.
22507 The only difference is that the image unit
22510 \begin_inset space ~
22514 \begin_inset space ~
22519 is now calculated according to the width of the minipage boxes.
22522 \begin_layout Standard
22523 \begin_inset Float figure
22528 \begin_layout Plain Layout
22529 \begin_inset Box Frameless
22539 height_special "totalheight"
22542 \begin_layout Plain Layout
22544 \begin_inset Graphics
22545 filename clipart/mobius.eps
22548 scaleBeforeRotation
22555 \begin_layout Plain Layout
22556 \begin_inset Caption
22558 \begin_layout Plain Layout
22559 \begin_inset CommandInset label
22561 name "fig:Float-left"
22565 Float on the left side.
22576 \begin_inset space \hfill{}
22580 \begin_inset Box Frameless
22590 height_special "totalheight"
22593 \begin_layout Plain Layout
22595 \begin_inset Graphics
22596 filename clipart/platypus.eps
22599 scaleBeforeRotation
22606 \begin_layout Plain Layout
22607 \begin_inset Caption
22609 \begin_layout Plain Layout
22610 \begin_inset CommandInset label
22612 name "fig:Float-right"
22616 Float on the right side.
22629 \begin_layout Plain Layout
22638 \begin_layout Section
22640 \begin_inset Index idx
22643 \begin_layout Plain Layout
22644 Caption ! Formatting
22650 \begin_inset Index idx
22653 \begin_layout Plain Layout
22654 Floats ! Caption Formatting
22660 \begin_inset CommandInset label
22662 name "sec:Caption-Formatting"
22669 \begin_layout Standard
22674 environment is the default paragraph environment for
22679 On the LyX screen captions appear as label, e.
22680 \begin_inset space \thinspace{}
22684 \begin_inset space \space{}
22688 \begin_inset Quotes eld
22696 \begin_inset Quotes erd
22699 followed by the caption text.
22701 \begin_inset Quotes eld
22705 \begin_inset Quotes erd
22708 is the actual reference number.
22709 By default the label and the number are in the same font as the caption
22710 text and a colon follows the number to divide the label from the text.
22711 This caption format is not suitable for all document formats.
22715 \begin_layout Standard
22716 To change the default caption format, load the LaTeX-package
22721 \begin_inset Index idx
22724 \begin_layout Plain Layout
22725 LaTeX-packages ! caption
22730 in the document preamble with this line:
22733 \begin_layout Standard
22738 usepackage[format definition]{caption}
22741 \begin_layout Standard
22742 To have for example the label and the number in sans-serif bold font and
22743 the table captions always above the table as in this document, use the
22747 \begin_layout Standard
22752 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22755 \begin_layout Standard
22756 You can also define different caption formats for the different float types.
22757 In this case load the
22761 package without format specific options and define the different formats
22762 with the help of the command
22765 \begin_layout Standard
22770 captionsetup[float type]{format definition}
22773 \begin_layout Standard
22774 in the document preamble.
22775 For example the caption formats of Figure
22776 \begin_inset space ~
22780 \begin_inset CommandInset ref
22782 reference "fig:This-is-an-fig"
22787 \begin_inset space ~
22791 \begin_inset CommandInset ref
22793 reference "tab:This-is-an-tab"
22797 can be created using these commands in the document preamble:
22800 \begin_layout Standard
22805 usepackage[tableposition=top]{caption}
22808 \begin_inset Newline newline
22815 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22816 \begin_inset Newline newline
22820 \begin_inset Phantom HPhantom
22823 \begin_layout Plain Layout
22828 captionsetup[figure]{
22834 \begin_inset Newline newline
22839 captionsetup[table]{labelfont={bf,sf}}
22842 \begin_layout Standard
22843 \begin_inset Note Greyedout
22846 \begin_layout Plain Layout
22855 has no effect when a
22860 \begin_inset Index idx
22863 \begin_layout Plain Layout
22864 LaTeX-packages ! KOMA-Script
22869 document class is used.
22870 In this case the document class option
22872 captions=tableheading
22882 \begin_layout Standard
22883 For more information about the package
22887 we refer to its documentation
22888 \begin_inset CommandInset citation
22897 \begin_layout Standard
22898 To change the label name from e.
22899 \begin_inset space \thinspace{}
22903 \begin_inset space \space{}
22907 \begin_inset Quotes eld
22911 \begin_inset Quotes erd
22915 \begin_inset Quotes eld
22919 \begin_inset Quotes erd
22922 use this preamble command:
22925 \begin_layout Standard
22932 fnum@figure}{Image~
22937 \begin_layout Standard
22944 inserts the figure number and
22947 \begin_inset Quotes eld
22953 \begin_inset Quotes erd
22956 creates a protected space.
22959 \begin_layout Standard
22960 \begin_inset VSpace bigskip
22968 \begin_inset Index idx
22971 \begin_layout Plain Layout
22972 LaTeX-packages ! KOMA-Script
22979 article (KOMA-Script)
22987 letter (KOMA-Script)
22991 report (KOMA-Script)
22994 \begin_inset space \thinspace{}
22997 ), you can alternatively to the
23005 's built-in command
23012 For example, to have the caption label in bold, add this command to your
23016 \begin_layout Standard
23021 setkomafont{captionlabel}{
23026 \begin_layout Standard
23027 For more information about
23038 \begin_inset CommandInset citation
23047 \begin_layout Standard
23051 \begin_layout Plain Layout
23055 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
23062 \begin_inset Note Note
23065 \begin_layout Plain Layout
23066 The caption format is changed only for this example.
23074 \begin_layout Standard
23075 \begin_inset Float figure
23081 \begin_layout Plain Layout
23083 \begin_inset Graphics
23084 filename clipart/mobius.eps
23087 scaleBeforeRotation
23094 \begin_layout Plain Layout
23095 \begin_inset Caption
23097 \begin_layout Plain Layout
23098 \begin_inset CommandInset label
23100 name "fig:This-is-an-fig"
23104 This is an example figure caption that is longer than one line to show the
23105 different caption format.
23106 Here a self-defined caption format is used.
23119 \begin_layout Standard
23123 \begin_layout Plain Layout
23127 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
23136 \begin_layout Standard
23137 \begin_inset Float table
23143 \begin_layout Plain Layout
23144 \begin_inset Caption
23146 \begin_layout Plain Layout
23147 \begin_inset CommandInset label
23149 name "tab:This-is-an-tab"
23153 This is an example table caption that is longer than one line to show the
23154 different caption format.
23155 Here the standard caption format for tables in this document is used.
23163 \begin_layout Plain Layout
23165 \begin_inset Tabular
23166 <lyxtabular version="3" rows="1" columns="5">
23167 <features tabularvalignment="middle">
23168 <column alignment="center" valignment="top" width="0">
23169 <column alignment="center" valignment="top" width="0">
23170 <column alignment="center" valignment="top" width="0">
23171 <column alignment="center" valignment="top" width="0">
23172 <column alignment="center" valignment="top" width="0">
23174 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23177 \begin_layout Plain Layout
23183 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23186 \begin_layout Plain Layout
23192 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23195 \begin_layout Plain Layout
23201 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23204 \begin_layout Plain Layout
23210 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23213 \begin_layout Plain Layout
23232 \begin_layout Section
23234 \begin_inset Index idx
23237 \begin_layout Plain Layout
23238 Caption ! Placement
23244 \begin_inset Index idx
23247 \begin_layout Plain Layout
23248 Floats ! Caption Placement
23254 \begin_inset CommandInset label
23256 name "sec:Caption-Placement"
23263 \begin_layout Standard
23264 The common caption placement rule is:
23267 \begin_layout Description
23268 Figure: Caption is set below the figure
23271 \begin_layout Description
23272 Table: Caption is set above the table
23275 \begin_layout Standard
23276 Having the caption above the table is unfortunately not supported in LaTeX's
23278 That means if you are using the document classes
23294 there will be no space between the caption and the table.
23295 To insert the necessary space, add the following option to the load command
23296 of the LaTeX-package
23300 in your document preamble
23304 \begin_layout Plain Layout
23306 \begin_inset space ~
23310 \begin_inset CommandInset ref
23312 reference "sec:Caption-Formatting"
23316 for more information of the package
23328 \begin_layout Standard
23334 \begin_layout Standard
23340 \begin_inset Index idx
23343 \begin_layout Plain Layout
23344 LaTeX-packages ! KOMA-Script
23351 article (KOMA-Script)
23359 letter (KOMA-Script)
23363 report (KOMA-Script)
23366 \begin_inset space \thinspace{}
23369 ), you can alternatively to the
23373 package set the document class option
23375 captions=tableheading
23380 \begin_layout Standard
23381 \begin_inset VSpace bigskip
23384 It is also possible to set the caption beside a figure or table.
23385 To get this the LaTeX-package
23390 \begin_inset Index idx
23393 \begin_layout Plain Layout
23394 LaTeX-packages ! sidecap
23399 has to be loaded in the document preamble with the line
23402 \begin_layout Standard
23407 usepackage[option]{sidecap}
23410 \begin_layout Standard
23411 If you set no option, the caption is placed on the side of the outer page
23412 margin – to the right on odd pages, to the left on even pages.
23413 You can change the placement to inner margin with the option
23418 To force the placement always to the right or left, use the option
23429 \begin_layout Standard
23433 \begin_layout Plain Layout
23443 \begin_inset Note Note
23446 \begin_layout Plain Layout
23447 The following section will only be displayed when the LaTeX-package
23459 \begin_layout Standard
23460 To place in LyX the caption of a float on the side, it is necessary to add
23461 these commands to the document preamble:
23464 \begin_layout Standard
23465 \begin_inset Newpage pagebreak
23471 \begin_layout Standard
23473 \begin_inset CommandInset line
23484 \begin_layout Standard
23491 TabBesBeg}[1][1.0]{%
23492 \begin_inset Newline newline
23496 \begin_inset Phantom HPhantom
23499 \begin_layout Plain Layout
23500 \begin_inset space ~
23515 \begin_inset Newline newline
23519 \begin_inset Phantom HPhantom
23522 \begin_layout Plain Layout
23525 \begin_inset space ~
23540 \begin_inset Newline newline
23544 \begin_inset Phantom HPhantom
23547 \begin_layout Plain Layout
23550 \begin_inset space ~
23560 renewenvironment{table}[1]{
23562 begin{SCtable}[#1]##1}{
23567 \begin_layout Standard
23575 \begin_inset Newline newline
23579 \begin_inset Phantom HPhantom
23582 \begin_layout Plain Layout
23583 \begin_inset space ~
23598 \begin_inset Newline newline
23602 \begin_inset Phantom HPhantom
23605 \begin_layout Plain Layout
23606 \begin_inset space ~
23623 \begin_layout Standard
23630 FigBesBeg}[1][1.0]{%
23631 \begin_inset Newline newline
23635 \begin_inset Phantom HPhantom
23638 \begin_layout Plain Layout
23639 \begin_inset space ~
23654 \begin_inset Newline newline
23658 \begin_inset Phantom HPhantom
23661 \begin_layout Plain Layout
23662 \begin_inset space ~
23677 \begin_inset Newline newline
23681 \begin_inset Phantom HPhantom
23684 \begin_layout Plain Layout
23685 \begin_inset space ~
23695 renewenvironment{figure}[1]{
23697 begin{SCfigure}[#1]##1}{
23702 \begin_layout Standard
23710 \begin_inset Newline newline
23714 \begin_inset Phantom HPhantom
23717 \begin_layout Plain Layout
23718 \begin_inset space ~
23733 \begin_inset Newline newline
23737 \begin_inset Phantom HPhantom
23740 \begin_layout Plain Layout
23741 \begin_inset space ~
23758 \begin_layout Standard
23760 \begin_inset CommandInset line
23771 \begin_layout Standard
23772 The commands allow you to redefine the floats so that the caption is set
23774 For figure floats use the command
23777 \begin_layout Standard
23785 \begin_layout Standard
23786 in TeX-Code before the float.
23787 And insert the command
23790 \begin_layout Standard
23798 \begin_layout Standard
23799 in TeX-Code at the point where you want to get back to the original float
23803 \begin_layout Standard
23804 For table floats use the corresponding commands
23807 \begin_layout Standard
23821 \begin_layout Standard
23823 \begin_inset space ~
23827 \begin_inset CommandInset ref
23829 reference "fig:cap-beside-fig"
23834 \begin_inset space ~
23838 \begin_inset CommandInset ref
23840 reference "tab:cap-beside-tab"
23844 are examples where the caption is set beside.
23847 \begin_layout Standard
23848 You can see in the examples that the caption text appears at the top of
23849 the floats for table floats and at the bottom for figure floats.
23850 To change this, you can use the command
23853 \begin_layout Standard
23858 sidecaptionvpos{float type}{placement}
23861 \begin_layout Standard
23862 in the document preamble or in TeX-Code before the float.
23863 The float type is either
23871 , the placement can be
23872 \begin_inset Quotes eld
23880 \begin_inset Quotes erd
23884 \begin_inset Quotes eld
23892 \begin_inset Quotes erd
23896 \begin_inset Quotes eld
23904 \begin_inset Quotes erd
23908 To have for example the caption of figure floats vertically centered, use
23912 \begin_layout Standard
23917 sidecaptionvpos{figure}{c}
23920 \begin_layout Standard
23921 This was used for Figure
23922 \begin_inset space ~
23926 \begin_inset CommandInset ref
23928 reference "fig:cap-beside-fig-2"
23935 \begin_layout Standard
23936 \begin_inset VSpace medskip
23942 \begin_layout Standard
23943 The default caption width is the width of the image/table.
23944 For thin image/tables, like in Table
23945 \begin_inset space ~
23949 \begin_inset CommandInset ref
23951 reference "tab:cap-beside-tab"
23955 , this leads to captions that are too thin.
23956 You can increase the width by specifying a factor that will be multiplied
23957 with the image/table width to get the caption width.
23958 The caption width will automatically be recalculated in case it would protrude
23959 over the page or column margin due to the specified width.
23964 can either be given as optional argument for
23973 \begin_layout Standard
23981 \begin_layout Standard
23982 or in the definition of
23992 with another value.
23993 If you do the latter, your factor will be the default if
23999 is used without an argument.
24001 \begin_inset space ~
24005 \begin_inset CommandInset ref
24007 reference "tab:cap-beside-tab-wider"
24011 the factor 5 was used.
24014 \begin_layout Standard
24015 \begin_inset Note Greyedout
24018 \begin_layout Plain Layout
24023 For floats with captions set beside, you cannot use the float placement
24027 \begin_inset space ~
24032 because it is not supported by
24044 \begin_layout Standard
24045 \begin_inset VSpace medskip
24048 For more information about the package
24052 we refer to its documentation
24053 \begin_inset CommandInset citation
24062 \begin_layout Standard
24063 \begin_inset Note Greyedout
24066 \begin_layout Plain Layout
24076 \begin_inset Index idx
24079 \begin_layout Plain Layout
24080 LaTeX-packages ! hypcap
24085 , described in section
24086 \begin_inset space ~
24090 \begin_inset CommandInset ref
24092 reference "sub:Reference-Position"
24096 , has no effect on floats with the caption set beside.
24104 \begin_layout Standard
24108 \begin_layout Plain Layout
24120 \begin_layout Standard
24121 \begin_inset Float figure
24126 \begin_layout Plain Layout
24127 \begin_inset Graphics
24128 filename clipart/escher-lsd.eps
24130 scaleBeforeRotation
24137 \begin_layout Plain Layout
24138 \begin_inset Caption
24140 \begin_layout Plain Layout
24141 \begin_inset CommandInset label
24143 name "fig:cap-beside-fig"
24147 This is a caption beside a figure.
24160 \begin_layout Standard
24164 \begin_layout Plain Layout
24176 \begin_layout Standard
24177 \begin_inset Float table
24182 \begin_layout Plain Layout
24183 \begin_inset Caption
24185 \begin_layout Plain Layout
24186 \begin_inset CommandInset label
24188 name "tab:cap-beside-tab"
24192 This is a caption beside a table.
24200 \begin_layout Plain Layout
24201 \begin_inset Tabular
24202 <lyxtabular version="3" rows="4" columns="5">
24203 <features tabularvalignment="middle">
24204 <column alignment="center" valignment="top" width="0">
24205 <column alignment="center" valignment="top" width="0">
24206 <column alignment="center" valignment="top" width="0">
24207 <column alignment="center" valignment="top" width="0">
24208 <column alignment="center" valignment="top" width="0">
24210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24213 \begin_layout Plain Layout
24219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24222 \begin_layout Plain Layout
24228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24231 \begin_layout Plain Layout
24237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24240 \begin_layout Plain Layout
24246 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24249 \begin_layout Plain Layout
24257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24260 \begin_layout Plain Layout
24266 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24269 \begin_layout Plain Layout
24275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24278 \begin_layout Plain Layout
24284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24287 \begin_layout Plain Layout
24293 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24296 \begin_layout Plain Layout
24304 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24307 \begin_layout Plain Layout
24313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24316 \begin_layout Plain Layout
24322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24325 \begin_layout Plain Layout
24331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24334 \begin_layout Plain Layout
24340 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24343 \begin_layout Plain Layout
24351 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24354 \begin_layout Plain Layout
24360 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24363 \begin_layout Plain Layout
24369 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24372 \begin_layout Plain Layout
24378 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24381 \begin_layout Plain Layout
24387 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24390 \begin_layout Plain Layout
24409 \begin_layout Standard
24413 \begin_layout Plain Layout
24417 sidecaptionvpos{figure}{c}
24423 \begin_inset Float figure
24428 \begin_layout Plain Layout
24429 \begin_inset Graphics
24430 filename clipart/escher-lsd.eps
24432 scaleBeforeRotation
24439 \begin_layout Plain Layout
24440 \begin_inset Caption
24442 \begin_layout Plain Layout
24443 \begin_inset CommandInset label
24445 name "fig:cap-beside-fig-2"
24449 This is a vertically centered caption beside a figure.
24462 \begin_layout Standard
24466 \begin_layout Plain Layout
24478 \begin_layout Standard
24482 \begin_layout Plain Layout
24494 \begin_layout Standard
24495 \begin_inset Float table
24500 \begin_layout Plain Layout
24501 \begin_inset Caption
24503 \begin_layout Plain Layout
24504 \begin_inset CommandInset label
24506 name "tab:cap-beside-tab-wider"
24510 This is a caption is wider than the one in Table
24511 \begin_inset space ~
24515 \begin_inset CommandInset ref
24517 reference "tab:cap-beside-tab"
24529 \begin_layout Plain Layout
24530 \begin_inset Tabular
24531 <lyxtabular version="3" rows="4" columns="5">
24532 <features tabularvalignment="middle">
24533 <column alignment="center" valignment="top" width="0">
24534 <column alignment="center" valignment="top" width="0">
24535 <column alignment="center" valignment="top" width="0">
24536 <column alignment="center" valignment="top" width="0">
24537 <column alignment="center" valignment="top" width="0">
24539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24542 \begin_layout Plain Layout
24548 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24551 \begin_layout Plain Layout
24557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24560 \begin_layout Plain Layout
24566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24569 \begin_layout Plain Layout
24575 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24578 \begin_layout Plain Layout
24586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24589 \begin_layout Plain Layout
24595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24598 \begin_layout Plain Layout
24604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24607 \begin_layout Plain Layout
24613 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24616 \begin_layout Plain Layout
24622 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24625 \begin_layout Plain Layout
24633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24636 \begin_layout Plain Layout
24642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24645 \begin_layout Plain Layout
24651 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24654 \begin_layout Plain Layout
24660 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24663 \begin_layout Plain Layout
24669 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24672 \begin_layout Plain Layout
24680 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24683 \begin_layout Plain Layout
24689 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24692 \begin_layout Plain Layout
24698 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24701 \begin_layout Plain Layout
24707 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24710 \begin_layout Plain Layout
24716 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24719 \begin_layout Plain Layout
24738 \begin_layout Standard
24742 \begin_layout Plain Layout
24754 \begin_layout Standard
24758 \begin_layout Plain Layout
24768 \begin_inset Note Note
24771 \begin_layout Plain Layout
24772 The following will be displayed when the LaTeX-package
24784 \begin_layout Standard
24785 You need to install the LaTeX-package
24789 to see the following part of this section in the output.
24792 \begin_layout Standard
24796 \begin_layout Plain Layout
24808 \begin_layout Section
24810 \begin_inset Index idx
24813 \begin_layout Plain Layout
24814 Floats ! Float Lists
24822 \begin_layout Standard
24823 Similar to the table of contents where the sections of the document are
24824 listed, there are listings for all float types, like the figures of the
24826 You can insert them via the
24828 Insert\SpecialChar \menuseparator
24830 \begin_inset space ~
24834 \begin_inset space ~
24842 \begin_layout Standard
24843 The list entries are the float captions or its short title, the float number,
24844 and the page number where they appear in the document.
24847 \begin_layout Standard
24848 You can find the list of figures and tables at the end of this document.
24851 \begin_layout Chapter
24855 \begin_layout Section
24857 \begin_inset Index idx
24860 \begin_layout Plain Layout
24869 \begin_layout Standard
24870 Notes are inserted with the toolbar button
24871 \begin_inset Graphics
24872 filename ../images/note-insert.png
24874 scaleBeforeRotation
24880 Insert\SpecialChar \menuseparator
24884 There are three types of notes:
24887 \begin_layout Description
24889 \begin_inset space ~
24892 Note This note type is for internal notes that won't appear in the output.
24893 Its note-box looks like this:
24894 \begin_inset Newline newline
24898 \begin_inset Newline newline
24902 \begin_inset Graphics
24903 filename clipart/LyXNoteImageQt4.png
24906 scaleBeforeRotation
24911 \begin_inset Note Note
24914 \begin_layout Plain Layout
24915 This is text in a note box that doesn't appear in the output.
24923 \begin_layout Description
24924 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
24925 ent, when you export the document to LaTeX via the menu
24927 File\SpecialChar \menuseparator
24928 Export\SpecialChar \menuseparator
24929 LaTeX (pdflatex) / (plain)
24932 Its note-box looks like this:
24933 \begin_inset Newline newline
24937 \begin_inset Newline newline
24941 \begin_inset Graphics
24942 filename clipart/CommentNoteImageQt4.png
24945 scaleBeforeRotation
24950 \begin_inset Note Comment
24953 \begin_layout Plain Layout
24954 This is text in a note box that only appears as comment in LaTeX-files.
24962 \begin_layout Description
24964 \begin_inset space ~
24967 Out This note will appear in the output as grey text.
24968 Its note-box looks like this:
24969 \begin_inset Newline newline
24973 \begin_inset Newline newline
24977 \begin_inset Graphics
24978 filename clipart/GreyedOutNoteImageQt4.png
24981 scaleBeforeRotation
24986 \begin_inset Newline newline
24993 \begin_layout Plain Layout
24997 renewenvironment{lyxgreyedout}
25000 \begin_layout Plain Layout
25004 textcolor[gray]{0.8}
25014 \begin_inset Note Greyedout
25017 \begin_layout Plain Layout
25022 \begin_layout Plain Layout
25023 This is an example footnote within a greyed out note.
25028 of a comment that appears in the output as grey text.
25037 \begin_layout Plain Layout
25041 renewenvironment{lyxgreyedout}
25044 \begin_layout Plain Layout
25058 \begin_inset Note Note
25061 \begin_layout Plain Layout
25062 The greyed out note is here redefined to show it with the original LyX definitio
25063 n because greyed out notes are redefined in the preamble of this document,
25064 as described below, to have blue text.
25070 \begin_inset Newline newline
25074 \begin_inset Newline newline
25077 As you can see in the example, the first line of greyed out notes is a bit
25078 indented and greyed out notes can have footnotes.
25081 \begin_layout Standard
25082 \begin_inset VSpace bigskip
25085 When you use the toolbar button
25086 \begin_inset Graphics
25087 filename ../images/note-insert.png
25089 scaleBeforeRotation
25096 \begin_inset space ~
25102 You can switch between the five note types by right-clicking on the note-box.
25107 If you want to turn existing text into a note, mark it and click on the
25121 To change a note to text, press the backspace key when the cursor is in
25122 the first position of a note, or press the delete key when the cursor is
25123 in the very last position of the note, respectively.
25126 \begin_layout Standard
25127 \begin_inset VSpace bigskip
25130 You can change the text color of the greyed out notes in the menu
25132 Document\SpecialChar \menuseparator
25133 Settings\SpecialChar \menuseparator
25139 \begin_layout Section
25141 \begin_inset CommandInset label
25143 name "sec:Footnotes"
25148 \begin_inset Index idx
25151 \begin_layout Plain Layout
25158 \begin_inset Index idx
25161 \begin_layout Plain Layout
25170 \begin_layout Standard
25171 Footnotes can be inserted using the toolbar button
25172 \begin_inset Graphics
25173 filename ../images/footnote-insert.png
25175 scaleBeforeRotation
25181 Insert\SpecialChar \menuseparator
25193 then the following footnote-box:
25194 \begin_inset Graphics
25195 filename clipart/footnoteQt4.png
25197 scaleBeforeRotation
25205 where you can enter the footnote text.
25206 If you want to turn existing text into a footnote, mark it and click on
25228 to text, press the Backspace key when the cursor is in the first position
25237 , or press the Delete key when the cursor is in the very last position of
25249 \begin_layout Standard
25250 Here is an example footnote:
25258 \begin_layout Plain Layout
25259 \begin_inset CommandInset label
25261 name "foot:This-is-an"
25265 This is an example footnote.
25278 \begin_layout Plain Layout
25282 newcounter{MyRepeatFoot}
25285 \begin_layout Plain Layout
25289 setcounter{MyRepeatFoot}{
25299 \begin_layout Standard
25300 The footnote will appear in the output as a superscript number at the text
25301 position where the footnote box is placed.
25302 The footnote text is placed at the bottom of the current page.
25303 The footnote number is calculated by LaTeX; the numbers are consecutive.
25304 It depends on your document-class, whether the footnote number is reset
25308 \begin_layout Standard
25309 Footnotes can be referenced like floats: Insert a label into the footnote
25310 and cross-reference this label in the text as described in section
25311 \begin_inset space ~
25315 \begin_inset CommandInset ref
25317 reference "sec:Referencing-Floats"
25322 \begin_inset Newline newline
25325 This is a cross-reference of Footnote
25326 \begin_inset space ~
25330 \begin_inset CommandInset ref
25332 reference "foot:This-is-an"
25339 \begin_layout Standard
25340 \begin_inset VSpace defskip
25343 Footnotes in tables are not printed by LaTeX due to technical reasons.
25344 However there exists another method to print them: Instead of the footnote
25351 is inserted as TeX-code.
25352 The text of the footnote is entered as an argument of the TeX-code command
25360 \begin_inset Newline newline
25363 This was done for the following table with the command
25366 \begin_layout Standard
25373 Printed table footnote.
25378 \begin_layout Standard
25379 \begin_inset Tabular
25380 <lyxtabular version="3" rows="2" columns="1">
25381 <features tabularvalignment="middle">
25382 <column alignment="center" valignment="top" width="0">
25384 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25387 \begin_layout Plain Layout
25388 This an example text.
25392 \begin_layout Plain Layout
25393 This footnote will not be printed!
25405 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25408 \begin_layout Plain Layout
25409 This an example text.
25413 \begin_layout Plain Layout
25436 \begin_layout Plain Layout
25445 Printed table footnote.
25449 \begin_layout Plain Layout
25459 \begin_layout Standard
25460 Footnotes in longtables are described in section
25461 \begin_inset space ~
25465 \begin_inset CommandInset ref
25467 reference "sub:Footnotes-in-Longtables"
25474 \begin_layout Standard
25475 Footnotes in minipage boxes are printed, but inside the box and with a different
25476 numbering because a minipage box is like a page inside a page.
25477 (For more about minipages, see section
25478 \begin_inset space ~
25482 \begin_inset CommandInset ref
25484 reference "sec:Minipages"
25488 .) To get a footnote in the minipage that is output at the bottom of the
25489 page like normal footnotes, also use the method of
25504 \begin_layout Standard
25505 \begin_inset Box Frameless
25515 height_special "totalheight"
25518 \begin_layout Plain Layout
25519 This an example text in a minipage.
25523 \begin_layout Plain Layout
25524 Footnote in the minipage.
25532 \begin_layout Plain Layout
25533 This an example text in a minipage.
25537 \begin_layout Plain Layout
25554 \begin_layout Standard
25558 \begin_layout Plain Layout
25567 Footnote outside the minipage.
25571 \begin_layout Plain Layout
25581 \begin_layout Standard
25582 \begin_inset VSpace defskip
25588 \begin_layout Standard
25589 To refer to the same footnote several times without printing the footnote
25590 text every time, use the command
25594 footnotemark[number]
25597 \begin_inset Newline newline
25600 As you do not know the number of the repeating footnote while you are writing
25601 the text, you have to store its number.
25602 For the following footnote mark example, these commands were inserted in
25603 TeX-code after Footnote
25604 \begin_inset space ~
25608 \begin_inset CommandInset ref
25610 reference "foot:This-is-an"
25614 to store the footnote number:
25617 \begin_layout Standard
25622 newcounter{MyRepeatFoot}
25623 \begin_inset Newline newline
25628 setcounter{MyRepeatFoot}{
25633 \begin_layout Standard
25634 The footnote mark was then created with this command:
25637 \begin_layout Standard
25647 \begin_layout Standard
25648 Here is a repeated footnote:
25656 \begin_layout Plain Layout
25670 \begin_layout Standard
25671 If you want to repeat the previous footnote, you can omit the storage of
25672 the footnote number and just use this command instead:
25675 \begin_layout Standard
25685 \begin_layout Standard
25686 Here is another repeated footnote:
25694 \begin_layout Plain Layout
25708 \begin_layout Subsection
25710 \begin_inset CommandInset label
25712 name "sub:Footnote-Numbering"
25717 \begin_inset Index idx
25720 \begin_layout Plain Layout
25721 Footnotes ! Numbering
25729 \begin_layout Standard
25730 To reset the footnote number back to 1 after each section
25732 , add this command to your document preamble:
25735 \begin_layout Standard
25740 @addtoreset{footnote}{section}
25743 \begin_layout Standard
25744 \begin_inset VSpace bigskip
25747 The following preamble command changes the footnote numbering style to small
25751 \begin_layout Standard
25763 \begin_layout Standard
25767 \begin_layout Plain Layout
25780 This is a footnote with roman numbering:
25784 \begin_layout Plain Layout
25785 This is an example footnote with roman numbering.
25793 \begin_layout Standard
25794 To change the numbering style to capital roman numerals replace in the command
25809 \begin_inset Quotes eld
25813 \begin_inset Quotes erd
25816 footnotes with capital or small Latin letters use
25830 \begin_inset Quotes eld
25834 \begin_inset Quotes erd
25837 footnotes with symbols use
25846 \begin_layout Standard
25847 \begin_inset Note Greyedout
25850 \begin_layout Plain Layout
25855 You can only number 26 footnotes with Latin letters, because this numbering
25856 is limited to single letters.
25862 \begin_inset Newline newline
25866 \begin_inset Note Greyedout
25869 \begin_layout Plain Layout
25874 You can only number 9 footnotes with symbols.
25882 \begin_layout Standard
25883 To return to the default numbering style after you have changed to another
25896 in the command above.
25900 \begin_layout Plain Layout
25916 \begin_layout Standard
25917 \begin_inset VSpace bigskip
25923 \begin_layout Standard
25924 If you want to have footnotes numbered in the scheme
25925 \begin_inset Quotes eld
25929 \begin_inset Quotes erd
25932 , add the following command to your document preamble:
25935 \begin_layout Standard
25940 numberwithin{footnote}{chapter}
25943 \begin_layout Standard
25944 To be able to use the command
25953 \begin_inset space ~
25958 in the document settings the option
25961 \begin_inset space ~
25965 \begin_inset space ~
25969 \begin_inset space ~
25977 \begin_layout Standard
25981 \begin_layout Plain Layout
25985 numberwithin{footnote}{chapter}
25990 This is another example footnote:
25996 \begin_layout Plain Layout
25997 This is a footnote numbered in the scheme
25998 \begin_inset Quotes eld
26002 \begin_inset Quotes erd
26016 \begin_layout Plain Layout
26032 \begin_layout Standard
26033 \begin_inset Note Greyedout
26036 \begin_layout Plain Layout
26047 always prints out the footnote number as arabic number; previous redefinitions
26048 to get non-arabic numbers are overwritten.
26056 \begin_layout Standard
26057 So to get for example the scheme
26058 \begin_inset Quotes eld
26064 \begin_inset Quotes erd
26067 , use this command instead of
26076 \begin_layout Standard
26090 \begin_layout Subsection
26092 \begin_inset Index idx
26095 \begin_layout Plain Layout
26096 Footnotes ! Placement
26104 \begin_layout Standard
26105 If you have several footnotes in one page, they appear without vertical
26106 space between them at the bottom of the page.
26107 To make them more readable you can e.
26108 \begin_inset space \thinspace{}
26112 \begin_inset space \space{}
26116 \begin_inset space \thinspace{}
26119 mm space with the following preamble command:
26122 \begin_layout Standard
26132 \begin_inset Newline newline
26146 \begin_layout Standard
26147 \begin_inset VSpace bigskip
26150 In a two-column document the footnotes appear at the bottom of every column,
26152 \begin_inset space ~
26156 \begin_inset CommandInset ref
26158 reference "fig:Standard-footnote-placement"
26163 If the footnotes should only appear at the bottom of the right column,
26165 \begin_inset space ~
26169 \begin_inset CommandInset ref
26171 reference "fig:Footnote-placement-in"
26175 , use the LaTeX-package
26180 \begin_inset Index idx
26183 \begin_layout Plain Layout
26184 LaTeX-packages ! ftnright
26189 with this command in the document preamble:
26192 \begin_layout Standard
26197 usepackage{ftnright}
26200 \begin_layout Standard
26201 \begin_inset Float figure
26207 \begin_layout Plain Layout
26211 \begin_layout Plain Layout
26221 \begin_inset Graphics
26222 filename clipart/without_fntright.pdf
26224 scaleBeforeRotation
26232 \begin_layout Plain Layout
26242 \begin_layout Plain Layout
26243 \begin_inset Caption
26245 \begin_layout Plain Layout
26246 \begin_inset CommandInset label
26248 name "fig:Standard-footnote-placement"
26252 Standard footnote placement in two-column documents.
26265 \begin_layout Standard
26266 \begin_inset Float figure
26272 \begin_layout Plain Layout
26276 \begin_layout Plain Layout
26286 \begin_inset Graphics
26287 filename clipart/with_fntright.pdf
26289 scaleBeforeRotation
26297 \begin_layout Plain Layout
26307 \begin_layout Plain Layout
26308 \begin_inset Caption
26310 \begin_layout Plain Layout
26311 \begin_inset CommandInset label
26313 name "fig:Footnote-placement-in"
26317 Footnote placement in two-column documents when the LaTeX-package
26334 \begin_layout Standard
26335 \begin_inset VSpace bigskip
26338 In some scientific literature it is usual to collect the footnotes and print
26339 them in a separate paragraph at the end of a section, as in Figure
26340 \begin_inset space ~
26344 \begin_inset CommandInset ref
26346 reference "fig:Endnotes"
26351 They are then called
26352 \begin_inset Quotes eld
26356 \begin_inset Quotes erd
26360 \begin_inset Index idx
26363 \begin_layout Plain Layout
26369 To use endnotes instead of footnotes in your document, load in the menu
26372 Document\SpecialChar \menuseparator
26373 Settings\SpecialChar \menuseparator
26379 \begin_inset space ~
26383 \begin_inset space ~
26389 To insert the collected footnotes, insert the command
26392 \begin_layout Standard
26400 \begin_layout Standard
26401 in TeX-Code at the end of a section or chapter.
26404 \begin_layout Standard
26405 \begin_inset Float figure
26410 \begin_layout Plain Layout
26415 \begin_layout Plain Layout
26425 \begin_inset Graphics
26426 filename clipart/endnotes.pdf
26427 scaleBeforeRotation
26435 \begin_layout Plain Layout
26445 \begin_layout Plain Layout
26446 \begin_inset Caption
26448 \begin_layout Plain Layout
26449 \begin_inset CommandInset label
26451 name "fig:Endnotes"
26455 Endnotes – footnotes are printed in a separate paragraph at the end of sections
26469 \begin_layout Standard
26470 \begin_inset VSpace medskip
26473 The paragraph heading for the endnotes isn't automatically translated into
26474 the document language, this must be done manually.
26475 The following preamble command translates the default English
26476 \begin_inset Quotes eld
26480 \begin_inset Quotes erd
26484 \begin_inset Quotes eld
26488 \begin_inset Quotes erd
26494 \begin_layout Standard
26501 notesname}{Anmerkungen}
26504 \begin_layout Standard
26505 \begin_inset VSpace medskip
26508 The numbering of endnotes can be changed like the footnote numbering as
26509 described in section
26510 \begin_inset space ~
26514 \begin_inset CommandInset ref
26516 reference "sub:Footnote-Numbering"
26520 ; just replace the command
26533 To reset the endnote number use the command
26539 as described in section
26540 \begin_inset space ~
26544 \begin_inset CommandInset ref
26546 reference "sub:Footnote-Numbering"
26550 and replace the command parameter
26561 \begin_layout Standard
26562 For endnotes there is the command
26566 endnotemark[number]
26568 similar to the command
26574 , that is described in section
26575 \begin_inset space ~
26579 \begin_inset CommandInset ref
26581 reference "sec:Footnotes"
26588 \begin_layout Standard
26589 \begin_inset VSpace bigskip
26592 Footnotes can also be placed in the page margin and the footnote text alignment
26593 can be changed, see the LaTeX-package
26598 \begin_inset Index idx
26601 \begin_layout Plain Layout
26602 LaTeX-packages ! footmisc
26608 \begin_inset CommandInset citation
26614 for more information about this.
26617 \begin_layout Standard
26618 For various further footnote formatting issues have a look at LaTeX-books,
26620 \begin_inset CommandInset citation
26622 key "latexcompanion,latexguide,latexbook"
26632 \begin_inset Index idx
26635 \begin_layout Plain Layout
26636 LaTeX-packages ! KOMA-Script
26641 document class, you can adjust all footnote settings using class-specific
26643 \begin_inset CommandInset citation
26652 \begin_layout Section
26654 \begin_inset Index idx
26657 \begin_layout Plain Layout
26658 Notes ! Margin Notes
26666 \begin_layout Standard
26667 Margin notes look and behave in LyX like footnotes.
26668 They are inserted via the menu
26670 Insert\SpecialChar \menuseparator
26672 \begin_inset space ~
26677 or the toolbar button
26678 \begin_inset Graphics
26679 filename ../images/marginalnote-insert.png
26681 scaleBeforeRotation
26696 \begin_inset Quotes eld
26700 \begin_inset Quotes erd
26703 appears where you can enter the text of the margin note.
26706 \begin_layout Standard
26707 At the side is an example margin note.
26712 \begin_inset Marginal
26715 \begin_layout Plain Layout
26716 This is a margin note.
26724 \begin_layout Standard
26725 Margin notes appear at the right side in single-sided documents.
26726 In double-sided documents they appear in the outer margin – left on even
26727 pages, right on odd pages.
26728 The text of margin notes is aligned opposite to the outer margin – right-aligne
26729 d when the note appears in the left margin.
26730 The first line of the margin note is placed at the position of the text
26731 line where it is inserted in the document.
26734 \begin_layout Standard
26735 \begin_inset VSpace bigskip
26738 To place the margin note in the inner margin, add the command
26741 \begin_layout Standard
26749 \begin_layout Standard
26750 in TeX-Code before a margin note.
26751 The new placement is valid for all subsequent margin notes.
26756 \begin_layout Plain Layout
26766 \begin_inset Marginal
26769 \begin_layout Plain Layout
26770 This is a margin note in the inner margin.
26778 \begin_inset Newline newline
26784 \begin_inset Note Greyedout
26787 \begin_layout Plain Layout
26792 There is often not enough space in the inner margin so that the notes are
26793 not correctly displayed in the output.
26801 \begin_layout Standard
26802 To return to the default placement insert the command
26805 \begin_layout Standard
26813 \begin_layout Standard
26818 \begin_layout Plain Layout
26828 \begin_inset Note Greyedout
26831 \begin_layout Plain Layout
26836 The command is ignored when it is within a paragraph where also the command
26851 \begin_layout Standard
26852 \begin_inset VSpace bigskip
26859 \begin_inset Marginal
26862 \begin_layout Plain Layout
26863 AVeryLongMarginParWord that isn't hyphenated.
26871 Similar to the case described in section
26872 \begin_inset space ~
26876 \begin_inset CommandInset ref
26878 reference "sub:Multiple-Lines-in"
26882 , long words cannot be hyphenated when they are the first word in a margin
26884 To avoid this, insert 0
26885 \begin_inset space \thinspace{}
26888 pt horizontal space before the word
26893 \begin_inset Marginal
26896 \begin_layout Plain Layout
26897 \begin_inset space \hspace*{}
26901 AVeryLongMarginParWord that is hyphenated.
26909 \begin_layout Standard
26910 \begin_inset VSpace bigskip
26916 \begin_layout Standard
26917 \begin_inset Note Greyedout
26920 \begin_layout Plain Layout
26925 Margin notes can normally not be used inside tables, floats, and footnotes.
26933 \begin_layout Standard
26934 \begin_inset VSpace bigskip
26940 \begin_layout Standard
26944 \begin_layout Plain Layout
26954 \begin_inset Note Note
26957 \begin_layout Plain Layout
26958 The following section will only be displayed when the LaTeX-package
26970 \begin_layout Standard
26971 This restriction can be evaded by using the LaTeX-package
26976 \begin_inset Index idx
26979 \begin_layout Plain Layout
26980 LaTeX-packages ! marginnote
26986 By adding these two lines to your document preamble, the command used by
26987 LyX for margin notes is redefined to use the command provided by the
26994 \begin_layout Standard
26999 usepackage{marginnote}
27000 \begin_inset Newline newline
27012 \begin_layout Standard
27013 This is also used in this document because
27017 has another useful feature: You can set a vertical offset for the note.
27018 This is often needed when too many margin notes are too close together
27019 or for a better page layout.
27020 The offset is set in LyX as TeX-Code directly after the margin note in
27024 \begin_layout Standard
27030 \begin_layout Standard
27031 where the offset is a length with one of the units listed in Table
27032 \begin_inset space ~
27036 \begin_inset CommandInset ref
27038 reference "tab:Units"
27043 A negative value shifts the note up, a positive value shifts it down.
27047 For example the margin note beside this text line is shifted up 1.5
27048 \begin_inset space \thinspace{}
27051 cm with the TeX-Code-command
27052 \begin_inset Quotes eld
27062 \begin_inset Quotes erd
27066 \begin_inset Marginal
27069 \begin_layout Plain Layout
27070 This margin note is shifted up 1.5
27071 \begin_inset space \thinspace{}
27074 cm from its original position.
27086 \begin_layout Plain Layout
27096 \begin_layout Standard
27097 \begin_inset VSpace medskip
27104 you can also change the alignment of the text in the margin note.
27105 For example the commands
27108 \begin_layout Standard
27115 raggedleftmarginnote}{
27118 \begin_inset Newline newline
27125 raggedrightmarginnote}{
27130 \begin_layout Standard
27131 set the alignment to centered.
27136 raggedleftmarginnote
27138 denotes margin notes that appear at the left side.
27145 \begin_layout Plain Layout
27151 raggedleftmarginnote}{
27156 \begin_layout Plain Layout
27162 raggedrightmarginnote}{
27170 \begin_inset Marginal
27173 \begin_layout Plain Layout
27174 The text of this margin note is centered.
27185 \begin_layout Standard
27192 raggedleftmarginnote}{
27195 \begin_inset Newline newline
27202 raggedrightmarginnote}{
27211 \begin_layout Plain Layout
27217 raggedleftmarginnote}{
27222 \begin_layout Plain Layout
27228 raggedrightmarginnote}{
27238 \begin_layout Standard
27239 \begin_inset VSpace medskip
27242 For the other features of
27246 refer to its documentation
27247 \begin_inset CommandInset citation
27256 \begin_layout Standard
27257 \begin_inset VSpace bigskip
27260 You can adjust the layout of margin notes by changing its definition.
27261 To create for example a header for all margin notes with the underlined,
27262 sans-serif, and bold header text
27263 \begin_inset Quotes eld
27275 \begin_inset Quotes erd
27278 , add this to your document preamble:
27281 \begin_layout Standard
27291 \begin_inset Newline newline
27301 \begin_inset Newline newline
27305 \begin_inset Phantom HPhantom
27308 \begin_layout Plain Layout
27311 \begin_inset space ~
27327 underbar{Attention!}}}%
27328 \begin_inset Newline newline
27332 \begin_inset Phantom HPhantom
27335 \begin_layout Plain Layout
27338 \begin_inset space ~
27355 \begin_layout Standard
27362 \begin_layout Plain Layout
27373 \begin_layout Plain Layout
27384 \begin_layout Plain Layout
27392 underbar{Attention!}}}%
27395 \begin_layout Plain Layout
27409 \begin_inset Marginal
27412 \begin_layout Plain Layout
27413 This is a margin note with a defined heading.
27425 \begin_layout Plain Layout
27439 \begin_layout Plain Layout
27456 \begin_inset Note Note
27459 \begin_layout Plain Layout
27460 The margin note format is changed only for this example.
27468 \begin_layout Standard
27472 \begin_layout Plain Layout
27482 \begin_inset Note Note
27485 \begin_layout Plain Layout
27486 The following will be displayed when the LaTeX-package
27498 \begin_layout Standard
27499 You need to install the LaTeX-package
27503 to see the following part of this section in the output.
27506 \begin_layout Standard
27510 \begin_layout Plain Layout
27522 \begin_layout Chapter
27526 \begin_layout Section
27528 \begin_inset Index idx
27531 \begin_layout Plain Layout
27532 Boxes ! Introduction
27540 \begin_layout Standard
27541 Boxes are used to format a block of text.
27542 Boxes can be used to write documents with multiple languages, see section
27543 \begin_inset space ~
27547 \begin_inset CommandInset ref
27549 reference "sec:Minipages"
27553 , to frame texts, see section
27554 \begin_inset space ~
27558 \begin_inset CommandInset ref
27560 reference "sec:Decoration"
27564 , to prevent words from being hyphenated, see section
27565 \begin_inset space ~
27569 \begin_inset CommandInset ref
27571 reference "sec:Prevent-Hyphenation"
27575 , to align text, see section
27576 \begin_inset space ~
27580 \begin_inset CommandInset ref
27582 reference "sub:Vertical-Alignment"
27586 , or to set the background color of texts, see section
27587 \begin_inset space ~
27591 \begin_inset CommandInset ref
27593 reference "sec:Colored-Boxes"
27600 \begin_layout Standard
27601 Boxes can be inserted with the menu
27603 Insert\SpecialChar \menuseparator
27606 or the toolbar button
27607 \begin_inset Graphics
27608 filename ../images/box-insert.png
27610 scaleBeforeRotation
27615 A grey box with the label
27620 \begin_inset Graphics
27621 filename clipart/BoxInsetDefaultQt4.png
27623 scaleBeforeRotation
27628 The box type can be specified by right-clicking on the box and selecting
27634 The box dialog offers the
27637 \begin_inset space ~
27659 is the default for new boxes and is explained in section
27660 \begin_inset space ~
27664 \begin_inset CommandInset ref
27666 reference "sec:Minipages"
27674 is described in section
27675 \begin_inset space ~
27679 \begin_inset CommandInset ref
27681 reference "sec:Parboxes"
27690 \begin_inset CommandInset ref
27692 reference "sec:Prevent-Hyphenation"
27699 \begin_layout Standard
27700 Boxes are not numbered and can therefore not be referenced like floats or
27704 \begin_layout Standard
27705 \begin_inset Note Greyedout
27708 \begin_layout Plain Layout
27713 Boxes must not be the item in an
27729 \begin_layout Standard
27730 \begin_inset Note Greyedout
27733 \begin_layout Plain Layout
27738 For an unknown reason you can only set the
27741 \begin_inset space ~
27750 when you use a framed box.
27754 \begin_inset space ~
27759 type and without frames are explained in section
27760 \begin_inset space ~
27764 \begin_inset CommandInset ref
27766 reference "sec:Prevent-Hyphenation"
27778 \begin_layout Section
27780 \begin_inset CommandInset label
27782 name "sec:Box-Dialog"
27787 \begin_inset Index idx
27790 \begin_layout Plain Layout
27799 \begin_layout Subsection
27801 \begin_inset Index idx
27804 \begin_layout Plain Layout
27813 \begin_layout Standard
27814 In the box dialog you can adjust the box geometry in the fields
27823 The available units for the geometry are explained in Table
27824 \begin_inset space ~
27828 \begin_inset CommandInset ref
27830 reference "tab:Units"
27839 offers the following additional sizes:
27842 \begin_layout Description
27843 Depth This is the plain text
27844 \begin_inset Quotes eld
27848 \begin_inset Quotes erd
27852 It ignores the total depth when there are multiple text lines in the box:
27853 \begin_inset Newline newline
27857 \begin_inset Newline newline
27861 \begin_inset Newline newline
27865 \begin_inset Box Boxed
27875 height_special "depth"
27878 \begin_layout Plain Layout
27880 Box height set to 1
27881 \begin_inset space \thinspace{}
27890 \begin_inset Newline newline
27894 \begin_inset Newline newline
27900 \begin_layout Description
27901 Height This is the height of the text that is inside the box.
27903 \begin_inset space \thinspace{}
27907 \begin_inset space \space{}
27910 2 for this size will set the box height to 2
27911 \begin_inset space ~
27914 times the text height:
27915 \begin_inset Box Boxed
27925 height_special "height"
27928 \begin_layout Plain Layout
27930 Box height set to 2
27931 \begin_inset space \thinspace{}
27942 \begin_layout Description
27944 \begin_inset space ~
27947 Height This is the Height
27948 \begin_inset space \thinspace{}
27952 \begin_inset space \thinspace{}
27956 \begin_inset Box Boxed
27966 height_special "totalheight"
27969 \begin_layout Plain Layout
27971 Box height set to 1
27972 \begin_inset space \thinspace{}
27976 \begin_inset space ~
27987 \begin_layout Description
27988 Width This sets the width of the box as height:
27989 \begin_inset Box Boxed
27999 height_special "width"
28002 \begin_layout Plain Layout
28004 Box height set to 1
28005 \begin_inset space \thinspace{}
28016 \begin_layout Subsection
28018 \begin_inset Index idx
28021 \begin_layout Plain Layout
28030 \begin_layout Standard
28031 When you have chosen an
28034 \begin_inset space ~
28039 , the vertical box alignment can be:
28042 \begin_layout Description
28043 Top This is an example text line.
28045 \begin_inset Box Boxed
28055 height_special "totalheight"
28058 \begin_layout Plain Layout
28060 This box is top-aligned.
28065 This is an example text line.
28068 \begin_layout Description
28069 Middle This is an example text line.
28071 \begin_inset Box Boxed
28081 height_special "totalheight"
28084 \begin_layout Plain Layout
28086 This box is middle-aligned.
28091 This is an example text line.
28094 \begin_layout Description
28095 Bottom This is an example text line.
28097 \begin_inset Box Boxed
28107 height_special "totalheight"
28110 \begin_layout Plain Layout
28112 This box is bottom-aligned.
28117 This is an example text line.
28120 \begin_layout Standard
28121 \begin_inset Note Greyedout
28124 \begin_layout Plain Layout
28129 The vertical box alignment can be lost in the output when you have two
28130 boxes in a line and one has e.
28131 \begin_inset space \thinspace{}
28135 \begin_inset space \space{}
28138 a shadow and the other one not.
28146 \begin_layout Standard
28147 The horizontal box alignment can be set via LyX's paragraph dialog when
28148 you set the box into its own paragraph.
28151 \begin_layout Standard
28152 \begin_inset VSpace bigskip
28155 When you have chosen an
28158 \begin_inset space ~
28163 , the box content can be aligned vertically to:
28166 \begin_layout Description
28167 top This is an example text line.
28169 \begin_inset Box Boxed
28179 height_special "totalheight"
28182 \begin_layout Plain Layout
28184 This box text is top-aligned.
28189 This is an example text line.
28192 \begin_layout Description
28193 middle This is an example text line.
28195 \begin_inset Box Boxed
28205 height_special "totalheight"
28208 \begin_layout Plain Layout
28210 This box text is middle-aligned.
28215 This is an example text line.
28218 \begin_layout Description
28219 bottom This is an example text line.
28221 \begin_inset Box Boxed
28231 height_special "totalheight"
28234 \begin_layout Plain Layout
28236 This box text is bottom-aligned.
28241 This is an example text line.
28244 \begin_layout Description
28245 stretch This is an example text line.
28247 \begin_inset Box Boxed
28257 height_special "totalheight"
28260 \begin_layout Plain Layout
28265 \begin_layout Plain Layout
28270 \begin_layout Plain Layout
28277 This is an example text line.
28280 \begin_layout Standard
28281 To stretch the box content, it must consist of more than one paragraph.
28282 In the example above every text line is in an own paragraph.
28285 \begin_layout Standard
28286 \begin_inset VSpace bigskip
28289 To align the box content horizontally you can use LyX's paragraph dialog
28290 when you have chosen an
28293 \begin_inset space ~
28301 \begin_layout Standard
28303 \begin_inset Box Boxed
28313 height_special "totalheight"
28316 \begin_layout Plain Layout
28321 \begin_layout Plain Layout
28326 \begin_layout Plain Layout
28336 \begin_layout Standard
28337 If you have not set an
28340 \begin_inset space ~
28345 , you can align the box content horizontally in the box dialog.
28348 \begin_layout Standard
28350 \begin_inset Box Boxed
28360 height_special "totalheight"
28363 \begin_layout Plain Layout
28364 This box text is horizontally stretched.
28372 \begin_layout Subsection
28374 \begin_inset CommandInset label
28376 name "sec:Decoration"
28381 \begin_inset Index idx
28384 \begin_layout Plain Layout
28393 \begin_layout Standard
28394 The type of the box can be specified in the box dialog in the drop-down
28400 The following types are possible:
28403 \begin_layout Description
28405 \begin_inset space ~
28408 frame Nothing is drawn.
28411 \begin_layout Description
28413 \begin_inset space ~
28417 \begin_inset space ~
28420 frame This draws a rectangular frame around the box.
28421 The frame line thickness has the size of
28429 \begin_inset Box Boxed
28439 height_special "totalheight"
28442 \begin_layout Plain Layout
28452 \begin_layout Description
28454 \begin_inset space ~
28458 \begin_inset space ~
28461 thin This draws an oval frame around the box.
28462 The frame line thickness has the size 0.4
28463 \begin_inset space \thinspace{}
28468 \begin_inset Box ovalbox
28478 height_special "totalheight"
28481 \begin_layout Plain Layout
28491 \begin_layout Description
28493 \begin_inset space ~
28497 \begin_inset space ~
28500 thick This draws an oval frame around the box.
28501 The frame line thickness has the size 0.8
28502 \begin_inset space \thinspace{}
28507 \begin_inset Box Ovalbox
28517 height_special "totalheight"
28520 \begin_layout Plain Layout
28530 \begin_layout Description
28532 \begin_inset space ~
28535 shadow This draws a rectangular frame with a shadow around the box.
28536 The frame line thickness has the size of
28542 , the shadow has a width of 4
28543 \begin_inset space \thinspace{}
28548 \begin_inset Box Shadowbox
28558 height_special "totalheight"
28561 \begin_layout Plain Layout
28571 \begin_layout Description
28573 \begin_inset space ~
28576 background This draws a box with a red background.
28577 Unlike colored boxes
28581 \begin_layout Plain Layout
28583 \begin_inset space \thinspace{}
28587 \begin_inset CommandInset ref
28589 reference "sec:Colored-Boxes"
28598 , it always uses the whole column width and the box is set as its own paragraph.
28600 \begin_inset Box Shaded
28610 height_special "totalheight"
28613 \begin_layout Plain Layout
28614 Shaded background box
28622 \begin_layout Description
28624 \begin_inset space ~
28628 \begin_inset space ~
28631 frame This draws a double-line rectangular frame around the box.
28632 The line thickness of the inner frame is 0.75
28633 \begin_inset space \thinspace{}
28642 , the thickness of the outer frame is 1.5
28643 \begin_inset space \thinspace{}
28653 The distance between the lines is 1.5
28654 \begin_inset space \thinspace{}
28664 \begin_inset space \thinspace{}
28668 \begin_inset space \thinspace{}
28672 \begin_inset space \thinspace{}
28677 \begin_inset Box Doublebox
28687 height_special "totalheight"
28690 \begin_layout Plain Layout
28692 Double rectangular box
28700 \begin_layout Standard
28701 \begin_inset VSpace bigskip
28704 LyX's box label will reflect the different frame types.
28705 To be able to use all types, the LaTeX-package
28710 \begin_inset Index idx
28713 \begin_layout Plain Layout
28714 LaTeX-packages ! fancybox
28722 \begin_layout Standard
28723 \begin_inset VSpace bigskip
28726 When you use the decoration
28728 simple rectangular frame
28730 and no inner box, you can allow page breaks within a box.
28731 Note that then, unlike other framed boxes, the frame always uses the whole
28732 column width, the box is set as its own paragraph, and
28744 have no effect on this box type.
28745 The frame line thickness has the size of
28753 \begin_inset Box Framed
28763 height_special "totalheight"
28766 \begin_layout Plain Layout
28767 Allow page break box
28775 \begin_layout Section
28777 \begin_inset Index idx
28780 \begin_layout Plain Layout
28781 Boxes ! Customization
28789 \begin_layout Standard
28790 The default value for the size
28797 \begin_inset space \thinspace{}
28801 It can be changed with the following command in TeX-code to e.
28802 \begin_inset space \thinspace{}
28806 \begin_inset space \space{}
28810 \begin_inset space \thinspace{}
28816 \begin_layout Standard
28826 \begin_layout Standard
28830 \begin_layout Plain Layout
28842 \begin_inset Box Boxed
28852 height_special "totalheight"
28855 \begin_layout Plain Layout
28857 Rectangular box with
28864 \begin_inset space \thinspace{}
28868 \begin_inset space \thinspace{}
28872 \begin_inset space \thinspace{}
28884 \begin_layout Plain Layout
28898 \begin_layout Standard
28899 \begin_inset VSpace bigskip
28902 The space between the frame and the box content is for all frame styles
28904 \begin_inset space \thinspace{}
28908 You can change it by setting the length
28915 For example the command
28918 \begin_layout Standard
28928 \begin_layout Standard
28929 sets the value to 10
28930 \begin_inset space \thinspace{}
28933 pt, as with the following box:
28936 \begin_layout Standard
28940 \begin_layout Plain Layout
28952 \begin_inset Box Boxed
28962 height_special "totalheight"
28965 \begin_layout Plain Layout
28967 Rectangular box with
28974 \begin_inset space \thinspace{}
28978 \begin_inset space \thinspace{}
28982 \begin_inset space \thinspace{}
28994 \begin_layout Plain Layout
29008 \begin_layout Standard
29009 \begin_inset VSpace bigskip
29012 The diameter of the round corners of the oval boxes can be set with the
29023 \begin_layout Standard
29031 \begin_layout Standard
29032 sets the diameter to 1
29033 \begin_inset space \thinspace{}
29040 \begin_layout Standard
29048 \begin_layout Standard
29049 sets the diameter to
29052 \begin_inset space \thinspace{}
29056 \begin_inset space \thinspace{}
29059 minimum(width and height of box)
29071 \begin_layout Standard
29075 \begin_layout Plain Layout
29085 \begin_inset Box Ovalbox
29095 height_special "totalheight"
29098 \begin_layout Plain Layout
29107 \begin_inset space \thinspace{}
29111 \begin_inset space \thinspace{}
29115 \begin_inset space \thinspace{}
29127 \begin_layout Plain Layout
29139 \begin_layout Standard
29140 \begin_inset VSpace bigskip
29143 The size of the shadow can be adjusted by changing the length
29151 \begin_inset space \thinspace{}
29154 pt for the following box by this command:
29157 \begin_layout Standard
29167 \begin_layout Standard
29171 \begin_layout Plain Layout
29183 \begin_inset Box Shadowbox
29193 height_special "totalheight"
29196 \begin_layout Plain Layout
29205 \begin_inset space \thinspace{}
29209 \begin_inset space \thinspace{}
29213 \begin_inset space \thinspace{}
29225 \begin_layout Plain Layout
29239 \begin_layout Standard
29240 \begin_inset VSpace bigskip
29246 \begin_layout Standard
29247 The default value for the size
29254 \begin_inset space \thinspace{}
29258 The default space between the note content and the frame is 9
29259 \begin_inset space \thinspace{}
29262 pt and can be changed with the value of
29269 For example the frame appearance of the following
29273 is set with the TeX-Code commands
29276 \begin_layout Standard
29284 \begin_inset Newline newline
29294 \begin_layout Standard
29298 \begin_layout Plain Layout
29307 \begin_layout Plain Layout
29319 \begin_inset Box Framed
29329 height_special "totalheight"
29332 \begin_layout Plain Layout
29346 \begin_layout Plain Layout
29355 \begin_layout Plain Layout
29369 \begin_layout Standard
29370 \begin_inset VSpace bigskip
29376 \begin_layout Standard
29381 boxes the default space between the box content and the box border is 3
29382 \begin_inset space \thinspace{}
29385 pt and can be changed with the value of
29392 The default background color red can either be changed locally with the
29397 definecolor{shadecolor}
29399 or globally with the menu
29401 Tools\SpecialChar \menuseparator
29402 Preferences\SpecialChar \menuseparator
29403 Colors\SpecialChar \menuseparator
29405 \begin_inset space ~
29417 command is explained in section
29418 \begin_inset space ~
29422 \begin_inset CommandInset ref
29424 reference "sec:Colored-Tables"
29432 \begin_layout Plain Layout
29439 requires the LaTeX-package
29443 in the preamble, see section
29444 \begin_inset space ~
29448 \begin_inset CommandInset ref
29450 reference "sec:Colored-Boxes"
29459 For example the appearance of the following shaded background box is set
29460 with the TeX-Code commands
29463 \begin_layout Standard
29473 \begin_inset Newline newline
29480 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29483 \begin_layout Standard
29487 \begin_layout Plain Layout
29496 \begin_layout Plain Layout
29500 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29506 \begin_inset Box Shaded
29516 height_special "totalheight"
29519 \begin_layout Plain Layout
29522 This is yellow text in a
29532 box with dark green background.
29541 \begin_layout Plain Layout
29550 \begin_layout Plain Layout
29554 definecolor{shadecolor}{rgb}{1,0,0}
29562 \begin_layout Standard
29563 \begin_inset VSpace bigskip
29566 Changed lengths and widths are valid for all boxes following the commands
29570 \begin_layout Section
29572 \begin_inset CommandInset label
29574 name "sec:Minipages"
29579 \begin_inset Index idx
29582 \begin_layout Plain Layout
29591 \begin_layout Standard
29592 Minipages are treated by LaTeX as pages within pages and can therefore for
29593 example have their own footnotes.
29596 \begin_layout Standard
29597 Minipages are useful when you write documents with different languages.
29600 \begin_layout Standard
29601 Below are two example minipages side by side.
29602 Their width is set to 45
29603 \begin_inset space \thinspace{}
29606 col% and they are separated by a horizontal fill, that was inserted via
29609 Insert\SpecialChar \menuseparator
29611 \begin_inset space ~
29614 Formatting\SpecialChar \menuseparator
29616 \begin_inset space ~
29622 \begin_inset Newpage newpage
29628 \begin_layout Standard
29629 \begin_inset Box Frameless
29639 height_special "totalheight"
29642 \begin_layout Plain Layout
29645 Dies ist ein deutscher Text.
29646 Dies ist ein deutscher Text.
29647 Dies ist ein deutscher Text.
29648 Dies ist ein deutscher Text.
29649 Dies ist ein deutscher Text.
29650 Dies ist ein deutscher Text.
29651 Dies ist ein deutscher Text.
29652 Dies ist ein deutscher Text.
29653 Dies ist ein deutscher Text.
29654 Dies ist ein deutscher Text.
29655 Dies ist ein deutscher Text.
29656 Dies ist ein deutscher Text.
29657 Dies ist ein deutscher Text
29661 \begin_layout Plain Layout
29664 Dies ist eine deutsche Fußnote.
29670 Dies ist ein deutscher Text.
29671 Dies ist ein deutscher Text.
29677 \begin_inset space \hfill{}
29681 \begin_inset Box Frameless
29691 height_special "totalheight"
29694 \begin_layout Plain Layout
29695 This is an English Text.
29696 This is an English Text.
29697 This is an English Text.
29698 This is an English Text.
29699 This is an English Text.
29700 This is an English Text.
29701 This is an English Text.
29702 This is an English Text.
29703 This is an English Text.
29704 This is an English Text.
29705 This is an English Text.
29706 This is an English Text.
29707 This is an English Text.
29708 This is an English Text.
29709 This is an English Text.
29710 This is an English Text.
29714 \begin_layout Plain Layout
29715 This is an English footnote.
29720 This is an English Text.
29729 \begin_layout Standard
29730 \begin_inset VSpace bigskip
29733 The document-wide paragraph settings are ignored within minipages.
29734 That means that there will be no space between paragraphs in minipages
29735 although you set it to e.
29736 \begin_inset space \thinspace{}
29740 \begin_inset space \space{}
29747 in the document settings.
29750 \begin_layout Standard
29751 Minipages can also be used to set a background color for text parts, see
29753 \begin_inset space ~
29757 \begin_inset CommandInset ref
29759 reference "sub:Color-for-Paragraphs"
29766 \begin_layout Standard
29767 \begin_inset Note Greyedout
29770 \begin_layout Plain Layout
29775 You cannot have floats or margin notes inside minipages but minipages can
29776 be used inside tables, floats, and other boxes.
29784 \begin_layout Section
29786 \begin_inset CommandInset label
29788 name "sec:Parboxes"
29793 \begin_inset Index idx
29796 \begin_layout Plain Layout
29805 \begin_layout Standard
29806 Parboxes are very similar to minipages with the difference that they cannot
29810 \begin_layout Standard
29812 \begin_inset Box Frameless
29822 height_special "totalheight"
29825 \begin_layout Plain Layout
29826 This a text within a parbox.
29827 This a text within a parbox.
29830 \begin_layout Plain Layout
29831 This footnote won't appear:
29835 \begin_layout Plain Layout
29836 This footnote is inside a parbox and will therefore not appear.
29849 \begin_layout Section
29850 Boxes for Words and Characters
29851 \begin_inset Index idx
29854 \begin_layout Plain Layout
29855 Boxes ! for Characters
29863 \begin_layout Subsection
29864 Prevent Hyphenation
29865 \begin_inset CommandInset label
29867 name "sec:Prevent-Hyphenation"
29872 \begin_inset Index idx
29875 \begin_layout Plain Layout
29876 Boxes ! to Prevent Hyphenation
29884 \begin_layout Standard
29885 You can use the box type
29889 to prevent words or text from being hyphenated.
29890 \begin_inset Newline newline
29893 Here is an example text:
29896 \begin_layout Standard
29897 This line is an example to show how you can prevent the hyphenation of
29898 \begin_inset Quotes eld
29902 \begin_inset Quotes erd
29908 \begin_layout Standard
29909 To prevent the hyphenation of the word
29910 \begin_inset Quotes eld
29914 \begin_inset Quotes erd
29917 , put the word into a box, set the
29920 \begin_inset space ~
29930 \begin_inset space \thinspace{}
29936 \begin_layout Standard
29937 This is the result:
29940 \begin_layout Standard
29941 This line is an example to show how you can prevent the hyphenation of
29942 \begin_inset Box Frameless
29952 height_special "totalheight"
29955 \begin_layout Plain Layout
29956 \begin_inset Quotes eld
29960 \begin_inset Quotes erd
29971 \begin_layout Standard
29972 You can alternatively set the command
29973 \begin_inset Quotes eld
29983 \begin_inset Quotes grd
29986 as TeX-Code directly before the word:
29989 \begin_layout Standard
29990 This line is an example to show how you can prevent the hyphenation of
29991 \begin_inset Quotes eld
29998 \begin_layout Plain Layout
30008 \begin_inset Quotes erd
30014 \begin_layout Standard
30015 Of course the word now protrudes over the side margin.
30016 To avoid this, add via the menu
30018 Insert\SpecialChar \menuseparator
30019 Formatting\SpecialChar \menuseparator
30021 \begin_inset space ~
30025 \begin_inset space ~
30033 arg "newline-insert newline"
30036 ) a line break before the word:
30039 \begin_layout Standard
30040 This line is an example to show how you can prevent the hyphenation of
30041 \begin_inset Newline newline
30045 \begin_inset Box Frameless
30055 height_special "totalheight"
30058 \begin_layout Plain Layout
30059 \begin_inset Quotes eld
30063 \begin_inset Quotes erd
30074 \begin_layout Subsection
30076 \begin_inset CommandInset label
30078 name "sub:Vertical-Alignment"
30083 \begin_inset Index idx
30086 \begin_layout Plain Layout
30087 Boxes ! for Vertical Alignment
30093 \begin_inset Index idx
30096 \begin_layout Plain Layout
30105 \begin_layout Standard
30106 With the help of the command
30112 you can align words, characters or other boxes vertically relative to the
30120 is used with the following scheme:
30123 \begin_layout Standard
30128 raisebox{lift}[height][depth]{box content}
30131 \begin_layout Standard
30132 The lift can be a positive value to raise the box or a negative value to
30136 \begin_layout Standard
30137 To align for example the word
30138 \begin_inset Quotes eld
30142 \begin_inset Quotes erd
30145 so that the bottom of the
30146 \begin_inset Quotes eld
30150 \begin_inset Quotes erd
30154 \begin_inset Quotes eld
30158 \begin_inset Quotes erd
30161 is at the baseline, insert the command
30164 \begin_layout Standard
30174 \begin_layout Standard
30175 in TeX-Code before the word.
30176 After the word insert a closing brace
30177 \begin_inset Quotes eld
30185 \begin_inset Quotes erd
30189 \begin_inset Newline newline
30192 This is the result:
30195 \begin_layout Standard
30196 This is a text line with the word
30200 \begin_layout Plain Layout
30212 \begin_inset Quotes eld
30216 \begin_inset Quotes erd
30223 \begin_layout Plain Layout
30233 \begin_layout Standard
30234 \begin_inset VSpace bigskip
30237 When you raise or lower characters in a line, the line distance will be
30241 \begin_layout Standard
30242 This is a text line with the word
30246 \begin_layout Plain Layout
30258 \begin_inset Quotes eld
30262 \begin_inset Quotes erd
30269 \begin_layout Plain Layout
30277 \begin_inset Newline newline
30280 This is a text line with the word
30284 \begin_layout Plain Layout
30294 \begin_inset Quotes eld
30298 \begin_inset Quotes erd
30305 \begin_layout Plain Layout
30315 \begin_layout Standard
30316 If you want to prevent this for a certain reason, set the box height to
30321 \begin_layout Standard
30331 \begin_layout Standard
30332 This is a text line with the word
30336 \begin_layout Plain Layout
30348 \begin_inset Quotes eld
30352 \begin_inset Quotes erd
30359 \begin_layout Plain Layout
30367 \begin_inset Newline newline
30370 This is a text line with the word
30374 \begin_layout Plain Layout
30378 raisebox{0.5cm}[0pt]{
30384 \begin_inset Quotes eld
30388 \begin_inset Quotes erd
30395 \begin_layout Plain Layout
30405 \begin_layout Section
30407 \begin_inset CommandInset label
30409 name "sec:Colored-Boxes"
30414 \begin_inset Index idx
30417 \begin_layout Plain Layout
30426 \begin_layout Subsection
30428 \begin_inset Index idx
30431 \begin_layout Plain Layout
30440 \begin_layout Standard
30441 To color the background of text the text must be put into a so called
30442 \begin_inset Quotes eld
30446 \begin_inset Quotes erd
30450 This requires that the LaTeX-package
30455 \begin_inset Index idx
30458 \begin_layout Plain Layout
30459 LaTeX-packages ! color
30464 is loaded in the document preamble with the command
30467 \begin_layout Standard
30472 @ifundefined{textcolor}
30473 \begin_inset Newline newline
30477 \begin_inset Phantom HPhantom
30480 \begin_layout Plain Layout
30483 \begin_inset space ~
30493 usepackage{color}}{}
30496 \begin_layout Standard
30501 will be loaded automatically by LyX when you color text.
30505 \begin_layout Plain Layout
30506 To avoid it being loaded twice the command
30520 \begin_layout Standard
30521 \begin_inset VSpace medskip
30524 Colorboxes are created with the command
30531 This will be used with the following scheme:
30534 \begin_layout Standard
30539 colorbox{color}{box content}
30542 \begin_layout Standard
30543 The box content can also be a box and colorboxes can also be within other
30547 \begin_layout Standard
30548 The following colors are predefined:
30549 \begin_inset Newline newline
30588 \begin_inset Newline newline
30591 You can also define your own color as described in section
30592 \begin_inset space ~
30596 \begin_inset CommandInset ref
30598 reference "sec:Colored-Tables"
30605 \begin_layout Standard
30607 \begin_inset space \thinspace{}
30611 \begin_inset space \space{}
30614 a red background for a word, insert the command
30617 \begin_layout Standard
30625 \begin_layout Standard
30626 before the word in TeX-Code.
30627 After the word insert a closing brace
30628 \begin_inset Quotes eld
30636 \begin_inset Quotes erd
30640 \begin_inset Newline newline
30643 This is the result:
30646 \begin_layout Standard
30647 This is a line where the word
30651 \begin_layout Plain Layout
30661 \begin_inset Quotes eld
30665 \begin_inset Quotes erd
30672 \begin_layout Plain Layout
30679 has a red background.
30682 \begin_layout Standard
30683 \begin_inset VSpace bigskip
30686 If you would like the box frame in a different color, you can use the command
30693 with the following scheme:
30696 \begin_layout Standard
30701 fcolorbox{frame color}{box color}{box content}
30704 \begin_layout Standard
30718 The frame thickness and the space between the frame and the box content
30719 can be adjusted with the lengths
30731 , respectively, as described in section
30732 \begin_inset space ~
30736 \begin_inset CommandInset ref
30738 reference "sec:Decoration"
30745 \begin_layout Standard
30746 For the following example the command
30749 \begin_layout Standard
30754 fcolorbox{cyan}{magenta}{
30757 \begin_layout Standard
30761 \begin_layout Standard
30762 Here is an example where the frame line thickness was set to 1
30763 \begin_inset space \thinspace{}
30767 \begin_inset Newline newline
30774 \begin_layout Plain Layout
30789 \begin_layout Plain Layout
30793 fcolorbox{cyan}{magenta}{
30798 This is text within a colored, framed box.
30802 \begin_layout Plain Layout
30812 \begin_layout Standard
30813 \begin_inset VSpace bigskip
30816 Of course you can also have colored text inside a colorbox:
30817 \begin_inset Newline newline
30824 \begin_layout Plain Layout
30828 fcolorbox{cyan}{magenta}{
30835 This is colored text within a colored, framed box.
30841 \begin_layout Plain Layout
30852 \begin_layout Plain Layout
30866 \begin_layout Standard
30867 \begin_inset VSpace medskip
30873 \begin_layout Standard
30874 \begin_inset Note Greyedout
30877 \begin_layout Plain Layout
30882 Text in colorboxes cannot have line breaks.
30883 To color multiple text lines or paragraphs, use a box inside a colorbox
30884 as described in the following.
30892 \begin_layout Subsection
30893 Color for Paragraphs
30894 \begin_inset CommandInset label
30896 name "sub:Color-for-Paragraphs"
30901 \begin_inset Index idx
30904 \begin_layout Plain Layout
30905 Color ! for Paragraphs
30913 \begin_layout Standard
30914 To set the background color for more than one text line, put the text into
30916 Before the minipage insert the
30925 \begin_layout Standard
30933 \begin_layout Standard
30935 After the minipage insert a closing brace
30936 \begin_inset Quotes eld
30944 \begin_inset Quotes erd
30950 \begin_layout Standard
30954 \begin_layout Plain Layout
30958 colorbox{lightgrey}{
30964 \begin_inset Box Frameless
30974 height_special "totalheight"
30977 \begin_layout Plain Layout
30978 This is text with background color.
30979 This is text with background color.
30982 \begin_layout Plain Layout
30983 \begin_inset VSpace defskip
30986 The text can have footnotes
30990 \begin_layout Plain Layout
30991 Another example footnote
30996 and can include tables and figures.
30999 \begin_layout Plain Layout
31001 \begin_inset Tabular
31002 <lyxtabular version="3" rows="3" columns="3">
31003 <features tabularvalignment="middle">
31004 <column alignment="center" valignment="top" width="0">
31005 <column alignment="center" valignment="top" width="0">
31006 <column alignment="center" valignment="top" width="0">
31008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31011 \begin_layout Plain Layout
31017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31020 \begin_layout Plain Layout
31026 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31029 \begin_layout Plain Layout
31037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31040 \begin_layout Plain Layout
31046 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31049 \begin_layout Plain Layout
31051 \begin_inset Quotes erd
31059 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31062 \begin_layout Plain Layout
31070 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31073 \begin_layout Plain Layout
31079 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31082 \begin_layout Plain Layout
31088 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31091 \begin_layout Plain Layout
31111 \begin_layout Plain Layout
31121 \begin_layout Section
31122 Rotated and Scaled Boxes
31125 \begin_layout Standard
31126 To use the commands described in this section, the LaTeX-package
31131 \begin_inset Index idx
31134 \begin_layout Plain Layout
31135 LaTeX-packages ! graphicx
31140 needs to be loaded in the document preamble with the command
31143 \begin_layout Standard
31148 @ifundefined{rotatebox}
31149 \begin_inset Newline newline
31153 \begin_inset Phantom HPhantom
31156 \begin_layout Plain Layout
31159 \begin_inset space ~
31169 usepackage{graphicx}}{}
31172 \begin_layout Standard
31173 \begin_inset Note Greyedout
31176 \begin_layout Plain Layout
31181 Some DVI-viewers can't display rotated or scaled material.
31189 \begin_layout Standard
31190 \begin_inset Note Greyedout
31193 \begin_layout Plain Layout
31198 Floats mustn't be inside a rotated or scaled box.
31206 \begin_layout Subsection
31208 \begin_inset Index idx
31211 \begin_layout Plain Layout
31218 \begin_inset Index idx
31221 \begin_layout Plain Layout
31228 \begin_inset Index idx
31231 \begin_layout Plain Layout
31238 \begin_inset Index idx
31241 \begin_layout Plain Layout
31242 Table Customization ! Rotating
31250 \begin_layout Standard
31251 To rotate material, you can put it into a rotated box.
31252 Such a box is created using the command
31258 in TeX-Code with the following scheme:
31261 \begin_layout Standard
31266 rotatebox[rotation origin]{rotation angle}{box content}
31269 \begin_layout Standard
31270 The rotation origin is specified in the form
31275 The following positions are possible:
31295 (top), along with meaningful combinations of the four base positions.
31300 means that the rotation origin is at the top left corner of the box.
31301 When no rotation origin is specified, the position
31306 The rotation angle is a number that can be negative that specifies the
31308 The rotation direction is counterclockwise.
31311 \begin_layout Standard
31312 In the following example the command
31316 rotatebox[origin=c]{60}{
31318 was inserted as TeX-Code before the text
31319 \begin_inset Quotes eld
31323 \begin_inset Quotes erd
31326 ; after the text the box was closed by a closing brace
31333 \begin_layout Standard
31338 \begin_layout Plain Layout
31342 rotatebox[origin=c]{60}{
31351 \begin_layout Plain Layout
31361 \begin_layout Standard
31362 The box content can also be another box or an inline formula:
31365 \begin_layout Standard
31370 \begin_layout Plain Layout
31374 rotatebox[origin=r]{-60}{
31380 \begin_inset Box Doublebox
31390 height_special "totalheight"
31393 \begin_layout Plain Layout
31403 \begin_layout Plain Layout
31414 \begin_layout Plain Layout
31418 rotatebox[origin=lb]{60}{
31424 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31431 \begin_layout Plain Layout
31441 \begin_layout Standard
31442 or an image or table:
31445 \begin_layout Standard
31450 \begin_layout Plain Layout
31454 rotatebox[origin=lb]{90}{
31460 \begin_inset Graphics
31461 filename clipart/platypus.eps
31471 \begin_layout Plain Layout
31478 with a rotated image
31482 \begin_layout Plain Layout
31486 rotatebox[origin=l]{-90}{
31492 \begin_inset Tabular
31493 <lyxtabular version="3" rows="2" columns="2">
31494 <features tabularvalignment="middle">
31495 <column alignment="center" valignment="top" width="0">
31496 <column alignment="center" valignment="top" width="0">
31498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31501 \begin_layout Plain Layout
31507 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31510 \begin_layout Plain Layout
31518 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31521 \begin_layout Plain Layout
31527 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31530 \begin_layout Plain Layout
31545 \begin_layout Plain Layout
31555 \begin_layout Subsection
31557 \begin_inset Index idx
31560 \begin_layout Plain Layout
31567 \begin_inset Index idx
31570 \begin_layout Plain Layout
31577 \begin_inset Index idx
31580 \begin_layout Plain Layout
31587 \begin_inset Index idx
31590 \begin_layout Plain Layout
31591 Table Customization ! Scaling
31599 \begin_layout Standard
31600 To scale material the commands
31612 can be used as TeX-Code.
31615 \begin_layout Standard
31622 is used with the following scheme:
31625 \begin_layout Standard
31630 scalebox{horizontal}[vertical]{box content}
31633 \begin_layout Standard
31634 Horizontal and vertical are the corresponding scaling factors.
31635 If no vertical scaling factor is given, the horizontal factor will also
31636 be used as the vertical one.
31639 \begin_layout Standard
31646 creates for example a double size
31650 \begin_layout Plain Layout
31663 \begin_layout Plain Layout
31670 , compared with the document text size.
31673 \begin_layout Standard
31678 scalebox{2}[1]{Hello}
31680 on the other hand distorts the
31684 \begin_layout Plain Layout
31697 \begin_layout Plain Layout
31707 \begin_layout Standard
31708 If the scaling factor is negative, the box content will be mirrored.
31709 Therefore the command
31713 scalebox{-1}[1]{Hello}
31715 can be used to create mirror writing:
31719 \begin_layout Plain Layout
31732 \begin_layout Plain Layout
31742 \begin_layout Standard
31747 scalebox{1}[-1]{Hello}
31753 \begin_layout Plain Layout
31766 \begin_layout Plain Layout
31776 \begin_layout Standard
31781 scalebox{-1}[1]{box content}
31783 there exists the command
31784 \begin_inset Newline newline
31791 reflectbox{box content}
31796 \begin_layout Standard
31797 \begin_inset VSpace bigskip
31806 is used to scale the box to a defined width and height.
31807 The command scheme is:
31810 \begin_layout Standard
31815 resizebox{width}{height}{box content}
31818 \begin_layout Standard
31819 If one of the two command arguments given is an exclamation mark
31823 , the size is set so that the aspect ratio of the box content is kept.
31826 \begin_layout Standard
31831 resizebox{2cm}{1cm}{Hello}
31837 \begin_layout Plain Layout
31841 resizebox{2cm}{1cm}{
31850 \begin_layout Plain Layout
31858 \begin_inset Newline newline
31865 resizebox{2cm}{!}{Hello}
31871 \begin_layout Plain Layout
31884 \begin_layout Plain Layout
31894 \begin_layout Standard
31895 \begin_inset VSpace bigskip
31899 \begin_inset Note Greyedout
31902 \begin_layout Plain Layout
31919 are set to zero, no LaTeX-errors occur when exporting the document but
31920 the exported files can not or only partly be displayed.
31928 \begin_layout Standard
31929 \begin_inset VSpace bigskip
31935 \begin_layout Standard
31936 The boxes can be combined in any order.
31938 \begin_inset space \thinspace{}
31942 \begin_inset space \space{}
31946 \begin_inset Newline newline
31953 rotatebox[origin=c]{-45}{
31957 reflectbox{Hello}}}
31958 \begin_inset Newline newline
31966 \begin_layout Standard
31971 \begin_layout Plain Layout
31975 rotatebox[origin=c]{-45}{
31988 \begin_layout Plain Layout
31998 \begin_layout Standard
32000 Images, tables, and inline formulas are allowed as box content:
32003 \begin_layout Standard
32008 \begin_layout Plain Layout
32012 rotatebox[origin=c]{-30}{
32022 \begin_inset Graphics
32023 filename clipart/platypus.eps
32033 \begin_layout Plain Layout
32044 \begin_layout Plain Layout
32048 rotatebox[origin=c]{-45}{
32058 \begin_inset Tabular
32059 <lyxtabular version="3" rows="2" columns="2">
32060 <features tabularvalignment="middle">
32061 <column alignment="center" valignment="top" width="0">
32062 <column alignment="center" valignment="top" width="0">
32064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32067 \begin_layout Plain Layout
32073 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32076 \begin_layout Plain Layout
32084 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32087 \begin_layout Plain Layout
32093 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32096 \begin_layout Plain Layout
32111 \begin_layout Plain Layout
32122 \begin_layout Plain Layout
32126 rotatebox[origin=c]{-45}{
32136 \begin_inset Formula $\int A\,\mathrm{d}x=B$
32143 \begin_layout Plain Layout
32153 \begin_layout Standard
32154 When the global formula style
32158 is used in the document
32162 \begin_layout Plain Layout
32164 \begin_inset Quotes eld
32168 \begin_inset Quotes erd
32171 is added to the document class options.
32176 , display style formulas can also be scaled.
32179 \begin_layout Chapter
32180 Objects Surrounded by Text
32181 \begin_inset Index idx
32184 \begin_layout Plain Layout
32193 \begin_layout Section
32195 \begin_inset CommandInset label
32197 name "sec:Wrap-Floats"
32202 \begin_inset Index idx
32205 \begin_layout Plain Layout
32206 Floats ! Wrap Floats
32212 \begin_inset Index idx
32215 \begin_layout Plain Layout
32216 Surrounded by text ! Wrap Floats
32224 \begin_layout Standard
32225 \begin_inset Wrap figure
32232 \begin_layout Plain Layout
32233 \begin_inset Graphics
32234 filename clipart/mobius.eps
32236 scaleBeforeRotation
32237 rotateOrigin center
32244 \begin_layout Plain Layout
32245 \begin_inset Caption
32247 \begin_layout Plain Layout
32248 \begin_inset CommandInset label
32250 name "fig:This-is-a"
32254 This is a figure wrap float.
32264 This float type is used if you want to wrap text around a figure or table
32265 so that it only occupies some fraction of the column width.
32266 It can be inserted using the menu
32268 Insert\SpecialChar \menuseparator
32269 Floats\SpecialChar \menuseparator
32271 \begin_inset space ~
32275 \begin_inset space ~
32283 \begin_inset space ~
32287 \begin_inset space ~
32292 if the LaTeX-package
32297 \begin_inset Index idx
32300 \begin_layout Plain Layout
32301 LaTeX-packages ! wrapfig
32305 \begin_layout Plain Layout
32323 \begin_layout Plain Layout
32324 Installing a LaTeX-package is explained it in the
32327 \begin_inset space ~
32337 The settings of the float can be modified by right-clicking on the float
32339 The mandatory settings are the float
32352 that specifies how much the float is set into the paragraph
32353 \begin_inset space \thinspace{}
32357 \begin_inset space \thinspace{}
32360 page margin, and the
32363 \begin_inset space ~
32368 that specifies how many text lines the float will approximately need.
32369 The line span is often hard to approximate; so it is better only to use
32370 it when you encounter float placement problems.
32371 You can furthermore decide if LaTeX is allowed to let the float float within
32372 the paragraph or to surrounding paragraphs.
32374 \begin_inset space ~
32378 \begin_inset CommandInset ref
32380 reference "fig:This-is-a"
32384 is an example text wrap float with a width of 40
32385 \begin_inset space \thinspace{}
32389 \begin_inset space \thinspace{}
32392 cm overhang, set to the left.
32395 \begin_layout Standard
32396 \begin_inset Note Greyedout
32399 \begin_layout Plain Layout
32405 \begin_inset space ~
32408 wrap float floats are fragile! E.
32409 \begin_inset space \thinspace{}
32413 \begin_inset space \space{}
32416 having a figure too close to the bottom of the page can mess things up in
32417 such a way that the float does not appear in the output or that it is placed
32418 over some other text.
32426 \begin_layout Standard
32427 In general, the following applies for wrap floats:
32430 \begin_layout Itemize
32431 They should not be placed in paragraphs that run over a page break.
32432 That means that wrap floats are better inserted in their exact place when
32433 the document is almost finished and you are able to estimate where page
32434 breaks will appear.
32437 \begin_layout Itemize
32438 They should either be placed in their own paragraph before the paragraph
32439 where they should wrap into or within a paragraph.
32442 \begin_layout Itemize
32443 In consecutive paragraphs they may cause troubles, so ensure that there
32444 is a text paragraph between them as separator.
32447 \begin_layout Itemize
32448 They are not allowed in section headings or tables.
32451 \begin_layout Itemize
32452 Their numbering and referencing works as described in chap.
32453 \begin_inset space \thinspace{}
32457 \begin_inset CommandInset ref
32459 reference "chap:Floats"
32466 \begin_layout Section
32467 Surrounded Fixed Objects
32468 \begin_inset Index idx
32471 \begin_layout Plain Layout
32472 Surrounded by text ! Fixed objects
32480 \begin_layout Standard
32481 The wrap floats described in sec.
32482 \begin_inset space \thinspace{}
32486 \begin_inset CommandInset ref
32488 reference "sec:Wrap-Floats"
32492 have these positions in the paragraph:
32495 \begin_layout Standard
32498 \begin_inset Tabular
32499 <lyxtabular version="3" rows="2" columns="2">
32500 <features tabularvalignment="middle">
32501 <column alignment="center" valignment="top" width="0">
32502 <column alignment="center" valignment="top" width="0">
32504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32507 \begin_layout Plain Layout
32508 \begin_inset Graphics
32509 filename ../images/dialog-show-new-inset_graphics.png
32511 scaleBeforeRotation
32512 BoundingBox 0bp 6bp 22bp 22bp
32521 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32524 \begin_layout Plain Layout
32532 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32535 \begin_layout Plain Layout
32541 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32544 \begin_layout Plain Layout
32556 \begin_inset Tabular
32557 <lyxtabular version="3" rows="2" columns="2">
32558 <features tabularvalignment="middle">
32559 <column alignment="center" valignment="top" width="0">
32560 <column alignment="center" valignment="top" width="0">
32562 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32565 \begin_layout Plain Layout
32571 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32574 \begin_layout Plain Layout
32575 \begin_inset Graphics
32576 filename ../images/dialog-show-new-inset_graphics.png
32578 scaleBeforeRotation
32579 BoundingBox 0bp 6bp 22bp 22bp
32590 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32593 \begin_layout Plain Layout
32599 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32602 \begin_layout Plain Layout
32616 \begin_layout Standard
32617 To get an object exactly at the position where it is inserted, for example
32618 to get one of these positions:
32619 \begin_inset VSpace defskip
32625 \begin_layout Standard
32628 \begin_inset Tabular
32629 <lyxtabular version="3" rows="2" columns="2">
32630 <features tabularvalignment="middle">
32631 <column alignment="center" valignment="top" width="0">
32632 <column alignment="center" valignment="top" width="0">
32634 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32637 \begin_layout Plain Layout
32643 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32646 \begin_layout Plain Layout
32654 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32657 \begin_layout Plain Layout
32658 \begin_inset Graphics
32659 filename ../images/dialog-show-new-inset_graphics.png
32661 scaleBeforeRotation
32662 BoundingBox 0bp 6bp 22bp 22bp
32671 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32674 \begin_layout Plain Layout
32686 \begin_inset Tabular
32687 <lyxtabular version="3" rows="2" columns="2">
32688 <features tabularvalignment="middle">
32689 <column alignment="center" valignment="top" width="0">
32690 <column alignment="center" valignment="top" width="0">
32692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32695 \begin_layout Plain Layout
32701 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32704 \begin_layout Plain Layout
32712 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32715 \begin_layout Plain Layout
32721 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32724 \begin_layout Plain Layout
32725 \begin_inset Graphics
32726 filename ../images/dialog-show-new-inset_graphics.png
32728 scaleBeforeRotation
32729 BoundingBox 0bp 6bp 22bp 22bp
32744 \begin_inset Tabular
32745 <lyxtabular version="3" rows="2" columns="3">
32746 <features tabularvalignment="middle">
32747 <column alignment="center" valignment="top" width="0">
32748 <column alignment="center" valignment="top" width="0">
32749 <column alignment="center" valignment="top" width="0">
32751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32754 \begin_layout Plain Layout
32760 <cell alignment="center" valignment="top" topline="true" usebox="none">
32763 \begin_layout Plain Layout
32764 \begin_inset Graphics
32765 filename ../images/dialog-show-new-inset_graphics.png
32767 scaleBeforeRotation
32768 BoundingBox 0bp 6bp 22bp 22bp
32777 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32780 \begin_layout Plain Layout
32788 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32791 \begin_layout Plain Layout
32797 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
32800 \begin_layout Plain Layout
32806 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32809 \begin_layout Plain Layout
32821 \begin_inset Tabular
32822 <lyxtabular version="3" rows="2" columns="3">
32823 <features tabularvalignment="middle">
32824 <column alignment="center" valignment="top" width="0">
32825 <column alignment="center" valignment="top" width="0">
32826 <column alignment="center" valignment="top" width="0">
32828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32831 \begin_layout Plain Layout
32837 <cell alignment="center" valignment="top" topline="true" usebox="none">
32840 \begin_layout Plain Layout
32846 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32849 \begin_layout Plain Layout
32857 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32860 \begin_layout Plain Layout
32866 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
32869 \begin_layout Plain Layout
32870 \begin_inset Graphics
32871 filename ../images/dialog-show-new-inset_graphics.png
32873 scaleBeforeRotation
32874 BoundingBox 0bp 6bp 22bp 22bp
32883 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32886 \begin_layout Plain Layout
32900 \begin_layout Standard
32903 \begin_inset Tabular
32904 <lyxtabular version="3" rows="3" columns="2">
32905 <features tabularvalignment="middle">
32906 <column alignment="center" valignment="top" width="0">
32907 <column alignment="center" valignment="top" width="0">
32909 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32912 \begin_layout Plain Layout
32918 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32921 \begin_layout Plain Layout
32929 <cell alignment="center" valignment="top" leftline="true" usebox="none">
32932 \begin_layout Plain Layout
32933 \begin_inset Graphics
32934 filename ../images/dialog-show-new-inset_graphics.png
32936 scaleBeforeRotation
32937 BoundingBox 0bp 6bp 22bp 22bp
32946 <cell alignment="center" valignment="top" rightline="true" usebox="none">
32949 \begin_layout Plain Layout
32957 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32960 \begin_layout Plain Layout
32966 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32969 \begin_layout Plain Layout
32981 \begin_inset Tabular
32982 <lyxtabular version="3" rows="3" columns="3">
32983 <features tabularvalignment="middle">
32984 <column alignment="center" valignment="top" width="0">
32985 <column alignment="center" valignment="top" width="0">
32986 <column alignment="center" valignment="top" width="0">
32988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32991 \begin_layout Plain Layout
32997 <cell alignment="center" valignment="top" topline="true" usebox="none">
33000 \begin_layout Plain Layout
33006 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
33009 \begin_layout Plain Layout
33017 <cell alignment="center" valignment="top" leftline="true" usebox="none">
33020 \begin_layout Plain Layout
33026 <cell alignment="center" valignment="top" usebox="none">
33029 \begin_layout Plain Layout
33030 \begin_inset Graphics
33031 filename ../images/dialog-show-new-inset_graphics.png
33033 scaleBeforeRotation
33034 BoundingBox 0bp 6bp 22bp 22bp
33043 <cell alignment="center" valignment="top" rightline="true" usebox="none">
33046 \begin_layout Plain Layout
33054 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
33057 \begin_layout Plain Layout
33063 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
33066 \begin_layout Plain Layout
33072 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
33075 \begin_layout Plain Layout
33087 \begin_inset Tabular
33088 <lyxtabular version="3" rows="3" columns="2">
33089 <features tabularvalignment="middle">
33090 <column alignment="center" valignment="top" width="0">
33091 <column alignment="center" valignment="top" width="0">
33093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33096 \begin_layout Plain Layout
33102 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
33105 \begin_layout Plain Layout
33113 <cell alignment="center" valignment="top" leftline="true" usebox="none">
33116 \begin_layout Plain Layout
33122 <cell alignment="center" valignment="top" rightline="true" usebox="none">
33125 \begin_layout Plain Layout
33126 \begin_inset Graphics
33127 filename ../images/dialog-show-new-inset_graphics.png
33129 scaleBeforeRotation
33130 BoundingBox 0bp 6bp 22bp 22bp
33141 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
33144 \begin_layout Plain Layout
33150 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
33153 \begin_layout Plain Layout
33167 \begin_layout Standard
33169 you can use the LaTeX-package
33174 \begin_inset Index idx
33177 \begin_layout Plain Layout
33178 LaTeX-packages ! picinpar
33184 Here is an example:
33187 \begin_layout Standard
33191 \begin_layout Plain Layout
33201 \begin_inset Note Note
33204 \begin_layout Plain Layout
33205 The following section will only be displayed when the LaTeX-package
33217 \begin_layout Standard
33221 \begin_layout Plain Layout
33225 begin{window}[2,c,{
33231 \begin_inset Graphics
33232 filename clipart/mobius.eps
33235 scaleBeforeRotation
33236 rotateOrigin center
33244 \begin_layout Plain Layout
33249 \begin_layout Plain Layout
33258 It was in the spring of the year 1894 that all London was interested, and
33259 the fashionable world dismayed, by the murder of the Honourable Ronald
33260 Adair under most unusual and inexplicable circumstances.
33261 The public has already learned those particulars of the crime which
33267 \begin_layout Plain Layout
33278 came out in the police investigation, but a good deal was suppressed upon
33279 that occasion, since the case for the prosecution was so overwhelmingly
33280 strong that it was not necessary to bring forward all the facts.
33281 Only now, at the end of nearly ten years, am I allowed to supply those
33282 missing links which make up the whole of that remarkable chain.
33288 \begin_layout Plain Layout
33300 \begin_layout Standard
33304 \begin_layout Plain Layout
33313 Footnote of the paragraph with the fixed object.
33317 \begin_layout Plain Layout
33327 \begin_layout Standard
33328 Surrounded fixed objects are used to let text float around them, at which
33329 the object's position in the paragraph can be determined by the number
33331 In contrary to floats is it not possible to have a numbered caption.
33334 \begin_layout Standard
33335 A fixed object is inserted by adding the command
33338 \begin_layout Standard
33343 begin{window}[2,c,{
33346 \begin_layout Standard
33347 as TeX Code at the beginning of the paragraph.
33348 The first parameter in the bracket, here '2', defines the number of lines
33349 above the object, the second, here 'c', the position of the object.
33350 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
33351 Behind the command you insert the object.
33352 In this example an image with a width of 40
33353 \begin_inset space \thinspace{}
33356 % of the text column width was inserted.
33357 The object can also be a table, a box or an equation.
33358 Behind the object the command
33361 \begin_layout Standard
33364 },description text]
33365 \begin_inset Newline newline
33371 \begin_layout Standard
33374 \begin_inset Quotes eld
33382 \begin_inset Quotes erd
33385 is in the second line.
33386 The description text is optional.
33387 The text surrounding the object must be in the same paragraph as the object,
33388 so it must begin directly after the
33393 At the end of the paragraph insert the command:
33396 \begin_layout Standard
33404 \begin_layout Standard
33405 Within a paragraph with a fixed object, you cannot insert footnotes in the
33407 You have to use instead the command
33413 inside the paragraph and outside the command
33419 as described in sec.
33420 \begin_inset space \thinspace{}
33424 \begin_inset CommandInset ref
33426 reference "sec:Footnotes"
33433 \begin_layout Standard
33437 \begin_layout Plain Layout
33447 \begin_inset Note Note
33450 \begin_layout Plain Layout
33451 The following will be displayed when the LaTeX-package
33463 \begin_layout Standard
33464 You need to install the LaTeX-package
33468 to see the following part of this section in the output.
33471 \begin_layout Standard
33475 \begin_layout Plain Layout
33487 \begin_layout Section
33489 \begin_inset Index idx
33492 \begin_layout Plain Layout
33499 \begin_inset Index idx
33502 \begin_layout Plain Layout
33503 Surrounded by text ! Initials
33511 \begin_layout Standard
33512 To use initials, you must have the LaTeX-package
33517 \begin_inset Index idx
33520 \begin_layout Plain Layout
33521 LaTeX-packages ! lettrine
33526 installed and use the module
33530 in your document (menu
33532 Document\SpecialChar \menuseparator
33533 Settings\SpecialChar \menuseparator
33537 To insert an initial, use the style
33542 This style has a mandatory and an optional argument.
33543 The mandatory argument is inserted via the menu
33545 Insert\SpecialChar \menuseparator
33547 \begin_inset space ~
33552 and contains the letter that is the initial.
33553 To use the also the optional argument, insert another argument in front
33554 of the mandatory argument.
33555 This one contains parameters to modify the initial.
33556 For more information about the possible parameters see the documentation
33562 \begin_inset CommandInset citation
33569 The style itself contains the text that is surrounding the initial.
33570 The usual style is hereby that the word whose first letter is the initial,
33576 To tell LaTeX where this word is finished, add a closing brace '
33580 ' as TeX Code behind it.
33581 At the end of the style there must be an opening brace '
33588 \begin_layout Standard
33589 Here are some examples:
33592 \begin_layout Enumerate
33593 No optional argument, the initial is the letter 'I' in the math font
33594 \begin_inset Formula $\mathfrak{Fraktur}$
33601 \begin_layout Initial
33602 \begin_inset Argument
33605 \begin_layout Plain Layout
33606 \begin_inset Formula $\mathfrak{I}$
33618 \begin_layout Plain Layout
33625 was in the spring of the year 1894 that all London was interested, and
33626 the fashionable world dismayed, by the murder of the Honourable Ronald
33627 Adair under most unusual and inexplicable circumstances.
33628 The public has already learned those particulars of the crime which came
33629 out in the police investigation, but a good deal was suppressed upon that
33630 occasion, since the case for the prosecution was so overwhelmingly strong
33631 that it was not necessary to bring forward all the facts.
33635 \begin_layout Plain Layout
33643 \begin_inset Newpage newpage
33650 \begin_layout Enumerate
33651 Only one line is surrounding the initial, which is formed by two letters
33652 in standard font and no text is printed in small caps:
33656 \begin_layout Initial
33657 \begin_inset Argument
33660 \begin_layout Plain Layout
33667 \begin_inset Argument
33670 \begin_layout Plain Layout
33680 \begin_layout Plain Layout
33687 was in the spring of the year 1894 that all London was interested, and
33688 the fashionable world dismayed, by the murder of the Honourable Ronald
33689 Adair under most unusual and inexplicable circumstances.
33690 The public has already learned those particulars of the crime which came
33691 out in the police investigation, but a good deal was suppressed upon that
33692 occasion, since the case for the prosecution was so overwhelmingly strong
33693 that it was not necessary to bring forward all the facts.
33697 \begin_layout Plain Layout
33708 \begin_layout Enumerate
33709 Magenta, hanging initial over 3
33710 \begin_inset space ~
33713 lines in the math font
33714 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
33718 \begin_inset Quotes eld
33721 t was in the spring
33722 \begin_inset Quotes erd
33729 ; to color the initial, you must insert this command before the initial:
33730 \begin_inset Newline newline
33744 \begin_inset Newline newline
33752 \begin_inset Quotes eld
33756 \begin_inset Quotes erd
33760 \begin_inset Quotes eld
33764 \begin_inset Quotes erd
33768 \begin_inset Quotes eld
33772 \begin_inset Quotes erd
33776 \begin_inset Quotes eld
33780 \begin_inset Quotes erd
33784 \begin_inset Quotes eld
33788 \begin_inset Quotes erd
33792 \begin_inset Quotes eld
33796 \begin_inset Quotes erd
33800 \begin_inset Quotes eld
33804 \begin_inset Quotes erd
33808 \begin_inset Quotes eld
33812 \begin_inset Quotes erd
33815 , and add this command to the document preamble:
33816 \begin_inset Newline newline
33823 @ifundefined{textcolor}
33824 \begin_inset Newline newline
33828 \begin_inset space ~
33833 usepackage{color}}{}
33837 \begin_layout Standard
33841 \begin_layout Plain Layout
33855 \begin_inset Note Note
33858 \begin_layout Plain Layout
33859 makes the initial magenta
33867 \begin_layout Initial
33868 \begin_inset Argument
33871 \begin_layout Plain Layout
33872 lines=3, lhang=0.33, loversize=0.25
33878 \begin_inset Argument
33881 \begin_layout Plain Layout
33882 \begin_inset Formula $\mathcal{I}$
33890 t was in the spring
33894 \begin_layout Plain Layout
33901 of the year 1894 that all London was interested, and the fashionable world
33902 dismayed, by the murder of the Honourable Ronald Adair under most unusual
33903 and inexplicable circumstances.
33904 The public has already learned those particulars of the crime which came
33905 out in the police investigation, but a good deal was suppressed upon that
33906 occasion, since the case for the prosecution was so overwhelmingly strong
33907 that it was not necessary to bring forward all the facts.
33911 \begin_layout Plain Layout
33922 \begin_layout Chapter
33923 External Document Parts
33924 \begin_inset Index idx
33927 \begin_layout Plain Layout
33928 External Document Parts
33936 \begin_layout Standard
33939 Insert\SpecialChar \menuseparator
33942 you can insert external material to your document.
33946 \begin_layout Description
33948 \begin_inset space ~
33951 Document Another LyX document; its content is directly inserted to your
33955 \begin_layout Description
33957 \begin_inset space ~
33960 Text A text document; each line is inserted in your document as a separate
33964 \begin_layout Description
33966 \begin_inset space ~
33970 \begin_inset space ~
33974 \begin_inset space ~
33977 Lines A text document; text lines are inserted in your document continuously
33978 but an empty text line creates a new paragraph.
33981 \begin_layout Description
33983 \begin_inset space ~
33986 Material Files in various formats.
33989 \begin_layout Description
33991 \begin_inset space ~
33994 Document LyX or LaTeX-documents.
33997 \begin_layout Section
33999 \begin_inset Index idx
34002 \begin_layout Plain Layout
34003 External Document Parts ! External Material
34011 \begin_layout Standard
34012 The external material feature allows you to insert files in to your document
34013 without converting them to a format that can be read by the document output
34015 LyX takes care of the necessary conversions.
34016 This is similar to images that can be inserted in various image formats
34018 When you have enabled Instant Preview in LyX's preferences under
34021 \begin_inset space ~
34025 \begin_inset space ~
34028 feel\SpecialChar \menuseparator
34031 , the external material types Dia and Xfig are directly shown in LyX.
34034 \begin_layout Standard
34035 External material can be inserted via the
34039 dialog that is accessible with the menu
34041 Insert\SpecialChar \menuseparator
34042 File\SpecialChar \menuseparator
34044 \begin_inset space ~
34050 Currently the following file types (
34057 \begin_layout Description
34058 ChessDiagram This template supports chess position diagrams made with the
34062 \begin_inset CommandInset href
34065 target "http://en.wikipedia.org/wiki/XBoard"
34074 \begin_layout Description
34075 Date This inserts the date in the form
34080 This is a date inserted as external material:
34081 \begin_inset External
34088 \begin_inset space ~
34092 \begin_inset Note Note
34095 \begin_layout Plain Layout
34096 Remove the protected space when bug 4398 is fixed!
34102 \begin_inset Newline newline
34105 The date is not shown within LyX, only in the output.
34106 There are two other methods of inserting a date: Via menu
34108 Insert\SpecialChar \menuseparator
34111 and with the LaTeX command
34118 The different methods are compared in Table
34119 \begin_inset space ~
34123 \begin_inset CommandInset ref
34125 reference "tab:Comparison-of-the"
34132 \begin_layout Description
34133 Dia This template supports diagrams created with the program
34136 \begin_inset CommandInset href
34139 target "http://en.wikipedia.org/wiki/Dia_(software)"
34148 \begin_layout Description
34149 LilyPond This template is used for music notation typeset with the program
34150 \begin_inset Newline linebreak
34156 \begin_inset CommandInset href
34159 target "http://en.wikipedia.org/wiki/LilyPond"
34168 \begin_layout Description
34169 PDFPages With this template you can insert PDF documents to your document.
34170 To insert certain or all pages of a PDF, use the
34180 LaTeX and LyX options
34182 tab according to the template description in the dialog.
34187 option is given, only the first page of the PDF will be inserted.
34190 \begin_layout Description
34191 RasterImage This can be used for bitmap images.
34192 Nearly all popular image formats are supported.
34193 The image can be treated in the
34197 dialog like the images that are usually included via the
34201 dialog as described in section
34202 \begin_inset space ~
34206 \begin_inset CommandInset ref
34208 reference "sec:Graphics-Dialog"
34213 The difference is that only raster images are allowed; that means that
34214 PDF and EPS-images are not supported.
34217 \begin_layout Description
34218 XFig This template supports images created with the program
34221 \begin_inset CommandInset href
34224 target "http://en.wikipedia.org/wiki/Xfig"
34233 \begin_layout Standard
34234 \begin_inset Float table
34240 \begin_layout Plain Layout
34241 \begin_inset Caption
34243 \begin_layout Plain Layout
34244 \begin_inset CommandInset label
34246 name "tab:Comparison-of-the"
34250 Comparison of the date input methods.
34258 \begin_layout Plain Layout
34260 \begin_inset Tabular
34261 <lyxtabular version="3" rows="4" columns="4">
34262 <features tabularvalignment="middle">
34263 <column alignment="center" valignment="top" width="0">
34264 <column alignment="center" valignment="top" width="0">
34265 <column alignment="center" valignment="top" width="0">
34266 <column alignment="center" valignment="top" width="0">
34268 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34271 \begin_layout Plain Layout
34277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34280 \begin_layout Plain Layout
34283 External Material\SpecialChar \menuseparator
34289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34292 \begin_layout Plain Layout
34295 Insert\SpecialChar \menuseparator
34301 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34304 \begin_layout Plain Layout
34316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34319 \begin_layout Plain Layout
34325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34328 \begin_layout Plain Layout
34334 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34337 \begin_layout Plain Layout
34343 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34346 \begin_layout Plain Layout
34347 as TeX-Code inset box
34354 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34357 \begin_layout Plain Layout
34363 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34366 \begin_layout Plain Layout
34372 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34375 \begin_layout Plain Layout
34381 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34384 \begin_layout Plain Layout
34392 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34395 \begin_layout Plain Layout
34401 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34404 \begin_layout Plain Layout
34410 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34413 \begin_layout Plain Layout
34419 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34422 \begin_layout Plain Layout
34441 \begin_layout Standard
34442 When you use the option
34454 dialog, only the path to the inserted file is shown in the output.
34455 \begin_inset Newline newline
34458 External material is displayed in LyX either as a box like this:
34459 \begin_inset Graphics
34460 filename clipart/ExternalMaterialQt4.png
34462 scaleBeforeRotation
34466 or as image, depending on the option
34472 LaTeX and LyX options
34477 \begin_layout Standard
34484 manual explains how you can define your own templates.
34487 \begin_layout Section
34489 \begin_inset CommandInset label
34491 name "sec:Child-Documents"
34496 \begin_inset Index idx
34499 \begin_layout Plain Layout
34500 External Document Parts ! Child Documents
34506 \begin_inset Index idx
34509 \begin_layout Plain Layout
34518 \begin_layout Standard
34519 Child documents are used if you have a long document consisting of several
34520 larger parts or sections.
34521 For maintenance it is often useful and sometimes even required to split
34522 the document into several files that can be revised separately.
34523 The different documents are then the so called
34524 \begin_inset Quotes eld
34528 \begin_inset Quotes erd
34531 , and a master document connects them to print the full document or parts
34533 A child document inherits elements of its master, for example the LaTeX
34534 preamble, the bibliography, and labels for cross-references.
34537 \begin_layout Standard
34538 To be able to work on child documents without the need to open their master,
34539 specify in the child document the master in the menu
34541 Document\SpecialChar \menuseparator
34542 Settings\SpecialChar \menuseparator
34544 \begin_inset space ~
34550 This master document will then be used in the background by LyX when you
34551 edit the child document.
34554 \begin_layout Standard
34555 Included documents are displayed in LyX as a box like this:
34556 \begin_inset Graphics
34557 filename clipart/ChildDocumentQt4.png
34559 scaleBeforeRotation
34563 To include child documents in a master document use the menu
34565 Insert\SpecialChar \menuseparator
34566 File\SpecialChar \menuseparator
34568 \begin_inset space ~
34574 A dialog pops up where you can choose between four include methods:
34577 \begin_layout Description
34578 Include You can include LyX- and LaTeX-documents.
34587 dialog, the included documents will be opened in LyX in a new file tab
34588 so that you can modify them.
34589 \begin_inset Newline newline
34595 \begin_layout Standard
34596 Here is a child document inserted using
34601 \begin_inset CommandInset include
34602 LatexCommand include
34603 filename "DummyDocument1.lyx"
34610 \begin_layout Standard
34611 The section numbering includes the sections of the included files in the
34612 order they are inserted in the master document.
34613 The included example document has for example a subsection that is numbered
34614 as a subsection of this section.
34615 Labels of included documents can be referenced: Subsection
34616 \begin_inset space ~
34620 \begin_inset CommandInset ref
34622 reference "sub:External-Subsection-1"
34629 \begin_layout Standard
34630 The preamble of the child document is ignored; only the preamble of the
34631 master document is used.
34632 Branches in child documents will be ignored by the master document when
34633 the master document does not have a branch with the same name.
34634 Included documents are inserted starting on a new page and ending with
34638 \begin_layout Standard
34639 \begin_inset Note Greyedout
34642 \begin_layout Plain Layout
34647 If you have included a LyX- or LaTeX-file, you are warned when you export/view
34648 the document in case the child document uses another document class than
34649 the master document as this will lead to unexpected outputs.
34657 \begin_layout Description
34658 Input This method is very similar to the Include method.
34659 The differences are:
34663 \begin_layout Itemize
34664 Input files don't start with a new page and don't end with a page break.
34667 \begin_layout Itemize
34668 Input files can be previewed in LyX when
34671 \begin_inset space ~
34676 is enabled in LyX's preferences under
34679 \begin_inset space ~
34683 \begin_inset space ~
34686 feel\SpecialChar \menuseparator
34692 \begin_layout Itemize
34693 You cannot exclude Input files via the menu
34695 Document\SpecialChar \menuseparator
34696 Settings\SpecialChar \menuseparator
34703 \begin_layout Standard
34704 Here is a child document inserted using
34709 \begin_inset CommandInset include
34711 filename "DummyDocument2.lyx"
34718 \begin_layout Description
34719 Verbatim With this method any text file can be included.
34720 The file is shown in the output with its source code; no command used in
34721 the text is invoked.
34722 You can use the option
34724 Mark spaces in output
34726 that displays the character
34727 \begin_inset Quotes eld
34734 \begin_layout Plain Layout
34744 \begin_inset Quotes erd
34747 for every space character in the source code.
34748 The difference from the method via the menu
34750 Insert\SpecialChar \menuseparator
34751 File\SpecialChar \menuseparator
34753 \begin_inset space ~
34758 is that the document content is not shown in LyX.
34761 \begin_layout Standard
34762 Here is a child document inserted as Verbatim:
34763 \begin_inset CommandInset include
34764 LatexCommand verbatiminput
34765 filename "DummyTextDocument.txt"
34770 \begin_inset VSpace bigskip
34773 Here is a child document inserted as Verbatim using the
34775 Mark spaces in output
34778 \begin_inset CommandInset include
34779 LatexCommand verbatiminput*
34780 filename "DummyTextDocument.txt"
34787 \begin_layout Standard
34788 \begin_inset VSpace bigskip
34794 \begin_layout Standard
34795 \begin_inset Note Greyedout
34798 \begin_layout Plain Layout
34803 As you can see in the examples above, the text of the documents included
34808 is not broken at the end of the document lines.
34816 \begin_layout Description
34817 Listings This type is described in chapter
34818 \begin_inset space ~
34822 \begin_inset CommandInset ref
34824 reference "cha:Program-Code-Listings"
34831 \begin_layout Standard
34832 \begin_inset Note Greyedout
34835 \begin_layout Plain Layout
34840 Including the same document twice in a document using different methods
34841 could cause LaTeX-problems.
34849 \begin_layout Standard
34850 If you want to view/export only selected children of your master document,
34851 either because you want to save compiling time or because you want to distribut
34852 e single chapters of the book you are just writing, you can exclude children
34854 This is done via the menu
34856 Document\SpecialChar \menuseparator
34857 Settings\SpecialChar \menuseparator
34861 You can exclude\SpecialChar \slash{}
34862 include children by double-clicking on the
34866 column of the respective child document in the list (note that this only
34867 works for documents embedded via
34868 \begin_inset Quotes eld
34872 \begin_inset Quotes erd
34876 \begin_inset Quotes eld
34880 \begin_inset Quotes erd
34886 Maintain counters and references
34888 is enabled, LyX will assure that all page numbers, references etc.
34889 \begin_inset space ~
34892 are correct as if the whole document was processed.
34893 This is useful if you want the selected sub-documents to look exactly as
34894 in the context of the whole document.
34895 However, LyX needs to process the whole document in the background for
34897 So if you want to save compile time and if counters and references do not
34898 need to be correct, disable this checkbox.
34901 \begin_layout Standard
34902 Alternatively, you can put each included file into a branch.
34906 \begin_layout Plain Layout
34907 Branches are described in section
34920 By enabling\SpecialChar \slash{}
34921 disabling branches you can decide which included files will
34922 appear in the output.
34923 This has the advantage that it also works with Input'ed sub-documents.
34924 However, counters and references will not be maintained with this approach.
34927 \begin_layout Chapter
34928 Program Code Listings
34929 \begin_inset CommandInset label
34931 name "cha:Program-Code-Listings"
34936 \begin_inset Index idx
34939 \begin_layout Plain Layout
34946 \begin_inset Index idx
34949 \begin_layout Plain Layout
34956 \begin_inset Index idx
34959 \begin_layout Plain Layout
34968 \begin_layout Standard
34969 To include and typeset program code you can use the
34973 inset that can be inserted via the menu
34975 Insert\SpecialChar \menuseparator
34984 \begin_inset Index idx
34987 \begin_layout Plain Layout
34988 LaTeX-packages ! listings
34993 provides a powerful and flexible way to insert program source code into
34997 \begin_layout Standard
34998 Right-clicking on a listings inset opens the context menu containing where
34999 you can set the listings format.
35002 \begin_layout Standard
35003 By default, a listing starts a new paragraph in the output.
35004 The placement option
35007 \begin_inset space ~
35012 prints the listing inline like this:
35013 \begin_inset listings
35014 lstparams "language={C++}"
35018 \begin_layout Plain Layout
35026 \begin_inset Newline newline
35033 creates a listings float where you can specify the placement options
35034 \begin_inset Quotes eld
35042 \begin_inset Quotes erd
35046 \begin_inset Quotes eld
35054 \begin_inset Quotes erd
35058 \begin_inset Quotes eld
35066 \begin_inset Quotes erd
35070 \begin_inset Quotes eld
35078 \begin_inset Quotes erd
35081 corresponding to the float placement options described in section
35082 \begin_inset space ~
35086 \begin_inset CommandInset ref
35088 reference "sec:Float-Placement"
35093 The placement options can be mixed and are inserted without any separation,
35095 \begin_inset space \thinspace{}
35099 \begin_inset space \space{}
35103 \begin_inset Quotes eld
35111 \begin_inset Quotes erd
35116 \begin_inset Quotes eld
35120 \begin_inset Quotes erd
35123 has sometimes no effect, but you don't need to use the
35127 option in this case as also non-float listings can have captions and be
35131 \begin_layout Standard
35132 You can add captions to listings with the menu
35134 Insert\SpecialChar \menuseparator
35138 Listings can be referenced like floats: Listing
35139 \begin_inset space ~
35143 \begin_inset CommandInset ref
35145 reference "lst:Example-Listing"
35152 \begin_layout Standard
35153 \begin_inset listings
35154 lstparams "language=Python"
35158 \begin_layout Plain Layout
35160 \begin_inset Caption
35162 \begin_layout Plain Layout
35163 \begin_inset CommandInset label
35165 name "lst:Example-Listing"
35169 Example Listing float
35174 # Example listing float
35177 \begin_layout Plain Layout
35182 \begin_layout Plain Layout
35184 'this is a python function'
35187 \begin_layout Plain Layout
35197 \begin_layout Standard
35198 When you have set a programming language in the listings dialog, the keywords
35199 of this language will be recognized and specially typeset in the output.
35200 In the example listings the Python keyword
35201 \begin_inset Quotes eld
35205 \begin_inset Quotes erd
35208 is recognized and printed bold in the output.
35211 \begin_layout Standard
35212 \begin_inset Note Greyedout
35215 \begin_layout Plain Layout
35220 If you don't get bold keywords when using typewriter fonts, your
35224 font probably doesn't provide a bold shape.
35225 In this case select a different one in the menu
35227 Document\SpecialChar \menuseparator
35228 Settings\SpecialChar \menuseparator
35240 provide bold shapes.)
35248 \begin_layout Standard
35252 \begin_inset space ~
35257 of the listings dialog you can specify the line numbering style.
35258 You can insert a number to specify which lines are numbered in the field
35265 \begin_inset space \thinspace{}
35269 \begin_inset space \space{}
35273 \begin_inset Quotes eld
35277 \begin_inset Quotes erd
35280 , only every 3rd line will be numbered.
35283 \begin_layout Standard
35284 You can furthermore specify a range of lines; only these will then appear
35288 Extended character table
35290 should be used when you use national characters like the German umlauts
35292 \begin_inset Newline newline
35295 Here is an example listing with left line numbering, step
35296 \begin_inset Quotes eld
35300 \begin_inset Quotes erd
35304 \begin_inset Quotes eld
35308 \begin_inset Quotes erd
35312 \begin_inset Quotes eld
35315 Extended character table
35316 \begin_inset Quotes erd
35320 \begin_inset Quotes eld
35324 \begin_inset space ~
35328 \begin_inset space ~
35332 \begin_inset Quotes erd
35336 \begin_inset space \thinspace{}
35340 \begin_inset space \thinspace{}
35346 \begin_layout Standard
35347 \begin_inset listings
35348 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
35352 \begin_layout Plain Layout
35357 \begin_layout Plain Layout
35359 'this is a python function'
35362 \begin_layout Plain Layout
35367 \begin_layout Plain Layout
35372 \begin_layout Plain Layout
35374 'This is a German word: Tschüß'
35377 \begin_layout Plain Layout
35382 \begin_layout Plain Layout
35387 \begin_layout Plain Layout
35389 'this is a python function'
35392 \begin_layout Plain Layout
35402 \begin_layout Standard
35403 When you have tabulators in your listing, you can specify the number of
35404 characters that are spanned by a tabulator in the field
35407 \begin_inset space ~
35415 \begin_layout Standard
35416 \begin_inset Note Greyedout
35419 \begin_layout Plain Layout
35424 Due to a bug in the
35428 package the line numbering is shifted by a line by every previous listing.
35429 That's the reason why the lines 2 and 5 are numbered in the above listing
35430 and not the lines 3 and 6.
35438 \begin_layout Standard
35439 \begin_inset VSpace bigskip
35445 \begin_layout Standard
35446 It is also possible to print lines from a file as listing.
35447 To do this, use the menu
35449 Insert\SpecialChar \menuseparator
35450 File\SpecialChar \menuseparator
35453 and choose the type
35461 \begin_layout Plain Layout
35462 The other child document types are described in section
35463 \begin_inset space ~
35467 \begin_inset CommandInset ref
35469 reference "sec:Child-Documents"
35478 In the child document dialog you can specify the listing parameters in
35480 To show a list of all available parameters, type in a question mark
35481 \begin_inset Quotes eld
35485 \begin_inset Quotes erd
35491 \begin_layout Standard
35492 To reference child document listings, write a label text into the corresponding
35493 field of the child document dialog.
35494 The label can then be referenced using the menu
35496 Insert\SpecialChar \menuseparator
35502 \begin_layout Standard
35504 \begin_inset space ~
35508 \begin_inset CommandInset ref
35510 reference "lst:file-listing"
35514 is an example for a listing of a file; there the lines 10
35515 \begin_inset space \thinspace{}
35519 \begin_inset space \thinspace{}
35522 15 of this LyX file are listed.
35525 \begin_layout Standard
35526 \begin_inset CommandInset include
35527 LatexCommand lstinputlisting
35528 filename "EmbeddedObjects.lyx"
35529 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
35536 \begin_layout Standard
35537 \begin_inset VSpace bigskip
35543 \begin_layout Standard
35544 Inserting a formula into a listing can be done the following way:
35547 \begin_layout Enumerate
35548 Open the listings dialog and add
35549 \begin_inset Newline newline
35557 \begin_inset Newline newline
35560 to the field of the
35567 \begin_layout Enumerate
35568 Create a formula outside the listing
35571 \begin_layout Enumerate
35572 Copy the content of the formula (not the formula inset) to the clipboard
35582 \begin_layout Enumerate
35583 In the listing write
35584 \begin_inset Quotes eld
35592 \begin_inset Quotes erd
35595 and copy from the clipboard between the dollar-signs (shortcut
35604 \begin_layout Standard
35605 \begin_inset listings
35606 lstparams "language=Python,mathescape=true"
35610 \begin_layout Plain Layout
35612 \begin_inset Caption
35614 \begin_layout Plain Layout
35615 Example Listing float containing a formula
35620 # Example listing float
35623 \begin_layout Plain Layout
35628 \begin_layout Plain Layout
35641 \begin_layout Plain Layout
35651 \begin_layout Standard
35652 \begin_inset VSpace bigskip
35658 \begin_layout Standard
35659 Global listings settings can be set in the
35661 Document\SpecialChar \menuseparator
35662 Settings\SpecialChar \menuseparator
35666 To get there a list of available options, type in a question mark
35667 \begin_inset Quotes eld
35671 \begin_inset Quotes erd
35677 \begin_layout Standard
35678 For more information about the
35682 package, we refer to its documentation
35683 \begin_inset CommandInset citation
35692 \begin_layout Standard
35693 \begin_inset Newpage newpage
35699 \begin_layout Chapter
35701 Units available in LyX
35702 \begin_inset Index idx
35705 \begin_layout Plain Layout
35712 \begin_inset CommandInset label
35714 name "cha:Units-available-in"
35721 \begin_layout Standard
35722 To understand the units described in this documentation, Table
35723 \begin_inset space ~
35727 \begin_inset CommandInset ref
35729 reference "tab:Units"
35733 explains all units available in LyX.
35736 \begin_layout Standard
35737 \begin_inset Float table
35743 \begin_layout Plain Layout
35744 \begin_inset Caption
35746 \begin_layout Plain Layout
35747 \begin_inset CommandInset label
35761 \begin_layout Plain Layout
35762 \begin_inset VSpace medskip
35768 \begin_layout Plain Layout
35770 \begin_inset Tabular
35771 <lyxtabular version="3" rows="20" columns="2">
35772 <features tabularvalignment="middle">
35773 <column alignment="center" valignment="top" width="0">
35774 <column alignment="center" valignment="top" width="0">
35776 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35779 \begin_layout Plain Layout
35785 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35788 \begin_layout Plain Layout
35796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35799 \begin_layout Plain Layout
35805 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35808 \begin_layout Plain Layout
35816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35819 \begin_layout Plain Layout
35825 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35828 \begin_layout Plain Layout
35836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35839 \begin_layout Plain Layout
35845 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35848 \begin_layout Plain Layout
35856 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35859 \begin_layout Plain Layout
35865 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35868 \begin_layout Plain Layout
35870 \begin_inset space \thinspace{}
35874 \begin_inset space \thinspace{}
35884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35887 \begin_layout Plain Layout
35893 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35896 \begin_layout Plain Layout
35898 \begin_inset space \thinspace{}
35902 \begin_inset space \thinspace{}
35912 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35915 \begin_layout Plain Layout
35921 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35924 \begin_layout Plain Layout
35925 scaled point (65536
35926 \begin_inset space \thinspace{}
35930 \begin_inset space \thinspace{}
35940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35943 \begin_layout Plain Layout
35949 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35952 \begin_layout Plain Layout
35954 \begin_inset space \thinspace{}
35958 \begin_inset space \thinspace{}
35968 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
35971 \begin_layout Plain Layout
35977 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35980 \begin_layout Plain Layout
35982 \begin_inset space \thinspace{}
35986 \begin_inset Formula $\approx$
35990 \begin_inset space \thinspace{}
36000 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36003 \begin_layout Plain Layout
36009 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36012 \begin_layout Plain Layout
36014 \begin_inset space \thinspace{}
36018 \begin_inset space \thinspace{}
36028 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36031 \begin_layout Plain Layout
36037 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36040 \begin_layout Plain Layout
36041 % of original image width
36048 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36051 \begin_layout Plain Layout
36057 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36060 \begin_layout Plain Layout
36068 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36071 \begin_layout Plain Layout
36077 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36080 \begin_layout Plain Layout
36088 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36091 \begin_layout Plain Layout
36097 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36100 \begin_layout Plain Layout
36108 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36111 \begin_layout Plain Layout
36117 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36120 \begin_layout Plain Layout
36128 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36131 \begin_layout Plain Layout
36137 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36140 \begin_layout Plain Layout
36148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36151 \begin_layout Plain Layout
36157 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36160 \begin_layout Plain Layout
36168 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36171 \begin_layout Plain Layout
36177 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36180 \begin_layout Plain Layout
36192 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36195 \begin_layout Plain Layout
36201 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36204 \begin_layout Plain Layout
36216 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36219 \begin_layout Plain Layout
36225 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36228 \begin_layout Plain Layout
36230 \begin_inset space \thinspace{}
36234 \begin_inset space \thinspace{}
36255 \begin_layout Chapter
36256 Output File Formats with Graphics
36257 \begin_inset CommandInset label
36259 name "cha:Output-File-Formats"
36266 \begin_layout Section
36268 \begin_inset Index idx
36271 \begin_layout Plain Layout
36278 \begin_inset Index idx
36281 \begin_layout Plain Layout
36286 \begin_layout Plain Layout
36297 \begin_layout Plain Layout
36312 \begin_layout Standard
36313 This file type has the extension
36314 \begin_inset Quotes eld
36322 \begin_inset Quotes erd
36327 \begin_inset Quotes eld
36331 \begin_inset Quotes erd
36334 (DVI), because it is completely portable; you can move them from one machine
36335 to another without needing to do any sort of conversion.
36336 At the time when this file-format was developed, this was no matter of
36338 DVIs are used for quick previews and as pre-stage for other output formats,
36342 \begin_layout Standard
36343 \begin_inset Note Greyedout
36346 \begin_layout Plain Layout
36351 DVI-files do not contain images; they will only be a linked.
36356 So don't forget this, if you move your
36360 file to another computer.
36361 This property can also slow down your computer when you view the DVI, because
36362 the DVI-viewer has to convert the image in the background to make it visible
36363 when you scroll in the DVI.
36364 So it is recommended that you use PDF for files with many images.
36367 \begin_layout Standard
36368 You can export your document to DVI by using the menu
36370 File\SpecialChar \menuseparator
36371 Export\SpecialChar \menuseparator
36375 You can view your document as DVI via the
36379 menu or by using the toolbar button
36380 \begin_inset Graphics
36381 filename ../images/buffer-view_dvi.png
36383 scaleBeforeRotation
36390 \begin_layout Section
36392 \begin_inset CommandInset label
36394 name "sec:PostScript"
36399 \begin_inset Index idx
36402 \begin_layout Plain Layout
36403 File Formats ! PostScript
36409 \begin_inset Index idx
36412 \begin_layout Plain Layout
36417 \begin_layout Plain Layout
36428 \begin_layout Plain Layout
36443 \begin_layout Standard
36444 This file type has the extension
36445 \begin_inset Quotes eld
36453 \begin_inset Quotes erd
36457 PostScript was developed by the company
36461 as a printer language.
36462 The file therefore contains commands that the printer uses to print the
36464 PostScript can be seen as a
36465 \begin_inset Quotes eld
36468 programming language
36469 \begin_inset Quotes erd
36472 ; you can calculate with it and draw diagrams and images
36476 \begin_layout Plain Layout
36477 If you are interested to learn more about this, have a look at the LaTeX-package
36483 \begin_inset CommandInset citation
36495 Due to this ability, the files are often bigger than PDFs.
36498 \begin_layout Standard
36499 PostScript can only contain images in the format
36500 \begin_inset Quotes eld
36503 Encapsulated PostScript
36504 \begin_inset Quotes erd
36507 (EPS, file extension
36508 \begin_inset Quotes eld
36516 \begin_inset Quotes erd
36520 As LyX allows you to use any known image format in your document, it has
36521 to convert images in the background to EPS.
36523 \begin_inset space ~
36527 \begin_inset space ~
36530 images in your document, LyX has to do 50
36531 \begin_inset space ~
36534 conversions whenever you view or export your document.
36535 This will slow down your work flow with LyX drastically.
36536 So if you plan to use PostScript, you can insert your images directly as
36537 EPS to avoid this problem.
36540 \begin_layout Standard
36541 You can export your document to PostScript using the menu
36543 File\SpecialChar \menuseparator
36544 Export\SpecialChar \menuseparator
36548 You can view your document as PostScript via the
36552 menu or by using the toolbar button
36553 \begin_inset Graphics
36554 filename ../images/buffer-view_ps.png
36556 scaleBeforeRotation
36563 \begin_layout Section
36565 \begin_inset Index idx
36568 \begin_layout Plain Layout
36575 \begin_inset Index idx
36578 \begin_layout Plain Layout
36587 \begin_layout Standard
36588 This file type has the extension
36589 \begin_inset Quotes eld
36597 \begin_inset Quotes erd
36602 \begin_inset Quotes eld
36605 Portable Document Format
36606 \begin_inset Quotes erd
36609 (PDF) was developed by
36613 as a derivative of PostScript.
36614 It is more compressed and it uses fewer commands than PostScript.
36616 \begin_inset Quotes eld
36620 \begin_inset Quotes erd
36623 implies, it can be processed at any computer system and the printed output
36624 looks exactly the same.
36627 \begin_layout Standard
36628 PDF can contain images in its own PDF format, in the format
36629 \begin_inset Quotes eld
36632 Joint Photographic Experts Group
36633 \begin_inset Quotes erd
36636 (JPG, file extension
36637 \begin_inset Quotes eld
36645 \begin_inset Quotes erd
36649 \begin_inset Quotes eld
36657 \begin_inset Quotes erd
36660 ), and in the format
36661 \begin_inset Quotes eld
36664 Portable Network Graphics
36665 \begin_inset Quotes erd
36668 (PNG, file extension
36669 \begin_inset Quotes eld
36677 \begin_inset Quotes erd
36681 Nevertheless you can use any other image format, because LyX converts them
36682 in the background to one of these formats.
36683 But as described in the section about PostScript, the image conversion
36684 will slow down your work flow.
36685 So it is recommended that you use images in one of the three mentioned
36689 \begin_layout Standard
36690 You can export your document to PDF via the menu
36692 File\SpecialChar \menuseparator
36695 in three different ways:
36698 \begin_layout Description
36700 \begin_inset space ~
36703 (ps2pdf) This uses the program
36707 that creates a PDF from a PostScript-version of your file.
36708 The PostScript-version is produced by the program
36712 which uses a DVI-version as intermediate step.
36713 So this export variant consists of three conversions.
36716 \begin_layout Description
36718 \begin_inset space ~
36721 (dvipdfm) This uses the program
36725 that converts your file in the background to DVI and in a second step to
36729 \begin_layout Description
36731 \begin_inset space ~
36734 (pdflatex) This uses the program
36738 that converts your file directly to PDF.
36741 \begin_layout Standard
36742 It is recommended that you use
36745 \begin_inset space ~
36754 supports all features of actual PDF-versions, is quick and works stable.
36759 is not under development and therefore a bit outdated.
36762 \begin_layout Standard
36763 You can view your document as PDF via the
36767 menu or by using the toolbar button
36768 \begin_inset Graphics
36769 filename ../images/buffer-view_pdf2.png
36771 scaleBeforeRotation
36782 \begin_inset space ~
36790 \begin_layout Chapter
36791 Explanation of Equation
36792 \begin_inset space ~
36796 \begin_inset CommandInset ref
36803 \begin_inset CommandInset label
36805 name "cha:Explanation-of-Equation"
36812 \begin_layout Standard
36813 We can calculate the total width of
36818 \begin_inset Formula $W_{\mathrm{tot\, n}}$
36824 \begin_layout Standard
36825 \begin_inset Formula
36827 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
36833 \begin_inset Formula $W_{g\, n}$
36836 is the given width of all cells,
36842 is the LaTeX-length between the cell text and the cell border (its default
36844 \begin_inset space \thinspace{}
36854 is the thickness of the cell border line, the default is 0.4
36855 \begin_inset space \thinspace{}
36861 \begin_layout Standard
36863 \begin_inset space ~
36867 \begin_inset CommandInset ref
36869 reference "eq:Wtot_n"
36873 , the total width of a multicolumn
36874 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
36880 \begin_layout Standard
36881 \begin_inset Formula
36883 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
36891 \begin_layout Standard
36892 By setting equation
36893 \begin_inset space ~
36897 \begin_inset CommandInset ref
36899 reference "eq:Wtot_n"
36904 \begin_inset CommandInset ref
36906 reference "eq:Wtot_mult"
36910 equal we can calculate the needed given width
36911 \begin_inset Formula $W_{g\, n}$
36918 columns are spanned, so that each column has a total width of
36919 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
36925 \begin_layout Standard
36926 \begin_inset Formula
36928 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n
36936 \begin_layout Bibliography
36937 \labelwidthstring Bibliography
36938 \begin_inset CommandInset bibitem
36939 LatexCommand bibitem
36940 key "latexcompanion"
36944 Frank Mittelbach and Michel Goossens:
36946 The LaTeX Companion Second Edition.
36949 Addison-Wesley, 2004
36952 \begin_layout Bibliography
36953 \labelwidthstring Bibliography
36954 \begin_inset CommandInset bibitem
36955 LatexCommand bibitem
36960 Helmut Kopka and Patrick W.
36963 A Guide to LaTeX Fourth Edition.
36966 Addison-Wesley, 2003
36969 \begin_layout Bibliography
36970 \labelwidthstring Bibliography
36971 \begin_inset CommandInset bibitem
36972 LatexCommand bibitem
36979 LaTeX: A Document Preparation System.
36982 Addison-Wesley, second edition, 1994
36985 \begin_layout Bibliography
36986 \labelwidthstring Bibliography
36987 \begin_inset CommandInset bibitem
36988 LatexCommand bibitem
36993 Documentation of the LaTeX-package
36996 \begin_inset CommandInset href
36999 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf"
37006 \begin_inset Index idx
37009 \begin_layout Plain Layout
37010 LaTeX-packages ! booktabs
37018 \begin_layout Bibliography
37019 \labelwidthstring Bibliography
37020 \begin_inset CommandInset bibitem
37021 LatexCommand bibitem
37026 Documentation of the LaTeX-package
37029 \begin_inset CommandInset href
37032 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf"
37039 \begin_inset Index idx
37042 \begin_layout Plain Layout
37043 LaTeX-packages ! caption
37051 \begin_layout Bibliography
37052 \labelwidthstring Bibliography
37053 \begin_inset CommandInset bibitem
37054 LatexCommand bibitem
37059 Documentation of the LaTeX-package
37062 \begin_inset CommandInset href
37065 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
37072 \begin_inset Index idx
37075 \begin_layout Plain Layout
37076 LaTeX-packages ! endfloat
37084 \begin_layout Bibliography
37085 \labelwidthstring Bibliography
37086 \begin_inset CommandInset bibitem
37087 LatexCommand bibitem
37092 Documentation of the LaTeX-package
37095 \begin_inset CommandInset href
37098 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/wrapfig/wrapfig.sty"
37105 \begin_inset Index idx
37108 \begin_layout Plain Layout
37109 LaTeX-packages ! wrapfig
37113 \begin_layout Plain Layout
37130 \begin_layout Bibliography
37131 \labelwidthstring Bibliography
37132 \begin_inset CommandInset bibitem
37133 LatexCommand bibitem
37138 Documentation of the LaTeX-package
37141 \begin_inset CommandInset href
37144 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
37151 \begin_inset Index idx
37154 \begin_layout Plain Layout
37155 LaTeX-packages ! footmisc
37163 \begin_layout Bibliography
37164 \labelwidthstring Bibliography
37165 \begin_inset CommandInset bibitem
37166 LatexCommand bibitem
37171 Documentation of the LaTeX-package
37174 \begin_inset CommandInset href
37177 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
37184 \begin_inset Index idx
37187 \begin_layout Plain Layout
37188 LaTeX-packages ! hyperref
37196 \begin_layout Bibliography
37197 \labelwidthstring Bibliography
37198 \begin_inset CommandInset bibitem
37199 LatexCommand bibitem
37204 Documentation of the LaTeX-package
37207 \begin_inset CommandInset href
37210 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
37217 \begin_inset Index idx
37220 \begin_layout Plain Layout
37221 LaTeX-packages ! hyperref
37229 \begin_layout Bibliography
37230 \labelwidthstring Bibliography
37231 \begin_inset CommandInset bibitem
37232 LatexCommand bibitem
37237 Documentation of the LaTeX-package
37240 \begin_inset CommandInset href
37243 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
37250 \begin_inset Index idx
37253 \begin_layout Plain Layout
37254 LaTeX-packages ! KOMA-Script
37262 \begin_layout Bibliography
37263 \labelwidthstring Bibliography
37264 \begin_inset CommandInset bibitem
37265 LatexCommand bibitem
37270 Documentation of the LaTeX-package
37273 \begin_inset CommandInset href
37276 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
37283 \begin_inset Index idx
37286 \begin_layout Plain Layout
37287 LaTeX-packages ! listings
37295 \begin_layout Bibliography
37296 \labelwidthstring Bibliography
37297 \begin_inset CommandInset bibitem
37298 LatexCommand bibitem
37303 Documentation of the LaTeX-package
37306 \begin_inset CommandInset href
37309 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
37316 \begin_inset Index idx
37319 \begin_layout Plain Layout
37320 LaTeX-packages ! marginnote
37328 \begin_layout Bibliography
37329 \labelwidthstring Bibliography
37330 \begin_inset CommandInset bibitem
37331 LatexCommand bibitem
37336 Documentation of the LaTeX-package
37339 \begin_inset CommandInset href
37342 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
37349 \begin_inset CommandInset href
37352 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
37357 \begin_inset Index idx
37360 \begin_layout Plain Layout
37361 LaTeX-packages ! lettrine
37369 \begin_layout Bibliography
37370 \labelwidthstring Bibliography
37371 \begin_inset CommandInset bibitem
37372 LatexCommand bibitem
37377 Web page of the LaTeX-package
37380 \begin_inset CommandInset href
37383 target "http://tug.org/PSTricks/"
37390 \begin_inset Index idx
37393 \begin_layout Plain Layout
37394 LaTeX-packages ! PSTricks
37402 \begin_layout Bibliography
37403 \labelwidthstring Bibliography
37404 \begin_inset CommandInset bibitem
37405 LatexCommand bibitem
37410 Documentation of the LaTeX-package
37413 \begin_inset CommandInset href
37416 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
37423 \begin_inset Index idx
37426 \begin_layout Plain Layout
37427 LaTeX-packages ! sidecap
37435 \begin_layout Bibliography
37436 \labelwidthstring Bibliography
37437 \begin_inset CommandInset bibitem
37438 LatexCommand bibitem
37443 Documentation of the LaTeX-package
37446 \begin_inset CommandInset href
37449 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
37456 \begin_inset Index idx
37459 \begin_layout Plain Layout
37460 LaTeX-packages ! prettyref
37468 \begin_layout Bibliography
37469 \labelwidthstring Bibliography
37470 \begin_inset CommandInset bibitem
37471 LatexCommand bibitem
37476 Documentation of the LaTeX-package
37479 \begin_inset CommandInset href
37482 target "http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle/doc/latex/refstyle/refstyle.pdf"
37489 \begin_inset Index idx
37492 \begin_layout Plain Layout
37493 LaTeX-packages ! refstyle
37501 \begin_layout Bibliography
37502 \labelwidthstring Bibliography
37503 \begin_inset CommandInset bibitem
37504 LatexCommand bibitem
37510 \begin_inset CommandInset href
37513 target "http://wiki.lyx.org/LyX/NewInLyX20"
37517 about new features in
37524 \begin_layout Standard
37525 \begin_inset CommandInset index_print
37526 LatexCommand printindex