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 to have extra space in table cells
85 \@ifundefined{extrarowheight}
86 {\usepackage{array}}{}
87 \setlength{\extrarowheight}{2pt}
89 % used for customized tables
92 {>{\centering\hspace{0pt}}m{#1}}
95 {>{\centering\hspace{0pt}}m{(#1+(2\tabcolsep+\arrayrulewidth)*(1-#2))/#2}}
98 {>{\columncolor{#1}\hspace{0pt}}c}
100 \newcolumntype{V}{!{\vrule width 1.5pt}}
102 \newcolumntype{W}{!{\color{green}\vline}}
105 % insert additional vertical space of
106 % 1.5 mm between footnotes
108 \renewcommand{\footnote}[1]{\myFoot{#1\vspace{1.5mm}}}
110 % number algorithm floats within chapters
111 \numberwithin{algorithm}{chapter}
113 % ------------------------------------
114 % used to check for needed LaTeX packages
117 % check for package arydshln
118 % used for tables with dashed lines
119 \newboolean{arydshln}
120 \IfFileExists{arydshln.sty}
121 {\usepackage{arydshln}
122 \setboolean{arydshln}{true}}
123 {\setboolean{arydshln}{false}}
125 % check for package marginnote
126 % used for margin notes
127 \newboolean{marginnote}
128 \IfFileExists{marginnote.sty}
129 {\usepackage{marginnote}
130 \let\marginpar\marginnote
131 \setboolean{marginnote}{true}}
132 {\setboolean{marginnote}{false}}
134 % check for package sidecap
135 % used for captions on the side
137 \IfFileExists{sidecap.sty}
138 {\usepackage{sidecap}
139 \setboolean{sidecap}{true}}
140 {\setboolean{sidecap}{false}}
143 % used for surrounded fixed objects
144 \newboolean{picinpar}
145 \IfFileExists{picinpar.sty}
146 {\usepackage{picinpar}
147 \setboolean{picinpar}{true}}
148 {\setboolean{picinpar}{false}}
151 \newboolean{lettrine}
152 \IfFileExists{lettrine.sty}
153 {\usepackage{lettrine}
154 \setboolean{lettrine}{true}}
155 {\setboolean{lettrine}{false}}
157 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
158 \use_default_options false
162 \maintain_unincluded_children false
164 \language_package default
169 \font_typewriter default
170 \font_default_family default
171 \use_non_tex_fonts false
178 \default_output_format default
180 \bibtex_command default
181 \index_command default
185 \pdf_title "LyX's Figure, Table, Floats, Notes, and Boxes manual"
186 \pdf_author "LyX Team, Uwe Stöhr"
187 \pdf_subject "LyX-documentation about figures, tables, floats, notes, and boxes"
188 \pdf_keywords "LyX, Tables, Figures, Floats, Boxes, Notes"
190 \pdf_bookmarksnumbered true
191 \pdf_bookmarksopen true
192 \pdf_bookmarksopenlevel 1
193 \pdf_breaklinks false
197 \pdf_pdfusetitle false
198 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
208 \paperorientation portrait
211 \notefontcolor #0000ff
218 \paragraph_separation skip
220 \quotes_language english
223 \paperpagestyle default
227 \tracking_changes false
228 \output_changes false
231 \html_be_strict false
237 LyX's detailed Figure, Table, Floats, Notes, Boxes and External Material
246 \begin_layout Plain Layout
248 If you have comments or error corrections, please send them to the LyX Documenta
250 \begin_inset CommandInset href
252 name "lyx-docs@lists.lyx.org"
253 target "lyx-docs@lists.lyx.org?subject=EmbeddedObjects manual"
264 \begin_inset Note Note
267 \begin_layout Plain Layout
274 \begin_inset Newline newline
278 \begin_inset Newline newline
286 \begin_layout Standard
287 \begin_inset CommandInset toc
288 LatexCommand tableofcontents
295 \begin_layout Standard
296 \begin_inset Note Note
299 \begin_layout Plain Layout
300 To export all parts of this document to PDF, PS, or DVI the LaTeX-packages
311 lettrine, marginnote, picinpar
318 If they are not installed you can export the document anyway but the sections
319 where the packages are required won't appear in the output.
322 \begin_layout Plain Layout
323 The latest PDF-version of this document can be found here:
324 \begin_inset Newline newline
329 http://wiki.lyx.org/LyX/DocumentationDevelopment#EmbeddedObjects
337 \begin_layout Chapter
339 \begin_inset Index idx
342 \begin_layout Plain Layout
349 \begin_inset Index idx
352 \begin_layout Plain Layout
357 \begin_layout Plain Layout
368 \begin_layout Plain Layout
383 \begin_layout Section
385 \begin_inset Index idx
388 \begin_layout Plain Layout
389 Figures ! Graphics Dialog
395 \begin_inset CommandInset label
397 name "sec:Graphics-Dialog"
404 \begin_layout Standard
405 To insert an image into your document, place the cursor at the text position
406 you want and click on the toolbar icon
411 arg "dialog-show-new-inset graphics"
418 Insert\SpecialChar \menuseparator
422 Then a dialog will appear to choose the file to load.
423 The image will appear in the output exactly at the position where it is
427 \begin_layout Standard
428 The graphics dialog can be called at any time by clicking on an image.
429 This dialog has three tabs:
432 \begin_layout Description
437 Here you can choose an image file and adjust its appearance in the output.
438 The available units for the image size are explained in appendix
443 \begin_inset CommandInset ref
445 reference "cha:Units-available-in"
450 \begin_inset Newline newline
454 \begin_inset Index idx
457 \begin_layout Plain Layout
463 You can rotate images counter-clockwise by setting a rotation angle and
465 The image will also be rotated inside LyX.
466 \begin_inset Newline newline
470 \begin_inset Index idx
473 \begin_layout Plain Layout
479 Images can be scaled by using a percentage value or by setting the width
480 and height explicitly.
481 If you set only the width or only the height, the other size will be determined
483 If you set both, then the image will be transformed to the given size,
484 possibly distorting it.
485 To prevent the image from distortion, use the option
487 Maintain aspect ratio
490 The image will then be scaled so that its width and height don't exceed
491 the specified dimensions.
492 \begin_inset Newline newline
495 Images can be opened in a program of your choice by right-clicking on it
496 and choosing the entry
505 The program can be set for every image format in the file format settings
506 in LyX's preferences.
509 \begin_layout Description
514 Alternatively to the usage of scaling units it is possible to set image
515 coordinates to adjust the height and width of the image in the output.
516 The coordinates can also be calculated automatically by pressing the button
546 will only print the image region within the given coordinates.
547 Normally you don't need to take care about image coordinates and can ignore
551 \begin_layout Description
568 In this tab you can modify the appearance of the image within LyX and LaTeX
569 experts can specify additional LaTeX options.
570 \begin_inset Newline newline
581 makes the image appear in the output only as a frame with the size of the
583 \begin_inset Newline newline
602 option only affects zipped EPS-graphics, e.
603 \begin_inset space \thinspace{}
607 \begin_inset space \space{}
615 When the option is used the images will not be unzipped on export, since
616 LaTeX can handle them as they are.
617 \begin_inset Newline newline
620 Zipped EPS-graphics are useful to save disk space when you choose PostScript
621 as output format, see appendix
626 \begin_inset CommandInset ref
628 reference "sec:PostScript"
633 To zip EPS-graphics, use the following commands in a UNIX-shell or a Windows
635 \begin_inset Newline newline
643 \begin_inset Newline newline
648 zgrep %%Bounding x.eps.gz > x.eps.bb
651 \begin_inset Newline newline
654 The second command creates the bounding box file
655 \begin_inset Quotes eld
659 \begin_inset Quotes erd
662 that is needed by LaTeX for zipped graphics.
663 \begin_inset Newline newline
674 you can define or join an image settings group.
675 \begin_inset Index idx
678 \begin_layout Plain Layout
679 Figures ! Settings grouping
684 Images within such a group share their settings, so adjusting one image
685 of the group automatically also adjusts all other images of the group in
687 So you can for example change the size for a bunch of images without the
688 need to manually change each of them.
689 Joining an existing group can also be done using the context menu of the
690 image by checking the name of the desired group.
693 \begin_layout Standard
694 \begin_inset VSpace bigskip
700 \begin_layout Standard
701 This is an example image in EPS format
705 \begin_layout Plain Layout
706 Image formats are explained in section
711 \begin_inset CommandInset ref
713 reference "sec:Image-Formats"
722 within a separate, horizontally centered paragraph:
725 \begin_layout Standard
727 \begin_inset Graphics
728 filename clipart/mobius.eps
738 \begin_layout Standard
739 This is the same image like the one above but in draft mode:
742 \begin_layout Standard
744 \begin_inset Graphics
745 filename clipart/mobius.eps
756 \begin_layout Standard
757 \begin_inset Newpage newpage
763 \begin_layout Section
765 \begin_inset CommandInset label
767 name "sec:Figure-Floats"
772 \begin_inset Index idx
775 \begin_layout Plain Layout
782 \begin_inset Index idx
785 \begin_layout Plain Layout
794 \begin_layout Standard
795 For general explanations about floats, have a look at section
800 \begin_inset CommandInset ref
802 reference "sec:FloatIntroduction"
809 \begin_layout Standard
815 arg "float-insert figure"
822 Insert\SpecialChar \menuseparator
823 Float\SpecialChar \menuseparator
826 inserts a float with a caption that has the label
827 \begin_inset Quotes eld
835 \begin_inset Quotes erd
838 (# is the actual number).
839 You can insert the image above the caption, like in Figure
844 \begin_inset CommandInset ref
846 reference "fig:kill-plat"
850 or below the caption, like in Figure
855 \begin_inset CommandInset ref
857 reference "fig:escher"
862 More about caption placement is described in section
867 \begin_inset CommandInset ref
869 reference "sec:Caption-Placement"
876 \begin_layout Standard
877 \begin_inset Float figure
882 \begin_layout Plain Layout
884 \begin_inset Graphics
885 filename clipart/platypus.eps
895 \begin_layout Plain Layout
898 \begin_layout Plain Layout
899 \begin_inset CommandInset label
905 A severely distorted platypus in a float.
918 \begin_layout Standard
919 \begin_inset Float figure
924 \begin_layout Plain Layout
927 \begin_layout Plain Layout
928 \begin_inset CommandInset label
943 \begin_layout Plain Layout
945 \begin_inset Graphics
946 filename clipart/escher-lsd.eps
961 \begin_layout Standard
962 \begin_inset Index idx
965 \begin_layout Plain Layout
966 References ! to Figures
976 \begin_inset CommandInset ref
978 reference "fig:kill-plat"
983 \begin_inset CommandInset ref
985 reference "fig:escher"
989 are examples of referenced figures.
990 Figures can be referenced in the text by referencing their label.
991 To do this insert a label in the caption using the menu
993 Insert\SpecialChar \menuseparator
996 or the toolbar button
1007 You can now refer to the label using the menu
1009 Insert\SpecialChar \menuseparator
1011 \begin_inset space ~
1016 or the toolbar button
1021 arg "dialog-show-new-inset ref"
1027 It is important to use references to floats, rather than using vague references
1029 \begin_inset Quotes eld
1033 \begin_inset Quotes erd
1036 , because LaTeX will reposition the floats in the final document and it
1038 \begin_inset Quotes eld
1042 \begin_inset Quotes erd
1046 \begin_inset Newline newline
1049 Referencing is explained in detail in section
1050 \begin_inset space ~
1054 \begin_inset CommandInset ref
1056 reference "sec:Referencing-Floats"
1063 \begin_layout Standard
1064 Normally only one image is inserted to a figure float, but sometimes you
1065 might want to use two images with separate subcaptions.
1066 This can be done by inserting image floats into existing image floats.
1067 Note that only the main caption of the float is added to the List of Figures.
1069 \begin_inset space ~
1073 \begin_inset CommandInset ref
1075 reference "fig:Two-distorted-images"
1079 is an example of a figure float with two images set side by side.
1080 You can also set the images one below the other.
1082 \begin_inset space ~
1086 \begin_inset CommandInset ref
1088 reference "fig:Undefinable-structure"
1093 \begin_inset CommandInset ref
1095 reference "fig:A-Platypus"
1102 \begin_layout Standard
1103 \begin_inset Float figure
1108 \begin_layout Plain Layout
1109 \begin_inset space \hfill{}
1113 \begin_inset Float figure
1118 \begin_layout Plain Layout
1119 \begin_inset Caption
1121 \begin_layout Plain Layout
1122 \begin_inset CommandInset label
1124 name "fig:Undefinable-structure"
1128 Undefinable structure.
1136 \begin_layout Plain Layout
1137 \begin_inset Graphics
1138 filename clipart/escher-lsd.eps
1151 \begin_inset space \hfill{}
1155 \begin_inset Float figure
1160 \begin_layout Plain Layout
1161 \begin_inset Caption
1163 \begin_layout Plain Layout
1164 \begin_inset CommandInset label
1166 name "fig:A-Platypus"
1178 \begin_layout Plain Layout
1179 \begin_inset Graphics
1180 filename clipart/platypus.eps
1193 \begin_inset space \hfill{}
1199 \begin_layout Plain Layout
1200 \begin_inset Caption
1202 \begin_layout Plain Layout
1203 \begin_inset CommandInset label
1205 name "fig:Two-distorted-images"
1210 \begin_inset CommandInset label
1212 name "fig2:Two-distorted-images-2"
1216 Two distorted images.
1217 Both images are in the image settings group named
1218 \begin_inset Quotes eld
1222 \begin_inset Quotes erd
1238 \begin_layout Standard
1239 \begin_inset Newpage newpage
1245 \begin_layout Section
1247 \begin_inset CommandInset label
1249 name "sec:Image-Formats"
1254 \begin_inset Index idx
1257 \begin_layout Plain Layout
1264 \begin_inset Index idx
1267 \begin_layout Plain Layout
1268 Figures ! Image Formats
1276 \begin_layout Standard
1277 You can insert images in any known file format.
1278 But as explained in appendix
1279 \begin_inset space ~
1283 \begin_inset CommandInset ref
1285 reference "cha:Output-File-Formats"
1289 , each output document format allows only a few image formats.
1290 LyX uses therefore the program
1294 in the background to convert the images to the right format.
1295 To increase your work flow by avoiding these conversions in the background,
1296 you can use only the image formats that can directly be embedded in the
1298 The output file formats are explained in appendix
1299 \begin_inset space ~
1303 \begin_inset CommandInset ref
1305 reference "cha:Output-File-Formats"
1312 \begin_layout Standard
1313 Similar to fonts there are two types of image formats:
1316 \begin_layout Description
1318 \begin_inset space ~
1321 images consist of pixel values, often in a compressed form.
1322 They are therefore not fully scalable and look pixelated in large zooms.
1323 Well-known bitmap image formats are
1324 \begin_inset Quotes eld
1327 Graphics Interchange Format
1328 \begin_inset Quotes erd
1331 (GIF, file extension
1332 \begin_inset Quotes eld
1340 \begin_inset Quotes erd
1344 \begin_inset Index idx
1347 \begin_layout Plain Layout
1352 \begin_layout Plain Layout
1363 \begin_layout Plain Layout
1376 \begin_inset Quotes eld
1379 Portable Network Graphics
1380 \begin_inset Quotes erd
1383 (PNG, file extension
1384 \begin_inset Quotes eld
1392 \begin_inset Quotes erd
1396 \begin_inset Index idx
1399 \begin_layout Plain Layout
1404 \begin_layout Plain Layout
1415 \begin_layout Plain Layout
1428 \begin_inset Quotes eld
1431 Joint Photographic Experts Group
1432 \begin_inset Quotes erd
1435 (JPG, file extension
1436 \begin_inset Quotes eld
1444 \begin_inset Quotes erd
1448 \begin_inset Quotes eld
1456 \begin_inset Quotes erd
1460 \begin_inset Index idx
1463 \begin_layout Plain Layout
1468 \begin_layout Plain Layout
1479 \begin_layout Plain Layout
1494 \begin_layout Description
1496 \begin_inset space ~
1499 images consist of vectors and can therefore be scaled to any size without
1501 The scaling ability is necessary if you want to create presentations, because
1502 presentations are always scaled by the video projector.
1503 Scaling is also useful for online documents to let the user zoom into diagrams.
1504 \begin_inset Newline newline
1507 Well-known scalable image formats are
1508 \begin_inset Quotes eld
1511 Scalable Vector Graphics
1512 \begin_inset Quotes erd
1515 (SVG, file extension
1516 \begin_inset Quotes eld
1524 \begin_inset Quotes erd
1528 \begin_inset Index idx
1531 \begin_layout Plain Layout
1536 \begin_layout Plain Layout
1547 \begin_layout Plain Layout
1560 \begin_inset Quotes eld
1563 Encapsulated PostScript
1564 \begin_inset Quotes erd
1567 (EPS, file extension
1568 \begin_inset Quotes eld
1576 \begin_inset Quotes erd
1580 \begin_inset Index idx
1583 \begin_layout Plain Layout
1588 \begin_layout Plain Layout
1599 \begin_layout Plain Layout
1612 \begin_inset Quotes eld
1615 Portable Document Format
1616 \begin_inset Quotes erd
1619 (PDF, file extension
1620 \begin_inset Quotes eld
1628 \begin_inset Quotes erd
1632 \begin_inset Index idx
1635 \begin_layout Plain Layout
1642 \begin_inset Quotes eld
1646 \begin_inset Quotes erd
1649 (WMF, file extension
1650 \begin_inset Quotes eld
1658 \begin_inset Quotes erd
1662 \begin_inset Index idx
1665 \begin_layout Plain Layout
1670 \begin_layout Plain Layout
1681 \begin_layout Plain Layout
1695 \begin_inset Quotes eld
1699 \begin_inset Quotes erd
1702 , because you can convert any bitmap image to a PDF or EPS-image and the
1703 result will still be a bitmap image.
1704 In such cases only a header with the image properties is added to the original
1709 \begin_layout Plain Layout
1710 In the case of PDF, the original image is additionally compressed.
1716 The PDF-files generated by
1720 are for example bitmap images.
1723 \begin_layout Standard
1724 Normally it is not possible to convert a bitmap image into a scalable one,
1726 Only the image formats PDF and EPS can directly be embedded to PDF and
1727 PostScript output files, respectively.
1728 SVG and WMF-images are recalculated to bitmaps when the output file is
1729 generated because there is currently no adequate WMF/SVG
1730 \begin_inset Formula $\to$
1733 PDF/EPS converter available.
1736 \begin_layout Chapter
1738 \begin_inset Index idx
1741 \begin_layout Plain Layout
1750 \begin_layout Section
1752 \begin_inset Index idx
1755 \begin_layout Plain Layout
1756 Table ! Introduction
1764 \begin_layout Standard
1765 You can insert a table using either the toolbar button
1768 arg "tabular-insert"
1773 Insert\SpecialChar \menuseparator
1777 The toolbar button offers you a graphical selection: move the mouse to
1778 set the column/row number of the table that should be created and then
1779 press a mouse button.
1780 When you use the menu to create a table, a dialog will appear, asking you
1781 for the number of rows and columns.
1782 \begin_inset Newline newline
1785 The default table has lines around any cell and the first row appears separated
1786 from the rest of the table.
1787 This separation occurs due to a double line: The cells of the first row
1788 have a line below them and the cells of the second row have a line above
1790 Here is an example table:
1793 \begin_layout Standard
1795 \begin_inset Tabular
1796 <lyxtabular version="3" rows="4" columns="4">
1797 <features tabularvalignment="middle">
1798 <column alignment="center" valignment="top" width="0">
1799 <column alignment="center" valignment="top" width="0">
1800 <column alignment="center" valignment="top" width="0">
1801 <column alignment="center" valignment="top" width="0">
1803 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1806 \begin_layout Plain Layout
1812 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1815 \begin_layout Plain Layout
1830 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1833 \begin_layout Plain Layout
1839 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1842 \begin_layout Plain Layout
1850 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1853 \begin_layout Plain Layout
1868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1871 \begin_layout Plain Layout
1877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1880 \begin_layout Plain Layout
1886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1889 \begin_layout Plain Layout
1897 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1900 \begin_layout Plain Layout
1915 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1918 \begin_layout Plain Layout
1924 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
1927 \begin_layout Plain Layout
1933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1936 \begin_layout Plain Layout
1944 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1947 \begin_layout Plain Layout
1962 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1965 \begin_layout Plain Layout
1971 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
1974 \begin_layout Plain Layout
1980 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1983 \begin_layout Plain Layout
1997 \begin_layout Section
1999 \begin_inset Index idx
2002 \begin_layout Plain Layout
2011 \begin_layout Standard
2012 You can alter a table by clicking on it with the right mouse button, which
2013 brings up the table dialog.
2014 Here you can adjust the settings of that cell and row/column respectively
2015 where the cursor is currently placed.
2016 Most of the dialog options also work on selections.
2017 This means if you select more cells, columns or rows, the action is done
2018 for the whole selection.
2019 Note that there is a difference between selecting the
2023 of the cell, and the cell itself.
2024 \begin_inset Newline newline
2027 With the dialog option
2030 \begin_inset space ~
2035 every change you make in the dialog is directly applied.
2036 If you move the cursor to another table cell the dialog will then also
2037 be updated with the parameters of the new cell.
2038 If you change length values in the dialog you must press return to get
2040 \begin_inset Newline newline
2043 You can alter tables with the following tabs of the table dialog:
2046 \begin_layout Description
2050 \begin_inset space ~
2055 Here you can set the table width
2056 \begin_inset Index idx
2059 \begin_layout Plain Layout
2065 , and the horizontal alignment and the width of the current column.
2069 \begin_inset space ~
2073 \begin_inset space ~
2078 is described in section
2079 \begin_inset space ~
2083 \begin_inset CommandInset ref
2085 reference "sub:Special-Cell-Alignment"
2090 When you have set a width you can also adjust the vertical alignment of
2092 A given width will allow the cell to have line breaks and multiple paragraphs
2093 of text, see section
2094 \begin_inset space ~
2098 \begin_inset CommandInset ref
2100 reference "sub:Multiple-Lines-in"
2105 If you set no width, the column is as wide as the content of its widest
2107 \begin_inset Newline newline
2110 Furthermore, you can mark one or multiple cells of one row as a multicolumn
2112 \begin_inset space ~
2116 \begin_inset CommandInset ref
2118 reference "sub:Multicolumns"
2122 or the cells of one column as multirow cell, see section
2123 \begin_inset space ~
2127 \begin_inset CommandInset ref
2129 reference "sub:Multirows"
2134 \begin_inset Newline newline
2137 The rotate check boxes rotate the current cell, a selection, or the whole
2138 table counter-clockwise by 90°.
2139 The rotation is not shown within LyX, only in the output.
2140 \begin_inset Newline newline
2144 \begin_inset Note Greyedout
2147 \begin_layout Plain Layout
2152 Not all DVI-viewers are able to display rotations.
2158 \begin_inset Newline newline
2161 The table-wide vertical alignment is used for tables within text lines:
2162 \begin_inset Newline newline
2165 A line with tables with different alignments:
2166 \begin_inset Tabular
2167 <lyxtabular version="3" rows="2" columns="2">
2168 <features tabularvalignment="top">
2169 <column alignment="center" valignment="top" width="0pt">
2170 <column alignment="center" valignment="top" width="0">
2172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2175 \begin_layout Plain Layout
2181 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2184 \begin_layout Plain Layout
2201 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2204 \begin_layout Plain Layout
2219 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2222 \begin_layout Plain Layout
2234 \begin_inset Tabular
2235 <lyxtabular version="3" rows="2" columns="2">
2236 <features tabularvalignment="middle">
2237 <column alignment="center" valignment="top" width="0">
2238 <column alignment="center" valignment="top" width="0">
2240 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2243 \begin_layout Plain Layout
2249 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2252 \begin_layout Plain Layout
2269 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2272 \begin_layout Plain Layout
2287 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2290 \begin_layout Plain Layout
2302 \begin_inset Tabular
2303 <lyxtabular version="3" rows="2" columns="2">
2304 <features tabularvalignment="bottom">
2305 <column alignment="center" valignment="top" width="0pt">
2306 <column alignment="center" valignment="top" width="0">
2308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2311 \begin_layout Plain Layout
2317 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2320 \begin_layout Plain Layout
2337 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2340 \begin_layout Plain Layout
2355 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2358 \begin_layout Plain Layout
2370 \begin_inset Newline newline
2373 It is also possible to enter a LaTeX-argument which is needed for special
2374 table formattings, see section
2375 \begin_inset space ~
2379 \begin_inset CommandInset ref
2381 reference "sub:Multicolumn-Calculations"
2386 \begin_inset CommandInset ref
2388 reference "sec:Colored-Tables"
2395 \begin_layout Description
2400 In this tab you can add and delete border lines for the current row/column.
2401 \begin_inset Newline newline
2404 Using the style option
2408 will convert the table to a formal table as described in section
2409 \begin_inset space ~
2413 \begin_inset CommandInset ref
2415 reference "sec:Formal-Tables"
2420 \begin_inset Newline newline
2423 You can also add here space to table rows as described in section
2424 \begin_inset space ~
2428 \begin_inset CommandInset ref
2430 reference "sub:Row-Spacing"
2437 \begin_layout Description
2442 This tab is to make a table a so called
2443 \begin_inset Quotes eld
2451 \begin_inset Quotes erd
2454 that can run over several pages.
2456 \begin_inset space ~
2460 \begin_inset CommandInset ref
2462 reference "sec:Longtables"
2467 \begin_inset CommandInset ref
2469 reference "sec:Special-Longtable-Issues"
2473 describe the longtable features in detail.
2476 \begin_layout Section
2478 \begin_inset Index idx
2481 \begin_layout Plain Layout
2490 \begin_layout Standard
2491 The table toolbar is an alternative to the table dialog to be able to alter
2493 It should normally appear at the bottom of LyX's main window when the cursor
2495 You can alternatively switch it on to appear always, by right-clicking
2496 in LyX's main menu bar.
2499 \begin_layout Standard
2500 The toolbar has the following icons:
2503 \begin_layout Labeling
2504 \labelwidthstring 00.00.0000
2509 arg "inset-modify tabular append-row"
2514 adds a row below the current cell or selection
2517 \begin_layout Labeling
2518 \labelwidthstring 00.00.0000
2523 arg "inset-modify tabular append-column"
2528 adds a column right beside the current cell or selection
2531 \begin_layout Labeling
2532 \labelwidthstring 00.00.0000
2537 arg "inset-modify tabular delete-row"
2542 deletes the current row or selection
2545 \begin_layout Labeling
2546 \labelwidthstring 00.00.0000
2551 arg "inset-modify tabular delete-column"
2556 deletes the current column or selection
2559 \begin_layout Labeling
2560 \labelwidthstring 00.00.0000
2565 arg "inset-modify tabular toggle-line-top"
2570 adds a line at the top of the current cell / row or of a selection
2573 \begin_layout Labeling
2574 \labelwidthstring 00.00.0000
2579 arg "inset-modify tabular toggle-line-bottom"
2584 adds a line at the bottom of the current cell / row or of a selection
2587 \begin_layout Labeling
2588 \labelwidthstring 00.00.0000
2593 arg "inset-modify tabular toggle-line-left"
2598 adds a line at the left side of the current cell / row or of a selection
2601 \begin_layout Labeling
2602 \labelwidthstring 00.00.0000
2607 arg "inset-modify tabular toggle-line-right"
2612 adds a line at the right side of the current cell / row or of a selection
2615 \begin_layout Labeling
2616 \labelwidthstring 00.00.0000
2621 arg "inset-modify tabular set-all-lines"
2626 adds lines around the current or selected cells - if the current cell no
2627 multicolumn cell this also affects the current row and column
2630 \begin_layout Labeling
2631 \labelwidthstring 00.00.0000
2636 arg "inset-modify tabular unset-all-lines"
2641 deletes all lines of the current or selected cells - if the current cell
2642 no multicolumn cell this also affects the current row and column
2645 \begin_layout Labeling
2646 \labelwidthstring 00.00.0000
2651 arg "inset-modify tabular m-align-left"
2656 left-aligns the content of the current cell / column
2659 \begin_layout Labeling
2660 \labelwidthstring 00.00.0000
2665 arg "inset-modify tabular m-align-center"
2670 centers the content of the current cell / column horizontally
2673 \begin_layout Labeling
2674 \labelwidthstring 00.00.0000
2679 arg "inset-modify tabular m-align-right"
2684 right-aligns the content of the current cell / column
2687 \begin_layout Labeling
2688 \labelwidthstring 00.00.0000
2693 arg "inset-modify tabular align-decimal"
2698 aligns the content of the current column at a character
2701 \begin_layout Labeling
2702 \labelwidthstring 00.00.0000
2707 arg "inset-modify tabular m-valign-top"
2712 aligns the content of the current cell vertically to the top
2715 \begin_layout Labeling
2716 \labelwidthstring 00.00.0000
2721 arg "inset-modify tabular m-valign-middle"
2726 centers the content of the current cell vertically
2729 \begin_layout Labeling
2730 \labelwidthstring 00.00.0000
2735 arg "inset-modify tabular m-valign-bottom"
2740 aligns the content of the current cell vertically to the bottom
2743 \begin_layout Labeling
2744 \labelwidthstring 00.00.0000
2749 arg "inset-modify tabular set-rotate-cell"
2754 rotates the current cell or selection counter-clockwise by 90°
2757 \begin_layout Labeling
2758 \labelwidthstring 00.00.0000
2763 arg "inset-modify tabular set-rotate-tabular"
2768 rotates the whole table counter-clockwise by 90°
2771 \begin_layout Labeling
2772 \labelwidthstring 00.00.0000
2777 arg "inset-modify tabular multicolumn"
2782 sets the current cell or selection as a multicolumn
2785 \begin_layout Labeling
2786 \labelwidthstring 00.00.0000
2791 arg "inset-modify tabular multirow"
2796 sets the current cell or selection as a multirow
2799 \begin_layout Standard
2800 \begin_inset Note Greyedout
2803 \begin_layout Plain Layout
2808 For the output the vertical alignment of the first cell in a row is used
2809 for all following cells in the row.
2817 \begin_layout Section
2819 \begin_inset Index idx
2822 \begin_layout Plain Layout
2831 \begin_layout Standard
2832 Additionally to the table dialog and toolbar, the menu
2834 Edit\SpecialChar \menuseparator
2837 allows you to add and delete border lines for the current row/column and
2838 to set the current selection as multicolumn.
2839 The menu is only available when the cursor is inside a table.
2842 \begin_layout Section
2844 \begin_inset CommandInset label
2846 name "sec:Table-Floats"
2851 \begin_inset Index idx
2854 \begin_layout Plain Layout
2861 \begin_inset Index idx
2864 \begin_layout Plain Layout
2873 \begin_layout Standard
2874 For general explanations about floats, have a look at section
2875 \begin_inset space ~
2879 \begin_inset CommandInset ref
2881 reference "sec:FloatIntroduction"
2888 \begin_layout Standard
2889 \begin_inset Float table
2895 \begin_layout Plain Layout
2896 \begin_inset Caption
2898 \begin_layout Plain Layout
2899 \begin_inset CommandInset label
2901 name "tab:a table float"
2913 \begin_layout Plain Layout
2915 \begin_inset Tabular
2916 <lyxtabular version="3" rows="3" columns="3">
2917 <features tabularvalignment="middle">
2918 <column alignment="center" valignment="top" width="0pt">
2919 <column alignment="center" valignment="top" width="0pt">
2920 <column alignment="center" valignment="top" width="0pt">
2922 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2925 \begin_layout Plain Layout
2940 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
2943 \begin_layout Plain Layout
2958 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
2961 \begin_layout Plain Layout
2978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2981 \begin_layout Plain Layout
2996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2999 \begin_layout Plain Layout
3014 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3017 \begin_layout Plain Layout
3034 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3037 \begin_layout Plain Layout
3047 \begin_inset Formula $\int x^{2}dx$
3055 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3058 \begin_layout Plain Layout
3068 \begin_inset Formula $\left[\begin{array}{cc}
3079 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3082 \begin_layout Plain Layout
3092 \begin_inset Formula $1+1=2$
3113 \begin_layout Standard
3114 Table floats can be inserted using the menu
3116 Insert\SpecialChar \menuseparator
3117 Float\SpecialChar \menuseparator
3120 or the toolbar button
3125 arg "float-insert table"
3133 \begin_layout Standard
3134 The float appears as a collapsible box with a caption that has the label
3136 \begin_inset Quotes eld
3140 \begin_inset space ~
3144 \begin_inset Quotes erd
3147 (# is the actual table number).
3148 You can insert tables in the float above or below the caption.
3151 \begin_layout Standard
3153 \begin_inset space ~
3157 \begin_inset CommandInset ref
3159 reference "tab:a table float"
3163 is an example table within a table float.
3166 \begin_layout Standard
3167 Having the caption above the table is the common rule that is unfortunately
3168 not supported in LaTeX's standard classes.
3169 This means that, if you are using the document classes
3185 , there will be no space between the caption and the table.
3186 To insert the needed space, add the following option to the load command
3187 of the LaTeX-package
3192 \begin_inset Index idx
3195 \begin_layout Plain Layout
3196 LaTeX-packages ! caption
3201 in your document preamble
3205 \begin_layout Plain Layout
3206 For more information have a look at section
3207 \begin_inset space ~
3211 \begin_inset CommandInset ref
3213 reference "sec:Caption-Placement"
3225 \begin_layout Standard
3231 \begin_layout Standard
3236 , which is described in section
3237 \begin_inset space ~
3241 \begin_inset CommandInset ref
3243 reference "sec:Caption-Formatting"
3247 , is used to adjust the caption format.
3250 \begin_layout Standard
3251 \begin_inset Index idx
3254 \begin_layout Plain Layout
3255 References ! to Tables
3260 Tables can be cross-referenced in the text by referencing their label.
3261 To do this insert a label in the caption using the menu
3263 Insert\SpecialChar \menuseparator
3266 or the toolbar button
3277 You can now refer to the label using the menu
3279 Insert\SpecialChar \menuseparator
3281 \begin_inset space ~
3286 or the toolbar button
3291 arg "dialog-show-new-inset ref"
3297 \begin_inset Newline newline
3300 Referencing is explained in detail in section
3301 \begin_inset space ~
3305 \begin_inset CommandInset ref
3307 reference "sec:Referencing-Floats"
3314 \begin_layout Section
3316 \begin_inset CommandInset label
3318 name "sec:Longtables"
3323 \begin_inset Index idx
3326 \begin_layout Plain Layout
3333 \begin_inset Index idx
3336 \begin_layout Plain Layout
3345 \begin_layout Standard
3346 If the table is too long to fit on one page, you can use the option
3349 \begin_inset space ~
3353 \begin_inset space ~
3362 of the table dialog to split the table automatically over more pages.
3363 Doing this enables the following options:
3366 \begin_layout Description
3367 Header: The current row is defined to be a header row that appears on all
3368 pages of the longtable; except for the first page, if
3371 \begin_inset space ~
3377 This is therefore called the main header.
3380 \begin_layout Description
3382 \begin_inset space ~
3385 header: The current row is defined to be a header row that appears on the
3386 first page of the longtable.
3389 \begin_layout Description
3390 Footer: The current row is defined to be a footer row that appears on all
3391 pages of the longtable; except for the last page, if
3394 \begin_inset space ~
3402 \begin_layout Description
3404 \begin_inset space ~
3407 footer: The current row is defined to be a footer row that appears on the
3408 last page of the longtable.
3411 \begin_layout Description
3412 Caption: The current row contains the table caption.
3413 The row is reset as single column and a caption is inserted.
3414 More about longtable captions is explained in sec.
3415 \begin_inset space \thinspace{}
3419 \begin_inset CommandInset ref
3421 reference "sub:Longtable-Captions"
3428 \begin_layout Standard
3429 You can also specify a row where the table is split.
3430 See the following longtable to see how it works:
3433 \begin_layout Standard
3435 \begin_inset Tabular
3436 <lyxtabular version="3" rows="69" columns="3">
3437 <features islongtable="true" longtabularalignment="center">
3438 <column alignment="left" valignment="top" width="0cm">
3439 <column alignment="left" valignment="top" width="0pt">
3440 <column alignment="center" valignment="top" width="0pt">
3441 <row endfirsthead="true">
3442 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3445 \begin_layout Plain Layout
3448 Example Phone List (ignore the names)
3453 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3456 \begin_layout Plain Layout
3462 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3465 \begin_layout Plain Layout
3472 <row endfirsthead="true">
3473 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3476 \begin_layout Plain Layout
3484 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3487 \begin_layout Plain Layout
3493 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3496 \begin_layout Plain Layout
3505 <row endhead="true">
3506 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3509 \begin_layout Plain Layout
3517 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3520 \begin_layout Plain Layout
3526 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3529 \begin_layout Plain Layout
3536 <row endhead="true">
3537 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
3540 \begin_layout Plain Layout
3548 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3551 \begin_layout Plain Layout
3557 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
3560 \begin_layout Plain Layout
3569 <row endfoot="true">
3570 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
3573 \begin_layout Plain Layout
3574 continued on next page
3579 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
3582 \begin_layout Plain Layout
3588 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3591 \begin_layout Plain Layout
3599 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3602 \begin_layout Plain Layout
3610 <cell alignment="center" valignment="top" usebox="none">
3613 \begin_layout Plain Layout
3619 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
3622 \begin_layout Plain Layout
3630 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3633 \begin_layout Plain Layout
3641 <cell alignment="center" valignment="top" usebox="none">
3644 \begin_layout Plain Layout
3650 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3653 \begin_layout Plain Layout
3661 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3664 \begin_layout Plain Layout
3672 <cell alignment="center" valignment="top" usebox="none">
3675 \begin_layout Plain Layout
3681 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3684 \begin_layout Plain Layout
3692 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3695 \begin_layout Plain Layout
3703 <cell alignment="center" valignment="top" usebox="none">
3706 \begin_layout Plain Layout
3712 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3715 \begin_layout Plain Layout
3723 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3726 \begin_layout Plain Layout
3734 <cell alignment="center" valignment="top" usebox="none">
3737 \begin_layout Plain Layout
3743 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3746 \begin_layout Plain Layout
3754 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3757 \begin_layout Plain Layout
3765 <cell alignment="center" valignment="top" usebox="none">
3768 \begin_layout Plain Layout
3774 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3777 \begin_layout Plain Layout
3785 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3788 \begin_layout Plain Layout
3796 <cell alignment="center" valignment="top" usebox="none">
3799 \begin_layout Plain Layout
3805 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3808 \begin_layout Plain Layout
3816 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3819 \begin_layout Plain Layout
3827 <cell alignment="center" valignment="top" usebox="none">
3830 \begin_layout Plain Layout
3836 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3839 \begin_layout Plain Layout
3847 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3850 \begin_layout Plain Layout
3858 <cell alignment="center" valignment="top" usebox="none">
3861 \begin_layout Plain Layout
3867 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3870 \begin_layout Plain Layout
3878 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3881 \begin_layout Plain Layout
3889 <cell alignment="center" valignment="top" usebox="none">
3892 \begin_layout Plain Layout
3898 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3901 \begin_layout Plain Layout
3909 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3912 \begin_layout Plain Layout
3920 <cell alignment="center" valignment="top" usebox="none">
3923 \begin_layout Plain Layout
3929 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3932 \begin_layout Plain Layout
3940 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3943 \begin_layout Plain Layout
3951 <cell alignment="center" valignment="top" usebox="none">
3954 \begin_layout Plain Layout
3960 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3963 \begin_layout Plain Layout
3971 <cell alignment="center" valignment="top" leftline="true" usebox="none">
3974 \begin_layout Plain Layout
3982 <cell alignment="center" valignment="top" usebox="none">
3985 \begin_layout Plain Layout
3991 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
3994 \begin_layout Plain Layout
4002 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4005 \begin_layout Plain Layout
4013 <cell alignment="center" valignment="top" usebox="none">
4016 \begin_layout Plain Layout
4022 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4025 \begin_layout Plain Layout
4033 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4036 \begin_layout Plain Layout
4044 <cell alignment="center" valignment="top" usebox="none">
4047 \begin_layout Plain Layout
4053 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4056 \begin_layout Plain Layout
4064 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4067 \begin_layout Plain Layout
4075 <cell alignment="center" valignment="top" usebox="none">
4078 \begin_layout Plain Layout
4084 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4087 \begin_layout Plain Layout
4095 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4098 \begin_layout Plain Layout
4106 <cell alignment="center" valignment="top" usebox="none">
4109 \begin_layout Plain Layout
4115 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4118 \begin_layout Plain Layout
4126 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4129 \begin_layout Plain Layout
4137 <cell alignment="center" valignment="top" usebox="none">
4140 \begin_layout Plain Layout
4146 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4149 \begin_layout Plain Layout
4157 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4160 \begin_layout Plain Layout
4168 <cell alignment="center" valignment="top" usebox="none">
4171 \begin_layout Plain Layout
4177 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4180 \begin_layout Plain Layout
4188 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4191 \begin_layout Plain Layout
4199 <cell alignment="center" valignment="top" usebox="none">
4202 \begin_layout Plain Layout
4208 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4211 \begin_layout Plain Layout
4219 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4222 \begin_layout Plain Layout
4230 <cell alignment="center" valignment="top" usebox="none">
4233 \begin_layout Plain Layout
4239 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4242 \begin_layout Plain Layout
4250 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4253 \begin_layout Plain Layout
4261 <cell alignment="center" valignment="top" usebox="none">
4264 \begin_layout Plain Layout
4270 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4273 \begin_layout Plain Layout
4281 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4284 \begin_layout Plain Layout
4292 <cell alignment="center" valignment="top" usebox="none">
4295 \begin_layout Plain Layout
4301 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4304 \begin_layout Plain Layout
4312 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4315 \begin_layout Plain Layout
4323 <cell alignment="center" valignment="top" usebox="none">
4326 \begin_layout Plain Layout
4332 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4335 \begin_layout Plain Layout
4343 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4346 \begin_layout Plain Layout
4354 <cell alignment="center" valignment="top" usebox="none">
4357 \begin_layout Plain Layout
4363 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4366 \begin_layout Plain Layout
4374 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4377 \begin_layout Plain Layout
4385 <cell alignment="center" valignment="top" usebox="none">
4388 \begin_layout Plain Layout
4394 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4397 \begin_layout Plain Layout
4405 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4408 \begin_layout Plain Layout
4416 <cell alignment="center" valignment="top" usebox="none">
4419 \begin_layout Plain Layout
4425 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4428 \begin_layout Plain Layout
4436 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4439 \begin_layout Plain Layout
4447 <cell alignment="center" valignment="top" usebox="none">
4450 \begin_layout Plain Layout
4456 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4459 \begin_layout Plain Layout
4467 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4470 \begin_layout Plain Layout
4478 <cell alignment="center" valignment="top" usebox="none">
4481 \begin_layout Plain Layout
4487 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4490 \begin_layout Plain Layout
4498 <cell alignment="center" valignment="top" leftline="true" usebox="none">
4501 \begin_layout Plain Layout
4509 <cell alignment="center" valignment="top" usebox="none">
4512 \begin_layout Plain Layout
4518 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4521 \begin_layout Plain Layout
4529 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4532 \begin_layout Plain Layout
4540 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
4543 \begin_layout Plain Layout
4549 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4552 \begin_layout Plain Layout
4560 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
4563 \begin_layout Plain Layout
4569 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4572 \begin_layout Plain Layout
4578 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4581 \begin_layout Plain Layout
4589 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4592 \begin_layout Plain Layout
4600 <cell alignment="center" valignment="top" usebox="none">
4603 \begin_layout Plain Layout
4609 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4612 \begin_layout Plain Layout
4620 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4623 \begin_layout Plain Layout
4631 <cell alignment="center" valignment="top" usebox="none">
4634 \begin_layout Plain Layout
4640 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4643 \begin_layout Plain Layout
4651 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4654 \begin_layout Plain Layout
4662 <cell alignment="center" valignment="top" usebox="none">
4665 \begin_layout Plain Layout
4671 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4674 \begin_layout Plain Layout
4682 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4685 \begin_layout Plain Layout
4693 <cell alignment="center" valignment="top" usebox="none">
4696 \begin_layout Plain Layout
4702 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4705 \begin_layout Plain Layout
4713 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4716 \begin_layout Plain Layout
4724 <cell alignment="center" valignment="top" usebox="none">
4727 \begin_layout Plain Layout
4733 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4736 \begin_layout Plain Layout
4744 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4747 \begin_layout Plain Layout
4755 <cell alignment="center" valignment="top" usebox="none">
4758 \begin_layout Plain Layout
4764 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4767 \begin_layout Plain Layout
4775 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4778 \begin_layout Plain Layout
4786 <cell alignment="center" valignment="top" usebox="none">
4789 \begin_layout Plain Layout
4795 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4798 \begin_layout Plain Layout
4806 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4809 \begin_layout Plain Layout
4817 <cell alignment="center" valignment="top" usebox="none">
4820 \begin_layout Plain Layout
4826 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4829 \begin_layout Plain Layout
4837 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4840 \begin_layout Plain Layout
4848 <cell alignment="center" valignment="top" usebox="none">
4851 \begin_layout Plain Layout
4857 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4860 \begin_layout Plain Layout
4868 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4871 \begin_layout Plain Layout
4879 <cell alignment="center" valignment="top" usebox="none">
4882 \begin_layout Plain Layout
4888 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4891 \begin_layout Plain Layout
4899 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4902 \begin_layout Plain Layout
4910 <cell alignment="center" valignment="top" usebox="none">
4913 \begin_layout Plain Layout
4919 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4922 \begin_layout Plain Layout
4930 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4933 \begin_layout Plain Layout
4941 <cell alignment="center" valignment="top" usebox="none">
4944 \begin_layout Plain Layout
4950 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4953 \begin_layout Plain Layout
4961 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4964 \begin_layout Plain Layout
4972 <cell alignment="center" valignment="top" usebox="none">
4975 \begin_layout Plain Layout
4981 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
4984 \begin_layout Plain Layout
4992 <cell alignment="left" valignment="top" leftline="true" usebox="none">
4995 \begin_layout Plain Layout
5003 <cell alignment="center" valignment="top" usebox="none">
5006 \begin_layout Plain Layout
5012 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5015 \begin_layout Plain Layout
5023 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5026 \begin_layout Plain Layout
5034 <cell alignment="center" valignment="top" usebox="none">
5037 \begin_layout Plain Layout
5043 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5046 \begin_layout Plain Layout
5054 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5057 \begin_layout Plain Layout
5065 <cell alignment="center" valignment="top" usebox="none">
5068 \begin_layout Plain Layout
5074 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5077 \begin_layout Plain Layout
5085 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5088 \begin_layout Plain Layout
5096 <cell alignment="center" valignment="top" usebox="none">
5099 \begin_layout Plain Layout
5105 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5108 \begin_layout Plain Layout
5116 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5119 \begin_layout Plain Layout
5127 <cell alignment="center" valignment="top" usebox="none">
5130 \begin_layout Plain Layout
5136 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5139 \begin_layout Plain Layout
5147 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5150 \begin_layout Plain Layout
5158 <cell alignment="center" valignment="top" usebox="none">
5161 \begin_layout Plain Layout
5167 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5170 \begin_layout Plain Layout
5178 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5181 \begin_layout Plain Layout
5189 <cell alignment="center" valignment="top" usebox="none">
5192 \begin_layout Plain Layout
5198 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5201 \begin_layout Plain Layout
5209 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5212 \begin_layout Plain Layout
5220 <cell alignment="center" valignment="top" usebox="none">
5223 \begin_layout Plain Layout
5229 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5232 \begin_layout Plain Layout
5240 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5243 \begin_layout Plain Layout
5251 <cell alignment="center" valignment="top" usebox="none">
5254 \begin_layout Plain Layout
5260 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5263 \begin_layout Plain Layout
5271 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5274 \begin_layout Plain Layout
5282 <cell alignment="center" valignment="top" usebox="none">
5285 \begin_layout Plain Layout
5291 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5294 \begin_layout Plain Layout
5302 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5305 \begin_layout Plain Layout
5313 <cell alignment="center" valignment="top" usebox="none">
5316 \begin_layout Plain Layout
5322 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5325 \begin_layout Plain Layout
5333 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5336 \begin_layout Plain Layout
5344 <cell alignment="center" valignment="top" usebox="none">
5347 \begin_layout Plain Layout
5353 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5356 \begin_layout Plain Layout
5364 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5367 \begin_layout Plain Layout
5375 <cell alignment="center" valignment="top" usebox="none">
5378 \begin_layout Plain Layout
5384 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5387 \begin_layout Plain Layout
5395 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5398 \begin_layout Plain Layout
5406 <cell alignment="center" valignment="top" usebox="none">
5409 \begin_layout Plain Layout
5415 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5418 \begin_layout Plain Layout
5426 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5429 \begin_layout Plain Layout
5437 <cell alignment="center" valignment="top" usebox="none">
5440 \begin_layout Plain Layout
5446 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5449 \begin_layout Plain Layout
5457 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5460 \begin_layout Plain Layout
5468 <cell alignment="center" valignment="top" usebox="none">
5471 \begin_layout Plain Layout
5477 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5480 \begin_layout Plain Layout
5488 <cell alignment="left" valignment="top" leftline="true" usebox="none">
5491 \begin_layout Plain Layout
5499 <cell alignment="center" valignment="top" usebox="none">
5502 \begin_layout Plain Layout
5508 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
5511 \begin_layout Plain Layout
5519 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
5522 \begin_layout Plain Layout
5530 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
5533 \begin_layout Plain Layout
5539 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
5542 \begin_layout Plain Layout
5549 <row endlastfoot="true">
5550 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
5553 \begin_layout Plain Layout
5559 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
5562 \begin_layout Plain Layout
5568 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5571 \begin_layout Plain Layout
5586 \begin_layout Plain Layout
5590 addtocounter{table}{-1}
5596 \begin_inset Note Note
5599 \begin_layout Plain Layout
5600 See the first greyed-out note in section
5601 \begin_inset space ~
5605 \begin_inset CommandInset ref
5607 reference "sub:Longtable-Captions"
5611 for an explanation of this command.
5619 \begin_layout Subsection
5620 Footnotes in Longtables
5621 \begin_inset CommandInset label
5623 name "sub:Footnotes-in-Longtables"
5628 \begin_inset Index idx
5631 \begin_layout Plain Layout
5632 Longtables ! Footnotes
5640 \begin_layout Standard
5641 Footnotes can be inserted to every longtable cell.
5642 They appear at the bottom of the page where the table cell with the footnote
5645 \begin_inset space ~
5649 \begin_inset CommandInset ref
5651 reference "tab:DiffCaptions"
5655 has for example a footnote.
5658 \begin_layout Subsection
5660 \begin_inset Index idx
5663 \begin_layout Plain Layout
5664 Longtables ! Alignment
5672 \begin_layout Standard
5673 The horizontal alignment of longtables can be set in the table settings
5675 For left- and right-alignment the table will be directly at the page border.
5676 To add space between the table and the border one has to set the alignment
5677 to center and change the value of the LaTeX-lengths
5689 by inserting this line as TeX-Code before the longtable:
5692 \begin_layout Standard
5702 \begin_layout Standard
5703 The value can have any of the units listed in Table
5704 \begin_inset space ~
5708 \begin_inset CommandInset ref
5710 reference "tab:Units"
5721 controls the horizontal distance from the left page border to the longtable,
5728 the distance from the right side.
5729 The default value for both lengths is
5735 , which is in this case the same as an horizontal fill in LyX.
5738 \begin_layout Standard
5739 The following longtable was centered and
5755 \begin_layout Plain Layout
5771 \begin_layout Standard
5772 \begin_inset Tabular
5773 <lyxtabular version="3" rows="5" columns="5">
5774 <features islongtable="true" longtabularalignment="center">
5775 <column alignment="center" valignment="top" width="0">
5776 <column alignment="center" valignment="top" width="0pt">
5777 <column alignment="center" valignment="top" width="0">
5778 <column alignment="center" valignment="top" width="0">
5779 <column alignment="center" valignment="top" width="0">
5781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5784 \begin_layout Plain Layout
5790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5793 \begin_layout Plain Layout
5799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5802 \begin_layout Plain Layout
5808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5811 \begin_layout Plain Layout
5817 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5820 \begin_layout Plain Layout
5828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5831 \begin_layout Plain Layout
5837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5840 \begin_layout Plain Layout
5846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5849 \begin_layout Plain Layout
5855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5858 \begin_layout Plain Layout
5864 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5867 \begin_layout Plain Layout
5875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5878 \begin_layout Plain Layout
5884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5887 \begin_layout Plain Layout
5893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5896 \begin_layout Plain Layout
5902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5905 \begin_layout Plain Layout
5911 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5914 \begin_layout Plain Layout
5922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5925 \begin_layout Plain Layout
5931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5934 \begin_layout Plain Layout
5940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5943 \begin_layout Plain Layout
5949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5952 \begin_layout Plain Layout
5958 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5961 \begin_layout Plain Layout
5969 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5972 \begin_layout Plain Layout
5978 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5981 \begin_layout Plain Layout
5987 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5990 \begin_layout Plain Layout
5996 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5999 \begin_layout Plain Layout
6005 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6008 \begin_layout Plain Layout
6023 \begin_layout Plain Layout
6040 \begin_layout Plain Layout
6044 addtocounter{table}{-1}
6050 \begin_inset Note Note
6053 \begin_layout Plain Layout
6054 See the first greyed-out note in section
6055 \begin_inset space ~
6059 \begin_inset CommandInset ref
6061 reference "sub:Longtable-Captions"
6065 for an explanation of this command.
6073 \begin_layout Subsection
6075 \begin_inset Index idx
6078 \begin_layout Plain Layout
6079 Longtables ! Captions
6085 \begin_inset CommandInset label
6087 name "sub:Longtable-Captions"
6094 \begin_layout Standard
6095 A longtable cannot be put into a table float because floats can only be
6097 But the caption environment of floats can also be used for longtables when
6098 you use the longtable option
6102 as described in sec.
6103 \begin_inset space \thinspace{}
6107 \begin_inset CommandInset ref
6109 reference "sec:Longtables"
6114 Only one table row can contain the caption.
6117 \begin_layout Standard
6118 Here is a short longtable to see how it works:
6121 \begin_layout Standard
6122 \begin_inset Tabular
6123 <lyxtabular version="3" rows="6" columns="5">
6124 <features islongtable="true" longtabularalignment="center">
6125 <column alignment="center" valignment="top" width="0">
6126 <column alignment="center" valignment="top" width="0">
6127 <column alignment="center" valignment="top" width="0">
6128 <column alignment="center" valignment="top" width="0">
6129 <column alignment="center" valignment="top" width="0">
6130 <row caption="true">
6131 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6134 \begin_layout Plain Layout
6135 \begin_inset Caption
6137 \begin_layout Plain Layout
6138 Longtable with caption
6139 \begin_inset Argument
6142 \begin_layout Plain Layout
6158 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6161 \begin_layout Plain Layout
6167 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6170 \begin_layout Plain Layout
6176 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6179 \begin_layout Plain Layout
6185 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6188 \begin_layout Plain Layout
6196 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6199 \begin_layout Plain Layout
6205 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6208 \begin_layout Plain Layout
6214 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6217 \begin_layout Plain Layout
6223 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6226 \begin_layout Plain Layout
6232 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6235 \begin_layout Plain Layout
6243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6246 \begin_layout Plain Layout
6252 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6255 \begin_layout Plain Layout
6261 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6264 \begin_layout Plain Layout
6270 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6273 \begin_layout Plain Layout
6279 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6282 \begin_layout Plain Layout
6290 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6293 \begin_layout Plain Layout
6299 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6302 \begin_layout Plain Layout
6308 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6311 \begin_layout Plain Layout
6317 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6320 \begin_layout Plain Layout
6326 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6329 \begin_layout Plain Layout
6337 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6340 \begin_layout Plain Layout
6346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6349 \begin_layout Plain Layout
6355 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6358 \begin_layout Plain Layout
6364 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6367 \begin_layout Plain Layout
6373 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6376 \begin_layout Plain Layout
6384 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6387 \begin_layout Plain Layout
6393 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6396 \begin_layout Plain Layout
6402 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6405 \begin_layout Plain Layout
6411 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6414 \begin_layout Plain Layout
6420 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6423 \begin_layout Plain Layout
6437 \begin_layout Standard
6438 \begin_inset VSpace medskip
6442 \begin_inset Note Greyedout
6445 \begin_layout Plain Layout
6449 \begin_inset space ~
6454 The table number is increased for for every longtable, even if you did
6455 not set a caption for it.
6456 For this reason you could have the case that e.
6457 \begin_inset space \thinspace{}
6461 \begin_inset space \space{}
6465 \begin_inset space ~
6469 \begin_inset space ~
6472 2.1 in the list of tables if there are two longtables without captions.
6473 To avoid this you can add the following command in TeX-Code after every
6474 longtable without a caption:
6477 \begin_layout Plain Layout
6482 addtocounter{table}{-1}
6485 \begin_layout Plain Layout
6486 This is not needed when none of your longtables have a caption and you add
6487 the following code to the document preamble:
6490 \begin_layout Plain Layout
6500 \begin_inset Newline newline
6511 addtocounter{table}{-1}}
6519 \begin_layout Standard
6520 \begin_inset Note Greyedout
6523 \begin_layout Plain Layout
6527 \begin_inset space ~
6537 \begin_inset Index idx
6540 \begin_layout Plain Layout
6541 LaTeX-packages ! hyperref
6554 dialog to link cross-references, the link to a longtable caption will always
6555 point to the beginning of the document.
6563 \begin_layout Subsubsection
6564 References to Longtables
6565 \begin_inset Index idx
6568 \begin_layout Plain Layout
6569 Longtables ! References
6577 \begin_layout Standard
6578 \begin_inset Tabular
6579 <lyxtabular version="3" rows="6" columns="5">
6580 <features islongtable="true" longtabularalignment="center">
6581 <column alignment="center" valignment="top" width="0">
6582 <column alignment="center" valignment="top" width="0">
6583 <column alignment="center" valignment="top" width="0">
6584 <column alignment="center" valignment="top" width="0">
6585 <column alignment="center" valignment="top" width="0">
6586 <row caption="true">
6587 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
6590 \begin_layout Plain Layout
6591 \begin_inset Caption
6593 \begin_layout Plain Layout
6594 Referenced longtable
6595 \begin_inset CommandInset label
6597 name "tab:RefExample"
6611 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6614 \begin_layout Plain Layout
6620 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6623 \begin_layout Plain Layout
6629 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
6632 \begin_layout Plain Layout
6638 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
6641 \begin_layout Plain Layout
6649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6652 \begin_layout Plain Layout
6658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6661 \begin_layout Plain Layout
6667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6670 \begin_layout Plain Layout
6676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6679 \begin_layout Plain Layout
6685 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6688 \begin_layout Plain Layout
6696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6699 \begin_layout Plain Layout
6705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6708 \begin_layout Plain Layout
6714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6717 \begin_layout Plain Layout
6723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6726 \begin_layout Plain Layout
6732 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6735 \begin_layout Plain Layout
6743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6746 \begin_layout Plain Layout
6752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6755 \begin_layout Plain Layout
6761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6764 \begin_layout Plain Layout
6770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6773 \begin_layout Plain Layout
6779 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6782 \begin_layout Plain Layout
6790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6793 \begin_layout Plain Layout
6799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6802 \begin_layout Plain Layout
6808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6811 \begin_layout Plain Layout
6817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6820 \begin_layout Plain Layout
6826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6829 \begin_layout Plain Layout
6837 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6840 \begin_layout Plain Layout
6846 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6849 \begin_layout Plain Layout
6855 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6858 \begin_layout Plain Layout
6864 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6867 \begin_layout Plain Layout
6873 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6876 \begin_layout Plain Layout
6890 \begin_layout Standard
6891 To reference a longtable, insert a label into the caption.
6894 \begin_layout Standard
6895 This is a reference to Table
6896 \begin_inset space ~
6900 \begin_inset CommandInset ref
6902 reference "tab:RefExample"
6909 \begin_layout Standard
6910 The caption layout can be set together with all other captions of your document
6911 using the LaTeX-package
6916 \begin_inset Index idx
6919 \begin_layout Plain Layout
6920 LaTeX-packages ! caption
6926 \begin_inset space ~
6930 \begin_inset CommandInset ref
6932 reference "sec:Caption-Formatting"
6939 \begin_layout Subsubsection
6941 \begin_inset Index idx
6944 \begin_layout Plain Layout
6945 Longtables ! Caption Width
6953 \begin_layout Standard
6954 The maximal width of of caption lines is defined by the length
6961 Its default value is 4
6962 \begin_inset space \thinspace{}
6966 To change it add the following command to your document preamble or as
6967 TeX-Code into your document before the longtable that should be affected
6970 \begin_layout Standard
6980 \begin_layout Standard
6981 where the width could have one of the units listed in appendix
6982 \begin_inset space ~
6986 \begin_inset CommandInset ref
6988 reference "cha:Units-available-in"
6995 \begin_layout Standard
6996 The following tables show the difference:
6999 \begin_layout Standard
7000 \begin_inset Tabular
7001 <lyxtabular version="3" rows="6" columns="5">
7002 <features islongtable="true" longtabularalignment="center">
7003 <column alignment="center" valignment="top" width="0">
7004 <column alignment="center" valignment="top" width="0">
7005 <column alignment="center" valignment="top" width="0">
7006 <column alignment="center" valignment="top" width="0">
7007 <column alignment="center" valignment="top" width="0">
7008 <row caption="true">
7009 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7012 \begin_layout Plain Layout
7013 \begin_inset Caption
7015 \begin_layout Plain Layout
7016 long full title with default width long full title with default width long
7017 full title with default width
7018 \begin_inset Argument
7021 \begin_layout Plain Layout
7022 caption with default width
7037 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7040 \begin_layout Plain Layout
7046 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7049 \begin_layout Plain Layout
7055 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7058 \begin_layout Plain Layout
7064 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7067 \begin_layout Plain Layout
7075 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7078 \begin_layout Plain Layout
7084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7087 \begin_layout Plain Layout
7093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7096 \begin_layout Plain Layout
7102 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7105 \begin_layout Plain Layout
7111 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7114 \begin_layout Plain Layout
7122 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7125 \begin_layout Plain Layout
7131 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7134 \begin_layout Plain Layout
7140 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7143 \begin_layout Plain Layout
7149 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7152 \begin_layout Plain Layout
7158 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7161 \begin_layout Plain Layout
7169 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7172 \begin_layout Plain Layout
7178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7181 \begin_layout Plain Layout
7187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7190 \begin_layout Plain Layout
7196 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7199 \begin_layout Plain Layout
7205 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7208 \begin_layout Plain Layout
7216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7219 \begin_layout Plain Layout
7225 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7228 \begin_layout Plain Layout
7234 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7237 \begin_layout Plain Layout
7243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7246 \begin_layout Plain Layout
7252 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7255 \begin_layout Plain Layout
7263 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7266 \begin_layout Plain Layout
7272 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7275 \begin_layout Plain Layout
7281 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7284 \begin_layout Plain Layout
7290 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7293 \begin_layout Plain Layout
7299 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7302 \begin_layout Plain Layout
7316 \begin_layout Standard
7320 \begin_layout Plain Layout
7332 \begin_inset Tabular
7333 <lyxtabular version="3" rows="6" columns="5">
7334 <features islongtable="true" longtabularalignment="center">
7335 <column alignment="center" valignment="top" width="0">
7336 <column alignment="center" valignment="top" width="0">
7337 <column alignment="center" valignment="top" width="0">
7338 <column alignment="center" valignment="top" width="0">
7339 <column alignment="center" valignment="top" width="0">
7340 <row caption="true">
7341 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
7344 \begin_layout Plain Layout
7345 \begin_inset Caption
7347 \begin_layout Plain Layout
7348 long full title with width set to 5
7349 \begin_inset space \thinspace{}
7352 cm long full title with width set to 5
7353 \begin_inset space \thinspace{}
7356 cm long full title with width set to 5
7357 \begin_inset space \thinspace{}
7361 \begin_inset Argument
7364 \begin_layout Plain Layout
7366 \begin_inset space \thinspace{}
7370 \begin_inset space \thinspace{}
7374 \begin_inset space \thinspace{}
7392 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7395 \begin_layout Plain Layout
7401 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7404 \begin_layout Plain Layout
7410 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" usebox="none">
7413 \begin_layout Plain Layout
7419 <cell multicolumn="2" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7422 \begin_layout Plain Layout
7430 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7433 \begin_layout Plain Layout
7439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7442 \begin_layout Plain Layout
7448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7451 \begin_layout Plain Layout
7457 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7460 \begin_layout Plain Layout
7466 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7469 \begin_layout Plain Layout
7477 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7480 \begin_layout Plain Layout
7486 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7489 \begin_layout Plain Layout
7495 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7498 \begin_layout Plain Layout
7504 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7507 \begin_layout Plain Layout
7513 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7516 \begin_layout Plain Layout
7524 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7527 \begin_layout Plain Layout
7533 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7536 \begin_layout Plain Layout
7542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7545 \begin_layout Plain Layout
7551 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7554 \begin_layout Plain Layout
7560 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7563 \begin_layout Plain Layout
7571 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7574 \begin_layout Plain Layout
7580 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7583 \begin_layout Plain Layout
7589 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7592 \begin_layout Plain Layout
7598 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
7601 \begin_layout Plain Layout
7607 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7610 \begin_layout Plain Layout
7618 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7621 \begin_layout Plain Layout
7627 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7630 \begin_layout Plain Layout
7636 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7639 \begin_layout Plain Layout
7645 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
7648 \begin_layout Plain Layout
7654 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7657 \begin_layout Plain Layout
7671 \begin_layout Standard
7675 \begin_layout Plain Layout
7689 \begin_layout Standard
7690 \begin_inset Note Greyedout
7693 \begin_layout Plain Layout
7698 When the LaTeX-package
7703 \begin_inset Index idx
7706 \begin_layout Plain Layout
7707 LaTeX-packages ! caption
7712 is used, as in this document, the full page width is used for the caption
7713 when you use the default value of 4
7714 \begin_inset space \thinspace{}
7724 To get in this case exactly a 4
7725 \begin_inset space \thinspace{}
7728 in wide caption, you can either use a value slightly different from 4.0
7729 \begin_inset space \thinspace{}
7733 \begin_inset space \thinspace{}
7737 \begin_inset space \space{}
7741 \begin_inset space \thinspace{}
7744 in, or the LaTeX-command
7748 captionsetup{width=value}
7750 that is provided by the
7762 \begin_layout Subsubsection
7763 Different Captions for Table Pages
7764 \begin_inset Index idx
7767 \begin_layout Plain Layout
7768 Longtables ! Different Captions for Pages
7776 \begin_layout Standard
7777 When the table captions for the following pages should differ from the one
7778 of the first table page, insert a caption with the TeX code command
7781 \begin_layout Standard
7786 caption*{caption text}
7793 \begin_layout Standard
7794 in a dummy caption row that is marked as a header.
7796 \begin_inset space ~
7800 \begin_inset CommandInset ref
7802 reference "tab:DiffCaptions"
7806 is an example of a longtable with different heading where the second caption
7807 doesn't include the table number.
7810 \begin_layout Standard
7812 \begin_inset Tabular
7813 <lyxtabular version="3" rows="59" columns="3">
7814 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
7815 <column alignment="left" valignment="top" width="0cm">
7816 <column alignment="left" valignment="top" width="0pt">
7817 <column alignment="center" valignment="top" width="0pt">
7818 <row caption="true">
7819 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
7822 \begin_layout Plain Layout
7823 \begin_inset Caption
7825 \begin_layout Plain Layout
7827 \begin_inset CommandInset label
7829 name "tab:DiffCaptions"
7834 \begin_inset Argument
7837 \begin_layout Plain Layout
7853 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7856 \begin_layout Plain Layout
7862 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
7865 \begin_layout Plain Layout
7872 <row endfirsthead="true">
7873 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7876 \begin_layout Plain Layout
7879 Example Phone List (ignore the names)
7884 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7887 \begin_layout Plain Layout
7893 <cell multicolumn="2" alignment="center" valignment="top" usebox="none">
7896 \begin_layout Plain Layout
7903 <row endfirsthead="true">
7904 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
7907 \begin_layout Plain Layout
7915 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7918 \begin_layout Plain Layout
7924 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
7927 \begin_layout Plain Layout
7936 <row endhead="true">
7937 <cell alignment="left" valignment="top" leftline="true" usebox="none">
7940 \begin_layout Plain Layout
7944 \begin_layout Plain Layout
7948 caption*{Continued Example Phone List}
7962 <cell alignment="center" valignment="top" leftline="true" usebox="none">
7965 \begin_layout Plain Layout
7971 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
7974 \begin_layout Plain Layout
7981 <row endhead="true">
7982 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
7985 \begin_layout Plain Layout
7993 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
7996 \begin_layout Plain Layout
8002 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8005 \begin_layout Plain Layout
8012 <row endhead="true">
8013 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
8016 \begin_layout Plain Layout
8024 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8027 \begin_layout Plain Layout
8033 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
8036 \begin_layout Plain Layout
8045 <row endfoot="true">
8046 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
8049 \begin_layout Plain Layout
8050 continued on next page
8055 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
8058 \begin_layout Plain Layout
8064 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
8067 \begin_layout Plain Layout
8075 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8078 \begin_layout Plain Layout
8086 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8089 \begin_layout Plain Layout
8095 <cell alignment="right" valignment="top" leftline="true" rightline="true" usebox="none">
8098 \begin_layout Plain Layout
8106 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8109 \begin_layout Plain Layout
8117 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8120 \begin_layout Plain Layout
8126 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8129 \begin_layout Plain Layout
8137 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8140 \begin_layout Plain Layout
8148 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8151 \begin_layout Plain Layout
8157 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8160 \begin_layout Plain Layout
8168 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8171 \begin_layout Plain Layout
8179 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8182 \begin_layout Plain Layout
8188 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8191 \begin_layout Plain Layout
8199 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8202 \begin_layout Plain Layout
8210 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8213 \begin_layout Plain Layout
8219 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8222 \begin_layout Plain Layout
8230 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8233 \begin_layout Plain Layout
8241 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8244 \begin_layout Plain Layout
8250 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8253 \begin_layout Plain Layout
8261 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8264 \begin_layout Plain Layout
8272 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8275 \begin_layout Plain Layout
8281 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8284 \begin_layout Plain Layout
8292 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8295 \begin_layout Plain Layout
8303 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8306 \begin_layout Plain Layout
8312 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8315 \begin_layout Plain Layout
8323 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8326 \begin_layout Plain Layout
8334 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8337 \begin_layout Plain Layout
8343 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8346 \begin_layout Plain Layout
8354 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8357 \begin_layout Plain Layout
8365 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8368 \begin_layout Plain Layout
8374 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8377 \begin_layout Plain Layout
8385 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8388 \begin_layout Plain Layout
8396 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8399 \begin_layout Plain Layout
8405 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8408 \begin_layout Plain Layout
8416 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8419 \begin_layout Plain Layout
8427 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8430 \begin_layout Plain Layout
8436 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8439 \begin_layout Plain Layout
8447 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8450 \begin_layout Plain Layout
8458 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8461 \begin_layout Plain Layout
8467 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8470 \begin_layout Plain Layout
8478 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8481 \begin_layout Plain Layout
8489 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8492 \begin_layout Plain Layout
8498 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8501 \begin_layout Plain Layout
8509 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8512 \begin_layout Plain Layout
8521 \begin_layout Plain Layout
8532 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8535 \begin_layout Plain Layout
8541 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8544 \begin_layout Plain Layout
8552 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8555 \begin_layout Plain Layout
8563 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8566 \begin_layout Plain Layout
8572 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8575 \begin_layout Plain Layout
8583 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8586 \begin_layout Plain Layout
8594 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8597 \begin_layout Plain Layout
8603 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8606 \begin_layout Plain Layout
8614 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8617 \begin_layout Plain Layout
8625 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8628 \begin_layout Plain Layout
8634 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8637 \begin_layout Plain Layout
8645 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8648 \begin_layout Plain Layout
8656 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8659 \begin_layout Plain Layout
8665 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8668 \begin_layout Plain Layout
8676 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8679 \begin_layout Plain Layout
8687 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8690 \begin_layout Plain Layout
8696 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8699 \begin_layout Plain Layout
8707 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8710 \begin_layout Plain Layout
8718 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8721 \begin_layout Plain Layout
8727 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8730 \begin_layout Plain Layout
8738 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8741 \begin_layout Plain Layout
8749 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8752 \begin_layout Plain Layout
8758 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8761 \begin_layout Plain Layout
8769 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8772 \begin_layout Plain Layout
8780 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8783 \begin_layout Plain Layout
8789 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8792 \begin_layout Plain Layout
8800 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8803 \begin_layout Plain Layout
8811 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8814 \begin_layout Plain Layout
8820 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8823 \begin_layout Plain Layout
8831 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8834 \begin_layout Plain Layout
8842 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8845 \begin_layout Plain Layout
8851 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8854 \begin_layout Plain Layout
8862 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8865 \begin_layout Plain Layout
8873 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8876 \begin_layout Plain Layout
8882 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8885 \begin_layout Plain Layout
8893 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8896 \begin_layout Plain Layout
8904 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8907 \begin_layout Plain Layout
8913 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8916 \begin_layout Plain Layout
8924 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8927 \begin_layout Plain Layout
8935 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8938 \begin_layout Plain Layout
8944 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8947 \begin_layout Plain Layout
8955 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8958 \begin_layout Plain Layout
8966 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8969 \begin_layout Plain Layout
8975 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
8978 \begin_layout Plain Layout
8986 <cell alignment="center" valignment="top" leftline="true" usebox="none">
8989 \begin_layout Plain Layout
8997 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9000 \begin_layout Plain Layout
9006 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9009 \begin_layout Plain Layout
9017 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9020 \begin_layout Plain Layout
9028 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9031 \begin_layout Plain Layout
9037 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9040 \begin_layout Plain Layout
9048 <cell multicolumn="1" alignment="left" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9051 \begin_layout Plain Layout
9057 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
9060 \begin_layout Plain Layout
9066 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
9069 \begin_layout Plain Layout
9077 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9080 \begin_layout Plain Layout
9088 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9091 \begin_layout Plain Layout
9097 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9100 \begin_layout Plain Layout
9108 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9111 \begin_layout Plain Layout
9119 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9122 \begin_layout Plain Layout
9128 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9131 \begin_layout Plain Layout
9139 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9142 \begin_layout Plain Layout
9150 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9153 \begin_layout Plain Layout
9159 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9162 \begin_layout Plain Layout
9170 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9173 \begin_layout Plain Layout
9181 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9184 \begin_layout Plain Layout
9190 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9193 \begin_layout Plain Layout
9201 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9204 \begin_layout Plain Layout
9212 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9215 \begin_layout Plain Layout
9221 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9224 \begin_layout Plain Layout
9232 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9235 \begin_layout Plain Layout
9243 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9246 \begin_layout Plain Layout
9252 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9255 \begin_layout Plain Layout
9263 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9266 \begin_layout Plain Layout
9274 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9277 \begin_layout Plain Layout
9283 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9286 \begin_layout Plain Layout
9294 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9297 \begin_layout Plain Layout
9305 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9308 \begin_layout Plain Layout
9314 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9317 \begin_layout Plain Layout
9325 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9328 \begin_layout Plain Layout
9336 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9339 \begin_layout Plain Layout
9345 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9348 \begin_layout Plain Layout
9356 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9359 \begin_layout Plain Layout
9367 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9370 \begin_layout Plain Layout
9376 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9379 \begin_layout Plain Layout
9387 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9390 \begin_layout Plain Layout
9398 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9401 \begin_layout Plain Layout
9407 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9410 \begin_layout Plain Layout
9418 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9421 \begin_layout Plain Layout
9429 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9432 \begin_layout Plain Layout
9438 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9441 \begin_layout Plain Layout
9449 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9452 \begin_layout Plain Layout
9460 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9463 \begin_layout Plain Layout
9469 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9472 \begin_layout Plain Layout
9480 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9483 \begin_layout Plain Layout
9491 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9494 \begin_layout Plain Layout
9500 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9503 \begin_layout Plain Layout
9511 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9514 \begin_layout Plain Layout
9522 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9525 \begin_layout Plain Layout
9531 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9534 \begin_layout Plain Layout
9542 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9545 \begin_layout Plain Layout
9553 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9556 \begin_layout Plain Layout
9562 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9565 \begin_layout Plain Layout
9573 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9576 \begin_layout Plain Layout
9584 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9587 \begin_layout Plain Layout
9593 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9596 \begin_layout Plain Layout
9604 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9607 \begin_layout Plain Layout
9615 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9618 \begin_layout Plain Layout
9624 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9627 \begin_layout Plain Layout
9635 <cell alignment="left" valignment="top" leftline="true" usebox="none">
9638 \begin_layout Plain Layout
9646 <cell alignment="center" valignment="top" leftline="true" usebox="none">
9649 \begin_layout Plain Layout
9655 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
9658 \begin_layout Plain Layout
9666 <cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
9669 \begin_layout Plain Layout
9677 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
9680 \begin_layout Plain Layout
9686 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
9689 \begin_layout Plain Layout
9703 \begin_layout Section
9704 Special Longtable Issues
9705 \begin_inset CommandInset label
9707 name "sec:Special-Longtable-Issues"
9714 \begin_layout Subsection
9715 Longtable Calculation
9716 \begin_inset Index idx
9719 \begin_layout Plain Layout
9720 Longtables ! Calculation
9728 \begin_layout Standard
9729 LaTeX calculates the height of table pages and their page breaks using so
9731 Chunks are parts of tables that held at the same time in LaTeX's memory.
9732 The default value was historically set to only 20 table rows.
9733 If you are using longtables with many pages this may slow down the creation
9735 You can safely increase the chunk size to values of 100-1000 by adding
9736 this command line to your document preamble:
9739 \begin_layout Standard
9744 setcounter{LTchunksize}{100}
9747 \begin_layout Subsection
9748 Floats and Longtables
9749 \begin_inset Index idx
9752 \begin_layout Plain Layout
9761 \begin_layout Standard
9762 There might be problems when a float appears on the same page where a longtable
9764 To avoid such a situation, insert a
9765 \begin_inset Quotes eld
9769 \begin_inset Quotes erd
9774 Insert\SpecialChar \menuseparator
9775 Formatting\SpecialChar \menuseparator
9777 \begin_inset space ~
9782 ) before your longtable.
9785 \begin_layout Subsection
9787 \begin_inset Index idx
9790 \begin_layout Plain Layout
9791 Longtables ! Forced Page Breaks
9799 \begin_layout Standard
9800 By default tables are only broken between rows.
9801 If you have a cell with multiples lines and want to have a page break within
9802 the cell, insert the new line command
9803 \begin_inset Quotes eld
9815 \begin_inset Quotes erd
9818 as TeX-Code at the point of the cell where it can be broken.
9827 command you have to insert in TeX-Code as many
9828 \begin_inset Quotes eld
9836 \begin_inset Quotes erd
9839 characters as the number of the following table columns.
9844 is the character to separate table cells.
9845 Write in TeX-Code after each
9849 the content of the corresponding following cell and delete the content
9851 \begin_inset Newline newline
9862 command, insert as many
9866 characters as the number of table columns before the current column.
9868 \begin_inset space ~
9872 \begin_inset CommandInset ref
9874 reference "tab:ForcedPagebreak"
9878 the cell that should be broken is in the second column followed by another
9880 Therefore the following command was inserted in the cell as TeX-Code after
9882 \begin_inset Quotes eld
9890 \begin_inset Quotes erd
9896 \begin_layout Standard
9906 \begin_inset Newline newline
9912 \begin_layout Standard
9914 \begin_inset Quotes eld
9918 \begin_inset Quotes erd
9921 in the third column of the row was deleted.
9928 is only needed when a page break should definitely occur at this position,
9929 otherwise it would be a conditional break.
9930 If your footer row of the longtable has for a certain reason no upper line
9931 but you would have a horizontal line where the cell is broken, use this
9935 \begin_layout Standard
9943 \begin_inset Newline newline
9951 \begin_layout Standard
9952 When the cell to be broken is in the last column, the command
9955 \begin_layout Standard
9965 \begin_layout Standard
9966 must be inserted as TeX-Code at the beginning of the cell.
9967 This ensures that the part of the cell that will be displayed on the new
9968 page appears with the full width.
9971 \begin_layout Standard
9973 \begin_inset Tabular
9974 <lyxtabular version="3" rows="38" columns="3">
9975 <features islongtable="true" lastFootEmpty="true" longtabularalignment="center">
9976 <column alignment="left" valignment="top" width="0cm">
9977 <column alignment="left" valignment="top" width="3cm">
9978 <column alignment="center" valignment="top" width="0pt">
9979 <row caption="true">
9980 <cell multicolumn="1" alignment="left" valignment="top" usebox="none">
9983 \begin_layout Plain Layout
9984 \begin_inset Caption
9986 \begin_layout Plain Layout
9987 Table with forced page break in table cell
9988 \begin_inset CommandInset label
9990 name "tab:ForcedPagebreak"
9995 \begin_inset Argument
9998 \begin_layout Plain Layout
9999 Table with forced page break in table cell
10014 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10017 \begin_layout Plain Layout
10023 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10026 \begin_layout Plain Layout
10033 <row endfirsthead="true">
10034 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10037 \begin_layout Plain Layout
10040 Example Phone List (ignore the names)
10045 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10048 \begin_layout Plain Layout
10054 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
10057 \begin_layout Plain Layout
10064 <row endfirsthead="true">
10065 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10068 \begin_layout Plain Layout
10076 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10079 \begin_layout Plain Layout
10085 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10088 \begin_layout Plain Layout
10097 <row endhead="true">
10098 <cell alignment="left" valignment="top" leftline="true" usebox="none">
10101 \begin_layout Plain Layout
10105 \begin_layout Plain Layout
10109 caption*{Continued Example Phone List}
10123 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10126 \begin_layout Plain Layout
10132 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10135 \begin_layout Plain Layout
10142 <row endhead="true">
10143 <cell multicolumn="1" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10146 \begin_layout Plain Layout
10154 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10157 \begin_layout Plain Layout
10163 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10166 \begin_layout Plain Layout
10173 <row endhead="true">
10174 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
10177 \begin_layout Plain Layout
10185 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10188 \begin_layout Plain Layout
10194 <cell alignment="center" valignment="top" bottomline="true" leftline="true" rightline="true" usebox="none">
10197 \begin_layout Plain Layout
10206 <row endfoot="true">
10207 <cell multicolumn="1" alignment="right" valignment="top" usebox="none">
10210 \begin_layout Plain Layout
10211 continued on next page
10216 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
10219 \begin_layout Plain Layout
10225 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
10228 \begin_layout Plain Layout
10236 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10239 \begin_layout Plain Layout
10247 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10250 \begin_layout Plain Layout
10256 <cell alignment="right" valignment="top" rightline="true" usebox="none">
10259 \begin_layout Plain Layout
10267 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10270 \begin_layout Plain Layout
10278 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10281 \begin_layout Plain Layout
10287 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10290 \begin_layout Plain Layout
10298 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10301 \begin_layout Plain Layout
10309 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10312 \begin_layout Plain Layout
10318 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10321 \begin_layout Plain Layout
10329 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10332 \begin_layout Plain Layout
10340 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10343 \begin_layout Plain Layout
10349 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10352 \begin_layout Plain Layout
10360 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10363 \begin_layout Plain Layout
10371 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10374 \begin_layout Plain Layout
10380 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10383 \begin_layout Plain Layout
10391 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10394 \begin_layout Plain Layout
10402 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10405 \begin_layout Plain Layout
10411 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10414 \begin_layout Plain Layout
10422 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10425 \begin_layout Plain Layout
10433 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10436 \begin_layout Plain Layout
10442 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10445 \begin_layout Plain Layout
10453 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10456 \begin_layout Plain Layout
10464 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10467 \begin_layout Plain Layout
10473 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10476 \begin_layout Plain Layout
10484 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10487 \begin_layout Plain Layout
10495 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10498 \begin_layout Plain Layout
10504 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10507 \begin_layout Plain Layout
10515 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10518 \begin_layout Plain Layout
10526 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10529 \begin_layout Plain Layout
10535 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10538 \begin_layout Plain Layout
10546 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10549 \begin_layout Plain Layout
10557 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10560 \begin_layout Plain Layout
10566 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10569 \begin_layout Plain Layout
10577 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10580 \begin_layout Plain Layout
10588 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10591 \begin_layout Plain Layout
10597 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10600 \begin_layout Plain Layout
10608 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10611 \begin_layout Plain Layout
10619 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10622 \begin_layout Plain Layout
10628 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10631 \begin_layout Plain Layout
10639 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10642 \begin_layout Plain Layout
10650 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10653 \begin_layout Plain Layout
10659 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10662 \begin_layout Plain Layout
10670 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10673 \begin_layout Plain Layout
10681 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10684 \begin_layout Plain Layout
10690 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10693 \begin_layout Plain Layout
10701 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10704 \begin_layout Plain Layout
10712 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10715 \begin_layout Plain Layout
10721 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10724 \begin_layout Plain Layout
10732 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10735 \begin_layout Plain Layout
10743 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10746 \begin_layout Plain Layout
10752 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10755 \begin_layout Plain Layout
10763 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10766 \begin_layout Plain Layout
10774 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10777 \begin_layout Plain Layout
10783 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10786 \begin_layout Plain Layout
10794 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10797 \begin_layout Plain Layout
10805 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10808 \begin_layout Plain Layout
10814 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10817 \begin_layout Plain Layout
10825 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10828 \begin_layout Plain Layout
10836 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10839 \begin_layout Plain Layout
10845 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10848 \begin_layout Plain Layout
10856 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10859 \begin_layout Plain Layout
10867 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10870 \begin_layout Plain Layout
10876 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10879 \begin_layout Plain Layout
10887 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10890 \begin_layout Plain Layout
10898 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10901 \begin_layout Plain Layout
10907 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10910 \begin_layout Plain Layout
10918 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10921 \begin_layout Plain Layout
10929 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10932 \begin_layout Plain Layout
10934 Fürst von Montecompatri, 11.
10935 Fürst von Sulmona und Vivaro, 10.
10936 Fürst von Rossano, 5.
10937 Herzog von Canemorte, 11.
10938 Herzog von Palombara, 5.
10939 Herzog von Castelchiodato,
10943 \begin_layout Plain Layout
10954 \begin_layout Plain Layout
10962 Herzog von Poggionativo, 11.
10963 Markis von Mentana, Norma, Civitella, Pratica, Moricone und Percille, 11.
10964 Graf von Valinfreda, 11.
10965 Baron von Cropalati, 11.
10966 Herr von Scarpa, Edelmann von Rom, Patrizier von Venedig, Neapel und Genua
10971 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10974 \begin_layout Plain Layout
10982 <cell alignment="center" valignment="top" leftline="true" usebox="none">
10985 \begin_layout Plain Layout
10993 <cell alignment="center" valignment="top" rightline="true" usebox="none">
10996 \begin_layout Plain Layout
11002 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11005 \begin_layout Plain Layout
11013 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11016 \begin_layout Plain Layout
11024 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11027 \begin_layout Plain Layout
11033 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11036 \begin_layout Plain Layout
11044 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11047 \begin_layout Plain Layout
11055 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11058 \begin_layout Plain Layout
11064 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11067 \begin_layout Plain Layout
11075 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11078 \begin_layout Plain Layout
11086 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11089 \begin_layout Plain Layout
11095 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11098 \begin_layout Plain Layout
11106 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11109 \begin_layout Plain Layout
11117 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11120 \begin_layout Plain Layout
11126 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11129 \begin_layout Plain Layout
11137 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11140 \begin_layout Plain Layout
11148 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11151 \begin_layout Plain Layout
11157 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11160 \begin_layout Plain Layout
11168 <cell alignment="center" valignment="top" leftline="true" usebox="none">
11171 \begin_layout Plain Layout
11179 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11182 \begin_layout Plain Layout
11188 <cell alignment="center" valignment="top" rightline="true" usebox="none">
11191 \begin_layout Plain Layout
11199 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11202 \begin_layout Plain Layout
11210 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11213 \begin_layout Plain Layout
11219 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
11222 \begin_layout Plain Layout
11236 \begin_layout Section
11237 Multiple Lines Columns and Rows
11240 \begin_layout Subsection
11241 Multiple Lines in Table Cells
11242 \begin_inset CommandInset label
11244 name "sub:Multiple-Lines-in"
11249 \begin_inset Index idx
11252 \begin_layout Plain Layout
11253 Multiple Lines in Table Cells
11259 \begin_inset Index idx
11262 \begin_layout Plain Layout
11271 \begin_layout Standard
11273 \begin_inset Float table
11279 \begin_layout Plain Layout
11280 \begin_inset Caption
11282 \begin_layout Plain Layout
11283 \begin_inset CommandInset label
11285 name "tab:Table-with-multiple"
11289 Table with multiple lines in cells
11297 \begin_layout Plain Layout
11299 \begin_inset Tabular
11300 <lyxtabular version="3" rows="3" columns="3">
11301 <features tabularvalignment="middle">
11302 <column alignment="center" valignment="middle" width="2.5cm">
11303 <column alignment="center" valignment="middle" width="0">
11304 <column alignment="center" valignment="middle" width="0">
11306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11309 \begin_layout Plain Layout
11311 \begin_inset Newline linebreak
11319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11322 \begin_layout Plain Layout
11328 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11331 \begin_layout Plain Layout
11339 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11342 \begin_layout Plain Layout
11348 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11351 \begin_layout Plain Layout
11357 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11360 \begin_layout Plain Layout
11368 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11371 \begin_layout Plain Layout
11377 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11380 \begin_layout Plain Layout
11386 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11389 \begin_layout Plain Layout
11408 \begin_layout Standard
11409 Setting a fixed width for a column enables you to enter text as a paragraph
11410 with multiple lines and hyphenation.
11413 \begin_layout Standard
11415 \begin_inset space ~
11419 \begin_inset CommandInset ref
11421 reference "tab:Table-with-multiple"
11425 , create a 3×3 table, mark the first cell and right-click on it.
11426 In the appearing table dialog we set a cell width of 2.5
11427 \begin_inset space \thinspace{}
11430 cm and choose centered for the vertical and horizontal alignment.
11431 The vertical alignment is used for all cells of the row.
11432 As our text is smaller than 2.5
11433 \begin_inset space \thinspace{}
11436 cm, only one line will appear.
11437 To get two lines, a justified line break (shortcut
11440 arg "newline-insert linebreak"
11444 If the text is wider than the set cell width, it will automatically be
11445 broken to several lines.
11448 \begin_layout Standard
11449 If you have a long word in a cell with a fixed width, it cannot be hyphenated
11450 by LaTeX if it is the first entry.
11451 Therefore you need to insert something to prevent the word not being the
11453 So add a horizontal space of 0
11454 \begin_inset space \thinspace{}
11457 pt before the word.
11458 As the space is zero, it doesn't change the output.
11460 \begin_inset space ~
11464 \begin_inset CommandInset ref
11466 reference "tab:Table-with-and"
11473 \begin_layout Standard
11474 \begin_inset Float table
11480 \begin_layout Plain Layout
11481 \begin_inset Caption
11483 \begin_layout Plain Layout
11484 \begin_inset CommandInset label
11486 name "tab:Table-with-and"
11490 Table with and without hyphenation
11498 \begin_layout Plain Layout
11499 \begin_inset space \hfill{}
11503 \begin_inset Tabular
11504 <lyxtabular version="3" rows="3" columns="3">
11505 <features tabularvalignment="middle">
11506 <column alignment="center" valignment="middle" width="2.5cm">
11507 <column alignment="center" valignment="middle" width="0">
11508 <column alignment="center" valignment="middle" width="0">
11510 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11513 \begin_layout Plain Layout
11514 verylongtablecellword
11519 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11522 \begin_layout Plain Layout
11528 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11531 \begin_layout Plain Layout
11539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11542 \begin_layout Plain Layout
11548 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11551 \begin_layout Plain Layout
11557 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11560 \begin_layout Plain Layout
11568 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11571 \begin_layout Plain Layout
11577 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11580 \begin_layout Plain Layout
11586 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11589 \begin_layout Plain Layout
11601 \begin_inset space \hfill{}
11605 \begin_inset Tabular
11606 <lyxtabular version="3" rows="3" columns="3">
11607 <features tabularvalignment="middle">
11608 <column alignment="center" valignment="middle" width="2.5cm">
11609 <column alignment="center" valignment="middle" width="0">
11610 <column alignment="center" valignment="middle" width="0">
11612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11615 \begin_layout Plain Layout
11616 \begin_inset space \hspace{}
11620 verylongtablecellword
11625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11628 \begin_layout Plain Layout
11634 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11637 \begin_layout Plain Layout
11645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11648 \begin_layout Plain Layout
11654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11657 \begin_layout Plain Layout
11663 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11666 \begin_layout Plain Layout
11674 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11677 \begin_layout Plain Layout
11683 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11686 \begin_layout Plain Layout
11692 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11695 \begin_layout Plain Layout
11707 \begin_inset space \hfill{}
11718 \begin_layout Subsection
11720 \begin_inset CommandInset label
11722 name "sub:Multicolumns"
11727 \begin_inset Index idx
11730 \begin_layout Plain Layout
11737 \begin_inset Index idx
11740 \begin_layout Plain Layout
11741 Table ! Multicolumns
11749 \begin_layout Subsubsection
11753 \begin_layout Standard
11754 To merge cells over multiple columns, select as many cells within a row
11755 as you want to merge and use either the table-toolbar button
11760 arg "inset-modify tabular multicolumn"
11767 Edit\SpecialChar \menuseparator
11768 Table\SpecialChar \menuseparator
11771 , or right click on the marked cells and choose
11775 in the context menu.
11778 \begin_layout Standard
11779 Multicolumns have there own cell settings.
11780 That means changing cell borders, cell alignment, and the width only affects
11782 Here is an example table with a multicolumn cell in the first row and one
11783 in the last row without the upper border:
11786 \begin_layout Standard
11788 \begin_inset Tabular
11789 <lyxtabular version="3" rows="3" columns="4">
11790 <features firstHeadTopDL="true" firstHeadBottomDL="true" tabularvalignment="middle">
11791 <column alignment="center" valignment="top" width="0pt">
11792 <column alignment="center" valignment="middle" width="0">
11793 <column alignment="center" valignment="top" width="0in">
11794 <column alignment="center" valignment="top" width="0pt">
11796 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11799 \begin_layout Plain Layout
11805 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
11808 \begin_layout Plain Layout
11814 <cell multicolumn="2" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11817 \begin_layout Plain Layout
11823 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11826 \begin_layout Plain Layout
11834 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11837 \begin_layout Plain Layout
11852 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11855 \begin_layout Plain Layout
11861 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
11864 \begin_layout Plain Layout
11870 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
11873 \begin_layout Plain Layout
11881 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11884 \begin_layout Plain Layout
11890 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
11893 \begin_layout Plain Layout
11899 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
11902 \begin_layout Plain Layout
11908 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
11911 \begin_layout Plain Layout
11925 \begin_layout Subsubsection
11926 Multicolumn Calculations
11927 \begin_inset CommandInset label
11929 name "sub:Multicolumn-Calculations"
11934 \begin_inset Index idx
11937 \begin_layout Plain Layout
11938 Multicolumns ! Calculations
11946 \begin_layout Standard
11947 LyX supports multicolumns directly, but we have to take account of the cell
11948 width of the columns spanned by the multicolumn cell.
11951 \begin_layout Standard
11952 \begin_inset Float table
11958 \begin_layout Plain Layout
11959 \begin_inset Caption
11961 \begin_layout Plain Layout
11962 \begin_inset CommandInset label
11964 name "tab:Table-with-centered"
11968 Table with centered multicolumn text above two columns that have exactly
11969 half the width of the multicolumn cell
11970 \begin_inset Argument
11973 \begin_layout Plain Layout
11974 Perfect multicolumn table
11987 \begin_layout Plain Layout
11989 \begin_inset Tabular
11990 <lyxtabular version="3" rows="3" columns="3">
11991 <features tabularvalignment="middle">
11992 <column alignment="center" valignment="middle" width="0" special=">{\centering}m{1.25cm-6.2pt}">
11993 <column alignment="center" valignment="middle" width="0">
11994 <column alignment="center" valignment="top" width="0">
11996 <cell multicolumn="1" alignment="center" valignment="middle" topline="true" leftline="true" usebox="none" special=">{\centering}m{2.5cm}">
11999 \begin_layout Plain Layout
12000 multiple lines multicolumn
12005 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12008 \begin_layout Plain Layout
12014 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12017 \begin_layout Plain Layout
12025 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12028 \begin_layout Plain Layout
12034 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12037 \begin_layout Plain Layout
12043 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12046 \begin_layout Plain Layout
12054 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12057 \begin_layout Plain Layout
12063 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12066 \begin_layout Plain Layout
12072 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12075 \begin_layout Plain Layout
12094 \begin_layout Standard
12095 To create for example Table
12096 \begin_inset space ~
12100 \begin_inset CommandInset ref
12102 reference "tab:Table-with-centered"
12106 , mark the first two cells in the first row of a 3×3 table and right-click
12108 Now choose for this cell
12117 \begin_inset space \thinspace{}
12120 cm in the table dialog.
12121 The merged columns should have exactly half the width of the multicolumn
12122 cell, so that you would set a width of 1.25
12123 \begin_inset space \thinspace{}
12126 cm for the first column.
12127 The second column has then automatically a width of 1.25
12128 \begin_inset space \thinspace{}
12131 cm (multicolumn width - width of first column).
12132 This was done for Table
12133 \begin_inset space ~
12137 \begin_inset CommandInset ref
12139 reference "tab:Table-without-half"
12146 \begin_layout Standard
12147 \begin_inset Float table
12152 \begin_layout Plain Layout
12153 \begin_inset Caption
12155 \begin_layout Plain Layout
12156 \begin_inset CommandInset label
12158 name "tab:Table-without-half"
12162 Table where the spanned table columns are not exactly half the width of
12163 the multicolumn cell
12164 \begin_inset Argument
12167 \begin_layout Plain Layout
12168 Imperfect multicolumn table
12181 \begin_layout Plain Layout
12183 \begin_inset Tabular
12184 <lyxtabular version="3" rows="3" columns="3">
12185 <features tabularvalignment="middle">
12186 <column alignment="center" valignment="top" width="1.25cm">
12187 <column alignment="center" valignment="top" width="0">
12188 <column alignment="center" valignment="top" width="0">
12190 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" width="2.5cm">
12193 \begin_layout Plain Layout
12194 multiple lines multicolumn
12199 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12202 \begin_layout Plain Layout
12208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12211 \begin_layout Plain Layout
12219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12222 \begin_layout Plain Layout
12228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12231 \begin_layout Plain Layout
12237 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12240 \begin_layout Plain Layout
12248 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12251 \begin_layout Plain Layout
12257 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12260 \begin_layout Plain Layout
12266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12269 \begin_layout Plain Layout
12288 \begin_layout Standard
12289 You can see that the first column is not half the width of the multicolumn
12290 cell, it is a bit bigger.
12291 The reason is that the specified width of a cell
12292 \begin_inset Formula $W_{g}$
12295 is not its total width
12296 \begin_inset Formula $W_{\mathrm{tot}}$
12299 because a cell is always a bit larger than specified.
12301 \begin_inset space ~
12305 \begin_inset CommandInset ref
12307 reference "cha:Explanation-of-Equation"
12311 explains this in detail.
12314 \begin_layout Standard
12316 \begin_inset Formula $W_{g\, n}$
12319 which the user needs to set when
12323 columns are spanned can be calculated, so that each column has a total
12325 \begin_inset Formula $W_{\mathrm{tot\, multicolumn}}/n$
12329 \begin_inset Formula
12331 W_{g\, n}=(W_{g\,\mathrm{multicolumn}}+(1-n)\cdot(12.4\,\mathrm{pt}))/n\label{eq:Wgn}
12339 \begin_layout Standard
12340 In our case we have
12341 \begin_inset Formula $n=2$
12345 \begin_inset Formula $W_{g\,\mathrm{multicolumn}}=2.5\,$
12348 cm and the default values for the lengths, so that equation
12349 \begin_inset CommandInset ref
12356 \begin_inset Formula
12358 W_{g\,2}=1.25\,\mathrm{cm}-6.2\,\mathrm{pt}
12366 \begin_layout Standard
12367 To enable calculations in LaTeX, the LaTeX-package
12371 must be loaded with the document preamble line
12372 \begin_inset Index idx
12375 \begin_layout Plain Layout
12376 LaTeX-packages ! calc
12384 \begin_layout Standard
12392 \begin_layout Standard
12393 LyX does not allow you to calculate lengths in the
12397 field of the table dialog.
12398 Therefore you have to format the column by inserting a LaTeX-argument in
12400 Here is an overview about the arguments:
12403 \begin_layout Itemize
12408 creates cell with a fixed width, its text is vertically top-aligned
12411 \begin_layout Itemize
12416 creates cell with a fixed width, its text is vertically centered
12419 \begin_layout Itemize
12424 creates cell with a fixed width, its text is vertically bottom-aligned
12427 \begin_layout Standard
12428 By entering a LaTeX-argument, all cell settings set in the table dialog
12432 \begin_layout Standard
12433 \begin_inset Note Greyedout
12436 \begin_layout Plain Layout
12441 Due to a bug, LyX shows the overwritten settings anyway.
12449 \begin_layout Standard
12450 As the text should be horizontally centered, the command
12457 You can now enter the following LaTeX-argument for the first spanned column:
12460 \begin_layout Standard
12465 centering}m{1.25cm-6.2pt}
12468 \begin_layout Standard
12473 means, that the commands inside the braces are applied before the cell
12477 \begin_layout Standard
12478 Although we have chosen centered alignment for the text of the multicolumn
12479 cell, it is still left aligned.
12480 This is because LyX only applies the alignment to single columns.
12481 So for the multicolumn cell we have to use the LaTeX-argument
12484 \begin_layout Standard
12492 \begin_layout Subsection
12494 \begin_inset CommandInset label
12496 name "sub:Multirows"
12501 \begin_inset Index idx
12504 \begin_layout Plain Layout
12511 \begin_inset Index idx
12514 \begin_layout Plain Layout
12523 \begin_layout Standard
12524 To merge cells over multiple rows, select as many cells within a column
12525 as you want to merge and use either the table-toolbar button
12530 arg "inset-modify tabular multirow"
12537 Edit\SpecialChar \menuseparator
12538 Table\SpecialChar \menuseparator
12541 , or right click on the marked cells and choose
12545 in the context menu.
12548 \begin_layout Standard
12549 Here is an example table with a multirow in the first column:
12552 \begin_layout Standard
12554 \begin_inset Tabular
12555 <lyxtabular version="3" rows="3" columns="3">
12556 <features tabularvalignment="middle">
12557 <column alignment="center" valignment="top" width="0pt">
12558 <column alignment="center" valignment="top" width="0">
12559 <column alignment="center" valignment="top" width="0">
12561 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12564 \begin_layout Plain Layout
12570 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12573 \begin_layout Plain Layout
12579 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12582 \begin_layout Plain Layout
12590 <cell multirow="3" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12593 \begin_layout Plain Layout
12599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12602 \begin_layout Plain Layout
12608 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12611 \begin_layout Plain Layout
12619 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12622 \begin_layout Plain Layout
12628 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12631 \begin_layout Plain Layout
12637 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12640 \begin_layout Plain Layout
12654 \begin_layout Standard
12655 The width of multirow cells is set by setting the width and alignment for
12661 shifts the content of the multirow up/down if the offset is positive/negative.
12664 \begin_layout Standard
12665 If the column of a multirow cell has no explicit width, the multirow cell
12666 inherits the alignment of the column.
12667 Otherwise it is by default left-aligned.
12668 To override the default, renew the command
12677 \begin_layout Standard
12689 \begin_layout Standard
12690 in the document preamble.
12691 Then all entries of multirow cells in the document are centered.
12692 If centering is only needed for several tables, you can renew the command
12693 in a TeX-Code box just before the table instead of the preamble.
12694 If the text should be right-aligned, replace
12707 To return to left-alignment
12716 \begin_layout Standard
12717 This is an example table with a right-aligned multirow cell that has a vertical
12719 \begin_inset space \thinspace{}
12723 \begin_inset space \thinspace{}
12729 \begin_layout Standard
12735 \begin_layout Plain Layout
12749 \begin_inset Tabular
12750 <lyxtabular version="3" rows="4" columns="3">
12751 <features tabularvalignment="middle">
12752 <column alignment="center" valignment="top" width="3cm">
12753 <column alignment="center" valignment="top" width="0">
12754 <column alignment="center" valignment="top" width="0">
12756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12759 \begin_layout Plain Layout
12765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12768 \begin_layout Plain Layout
12774 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12777 \begin_layout Plain Layout
12785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12788 \begin_layout Plain Layout
12794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12797 \begin_layout Plain Layout
12803 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12806 \begin_layout Plain Layout
12814 <cell multirow="3" mroffset="-4mm" alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12817 \begin_layout Plain Layout
12823 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
12826 \begin_layout Plain Layout
12832 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12835 \begin_layout Plain Layout
12843 <cell multirow="4" alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12846 \begin_layout Plain Layout
12852 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12855 \begin_layout Plain Layout
12861 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12864 \begin_layout Plain Layout
12879 \begin_layout Plain Layout
12895 \begin_layout Standard
12896 To start a new line in a multirow you can use a forced line break (shortcut
12900 arg "newline-insert newline"
12903 ) but this will not respect the cell lines as demonstrated in this table:
12906 \begin_layout Standard
12909 \begin_inset Tabular
12910 <lyxtabular version="3" rows="3" columns="2">
12911 <features tabularvalignment="middle">
12912 <column alignment="left" valignment="middle" width="2cm">
12913 <column alignment="center" valignment="top" width="0">
12915 <cell multirow="3" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12918 \begin_layout Plain Layout
12920 \begin_inset Newline newline
12924 \begin_inset Newline newline
12932 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12935 \begin_layout Plain Layout
12943 <cell multirow="4" alignment="left" valignment="middle" topline="true" bottomline="true" leftline="true" usebox="none">
12946 \begin_layout Plain Layout
12952 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
12955 \begin_layout Plain Layout
12963 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
12966 \begin_layout Plain Layout
12972 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
12975 \begin_layout Plain Layout
12989 \begin_layout Standard
12990 Therefore be careful with forced line breaks.
12993 \begin_layout Section
12995 \begin_inset CommandInset label
12997 name "sec:Formal-Tables"
13002 \begin_inset Index idx
13005 \begin_layout Plain Layout
13014 \begin_layout Standard
13015 Tables are often typeset in books similar to Table
13016 \begin_inset space ~
13020 \begin_inset CommandInset ref
13022 reference "tab:Example-booktabs-table"
13027 This kind of tables is called
13028 \begin_inset Quotes eld
13036 \begin_inset Quotes erd
13040 To make a table a formal table use the option
13048 tab of the table dialog.
13051 \begin_layout Standard
13052 \begin_inset Float table
13058 \begin_layout Plain Layout
13059 \begin_inset Caption
13061 \begin_layout Plain Layout
13062 \begin_inset CommandInset label
13064 name "tab:Example-booktabs-table"
13068 Example booktabs-table
13076 \begin_layout Plain Layout
13078 \begin_inset Tabular
13079 <lyxtabular version="3" rows="8" columns="4">
13080 <features booktabs="true" tabularvalignment="middle">
13081 <column alignment="center" valignment="top" width="0">
13082 <column alignment="center" valignment="top" width="0">
13083 <column alignment="center" valignment="top" width="0">
13084 <column alignment="center" valignment="top" width="0">
13086 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13089 \begin_layout Plain Layout
13095 <cell alignment="center" valignment="top" topline="true" usebox="none">
13098 \begin_layout Plain Layout
13100 \begin_inset space \thinspace{}
13108 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
13111 \begin_layout Plain Layout
13113 \begin_inset space \thinspace{}
13121 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13124 \begin_layout Plain Layout
13132 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13135 \begin_layout Plain Layout
13139 \begin_layout Plain Layout
13152 \begin_layout Plain Layout
13161 Detector thickness in µm
13166 <cell alignment="center" valignment="top" usebox="none">
13169 \begin_layout Plain Layout
13175 <cell alignment="center" valignment="top" usebox="none">
13178 \begin_layout Plain Layout
13184 <cell alignment="center" valignment="top" usebox="none">
13187 \begin_layout Plain Layout
13195 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
13198 \begin_layout Plain Layout
13204 <cell alignment="center" valignment="top" topline="true" usebox="none">
13207 \begin_layout Plain Layout
13213 <cell alignment="center" valignment="top" topline="true" usebox="none">
13216 \begin_layout Plain Layout
13222 <cell alignment="center" valignment="top" topline="true" usebox="none">
13225 \begin_layout Plain Layout
13232 <row topspace="default">
13233 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13236 \begin_layout Plain Layout
13237 Spatial resolution in µm
13242 <cell alignment="center" valignment="top" usebox="none">
13245 \begin_layout Plain Layout
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
13270 <row topspace="default">
13271 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13274 \begin_layout Plain Layout
13276 \begin_inset Formula $f_{\mathrm{max}}$
13284 <cell alignment="center" valignment="top" usebox="none">
13287 \begin_layout Plain Layout
13293 <cell alignment="center" valignment="top" usebox="none">
13296 \begin_layout Plain Layout
13302 <cell alignment="center" valignment="top" usebox="none">
13305 \begin_layout Plain Layout
13312 <row topspace="default">
13313 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13316 \begin_layout Plain Layout
13320 \begin_layout Plain Layout
13324 cmidrule(l{10pt}){1-1}
13329 LSF-spatial resolution
13334 <cell alignment="center" valignment="top" usebox="none">
13337 \begin_layout Plain Layout
13343 <cell alignment="center" valignment="top" usebox="none">
13346 \begin_layout Plain Layout
13352 <cell alignment="center" valignment="top" usebox="none">
13355 \begin_layout Plain Layout
13363 <cell alignment="center" valignment="top" rightline="true" usebox="none">
13366 \begin_layout Plain Layout
13372 <cell alignment="center" valignment="top" usebox="none">
13375 \begin_layout Plain Layout
13381 <cell alignment="center" valignment="top" usebox="none">
13384 \begin_layout Plain Layout
13390 <cell alignment="center" valignment="top" usebox="none">
13393 \begin_layout Plain Layout
13401 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
13404 \begin_layout Plain Layout
13410 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13413 \begin_layout Plain Layout
13419 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13422 \begin_layout Plain Layout
13428 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
13431 \begin_layout Plain Layout
13450 \begin_layout Standard
13451 Spaces to table rows can be added using the
13455 tab of the table dialog as described in section
13456 \begin_inset space ~
13460 \begin_inset CommandInset ref
13462 reference "sub:Row-Spacing"
13469 \begin_layout Standard
13470 Unlike normal tables, formal tables have no vertical table lines.
13471 The horizontal table lines can be set as for normal tables but they appear
13472 with different widths in the output:
13473 \begin_inset Newline newline
13476 The first and the last table line have a default width of 0.08
13477 \begin_inset space \thinspace{}
13480 em while the other lines have a default width of 0.05
13481 \begin_inset space \thinspace{}
13487 \begin_layout Standard
13488 The default widths can be changed with the following preamble lines
13491 \begin_layout Standard
13501 \begin_inset Newline newline
13513 \begin_layout Standard
13514 This example is for the first line, the so called
13519 If you want to change the width for the last line, replace
13528 To change the width for the other lines replace
13537 You can use all units listed in appendix
13538 \begin_inset space ~
13542 \begin_inset CommandInset ref
13544 reference "cha:Units-available-in"
13551 \begin_layout Standard
13552 Lines that do not span all table columns can be created by setting a table
13553 line for multicolumn cells.
13554 LyX will then internally use the command
13560 to create this line.
13564 \begin_layout Standard
13569 cmidrule[width](trim){startcol-endcol}
13572 \begin_layout Standard
13579 are currently not supported by LyX so you have to use TeX-Code to be able
13587 s can manually be created by inserting the command as TeX-Code as the first
13588 cell entry of the first cell of a row.
13589 The line is then drawn in the output above the current row.
13592 \begin_layout Standard
13593 The default for the width is 0.03
13594 \begin_inset space \thinspace{}
13598 Startcol is the number of the column where the line starts and endcol the
13599 column number where the line ends.
13600 The endcol always needs to be specified, also when the line should span
13602 The optional parameter trim could be either
13610 where the trimwidth is also optional.
13611 Using for example the parameter
13615 means that the line is trimmed from its left end by 2
13616 \begin_inset space \thinspace{}
13620 If you don't specify the trimwidth the lines are trimmed by the default
13622 \begin_inset space \thinspace{}
13628 \begin_layout Standard
13629 \begin_inset VSpace bigskip
13633 \begin_inset space ~
13637 \begin_inset CommandInset ref
13639 reference "tab:Example-booktabs-table"
13643 was created using the commands
13646 \begin_layout Standard
13656 \begin_layout Standard
13657 at the beginning of the second row and
13660 \begin_layout Standard
13665 cmidrule(l{10pt}){1-1}
13668 \begin_layout Standard
13672 \begin_layout Standard
13673 \begin_inset VSpace bigskip
13679 \begin_layout Standard
13680 You might want to have overlapping
13687 \begin_inset space ~
13691 \begin_inset CommandInset ref
13693 reference "tab:Special-booktabs-table"
13698 This can be achieved with the TeX-Code command
13701 \begin_layout Standard
13709 \begin_layout Standard
13710 The command that was used for the second row of Table
13711 \begin_inset space ~
13715 \begin_inset CommandInset ref
13717 reference "tab:Special-booktabs-table"
13724 \begin_layout Standard
13738 \begin_layout Standard
13739 The command for the sixth row is
13742 \begin_layout Standard
13754 \begin_layout Standard
13755 \begin_inset VSpace bigskip
13761 \begin_layout Standard
13762 If you are anyway not satisfied with the border line spacing, you can use
13763 the following command to produce lines that span over all table columns
13768 \begin_layout Standard
13773 specialrule{width}{space above}{space below}
13776 \begin_layout Standard
13777 For more information about these features, refer to the manual of the LaTeX-pack
13783 \begin_inset CommandInset citation
13790 \begin_inset Index idx
13793 \begin_layout Plain Layout
13794 LaTeX-packages ! booktabs
13802 \begin_layout Standard
13803 \begin_inset Float table
13809 \begin_layout Plain Layout
13810 \begin_inset Caption
13812 \begin_layout Plain Layout
13813 \begin_inset CommandInset label
13815 name "tab:Special-booktabs-table"
13819 Special booktabs-table
13827 \begin_layout Plain Layout
13829 \begin_inset Tabular
13830 <lyxtabular version="3" rows="8" columns="4">
13831 <features booktabs="true" tabularvalignment="middle">
13832 <column alignment="center" valignment="top" width="0">
13833 <column alignment="center" valignment="top" width="0">
13834 <column alignment="center" valignment="top" width="0">
13835 <column alignment="center" valignment="top" width="0">
13837 <cell alignment="center" valignment="top" topline="true" usebox="none">
13840 \begin_layout Plain Layout
13846 <cell alignment="center" valignment="top" topline="true" usebox="none">
13849 \begin_layout Plain Layout
13851 \begin_inset space \thinspace{}
13859 <cell multicolumn="1" alignment="center" valignment="top" topline="true" usebox="none">
13862 \begin_layout Plain Layout
13864 \begin_inset space \thinspace{}
13872 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
13875 \begin_layout Plain Layout
13883 <cell alignment="center" valignment="top" usebox="none">
13886 \begin_layout Plain Layout
13890 \begin_layout Plain Layout
13903 \begin_layout Plain Layout
13916 \begin_layout Plain Layout
13929 \begin_layout Plain Layout
13938 Detector thickness in µm
13943 <cell alignment="center" valignment="top" usebox="none">
13946 \begin_layout Plain Layout
13952 <cell alignment="center" valignment="top" usebox="none">
13955 \begin_layout Plain Layout
13961 <cell alignment="center" valignment="top" usebox="none">
13964 \begin_layout Plain Layout
13972 <cell alignment="center" valignment="top" topline="true" usebox="none">
13975 \begin_layout Plain Layout
13981 <cell alignment="center" valignment="top" topline="true" usebox="none">
13984 \begin_layout Plain Layout
13990 <cell alignment="center" valignment="top" topline="true" usebox="none">
13993 \begin_layout Plain Layout
13999 <cell alignment="center" valignment="top" topline="true" usebox="none">
14002 \begin_layout Plain Layout
14009 <row topspace="default">
14010 <cell alignment="center" valignment="top" usebox="none">
14013 \begin_layout Plain Layout
14014 Spatial resolution in µm
14019 <cell alignment="center" valignment="top" usebox="none">
14022 \begin_layout Plain Layout
14028 <cell alignment="center" valignment="top" usebox="none">
14031 \begin_layout Plain Layout
14037 <cell alignment="center" valignment="top" usebox="none">
14040 \begin_layout Plain Layout
14047 <row topspace="default">
14048 <cell alignment="center" valignment="top" usebox="none">
14051 \begin_layout Plain Layout
14053 \begin_inset Formula $f_{\mathrm{max}}$
14061 <cell alignment="center" valignment="top" usebox="none">
14064 \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
14090 <cell alignment="center" valignment="top" topline="true" usebox="none">
14093 \begin_layout Plain Layout
14097 \begin_layout Plain Layout
14110 \begin_layout Plain Layout
14119 LSF-spatial resolution
14124 <cell alignment="center" valignment="top" topline="true" usebox="none">
14127 \begin_layout Plain Layout
14133 <cell alignment="center" valignment="top" topline="true" usebox="none">
14136 \begin_layout Plain Layout
14142 <cell alignment="center" valignment="top" topline="true" usebox="none">
14145 \begin_layout Plain Layout
14153 <cell alignment="center" valignment="top" usebox="none">
14156 \begin_layout Plain Layout
14162 <cell alignment="center" valignment="top" usebox="none">
14165 \begin_layout Plain Layout
14171 <cell alignment="center" valignment="top" usebox="none">
14174 \begin_layout Plain Layout
14180 <cell alignment="center" valignment="top" usebox="none">
14183 \begin_layout Plain Layout
14191 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14194 \begin_layout Plain Layout
14200 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14203 \begin_layout Plain Layout
14209 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14212 \begin_layout Plain Layout
14218 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
14221 \begin_layout Plain Layout
14240 \begin_layout Section
14241 Vertical Table Alignment
14242 \begin_inset Index idx
14245 \begin_layout Plain Layout
14254 \begin_layout Standard
14255 To align tables vertically in a text line the table must be inside a box.
14256 The box can then be vertically aligned as described in section
14257 \begin_inset space ~
14261 \begin_inset CommandInset ref
14263 reference "sec:Box-Dialog"
14270 \begin_layout Standard
14271 In the following example the tables are inside a minipage
14275 \begin_layout Plain Layout
14276 Minipages are described in section
14277 \begin_inset space ~
14281 \begin_inset CommandInset ref
14283 reference "sec:Minipages"
14292 box that has a width of 15
14293 \begin_inset space \thinspace{}
14299 \begin_layout Itemize
14301 \begin_inset Box Frameless
14311 height_special "totalheight"
14314 \begin_layout Plain Layout
14315 \begin_inset Tabular
14316 <lyxtabular version="3" rows="3" columns="3">
14317 <features tabularvalignment="middle">
14318 <column alignment="center" valignment="top" width="0">
14319 <column alignment="center" valignment="top" width="0">
14320 <column alignment="center" valignment="top" width="0">
14322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14325 \begin_layout Plain Layout
14331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14334 \begin_layout Plain Layout
14340 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14343 \begin_layout Plain Layout
14351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14354 \begin_layout Plain Layout
14360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14363 \begin_layout Plain Layout
14369 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14372 \begin_layout Plain Layout
14380 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14383 \begin_layout Plain Layout
14389 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14392 \begin_layout Plain Layout
14398 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14401 \begin_layout Plain Layout
14421 \begin_layout Plain Layout
14433 \begin_inset Box Frameless
14443 height_special "totalheight"
14446 \begin_layout Plain Layout
14447 \begin_inset Tabular
14448 <lyxtabular version="3" rows="3" columns="3">
14449 <features tabularvalignment="middle">
14450 <column alignment="center" valignment="top" width="0">
14451 <column alignment="center" valignment="top" width="0">
14452 <column alignment="center" valignment="top" width="0">
14454 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14457 \begin_layout Plain Layout
14463 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14466 \begin_layout Plain Layout
14472 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14475 \begin_layout Plain Layout
14483 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14486 \begin_layout Plain Layout
14492 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14495 \begin_layout Plain Layout
14501 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14504 \begin_layout Plain Layout
14512 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14515 \begin_layout Plain Layout
14521 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14524 \begin_layout Plain Layout
14530 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14533 \begin_layout Plain Layout
14553 \begin_layout Plain Layout
14563 \begin_layout Itemize
14565 \begin_inset Box Frameless
14575 height_special "totalheight"
14578 \begin_layout Plain Layout
14579 \begin_inset Tabular
14580 <lyxtabular version="3" rows="3" columns="3">
14581 <features tabularvalignment="middle">
14582 <column alignment="center" valignment="top" width="0">
14583 <column alignment="center" valignment="top" width="0">
14584 <column alignment="center" valignment="top" width="0">
14586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14589 \begin_layout Plain Layout
14595 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14598 \begin_layout Plain Layout
14604 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14607 \begin_layout Plain Layout
14615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14618 \begin_layout Plain Layout
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" rightline="true" usebox="none">
14636 \begin_layout Plain Layout
14644 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14647 \begin_layout Plain Layout
14653 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14656 \begin_layout Plain Layout
14662 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14665 \begin_layout Plain Layout
14684 \begin_layout Itemize
14686 \begin_inset Box Frameless
14696 height_special "totalheight"
14699 \begin_layout Plain Layout
14700 \begin_inset Tabular
14701 <lyxtabular version="3" rows="3" columns="3">
14702 <features tabularvalignment="middle">
14703 <column alignment="center" valignment="top" width="0">
14704 <column alignment="center" valignment="top" width="0">
14705 <column alignment="center" valignment="top" width="0">
14707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14710 \begin_layout Plain Layout
14716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14719 \begin_layout Plain Layout
14725 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14728 \begin_layout Plain Layout
14736 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14739 \begin_layout Plain Layout
14745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14748 \begin_layout Plain Layout
14754 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14757 \begin_layout Plain Layout
14765 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14768 \begin_layout Plain Layout
14774 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14777 \begin_layout Plain Layout
14783 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14786 \begin_layout Plain Layout
14806 \begin_layout Plain Layout
14818 \begin_inset Box Frameless
14828 height_special "totalheight"
14831 \begin_layout Plain Layout
14832 \begin_inset Tabular
14833 <lyxtabular version="3" rows="3" columns="3">
14834 <features tabularvalignment="middle">
14835 <column alignment="center" valignment="top" width="0">
14836 <column alignment="center" valignment="top" width="0">
14837 <column alignment="center" valignment="top" width="0">
14839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14842 \begin_layout Plain Layout
14848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14851 \begin_layout Plain Layout
14857 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14860 \begin_layout Plain Layout
14868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14871 \begin_layout Plain Layout
14877 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
14880 \begin_layout Plain Layout
14886 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
14889 \begin_layout Plain Layout
14897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14900 \begin_layout Plain Layout
14906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14909 \begin_layout Plain Layout
14915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14918 \begin_layout Plain Layout
14938 \begin_layout Plain Layout
14948 \begin_layout Standard
14949 As you will see, the content of the first and last table row is not correctly
14951 To get this alignment, the minipage box must be set into a raisebox
14955 \begin_layout Plain Layout
14956 Raiseboxes are described in section
14957 \begin_inset space ~
14961 \begin_inset CommandInset ref
14963 reference "sub:Vertical-Alignment"
14973 In the example above the second table in the first item is aligned using
14974 the TeX-Code-command
14977 \begin_layout Standard
14987 \begin_layout Standard
14989 After the box the closing brace
14993 is inserted as TeX-Code.
14994 For the second table in the last item the command
14997 \begin_layout Standard
15007 \begin_layout Standard
15011 \begin_layout Standard
15012 \begin_inset Note Greyedout
15015 \begin_layout Plain Layout
15020 The alignment of the table row content to the surrounding text line is
15022 The required value for the
15028 command for this alignment depends on the document font, the font size,
15029 and the table line thickness.
15037 \begin_layout Section
15039 \begin_inset CommandInset label
15041 name "sec:Colored-Tables"
15046 \begin_inset Index idx
15049 \begin_layout Plain Layout
15058 \begin_layout Subsection
15060 \begin_inset Index idx
15063 \begin_layout Plain Layout
15064 Table Color ! for Cells
15070 \begin_inset Index idx
15073 \begin_layout Plain Layout
15074 Color ! for Table Cells
15082 \begin_layout Standard
15083 \begin_inset Float table
15089 \begin_layout Plain Layout
15090 \begin_inset Caption
15092 \begin_layout Plain Layout
15093 \begin_inset CommandInset label
15095 name "tab:Table-colored-without"
15099 Table colored without using the package
15104 \begin_inset Argument
15107 \begin_layout Plain Layout
15108 Table without colortbl
15121 \begin_layout Plain Layout
15123 \begin_inset Tabular
15124 <lyxtabular version="3" rows="3" columns="3">
15125 <features tabularvalignment="middle">
15126 <column alignment="center" valignment="top" width="0">
15127 <column alignment="center" valignment="top" width="0">
15128 <column alignment="center" valignment="top" width="0">
15130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15133 \begin_layout Plain Layout
15141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15144 \begin_layout Plain Layout
15152 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15155 \begin_layout Plain Layout
15165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15168 \begin_layout Plain Layout
15176 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
15179 \begin_layout Plain Layout
15187 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
15190 \begin_layout Plain Layout
15200 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15203 \begin_layout Plain Layout
15211 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
15214 \begin_layout Plain Layout
15222 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
15225 \begin_layout Plain Layout
15246 \begin_layout Standard
15247 If you only need colored text, mark the cells and choose a color in the
15250 Edit\SpecialChar \menuseparator
15252 \begin_inset space ~
15258 This was used to create Table
15259 \begin_inset space ~
15263 \begin_inset CommandInset ref
15265 reference "tab:Table-colored-without"
15270 In any other case you have to use the LaTeX-package
15275 \begin_inset Index idx
15278 \begin_layout Plain Layout
15279 LaTeX-packages ! colortbl
15287 \begin_layout Standard
15291 \begin_layout Plain Layout
15301 \begin_inset Note Note
15304 \begin_layout Plain Layout
15305 The following section part will only be displayed when the LaTeX-package
15318 \begin_layout Standard
15319 To create colored tables,
15323 must be loaded in the preamble with the line
15326 \begin_layout Standard
15331 usepackage{colortbl}
15334 \begin_layout Standard
15335 The color of a column is adjusted with the command
15338 \begin_layout Standard
15343 columncolor{name of color}
15346 \begin_layout Standard
15352 More about the command
15356 is contained in section
15357 \begin_inset space ~
15361 \begin_inset CommandInset ref
15363 reference "sub:Multicolumn-Calculations"
15370 \begin_layout Standard
15371 The following color names are predefined:
15374 \begin_layout Standard
15408 \begin_layout Standard
15409 \begin_inset VSpace medskip
15415 \begin_layout Standard
15416 You can also define your own color with the command
15419 \begin_layout Standard
15424 definecolor{color name}{color model}{color values}
15427 \begin_layout Standard
15428 The color model can be
15431 \begin_layout Labeling
15432 \labelwidthstring 00.00.0000
15433 cmyk: cyan, magenta, yellow, black
15436 \begin_layout Labeling
15437 \labelwidthstring 00.00.0000
15438 rgb: red, green blue
15441 \begin_layout Labeling
15442 \labelwidthstring 00.00.0000
15446 \begin_layout Standard
15447 and the color values are comma separated numbers between 0 and 1 describing
15448 the factor for the corresponding color of the color model.
15451 \begin_layout Standard
15453 \begin_inset space \thinspace{}
15457 \begin_inset space \space{}
15464 " in the preamble with
15467 \begin_layout Standard
15472 definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
15475 \begin_layout Standard
15483 \begin_layout Standard
15488 definecolor{lightgray}{gray}{0.8}
15491 \begin_layout Standard
15492 \begin_inset VSpace medskip
15498 \begin_layout Standard
15499 Lines are colored with the command
15502 \begin_layout Standard
15507 rowcolor{name of color}
15510 \begin_layout Standard
15511 and cells are colored with the command
15514 \begin_layout Standard
15519 cellcolor{name of color}
15522 \begin_layout Standard
15523 Both commands are inserted at the beginning of a cell as TeX-Code.
15526 \begin_layout Standard
15527 To color characters in the table, mark the cells and use the LyX menu
15529 Edit\SpecialChar \menuseparator
15531 \begin_inset space ~
15537 If a cell contains TeX-Code mark only the characters, otherwise the colored
15538 TeX-Code will cause LaTeX-errors.
15541 \begin_layout Standard
15542 \begin_inset Note Greyedout
15545 \begin_layout Plain Layout
15550 Not all DVI-viewers are able to display self-defined colors.
15558 \begin_layout Standard
15559 \begin_inset VSpace bigskip
15565 \begin_layout Standard
15567 \begin_inset space ~
15571 \begin_inset CommandInset ref
15573 reference "tab:Table-colored-using"
15577 do the following: The color of the first column should be
15585 \begin_layout Standard
15590 columncolor{darkgreen}
15595 \begin_layout Standard
15596 as LaTeX-argument for this column.
15597 The first row should be blue, therefore the TeX-Code command
15600 \begin_layout Standard
15608 \begin_layout Standard
15609 is inserted to the first cell of this row.
15610 Note that this overwrites the column color for the first cell.
15611 The last cell of the last row is colored magenta by inserting the TeX-Code
15615 \begin_layout Standard
15623 \begin_layout Standard
15624 The characters could now be colored using the menu
15626 Edit\SpecialChar \menuseparator
15628 \begin_inset space ~
15636 \begin_layout Standard
15637 \begin_inset Float table
15643 \begin_layout Plain Layout
15644 \begin_inset Caption
15646 \begin_layout Plain Layout
15647 \begin_inset CommandInset label
15649 name "tab:Table-colored-using"
15653 Table colored using the package
15658 \begin_inset Argument
15661 \begin_layout Plain Layout
15662 Table with colortbl
15675 \begin_layout Plain Layout
15677 \begin_inset Tabular
15678 <lyxtabular version="3" rows="3" columns="3">
15679 <features tabularvalignment="middle">
15680 <column alignment="center" valignment="top" width="0" special=">{\columncolor{darkgreen}\centering}c">
15681 <column alignment="center" valignment="top" width="0">
15682 <column alignment="center" valignment="top" width="0">
15684 <cell alignment="center" valignment="top" usebox="none">
15687 \begin_layout Plain Layout
15691 \begin_layout Plain Layout
15707 <cell alignment="center" valignment="top" usebox="none">
15710 \begin_layout Plain Layout
15718 <cell alignment="center" valignment="top" usebox="none">
15721 \begin_layout Plain Layout
15731 <cell alignment="center" valignment="top" usebox="none">
15734 \begin_layout Plain Layout
15742 <cell alignment="center" valignment="top" usebox="none">
15745 \begin_layout Plain Layout
15753 <cell alignment="center" valignment="top" usebox="none">
15756 \begin_layout Plain Layout
15766 <cell alignment="center" valignment="top" usebox="none">
15769 \begin_layout Plain Layout
15777 <cell alignment="center" valignment="top" usebox="none">
15780 \begin_layout Plain Layout
15788 <cell alignment="center" valignment="top" usebox="none">
15791 \begin_layout Plain Layout
15795 \begin_layout Plain Layout
15824 \begin_layout Standard
15828 \begin_layout Plain Layout
15838 \begin_inset Note Note
15841 \begin_layout Plain Layout
15842 The following will be displayed when the LaTeX-package
15854 \begin_layout Standard
15855 You need to install the package
15859 to see the content of this section in the output.
15862 \begin_layout Standard
15866 \begin_layout Plain Layout
15878 \begin_layout Subsection
15880 \begin_inset Index idx
15883 \begin_layout Plain Layout
15884 Table Color ! for Lines
15890 \begin_inset Index idx
15893 \begin_layout Plain Layout
15894 Color ! for Table Lines
15902 \begin_layout Standard
15903 As described in section
15904 \begin_inset space ~
15908 \begin_inset CommandInset ref
15910 reference "sub:Line-Thickness"
15914 , the line thickness for all lines in a table can be adjusted with the length
15923 \begin_inset space \thinspace{}
15926 pt for all tables of this section.
15930 \begin_layout Plain Layout
15936 arrayrulewidth}{1.5pt}
15944 \begin_layout Standard
15945 To color vertical lines for example with green, create the following column
15946 format in the document preamble, according to the description in section
15947 \begin_inset space ~
15951 \begin_inset CommandInset ref
15953 reference "sub:Customized-Format"
15960 \begin_layout Standard
15965 newcolumntype{W}{!{
15972 \begin_layout Standard
15974 \begin_inset space ~
15978 \begin_inset CommandInset ref
15980 reference "tab:Table-with-vertical-colored"
15988 was used for the last column and
15992 for the other columns.
15995 \begin_layout Standard
15996 If you want to have several colors, define more column formats.
15999 \begin_layout Standard
16000 \begin_inset Float table
16006 \begin_layout Plain Layout
16007 \begin_inset Caption
16009 \begin_layout Plain Layout
16010 \begin_inset CommandInset label
16012 name "tab:Table-with-vertical-colored"
16016 Table with colored vertical lines
16024 \begin_layout Plain Layout
16026 \begin_inset Tabular
16027 <lyxtabular version="3" rows="3" columns="3">
16028 <features tabularvalignment="middle">
16029 <column alignment="center" valignment="top" width="0" special="Wc">
16030 <column alignment="center" valignment="top" width="0" special="Wc">
16031 <column alignment="center" valignment="top" width="0" special="WcW">
16033 <cell alignment="center" valignment="top" topline="true" usebox="none">
16036 \begin_layout Plain Layout
16042 <cell alignment="center" valignment="top" topline="true" usebox="none">
16045 \begin_layout Plain Layout
16051 <cell alignment="center" valignment="top" topline="true" usebox="none">
16054 \begin_layout Plain Layout
16062 <cell alignment="center" valignment="top" topline="true" usebox="none">
16065 \begin_layout Plain Layout
16071 <cell alignment="center" valignment="top" topline="true" usebox="none">
16074 \begin_layout Plain Layout
16080 <cell alignment="center" valignment="top" topline="true" usebox="none">
16083 \begin_layout Plain Layout
16091 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16094 \begin_layout Plain Layout
16100 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16103 \begin_layout Plain Layout
16109 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16112 \begin_layout Plain Layout
16131 \begin_layout Standard
16132 \begin_inset VSpace bigskip
16135 To color horizontal lines for example with red, as in Table
16136 \begin_inset space ~
16140 \begin_inset CommandInset ref
16142 reference "tab:Table-with-horizontal-colored"
16146 , insert these commands in TeX-Code before the table or table float:
16149 \begin_layout Standard
16159 \begin_inset Newline newline
16167 \begin_inset Newline newline
16171 \begin_inset Phantom HPhantom
16174 \begin_layout Plain Layout
16177 \begin_inset space ~
16187 arrayrulecolor{red}
16191 arrayrulecolor{black}}
16194 \begin_layout Standard
16198 \begin_layout Plain Layout
16209 \begin_layout Plain Layout
16218 \begin_layout Plain Layout
16222 arrayrulecolor{red}
16226 arrayrulecolor{black}}
16232 \begin_inset Float table
16238 \begin_layout Plain Layout
16239 \begin_inset Caption
16241 \begin_layout Plain Layout
16242 \begin_inset CommandInset label
16244 name "tab:Table-with-horizontal-colored"
16248 Table with colored horizontal lines
16256 \begin_layout Plain Layout
16258 \begin_inset Tabular
16259 <lyxtabular version="3" rows="3" columns="3">
16260 <features tabularvalignment="middle">
16261 <column alignment="center" valignment="top" width="0">
16262 <column alignment="center" valignment="top" width="0">
16263 <column alignment="center" valignment="top" width="0">
16265 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16268 \begin_layout Plain Layout
16274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16277 \begin_layout Plain Layout
16283 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16286 \begin_layout Plain Layout
16294 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16297 \begin_layout Plain Layout
16303 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16306 \begin_layout Plain Layout
16312 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16315 \begin_layout Plain Layout
16323 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16326 \begin_layout Plain Layout
16332 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16335 \begin_layout Plain Layout
16341 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16344 \begin_layout Plain Layout
16363 \begin_layout Standard
16364 To return to the default line color black, insert this command in TeX-Code
16365 after the table or table float:
16368 \begin_layout Standard
16380 \begin_layout Standard
16382 \begin_inset space ~
16386 \begin_inset CommandInset ref
16388 reference "tab:Table-with-colored"
16392 is an example with colored vertical and horizontal lines.
16395 \begin_layout Standard
16396 \begin_inset Float table
16402 \begin_layout Plain Layout
16403 \begin_inset Caption
16405 \begin_layout Plain Layout
16406 \begin_inset CommandInset label
16408 name "tab:Table-with-colored"
16412 Table with colored lines
16420 \begin_layout Plain Layout
16422 \begin_inset Tabular
16423 <lyxtabular version="3" rows="3" columns="3">
16424 <features tabularvalignment="middle">
16425 <column alignment="center" valignment="top" width="0" special="Wc">
16426 <column alignment="center" valignment="top" width="0" special="Wc">
16427 <column alignment="center" valignment="top" width="0" special="WcW">
16429 <cell alignment="center" valignment="top" topline="true" usebox="none">
16432 \begin_layout Plain Layout
16438 <cell alignment="center" valignment="top" topline="true" usebox="none">
16441 \begin_layout Plain Layout
16447 <cell alignment="center" valignment="top" topline="true" usebox="none">
16450 \begin_layout Plain Layout
16458 <cell alignment="center" valignment="top" topline="true" usebox="none">
16461 \begin_layout Plain Layout
16467 <cell alignment="center" valignment="top" topline="true" usebox="none">
16470 \begin_layout Plain Layout
16476 <cell alignment="center" valignment="top" topline="true" usebox="none">
16479 \begin_layout Plain Layout
16486 <row topspace="default">
16487 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16490 \begin_layout Plain Layout
16496 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16499 \begin_layout Plain Layout
16505 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
16508 \begin_layout Plain Layout
16527 \begin_layout Standard
16531 \begin_layout Plain Layout
16547 \begin_layout Standard
16551 \begin_layout Plain Layout
16557 arrayrulewidth}{0.4pt}
16565 \begin_layout Section
16566 Table Customization
16567 \begin_inset Index idx
16570 \begin_layout Plain Layout
16571 Table Customization
16577 \begin_inset Index idx
16580 \begin_layout Plain Layout
16581 Table ! Customization
16589 \begin_layout Subsection
16591 \begin_inset CommandInset label
16593 name "sub:Row-Spacing"
16598 \begin_inset Index idx
16601 \begin_layout Plain Layout
16602 Table Customization ! Row Spacing
16610 \begin_layout Standard
16611 You can add vertical space to table rows in the
16615 tab of the table dialog.
16616 You find there three possibilities:
16619 \begin_layout Description
16621 \begin_inset space ~
16625 \begin_inset space ~
16628 row will add space above the characters of the table row.
16629 If the table is a formal table
16633 \begin_layout Plain Layout
16634 Formal tables are explained in section
16635 \begin_inset space ~
16639 \begin_inset CommandInset ref
16641 reference "sec:Formal-Tables"
16650 LyX will insert as default 0.5
16651 \begin_inset space \thinspace{}
16655 For normal tables the inserted space will unfortunately destroy the vertical
16656 table lines as in the following table:
16657 \begin_inset VSpace medskip
16661 \begin_inset Newline newline
16665 \begin_inset space \hspace*{}
16670 \begin_inset space \hfill{}
16674 \begin_inset Tabular
16675 <lyxtabular version="3" rows="3" columns="1">
16676 <features tabularvalignment="middle">
16677 <column alignment="center" valignment="top" width="0">
16679 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16682 \begin_layout Plain Layout
16689 <row topspace="3mm">
16690 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16693 \begin_layout Plain Layout
16695 \begin_inset space \thinspace{}
16698 mm space top of row
16705 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16708 \begin_layout Plain Layout
16720 \begin_inset space \hfill{}
16724 \begin_inset space \hspace*{}
16729 \begin_inset VSpace medskip
16733 \begin_inset Newline newline
16736 So inserting space in the top of row for normal tables is only useful when
16737 you don't have vertical lines.
16740 \begin_layout Description
16742 \begin_inset space ~
16746 \begin_inset space ~
16749 row will add space below the characters of the table row.
16750 If the table is a formal table LyX will insert as default 0.5
16751 \begin_inset space \thinspace{}
16754 em space, for normal tables the default size is 2
16755 \begin_inset space \thinspace{}
16761 \begin_layout Description
16763 \begin_inset space ~
16766 rows adds space between the current and the following row.
16767 If the table is a formal table LyX will insert as default 0.5
16768 \begin_inset space \thinspace{}
16772 For normal tables the inserted space will unfortunately destroy the vertical
16773 table lines as in the following table:
16774 \begin_inset VSpace medskip
16778 \begin_inset Newline newline
16782 \begin_inset space \hspace*{}
16787 \begin_inset space \hfill{}
16791 \begin_inset Tabular
16792 <lyxtabular version="3" rows="3" columns="1">
16793 <features tabularvalignment="middle">
16794 <column alignment="center" valignment="top" width="0">
16796 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16799 \begin_layout Plain Layout
16806 <row interlinespace="3mm">
16807 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16810 \begin_layout Plain Layout
16811 \begin_inset Formula $\downarrow$
16815 \begin_inset space \thinspace{}
16818 mm space between row
16819 \begin_inset Formula $\downarrow$
16829 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16832 \begin_layout Plain Layout
16833 \begin_inset Formula $\uparrow$
16837 \begin_inset space \thinspace{}
16840 mm space between row
16841 \begin_inset Formula $\uparrow$
16855 \begin_inset space \hfill{}
16859 \begin_inset space \hspace*{}
16864 \begin_inset VSpace medskip
16868 \begin_inset Newline newline
16871 So inserting space between rows for normal tables is only useful when you
16872 don't have vertical lines.
16875 \begin_layout Standard
16876 \begin_inset VSpace bigskip
16879 When you want to add extra height to all cells of all tables, you can do
16880 this with the following preamble lines:
16883 \begin_layout Standard
16888 @ifundefined{extrarowheight}
16889 \begin_inset Newline newline
16893 \begin_inset Phantom HPhantom
16896 \begin_layout Plain Layout
16899 \begin_inset space ~
16909 usepackage{array}}{}
16910 \begin_inset Newline newline
16917 extrarowheight}{height}
16920 \begin_layout Standard
16921 But this has the disadvantage that the cell texts are no longer exactly
16922 vertically centered.
16927 will be loaded automatically by LyX when you use self defined table formats.
16928 To avoid that it being loaded twice the command
16934 is used in the above command.)
16937 \begin_layout Standard
16938 If you are using font sizes larger than the normal size, the table borders
16939 are often too close to the letters.
16940 This can be corrected by inserting the command
16946 in TeX code at the beginning of a table row.
16948 \begin_inset space ~
16952 \begin_inset CommandInset ref
16954 reference "tab:Vertical-alignment-of"
16958 illustrates the effect.
16961 \begin_layout Standard
16963 \begin_inset Float table
16969 \begin_layout Plain Layout
16970 \begin_inset Caption
16972 \begin_layout Plain Layout
16973 \begin_inset CommandInset label
16975 name "tab:Vertical-alignment-of"
16979 Vertical alignment of text with large font sizes.
16987 \begin_layout Plain Layout
16988 \begin_inset space \hfill{}
16992 \begin_inset Float table
16997 \begin_layout Plain Layout
16998 \begin_inset Caption
17000 \begin_layout Plain Layout
17009 \begin_layout Plain Layout
17012 \begin_inset Tabular
17013 <lyxtabular version="3" rows="6" columns="1">
17014 <features tabularvalignment="middle">
17015 <column alignment="left" valignment="top" width="0">
17017 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17020 \begin_layout Plain Layout
17028 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17031 \begin_layout Plain Layout
17041 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17044 \begin_layout Plain Layout
17054 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17057 \begin_layout Plain Layout
17067 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17070 \begin_layout Plain Layout
17080 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17083 \begin_layout Plain Layout
17102 \begin_inset space \hfill{}
17106 \begin_inset Float table
17111 \begin_layout Plain Layout
17112 \begin_inset Caption
17114 \begin_layout Plain Layout
17115 Table using the command
17129 \begin_layout Plain Layout
17132 \begin_inset Tabular
17133 <lyxtabular version="3" rows="6" columns="1">
17134 <features tabularvalignment="middle">
17135 <column alignment="left" valignment="top" width="0">
17137 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17140 \begin_layout Plain Layout
17148 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17151 \begin_layout Plain Layout
17157 \begin_layout Plain Layout
17173 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17176 \begin_layout Plain Layout
17182 \begin_layout Plain Layout
17198 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17201 \begin_layout Plain Layout
17207 \begin_layout Plain Layout
17223 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17226 \begin_layout Plain Layout
17232 \begin_layout Plain Layout
17248 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17251 \begin_layout Plain Layout
17257 \begin_layout Plain Layout
17284 \begin_inset space \hfill{}
17295 \begin_layout Subsection
17296 Special Cell Alignment
17297 \begin_inset CommandInset label
17299 name "sub:Special-Cell-Alignment"
17304 \begin_inset Index idx
17307 \begin_layout Plain Layout
17308 Table Customization ! Special Cell Alignment
17316 \begin_layout Standard
17317 Sometimes it looks better when the cell entries of a column are aligned
17318 with a special character, e.
17319 \begin_inset space \thinspace{}
17323 \begin_inset space \space{}
17326 with the decimal separator as in Table
17327 \begin_inset space ~
17331 \begin_inset CommandInset ref
17333 reference "tab:Table-cells-align"
17338 This alignment is achieved by setting the cursor into the column and then
17339 either pressing the toolbar button
17340 \begin_inset Graphics
17341 filename ../images/tabular-feature_align-decimal.png
17343 scaleBeforeRotation
17347 or setting the alignment in the table settings to
17350 \begin_inset space ~
17354 \begin_inset space ~
17360 The alignment character can be a character of your choice and is specified
17361 in the table settings.
17364 \begin_layout Standard
17365 \begin_inset Float table
17371 \begin_layout Plain Layout
17372 \begin_inset Caption
17374 \begin_layout Plain Layout
17375 \begin_inset CommandInset label
17377 name "tab:Table-cells-align"
17381 Table cells of a column aligned with the decimal separator.
17389 \begin_layout Plain Layout
17391 \begin_inset Tabular
17392 <lyxtabular version="3" rows="4" columns="1">
17393 <features booktabs="true" tabularvalignment="middle">
17394 <column alignment="decimal" decimal_point="." valignment="top" width="0pt">
17396 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17399 \begin_layout Plain Layout
17407 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17410 \begin_layout Plain Layout
17418 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17421 \begin_layout Plain Layout
17429 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
17432 \begin_layout Plain Layout
17451 \begin_layout Standard
17452 \begin_inset Float table
17458 \begin_layout Plain Layout
17459 \begin_inset Caption
17461 \begin_layout Plain Layout
17462 \begin_inset CommandInset label
17464 name "tab:Table-align-operator"
17468 Table cells of a column aligned with the operators.
17476 \begin_layout Plain Layout
17478 \begin_inset Tabular
17479 <lyxtabular version="3" rows="4" columns="2">
17480 <features booktabs="true" tabularvalignment="middle">
17481 <column alignment="right" valignment="top" width="0pt">
17482 <column alignment="left" valignment="top" width="0pt" special="@{}l">
17484 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17487 \begin_layout Plain Layout
17493 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17496 \begin_layout Plain Layout
17504 <cell alignment="center" valignment="top" usebox="none">
17507 \begin_layout Plain Layout
17508 \begin_inset Formula $12\,+$
17516 <cell alignment="center" valignment="top" usebox="none">
17519 \begin_layout Plain Layout
17520 \begin_inset Formula $\,6$
17530 <cell alignment="center" valignment="top" usebox="none">
17533 \begin_layout Plain Layout
17534 \begin_inset Formula $0\,-$
17542 <cell alignment="center" valignment="top" usebox="none">
17545 \begin_layout Plain Layout
17546 \begin_inset Formula $\,68$
17556 <cell alignment="center" valignment="top" usebox="none">
17559 \begin_layout Plain Layout
17560 \begin_inset Formula $-123\,/$
17568 <cell alignment="center" valignment="top" usebox="none">
17571 \begin_layout Plain Layout
17572 \begin_inset Formula $\,0$
17593 \begin_layout Standard
17594 For alignments at characters in formulas this method does not work because
17595 the field to specify the alignment character does not allow formulas.
17596 In this case one need to use the method from Table
17597 \begin_inset space ~
17601 \begin_inset CommandInset ref
17603 reference "tab:Table-align-operator"
17608 This table was created with a 4×2 table.
17609 The heading is a centered multicolumn.
17610 The first column is right-aligned and contains the first part including
17612 The second column is left aligned and contains the rest.
17613 A small space was added at the beginning of each cell of the second column
17614 to get the space that is usually around operators.
17615 To omit the space that is normally between two table columns, the following
17616 LaTeX-argument was used for the second column:
17619 \begin_layout Standard
17625 \begin_layout Standard
17627 \begin_inset space ~
17631 \begin_inset CommandInset ref
17633 reference "tab:Several-table-cell"
17637 shows some example alignments.
17638 For the alignment with the relation sign, a small space was added like
17639 for the second column of Table
17640 \begin_inset space ~
17644 \begin_inset CommandInset ref
17646 reference "tab:Table-align-operator"
17653 \begin_layout Standard
17654 \begin_inset Float table
17660 \begin_layout Plain Layout
17661 \begin_inset Caption
17663 \begin_layout Plain Layout
17664 \begin_inset CommandInset label
17666 name "tab:Several-table-cell"
17670 Several table cell alignments.
17678 \begin_layout Plain Layout
17680 \begin_inset Tabular
17681 <lyxtabular version="3" rows="4" columns="6">
17682 <features tabularvalignment="middle">
17683 <column alignment="right" valignment="top" width="0">
17684 <column alignment="left" valignment="top" width="0" special="@{}l">
17685 <column alignment="right" valignment="top" width="0">
17686 <column alignment="left" valignment="top" width="0" special="@{}l">
17687 <column alignment="right" valignment="top" width="0">
17688 <column alignment="left" valignment="top" width="0" special="@{}l">
17690 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17693 \begin_layout Plain Layout
17699 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17702 \begin_layout Plain Layout
17708 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
17711 \begin_layout Plain Layout
17717 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17720 \begin_layout Plain Layout
17726 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" usebox="none">
17729 \begin_layout Plain Layout
17735 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17738 \begin_layout Plain Layout
17746 <cell alignment="center" valignment="top" usebox="none">
17749 \begin_layout Plain Layout
17755 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17758 \begin_layout Plain Layout
17760 \begin_inset space \thinspace{}
17768 <cell alignment="center" valignment="top" usebox="none">
17771 \begin_layout Plain Layout
17772 \begin_inset Formula $10\cdot$
17780 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17783 \begin_layout Plain Layout
17784 \begin_inset Formula $10^{\mbox{-}17}$
17792 <cell alignment="center" valignment="top" usebox="none">
17795 \begin_layout Plain Layout
17796 \begin_inset Formula $\Gamma(t)\propto$
17804 <cell alignment="center" valignment="top" usebox="none">
17807 \begin_layout Plain Layout
17808 \begin_inset Formula $\:\Upsilon(t)$
17818 <cell alignment="center" valignment="top" usebox="none">
17821 \begin_layout Plain Layout
17827 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17830 \begin_layout Plain Layout
17832 \begin_inset space \thinspace{}
17840 <cell alignment="center" valignment="top" usebox="none">
17843 \begin_layout Plain Layout
17844 \begin_inset Formula $5.78\cdot$
17852 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17855 \begin_layout Plain Layout
17856 \begin_inset Formula $10^{7}$
17864 <cell alignment="center" valignment="top" usebox="none">
17867 \begin_layout Plain Layout
17868 \begin_inset Formula $A\ne$
17876 <cell alignment="center" valignment="top" usebox="none">
17879 \begin_layout Plain Layout
17880 \begin_inset Formula $\: B_{\mathrm{red}}$
17890 <cell alignment="center" valignment="top" usebox="none">
17893 \begin_layout Plain Layout
17899 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17902 \begin_layout Plain Layout
17904 \begin_inset space \thinspace{}
17912 <cell alignment="center" valignment="top" usebox="none">
17915 \begin_layout Plain Layout
17917 \begin_inset Formula $33.5\cdot$
17925 <cell alignment="center" valignment="top" rightline="true" usebox="none">
17928 \begin_layout Plain Layout
17929 \begin_inset Formula $10^{4}$
17937 <cell alignment="center" valignment="top" usebox="none">
17940 \begin_layout Plain Layout
17941 \begin_inset Formula $\sin(\alpha)\ge$
17949 <cell alignment="center" valignment="top" usebox="none">
17952 \begin_layout Plain Layout
17953 \begin_inset Formula $\:\sin(\beta)$
17974 \begin_layout Subsection
17975 Customized Cell/Column Format
17976 \begin_inset CommandInset label
17978 name "sub:Customized-Format"
17983 \begin_inset Index idx
17986 \begin_layout Plain Layout
17987 Table Customization ! Cell/Column Format
17995 \begin_layout Standard
17996 Calculating the required width for spanned columns as in section
17997 \begin_inset space ~
18001 \begin_inset CommandInset ref
18003 reference "sub:Multicolumn-Calculations"
18007 is very annoying if you have several tables with multicolumn cells.
18008 To make life easier, you can define a cell/column format in the preamble,
18009 so that it can be used in all tables of the document.
18010 The format is defined with the command
18013 \begin_layout Standard
18018 newcolumntype{name of format}[number of arguments]{commands}
18021 \begin_layout Standard
18022 The format name may only consist of one letter.
18047 are predefined and cannot be used.
18048 But all letters are allowed as capitals.
18051 \begin_layout Standard
18052 \begin_inset VSpace medskip
18058 \begin_layout Standard
18059 For vertically and horizontally centered multicolumn cells with a fixed
18060 width you can define the cell format
18063 \begin_layout Standard
18068 newcolumntype{M}[1]{>{
18075 \begin_layout Standard
18082 avoids the problem of hyphenating the first word, as described in section
18083 \begin_inset space ~
18087 \begin_inset CommandInset ref
18089 reference "sub:Multiple-Lines-in"
18094 Now you can simply enter
18097 \begin_layout Standard
18103 \begin_layout Standard
18104 as LaTeX-argument in the table dialog to create a multicolumn.
18107 \begin_layout Standard
18108 \begin_inset VSpace bigskip
18114 \begin_layout Standard
18115 For cells spanned by a multicolumn cell, you can define the format
18118 \begin_layout Standard
18123 newcolumntype{S}[2]{>{
18128 \begin_inset Newline newline
18132 \begin_inset Phantom HPhantom
18135 \begin_layout Plain Layout
18149 arrayrulewidth)*(1-#2))/#2}}
18152 \begin_layout Standard
18153 This format uses equation
18154 \begin_inset CommandInset ref
18160 to calculate the required width so that each spanned cell has the same
18164 \begin_layout Standard
18168 \begin_layout Standard
18171 S{width of multicolumn cell}{number of spanned columns}
18174 \begin_layout Standard
18175 as LaTeX-argument of the column.
18178 \begin_layout Standard
18179 \begin_inset VSpace bigskip
18185 \begin_layout Standard
18186 For colored columns, you can define
18189 \begin_layout Standard
18194 newcolumntype{K}[1]{>{
18201 \begin_layout Standard
18203 \begin_inset Quotes eld
18207 \begin_inset Quotes erd
18210 at the end creates a column with a flexible width whose text is horizontally
18215 \begin_layout Standard
18221 \begin_layout Standard
18225 \begin_layout Standard
18226 \begin_inset VSpace bigskip
18232 \begin_layout Standard
18234 \begin_inset space ~
18238 \begin_inset CommandInset ref
18240 reference "tab:Table-using-user-defined"
18244 use the LaTeX-arguments
18247 \begin_layout Standard
18253 \begin_layout Standard
18254 for the first column and the multicolumn,
18257 \begin_layout Standard
18263 \begin_layout Standard
18264 for the last column, and
18267 \begin_layout Standard
18273 \begin_layout Standard
18274 for the cells in the second column.
18277 \begin_layout Standard
18278 \begin_inset Float table
18284 \begin_layout Plain Layout
18285 \begin_inset Caption
18287 \begin_layout Plain Layout
18288 \begin_inset CommandInset label
18290 name "tab:Table-using-user-defined"
18294 Table using user-defined table formats
18302 \begin_layout Plain Layout
18304 \begin_inset Tabular
18305 <lyxtabular version="3" rows="3" columns="4">
18306 <features tabularvalignment="middle">
18307 <column alignment="center" valignment="middle" width="2.5cm" special="M{2.5cm}">
18308 <column alignment="center" valignment="middle" width="0" special="S{2.5cm}{2}">
18309 <column alignment="center" valignment="middle" width="0">
18310 <column alignment="center" valignment="middle" width="0" special="K{red}">
18312 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18315 \begin_layout Plain Layout
18316 verylongtablecellword
18321 <cell multicolumn="1" alignment="center" valignment="top" topline="true" leftline="true" usebox="none" special="M{2.5cm}">
18324 \begin_layout Plain Layout
18325 multiple lines multicolumn
18330 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18333 \begin_layout Plain Layout
18339 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18342 \begin_layout Plain Layout
18350 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18353 \begin_layout Plain Layout
18359 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18362 \begin_layout Plain Layout
18368 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18371 \begin_layout Plain Layout
18377 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18380 \begin_layout Plain Layout
18388 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18391 \begin_layout Plain Layout
18397 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18400 \begin_layout Plain Layout
18406 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18409 \begin_layout Plain Layout
18415 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18418 \begin_layout Plain Layout
18437 \begin_layout Subsection
18439 \begin_inset CommandInset label
18441 name "sub:Line-Thickness"
18446 \begin_inset Index idx
18449 \begin_layout Plain Layout
18450 Table Customization ! Line Thickness
18458 \begin_layout Standard
18459 The line thickness for all lines in a table can be adjusted with the length
18467 To set for example a line thickness of 1.5
18468 \begin_inset space \thinspace{}
18472 \begin_inset space ~
18476 \begin_inset CommandInset ref
18478 reference "tab:Table-with-1.5"
18482 , insert the command
18485 \begin_layout Standard
18492 arrayrulewidth}{1.5pt}
18495 \begin_layout Standard
18496 in TeX-Code before the table or table float.
18497 The changed thickness is valid for all subsequent tables.
18498 To use the default value again, set
18505 \begin_inset space \thinspace{}
18508 pt in TeX-Code after the table or table float.
18511 \begin_layout Standard
18515 \begin_layout Plain Layout
18521 arrayrulewidth}{1.5pt}
18527 \begin_inset Float table
18532 \begin_layout Plain Layout
18533 \begin_inset Caption
18535 \begin_layout Plain Layout
18536 \begin_inset CommandInset label
18538 name "tab:Table-with-1.5"
18543 \begin_inset space \thinspace{}
18554 \begin_layout Plain Layout
18556 \begin_inset Tabular
18557 <lyxtabular version="3" rows="3" columns="3">
18558 <features tabularvalignment="middle">
18559 <column alignment="center" valignment="top" width="0">
18560 <column alignment="center" valignment="top" width="0">
18561 <column alignment="center" valignment="top" width="0">
18563 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18566 \begin_layout Plain Layout
18572 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18575 \begin_layout Plain Layout
18581 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18584 \begin_layout Plain Layout
18592 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18595 \begin_layout Plain Layout
18601 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18604 \begin_layout Plain Layout
18610 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18613 \begin_layout Plain Layout
18621 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18624 \begin_layout Plain Layout
18630 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18633 \begin_layout Plain Layout
18639 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18642 \begin_layout Plain Layout
18662 \begin_layout Plain Layout
18668 arrayrulewidth}{0.4pt}
18676 \begin_layout Standard
18677 \begin_inset VSpace bigskip
18680 To set the line thickness to 1.5
18681 \begin_inset space \thinspace{}
18684 pt only for horizontal lines, as in Table
18685 \begin_inset space ~
18689 \begin_inset CommandInset ref
18691 reference "tab:Table-with-horizontal"
18695 , insert these commands in TeX-Code before the table or table float:
18698 \begin_layout Standard
18708 \begin_inset Newline newline
18716 \begin_inset Newline newline
18725 arrayrulewidth 1.5pt}
18726 \begin_inset Newline newline
18737 arrayrulewidth 0.4pt}}
18740 \begin_layout Standard
18741 To return to the default line thickness, insert this command in TeX-Code
18742 after the table or table float:
18745 \begin_layout Standard
18757 \begin_layout Standard
18761 \begin_layout Plain Layout
18772 \begin_layout Plain Layout
18781 \begin_layout Plain Layout
18789 arrayrulewidth 1.5pt}
18792 \begin_layout Plain Layout
18802 arrayrulewidth 0.4pt}}
18808 \begin_inset Float table
18813 \begin_layout Plain Layout
18814 \begin_inset Caption
18816 \begin_layout Plain Layout
18817 \begin_inset CommandInset label
18819 name "tab:Table-with-horizontal"
18824 \begin_inset space \thinspace{}
18827 pt thick horizontal lines
18835 \begin_layout Plain Layout
18837 \begin_inset Tabular
18838 <lyxtabular version="3" rows="3" columns="3">
18839 <features tabularvalignment="middle">
18840 <column alignment="center" valignment="top" width="0">
18841 <column alignment="center" valignment="top" width="0">
18842 <column alignment="center" valignment="top" width="0">
18844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18847 \begin_layout Plain Layout
18853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18856 \begin_layout Plain Layout
18862 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18865 \begin_layout Plain Layout
18873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18876 \begin_layout Plain Layout
18882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
18885 \begin_layout Plain Layout
18891 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
18894 \begin_layout Plain Layout
18902 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18905 \begin_layout Plain Layout
18911 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
18914 \begin_layout Plain Layout
18920 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
18923 \begin_layout Plain Layout
18943 \begin_layout Plain Layout
18959 \begin_layout Standard
18960 \begin_inset VSpace bigskip
18963 To set the line thickness to 1.5
18964 \begin_inset space \thinspace{}
18967 pt only for vertical lines, create the following column format in the document
18968 preamble, according to the description in section
18969 \begin_inset space ~
18973 \begin_inset CommandInset ref
18975 reference "sub:Customized-Format"
18982 \begin_layout Standard
18987 newcolumntype{V}{!{
18989 vrule width 1.5pt}}
18992 \begin_layout Standard
18994 \begin_inset space ~
18998 \begin_inset CommandInset ref
19000 reference "tab:Table-with-vertical"
19007 \begin_layout Standard
19013 \begin_layout Standard
19014 was used for the last column and
19017 \begin_layout Standard
19023 \begin_layout Standard
19024 for the other columns.
19027 \begin_layout Standard
19028 \begin_inset Float table
19033 \begin_layout Plain Layout
19034 \begin_inset Caption
19036 \begin_layout Plain Layout
19037 \begin_inset CommandInset label
19039 name "tab:Table-with-vertical"
19044 \begin_inset space \thinspace{}
19047 pt thick vertical lines
19055 \begin_layout Plain Layout
19057 \begin_inset Tabular
19058 <lyxtabular version="3" rows="3" columns="3">
19059 <features tabularvalignment="middle">
19060 <column alignment="center" valignment="top" width="0" special="Vc">
19061 <column alignment="center" valignment="top" width="0" special="Vc">
19062 <column alignment="center" valignment="top" width="0" special="VcV">
19064 <cell alignment="center" valignment="top" topline="true" usebox="none">
19067 \begin_layout Plain Layout
19073 <cell alignment="center" valignment="top" topline="true" usebox="none">
19076 \begin_layout Plain Layout
19082 <cell alignment="center" valignment="top" topline="true" usebox="none">
19085 \begin_layout Plain Layout
19093 <cell alignment="center" valignment="top" topline="true" usebox="none">
19096 \begin_layout Plain Layout
19102 <cell alignment="center" valignment="top" topline="true" usebox="none">
19105 \begin_layout Plain Layout
19111 <cell alignment="center" valignment="top" topline="true" usebox="none">
19114 \begin_layout Plain Layout
19122 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19125 \begin_layout Plain Layout
19131 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19134 \begin_layout Plain Layout
19140 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19143 \begin_layout Plain Layout
19162 \begin_layout Subsection
19164 \begin_inset Index idx
19167 \begin_layout Plain Layout
19168 Table Customization ! Dashed Lines
19176 \begin_layout Standard
19180 \begin_layout Plain Layout
19190 \begin_inset Note Note
19193 \begin_layout Plain Layout
19194 The following section will only be displayed when the LaTeX-package
19206 \begin_layout Standard
19207 \begin_inset Float table
19213 \begin_layout Plain Layout
19214 \begin_inset Caption
19216 \begin_layout Plain Layout
19217 \begin_inset CommandInset label
19219 name "tab:Table-with-dashed"
19223 Table with dashed lines
19231 \begin_layout Plain Layout
19233 \begin_inset Tabular
19234 <lyxtabular version="3" rows="5" columns="5">
19235 <features tabularvalignment="middle">
19236 <column alignment="center" valignment="top" width="0">
19237 <column alignment="center" valignment="top" width="0">
19238 <column alignment="center" valignment="top" width="0" special=":c">
19239 <column alignment="center" valignment="top" width="0">
19240 <column alignment="center" valignment="top" width="0">
19242 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19245 \begin_layout Plain Layout
19251 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19254 \begin_layout Plain Layout
19260 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19263 \begin_layout Plain Layout
19269 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19272 \begin_layout Plain Layout
19278 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19281 \begin_layout Plain Layout
19289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19292 \begin_layout Plain Layout
19298 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19301 \begin_layout Plain Layout
19307 <cell alignment="center" valignment="top" topline="true" usebox="none">
19310 \begin_layout Plain Layout
19316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19319 \begin_layout Plain Layout
19325 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19328 \begin_layout Plain Layout
19336 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19339 \begin_layout Plain Layout
19343 \begin_layout Plain Layout
19357 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19360 \begin_layout Plain Layout
19366 <cell alignment="center" valignment="top" usebox="none">
19369 \begin_layout Plain Layout
19375 <cell alignment="center" valignment="top" leftline="true" usebox="none">
19378 \begin_layout Plain Layout
19384 <cell alignment="center" valignment="top" leftline="true" rightline="true" usebox="none">
19387 \begin_layout Plain Layout
19395 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19398 \begin_layout Plain Layout
19402 \begin_layout Plain Layout
19416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19419 \begin_layout Plain Layout
19425 <cell alignment="center" valignment="top" topline="true" usebox="none" special="c:">
19428 \begin_layout Plain Layout
19434 <cell multicolumn="1" alignment="center" valignment="top" leftline="true" rightline="true" usebox="none" special="c:">
19437 \begin_layout Plain Layout
19443 <cell multicolumn="2" alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19446 \begin_layout Plain Layout
19454 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19457 \begin_layout Plain Layout
19463 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19466 \begin_layout Plain Layout
19472 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
19475 \begin_layout Plain Layout
19481 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19484 \begin_layout Plain Layout
19490 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19493 \begin_layout Plain Layout
19512 \begin_layout Standard
19513 LyX does not natively support dashed lines, so you have to use TeX-Code.
19514 As a prerequisite the LaTeX-package
19519 \begin_inset Index idx
19522 \begin_layout Plain Layout
19523 LaTeX-packages ! arydshln
19528 must be loaded in the document preamble with the command
19531 \begin_layout Standard
19536 usepackage{arydshln}
19539 \begin_layout Standard
19540 To make a vertical line dashed, enter the colon
19541 \begin_inset Quotes eld
19545 \begin_inset Quotes erd
19548 together with the character for the horizontal alignment as LaTeX-argument
19549 in the table cell dialog.
19552 \begin_layout Standard
19553 For a horizontal dashed line add the command
19556 \begin_layout Standard
19564 \begin_layout Standard
19565 in TeX-Code as first element of the first cell in the table row.
19568 \begin_layout Standard
19569 For dashed multicolumn lines use the command
19572 \begin_layout Standard
19577 cdashline{line number
19582 \begin_layout Standard
19583 in TeX-Code as the first element of the first cell in the table row.
19584 If you have for example a multicolumn spanning columns 2 to 4 and you want
19585 to have a dashed line above, add the command
19588 \begin_layout Standard
19596 \begin_layout Standard
19597 as the first element of the first cell in the row of the multicolumn.
19600 \begin_layout Standard
19601 \begin_inset VSpace bigskip
19607 \begin_layout Standard
19609 \begin_inset space ~
19613 \begin_inset CommandInset ref
19615 reference "tab:Table-with-dashed"
19620 \begin_inset Quotes eld
19628 \begin_inset Quotes erd
19631 as LaTeX-argument of the third column.
19632 The TeX-Code command
19638 was inserted in the first cell of the third row and the TeX-Code command
19639 \begin_inset Newline newline
19648 was inserted in the first cell of the fourth row.
19651 \begin_layout Standard
19652 \begin_inset Note Greyedout
19655 \begin_layout Plain Layout
19664 is apparently not compatible with the LaTeX-package
19669 \begin_inset Index idx
19672 \begin_layout Plain Layout
19673 LaTeX-packages ! colortbl
19678 that is used for colored tables in section
19679 \begin_inset space ~
19683 \begin_inset CommandInset ref
19685 reference "sec:Colored-Tables"
19690 That means colored tables cannot have dashed lines.
19698 \begin_layout Standard
19702 \begin_layout Plain Layout
19712 \begin_inset Note Note
19715 \begin_layout Plain Layout
19716 The following will be displayed when the LaTeX-package
19728 \begin_layout Standard
19729 You need to install the package
19733 to see the content of this section in the output.
19736 \begin_layout Standard
19740 \begin_layout Plain Layout
19752 \begin_layout Chapter
19754 \begin_inset CommandInset label
19761 \begin_inset Index idx
19764 \begin_layout Plain Layout
19773 \begin_layout Section
19775 \begin_inset CommandInset label
19777 name "sec:FloatIntroduction"
19782 \begin_inset Index idx
19785 \begin_layout Plain Layout
19786 Floats ! Introduction
19794 \begin_layout Standard
19795 A float is a block of text associated with some sort of label, which doesn't
19796 have a fixed location.
19798 \begin_inset Quotes eld
19802 \begin_inset Quotes erd
19805 forward or backward a page or two, to wherever it fits best.
19813 \begin_inset space ~
19818 are also floats, because they can float to the next page when there are
19819 too many notes on the page.
19822 \begin_layout Standard
19823 Floats allow a high quality layout.
19824 Images and tables can be spread evenly to the pages to avoid white space
19825 and pages without text.
19826 As the floating often destroys the context between the text and the image/table
19827 , every float can be referenced in the text.
19828 Floats are therefore numbered.
19829 Referencing is described in section
19830 \begin_inset space ~
19834 \begin_inset CommandInset ref
19836 reference "sec:Referencing-Floats"
19843 \begin_layout Standard
19844 To insert a float, use the menu
19846 Insert\SpecialChar \menuseparator
19854 inset, a box with a label.
19855 The label will automatically be translated to the document language in
19857 After the label you can insert the caption text.
19858 The image or table is inserted above or below the caption in a separate
19859 paragraph within the float.
19860 More about the caption placement is contained in section
19861 \begin_inset space ~
19865 \begin_inset CommandInset ref
19867 reference "sec:Caption-Placement"
19872 To keep your LyX-document readable, you can open and close the float box
19873 by left-clicking on the box label.
19874 A closed float box looks like this:
19875 \begin_inset Graphics
19876 filename clipart/floatQt4.png
19878 scaleBeforeRotation
19882 – a gray button with a red label.
19885 \begin_layout Standard
19886 It is recommended that you insert floats as a separate standard paragraph
19887 to avoid possible LaTeX-errors that can occur when the surrounding text
19888 is specially formatted.
19891 \begin_layout Standard
19892 Existing figures or tables can be put into a float by highlighting them
19893 and then pressing the corresponding toolbar button for a new float.
19896 \begin_layout Section
19900 \begin_layout Standard
19901 Besides figure and table floats that are described in sections
19902 \begin_inset space ~
19906 \begin_inset CommandInset ref
19908 reference "sec:Figure-Floats"
19913 \begin_inset CommandInset ref
19915 reference "sec:Table-Floats"
19919 respectively, LyX offers the float types
19928 The latter are explained in sec.
19929 \begin_inset space \thinspace{}
19933 \begin_inset CommandInset ref
19935 reference "sec:Wrap-Floats"
19942 \begin_layout Subsection
19944 \begin_inset Index idx
19947 \begin_layout Plain Layout
19948 Floats ! Algorithms
19956 \begin_layout Standard
19957 \begin_inset Float algorithm
19963 \begin_layout Plain Layout
19964 \begin_inset Caption
19966 \begin_layout Plain Layout
19967 \begin_inset CommandInset label
19969 name "alg:Example-Algorithm-float"
19973 Example Algorithm float
19981 \begin_layout LyX-Code
19983 \begin_inset Newline newline
19986 Sum:= Sum + A(I); /*comment*/
19987 \begin_inset Newline newline
19991 \begin_inset VSpace -4mm
20002 \begin_layout Standard
20003 This float type is inserted with the menu
20005 Insert\SpecialChar \menuseparator
20006 Floats\SpecialChar \menuseparator
20010 It is used for program codes and descriptions of algorithms and can be
20011 seen as an alternative to program code listings that are explained in chapter
20012 \begin_inset space ~
20016 \begin_inset CommandInset ref
20018 reference "cha:Program-Code-Listings"
20023 A possible environment for algorithms is the
20027 , described in LyX's
20033 \begin_inset space ~
20037 \begin_inset CommandInset ref
20039 reference "alg:Example-Algorithm-float"
20043 is an example of an algorithm float where -4
20044 \begin_inset space \thinspace{}
20047 mm vertical space was added at the end of the float to have the bottom rule
20048 exactly below the last text line.
20051 \begin_layout Standard
20052 The float label is not automatically translated into the document language.
20053 If your document is not in English, you have to do this manually by adding
20054 the following line to the document preamble
20059 \begin_layout Standard
20064 floatname{algorithm}{your
20065 \begin_inset space ~
20071 \begin_layout Standard
20075 \begin_inset space ~
20081 \begin_inset Quotes eld
20089 \begin_inset Quotes erd
20095 \begin_layout Standard
20096 To insert the list of algorithms you can use the menu
20098 Insert\SpecialChar \menuseparator
20100 \begin_inset space \thinspace{}
20104 \begin_inset space \thinspace{}
20107 TOC\SpecialChar \menuseparator
20110 when your document has the same language as LyX's menu names.
20111 In other cases use this command in TeX-Code instead:
20114 \begin_layout Standard
20119 listof{algorithm}{your
20120 \begin_inset space ~
20126 \begin_layout Standard
20130 \begin_inset space ~
20136 \begin_inset Quotes eld
20144 \begin_inset Quotes erd
20150 \begin_layout Standard
20151 Algorithm floats are not by default numbered in the scheme
20152 \begin_inset Quotes eld
20156 \begin_inset Quotes erd
20159 as is the case for table and figure floats in many document-classes.
20160 To number algorithm floats in the same scheme, add this command to your
20164 \begin_layout Standard
20169 numberwithin{algorithm}{chapter}
20172 \begin_layout Standard
20173 To be able to use the command
20182 \begin_inset space ~
20187 in the document settings the option
20190 \begin_inset space ~
20194 \begin_inset space ~
20198 \begin_inset space ~
20206 \begin_layout Section
20208 \begin_inset Index idx
20211 \begin_layout Plain Layout
20220 \begin_layout Standard
20221 Floats are usually numbered either independently from the sections the floats
20222 are in, or in the scheme
20223 \begin_inset Quotes eld
20227 \begin_inset Quotes erd
20231 \begin_inset Quotes eld
20235 \begin_inset Quotes erd
20239 This depends on the document class used.
20242 \begin_layout Standard
20243 To change section-independent numbering, you can use this command in the
20247 \begin_layout Standard
20259 \begin_layout Standard
20266 is the command that prints the table number, for figure floats, the command
20280 in the command above prints the table number as small roman number.
20283 \begin_layout Standard
20284 To change the numbering scheme for example to
20285 \begin_inset Quotes eld
20289 \begin_inset Quotes erd
20292 , use this command in the preamble:
20295 \begin_layout Standard
20300 numberwithin{table}{subsection}
20303 \begin_layout Standard
20304 To be able to use the command
20313 \begin_inset space ~
20318 in the document settings the option
20321 \begin_inset space ~
20325 \begin_inset space ~
20329 \begin_inset space ~
20337 \begin_layout Standard
20338 Please also have a look at section
20339 \begin_inset space ~
20343 \begin_inset CommandInset ref
20345 reference "sub:Footnote-Numbering"
20349 for the details and important notes about the numbering commands.
20352 \begin_layout Section
20354 \begin_inset CommandInset label
20356 name "sec:Referencing-Floats"
20361 \begin_inset Index idx
20364 \begin_layout Plain Layout
20365 Floats ! References
20371 \begin_inset Index idx
20374 \begin_layout Plain Layout
20375 References ! to Floats
20383 \begin_layout Standard
20384 To reference a float, insert a label into its caption using the menu
20386 Insert\SpecialChar \menuseparator
20389 or the toolbar button
20400 A grey label box like this one:
20401 \begin_inset Graphics
20402 filename clipart/labelQt4.png
20404 scaleBeforeRotation
20408 will be inserted and the label window pops up asking for the label text.
20409 LyX offers as text the first words of the caption with a prefix.
20410 The prefix depends on the float type, e.
20411 \begin_inset space \thinspace{}
20415 \begin_inset space \space{}
20418 for figure floats the prefix will be "
20425 \begin_layout Standard
20426 The label is used as anchor and name for the reference.
20427 You can refer to the label using the menu
20429 Insert\SpecialChar \menuseparator
20432 or the toolbar button
20437 arg "dialog-show-new-inset ref"
20443 A grey cross-reference box like this one:
20444 \begin_inset Graphics
20445 filename clipart/referenceQt4.png
20447 scaleBeforeRotation
20451 will be inserted and the cross-reference window appear showing all labels
20453 If you have multiple LyX-documents opened, choose the one you are working
20454 on from the drop-list at the top of the dialog.
20455 You can now sort the labels alphabetically and then choose one.
20456 At the position of the cross-reference box the float number will appear
20460 \begin_layout Standard
20461 It is recommended that you use a protected space between the cross-reference
20462 name and its number to avoid line breaks between them.
20463 If a cross-reference refers to a non-existing label, you will see two question
20464 marks in the output instead of the reference.
20467 \begin_layout Standard
20468 You can change labels at any time by clicking on the label box.
20469 References to the changed label will automatically change its link to the
20470 new label text, so that you don't need to take care about this.
20473 \begin_layout Standard
20477 \begin_inset space ~
20481 \begin_inset space ~
20486 in the cross-reference window sets the cursor before the referred label.
20487 The button text changes then to Go
20488 \begin_inset space ~
20491 Back and you can use it to set the cursor back to the cross-reference.
20492 Right-clicking on a cross-reference box also sets the cursor before the
20493 referenced label but without the possibility of going back.
20496 \begin_layout Subsection
20497 Cross-Reference Formats
20498 \begin_inset CommandInset label
20500 name "sub:Cross-Reference-Formats"
20505 \begin_inset Index idx
20508 \begin_layout Plain Layout
20509 References ! Formats
20517 \begin_layout Standard
20518 There are six varieties of cross-references:
20521 \begin_layout Description
20522 <reference>: prints the float number, this is the default:
20523 \begin_inset CommandInset ref
20525 reference "fig:Two-distorted-images"
20532 \begin_layout Description
20533 (<reference>): prints the float number within two parentheses, this is the
20534 style normally used to reference formulas, especially when the reference
20536 \begin_inset Quotes eld
20540 \begin_inset Quotes erd
20544 \begin_inset CommandInset ref
20553 \begin_layout Description
20554 <page>: prints the page number: Page
20555 \begin_inset space ~
20559 \begin_inset CommandInset ref
20560 LatexCommand pageref
20561 reference "fig:Two-distorted-images"
20568 \begin_layout Description
20570 \begin_inset space ~
20574 \begin_inset space ~
20577 <page>: prints the text "on page" and the page number:
20578 \begin_inset CommandInset ref
20579 LatexCommand vpageref
20580 reference "fig:Two-distorted-images"
20587 \begin_layout Description
20589 \begin_inset space ~
20593 \begin_inset space ~
20597 \begin_inset space ~
20600 <page>: prints the float number, the text "on page", and the page number:
20602 \begin_inset CommandInset ref
20604 reference "fig:Two-distorted-images"
20611 \begin_layout Description
20613 \begin_inset space ~
20616 reference: prints a self-defined cross-reference format.
20617 \begin_inset Newline newline
20621 \begin_inset Note Greyedout
20624 \begin_layout Plain Layout
20629 This feature is only available when you have the LaTeX-package
20638 \begin_inset Index idx
20641 \begin_layout Plain Layout
20642 LaTeX-packages ! prettyref
20648 \begin_inset Index idx
20651 \begin_layout Plain Layout
20652 LaTeX-packages ! refstyle
20663 \begin_inset Newline newline
20666 You can select which LaTeX-package should be used for this feature by setting
20669 Use refstyle (not prettyref) for cross-references
20673 Document\SpecialChar \menuseparator
20674 Settings\SpecialChar \menuseparator
20678 The format is specified by adding the command
20690 (refstyle) to the preamble of the document.
20691 For example redefining all references to figures (which have the label
20693 \begin_inset Quotes eld
20701 \begin_inset Quotes erd
20704 ) can be done with this command
20705 \begin_inset Newline newline
20712 newref{fig}{refcmd={Image on page
20717 \begin_inset Newline newline
20720 For more information about the format, have a look at the package documentations
20722 \begin_inset CommandInset citation
20724 key "prettyref,refstyle"
20731 \begin_layout Description
20733 \begin_inset space ~
20736 reference: prints the caption of the reference:
20737 \begin_inset CommandInset ref
20738 LatexCommand nameref
20739 reference "fig:Two-distorted-images"
20746 \begin_layout Standard
20751 will not print the page number if the label is on the previous, the same,
20754 \begin_inset space \thinspace{}
20758 \begin_inset space \space{}
20762 \begin_inset Quotes eld
20770 \begin_inset Quotes erd
20776 <reference> on page <page>
20778 will not print anything about the page if the label is on the same page.
20781 \begin_layout Standard
20782 The number and current page of the part of the document referred to in the
20783 output is automatically calculated by LaTeX.
20784 The varieties are adjusted in the field
20788 of the cross-reference window that appears when you click on the cross-referenc
20792 \begin_layout Standard
20793 \begin_inset Note Greyedout
20796 \begin_layout Plain Layout
20801 It is recommended to use the LaTeX-package
20806 \begin_inset Index idx
20809 \begin_layout Plain Layout
20810 LaTeX-packages ! refstyle
20820 \begin_inset Index idx
20823 \begin_layout Plain Layout
20824 LaTeX-packages ! prettyref
20829 does not know all of LyX's possible label shortcuts
20833 \begin_layout Plain Layout
20834 \begin_inset Quotes eld
20838 \begin_inset Quotes erd
20841 is for example LyX's shortcut for labels in figure captions.
20846 and is not internationalized.
20854 \begin_layout Standard
20855 \begin_inset Note Greyedout
20858 \begin_layout Plain Layout
20863 Due to a bug in the LaTeX-package
20867 version 1.4w, some cross-reference formats will cause LaTeX errors for document
20868 languages that make the period character active (like French).
20869 For a workaround, see
20870 \begin_inset Newline newline
20874 \begin_inset CommandInset href
20876 target "http://wiki.lyx.org/LaTeX/LatexBugs#toc5"
20888 \begin_layout Subsection
20889 Automatic Reference Naming
20890 \begin_inset Index idx
20893 \begin_layout Plain Layout
20894 References ! Automatic Reference Naming
20902 \begin_layout Standard
20908 \begin_inset Index idx
20911 \begin_layout Plain Layout
20912 LaTeX-packages ! hyperref
20917 , that is enabled in the
20925 dialog, provides a very useful feature that cross-references automatically
20926 include the name of the referenced floats (or text parts like
20931 So you will save having to write e.
20932 \begin_inset space \thinspace{}
20936 \begin_inset space \space{}
20940 \begin_inset Quotes eld
20944 \begin_inset Quotes erd
20947 before every reference to a figure.
20948 To use this feature, enable
20952 and insert this line to the LaTeX preamble:
20955 \begin_layout Standard
20971 \begin_layout Standard
20972 When you prefer other reference names than the default ones, for example
20973 you want instead of
20974 \begin_inset Quotes eld
20978 \begin_inset Quotes erd
20982 \begin_inset Quotes eld
20986 \begin_inset space \thinspace{}
20990 \begin_inset Quotes eld
20993 , you can redefine the name by inserting this in the preamble:
20996 \begin_layout Standard
21007 sectionautorefname}
21008 \begin_inset Newline newline
21012 \begin_inset Phantom HPhantom
21015 \begin_layout Plain Layout
21018 \begin_inset space ~
21031 \begin_layout Standard
21032 When you are using another document language than English, replace
21033 \begin_inset Newline newline
21048 , where *** is the name of the language used.
21051 \begin_layout Standard
21052 To get automatic names, but not for certain reference types, for example
21053 not for equations, use this preamble code:
21056 \begin_layout Standard
21064 \begin_inset Newline newline
21074 \begin_inset Newline newline
21085 equationautorefname}
21086 \begin_inset Newline newline
21090 \begin_inset Phantom HPhantom
21093 \begin_layout Plain Layout
21096 \begin_inset space ~
21111 \begin_layout Standard
21112 More about this topic can be found in
21117 \begin_inset CommandInset citation
21126 \begin_layout Standard
21127 \begin_inset Note Greyedout
21130 \begin_layout Plain Layout
21135 Automatic reference naming cannot be used when you use cross-references
21139 \begin_inset space ~
21144 style, as described in section
21145 \begin_inset space ~
21149 \begin_inset CommandInset ref
21151 reference "sub:Cross-Reference-Formats"
21163 \begin_layout Standard
21168 manual is an example where automatic reference naming is used.
21171 \begin_layout Subsection
21173 \begin_inset CommandInset label
21175 name "sub:Reference-Position"
21180 \begin_inset Index idx
21183 \begin_layout Plain Layout
21184 References ! Reference Position
21192 \begin_layout Standard
21198 \begin_inset Index idx
21201 \begin_layout Plain Layout
21202 LaTeX-packages ! hyperref
21215 dialog to link cross-references in the output, you will see that clicking
21216 on an image float reference jumps to the image label.
21217 The caption will be the first text part on the screen, so that you cannot
21218 see the image without scrolling.
21219 This is because the reference link anchor is placed at the position of
21221 With the use of the package
21226 \begin_inset Index idx
21229 \begin_layout Plain Layout
21230 LaTeX-packages ! hypcap
21235 , which is part of the LaTeX-package
21240 \begin_inset Index idx
21243 \begin_layout Plain Layout
21244 LaTeX-packages ! oberdiek
21249 , the link anchor is placed at the beginning of a float.
21250 To use this feature for figure floats, load
21254 in the document preamble with the line
21257 \begin_layout Standard
21262 usepackage[figure]{hypcap}
21265 \begin_layout Standard
21270 for all float types but this is not recommended for stability reasons.
21271 For more information, have a look at
21276 \begin_inset CommandInset citation
21285 \begin_layout Standard
21286 \begin_inset Note Greyedout
21289 \begin_layout Plain Layout
21298 has no effect on references to subfigures.
21306 \begin_layout Section
21308 \begin_inset CommandInset label
21310 name "sec:Float-Placement"
21315 \begin_inset Index idx
21318 \begin_layout Plain Layout
21327 \begin_layout Standard
21328 Right-clicking on a float-box opens a dialog where you can alter the placement
21329 options that LaTeX uses for positioning the float.
21330 \begin_inset Newline newline
21336 \begin_inset space ~
21341 is only useful for two-column documents: If you select it, the float will
21342 span both columns on the page instead of being confined to just one.
21343 \begin_inset Newline newline
21349 \begin_inset space ~
21354 is used to rotate floats, see section
21355 \begin_inset CommandInset ref
21357 reference "sec:Rotated-Floats"
21364 \begin_layout Standard
21365 You can use one ore more of the following options in the float dialog to
21366 set the placement for a particular float when you uncheck the option
21369 \begin_inset space ~
21373 \begin_inset space ~
21381 \begin_layout Description
21383 \begin_inset space ~
21387 \begin_inset space ~
21390 possible try to place the float on the position where it has been inserted
21393 \begin_layout Description
21395 \begin_inset space ~
21399 \begin_inset space ~
21402 page try to place the float at the top of the current page
21405 \begin_layout Description
21407 \begin_inset space ~
21411 \begin_inset space ~
21414 page try to place the float at the bottom of the current page
21417 \begin_layout Description
21419 \begin_inset space ~
21423 \begin_inset space ~
21426 floats try to place the float on its own page
21429 \begin_layout Standard
21430 The order of the above option is
21435 That means, if you use the default placement, LaTeX will first try out
21439 \begin_inset space ~
21443 \begin_inset space ~
21451 \begin_inset space ~
21455 \begin_inset space ~
21460 , and then the others.
21461 If you do not use the default, LaTeX will try only the checked options
21462 but in the same order.
21464 \begin_inset space ~
21467 placements are possible the procedure is internally repeated but it is tried
21468 to put the float on the following page.
21471 \begin_layout Standard
21472 By default, each option has its own rules:
21475 \begin_layout Labeling
21476 \labelwidthstring 00.00.0000
21480 \begin_inset space ~
21484 \begin_inset space ~
21489 only floats occupying less than 70
21490 \begin_inset space \thinspace{}
21493 % of the page can be placed at the top of a page (
21502 \begin_layout Labeling
21503 \labelwidthstring 00.00.0000
21507 \begin_inset space ~
21511 \begin_inset space ~
21516 : only floats occupying less than 30
21517 \begin_inset space \thinspace{}
21520 % of the page can be placed at the bottom of a page.
21530 \begin_layout Labeling
21531 \labelwidthstring 00.00.0000
21535 \begin_inset space ~
21539 \begin_inset space ~
21544 : only if more than 50
21545 \begin_inset space \thinspace{}
21548 % of the page are occupied by floats, several floats can be set together
21559 \begin_layout Standard
21560 If you don't like these rules, you can ignore them by using the additional
21564 \begin_inset space ~
21568 \begin_inset space ~
21574 \begin_inset Newline newline
21577 You can also redefine the rules with LaTeX-commands that are given in parenthese
21578 s after the rules description above.
21579 To increase for example the often too small default of the bottom-rule
21581 \begin_inset space \thinspace{}
21584 % of the page, add this line to your document preamble:
21587 \begin_layout Standard
21594 bottomfraction}{0.5}
21597 \begin_layout Standard
21598 Sometimes you might need, under all circumstances, a float to be placed
21599 exactly at the position where it is inserted.
21600 For this case you can use the option
21603 \begin_inset space ~
21609 Use this option very rarely and only if the document is almost ready to
21610 be printed, because the float is then no longer able to
21611 \begin_inset Quotes eld
21615 \begin_inset Quotes erd
21618 when you change your document and this will often destroy the page layout.
21621 \begin_layout Standard
21622 There are no placement options for text wrap floats, because they are always
21623 surrounded by the text of a certain paragraph.
21624 \begin_inset VSpace bigskip
21630 \begin_layout Standard
21631 Sometimes you have the problem that a float is placed at the top of a page
21632 while its corresponding section starts at the middle of the page, so that
21633 the reader could think the float is part of the previous section.
21634 To avoid this the LaTeX-command
21641 It suppresses a given float placement for the page where it is inserted
21642 and can therefore be used to avoid floats being set before a section starts.
21643 To get this, add these commands to your document preamble:
21646 \begin_layout Standard
21656 \begin_inset Newline newline
21670 \begin_layout Standard
21671 You can define the same for all section headings, like chapters and subsections.
21672 This definition is not recommended to be used for small text parts like
21673 subsubsections because LaTeX may then have problems finding a suitable
21677 \begin_layout Standard
21678 \begin_inset VSpace bigskip
21681 In some cases it is required to have all figures/tables at the end of the
21683 For this purpose the LaTeX-package
21688 \begin_inset Index idx
21691 \begin_layout Plain Layout
21692 LaTeX-packages ! endfloat
21698 It puts all figure and table floats at the end of the document into their
21700 At the original float position a text hint like
21701 \begin_inset Quotes eld
21707 \begin_inset space ~
21713 \begin_inset Quotes erd
21717 The endfloat-package is loaded in the preamble with the line
21720 \begin_layout Standard
21725 usepackage[options]{endfloat}
21728 \begin_layout Standard
21729 There are various package options to format the created figure/table sections.
21730 For more information we refer to the
21735 \begin_inset CommandInset citation
21742 \begin_inset Newline newline
21746 \begin_inset Note Greyedout
21749 \begin_layout Plain Layout
21754 doesn't provide an automatic translation for the text hint, you have to
21755 do this manually, see section
21756 \begin_inset space ~
21760 \begin_inset CommandInset citation
21772 \begin_inset Newline newline
21776 \begin_inset Note Greyedout
21779 \begin_layout Plain Layout
21784 There is currently a bug in
21788 when the caption contains a German
21789 \begin_inset Quotes eld
21793 \begin_inset Quotes erd
21797 Use in this case the command
21798 \begin_inset Quotes eld
21808 \begin_inset Quotes erd
21811 in TeX-Code instead of
21812 \begin_inset Quotes eld
21816 \begin_inset Quotes erd
21827 \begin_layout Standard
21828 \begin_inset VSpace bigskip
21831 For more details about float placements, have a look at LaTeX books,
21832 \begin_inset CommandInset citation
21834 key "latexcompanion,latexguide,latexbook"
21841 \begin_layout Section
21843 \begin_inset CommandInset label
21845 name "sec:Rotated-Floats"
21850 \begin_inset Index idx
21853 \begin_layout Plain Layout
21862 \begin_layout Standard
21863 Especially for wide tables you might have floats rotated.
21864 To rotate a whole float including the caption, right-click on the float-box
21868 \begin_inset space ~
21876 \begin_layout Standard
21877 Rotated floats are always placed on a page of their own (or column of their
21878 own; in case you have a multi-column document).
21879 You can let them span several columns using the float settings option
21882 \begin_inset space ~
21888 Floats are rotated so that you can read them from the outside margin.
21889 To force a certain rotation direction for all pages, you can add either
21898 to the document class options.
21901 \begin_layout Standard
21902 Referencing rotated floats is the same as for normal floats, the caption
21903 format is also the same: Table
21904 \begin_inset space ~
21908 \begin_inset CommandInset ref
21910 reference "tab:Rotated-table"
21914 is an example of a rotated table float.
21917 \begin_layout Standard
21918 \begin_inset Note Greyedout
21921 \begin_layout Plain Layout
21926 Not all DVI-viewers are able to display rotated floats.
21934 \begin_layout Standard
21935 \begin_inset Float table
21940 \begin_layout Plain Layout
21941 \begin_inset Caption
21943 \begin_layout Plain Layout
21944 \begin_inset CommandInset label
21946 name "tab:Rotated-table"
21958 \begin_layout Plain Layout
21960 \begin_inset Tabular
21961 <lyxtabular version="3" rows="1" columns="5">
21962 <features tabularvalignment="middle">
21963 <column alignment="center" valignment="top" width="0">
21964 <column alignment="center" valignment="top" width="0">
21965 <column alignment="center" valignment="top" width="0">
21966 <column alignment="center" valignment="top" width="0">
21967 <column alignment="center" valignment="top" width="0">
21969 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21972 \begin_layout Plain Layout
21978 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21981 \begin_layout Plain Layout
21987 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21990 \begin_layout Plain Layout
21996 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21999 \begin_layout Plain Layout
22005 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22008 \begin_layout Plain Layout
22027 \begin_layout Section
22029 \begin_inset Index idx
22032 \begin_layout Plain Layout
22041 \begin_layout Standard
22042 Subfloats are for example used when a figure consists of several images.
22043 They are created by inserting a float into an existing float.
22044 The placement of the subfloats can be controlled in the same way as for
22045 paragraphs as shown in table
22046 \begin_inset space ~
22050 \begin_inset CommandInset ref
22052 reference "tab:Two-subtables-side"
22057 \begin_inset CommandInset ref
22059 reference "tab:Two-subtables-upon"
22066 \begin_layout Standard
22067 Referencing subfloats works as for normal floats: Table
22068 \begin_inset space ~
22072 \begin_inset CommandInset ref
22074 reference "tab:This-is-subtable-a"
22079 \begin_inset CommandInset ref
22081 reference "tab:This-is-subtable-b"
22085 are subtables of table
22086 \begin_inset space ~
22090 \begin_inset CommandInset ref
22092 reference "tab:Two-subtables-side"
22099 \begin_layout Standard
22100 \begin_inset Float table
22105 \begin_layout Plain Layout
22106 \begin_inset Caption
22108 \begin_layout Plain Layout
22109 \begin_inset CommandInset label
22111 name "tab:Two-subtables-side"
22115 Two subtables placed side by side.
22123 \begin_layout Plain Layout
22125 \begin_inset space \hfill{}
22129 \begin_inset Float table
22134 \begin_layout Plain Layout
22135 \begin_inset Caption
22137 \begin_layout Plain Layout
22138 \begin_inset CommandInset label
22140 name "tab:This-is-subtable-a"
22144 This is subtable a.
22152 \begin_layout Plain Layout
22154 \begin_inset Tabular
22155 <lyxtabular version="3" rows="1" columns="5">
22156 <features tabularvalignment="middle">
22157 <column alignment="center" valignment="top" width="0">
22158 <column alignment="center" valignment="top" width="0">
22159 <column alignment="center" valignment="top" width="0">
22160 <column alignment="center" valignment="top" width="0">
22161 <column alignment="center" valignment="top" width="0">
22163 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22166 \begin_layout Plain Layout
22172 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22175 \begin_layout Plain Layout
22181 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22184 \begin_layout Plain Layout
22190 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22193 \begin_layout Plain Layout
22199 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22202 \begin_layout Plain Layout
22219 \begin_inset space \hfill{}
22223 \begin_inset Float table
22228 \begin_layout Plain Layout
22229 \begin_inset Caption
22231 \begin_layout Plain Layout
22232 \begin_inset CommandInset label
22234 name "tab:This-is-subtable-b"
22238 This is subtable b.
22246 \begin_layout Plain Layout
22248 \begin_inset Tabular
22249 <lyxtabular version="3" rows="1" columns="5">
22250 <features tabularvalignment="middle">
22251 <column alignment="center" valignment="top" width="0">
22252 <column alignment="center" valignment="top" width="0">
22253 <column alignment="center" valignment="top" width="0">
22254 <column alignment="center" valignment="top" width="0">
22255 <column alignment="center" valignment="top" width="0">
22257 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22260 \begin_layout Plain Layout
22266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22269 \begin_layout Plain Layout
22275 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22278 \begin_layout Plain Layout
22284 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22287 \begin_layout Plain Layout
22293 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22296 \begin_layout Plain Layout
22313 \begin_inset space \hfill{}
22324 \begin_layout Standard
22325 \begin_inset Float table
22330 \begin_layout Plain Layout
22331 \begin_inset Caption
22333 \begin_layout Plain Layout
22334 \begin_inset CommandInset label
22336 name "tab:Two-subtables-upon"
22340 Two subtables placed one above the other.
22341 (a) table with 4 cells, (b) table with 5 cells.
22349 \begin_layout Plain Layout
22351 \begin_inset Float table
22356 \begin_layout Plain Layout
22357 \begin_inset Caption
22359 \begin_layout Plain Layout
22368 \begin_layout Plain Layout
22370 \begin_inset Tabular
22371 <lyxtabular version="3" rows="1" columns="4">
22372 <features tabularvalignment="middle">
22373 <column alignment="center" valignment="top" width="0">
22374 <column alignment="center" valignment="top" width="0">
22375 <column alignment="center" valignment="top" width="0">
22376 <column alignment="center" valignment="top" width="0">
22378 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22381 \begin_layout Plain Layout
22387 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22390 \begin_layout Plain Layout
22396 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22399 \begin_layout Plain Layout
22405 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22408 \begin_layout Plain Layout
22427 \begin_layout Plain Layout
22429 \begin_inset Float table
22434 \begin_layout Plain Layout
22435 \begin_inset Caption
22437 \begin_layout Plain Layout
22446 \begin_layout Plain Layout
22448 \begin_inset Tabular
22449 <lyxtabular version="3" rows="1" columns="5">
22450 <features tabularvalignment="middle">
22451 <column alignment="center" valignment="top" width="0">
22452 <column alignment="center" valignment="top" width="0">
22453 <column alignment="center" valignment="top" width="0">
22454 <column alignment="center" valignment="top" width="0">
22455 <column alignment="center" valignment="top" width="0">
22457 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22460 \begin_layout Plain Layout
22466 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22469 \begin_layout Plain Layout
22475 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22478 \begin_layout Plain Layout
22484 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22487 \begin_layout Plain Layout
22493 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22496 \begin_layout Plain Layout
22520 \begin_layout Section
22521 Floats Side by Side
22522 \begin_inset Index idx
22525 \begin_layout Plain Layout
22526 Floats ! Side by side
22534 \begin_layout Standard
22535 To place floats side by side, as in Figures
22536 \begin_inset space ~
22540 \begin_inset CommandInset ref
22542 reference "fig:Float-left"
22547 \begin_inset CommandInset ref
22549 reference "fig:Float-right"
22558 In it two minipage boxes are inserted.
22562 \begin_layout Plain Layout
22563 Minipages are explained in section
22564 \begin_inset space ~
22568 \begin_inset CommandInset ref
22570 reference "sec:Minipages"
22579 The width is set to 45
22580 \begin_inset space \thinspace{}
22584 \begin_inset space \thinspace{}
22587 column% and the box alignment to
22592 The minipage boxes contain the image and the caption in the same way as
22593 they are in a float.
22594 The only difference is that the image unit
22597 \begin_inset space ~
22601 \begin_inset space ~
22606 is now calculated according to the width of the minipage boxes.
22609 \begin_layout Standard
22610 \begin_inset Float figure
22615 \begin_layout Plain Layout
22616 \begin_inset Box Frameless
22626 height_special "totalheight"
22629 \begin_layout Plain Layout
22631 \begin_inset Graphics
22632 filename clipart/mobius.eps
22635 scaleBeforeRotation
22642 \begin_layout Plain Layout
22643 \begin_inset Caption
22645 \begin_layout Plain Layout
22646 \begin_inset CommandInset label
22648 name "fig:Float-left"
22652 Float on the left side.
22663 \begin_inset space \hfill{}
22667 \begin_inset Box Frameless
22677 height_special "totalheight"
22680 \begin_layout Plain Layout
22682 \begin_inset Graphics
22683 filename clipart/platypus.eps
22686 scaleBeforeRotation
22693 \begin_layout Plain Layout
22694 \begin_inset Caption
22696 \begin_layout Plain Layout
22697 \begin_inset CommandInset label
22699 name "fig:Float-right"
22703 Float on the right side.
22716 \begin_layout Plain Layout
22725 \begin_layout Section
22727 \begin_inset Index idx
22730 \begin_layout Plain Layout
22731 Caption ! Formatting
22737 \begin_inset Index idx
22740 \begin_layout Plain Layout
22741 Floats ! Caption Formatting
22747 \begin_inset CommandInset label
22749 name "sec:Caption-Formatting"
22756 \begin_layout Standard
22761 environment is the default paragraph environment for
22766 On the LyX screen captions appear as label, e.
22767 \begin_inset space \thinspace{}
22771 \begin_inset space \space{}
22775 \begin_inset Quotes eld
22783 \begin_inset Quotes erd
22786 followed by the caption text.
22788 \begin_inset Quotes eld
22792 \begin_inset Quotes erd
22795 is the actual reference number.
22796 By default the label and the number are in the same font as the caption
22797 text and a colon follows the number to divide the label from the text.
22798 This caption format is not suitable for all document formats.
22802 \begin_layout Standard
22803 To change the default caption format, load the LaTeX-package
22808 \begin_inset Index idx
22811 \begin_layout Plain Layout
22812 LaTeX-packages ! caption
22817 in the document preamble with this line:
22820 \begin_layout Standard
22825 usepackage[format definition]{caption}
22828 \begin_layout Standard
22829 To have for example the label and the number in sans-serif bold font and
22830 the table captions always above the table as in this document, use the
22834 \begin_layout Standard
22839 usepackage[labelfont={bf,sf}, tableposition=top]{caption}
22842 \begin_layout Standard
22843 You can also define different caption formats for the different float types.
22844 In this case load the
22848 package without format specific options and define the different formats
22849 with the help of the command
22852 \begin_layout Standard
22857 captionsetup[float type]{format definition}
22860 \begin_layout Standard
22861 in the document preamble.
22862 For example the caption formats of Figure
22863 \begin_inset space ~
22867 \begin_inset CommandInset ref
22869 reference "fig:This-is-an-fig"
22874 \begin_inset space ~
22878 \begin_inset CommandInset ref
22880 reference "tab:This-is-an-tab"
22884 can be created using these commands in the document preamble:
22887 \begin_layout Standard
22892 usepackage[tableposition=top]{caption}
22895 \begin_inset Newline newline
22902 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm,%
22903 \begin_inset Newline newline
22907 \begin_inset Phantom HPhantom
22910 \begin_layout Plain Layout
22915 captionsetup[figure]{
22921 \begin_inset Newline newline
22926 captionsetup[table]{labelfont={bf,sf}}
22929 \begin_layout Standard
22930 \begin_inset Note Greyedout
22933 \begin_layout Plain Layout
22942 has no effect when a
22947 \begin_inset Index idx
22950 \begin_layout Plain Layout
22951 LaTeX-packages ! KOMA-Script
22956 document class is used.
22957 In this case the document class option
22959 captions=tableheading
22969 \begin_layout Standard
22970 For more information about the package
22974 we refer to its documentation
22975 \begin_inset CommandInset citation
22984 \begin_layout Standard
22985 To change the label name from e.
22986 \begin_inset space \thinspace{}
22990 \begin_inset space \space{}
22994 \begin_inset Quotes eld
22998 \begin_inset Quotes erd
23002 \begin_inset Quotes eld
23006 \begin_inset Quotes erd
23009 use this preamble command:
23012 \begin_layout Standard
23019 fnum@figure}{Image~
23024 \begin_layout Standard
23031 inserts the figure number and
23034 \begin_inset Quotes eld
23040 \begin_inset Quotes erd
23043 creates a protected space.
23046 \begin_layout Standard
23047 \begin_inset VSpace bigskip
23055 \begin_inset Index idx
23058 \begin_layout Plain Layout
23059 LaTeX-packages ! KOMA-Script
23066 article (KOMA-Script)
23074 letter (KOMA-Script)
23078 report (KOMA-Script)
23081 \begin_inset space \thinspace{}
23084 ), you can alternatively to the
23092 's built-in command
23099 For example, to have the caption label in bold, add this command to your
23103 \begin_layout Standard
23108 setkomafont{captionlabel}{
23113 \begin_layout Standard
23114 For more information about
23125 \begin_inset CommandInset citation
23134 \begin_layout Standard
23138 \begin_layout Plain Layout
23142 captionsetup[figure]{labelfont={tt}, textfont=it, indention=1cm, labelsep=period
23149 \begin_inset Note Note
23152 \begin_layout Plain Layout
23153 The caption format is changed only for this example.
23161 \begin_layout Standard
23162 \begin_inset Float figure
23168 \begin_layout Plain Layout
23170 \begin_inset Graphics
23171 filename clipart/mobius.eps
23174 scaleBeforeRotation
23181 \begin_layout Plain Layout
23182 \begin_inset Caption
23184 \begin_layout Plain Layout
23185 \begin_inset CommandInset label
23187 name "fig:This-is-an-fig"
23191 This is an example figure caption that is longer than one line to show the
23192 different caption format.
23193 Here a self-defined caption format is used.
23206 \begin_layout Standard
23210 \begin_layout Plain Layout
23214 captionsetup[figure]{labelfont={bf,sf}, textfont=rm, indention=0cm, labelsep=col
23223 \begin_layout Standard
23224 \begin_inset Float table
23230 \begin_layout Plain Layout
23231 \begin_inset Caption
23233 \begin_layout Plain Layout
23234 \begin_inset CommandInset label
23236 name "tab:This-is-an-tab"
23240 This is an example table caption that is longer than one line to show the
23241 different caption format.
23242 Here the standard caption format for tables in this document is used.
23250 \begin_layout Plain Layout
23252 \begin_inset Tabular
23253 <lyxtabular version="3" rows="1" columns="5">
23254 <features tabularvalignment="middle">
23255 <column alignment="center" valignment="top" width="0">
23256 <column alignment="center" valignment="top" width="0">
23257 <column alignment="center" valignment="top" width="0">
23258 <column alignment="center" valignment="top" width="0">
23259 <column alignment="center" valignment="top" width="0">
23261 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23264 \begin_layout Plain Layout
23270 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23273 \begin_layout Plain Layout
23279 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23282 \begin_layout Plain Layout
23288 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23291 \begin_layout Plain Layout
23297 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23300 \begin_layout Plain Layout
23319 \begin_layout Section
23321 \begin_inset Index idx
23324 \begin_layout Plain Layout
23325 Caption ! Placement
23331 \begin_inset Index idx
23334 \begin_layout Plain Layout
23335 Floats ! Caption Placement
23341 \begin_inset CommandInset label
23343 name "sec:Caption-Placement"
23350 \begin_layout Standard
23351 The common caption placement rule is:
23354 \begin_layout Description
23355 Figure: Caption is set below the figure
23358 \begin_layout Description
23359 Table: Caption is set above the table
23362 \begin_layout Standard
23363 Having the caption above the table is unfortunately not supported in LaTeX's
23365 That means if you are using the document classes
23381 there will be no space between the caption and the table.
23382 To insert the necessary space, add the following option to the load command
23383 of the LaTeX-package
23387 in your document preamble
23391 \begin_layout Plain Layout
23393 \begin_inset space ~
23397 \begin_inset CommandInset ref
23399 reference "sec:Caption-Formatting"
23403 for more information of the package
23415 \begin_layout Standard
23421 \begin_layout Standard
23427 \begin_inset Index idx
23430 \begin_layout Plain Layout
23431 LaTeX-packages ! KOMA-Script
23438 article (KOMA-Script)
23446 letter (KOMA-Script)
23450 report (KOMA-Script)
23453 \begin_inset space \thinspace{}
23456 ), you can alternatively to the
23460 package set the document class option
23462 captions=tableheading
23467 \begin_layout Standard
23468 \begin_inset VSpace bigskip
23471 It is also possible to set the caption beside a figure or table.
23472 To get this the LaTeX-package
23477 \begin_inset Index idx
23480 \begin_layout Plain Layout
23481 LaTeX-packages ! sidecap
23486 has to be loaded in the document preamble with the line
23489 \begin_layout Standard
23494 usepackage[option]{sidecap}
23497 \begin_layout Standard
23498 If you set no option, the caption is placed on the side of the outer page
23499 margin – to the right on odd pages, to the left on even pages.
23500 You can change the placement to inner margin with the option
23505 To force the placement always to the right or left, use the option
23516 \begin_layout Standard
23520 \begin_layout Plain Layout
23530 \begin_inset Note Note
23533 \begin_layout Plain Layout
23534 The following section will only be displayed when the LaTeX-package
23546 \begin_layout Standard
23547 To place in LyX the caption of a float on the side, it is necessary to add
23548 these commands to the document preamble:
23551 \begin_layout Standard
23552 \begin_inset Newpage pagebreak
23558 \begin_layout Standard
23560 \begin_inset CommandInset line
23571 \begin_layout Standard
23578 TabBesBeg}[1][1.0]{%
23579 \begin_inset Newline newline
23583 \begin_inset Phantom HPhantom
23586 \begin_layout Plain Layout
23587 \begin_inset space ~
23602 \begin_inset Newline newline
23606 \begin_inset Phantom HPhantom
23609 \begin_layout Plain Layout
23612 \begin_inset space ~
23627 \begin_inset Newline newline
23631 \begin_inset Phantom HPhantom
23634 \begin_layout Plain Layout
23637 \begin_inset space ~
23647 renewenvironment{table}[1]{
23649 begin{SCtable}[#1]##1}{
23654 \begin_layout Standard
23662 \begin_inset Newline newline
23666 \begin_inset Phantom HPhantom
23669 \begin_layout Plain Layout
23670 \begin_inset space ~
23685 \begin_inset Newline newline
23689 \begin_inset Phantom HPhantom
23692 \begin_layout Plain Layout
23693 \begin_inset space ~
23710 \begin_layout Standard
23717 FigBesBeg}[1][1.0]{%
23718 \begin_inset Newline newline
23722 \begin_inset Phantom HPhantom
23725 \begin_layout Plain Layout
23726 \begin_inset space ~
23741 \begin_inset Newline newline
23745 \begin_inset Phantom HPhantom
23748 \begin_layout Plain Layout
23749 \begin_inset space ~
23764 \begin_inset Newline newline
23768 \begin_inset Phantom HPhantom
23771 \begin_layout Plain Layout
23772 \begin_inset space ~
23782 renewenvironment{figure}[1]{
23784 begin{SCfigure}[#1]##1}{
23789 \begin_layout Standard
23797 \begin_inset Newline newline
23801 \begin_inset Phantom HPhantom
23804 \begin_layout Plain Layout
23805 \begin_inset space ~
23820 \begin_inset Newline newline
23824 \begin_inset Phantom HPhantom
23827 \begin_layout Plain Layout
23828 \begin_inset space ~
23845 \begin_layout Standard
23847 \begin_inset CommandInset line
23858 \begin_layout Standard
23859 The commands allow you to redefine the floats so that the caption is set
23861 For figure floats use the command
23864 \begin_layout Standard
23872 \begin_layout Standard
23873 in TeX-Code before the float.
23874 And insert the command
23877 \begin_layout Standard
23885 \begin_layout Standard
23886 in TeX-Code at the point where you want to get back to the original float
23890 \begin_layout Standard
23891 For table floats use the corresponding commands
23894 \begin_layout Standard
23908 \begin_layout Standard
23910 \begin_inset space ~
23914 \begin_inset CommandInset ref
23916 reference "fig:cap-beside-fig"
23921 \begin_inset space ~
23925 \begin_inset CommandInset ref
23927 reference "tab:cap-beside-tab"
23931 are examples where the caption is set beside.
23934 \begin_layout Standard
23935 You can see in the examples that the caption text appears at the top of
23936 the floats for table floats and at the bottom for figure floats.
23937 To change this, you can use the command
23940 \begin_layout Standard
23945 sidecaptionvpos{float type}{placement}
23948 \begin_layout Standard
23949 in the document preamble or in TeX-Code before the float.
23950 The float type is either
23958 , the placement can be
23959 \begin_inset Quotes eld
23967 \begin_inset Quotes erd
23971 \begin_inset Quotes eld
23979 \begin_inset Quotes erd
23983 \begin_inset Quotes eld
23991 \begin_inset Quotes erd
23995 To have for example the caption of figure floats vertically centered, use
23999 \begin_layout Standard
24004 sidecaptionvpos{figure}{c}
24007 \begin_layout Standard
24008 This was used for Figure
24009 \begin_inset space ~
24013 \begin_inset CommandInset ref
24015 reference "fig:cap-beside-fig-2"
24022 \begin_layout Standard
24023 \begin_inset VSpace medskip
24029 \begin_layout Standard
24030 The default caption width is the width of the image/table.
24031 For thin image/tables, like in Table
24032 \begin_inset space ~
24036 \begin_inset CommandInset ref
24038 reference "tab:cap-beside-tab"
24042 , this leads to captions that are too thin.
24043 You can increase the width by specifying a factor that will be multiplied
24044 with the image/table width to get the caption width.
24045 The caption width will automatically be recalculated in case it would protrude
24046 over the page or column margin due to the specified width.
24051 can either be given as optional argument for
24060 \begin_layout Standard
24068 \begin_layout Standard
24069 or in the definition of
24079 with another value.
24080 If you do the latter, your factor will be the default if
24086 is used without an argument.
24088 \begin_inset space ~
24092 \begin_inset CommandInset ref
24094 reference "tab:cap-beside-tab-wider"
24098 the factor 5 was used.
24101 \begin_layout Standard
24102 \begin_inset Note Greyedout
24105 \begin_layout Plain Layout
24110 For floats with captions set beside, you cannot use the float placement
24114 \begin_inset space ~
24119 because it is not supported by
24131 \begin_layout Standard
24132 \begin_inset VSpace medskip
24135 For more information about the package
24139 we refer to its documentation
24140 \begin_inset CommandInset citation
24149 \begin_layout Standard
24150 \begin_inset Note Greyedout
24153 \begin_layout Plain Layout
24163 \begin_inset Index idx
24166 \begin_layout Plain Layout
24167 LaTeX-packages ! hypcap
24172 , described in section
24173 \begin_inset space ~
24177 \begin_inset CommandInset ref
24179 reference "sub:Reference-Position"
24183 , has no effect on floats with the caption set beside.
24191 \begin_layout Standard
24195 \begin_layout Plain Layout
24207 \begin_layout Standard
24208 \begin_inset Float figure
24213 \begin_layout Plain Layout
24214 \begin_inset Graphics
24215 filename clipart/escher-lsd.eps
24217 scaleBeforeRotation
24224 \begin_layout Plain Layout
24225 \begin_inset Caption
24227 \begin_layout Plain Layout
24228 \begin_inset CommandInset label
24230 name "fig:cap-beside-fig"
24234 This is a caption beside a figure.
24247 \begin_layout Standard
24251 \begin_layout Plain Layout
24263 \begin_layout Standard
24267 \begin_layout Plain Layout
24279 \begin_layout Standard
24280 \begin_inset Float table
24285 \begin_layout Plain Layout
24286 \begin_inset Caption
24288 \begin_layout Plain Layout
24289 \begin_inset CommandInset label
24291 name "tab:cap-beside-tab"
24295 This is a caption beside a table.
24303 \begin_layout Plain Layout
24304 \begin_inset Tabular
24305 <lyxtabular version="3" rows="4" columns="5">
24306 <features tabularvalignment="middle">
24307 <column alignment="center" valignment="top" width="0">
24308 <column alignment="center" valignment="top" width="0">
24309 <column alignment="center" valignment="top" width="0">
24310 <column alignment="center" valignment="top" width="0">
24311 <column alignment="center" valignment="top" width="0">
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" usebox="none">
24343 \begin_layout Plain Layout
24349 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24352 \begin_layout Plain Layout
24360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24363 \begin_layout Plain Layout
24369 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24372 \begin_layout Plain Layout
24378 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24381 \begin_layout Plain Layout
24387 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24390 \begin_layout Plain Layout
24396 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24399 \begin_layout Plain Layout
24407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24410 \begin_layout Plain Layout
24416 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24419 \begin_layout Plain Layout
24425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24428 \begin_layout Plain Layout
24434 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24437 \begin_layout Plain Layout
24443 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24446 \begin_layout Plain Layout
24454 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24457 \begin_layout Plain Layout
24463 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24466 \begin_layout Plain Layout
24472 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24475 \begin_layout Plain Layout
24481 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24484 \begin_layout Plain Layout
24490 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24493 \begin_layout Plain Layout
24512 \begin_layout Standard
24516 \begin_layout Plain Layout
24528 \begin_layout Standard
24532 \begin_layout Plain Layout
24536 sidecaptionvpos{figure}{c}
24542 \begin_inset Float figure
24547 \begin_layout Plain Layout
24548 \begin_inset Graphics
24549 filename clipart/escher-lsd.eps
24551 scaleBeforeRotation
24558 \begin_layout Plain Layout
24559 \begin_inset Caption
24561 \begin_layout Plain Layout
24562 \begin_inset CommandInset label
24564 name "fig:cap-beside-fig-2"
24568 This is a vertically centered caption beside a figure.
24581 \begin_layout Standard
24585 \begin_layout Plain Layout
24597 \begin_layout Standard
24601 \begin_layout Plain Layout
24613 \begin_layout Standard
24614 \begin_inset Float table
24619 \begin_layout Plain Layout
24620 \begin_inset Caption
24622 \begin_layout Plain Layout
24623 \begin_inset CommandInset label
24625 name "tab:cap-beside-tab-wider"
24629 This is a caption is wider than the one in Table
24630 \begin_inset space ~
24634 \begin_inset CommandInset ref
24636 reference "tab:cap-beside-tab"
24648 \begin_layout Plain Layout
24649 \begin_inset Tabular
24650 <lyxtabular version="3" rows="4" columns="5">
24651 <features tabularvalignment="middle">
24652 <column alignment="center" valignment="top" width="0">
24653 <column alignment="center" valignment="top" width="0">
24654 <column alignment="center" valignment="top" width="0">
24655 <column alignment="center" valignment="top" width="0">
24656 <column alignment="center" valignment="top" width="0">
24658 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24661 \begin_layout Plain Layout
24667 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24670 \begin_layout Plain Layout
24676 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24679 \begin_layout Plain Layout
24685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24688 \begin_layout Plain Layout
24694 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24697 \begin_layout Plain Layout
24705 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24708 \begin_layout Plain Layout
24714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24717 \begin_layout Plain Layout
24723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24726 \begin_layout Plain Layout
24732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24735 \begin_layout Plain Layout
24741 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24744 \begin_layout Plain Layout
24752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24755 \begin_layout Plain Layout
24761 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24764 \begin_layout Plain Layout
24770 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24773 \begin_layout Plain Layout
24779 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24782 \begin_layout Plain Layout
24788 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24791 \begin_layout Plain Layout
24799 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24802 \begin_layout Plain Layout
24808 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24811 \begin_layout Plain Layout
24817 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24820 \begin_layout Plain Layout
24826 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24829 \begin_layout Plain Layout
24835 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24838 \begin_layout Plain Layout
24857 \begin_layout Standard
24861 \begin_layout Plain Layout
24873 \begin_layout Standard
24877 \begin_layout Plain Layout
24887 \begin_inset Note Note
24890 \begin_layout Plain Layout
24891 The following will be displayed when the LaTeX-package
24903 \begin_layout Standard
24904 You need to install the LaTeX-package
24908 to see the following part of this section in the output.
24911 \begin_layout Standard
24915 \begin_layout Plain Layout
24927 \begin_layout Section
24929 \begin_inset Index idx
24932 \begin_layout Plain Layout
24933 Floats ! Float Lists
24941 \begin_layout Standard
24942 Similar to the table of contents where the sections of the document are
24943 listed, there are listings for all float types, like the figures of the
24945 You can insert them via the
24947 Insert\SpecialChar \menuseparator
24949 \begin_inset space ~
24953 \begin_inset space ~
24961 \begin_layout Standard
24962 The list entries are the float captions or its short title, the float number,
24963 and the page number where they appear in the document.
24966 \begin_layout Standard
24967 You can find the list of figures and tables at the end of this document.
24970 \begin_layout Chapter
24974 \begin_layout Section
24976 \begin_inset Index idx
24979 \begin_layout Plain Layout
24988 \begin_layout Standard
24989 Notes are inserted with the toolbar button
25001 Insert\SpecialChar \menuseparator
25005 There are three types of notes:
25008 \begin_layout Description
25010 \begin_inset space ~
25013 Note This note type is for internal notes that won't appear in the output.
25014 Its note-box looks like this:
25015 \begin_inset Newline newline
25019 \begin_inset Newline newline
25023 \begin_inset Graphics
25024 filename clipart/LyXNoteImageQt4.png
25027 scaleBeforeRotation
25032 \begin_inset Note Note
25035 \begin_layout Plain Layout
25036 This is text in a note box that doesn't appear in the output.
25044 \begin_layout Description
25045 Comment This note also doesn't appear in the output but it appears as LaTeX-comm
25046 ent, when you export the document to LaTeX via the menu
25048 File\SpecialChar \menuseparator
25049 Export\SpecialChar \menuseparator
25050 LaTeX (pdflatex) / (plain)
25053 Its note-box looks like this:
25054 \begin_inset Newline newline
25058 \begin_inset Newline newline
25062 \begin_inset Graphics
25063 filename clipart/CommentNoteImageQt4.png
25066 scaleBeforeRotation
25071 \begin_inset Note Comment
25074 \begin_layout Plain Layout
25075 This is text in a note box that only appears as comment in LaTeX-files.
25083 \begin_layout Description
25085 \begin_inset space ~
25088 Out This note will appear in the output as grey text.
25089 Its note-box looks like this:
25090 \begin_inset Newline newline
25094 \begin_inset Newline newline
25098 \begin_inset Graphics
25099 filename clipart/GreyedOutNoteImageQt4.png
25102 scaleBeforeRotation
25107 \begin_inset Newline newline
25114 \begin_layout Plain Layout
25118 renewenvironment{lyxgreyedout}
25121 \begin_layout Plain Layout
25125 textcolor[gray]{0.8}
25135 \begin_inset Note Greyedout
25138 \begin_layout Plain Layout
25143 \begin_layout Plain Layout
25144 This is an example footnote within a greyed out note.
25149 of a comment that appears in the output as grey text.
25158 \begin_layout Plain Layout
25162 renewenvironment{lyxgreyedout}
25165 \begin_layout Plain Layout
25179 \begin_inset Note Note
25182 \begin_layout Plain Layout
25183 The greyed out note is here redefined to show it with the original LyX definitio
25184 n because greyed out notes are redefined in the preamble of this document,
25185 as described below, to have blue text.
25191 \begin_inset Newline newline
25195 \begin_inset Newline newline
25198 As you can see in the example, the first line of greyed out notes is a bit
25199 indented and greyed out notes can have footnotes.
25202 \begin_layout Standard
25203 \begin_inset VSpace bigskip
25206 When you use the toolbar button
25219 \begin_inset space ~
25225 You can switch between the five note types by right-clicking on the note-box.
25230 If you want to turn existing text into a note, mark it and click on the
25244 To change a note to text, press the backspace key when the cursor is in
25245 the first position of a note, or press the delete key when the cursor is
25246 in the very last position of the note, respectively.
25249 \begin_layout Standard
25250 \begin_inset VSpace bigskip
25253 You can change the text color of the greyed out notes in the menu
25255 Document\SpecialChar \menuseparator
25256 Settings\SpecialChar \menuseparator
25262 \begin_layout Section
25264 \begin_inset CommandInset label
25266 name "sec:Footnotes"
25271 \begin_inset Index idx
25274 \begin_layout Plain Layout
25281 \begin_inset Index idx
25284 \begin_layout Plain Layout
25293 \begin_layout Standard
25294 Footnotes can be inserted using the toolbar button
25299 arg "footnote-insert"
25306 Insert\SpecialChar \menuseparator
25318 then the following footnote-box:
25319 \begin_inset Graphics
25320 filename clipart/footnoteQt4.png
25322 scaleBeforeRotation
25330 where you can enter the footnote text.
25331 If you want to turn existing text into a footnote, mark it and click on
25357 key when the cursor is in the first position of a
25369 key when the cursor is in the very last position of the
25380 \begin_layout Standard
25381 Here is an example footnote:
25389 \begin_layout Plain Layout
25390 \begin_inset CommandInset label
25392 name "foot:This-is-an"
25396 This is an example footnote.
25409 \begin_layout Plain Layout
25413 newcounter{MyRepeatFoot}
25416 \begin_layout Plain Layout
25420 setcounter{MyRepeatFoot}{
25430 \begin_layout Standard
25431 The footnote will appear in the output as a superscript number at the text
25432 position where the footnote box is placed.
25433 The footnote text is placed at the bottom of the current page.
25434 The footnote number is calculated by LaTeX; the numbers are consecutive.
25435 It depends on your document-class, whether the footnote number is reset
25439 \begin_layout Standard
25440 Footnotes can be referenced like floats: Insert a label into the footnote
25441 and cross-reference this label in the text as described in section
25442 \begin_inset space ~
25446 \begin_inset CommandInset ref
25448 reference "sec:Referencing-Floats"
25453 \begin_inset Newline newline
25456 This is a cross-reference of Footnote
25457 \begin_inset space ~
25461 \begin_inset CommandInset ref
25463 reference "foot:This-is-an"
25470 \begin_layout Standard
25471 \begin_inset VSpace defskip
25474 Footnotes in tables are not printed by LaTeX due to technical reasons.
25475 However there exists another method to print them: Instead of the footnote
25482 is inserted as TeX-code.
25483 The text of the footnote is entered as an argument of the TeX-code command
25491 \begin_inset Newline newline
25494 This was done for the following table with the command
25497 \begin_layout Standard
25504 Printed table footnote.
25509 \begin_layout Standard
25510 \begin_inset Tabular
25511 <lyxtabular version="3" rows="2" columns="1">
25512 <features tabularvalignment="middle">
25513 <column alignment="center" valignment="top" width="0">
25515 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25518 \begin_layout Plain Layout
25519 This an example text.
25523 \begin_layout Plain Layout
25524 This footnote will not be printed!
25536 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25539 \begin_layout Plain Layout
25540 This an example text.
25544 \begin_layout Plain Layout
25567 \begin_layout Plain Layout
25576 Printed table footnote.
25580 \begin_layout Plain Layout
25590 \begin_layout Standard
25591 Footnotes in longtables are described in section
25592 \begin_inset space ~
25596 \begin_inset CommandInset ref
25598 reference "sub:Footnotes-in-Longtables"
25605 \begin_layout Standard
25606 Footnotes in minipage boxes are printed, but inside the box and with a different
25607 numbering because a minipage box is like a page inside a page.
25608 (For more about minipages, see section
25609 \begin_inset space ~
25613 \begin_inset CommandInset ref
25615 reference "sec:Minipages"
25619 .) To get a footnote in the minipage that is output at the bottom of the
25620 page like normal footnotes, also use the method of
25635 \begin_layout Standard
25636 \begin_inset Box Frameless
25646 height_special "totalheight"
25649 \begin_layout Plain Layout
25650 This an example text in a minipage.
25654 \begin_layout Plain Layout
25655 Footnote in the minipage.
25663 \begin_layout Plain Layout
25664 This an example text in a minipage.
25668 \begin_layout Plain Layout
25685 \begin_layout Standard
25689 \begin_layout Plain Layout
25698 Footnote outside the minipage.
25702 \begin_layout Plain Layout
25712 \begin_layout Standard
25713 \begin_inset VSpace defskip
25719 \begin_layout Standard
25720 To refer to the same footnote several times without printing the footnote
25721 text every time, use the command
25725 footnotemark[number]
25728 \begin_inset Newline newline
25731 As you do not know the number of the repeating footnote while you are writing
25732 the text, you have to store its number.
25733 For the following footnote mark example, these commands were inserted in
25734 TeX-code after Footnote
25735 \begin_inset space ~
25739 \begin_inset CommandInset ref
25741 reference "foot:This-is-an"
25745 to store the footnote number:
25748 \begin_layout Standard
25753 newcounter{MyRepeatFoot}
25754 \begin_inset Newline newline
25759 setcounter{MyRepeatFoot}{
25764 \begin_layout Standard
25765 The footnote mark was then created with this command:
25768 \begin_layout Standard
25778 \begin_layout Standard
25779 Here is a repeated footnote:
25787 \begin_layout Plain Layout
25801 \begin_layout Standard
25802 If you want to repeat the previous footnote, you can omit the storage of
25803 the footnote number and just use this command instead:
25806 \begin_layout Standard
25816 \begin_layout Standard
25817 Here is another repeated footnote:
25825 \begin_layout Plain Layout
25839 \begin_layout Subsection
25841 \begin_inset CommandInset label
25843 name "sub:Footnote-Numbering"
25848 \begin_inset Index idx
25851 \begin_layout Plain Layout
25852 Footnotes ! Numbering
25860 \begin_layout Standard
25861 To reset the footnote number back to 1 after each section
25863 , add this command to your document preamble:
25866 \begin_layout Standard
25871 @addtoreset{footnote}{section}
25874 \begin_layout Standard
25875 \begin_inset VSpace bigskip
25878 The following preamble command changes the footnote numbering style to small
25882 \begin_layout Standard
25894 \begin_layout Standard
25898 \begin_layout Plain Layout
25911 This is a footnote with roman numbering:
25915 \begin_layout Plain Layout
25916 This is an example footnote with roman numbering.
25924 \begin_layout Standard
25925 To change the numbering style to capital roman numerals replace in the command
25940 \begin_inset Quotes eld
25944 \begin_inset Quotes erd
25947 footnotes with capital or small Latin letters use
25961 \begin_inset Quotes eld
25965 \begin_inset Quotes erd
25968 footnotes with symbols use
25977 \begin_layout Standard
25978 \begin_inset Note Greyedout
25981 \begin_layout Plain Layout
25986 You can only number 26 footnotes with Latin letters, because this numbering
25987 is limited to single letters.
25993 \begin_inset Newline newline
25997 \begin_inset Note Greyedout
26000 \begin_layout Plain Layout
26005 You can only number 9 footnotes with symbols.
26013 \begin_layout Standard
26014 To return to the default numbering style after you have changed to another
26027 in the command above.
26031 \begin_layout Plain Layout
26047 \begin_layout Standard
26048 \begin_inset VSpace bigskip
26054 \begin_layout Standard
26055 If you want to have footnotes numbered in the scheme
26056 \begin_inset Quotes eld
26060 \begin_inset Quotes erd
26063 , add the following command to your document preamble:
26066 \begin_layout Standard
26071 numberwithin{footnote}{chapter}
26074 \begin_layout Standard
26075 To be able to use the command
26084 \begin_inset space ~
26089 in the document settings the option
26092 \begin_inset space ~
26096 \begin_inset space ~
26100 \begin_inset space ~
26108 \begin_layout Standard
26112 \begin_layout Plain Layout
26116 numberwithin{footnote}{chapter}
26121 This is another example footnote:
26127 \begin_layout Plain Layout
26128 This is a footnote numbered in the scheme
26129 \begin_inset Quotes eld
26133 \begin_inset Quotes erd
26147 \begin_layout Plain Layout
26163 \begin_layout Standard
26164 \begin_inset Note Greyedout
26167 \begin_layout Plain Layout
26178 always prints out the footnote number as arabic number; previous redefinitions
26179 to get non-arabic numbers are overwritten.
26187 \begin_layout Standard
26188 So to get for example the scheme
26189 \begin_inset Quotes eld
26195 \begin_inset Quotes erd
26198 , use this command instead of
26207 \begin_layout Standard
26221 \begin_layout Subsection
26223 \begin_inset Index idx
26226 \begin_layout Plain Layout
26227 Footnotes ! Placement
26235 \begin_layout Standard
26236 If you have several footnotes in one page, they appear without vertical
26237 space between them at the bottom of the page.
26238 To make them more readable you can e.
26239 \begin_inset space \thinspace{}
26243 \begin_inset space \space{}
26247 \begin_inset space \thinspace{}
26250 mm space with the following preamble command:
26253 \begin_layout Standard
26263 \begin_inset Newline newline
26277 \begin_layout Standard
26278 \begin_inset VSpace bigskip
26281 In a two-column document the footnotes appear at the bottom of every column,
26283 \begin_inset space ~
26287 \begin_inset CommandInset ref
26289 reference "fig:Standard-footnote-placement"
26294 If the footnotes should only appear at the bottom of the right column,
26296 \begin_inset space ~
26300 \begin_inset CommandInset ref
26302 reference "fig:Footnote-placement-in"
26306 , use the LaTeX-package
26311 \begin_inset Index idx
26314 \begin_layout Plain Layout
26315 LaTeX-packages ! ftnright
26320 with this command in the document preamble:
26323 \begin_layout Standard
26328 usepackage{ftnright}
26331 \begin_layout Standard
26332 \begin_inset Float figure
26338 \begin_layout Plain Layout
26342 \begin_layout Plain Layout
26352 \begin_inset Graphics
26353 filename clipart/without_fntright.pdf
26355 scaleBeforeRotation
26363 \begin_layout Plain Layout
26373 \begin_layout Plain Layout
26374 \begin_inset Caption
26376 \begin_layout Plain Layout
26377 \begin_inset CommandInset label
26379 name "fig:Standard-footnote-placement"
26383 Standard footnote placement in two-column documents.
26396 \begin_layout Standard
26397 \begin_inset Float figure
26403 \begin_layout Plain Layout
26407 \begin_layout Plain Layout
26417 \begin_inset Graphics
26418 filename clipart/with_fntright.pdf
26420 scaleBeforeRotation
26428 \begin_layout Plain Layout
26438 \begin_layout Plain Layout
26439 \begin_inset Caption
26441 \begin_layout Plain Layout
26442 \begin_inset CommandInset label
26444 name "fig:Footnote-placement-in"
26448 Footnote placement in two-column documents when the LaTeX-package
26465 \begin_layout Standard
26466 \begin_inset VSpace bigskip
26469 In some scientific literature it is usual to collect the footnotes and print
26470 them in a separate paragraph at the end of a section, as in Figure
26471 \begin_inset space ~
26475 \begin_inset CommandInset ref
26477 reference "fig:Endnotes"
26482 They are then called
26483 \begin_inset Quotes eld
26487 \begin_inset Quotes erd
26491 \begin_inset Index idx
26494 \begin_layout Plain Layout
26500 To use endnotes instead of footnotes in your document, load in the menu
26503 Document\SpecialChar \menuseparator
26504 Settings\SpecialChar \menuseparator
26510 \begin_inset space ~
26514 \begin_inset space ~
26520 To insert the collected footnotes, insert the command
26523 \begin_layout Standard
26531 \begin_layout Standard
26532 in TeX-Code at the end of a section or chapter.
26535 \begin_layout Standard
26536 \begin_inset Float figure
26541 \begin_layout Plain Layout
26546 \begin_layout Plain Layout
26556 \begin_inset Graphics
26557 filename clipart/endnotes.pdf
26558 scaleBeforeRotation
26566 \begin_layout Plain Layout
26576 \begin_layout Plain Layout
26577 \begin_inset Caption
26579 \begin_layout Plain Layout
26580 \begin_inset CommandInset label
26582 name "fig:Endnotes"
26586 Endnotes – footnotes are printed in a separate paragraph at the end of sections
26600 \begin_layout Standard
26601 \begin_inset VSpace medskip
26604 The paragraph heading for the endnotes isn't automatically translated into
26605 the document language, this must be done manually.
26606 The following preamble command translates the default English
26607 \begin_inset Quotes eld
26611 \begin_inset Quotes erd
26615 \begin_inset Quotes eld
26619 \begin_inset Quotes erd
26625 \begin_layout Standard
26632 notesname}{Anmerkungen}
26635 \begin_layout Standard
26636 \begin_inset VSpace medskip
26639 The numbering of endnotes can be changed like the footnote numbering as
26640 described in section
26641 \begin_inset space ~
26645 \begin_inset CommandInset ref
26647 reference "sub:Footnote-Numbering"
26651 ; just replace the command
26664 To reset the endnote number use the command
26670 as described in section
26671 \begin_inset space ~
26675 \begin_inset CommandInset ref
26677 reference "sub:Footnote-Numbering"
26681 and replace the command parameter
26692 \begin_layout Standard
26693 For endnotes there is the command
26697 endnotemark[number]
26699 similar to the command
26705 , that is described in section
26706 \begin_inset space ~
26710 \begin_inset CommandInset ref
26712 reference "sec:Footnotes"
26719 \begin_layout Standard
26720 \begin_inset VSpace bigskip
26723 Footnotes can also be placed in the page margin and the footnote text alignment
26724 can be changed, see the LaTeX-package
26729 \begin_inset Index idx
26732 \begin_layout Plain Layout
26733 LaTeX-packages ! footmisc
26739 \begin_inset CommandInset citation
26745 for more information about this.
26748 \begin_layout Standard
26749 For various further footnote formatting issues have a look at LaTeX-books,
26751 \begin_inset CommandInset citation
26753 key "latexcompanion,latexguide,latexbook"
26763 \begin_inset Index idx
26766 \begin_layout Plain Layout
26767 LaTeX-packages ! KOMA-Script
26772 document class, you can adjust all footnote settings using class-specific
26774 \begin_inset CommandInset citation
26783 \begin_layout Section
26785 \begin_inset Index idx
26788 \begin_layout Plain Layout
26789 Notes ! Margin Notes
26797 \begin_layout Standard
26798 Margin notes look and behave in LyX like footnotes.
26799 They are inserted via the menu
26801 Insert\SpecialChar \menuseparator
26803 \begin_inset space ~
26808 or the toolbar button
26813 arg "marginalnote-insert"
26829 \begin_inset Quotes eld
26833 \begin_inset Quotes erd
26836 appears where you can enter the text of the margin note.
26839 \begin_layout Standard
26840 At the side is an example margin note.
26845 \begin_inset Marginal
26848 \begin_layout Plain Layout
26849 This is a margin note.
26857 \begin_layout Standard
26858 Margin notes appear at the right side in single-sided documents.
26859 In double-sided documents they appear in the outer margin – left on even
26860 pages, right on odd pages.
26861 The text of margin notes is aligned opposite to the outer margin – right-aligne
26862 d when the note appears in the left margin.
26863 The first line of the margin note is placed at the position of the text
26864 line where it is inserted in the document.
26867 \begin_layout Standard
26868 \begin_inset VSpace bigskip
26871 To place the margin note in the inner margin, add the command
26874 \begin_layout Standard
26882 \begin_layout Standard
26883 in TeX-Code before a margin note.
26884 The new placement is valid for all subsequent margin notes.
26889 \begin_layout Plain Layout
26899 \begin_inset Marginal
26902 \begin_layout Plain Layout
26903 This is a margin note in the inner margin.
26911 \begin_inset Newline newline
26917 \begin_inset Note Greyedout
26920 \begin_layout Plain Layout
26925 There is often not enough space in the inner margin so that the notes are
26926 not correctly displayed in the output.
26934 \begin_layout Standard
26935 To return to the default placement insert the command
26938 \begin_layout Standard
26946 \begin_layout Standard
26951 \begin_layout Plain Layout
26961 \begin_inset Note Greyedout
26964 \begin_layout Plain Layout
26969 The command is ignored when it is within a paragraph where also the command
26984 \begin_layout Standard
26985 \begin_inset VSpace bigskip
26992 \begin_inset Marginal
26995 \begin_layout Plain Layout
26996 AVeryLongMarginParWord that isn't hyphenated.
27004 Similar to the case described in section
27005 \begin_inset space ~
27009 \begin_inset CommandInset ref
27011 reference "sub:Multiple-Lines-in"
27015 , long words cannot be hyphenated when they are the first word in a margin
27017 To avoid this, insert 0
27018 \begin_inset space \thinspace{}
27021 pt horizontal space before the word
27026 \begin_inset Marginal
27029 \begin_layout Plain Layout
27030 \begin_inset space \hspace*{}
27034 AVeryLongMarginParWord that is hyphenated.
27042 \begin_layout Standard
27043 \begin_inset VSpace bigskip
27049 \begin_layout Standard
27050 \begin_inset Note Greyedout
27053 \begin_layout Plain Layout
27058 Margin notes can normally not be used inside tables, floats, and footnotes.
27066 \begin_layout Standard
27067 \begin_inset VSpace bigskip
27073 \begin_layout Standard
27077 \begin_layout Plain Layout
27087 \begin_inset Note Note
27090 \begin_layout Plain Layout
27091 The following section will only be displayed when the LaTeX-package
27103 \begin_layout Standard
27104 This restriction can be evaded by using the LaTeX-package
27109 \begin_inset Index idx
27112 \begin_layout Plain Layout
27113 LaTeX-packages ! marginnote
27119 By adding these two lines to your document preamble, the command used by
27120 LyX for margin notes is redefined to use the command provided by the
27127 \begin_layout Standard
27132 usepackage{marginnote}
27133 \begin_inset Newline newline
27145 \begin_layout Standard
27146 This is also used in this document because
27150 has another useful feature: You can set a vertical offset for the note.
27151 This is often needed when too many margin notes are too close together
27152 or for a better page layout.
27153 The offset is set in LyX as TeX-Code directly after the margin note in
27157 \begin_layout Standard
27163 \begin_layout Standard
27164 where the offset is a length with one of the units listed in Table
27165 \begin_inset space ~
27169 \begin_inset CommandInset ref
27171 reference "tab:Units"
27176 A negative value shifts the note up, a positive value shifts it down.
27180 For example the margin note beside this text line is shifted up 1.5
27181 \begin_inset space \thinspace{}
27184 cm with the TeX-Code-command
27185 \begin_inset Quotes eld
27195 \begin_inset Quotes erd
27199 \begin_inset Marginal
27202 \begin_layout Plain Layout
27203 This margin note is shifted up 1.5
27204 \begin_inset space \thinspace{}
27207 cm from its original position.
27219 \begin_layout Plain Layout
27229 \begin_layout Standard
27230 \begin_inset VSpace medskip
27237 you can also change the alignment of the text in the margin note.
27238 For example the commands
27241 \begin_layout Standard
27248 raggedleftmarginnote}{
27251 \begin_inset Newline newline
27258 raggedrightmarginnote}{
27263 \begin_layout Standard
27264 set the alignment to centered.
27269 raggedleftmarginnote
27271 denotes margin notes that appear at the left side.
27278 \begin_layout Plain Layout
27284 raggedleftmarginnote}{
27289 \begin_layout Plain Layout
27295 raggedrightmarginnote}{
27303 \begin_inset Marginal
27306 \begin_layout Plain Layout
27307 The text of this margin note is centered.
27318 \begin_layout Standard
27325 raggedleftmarginnote}{
27328 \begin_inset Newline newline
27335 raggedrightmarginnote}{
27344 \begin_layout Plain Layout
27350 raggedleftmarginnote}{
27355 \begin_layout Plain Layout
27361 raggedrightmarginnote}{
27371 \begin_layout Standard
27372 \begin_inset VSpace medskip
27375 For the other features of
27379 refer to its documentation
27380 \begin_inset CommandInset citation
27389 \begin_layout Standard
27390 \begin_inset VSpace bigskip
27393 You can adjust the layout of margin notes by changing its definition.
27394 To create for example a header for all margin notes with the underlined,
27395 sans-serif, and bold header text
27396 \begin_inset Quotes eld
27408 \begin_inset Quotes erd
27411 , add this to your document preamble:
27414 \begin_layout Standard
27424 \begin_inset Newline newline
27434 \begin_inset Newline newline
27438 \begin_inset Phantom HPhantom
27441 \begin_layout Plain Layout
27444 \begin_inset space ~
27460 underbar{Attention!}}}%
27461 \begin_inset Newline newline
27465 \begin_inset Phantom HPhantom
27468 \begin_layout Plain Layout
27471 \begin_inset space ~
27488 \begin_layout Standard
27495 \begin_layout Plain Layout
27506 \begin_layout Plain Layout
27517 \begin_layout Plain Layout
27525 underbar{Attention!}}}%
27528 \begin_layout Plain Layout
27542 \begin_inset Marginal
27545 \begin_layout Plain Layout
27546 This is a margin note with a defined heading.
27558 \begin_layout Plain Layout
27572 \begin_layout Plain Layout
27589 \begin_inset Note Note
27592 \begin_layout Plain Layout
27593 The margin note format is changed only for this example.
27601 \begin_layout Standard
27605 \begin_layout Plain Layout
27615 \begin_inset Note Note
27618 \begin_layout Plain Layout
27619 The following will be displayed when the LaTeX-package
27631 \begin_layout Standard
27632 You need to install the LaTeX-package
27636 to see the following part of this section in the output.
27639 \begin_layout Standard
27643 \begin_layout Plain Layout
27655 \begin_layout Chapter
27659 \begin_layout Section
27661 \begin_inset Index idx
27664 \begin_layout Plain Layout
27665 Boxes ! Introduction
27673 \begin_layout Standard
27674 Boxes are used to format a block of text.
27675 Boxes can be used to write documents with multiple languages, see section
27676 \begin_inset space ~
27680 \begin_inset CommandInset ref
27682 reference "sec:Minipages"
27686 , to frame texts, see section
27687 \begin_inset space ~
27691 \begin_inset CommandInset ref
27693 reference "sec:Decoration"
27697 , to prevent words from being hyphenated, see section
27698 \begin_inset space ~
27702 \begin_inset CommandInset ref
27704 reference "sec:Prevent-Hyphenation"
27708 , to align text, see section
27709 \begin_inset space ~
27713 \begin_inset CommandInset ref
27715 reference "sub:Vertical-Alignment"
27719 , or to set the background color of texts, see section
27720 \begin_inset space ~
27724 \begin_inset CommandInset ref
27726 reference "sec:Colored-Boxes"
27733 \begin_layout Standard
27734 Boxes can be inserted with the menu
27736 Insert\SpecialChar \menuseparator
27739 or the toolbar button
27744 arg "box-insert Frameless"
27750 A grey box with the label
27755 \begin_inset Graphics
27756 filename clipart/BoxInsetDefaultQt4.png
27758 scaleBeforeRotation
27763 The box type can be specified by right-clicking on the box and selecting
27769 The box dialog offers the
27772 \begin_inset space ~
27794 is the default for new boxes and is explained in section
27795 \begin_inset space ~
27799 \begin_inset CommandInset ref
27801 reference "sec:Minipages"
27809 is described in section
27810 \begin_inset space ~
27814 \begin_inset CommandInset ref
27816 reference "sec:Parboxes"
27825 \begin_inset CommandInset ref
27827 reference "sec:Prevent-Hyphenation"
27834 \begin_layout Standard
27835 Boxes are not numbered and can therefore not be referenced like floats or
27839 \begin_layout Standard
27840 \begin_inset Note Greyedout
27843 \begin_layout Plain Layout
27848 Boxes must not be the item in an
27864 \begin_layout Standard
27865 \begin_inset Note Greyedout
27868 \begin_layout Plain Layout
27873 For an unknown reason you can only set the
27876 \begin_inset space ~
27885 when you use a framed box.
27889 \begin_inset space ~
27894 type and without frames are explained in section
27895 \begin_inset space ~
27899 \begin_inset CommandInset ref
27901 reference "sec:Prevent-Hyphenation"
27913 \begin_layout Section
27915 \begin_inset CommandInset label
27917 name "sec:Box-Dialog"
27922 \begin_inset Index idx
27925 \begin_layout Plain Layout
27934 \begin_layout Subsection
27936 \begin_inset Index idx
27939 \begin_layout Plain Layout
27948 \begin_layout Standard
27949 In the box dialog you can adjust the box geometry in the fields
27958 The available units for the geometry are explained in Table
27959 \begin_inset space ~
27963 \begin_inset CommandInset ref
27965 reference "tab:Units"
27974 offers the following additional sizes:
27977 \begin_layout Description
27978 Depth This is the plain text
27979 \begin_inset Quotes eld
27983 \begin_inset Quotes erd
27987 It ignores the total depth when there are multiple text lines in the box:
27988 \begin_inset Newline newline
27992 \begin_inset Newline newline
27996 \begin_inset Newline newline
28000 \begin_inset Box Boxed
28010 height_special "depth"
28013 \begin_layout Plain Layout
28015 Box height set to 1
28016 \begin_inset space \thinspace{}
28025 \begin_inset Newline newline
28029 \begin_inset Newline newline
28035 \begin_layout Description
28036 Height This is the height of the text that is inside the box.
28038 \begin_inset space \thinspace{}
28042 \begin_inset space \space{}
28045 2 for this size will set the box height to 2
28046 \begin_inset space ~
28049 times the text height:
28050 \begin_inset Box Boxed
28060 height_special "height"
28063 \begin_layout Plain Layout
28065 Box height set to 2
28066 \begin_inset space \thinspace{}
28077 \begin_layout Description
28079 \begin_inset space ~
28082 Height This is the Height
28083 \begin_inset space \thinspace{}
28087 \begin_inset space \thinspace{}
28091 \begin_inset Box Boxed
28101 height_special "totalheight"
28104 \begin_layout Plain Layout
28106 Box height set to 1
28107 \begin_inset space \thinspace{}
28111 \begin_inset space ~
28122 \begin_layout Description
28123 Width This sets the width of the box as height:
28124 \begin_inset Box Boxed
28134 height_special "width"
28137 \begin_layout Plain Layout
28139 Box height set to 1
28140 \begin_inset space \thinspace{}
28151 \begin_layout Subsection
28153 \begin_inset Index idx
28156 \begin_layout Plain Layout
28165 \begin_layout Standard
28166 When you have chosen an
28169 \begin_inset space ~
28174 , the vertical box alignment can be:
28177 \begin_layout Description
28178 Top This is an example text line.
28180 \begin_inset Box Boxed
28190 height_special "totalheight"
28193 \begin_layout Plain Layout
28195 This box is top-aligned.
28200 This is an example text line.
28203 \begin_layout Description
28204 Middle This is an example text line.
28206 \begin_inset Box Boxed
28216 height_special "totalheight"
28219 \begin_layout Plain Layout
28221 This box is middle-aligned.
28226 This is an example text line.
28229 \begin_layout Description
28230 Bottom This is an example text line.
28232 \begin_inset Box Boxed
28242 height_special "totalheight"
28245 \begin_layout Plain Layout
28247 This box is bottom-aligned.
28252 This is an example text line.
28255 \begin_layout Standard
28256 \begin_inset Note Greyedout
28259 \begin_layout Plain Layout
28264 The vertical box alignment can be lost in the output when you have two
28265 boxes in a line and one has e.
28266 \begin_inset space \thinspace{}
28270 \begin_inset space \space{}
28273 a shadow and the other one not.
28281 \begin_layout Standard
28282 The horizontal box alignment can be set via LyX's paragraph dialog when
28283 you set the box into its own paragraph.
28286 \begin_layout Standard
28287 \begin_inset VSpace bigskip
28290 When you have chosen an
28293 \begin_inset space ~
28298 , the box content can be aligned vertically to:
28301 \begin_layout Description
28302 top This is an example text line.
28304 \begin_inset Box Boxed
28314 height_special "totalheight"
28317 \begin_layout Plain Layout
28319 This box text is top-aligned.
28324 This is an example text line.
28327 \begin_layout Description
28328 middle This is an example text line.
28330 \begin_inset Box Boxed
28340 height_special "totalheight"
28343 \begin_layout Plain Layout
28345 This box text is middle-aligned.
28350 This is an example text line.
28353 \begin_layout Description
28354 bottom This is an example text line.
28356 \begin_inset Box Boxed
28366 height_special "totalheight"
28369 \begin_layout Plain Layout
28371 This box text is bottom-aligned.
28376 This is an example text line.
28379 \begin_layout Description
28380 stretch This is an example text line.
28382 \begin_inset Box Boxed
28392 height_special "totalheight"
28395 \begin_layout Plain Layout
28400 \begin_layout Plain Layout
28405 \begin_layout Plain Layout
28412 This is an example text line.
28415 \begin_layout Standard
28416 To stretch the box content, it must consist of more than one paragraph.
28417 In the example above every text line is in an own paragraph.
28420 \begin_layout Standard
28421 \begin_inset VSpace bigskip
28424 To align the box content horizontally you can use LyX's paragraph dialog
28425 when you have chosen an
28428 \begin_inset space ~
28436 \begin_layout Standard
28438 \begin_inset Box Boxed
28448 height_special "totalheight"
28451 \begin_layout Plain Layout
28456 \begin_layout Plain Layout
28461 \begin_layout Plain Layout
28471 \begin_layout Standard
28472 If you have not set an
28475 \begin_inset space ~
28480 , you can align the box content horizontally in the box dialog.
28483 \begin_layout Standard
28485 \begin_inset Box Boxed
28495 height_special "totalheight"
28498 \begin_layout Plain Layout
28499 This box text is horizontally stretched.
28507 \begin_layout Subsection
28509 \begin_inset CommandInset label
28511 name "sec:Decoration"
28516 \begin_inset Index idx
28519 \begin_layout Plain Layout
28528 \begin_layout Standard
28529 The type of the box can be specified in the box dialog in the drop-down
28535 The following types are possible:
28538 \begin_layout Description
28540 \begin_inset space ~
28543 frame Nothing is drawn.
28546 \begin_layout Description
28548 \begin_inset space ~
28552 \begin_inset space ~
28555 frame This draws a rectangular frame around the box.
28556 The frame line thickness has the size of
28564 \begin_inset Box Boxed
28574 height_special "totalheight"
28577 \begin_layout Plain Layout
28587 \begin_layout Description
28589 \begin_inset space ~
28593 \begin_inset space ~
28596 thin This draws an oval frame around the box.
28597 The frame line thickness has the size 0.4
28598 \begin_inset space \thinspace{}
28603 \begin_inset Box ovalbox
28613 height_special "totalheight"
28616 \begin_layout Plain Layout
28626 \begin_layout Description
28628 \begin_inset space ~
28632 \begin_inset space ~
28635 thick This draws an oval frame around the box.
28636 The frame line thickness has the size 0.8
28637 \begin_inset space \thinspace{}
28642 \begin_inset Box Ovalbox
28652 height_special "totalheight"
28655 \begin_layout Plain Layout
28665 \begin_layout Description
28667 \begin_inset space ~
28670 shadow This draws a rectangular frame with a shadow around the box.
28671 The frame line thickness has the size of
28677 , the shadow has a width of 4
28678 \begin_inset space \thinspace{}
28683 \begin_inset Box Shadowbox
28693 height_special "totalheight"
28696 \begin_layout Plain Layout
28706 \begin_layout Description
28708 \begin_inset space ~
28711 background This draws a box with a red background.
28712 Unlike colored boxes
28716 \begin_layout Plain Layout
28718 \begin_inset space \thinspace{}
28722 \begin_inset CommandInset ref
28724 reference "sec:Colored-Boxes"
28733 , it always uses the whole column width and the box is set as its own paragraph.
28735 \begin_inset Box Shaded
28745 height_special "totalheight"
28748 \begin_layout Plain Layout
28749 Shaded background box
28757 \begin_layout Description
28759 \begin_inset space ~
28763 \begin_inset space ~
28766 frame This draws a double-line rectangular frame around the box.
28767 The line thickness of the inner frame is 0.75
28768 \begin_inset space \thinspace{}
28777 , the thickness of the outer frame is 1.5
28778 \begin_inset space \thinspace{}
28788 The distance between the lines is 1.5
28789 \begin_inset space \thinspace{}
28799 \begin_inset space \thinspace{}
28803 \begin_inset space \thinspace{}
28807 \begin_inset space \thinspace{}
28812 \begin_inset Box Doublebox
28822 height_special "totalheight"
28825 \begin_layout Plain Layout
28827 Double rectangular box
28835 \begin_layout Standard
28836 \begin_inset VSpace bigskip
28839 LyX's box label will reflect the different frame types.
28840 To be able to use all types, the LaTeX-package
28845 \begin_inset Index idx
28848 \begin_layout Plain Layout
28849 LaTeX-packages ! fancybox
28857 \begin_layout Standard
28858 \begin_inset VSpace bigskip
28861 When you use the decoration
28863 simple rectangular frame
28865 and no inner box, you can allow page breaks within a box.
28866 Note that then, unlike other framed boxes, the frame always uses the whole
28867 column width, the box is set as its own paragraph, and
28879 have no effect on this box type.
28880 The frame line thickness has the size of
28888 \begin_inset Box Framed
28898 height_special "totalheight"
28901 \begin_layout Plain Layout
28902 Allow page break box
28910 \begin_layout Section
28912 \begin_inset Index idx
28915 \begin_layout Plain Layout
28916 Boxes ! Customization
28924 \begin_layout Standard
28925 The default value for the size
28932 \begin_inset space \thinspace{}
28936 It can be changed with the following command in TeX-code to e.
28937 \begin_inset space \thinspace{}
28941 \begin_inset space \space{}
28945 \begin_inset space \thinspace{}
28951 \begin_layout Standard
28961 \begin_layout Standard
28965 \begin_layout Plain Layout
28977 \begin_inset Box Boxed
28987 height_special "totalheight"
28990 \begin_layout Plain Layout
28992 Rectangular box with
28999 \begin_inset space \thinspace{}
29003 \begin_inset space \thinspace{}
29007 \begin_inset space \thinspace{}
29019 \begin_layout Plain Layout
29033 \begin_layout Standard
29034 \begin_inset VSpace bigskip
29037 The space between the frame and the box content is for all frame styles
29039 \begin_inset space \thinspace{}
29043 You can change it by setting the length
29050 For example the command
29053 \begin_layout Standard
29063 \begin_layout Standard
29064 sets the value to 10
29065 \begin_inset space \thinspace{}
29068 pt, as with the following box:
29071 \begin_layout Standard
29075 \begin_layout Plain Layout
29087 \begin_inset Box Boxed
29097 height_special "totalheight"
29100 \begin_layout Plain Layout
29102 Rectangular box with
29109 \begin_inset space \thinspace{}
29113 \begin_inset space \thinspace{}
29117 \begin_inset space \thinspace{}
29129 \begin_layout Plain Layout
29143 \begin_layout Standard
29144 \begin_inset VSpace bigskip
29147 The diameter of the round corners of the oval boxes can be set with the
29158 \begin_layout Standard
29166 \begin_layout Standard
29167 sets the diameter to 1
29168 \begin_inset space \thinspace{}
29175 \begin_layout Standard
29183 \begin_layout Standard
29184 sets the diameter to
29187 \begin_inset space \thinspace{}
29191 \begin_inset space \thinspace{}
29194 minimum(width and height of box)
29206 \begin_layout Standard
29210 \begin_layout Plain Layout
29220 \begin_inset Box Ovalbox
29230 height_special "totalheight"
29233 \begin_layout Plain Layout
29242 \begin_inset space \thinspace{}
29246 \begin_inset space \thinspace{}
29250 \begin_inset space \thinspace{}
29262 \begin_layout Plain Layout
29274 \begin_layout Standard
29275 \begin_inset VSpace bigskip
29278 The size of the shadow can be adjusted by changing the length
29286 \begin_inset space \thinspace{}
29289 pt for the following box by this command:
29292 \begin_layout Standard
29302 \begin_layout Standard
29306 \begin_layout Plain Layout
29318 \begin_inset Box Shadowbox
29328 height_special "totalheight"
29331 \begin_layout Plain Layout
29340 \begin_inset space \thinspace{}
29344 \begin_inset space \thinspace{}
29348 \begin_inset space \thinspace{}
29360 \begin_layout Plain Layout
29374 \begin_layout Standard
29375 \begin_inset VSpace bigskip
29381 \begin_layout Standard
29382 The default value for the size
29389 \begin_inset space \thinspace{}
29393 The default space between the note content and the frame is 9
29394 \begin_inset space \thinspace{}
29397 pt and can be changed with the value of
29404 For example the frame appearance of the following
29408 is set with the TeX-Code commands
29411 \begin_layout Standard
29419 \begin_inset Newline newline
29429 \begin_layout Standard
29433 \begin_layout Plain Layout
29442 \begin_layout Plain Layout
29454 \begin_inset Box Framed
29464 height_special "totalheight"
29467 \begin_layout Plain Layout
29481 \begin_layout Plain Layout
29490 \begin_layout Plain Layout
29504 \begin_layout Standard
29505 \begin_inset VSpace bigskip
29511 \begin_layout Standard
29516 boxes the default space between the box content and the box border is 3
29517 \begin_inset space \thinspace{}
29520 pt and can be changed with the value of
29527 The default background color red can either be changed locally with the
29532 definecolor{shadecolor}
29534 or globally with the menu
29536 Tools\SpecialChar \menuseparator
29537 Preferences\SpecialChar \menuseparator
29538 Colors\SpecialChar \menuseparator
29540 \begin_inset space ~
29552 command is explained in section
29553 \begin_inset space ~
29557 \begin_inset CommandInset ref
29559 reference "sec:Colored-Tables"
29567 \begin_layout Plain Layout
29574 requires the LaTeX-package
29578 in the preamble, see section
29579 \begin_inset space ~
29583 \begin_inset CommandInset ref
29585 reference "sec:Colored-Boxes"
29594 For example the appearance of the following shaded background box is set
29595 with the TeX-Code commands
29598 \begin_layout Standard
29608 \begin_inset Newline newline
29615 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29618 \begin_layout Standard
29622 \begin_layout Plain Layout
29631 \begin_layout Plain Layout
29635 definecolor{shadecolor}{cmyk}{0.5,0,1,0.5}
29641 \begin_inset Box Shaded
29651 height_special "totalheight"
29654 \begin_layout Plain Layout
29657 This is yellow text in a
29667 box with dark green background.
29676 \begin_layout Plain Layout
29685 \begin_layout Plain Layout
29689 definecolor{shadecolor}{rgb}{1,0,0}
29697 \begin_layout Standard
29698 \begin_inset VSpace bigskip
29701 Changed lengths and widths are valid for all boxes following the commands
29705 \begin_layout Section
29707 \begin_inset CommandInset label
29709 name "sec:Minipages"
29714 \begin_inset Index idx
29717 \begin_layout Plain Layout
29726 \begin_layout Standard
29727 Minipages are treated by LaTeX as pages within pages and can therefore for
29728 example have their own footnotes.
29731 \begin_layout Standard
29732 Minipages are useful when you write documents with different languages.
29735 \begin_layout Standard
29736 Below are two example minipages side by side.
29737 Their width is set to 45
29738 \begin_inset space \thinspace{}
29741 col% and they are separated by a horizontal fill, that was inserted via
29744 Insert\SpecialChar \menuseparator
29746 \begin_inset space ~
29749 Formatting\SpecialChar \menuseparator
29751 \begin_inset space ~
29757 \begin_inset Newpage newpage
29763 \begin_layout Standard
29764 \begin_inset Box Frameless
29774 height_special "totalheight"
29777 \begin_layout Plain Layout
29780 Dies ist ein deutscher Text.
29781 Dies ist ein deutscher Text.
29782 Dies ist ein deutscher Text.
29783 Dies ist ein deutscher Text.
29784 Dies ist ein deutscher Text.
29785 Dies ist ein deutscher Text.
29786 Dies ist ein deutscher Text.
29787 Dies ist ein deutscher Text.
29788 Dies ist ein deutscher Text.
29789 Dies ist ein deutscher Text.
29790 Dies ist ein deutscher Text.
29791 Dies ist ein deutscher Text.
29792 Dies ist ein deutscher Text
29796 \begin_layout Plain Layout
29799 Dies ist eine deutsche Fußnote.
29805 Dies ist ein deutscher Text.
29806 Dies ist ein deutscher Text.
29812 \begin_inset space \hfill{}
29816 \begin_inset Box Frameless
29826 height_special "totalheight"
29829 \begin_layout Plain Layout
29830 This is an English Text.
29831 This is an English Text.
29832 This is an English Text.
29833 This is an English Text.
29834 This is an English Text.
29835 This is an English Text.
29836 This is an English Text.
29837 This is an English Text.
29838 This is an English Text.
29839 This is an English Text.
29840 This is an English Text.
29841 This is an English Text.
29842 This is an English Text.
29843 This is an English Text.
29844 This is an English Text.
29845 This is an English Text.
29849 \begin_layout Plain Layout
29850 This is an English footnote.
29855 This is an English Text.
29864 \begin_layout Standard
29865 \begin_inset VSpace bigskip
29868 The document-wide paragraph settings are ignored within minipages.
29869 That means that there will be no space between paragraphs in minipages
29870 although you set it to e.
29871 \begin_inset space \thinspace{}
29875 \begin_inset space \space{}
29882 in the document settings.
29885 \begin_layout Standard
29886 Minipages can also be used to set a background color for text parts, see
29888 \begin_inset space ~
29892 \begin_inset CommandInset ref
29894 reference "sub:Color-for-Paragraphs"
29901 \begin_layout Standard
29902 \begin_inset Note Greyedout
29905 \begin_layout Plain Layout
29910 You cannot have floats or margin notes inside minipages but minipages can
29911 be used inside tables, floats, and other boxes.
29919 \begin_layout Section
29921 \begin_inset CommandInset label
29923 name "sec:Parboxes"
29928 \begin_inset Index idx
29931 \begin_layout Plain Layout
29940 \begin_layout Standard
29941 Parboxes are very similar to minipages with the difference that they cannot
29945 \begin_layout Standard
29947 \begin_inset Box Frameless
29957 height_special "totalheight"
29960 \begin_layout Plain Layout
29961 This a text within a parbox.
29962 This a text within a parbox.
29965 \begin_layout Plain Layout
29966 This footnote won't appear:
29970 \begin_layout Plain Layout
29971 This footnote is inside a parbox and will therefore not appear.
29984 \begin_layout Section
29985 Boxes for Words and Characters
29986 \begin_inset Index idx
29989 \begin_layout Plain Layout
29990 Boxes ! for Characters
29998 \begin_layout Subsection
29999 Prevent Hyphenation
30000 \begin_inset CommandInset label
30002 name "sec:Prevent-Hyphenation"
30007 \begin_inset Index idx
30010 \begin_layout Plain Layout
30011 Boxes ! to Prevent Hyphenation
30019 \begin_layout Standard
30020 You can use the box type
30024 to prevent words or text from being hyphenated.
30025 \begin_inset Newline newline
30028 Here is an example text:
30031 \begin_layout Standard
30032 This line is an example to show how you can prevent the hyphenation of
30033 \begin_inset Quotes eld
30037 \begin_inset Quotes erd
30043 \begin_layout Standard
30044 To prevent the hyphenation of the word
30045 \begin_inset Quotes eld
30049 \begin_inset Quotes erd
30052 , put the word into a box, set the
30055 \begin_inset space ~
30065 \begin_inset space \thinspace{}
30071 \begin_layout Standard
30072 This is the result:
30075 \begin_layout Standard
30076 This line is an example to show how you can prevent the hyphenation of
30077 \begin_inset Box Frameless
30087 height_special "totalheight"
30090 \begin_layout Plain Layout
30091 \begin_inset Quotes eld
30095 \begin_inset Quotes erd
30106 \begin_layout Standard
30107 You can alternatively set the command
30108 \begin_inset Quotes eld
30118 \begin_inset Quotes grd
30121 as TeX-Code directly before the word:
30124 \begin_layout Standard
30125 This line is an example to show how you can prevent the hyphenation of
30126 \begin_inset Quotes eld
30133 \begin_layout Plain Layout
30143 \begin_inset Quotes erd
30149 \begin_layout Standard
30150 Of course the word now protrudes over the side margin.
30151 To avoid this, add via the menu
30153 Insert\SpecialChar \menuseparator
30154 Formatting\SpecialChar \menuseparator
30156 \begin_inset space ~
30160 \begin_inset space ~
30168 arg "newline-insert newline"
30171 ) a line break before the word:
30174 \begin_layout Standard
30175 This line is an example to show how you can prevent the hyphenation of
30176 \begin_inset Newline newline
30180 \begin_inset Box Frameless
30190 height_special "totalheight"
30193 \begin_layout Plain Layout
30194 \begin_inset Quotes eld
30198 \begin_inset Quotes erd
30209 \begin_layout Subsection
30211 \begin_inset CommandInset label
30213 name "sub:Vertical-Alignment"
30218 \begin_inset Index idx
30221 \begin_layout Plain Layout
30222 Boxes ! for Vertical Alignment
30228 \begin_inset Index idx
30231 \begin_layout Plain Layout
30240 \begin_layout Standard
30241 With the help of the command
30247 you can align words, characters or other boxes vertically relative to the
30255 is used with the following scheme:
30258 \begin_layout Standard
30263 raisebox{lift}[height][depth]{box content}
30266 \begin_layout Standard
30267 The lift can be a positive value to raise the box or a negative value to
30271 \begin_layout Standard
30272 To align for example the word
30273 \begin_inset Quotes eld
30277 \begin_inset Quotes erd
30280 so that the bottom of the
30281 \begin_inset Quotes eld
30285 \begin_inset Quotes erd
30289 \begin_inset Quotes eld
30293 \begin_inset Quotes erd
30296 is at the baseline, insert the command
30299 \begin_layout Standard
30309 \begin_layout Standard
30310 in TeX-Code before the word.
30311 After the word insert a closing brace
30312 \begin_inset Quotes eld
30320 \begin_inset Quotes erd
30324 \begin_inset Newline newline
30327 This is the result:
30330 \begin_layout Standard
30331 This is a text line with the word
30335 \begin_layout Plain Layout
30347 \begin_inset Quotes eld
30351 \begin_inset Quotes erd
30358 \begin_layout Plain Layout
30368 \begin_layout Standard
30369 \begin_inset VSpace bigskip
30372 When you raise or lower characters in a line, the line distance will be
30376 \begin_layout Standard
30377 This is a text line with the word
30381 \begin_layout Plain Layout
30393 \begin_inset Quotes eld
30397 \begin_inset Quotes erd
30404 \begin_layout Plain Layout
30412 \begin_inset Newline newline
30415 This is a text line with the word
30419 \begin_layout Plain Layout
30429 \begin_inset Quotes eld
30433 \begin_inset Quotes erd
30440 \begin_layout Plain Layout
30450 \begin_layout Standard
30451 If you want to prevent this for a certain reason, set the box height to
30456 \begin_layout Standard
30466 \begin_layout Standard
30467 This is a text line with the word
30471 \begin_layout Plain Layout
30483 \begin_inset Quotes eld
30487 \begin_inset Quotes erd
30494 \begin_layout Plain Layout
30502 \begin_inset Newline newline
30505 This is a text line with the word
30509 \begin_layout Plain Layout
30513 raisebox{0.5cm}[0pt]{
30519 \begin_inset Quotes eld
30523 \begin_inset Quotes erd
30530 \begin_layout Plain Layout
30540 \begin_layout Section
30542 \begin_inset CommandInset label
30544 name "sec:Colored-Boxes"
30549 \begin_inset Index idx
30552 \begin_layout Plain Layout
30561 \begin_layout Subsection
30563 \begin_inset Index idx
30566 \begin_layout Plain Layout
30575 \begin_layout Standard
30576 To color the background of text the text must be put into a so called
30577 \begin_inset Quotes eld
30581 \begin_inset Quotes erd
30585 This requires that the LaTeX-package
30590 \begin_inset Index idx
30593 \begin_layout Plain Layout
30594 LaTeX-packages ! color
30599 is loaded in the document preamble with the command
30602 \begin_layout Standard
30607 @ifundefined{textcolor}
30608 \begin_inset Newline newline
30612 \begin_inset Phantom HPhantom
30615 \begin_layout Plain Layout
30618 \begin_inset space ~
30628 usepackage{color}}{}
30631 \begin_layout Standard
30636 will be loaded automatically by LyX when you color text.
30640 \begin_layout Plain Layout
30641 To avoid it being loaded twice the command
30655 \begin_layout Standard
30656 \begin_inset VSpace medskip
30659 Colorboxes are created with the command
30666 This will be used with the following scheme:
30669 \begin_layout Standard
30674 colorbox{color}{box content}
30677 \begin_layout Standard
30678 The box content can also be a box and colorboxes can also be within other
30682 \begin_layout Standard
30683 The following colors are predefined:
30684 \begin_inset Newline newline
30723 \begin_inset Newline newline
30726 You can also define your own color as described in section
30727 \begin_inset space ~
30731 \begin_inset CommandInset ref
30733 reference "sec:Colored-Tables"
30740 \begin_layout Standard
30742 \begin_inset space \thinspace{}
30746 \begin_inset space \space{}
30749 a red background for a word, insert the command
30752 \begin_layout Standard
30760 \begin_layout Standard
30761 before the word in TeX-Code.
30762 After the word insert a closing brace
30763 \begin_inset Quotes eld
30771 \begin_inset Quotes erd
30775 \begin_inset Newline newline
30778 This is the result:
30781 \begin_layout Standard
30782 This is a line where the word
30786 \begin_layout Plain Layout
30796 \begin_inset Quotes eld
30800 \begin_inset Quotes erd
30807 \begin_layout Plain Layout
30814 has a red background.
30817 \begin_layout Standard
30818 \begin_inset VSpace bigskip
30821 If you would like the box frame in a different color, you can use the command
30828 with the following scheme:
30831 \begin_layout Standard
30836 fcolorbox{frame color}{box color}{box content}
30839 \begin_layout Standard
30853 The frame thickness and the space between the frame and the box content
30854 can be adjusted with the lengths
30866 , respectively, as described in section
30867 \begin_inset space ~
30871 \begin_inset CommandInset ref
30873 reference "sec:Decoration"
30880 \begin_layout Standard
30881 For the following example the command
30884 \begin_layout Standard
30889 fcolorbox{cyan}{magenta}{
30892 \begin_layout Standard
30896 \begin_layout Standard
30897 Here is an example where the frame line thickness was set to 1
30898 \begin_inset space \thinspace{}
30902 \begin_inset Newline newline
30909 \begin_layout Plain Layout
30924 \begin_layout Plain Layout
30928 fcolorbox{cyan}{magenta}{
30933 This is text within a colored, framed box.
30937 \begin_layout Plain Layout
30947 \begin_layout Standard
30948 \begin_inset VSpace bigskip
30951 Of course you can also have colored text inside a colorbox:
30952 \begin_inset Newline newline
30959 \begin_layout Plain Layout
30963 fcolorbox{cyan}{magenta}{
30970 This is colored text within a colored, framed box.
30976 \begin_layout Plain Layout
30987 \begin_layout Plain Layout
31001 \begin_layout Standard
31002 \begin_inset VSpace medskip
31008 \begin_layout Standard
31009 \begin_inset Note Greyedout
31012 \begin_layout Plain Layout
31017 Text in colorboxes cannot have line breaks.
31018 To color multiple text lines or paragraphs, use a box inside a colorbox
31019 as described in the following.
31027 \begin_layout Subsection
31028 Color for Paragraphs
31029 \begin_inset CommandInset label
31031 name "sub:Color-for-Paragraphs"
31036 \begin_inset Index idx
31039 \begin_layout Plain Layout
31040 Color ! for Paragraphs
31048 \begin_layout Standard
31049 To set the background color for more than one text line, put the text into
31051 Before the minipage insert the
31060 \begin_layout Standard
31068 \begin_layout Standard
31070 After the minipage insert a closing brace
31071 \begin_inset Quotes eld
31079 \begin_inset Quotes erd
31085 \begin_layout Standard
31089 \begin_layout Plain Layout
31093 colorbox{lightgrey}{
31099 \begin_inset Box Frameless
31109 height_special "totalheight"
31112 \begin_layout Plain Layout
31113 This is text with background color.
31114 This is text with background color.
31117 \begin_layout Plain Layout
31118 \begin_inset VSpace defskip
31121 The text can have footnotes
31125 \begin_layout Plain Layout
31126 Another example footnote
31131 and can include tables and figures.
31134 \begin_layout Plain Layout
31136 \begin_inset Tabular
31137 <lyxtabular version="3" rows="3" columns="3">
31138 <features tabularvalignment="middle">
31139 <column alignment="center" valignment="top" width="0">
31140 <column alignment="center" valignment="top" width="0">
31141 <column alignment="center" valignment="top" width="0">
31143 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31146 \begin_layout Plain Layout
31152 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31155 \begin_layout Plain Layout
31161 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31164 \begin_layout Plain Layout
31172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31175 \begin_layout Plain Layout
31181 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31184 \begin_layout Plain Layout
31186 \begin_inset Quotes erd
31194 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31197 \begin_layout Plain Layout
31205 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31208 \begin_layout Plain Layout
31214 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31217 \begin_layout Plain Layout
31223 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31226 \begin_layout Plain Layout
31246 \begin_layout Plain Layout
31256 \begin_layout Section
31257 Rotated and Scaled Boxes
31260 \begin_layout Standard
31261 To use the commands described in this section, the LaTeX-package
31266 \begin_inset Index idx
31269 \begin_layout Plain Layout
31270 LaTeX-packages ! graphicx
31275 needs to be loaded in the document preamble with the command
31278 \begin_layout Standard
31283 @ifundefined{rotatebox}
31284 \begin_inset Newline newline
31288 \begin_inset Phantom HPhantom
31291 \begin_layout Plain Layout
31294 \begin_inset space ~
31304 usepackage{graphicx}}{}
31307 \begin_layout Standard
31308 \begin_inset Note Greyedout
31311 \begin_layout Plain Layout
31316 Some DVI-viewers can't display rotated or scaled material.
31324 \begin_layout Standard
31325 \begin_inset Note Greyedout
31328 \begin_layout Plain Layout
31333 Floats mustn't be inside a rotated or scaled box.
31341 \begin_layout Subsection
31343 \begin_inset Index idx
31346 \begin_layout Plain Layout
31353 \begin_inset Index idx
31356 \begin_layout Plain Layout
31363 \begin_inset Index idx
31366 \begin_layout Plain Layout
31373 \begin_inset Index idx
31376 \begin_layout Plain Layout
31377 Table Customization ! Rotating
31385 \begin_layout Standard
31386 To rotate material, you can put it into a rotated box.
31387 Such a box is created using the command
31393 in TeX-Code with the following scheme:
31396 \begin_layout Standard
31401 rotatebox[rotation origin]{rotation angle}{box content}
31404 \begin_layout Standard
31405 The rotation origin is specified in the form
31410 The following positions are possible:
31430 (top), along with meaningful combinations of the four base positions.
31435 means that the rotation origin is at the top left corner of the box.
31436 When no rotation origin is specified, the position
31441 The rotation angle is a number that can be negative that specifies the
31443 The rotation direction is counterclockwise.
31446 \begin_layout Standard
31447 In the following example the command
31451 rotatebox[origin=c]{60}{
31453 was inserted as TeX-Code before the text
31454 \begin_inset Quotes eld
31458 \begin_inset Quotes erd
31461 ; after the text the box was closed by a closing brace
31468 \begin_layout Standard
31473 \begin_layout Plain Layout
31477 rotatebox[origin=c]{60}{
31486 \begin_layout Plain Layout
31496 \begin_layout Standard
31497 The box content can also be another box or an inline formula:
31500 \begin_layout Standard
31505 \begin_layout Plain Layout
31509 rotatebox[origin=r]{-60}{
31515 \begin_inset Box Doublebox
31525 height_special "totalheight"
31528 \begin_layout Plain Layout
31538 \begin_layout Plain Layout
31549 \begin_layout Plain Layout
31553 rotatebox[origin=lb]{60}{
31559 \begin_inset Formula $\int A\,\mathrm{d}x=B$
31566 \begin_layout Plain Layout
31576 \begin_layout Standard
31577 or an image or table:
31580 \begin_layout Standard
31585 \begin_layout Plain Layout
31589 rotatebox[origin=lb]{90}{
31595 \begin_inset Graphics
31596 filename clipart/platypus.eps
31606 \begin_layout Plain Layout
31613 with a rotated image
31617 \begin_layout Plain Layout
31621 rotatebox[origin=l]{-90}{
31627 \begin_inset Tabular
31628 <lyxtabular version="3" rows="2" columns="2">
31629 <features tabularvalignment="middle">
31630 <column alignment="center" valignment="top" width="0">
31631 <column alignment="center" valignment="top" width="0">
31633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
31636 \begin_layout Plain Layout
31642 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
31645 \begin_layout Plain Layout
31653 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
31656 \begin_layout Plain Layout
31662 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
31665 \begin_layout Plain Layout
31680 \begin_layout Plain Layout
31690 \begin_layout Subsection
31692 \begin_inset Index idx
31695 \begin_layout Plain Layout
31702 \begin_inset Index idx
31705 \begin_layout Plain Layout
31712 \begin_inset Index idx
31715 \begin_layout Plain Layout
31722 \begin_inset Index idx
31725 \begin_layout Plain Layout
31726 Table Customization ! Scaling
31734 \begin_layout Standard
31735 To scale material the commands
31747 can be used as TeX-Code.
31750 \begin_layout Standard
31757 is used with the following scheme:
31760 \begin_layout Standard
31765 scalebox{horizontal}[vertical]{box content}
31768 \begin_layout Standard
31769 Horizontal and vertical are the corresponding scaling factors.
31770 If no vertical scaling factor is given, the horizontal factor will also
31771 be used as the vertical one.
31774 \begin_layout Standard
31781 creates for example a double size
31785 \begin_layout Plain Layout
31798 \begin_layout Plain Layout
31805 , compared with the document text size.
31808 \begin_layout Standard
31813 scalebox{2}[1]{Hello}
31815 on the other hand distorts the
31819 \begin_layout Plain Layout
31832 \begin_layout Plain Layout
31842 \begin_layout Standard
31843 If the scaling factor is negative, the box content will be mirrored.
31844 Therefore the command
31848 scalebox{-1}[1]{Hello}
31850 can be used to create mirror writing:
31854 \begin_layout Plain Layout
31867 \begin_layout Plain Layout
31877 \begin_layout Standard
31882 scalebox{1}[-1]{Hello}
31888 \begin_layout Plain Layout
31901 \begin_layout Plain Layout
31911 \begin_layout Standard
31916 scalebox{-1}[1]{box content}
31918 there exists the command
31919 \begin_inset Newline newline
31926 reflectbox{box content}
31931 \begin_layout Standard
31932 \begin_inset VSpace bigskip
31941 is used to scale the box to a defined width and height.
31942 The command scheme is:
31945 \begin_layout Standard
31950 resizebox{width}{height}{box content}
31953 \begin_layout Standard
31954 If one of the two command arguments given is an exclamation mark
31958 , the size is set so that the aspect ratio of the box content is kept.
31961 \begin_layout Standard
31966 resizebox{2cm}{1cm}{Hello}
31972 \begin_layout Plain Layout
31976 resizebox{2cm}{1cm}{
31985 \begin_layout Plain Layout
31993 \begin_inset Newline newline
32000 resizebox{2cm}{!}{Hello}
32006 \begin_layout Plain Layout
32019 \begin_layout Plain Layout
32029 \begin_layout Standard
32030 \begin_inset VSpace bigskip
32034 \begin_inset Note Greyedout
32037 \begin_layout Plain Layout
32054 are set to zero, no LaTeX-errors occur when exporting the document but
32055 the exported files can not or only partly be displayed.
32063 \begin_layout Standard
32064 \begin_inset VSpace bigskip
32070 \begin_layout Standard
32071 The boxes can be combined in any order.
32073 \begin_inset space \thinspace{}
32077 \begin_inset space \space{}
32081 \begin_inset Newline newline
32088 rotatebox[origin=c]{-45}{
32092 reflectbox{Hello}}}
32093 \begin_inset Newline newline
32101 \begin_layout Standard
32106 \begin_layout Plain Layout
32110 rotatebox[origin=c]{-45}{
32123 \begin_layout Plain Layout
32133 \begin_layout Standard
32135 Images, tables, and inline formulas are allowed as box content:
32138 \begin_layout Standard
32143 \begin_layout Plain Layout
32147 rotatebox[origin=c]{-30}{
32157 \begin_inset Graphics
32158 filename clipart/platypus.eps
32168 \begin_layout Plain Layout
32179 \begin_layout Plain Layout
32183 rotatebox[origin=c]{-45}{
32193 \begin_inset Tabular
32194 <lyxtabular version="3" rows="2" columns="2">
32195 <features tabularvalignment="middle">
32196 <column alignment="center" valignment="top" width="0">
32197 <column alignment="center" valignment="top" width="0">
32199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32202 \begin_layout Plain Layout
32208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32211 \begin_layout Plain Layout
32219 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32222 \begin_layout Plain Layout
32228 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32231 \begin_layout Plain Layout
32246 \begin_layout Plain Layout
32257 \begin_layout Plain Layout
32261 rotatebox[origin=c]{-45}{
32271 \begin_inset Formula $\int A\,\mathrm{d}x=B$
32278 \begin_layout Plain Layout
32288 \begin_layout Standard
32289 When the global formula style
32293 is used in the document
32297 \begin_layout Plain Layout
32299 \begin_inset Quotes eld
32303 \begin_inset Quotes erd
32306 is added to the document class options.
32311 , display style formulas can also be scaled.
32314 \begin_layout Chapter
32315 Objects Surrounded by Text
32316 \begin_inset Index idx
32319 \begin_layout Plain Layout
32328 \begin_layout Section
32330 \begin_inset CommandInset label
32332 name "sec:Wrap-Floats"
32337 \begin_inset Index idx
32340 \begin_layout Plain Layout
32341 Floats ! Wrap Floats
32347 \begin_inset Index idx
32350 \begin_layout Plain Layout
32351 Surrounded by text ! Wrap Floats
32359 \begin_layout Standard
32360 \begin_inset Wrap figure
32367 \begin_layout Plain Layout
32368 \begin_inset Graphics
32369 filename clipart/mobius.eps
32371 scaleBeforeRotation
32372 rotateOrigin center
32379 \begin_layout Plain Layout
32380 \begin_inset Caption
32382 \begin_layout Plain Layout
32383 \begin_inset CommandInset label
32385 name "fig:This-is-a"
32389 This is a figure wrap float.
32399 This float type is used if you want to wrap text around a figure or table
32400 so that it only occupies some fraction of the column width.
32401 It can be inserted using the menu
32403 Insert\SpecialChar \menuseparator
32404 Floats\SpecialChar \menuseparator
32406 \begin_inset space ~
32410 \begin_inset space ~
32418 \begin_inset space ~
32422 \begin_inset space ~
32427 if the LaTeX-package
32432 \begin_inset Index idx
32435 \begin_layout Plain Layout
32436 LaTeX-packages ! wrapfig
32440 \begin_layout Plain Layout
32458 \begin_layout Plain Layout
32459 Installing a LaTeX-package is explained it in the
32462 \begin_inset space ~
32472 The settings of the float can be modified by right-clicking on the float
32474 The mandatory settings are the float
32487 that specifies how much the float is set into the paragraph
32488 \begin_inset space \thinspace{}
32492 \begin_inset space \thinspace{}
32495 page margin, and the
32498 \begin_inset space ~
32503 that specifies how many text lines the float will approximately need.
32504 The line span is often hard to approximate; so it is better only to use
32505 it when you encounter float placement problems.
32506 You can furthermore decide if LaTeX is allowed to let the float float within
32507 the paragraph or to surrounding paragraphs.
32509 \begin_inset space ~
32513 \begin_inset CommandInset ref
32515 reference "fig:This-is-a"
32519 is an example text wrap float with a width of 40
32520 \begin_inset space \thinspace{}
32524 \begin_inset space \thinspace{}
32527 cm overhang, set to the left.
32530 \begin_layout Standard
32531 \begin_inset Note Greyedout
32534 \begin_layout Plain Layout
32540 \begin_inset space ~
32543 wrap float floats are fragile! E.
32544 \begin_inset space \thinspace{}
32548 \begin_inset space \space{}
32551 having a figure too close to the bottom of the page can mess things up in
32552 such a way that the float does not appear in the output or that it is placed
32553 over some other text.
32561 \begin_layout Standard
32562 In general, the following applies for wrap floats:
32565 \begin_layout Itemize
32566 They should not be placed in paragraphs that run over a page break.
32567 That means that wrap floats are better inserted in their exact place when
32568 the document is almost finished and you are able to estimate where page
32569 breaks will appear.
32572 \begin_layout Itemize
32573 They should either be placed in their own paragraph before the paragraph
32574 where they should wrap into or within a paragraph.
32577 \begin_layout Itemize
32578 In consecutive paragraphs they may cause troubles, so ensure that there
32579 is a text paragraph between them as separator.
32582 \begin_layout Itemize
32583 They are not allowed in section headings or tables.
32586 \begin_layout Itemize
32587 Their numbering and referencing works as described in chap.
32588 \begin_inset space \thinspace{}
32592 \begin_inset CommandInset ref
32594 reference "chap:Floats"
32601 \begin_layout Section
32602 Surrounded Fixed Objects
32603 \begin_inset Index idx
32606 \begin_layout Plain Layout
32607 Surrounded by text ! Fixed objects
32615 \begin_layout Standard
32616 The wrap floats described in sec.
32617 \begin_inset space \thinspace{}
32621 \begin_inset CommandInset ref
32623 reference "sec:Wrap-Floats"
32627 have these positions in the paragraph:
32630 \begin_layout Standard
32633 \begin_inset Tabular
32634 <lyxtabular version="3" rows="2" columns="2">
32635 <features tabularvalignment="middle">
32636 <column alignment="center" valignment="top" width="0">
32637 <column alignment="center" valignment="top" width="0">
32639 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32642 \begin_layout Plain Layout
32643 \begin_inset Graphics
32644 filename ../images/dialog-show-new-inset_graphics.png
32646 scaleBeforeRotation
32655 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32658 \begin_layout Plain Layout
32666 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32669 \begin_layout Plain Layout
32675 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32678 \begin_layout Plain Layout
32690 \begin_inset Tabular
32691 <lyxtabular version="3" rows="2" columns="2">
32692 <features tabularvalignment="middle">
32693 <column alignment="center" valignment="top" width="0">
32694 <column alignment="center" valignment="top" width="0">
32696 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32699 \begin_layout Plain Layout
32705 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32708 \begin_layout Plain Layout
32709 \begin_inset Graphics
32710 filename ../images/dialog-show-new-inset_graphics.png
32712 scaleBeforeRotation
32723 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32726 \begin_layout Plain Layout
32732 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32735 \begin_layout Plain Layout
32749 \begin_layout Standard
32750 To get an object exactly at the position where it is inserted, for example
32751 to get one of these positions:
32752 \begin_inset VSpace defskip
32758 \begin_layout Standard
32761 \begin_inset Tabular
32762 <lyxtabular version="3" rows="2" columns="2">
32763 <features tabularvalignment="middle">
32764 <column alignment="center" valignment="top" width="0">
32765 <column alignment="center" valignment="top" width="0">
32767 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32770 \begin_layout Plain Layout
32776 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32779 \begin_layout Plain Layout
32787 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32790 \begin_layout Plain Layout
32791 \begin_inset Graphics
32792 filename ../images/dialog-show-new-inset_graphics.png
32794 scaleBeforeRotation
32803 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32806 \begin_layout Plain Layout
32818 \begin_inset Tabular
32819 <lyxtabular version="3" rows="2" columns="2">
32820 <features tabularvalignment="middle">
32821 <column alignment="center" valignment="top" width="0">
32822 <column alignment="center" valignment="top" width="0">
32824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32827 \begin_layout Plain Layout
32833 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32836 \begin_layout Plain Layout
32844 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32847 \begin_layout Plain Layout
32853 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32856 \begin_layout Plain Layout
32857 \begin_inset Graphics
32858 filename ../images/dialog-show-new-inset_graphics.png
32860 scaleBeforeRotation
32875 \begin_inset Tabular
32876 <lyxtabular version="3" rows="2" columns="3">
32877 <features tabularvalignment="middle">
32878 <column alignment="center" valignment="top" width="0">
32879 <column alignment="center" valignment="top" width="0">
32880 <column alignment="center" valignment="top" width="0">
32882 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32885 \begin_layout Plain Layout
32891 <cell alignment="center" valignment="top" topline="true" usebox="none">
32894 \begin_layout Plain Layout
32895 \begin_inset Graphics
32896 filename ../images/dialog-show-new-inset_graphics.png
32898 scaleBeforeRotation
32907 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32910 \begin_layout Plain Layout
32918 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32921 \begin_layout Plain Layout
32927 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
32930 \begin_layout Plain Layout
32936 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
32939 \begin_layout Plain Layout
32951 \begin_inset Tabular
32952 <lyxtabular version="3" rows="2" columns="3">
32953 <features tabularvalignment="middle">
32954 <column alignment="center" valignment="top" width="0">
32955 <column alignment="center" valignment="top" width="0">
32956 <column alignment="center" valignment="top" width="0">
32958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
32961 \begin_layout Plain Layout
32967 <cell alignment="center" valignment="top" topline="true" usebox="none">
32970 \begin_layout Plain Layout
32976 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
32979 \begin_layout Plain Layout
32987 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
32990 \begin_layout Plain Layout
32996 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
32999 \begin_layout Plain Layout
33000 \begin_inset Graphics
33001 filename ../images/dialog-show-new-inset_graphics.png
33003 scaleBeforeRotation
33012 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
33015 \begin_layout Plain Layout
33029 \begin_layout Standard
33032 \begin_inset Tabular
33033 <lyxtabular version="3" rows="3" columns="2">
33034 <features tabularvalignment="middle">
33035 <column alignment="center" valignment="top" width="0">
33036 <column alignment="center" valignment="top" width="0">
33038 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33041 \begin_layout Plain Layout
33047 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
33050 \begin_layout Plain Layout
33058 <cell alignment="center" valignment="top" leftline="true" usebox="none">
33061 \begin_layout Plain Layout
33062 \begin_inset Graphics
33063 filename ../images/dialog-show-new-inset_graphics.png
33065 scaleBeforeRotation
33074 <cell alignment="center" valignment="top" rightline="true" usebox="none">
33077 \begin_layout Plain Layout
33085 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
33088 \begin_layout Plain Layout
33094 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
33097 \begin_layout Plain Layout
33109 \begin_inset Tabular
33110 <lyxtabular version="3" rows="3" columns="3">
33111 <features tabularvalignment="middle">
33112 <column alignment="center" valignment="top" width="0">
33113 <column alignment="center" valignment="top" width="0">
33114 <column alignment="center" valignment="top" width="0">
33116 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33119 \begin_layout Plain Layout
33125 <cell alignment="center" valignment="top" topline="true" usebox="none">
33128 \begin_layout Plain Layout
33134 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
33137 \begin_layout Plain Layout
33145 <cell alignment="center" valignment="top" leftline="true" usebox="none">
33148 \begin_layout Plain Layout
33154 <cell alignment="center" valignment="top" usebox="none">
33157 \begin_layout Plain Layout
33158 \begin_inset Graphics
33159 filename ../images/dialog-show-new-inset_graphics.png
33161 scaleBeforeRotation
33170 <cell alignment="center" valignment="top" rightline="true" usebox="none">
33173 \begin_layout Plain Layout
33181 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
33184 \begin_layout Plain Layout
33190 <cell alignment="center" valignment="top" bottomline="true" usebox="none">
33193 \begin_layout Plain Layout
33199 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
33202 \begin_layout Plain Layout
33214 \begin_inset Tabular
33215 <lyxtabular version="3" rows="3" columns="2">
33216 <features tabularvalignment="middle">
33217 <column alignment="center" valignment="top" width="0">
33218 <column alignment="center" valignment="top" width="0">
33220 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
33223 \begin_layout Plain Layout
33229 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
33232 \begin_layout Plain Layout
33240 <cell alignment="center" valignment="top" leftline="true" usebox="none">
33243 \begin_layout Plain Layout
33249 <cell alignment="center" valignment="top" rightline="true" usebox="none">
33252 \begin_layout Plain Layout
33253 \begin_inset Graphics
33254 filename ../images/dialog-show-new-inset_graphics.png
33256 scaleBeforeRotation
33267 <cell alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
33270 \begin_layout Plain Layout
33276 <cell alignment="center" valignment="top" bottomline="true" rightline="true" usebox="none">
33279 \begin_layout Plain Layout
33293 \begin_layout Standard
33295 you can use the LaTeX-package
33300 \begin_inset Index idx
33303 \begin_layout Plain Layout
33304 LaTeX-packages ! picinpar
33310 Here is an example:
33313 \begin_layout Standard
33317 \begin_layout Plain Layout
33327 \begin_inset Note Note
33330 \begin_layout Plain Layout
33331 The following section will only be displayed when the LaTeX-package
33343 \begin_layout Standard
33347 \begin_layout Plain Layout
33351 begin{window}[2,c,{
33357 \begin_inset Graphics
33358 filename clipart/mobius.eps
33361 scaleBeforeRotation
33362 rotateOrigin center
33370 \begin_layout Plain Layout
33375 \begin_layout Plain Layout
33384 It was in the spring of the year 1894 that all London was interested, and
33385 the fashionable world dismayed, by the murder of the Honourable Ronald
33386 Adair under most unusual and inexplicable circumstances.
33387 The public has already learned those particulars of the crime which
33393 \begin_layout Plain Layout
33404 came out in the police investigation, but a good deal was suppressed upon
33405 that occasion, since the case for the prosecution was so overwhelmingly
33406 strong that it was not necessary to bring forward all the facts.
33407 Only now, at the end of nearly ten years, am I allowed to supply those
33408 missing links which make up the whole of that remarkable chain.
33414 \begin_layout Plain Layout
33426 \begin_layout Standard
33430 \begin_layout Plain Layout
33439 Footnote of the paragraph with the fixed object.
33443 \begin_layout Plain Layout
33453 \begin_layout Standard
33454 Surrounded fixed objects are used to let text float around them, at which
33455 the object's position in the paragraph can be determined by the number
33457 In contrary to floats is it not possible to have a numbered caption.
33460 \begin_layout Standard
33461 A fixed object is inserted by adding the command
33464 \begin_layout Standard
33469 begin{window}[2,c,{
33472 \begin_layout Standard
33473 as TeX Code at the beginning of the paragraph.
33474 The first parameter in the bracket, here '2', defines the number of lines
33475 above the object, the second, here 'c', the position of the object.
33476 The positions 'l', 'c' and 'r' (for left, center, right) are possible.
33477 Behind the command you insert the object.
33478 In this example an image with a width of 40
33479 \begin_inset space \thinspace{}
33482 % of the text column width was inserted.
33483 The object can also be a table, a box or an equation.
33484 Behind the object the command
33487 \begin_layout Standard
33490 },description text]
33491 \begin_inset Newline newline
33497 \begin_layout Standard
33500 \begin_inset Quotes eld
33508 \begin_inset Quotes erd
33511 is in the second line.
33512 The description text is optional.
33513 The text surrounding the object must be in the same paragraph as the object,
33514 so it must begin directly after the
33519 At the end of the paragraph insert the command:
33522 \begin_layout Standard
33530 \begin_layout Standard
33531 Within a paragraph with a fixed object, you cannot insert footnotes in the
33533 You have to use instead the command
33539 inside the paragraph and outside the command
33545 as described in sec.
33546 \begin_inset space \thinspace{}
33550 \begin_inset CommandInset ref
33552 reference "sec:Footnotes"
33559 \begin_layout Standard
33563 \begin_layout Plain Layout
33573 \begin_inset Note Note
33576 \begin_layout Plain Layout
33577 The following will be displayed when the LaTeX-package
33589 \begin_layout Standard
33590 You need to install the LaTeX-package
33594 to see the following part of this section in the output.
33597 \begin_layout Standard
33601 \begin_layout Plain Layout
33613 \begin_layout Section
33615 \begin_inset Index idx
33618 \begin_layout Plain Layout
33625 \begin_inset Index idx
33628 \begin_layout Plain Layout
33629 Surrounded by text ! Initials
33637 \begin_layout Standard
33638 To use initials, you must have the LaTeX-package
33643 \begin_inset Index idx
33646 \begin_layout Plain Layout
33647 LaTeX-packages ! lettrine
33652 installed and use the module
33656 in your document (menu
33658 Document\SpecialChar \menuseparator
33659 Settings\SpecialChar \menuseparator
33663 To insert an initial, use the style
33668 This style has a mandatory and an optional argument.
33669 The mandatory argument is inserted via the menu
33671 Insert\SpecialChar \menuseparator
33673 \begin_inset space ~
33678 and contains the letter that is the initial.
33679 To use also the optional argument, insert another argument in front of
33680 the mandatory argument.
33681 This one contains parameters to modify the initial.
33682 For more information about the possible parameters see the documentation
33688 \begin_inset CommandInset citation
33695 The style itself contains the text that is surrounding the initial.
33696 The usual style is hereby that the word whose first letter is the initial,
33702 To tell LaTeX where this word is finished, add a closing brace '
33706 ' as TeX Code behind it.
33707 At the end of the style there must be an opening brace '
33714 \begin_layout Standard
33715 Here are some examples:
33718 \begin_layout Standard
33722 \begin_layout Plain Layout
33732 \begin_inset Note Note
33735 \begin_layout Plain Layout
33736 The following section will only be displayed when the LaTeX-package
33748 \begin_layout Enumerate
33749 No optional argument, the initial is the letter 'I' in the math font
33750 \begin_inset Formula $\mathfrak{Fraktur}$
33757 \begin_layout Initial
33758 \begin_inset Argument
33761 \begin_layout Plain Layout
33762 \begin_inset Formula $\mathfrak{I}$
33774 \begin_layout Plain Layout
33781 was in the spring of the year 1894 that all London was interested, and
33782 the fashionable world dismayed, by the murder of the Honourable Ronald
33783 Adair under most unusual and inexplicable circumstances.
33784 The public has already learned those particulars of the crime which came
33785 out in the police investigation, but a good deal was suppressed upon that
33786 occasion, since the case for the prosecution was so overwhelmingly strong
33787 that it was not necessary to bring forward all the facts.
33791 \begin_layout Plain Layout
33799 \begin_inset Newpage newpage
33806 \begin_layout Enumerate
33807 Only one line is surrounding the initial, which is formed by two letters
33808 in standard font and no text is printed in small caps:
33812 \begin_layout Initial
33813 \begin_inset Argument
33816 \begin_layout Plain Layout
33823 \begin_inset Argument
33826 \begin_layout Plain Layout
33836 \begin_layout Plain Layout
33843 was in the spring of the year 1894 that all London was interested, and
33844 the fashionable world dismayed, by the murder of the Honourable Ronald
33845 Adair under most unusual and inexplicable circumstances.
33846 The public has already learned those particulars of the crime which came
33847 out in the police investigation, but a good deal was suppressed upon that
33848 occasion, since the case for the prosecution was so overwhelmingly strong
33849 that it was not necessary to bring forward all the facts.
33853 \begin_layout Plain Layout
33864 \begin_layout Enumerate
33865 Magenta, hanging initial over 3
33866 \begin_inset space ~
33869 lines in the math font
33870 \begin_inset Formula $\mathcal{CALLIGRAPHIC}$
33874 \begin_inset Quotes eld
33877 t was in the spring
33878 \begin_inset Quotes erd
33885 ; to color the initial, you must insert this command before the initial:
33886 \begin_inset Newline newline
33900 \begin_inset Newline newline
33908 \begin_inset Quotes eld
33912 \begin_inset Quotes erd
33916 \begin_inset Quotes eld
33920 \begin_inset Quotes erd
33924 \begin_inset Quotes eld
33928 \begin_inset Quotes erd
33932 \begin_inset Quotes eld
33936 \begin_inset Quotes erd
33940 \begin_inset Quotes eld
33944 \begin_inset Quotes erd
33948 \begin_inset Quotes eld
33952 \begin_inset Quotes erd
33956 \begin_inset Quotes eld
33960 \begin_inset Quotes erd
33964 \begin_inset Quotes eld
33968 \begin_inset Quotes erd
33971 , and add this command to the document preamble:
33972 \begin_inset Newline newline
33979 @ifundefined{textcolor}
33980 \begin_inset Newline newline
33984 \begin_inset space ~
33989 usepackage{color}}{}
33993 \begin_layout Standard
33997 \begin_layout Plain Layout
34011 \begin_inset Note Note
34014 \begin_layout Plain Layout
34015 makes the initial magenta
34023 \begin_layout Initial
34024 \begin_inset Argument
34027 \begin_layout Plain Layout
34028 lines=3, lhang=0.33, loversize=0.25
34034 \begin_inset Argument
34037 \begin_layout Plain Layout
34038 \begin_inset Formula $\mathcal{I}$
34046 t was in the spring
34050 \begin_layout Plain Layout
34057 of the year 1894 that all London was interested, and the fashionable world
34058 dismayed, by the murder of the Honourable Ronald Adair under most unusual
34059 and inexplicable circumstances.
34060 The public has already learned those particulars of the crime which came
34061 out in the police investigation, but a good deal was suppressed upon that
34062 occasion, since the case for the prosecution was so overwhelmingly strong
34063 that it was not necessary to bring forward all the facts.
34067 \begin_layout Plain Layout
34078 \begin_layout Standard
34082 \begin_layout Plain Layout
34092 \begin_inset Note Note
34095 \begin_layout Plain Layout
34096 The following will be displayed when the LaTeX-package
34108 \begin_layout Standard
34109 You need to install the LaTeX-package
34113 to see the following part of this section in the output.
34116 \begin_layout Standard
34120 \begin_layout Plain Layout
34132 \begin_layout Chapter
34133 External Document Parts
34134 \begin_inset Index idx
34137 \begin_layout Plain Layout
34138 External Document Parts
34146 \begin_layout Standard
34149 Insert\SpecialChar \menuseparator
34152 you can insert external material to your document.
34156 \begin_layout Description
34158 \begin_inset space ~
34161 Document Another LyX document; its content is directly inserted to your
34165 \begin_layout Description
34167 \begin_inset space ~
34170 Text A text document; each line is inserted in your document as a separate
34174 \begin_layout Description
34176 \begin_inset space ~
34180 \begin_inset space ~
34184 \begin_inset space ~
34187 Lines A text document; text lines are inserted in your document continuously
34188 but an empty text line creates a new paragraph.
34191 \begin_layout Description
34193 \begin_inset space ~
34196 Material Files in various formats.
34199 \begin_layout Description
34201 \begin_inset space ~
34204 Document LyX or LaTeX-documents.
34207 \begin_layout Section
34209 \begin_inset Index idx
34212 \begin_layout Plain Layout
34213 External Document Parts ! External Material
34221 \begin_layout Standard
34222 The external material feature allows you to insert files in to your document
34223 without converting them to a format that can be read by the document output
34225 LyX takes care of the necessary conversions.
34226 This is similar to images that can be inserted in various image formats
34228 When you have enabled Instant Preview in LyX's preferences under
34231 \begin_inset space ~
34235 \begin_inset space ~
34238 feel\SpecialChar \menuseparator
34241 , the external material types Dia and Xfig are directly shown in LyX.
34244 \begin_layout Standard
34245 External material can be inserted via the
34249 dialog that is accessible with the menu
34251 Insert\SpecialChar \menuseparator
34252 File\SpecialChar \menuseparator
34254 \begin_inset space ~
34260 Currently the following file types (
34267 \begin_layout Description
34268 ChessDiagram This template supports chess position diagrams made with the
34272 \begin_inset CommandInset href
34275 target "http://en.wikipedia.org/wiki/XBoard"
34284 \begin_layout Description
34285 Date This inserts the date in the form
34290 This is a date inserted as external material:
34291 \begin_inset External
34298 \begin_inset space ~
34302 \begin_inset Note Note
34305 \begin_layout Plain Layout
34306 Remove the protected space when bug 4398 is fixed!
34312 \begin_inset Newline newline
34315 The date is not shown within LyX, only in the output.
34316 There are two other methods of inserting a date: Via menu
34318 Insert\SpecialChar \menuseparator
34321 and with the LaTeX command
34328 The different methods are compared in Table
34329 \begin_inset space ~
34333 \begin_inset CommandInset ref
34335 reference "tab:Comparison-of-the"
34342 \begin_layout Description
34343 Dia This template supports diagrams created with the program
34346 \begin_inset CommandInset href
34349 target "http://en.wikipedia.org/wiki/Dia_(software)"
34358 \begin_layout Description
34359 GnumericSpreadsheet With this template you can insert spreadsheets
34360 \begin_inset space \thinspace{}
34364 \begin_inset space \thinspace{}
34367 tables in the format of
34370 \begin_inset CommandInset href
34373 target "http://en.wikipedia.org/wiki/Gnumeric"
34380 \begin_inset CommandInset href
34382 name "OpenDocument"
34383 target "http://en.wikipedia.org/wiki/OpenDocument"
34388 \begin_inset CommandInset href
34390 name "Microsoft Office XML"
34391 target "http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats"
34396 \begin_inset CommandInset href
34398 name "Office Open XML"
34399 target "http://en.wikipedia.org/wiki/Office_Open_XML"
34404 For this feature LyX must have found the program
34408 during its configuration.
34409 This program is part of Gnumeric, so that you must have Gnumeric installed,
34410 also if you don't have tables in the Gnumeric format.
34411 For examples and possible limitations have a look at LyX's example file
34419 \begin_layout Description
34420 LilyPond This template is used for music notation typeset with the program
34421 \begin_inset Newline linebreak
34427 \begin_inset CommandInset href
34430 target "http://en.wikipedia.org/wiki/LilyPond"
34437 For LyX's extended support for LilyPond have a look at LyX's example file
34445 \begin_layout Description
34446 PDFPages With this template you can insert PDF documents to your document.
34447 To insert certain or all pages of a PDF, use the
34457 LaTeX and LyX options
34459 tab according to the template description in the dialog.
34464 option is given, only the first page of the PDF will be inserted.
34467 \begin_layout Description
34468 RasterImage This can be used for bitmap images.
34469 Nearly all popular image formats are supported.
34470 The image can be treated in the
34474 dialog like the images that are usually included via the
34478 dialog as described in section
34479 \begin_inset space ~
34483 \begin_inset CommandInset ref
34485 reference "sec:Graphics-Dialog"
34490 The difference is that only raster images are allowed; that means that
34491 PDF and EPS-images are not supported.
34494 \begin_layout Description
34495 XFig This template supports images created with the program
34498 \begin_inset CommandInset href
34501 target "http://en.wikipedia.org/wiki/Xfig"
34510 \begin_layout Standard
34511 \begin_inset Float table
34517 \begin_layout Plain Layout
34518 \begin_inset Caption
34520 \begin_layout Plain Layout
34521 \begin_inset CommandInset label
34523 name "tab:Comparison-of-the"
34527 Comparison of the date input methods.
34535 \begin_layout Plain Layout
34537 \begin_inset Tabular
34538 <lyxtabular version="3" rows="4" columns="4">
34539 <features tabularvalignment="middle">
34540 <column alignment="center" valignment="top" width="0">
34541 <column alignment="center" valignment="top" width="0">
34542 <column alignment="center" valignment="top" width="0">
34543 <column alignment="center" valignment="top" width="0">
34545 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34548 \begin_layout Plain Layout
34554 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34557 \begin_layout Plain Layout
34560 External Material\SpecialChar \menuseparator
34566 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34569 \begin_layout Plain Layout
34572 Insert\SpecialChar \menuseparator
34578 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34581 \begin_layout Plain Layout
34593 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34596 \begin_layout Plain Layout
34602 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34605 \begin_layout Plain Layout
34611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34614 \begin_layout Plain Layout
34620 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34623 \begin_layout Plain Layout
34624 as TeX-Code inset box
34631 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34634 \begin_layout Plain Layout
34640 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34643 \begin_layout Plain Layout
34649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
34652 \begin_layout Plain Layout
34658 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34661 \begin_layout Plain Layout
34669 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34672 \begin_layout Plain Layout
34678 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34681 \begin_layout Plain Layout
34687 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34690 \begin_layout Plain Layout
34696 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34699 \begin_layout Plain Layout
34718 \begin_layout Standard
34719 When you use the option
34731 dialog, only the path to the inserted file is shown in the output.
34732 \begin_inset Newline newline
34735 External material is displayed in LyX either as a box like this:
34736 \begin_inset Graphics
34737 filename clipart/ExternalMaterialQt4.png
34739 scaleBeforeRotation
34743 or as image, depending on the option
34749 LaTeX and LyX options
34754 \begin_layout Standard
34761 manual explains how you can define your own templates.
34764 \begin_layout Section
34766 \begin_inset CommandInset label
34768 name "sec:Child-Documents"
34773 \begin_inset Index idx
34776 \begin_layout Plain Layout
34777 External Document Parts ! Child Documents
34783 \begin_inset Index idx
34786 \begin_layout Plain Layout
34795 \begin_layout Standard
34796 Child documents are used if you have a long document consisting of several
34797 larger parts or sections.
34798 For maintenance it is often useful and sometimes even required to split
34799 the document into several files that can be revised separately.
34800 The different documents are then the so called
34801 \begin_inset Quotes eld
34805 \begin_inset Quotes erd
34808 , and a master document connects them to print the full document or parts
34810 A child document inherits elements of its master, for example the LaTeX
34811 preamble, the bibliography, and labels for cross-references.
34814 \begin_layout Standard
34815 To be able to work on child documents without the need to open their master,
34816 specify in the child document the master in the menu
34818 Document\SpecialChar \menuseparator
34819 Settings\SpecialChar \menuseparator
34821 \begin_inset space ~
34827 This master document will then be used in the background by LyX when you
34828 edit the child document.
34831 \begin_layout Standard
34832 Included documents are displayed in LyX as a box like this:
34833 \begin_inset Graphics
34834 filename clipart/ChildDocumentQt4.png
34836 scaleBeforeRotation
34840 To include child documents in a master document use the menu
34842 Insert\SpecialChar \menuseparator
34843 File\SpecialChar \menuseparator
34845 \begin_inset space ~
34851 A dialog pops up where you can choose between four include methods:
34854 \begin_layout Description
34855 Include You can include LyX- and LaTeX-documents.
34864 dialog, the included documents will be opened in LyX in a new file tab
34865 so that you can modify them.
34866 \begin_inset Newline newline
34872 \begin_layout Standard
34873 Here is a child document inserted using
34878 \begin_inset CommandInset include
34879 LatexCommand include
34880 filename "DummyDocument1.lyx"
34887 \begin_layout Standard
34888 The section numbering includes the sections of the included files in the
34889 order they are inserted in the master document.
34890 The included example document has for example a subsection that is numbered
34891 as a subsection of this section.
34892 Labels of included documents can be referenced: Subsection
34893 \begin_inset space ~
34897 \begin_inset CommandInset ref
34899 reference "sub:External-Subsection-1"
34906 \begin_layout Standard
34907 The preamble of the child document is ignored; only the preamble of the
34908 master document is used.
34909 Branches in child documents will be ignored by the master document when
34910 the master document does not have a branch with the same name.
34911 Included documents are inserted starting on a new page and ending with
34915 \begin_layout Standard
34916 \begin_inset Note Greyedout
34919 \begin_layout Plain Layout
34924 If you have included a LyX- or LaTeX-file, you are warned when you export/view
34925 the document in case the child document uses another document class than
34926 the master document as this will lead to unexpected outputs.
34934 \begin_layout Description
34935 Input This method is very similar to the Include method.
34936 The differences are:
34940 \begin_layout Itemize
34941 Input files don't start with a new page and don't end with a page break.
34944 \begin_layout Itemize
34945 Input files can be previewed in LyX when
34948 \begin_inset space ~
34953 is enabled in LyX's preferences under
34956 \begin_inset space ~
34960 \begin_inset space ~
34963 feel\SpecialChar \menuseparator
34969 \begin_layout Itemize
34970 You cannot exclude Input files via the menu
34972 Document\SpecialChar \menuseparator
34973 Settings\SpecialChar \menuseparator
34980 \begin_layout Standard
34981 Here is a child document inserted using
34986 \begin_inset CommandInset include
34988 filename "DummyDocument2.lyx"
34995 \begin_layout Description
34996 Verbatim With this method any text file can be included.
34997 The file is shown in the output with its source code; no command used in
34998 the text is invoked.
34999 You can use the option
35001 Mark spaces in output
35003 that displays the character
35004 \begin_inset Quotes eld
35011 \begin_layout Plain Layout
35021 \begin_inset Quotes erd
35024 for every space character in the source code.
35025 The difference from the method via the menu
35027 Insert\SpecialChar \menuseparator
35028 File\SpecialChar \menuseparator
35030 \begin_inset space ~
35035 is that the document content is not shown in LyX.
35038 \begin_layout Standard
35039 Here is a child document inserted as Verbatim:
35040 \begin_inset CommandInset include
35041 LatexCommand verbatiminput
35042 filename "DummyTextDocument.txt"
35047 \begin_inset VSpace bigskip
35050 Here is a child document inserted as Verbatim using the
35052 Mark spaces in output
35055 \begin_inset CommandInset include
35056 LatexCommand verbatiminput*
35057 filename "DummyTextDocument.txt"
35064 \begin_layout Standard
35065 \begin_inset VSpace bigskip
35071 \begin_layout Standard
35072 \begin_inset Note Greyedout
35075 \begin_layout Plain Layout
35080 As you can see in the examples above, the text of the documents included
35085 is not broken at the end of the document lines.
35093 \begin_layout Description
35094 Listings This type is described in chapter
35095 \begin_inset space ~
35099 \begin_inset CommandInset ref
35101 reference "cha:Program-Code-Listings"
35108 \begin_layout Standard
35109 \begin_inset Note Greyedout
35112 \begin_layout Plain Layout
35117 Including the same document twice in a document using different methods
35118 could cause LaTeX-problems.
35126 \begin_layout Standard
35127 If you want to view/export only selected children of your master document,
35128 either because you want to save compiling time or because you want to distribut
35129 e single chapters of the book you are just writing, you can exclude children
35131 This is done via the menu
35133 Document\SpecialChar \menuseparator
35134 Settings\SpecialChar \menuseparator
35138 You can exclude\SpecialChar \slash{}
35139 include children by double-clicking on the
35143 column of the respective child document in the list (note that this only
35144 works for documents embedded via
35145 \begin_inset Quotes eld
35149 \begin_inset Quotes erd
35153 \begin_inset Quotes eld
35157 \begin_inset Quotes erd
35163 Maintain counters and references
35165 is enabled, LyX will assure that all page numbers, references etc.
35166 \begin_inset space ~
35169 are correct as if the whole document was processed.
35170 This is useful if you want the selected sub-documents to look exactly as
35171 in the context of the whole document.
35172 However, LyX needs to process the whole document in the background for
35174 So if you want to save compile time and if counters and references do not
35175 need to be correct, disable this checkbox.
35178 \begin_layout Standard
35179 Alternatively, you can put each included file into a branch.
35183 \begin_layout Plain Layout
35184 Branches are described in section
35197 By enabling\SpecialChar \slash{}
35198 disabling branches you can decide which included files will
35199 appear in the output.
35200 This has the advantage that it also works with Input'ed sub-documents.
35201 However, counters and references will not be maintained with this approach.
35204 \begin_layout Chapter
35205 Program Code Listings
35206 \begin_inset CommandInset label
35208 name "cha:Program-Code-Listings"
35213 \begin_inset Index idx
35216 \begin_layout Plain Layout
35223 \begin_inset Index idx
35226 \begin_layout Plain Layout
35233 \begin_inset Index idx
35236 \begin_layout Plain Layout
35245 \begin_layout Standard
35246 To include and typeset program code you can use the
35250 inset that can be inserted via the menu
35252 Insert\SpecialChar \menuseparator
35261 \begin_inset Index idx
35264 \begin_layout Plain Layout
35265 LaTeX-packages ! listings
35270 provides a powerful and flexible way to insert program source code into
35274 \begin_layout Standard
35275 Right-clicking on a listings inset opens the context menu containing where
35276 you can set the listings format.
35279 \begin_layout Standard
35280 By default, a listing starts a new paragraph in the output.
35281 The placement option
35284 \begin_inset space ~
35289 prints the listing inline like this:
35290 \begin_inset listings
35291 lstparams "language={C++}"
35295 \begin_layout Plain Layout
35303 \begin_inset Newline newline
35310 creates a listings float where you can specify the placement options
35311 \begin_inset Quotes eld
35319 \begin_inset Quotes erd
35323 \begin_inset Quotes eld
35331 \begin_inset Quotes erd
35335 \begin_inset Quotes eld
35343 \begin_inset Quotes erd
35347 \begin_inset Quotes eld
35355 \begin_inset Quotes erd
35358 corresponding to the float placement options described in section
35359 \begin_inset space ~
35363 \begin_inset CommandInset ref
35365 reference "sec:Float-Placement"
35370 The placement options can be mixed and are inserted without any separation,
35372 \begin_inset space \thinspace{}
35376 \begin_inset space \space{}
35380 \begin_inset Quotes eld
35388 \begin_inset Quotes erd
35393 \begin_inset Quotes eld
35397 \begin_inset Quotes erd
35400 has sometimes no effect, but you don't need to use the
35404 option in this case as also non-float listings can have captions and be
35408 \begin_layout Standard
35409 You can add captions to listings with the menu
35411 Insert\SpecialChar \menuseparator
35415 Listings can be referenced like floats: Listing
35416 \begin_inset space ~
35420 \begin_inset CommandInset ref
35422 reference "lst:Example-Listing"
35429 \begin_layout Standard
35430 \begin_inset listings
35431 lstparams "language=Python"
35435 \begin_layout Plain Layout
35437 \begin_inset Caption
35439 \begin_layout Plain Layout
35440 \begin_inset CommandInset label
35442 name "lst:Example-Listing"
35446 Example Listing float
35451 # Example listing float
35454 \begin_layout Plain Layout
35459 \begin_layout Plain Layout
35461 'this is a python function'
35464 \begin_layout Plain Layout
35474 \begin_layout Standard
35475 When you have set a programming language in the listings dialog, the keywords
35476 of this language will be recognized and specially typeset in the output.
35477 In the example listings the Python keyword
35478 \begin_inset Quotes eld
35482 \begin_inset Quotes erd
35485 is recognized and printed bold in the output.
35488 \begin_layout Standard
35489 \begin_inset Note Greyedout
35492 \begin_layout Plain Layout
35497 If you don't get bold keywords when using typewriter fonts, your
35501 font probably doesn't provide a bold shape.
35502 In this case select a different one in the menu
35504 Document\SpecialChar \menuseparator
35505 Settings\SpecialChar \menuseparator
35517 provide bold shapes.)
35525 \begin_layout Standard
35529 \begin_inset space ~
35534 of the listings dialog you can specify the line numbering style.
35535 You can insert a number to specify which lines are numbered in the field
35542 \begin_inset space \thinspace{}
35546 \begin_inset space \space{}
35550 \begin_inset Quotes eld
35554 \begin_inset Quotes erd
35557 , only every 3rd line will be numbered.
35560 \begin_layout Standard
35561 You can furthermore specify a range of lines; only these will then appear
35565 Extended character table
35567 should be used when you use national characters like the German umlauts
35569 \begin_inset Newline newline
35572 Here is an example listing with left line numbering, step
35573 \begin_inset Quotes eld
35577 \begin_inset Quotes erd
35581 \begin_inset Quotes eld
35585 \begin_inset Quotes erd
35589 \begin_inset Quotes eld
35592 Extended character table
35593 \begin_inset Quotes erd
35597 \begin_inset Quotes eld
35601 \begin_inset space ~
35605 \begin_inset space ~
35609 \begin_inset Quotes erd
35613 \begin_inset space \thinspace{}
35617 \begin_inset space \thinspace{}
35623 \begin_layout Standard
35624 \begin_inset listings
35625 lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3"
35629 \begin_layout Plain Layout
35634 \begin_layout Plain Layout
35636 'this is a python function'
35639 \begin_layout Plain Layout
35644 \begin_layout Plain Layout
35649 \begin_layout Plain Layout
35651 'This is a German word: Tschüß'
35654 \begin_layout Plain Layout
35659 \begin_layout Plain Layout
35664 \begin_layout Plain Layout
35666 'this is a python function'
35669 \begin_layout Plain Layout
35679 \begin_layout Standard
35680 When you have tabulators in your listing, you can specify the number of
35681 characters that are spanned by a tabulator in the field
35684 \begin_inset space ~
35692 \begin_layout Standard
35693 \begin_inset Note Greyedout
35696 \begin_layout Plain Layout
35701 Due to a bug in the
35705 package the line numbering is shifted by a line by every previous listing.
35706 That's the reason why the lines 2 and 5 are numbered in the above listing
35707 and not the lines 3 and 6.
35715 \begin_layout Standard
35716 \begin_inset VSpace bigskip
35722 \begin_layout Standard
35723 It is also possible to print lines from a file as listing.
35724 To do this, use the menu
35726 Insert\SpecialChar \menuseparator
35727 File\SpecialChar \menuseparator
35730 and choose the type
35738 \begin_layout Plain Layout
35739 The other child document types are described in section
35740 \begin_inset space ~
35744 \begin_inset CommandInset ref
35746 reference "sec:Child-Documents"
35755 In the child document dialog you can specify the listing parameters in
35757 To show a list of all available parameters, type in a question mark
35758 \begin_inset Quotes eld
35762 \begin_inset Quotes erd
35768 \begin_layout Standard
35769 To reference child document listings, write a label text into the corresponding
35770 field of the child document dialog.
35771 The label can then be referenced using the menu
35773 Insert\SpecialChar \menuseparator
35779 \begin_layout Standard
35781 \begin_inset space ~
35785 \begin_inset CommandInset ref
35787 reference "lst:file-listing"
35791 is an example for a listing of a file; there the lines 10
35792 \begin_inset space \thinspace{}
35796 \begin_inset space \thinspace{}
35799 15 of this LyX file are listed.
35802 \begin_layout Standard
35803 \begin_inset CommandInset include
35804 LatexCommand lstinputlisting
35805 filename "EmbeddedObjects.lyx"
35806 lstparams "breaklines=true,caption={Lines 10 - 15 of this LyX file},extendedchars=true,firstline=10,label={lst:file-listing},language={[LaTeX]TeX},lastline=15"
35813 \begin_layout Standard
35814 \begin_inset VSpace bigskip
35820 \begin_layout Standard
35821 Inserting a formula into a listing can be done the following way:
35824 \begin_layout Enumerate
35825 Open the listings dialog and add
35826 \begin_inset Newline newline
35834 \begin_inset Newline newline
35837 to the field of the
35844 \begin_layout Enumerate
35845 Create a formula outside the listing
35848 \begin_layout Enumerate
35849 Copy the content of the formula (not the formula inset) to the clipboard
35859 \begin_layout Enumerate
35860 In the listing write
35861 \begin_inset Quotes eld
35869 \begin_inset Quotes erd
35872 and copy from the clipboard between the dollar-signs (shortcut
35881 \begin_layout Standard
35882 \begin_inset listings
35883 lstparams "language=Python,mathescape=true"
35887 \begin_layout Plain Layout
35889 \begin_inset Caption
35891 \begin_layout Plain Layout
35892 Example Listing float containing a formula
35897 # Example listing float
35900 \begin_layout Plain Layout
35905 \begin_layout Plain Layout
35918 \begin_layout Plain Layout
35928 \begin_layout Standard
35929 \begin_inset VSpace bigskip
35935 \begin_layout Standard
35936 Global listings settings can be set in the
35938 Document\SpecialChar \menuseparator
35939 Settings\SpecialChar \menuseparator
35943 To get there a list of available options, type in a question mark
35944 \begin_inset Quotes eld
35948 \begin_inset Quotes erd
35954 \begin_layout Standard
35955 For more information about the
35959 package, we refer to its documentation
35960 \begin_inset CommandInset citation
35969 \begin_layout Standard
35970 \begin_inset Newpage newpage
35976 \begin_layout Chapter
35978 Units available in LyX
35979 \begin_inset Index idx
35982 \begin_layout Plain Layout
35989 \begin_inset CommandInset label
35991 name "cha:Units-available-in"
35998 \begin_layout Standard
35999 To understand the units described in this documentation, Table
36000 \begin_inset space ~
36004 \begin_inset CommandInset ref
36006 reference "tab:Units"
36010 explains all units available in LyX.
36013 \begin_layout Standard
36014 \begin_inset Float table
36020 \begin_layout Plain Layout
36021 \begin_inset Caption
36023 \begin_layout Plain Layout
36024 \begin_inset CommandInset label
36038 \begin_layout Plain Layout
36039 \begin_inset VSpace medskip
36045 \begin_layout Plain Layout
36047 \begin_inset Tabular
36048 <lyxtabular version="3" rows="20" columns="2">
36049 <features tabularvalignment="middle">
36050 <column alignment="center" valignment="top" width="0">
36051 <column alignment="center" valignment="top" width="0">
36053 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36056 \begin_layout Plain Layout
36062 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36065 \begin_layout Plain Layout
36073 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36076 \begin_layout Plain Layout
36082 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36085 \begin_layout Plain Layout
36093 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36096 \begin_layout Plain Layout
36102 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36105 \begin_layout Plain Layout
36113 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36116 \begin_layout Plain Layout
36122 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36125 \begin_layout Plain Layout
36133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36136 \begin_layout Plain Layout
36142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36145 \begin_layout Plain Layout
36147 \begin_inset space \thinspace{}
36151 \begin_inset space \thinspace{}
36161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36164 \begin_layout Plain Layout
36170 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36173 \begin_layout Plain Layout
36175 \begin_inset space \thinspace{}
36179 \begin_inset space \thinspace{}
36189 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36192 \begin_layout Plain Layout
36198 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36201 \begin_layout Plain Layout
36202 scaled point (65536
36203 \begin_inset space \thinspace{}
36207 \begin_inset space \thinspace{}
36217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36220 \begin_layout Plain Layout
36226 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36229 \begin_layout Plain Layout
36231 \begin_inset space \thinspace{}
36235 \begin_inset space \thinspace{}
36245 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36248 \begin_layout Plain Layout
36254 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36257 \begin_layout Plain Layout
36259 \begin_inset space \thinspace{}
36263 \begin_inset Formula $\approx$
36267 \begin_inset space \thinspace{}
36277 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36280 \begin_layout Plain Layout
36286 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36289 \begin_layout Plain Layout
36291 \begin_inset space \thinspace{}
36295 \begin_inset space \thinspace{}
36305 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36308 \begin_layout Plain Layout
36314 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36317 \begin_layout Plain Layout
36318 % of original image width
36325 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36328 \begin_layout Plain Layout
36334 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36337 \begin_layout Plain Layout
36345 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36348 \begin_layout Plain Layout
36354 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36357 \begin_layout Plain Layout
36365 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36368 \begin_layout Plain Layout
36374 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36377 \begin_layout Plain Layout
36385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36388 \begin_layout Plain Layout
36394 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36397 \begin_layout Plain Layout
36405 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36408 \begin_layout Plain Layout
36414 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36417 \begin_layout Plain Layout
36425 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36428 \begin_layout Plain Layout
36434 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36437 \begin_layout Plain Layout
36445 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36448 \begin_layout Plain Layout
36454 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36457 \begin_layout Plain Layout
36469 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
36472 \begin_layout Plain Layout
36478 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
36481 \begin_layout Plain Layout
36493 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
36496 \begin_layout Plain Layout
36502 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
36505 \begin_layout Plain Layout
36507 \begin_inset space \thinspace{}
36511 \begin_inset space \thinspace{}
36532 \begin_layout Chapter
36533 Output File Formats with Graphics
36534 \begin_inset CommandInset label
36536 name "cha:Output-File-Formats"
36543 \begin_layout Section
36545 \begin_inset Index idx
36548 \begin_layout Plain Layout
36555 \begin_inset Index idx
36558 \begin_layout Plain Layout
36563 \begin_layout Plain Layout
36574 \begin_layout Plain Layout
36589 \begin_layout Standard
36590 This file type has the extension
36591 \begin_inset Quotes eld
36599 \begin_inset Quotes erd
36604 \begin_inset Quotes eld
36608 \begin_inset Quotes erd
36611 (DVI), because it is completely portable; you can move them from one machine
36612 to another without needing to do any sort of conversion.
36613 At the time when this file-format was developed, this was no matter of
36615 DVIs are used for quick previews and as pre-stage for other output formats,
36619 \begin_layout Standard
36620 \begin_inset Note Greyedout
36623 \begin_layout Plain Layout
36628 DVI-files do not contain images; they will only be a linked.
36633 So don't forget this, if you move your
36637 file to another computer.
36638 This property can also slow down your computer when you view the DVI, because
36639 the DVI-viewer has to convert the image in the background to make it visible
36640 when you scroll in the DVI.
36641 So it is recommended that you use PDF for files with many images.
36644 \begin_layout Standard
36645 You can export your document to DVI by using the menu
36647 File\SpecialChar \menuseparator
36648 Export\SpecialChar \menuseparator
36652 You can view your document as DVI via the
36656 menu or by using the toolbar button
36657 \begin_inset Graphics
36658 filename ../images/buffer-view_dvi.png
36660 scaleBeforeRotation
36667 \begin_layout Section
36669 \begin_inset CommandInset label
36671 name "sec:PostScript"
36676 \begin_inset Index idx
36679 \begin_layout Plain Layout
36680 File Formats ! PostScript
36686 \begin_inset Index idx
36689 \begin_layout Plain Layout
36694 \begin_layout Plain Layout
36705 \begin_layout Plain Layout
36720 \begin_layout Standard
36721 This file type has the extension
36722 \begin_inset Quotes eld
36730 \begin_inset Quotes erd
36734 PostScript was developed by the company
36738 as a printer language.
36739 The file therefore contains commands that the printer uses to print the
36741 PostScript can be seen as a
36742 \begin_inset Quotes eld
36745 programming language
36746 \begin_inset Quotes erd
36749 ; you can calculate with it and draw diagrams and images
36753 \begin_layout Plain Layout
36754 If you are interested to learn more about this, have a look at the LaTeX-package
36760 \begin_inset CommandInset citation
36772 Due to this ability, the files are often bigger than PDFs.
36775 \begin_layout Standard
36776 PostScript can only contain images in the format
36777 \begin_inset Quotes eld
36780 Encapsulated PostScript
36781 \begin_inset Quotes erd
36784 (EPS, file extension
36785 \begin_inset Quotes eld
36793 \begin_inset Quotes erd
36797 As LyX allows you to use any known image format in your document, it has
36798 to convert images in the background to EPS.
36800 \begin_inset space ~
36804 \begin_inset space ~
36807 images in your document, LyX has to do 50
36808 \begin_inset space ~
36811 conversions whenever you view or export your document.
36812 This will slow down your work flow with LyX drastically.
36813 So if you plan to use PostScript, you can insert your images directly as
36814 EPS to avoid this problem.
36817 \begin_layout Standard
36818 You can export your document to PostScript using the menu
36820 File\SpecialChar \menuseparator
36821 Export\SpecialChar \menuseparator
36825 You can view your document as PostScript via the
36829 menu or by using the toolbar button
36830 \begin_inset Graphics
36831 filename ../images/buffer-view_ps.png
36833 scaleBeforeRotation
36840 \begin_layout Section
36842 \begin_inset Index idx
36845 \begin_layout Plain Layout
36852 \begin_inset Index idx
36855 \begin_layout Plain Layout
36864 \begin_layout Standard
36865 This file type has the extension
36866 \begin_inset Quotes eld
36874 \begin_inset Quotes erd
36879 \begin_inset Quotes eld
36882 Portable Document Format
36883 \begin_inset Quotes erd
36886 (PDF) was developed by
36890 as a derivative of PostScript.
36891 It is more compressed and it uses fewer commands than PostScript.
36893 \begin_inset Quotes eld
36897 \begin_inset Quotes erd
36900 implies, it can be processed at any computer system and the printed output
36901 looks exactly the same.
36904 \begin_layout Standard
36905 PDF can contain images in its own PDF format, in the format
36906 \begin_inset Quotes eld
36909 Joint Photographic Experts Group
36910 \begin_inset Quotes erd
36913 (JPG, file extension
36914 \begin_inset Quotes eld
36922 \begin_inset Quotes erd
36926 \begin_inset Quotes eld
36934 \begin_inset Quotes erd
36937 ), and in the format
36938 \begin_inset Quotes eld
36941 Portable Network Graphics
36942 \begin_inset Quotes erd
36945 (PNG, file extension
36946 \begin_inset Quotes eld
36954 \begin_inset Quotes erd
36958 Nevertheless you can use any other image format, because LyX converts them
36959 in the background to one of these formats.
36960 But as described in the section about PostScript, the image conversion
36961 will slow down your work flow.
36962 So it is recommended that you use images in one of the three mentioned
36966 \begin_layout Standard
36967 You can export your document to PDF via the menu
36969 File\SpecialChar \menuseparator
36972 in three different ways:
36975 \begin_layout Description
36977 \begin_inset space ~
36980 (ps2pdf) This uses the program
36984 that creates a PDF from a PostScript-version of your file.
36985 The PostScript-version is produced by the program
36989 which uses a DVI-version as intermediate step.
36990 So this export variant consists of three conversions.
36993 \begin_layout Description
36995 \begin_inset space ~
36998 (dvipdfm) This uses the program
37002 that converts your file in the background to DVI and in a second step to
37006 \begin_layout Description
37008 \begin_inset space ~
37011 (pdflatex) This uses the program
37015 that converts your file directly to PDF.
37018 \begin_layout Standard
37019 It is recommended that you use
37022 \begin_inset space ~
37031 supports all features of actual PDF-versions, is quick and works stable.
37036 is not under development and therefore a bit outdated.
37039 \begin_layout Standard
37040 You can view your document as PDF via the
37044 menu or by using the toolbar button
37045 \begin_inset Graphics
37046 filename ../images/buffer-view_pdf2.png
37048 scaleBeforeRotation
37059 \begin_inset space ~
37067 \begin_layout Chapter
37068 Explanation of Equation
37069 \begin_inset space ~
37073 \begin_inset CommandInset ref
37080 \begin_inset CommandInset label
37082 name "cha:Explanation-of-Equation"
37089 \begin_layout Standard
37090 We can calculate the total width of
37095 \begin_inset Formula $W_{\mathrm{tot\, n}}$
37101 \begin_layout Standard
37102 \begin_inset Formula
37104 W_{\mathrm{tot}\, n}=n\cdot(W_{g\, n}+2\cdot\backslash\mbox{tabcolsep})+(n+1)\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_n}
37110 \begin_inset Formula $W_{g\, n}$
37113 is the given width of all cells,
37119 is the LaTeX-length between the cell text and the cell border (its default
37121 \begin_inset space \thinspace{}
37131 is the thickness of the cell border line, the default is 0.4
37132 \begin_inset space \thinspace{}
37138 \begin_layout Standard
37140 \begin_inset space ~
37144 \begin_inset CommandInset ref
37146 reference "eq:Wtot_n"
37150 , the total width of a multicolumn
37151 \begin_inset Formula $W_{\mathrm{tot\, mult}}$
37157 \begin_layout Standard
37158 \begin_inset Formula
37160 W_{\mathrm{tot\, mult}}=W_{g\,\mathrm{mult}}+2\cdot\backslash\mbox{tabcolsep}+2\cdot\backslash\mbox{arrayrulewidth}\label{eq:Wtot_mult}
37168 \begin_layout Standard
37169 By setting equation
37170 \begin_inset space ~
37174 \begin_inset CommandInset ref
37176 reference "eq:Wtot_n"
37181 \begin_inset CommandInset ref
37183 reference "eq:Wtot_mult"
37187 equal we can calculate the needed given width
37188 \begin_inset Formula $W_{g\, n}$
37195 columns are spanned, so that each column has a total width of
37196 \begin_inset Formula $W_{\mathrm{tot\, mult}}/n$
37202 \begin_layout Standard
37203 \begin_inset Formula
37205 W_{g\, n}=(W_{g\,\mathrm{mult}}+(1-n)\cdot(2\cdot\backslash\mbox{tabcolsep}+\backslash\mbox{arrayrulewidth}))/n
37213 \begin_layout Bibliography
37214 \labelwidthstring Bibliography
37215 \begin_inset CommandInset bibitem
37216 LatexCommand bibitem
37217 key "latexcompanion"
37221 Frank Mittelbach and Michel Goossens:
37223 The LaTeX Companion Second Edition.
37226 Addison-Wesley, 2004
37229 \begin_layout Bibliography
37230 \labelwidthstring Bibliography
37231 \begin_inset CommandInset bibitem
37232 LatexCommand bibitem
37237 Helmut Kopka and Patrick W.
37240 A Guide to LaTeX Fourth Edition.
37243 Addison-Wesley, 2003
37246 \begin_layout Bibliography
37247 \labelwidthstring Bibliography
37248 \begin_inset CommandInset bibitem
37249 LatexCommand bibitem
37256 LaTeX: A Document Preparation System.
37259 Addison-Wesley, second edition, 1994
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/booktabs/booktabs.pdf"
37283 \begin_inset Index idx
37286 \begin_layout Plain Layout
37287 LaTeX-packages ! booktabs
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/caption/caption.pdf"
37316 \begin_inset Index idx
37319 \begin_layout Plain Layout
37320 LaTeX-packages ! caption
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 "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/endfloat/endfloat.pdf"
37349 \begin_inset Index idx
37352 \begin_layout Plain Layout
37353 LaTeX-packages ! endfloat
37361 \begin_layout Bibliography
37362 \labelwidthstring Bibliography
37363 \begin_inset CommandInset bibitem
37364 LatexCommand bibitem
37369 Documentation of the LaTeX-package
37372 \begin_inset CommandInset href
37375 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/footmisc/footmisc.pdf"
37382 \begin_inset Index idx
37385 \begin_layout Plain Layout
37386 LaTeX-packages ! footmisc
37394 \begin_layout Bibliography
37395 \labelwidthstring Bibliography
37396 \begin_inset CommandInset bibitem
37397 LatexCommand bibitem
37402 Documentation of the LaTeX-package
37405 \begin_inset CommandInset href
37408 target "http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/hypcap.pdf"
37415 \begin_inset Index idx
37418 \begin_layout Plain Layout
37419 LaTeX-packages ! hyperref
37427 \begin_layout Bibliography
37428 \labelwidthstring Bibliography
37429 \begin_inset CommandInset bibitem
37430 LatexCommand bibitem
37435 Documentation of the LaTeX-package
37438 \begin_inset CommandInset href
37441 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/hyperref/hyperref.pdf"
37448 \begin_inset Index idx
37451 \begin_layout Plain Layout
37452 LaTeX-packages ! hyperref
37460 \begin_layout Bibliography
37461 \labelwidthstring Bibliography
37462 \begin_inset CommandInset bibitem
37463 LatexCommand bibitem
37468 Documentation of the LaTeX-package
37471 \begin_inset CommandInset href
37474 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf"
37481 \begin_inset Index idx
37484 \begin_layout Plain Layout
37485 LaTeX-packages ! KOMA-Script
37493 \begin_layout Bibliography
37494 \labelwidthstring Bibliography
37495 \begin_inset CommandInset bibitem
37496 LatexCommand bibitem
37501 Documentation of the LaTeX-package
37504 \begin_inset CommandInset href
37507 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/listings/listings.pdf"
37514 \begin_inset Index idx
37517 \begin_layout Plain Layout
37518 LaTeX-packages ! listings
37526 \begin_layout Bibliography
37527 \labelwidthstring Bibliography
37528 \begin_inset CommandInset bibitem
37529 LatexCommand bibitem
37534 Documentation of the LaTeX-package
37537 \begin_inset CommandInset href
37540 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/marginnote/marginnote.pdf"
37547 \begin_inset Index idx
37550 \begin_layout Plain Layout
37551 LaTeX-packages ! marginnote
37559 \begin_layout Bibliography
37560 \labelwidthstring Bibliography
37561 \begin_inset CommandInset bibitem
37562 LatexCommand bibitem
37567 Documentation of the LaTeX-package
37570 \begin_inset CommandInset href
37573 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/lettrine.pdf"
37580 \begin_inset CommandInset href
37583 target "http://mirrors.ctan.org/macros/latex/contrib/lettrine/doc/demo.pdf"
37588 \begin_inset Index idx
37591 \begin_layout Plain Layout
37592 LaTeX-packages ! lettrine
37600 \begin_layout Bibliography
37601 \labelwidthstring Bibliography
37602 \begin_inset CommandInset bibitem
37603 LatexCommand bibitem
37608 Web page of the LaTeX-package
37611 \begin_inset CommandInset href
37614 target "http://tug.org/PSTricks/"
37621 \begin_inset Index idx
37624 \begin_layout Plain Layout
37625 LaTeX-packages ! PSTricks
37633 \begin_layout Bibliography
37634 \labelwidthstring Bibliography
37635 \begin_inset CommandInset bibitem
37636 LatexCommand bibitem
37641 Documentation of the LaTeX-package
37644 \begin_inset CommandInset href
37647 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/sidecap/sidecap.pdf"
37654 \begin_inset Index idx
37657 \begin_layout Plain Layout
37658 LaTeX-packages ! sidecap
37666 \begin_layout Bibliography
37667 \labelwidthstring Bibliography
37668 \begin_inset CommandInset bibitem
37669 LatexCommand bibitem
37674 Documentation of the LaTeX-package
37677 \begin_inset CommandInset href
37680 target "http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref/prettyref.pdf"
37687 \begin_inset Index idx
37690 \begin_layout Plain Layout
37691 LaTeX-packages ! prettyref
37699 \begin_layout Bibliography
37700 \labelwidthstring Bibliography
37701 \begin_inset CommandInset bibitem
37702 LatexCommand bibitem
37707 Documentation of the LaTeX-package
37710 \begin_inset CommandInset href
37713 target "http://mirrors.ctan.org/macros/latex/contrib/refstyle/refstyle.pdf"
37720 \begin_inset Index idx
37723 \begin_layout Plain Layout
37724 LaTeX-packages ! refstyle
37732 \begin_layout Bibliography
37733 \labelwidthstring Bibliography
37734 \begin_inset CommandInset bibitem
37735 LatexCommand bibitem
37741 \begin_inset CommandInset href
37744 target "http://wiki.lyx.org/LyX/NewInLyX20"
37748 about new features in
37755 \begin_layout Standard
37756 \begin_inset CommandInset index_print
37757 LatexCommand printindex